瀏覽代碼

【深爱-物流价格查询-取价报错时价格更新为0】

DINGYL 1 年之前
父節點
當前提交
5118b37b92
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

+ 3 - 3
src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

@@ -559,7 +559,7 @@ public class ERPServiceImpl implements ERPService {
                     }
                 }
             }else{
-                baseDao.execute("update LogisticsPrice set lp_msg2='"+doPApiResp.getReason()+"' where lp_id="+id);
+                baseDao.execute("update LogisticsPrice set lp_msg2='"+doPApiResp.getReason()+"',LP_REALTIMEPRICE2=0 where lp_id="+id);
             }
             return retMap;
         }catch (Exception e){
@@ -635,7 +635,7 @@ public class ERPServiceImpl implements ERPService {
                         if(ky.getTotalJF()!=null){
                             baseDao.execute("update LogisticsPrice set lp_msg3='',LP_REALTIMEPRICE3="+ky.getTotalJF()+" where lp_id="+id);
                         }else{
-                            baseDao.execute("update LogisticsPrice set lp_msg3='"+ky.getRetMsg()+"' where lp_id="+id);
+                            baseDao.execute("update LogisticsPrice set lp_msg3='"+ky.getRetMsg()+"',LP_REALTIMEPRICE3=0 where lp_id="+id);
                         }
                     }
                 }
@@ -720,7 +720,7 @@ public class ERPServiceImpl implements ERPService {
                             }
                         }
                     }else{
-                        baseDao.execute("update LogisticsPrice set  lp_msg1='"+sfPriceApiResultData.getErrorMsg()+"',  where lp_id="+id);
+                        baseDao.execute("update LogisticsPrice set  lp_msg1='"+sfPriceApiResultData.getErrorMsg()+"',LP_REALTIMEPRICE1=0  where lp_id="+id);
                     }
                 }
             }