Ver código fonte

存在条码不允许使用物料上料

callm 2 anos atrás
pai
commit
bca5a67746

+ 1 - 1
src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

@@ -227,7 +227,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 			bar_remain = rs.getDouble("bar_remain");
 		}else{
 			if(baseDao.getFieldDataByCondition("configs","data","caller='MESSetting' and  code='PRCODE'").toString().equals("1")){
-				rs = baseDao.queryForRowSet("select bar_remain,nvl(bar_place,1)bar_place,bar_prodcode,bar_code from barcode where bar_prodcode=?  and bar_remain>0 and ",bar_code);
+				rs = baseDao.queryForRowSet("select bar_remain,nvl(bar_place,1)bar_place,bar_prodcode,bar_code from barcode where bar_prodcode=?  and bar_remain>0  ",bar_code);
 				if(rs.next()){
 					showSmtError(APIErrorCode.DATA_NOT_FOUND,"料号["+rs.getString("bar_prodcode")+"]存在条码,不允许使用料号进行上料",handleType,linecode,location,ps_prodcode,"料卷"+bar_code,bool,table);
 				}