Browse Source

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

DINGYL 9 months ago
parent
commit
5118b37b92
1 changed files with 3 additions and 3 deletions
  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);
                     }
                 }
             }