Jelajahi Sumber

去除多餘限制

callm 1 tahun lalu
induk
melakukan
25f4506881

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

@@ -184,9 +184,9 @@ public class MESHelperServiceImpl implements MESHelperService {
 		}
 		rs = baseDao.queryForRowSet("select wm_concat(and_detno) and_detno from acceptNotifydetail left join purchasedetail on pd_code = and_ordercode and pd_detno = and_orderdetno left join purchase on pd_puid = pu_id "
 				+ " where and_anid ='"+id+"' and not exists(select 1 from acceptnotify where nvl(an_vendcode, ' ') = nvl(pu_vendcode,' ') and  nvl(an_vendname,' ') = nvl(pu_vendname,' ') and nvl(an_currency,' ') = nvl(pu_currency,' ') and nvl(pu_buyername,' ') = nvl(an_buyer,' ') and nvl(pu_payments,' ') = nvl(an_payment,' ') and nvl(pu_receivename,' ') = nvl(an_receivename,' ') and an_id='"+id+"')");
-		if (rs.next() && rs.getString("and_detno") != null) {
+		/*if (rs.next() && rs.getString("and_detno") != null) {
 			return ErrMsg="请检查采购单+序号对应的供应编号、应付供应商、币别、采购员、付款方式、应付供应商是否和主表一致,序号" + rs.getString("and_detno");
-		}
+		}*/
 		/*rs = baseDao.queryForRowSet("select wm_concat(and_detno) and_detno from acceptnotifydetail where and_anid =? and and_barqty>0 and nvl(and_barqty,0)<>nvl(and_inqty,0)",id);
 		if (rs.next() && rs.getString("and_detno") != null){
 			BaseUtil.showError("序号"+rs.getString("and_detno")+"存在条码,条码数量不等于采购数量");