Browse Source

数量BUG处理

callm 1 year ago
parent
commit
1a76bb1906
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

+ 1 - 1
src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

@@ -132,7 +132,7 @@ public class MESHelperServiceImpl implements MESHelperService {
 
 
 			baseDao.execute("update BARACCEPTNOTIFY set (ban_anid,BAN_ANCODE, BAN_ANDID, BAN_ANDDETNO)=(select max(an_id),max(an_code),max(and_id),max(and_detno) from ACCEPTNOTIFYDETAIL " +
 			baseDao.execute("update BARACCEPTNOTIFY set (ban_anid,BAN_ANCODE, BAN_ANDID, BAN_ANDDETNO)=(select max(an_id),max(an_code),max(and_id),max(and_detno) from ACCEPTNOTIFYDETAIL " +
 					"left join ACCEPTNOTIFY on and_anid=an_id where an_sendcode=ban_sendcode " +
 					"left join ACCEPTNOTIFY on and_anid=an_id where an_sendcode=ban_sendcode " +
-					"and and_prodcode=ban_prodcode and ban_pudetno=and_orderdetno group by ban_pudetno) where ban_sendcode='"+sendcode+"'");
+					"and and_prodcode=ban_prodcode and ban_pudetno=and_orderdetno and and_ordercode=ban_pucode group by ban_pudetno) where ban_sendcode='"+sendcode+"'");
 			String errMsg=submit("VendAcceptNotify",an_id);
 			String errMsg=submit("VendAcceptNotify",an_id);
 			if(!errMsg.equals("")){
 			if(!errMsg.equals("")){
 				remap.put("result","NG");
 				remap.put("result","NG");