|
|
@@ -587,7 +587,7 @@ public class MESServiceImpl implements MESService {
|
|
|
sqls.add("update prodinout set pi_purpose='"+warehouses[0]+"',pi_purposename='"+warehouses[1]+"' where pi_id="+bcpiid);
|
|
|
}
|
|
|
baseDao.execute(sqls);
|
|
|
- int count = baseDao.getCount("select count(1) from prodiodetail where pi_id=" + llpiid);
|
|
|
+ int count = baseDao.getCount("select count(1) from prodiodetail where pd_piid=" + llpiid);
|
|
|
if (count<=0){
|
|
|
baseDao.deleteById("prodinout","pi_id",llpiid);
|
|
|
}
|