|
|
@@ -1972,7 +1972,7 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
return rmap;
|
|
|
}
|
|
|
//prodiomac表中已有该SN出货记录的不允许更新
|
|
|
- SqlRowList rsPim = baseDao.queryForRowSet("select count(1)cn from "+Master+".prodiomac where pim_mac=?", iSN);
|
|
|
+ SqlRowList rsPim = baseDao.queryForRowSet("select count(1)cn from "+Master+".prodiomac where PIM_INOROUT='OUT' and pim_mac=?", iSN);
|
|
|
if(rsPim.next() && rsPim.getInt(1) > 0){
|
|
|
oErrMessage = "SN:" + iSN + " 已存在出货记录,不允许更新";
|
|
|
rmap.put("oErrMessage",oErrMessage);
|