|
|
@@ -552,14 +552,6 @@ public class MESServiceImpl implements MESService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- SqlRowList sqlRowList = baseDao.queryForRowSet("select round((mm_qty-nvl(mm_canuserepqty,0)-(nvl" +
|
|
|
- "(mm_havegetqty,0)-nvl(mm_haverepqty,0)+(nvl(mm_returnmqty,0)-nvl(mm_repreturnmqty,0))-(nvl" +
|
|
|
- "(mm_addqty,0)-NVL(mm_repaddqty,0)))-nvl(mm_totaluseqty,0)+NVL(mm_repqty,0))-NVL(mm_stepinqty,0)" +
|
|
|
- ",7) mmqty from MakeMaterial where mm_prodcode='"+itemNo+"' mm_id in (" + lineId + ")");
|
|
|
- if (sqlRowList.next()){
|
|
|
- Double mmqty = sqlRowList.getGeneralDouble("mmqty");
|
|
|
- qty = qty.compareTo(mmqty) > 0 ? mmqty : qty;
|
|
|
- }
|
|
|
sqls.add("insert into prodiodetail (pd_id,pd_piid,pd_inoutno,pd_piclass,pd_pdno,pd_prodcode," +
|
|
|
"pd_outqty,pd_whcode,pd_whname,pd_ordercode,pd_orderdetno,pd_macode,pd_madetno) " +
|
|
|
"values (PRODIODETAIL_SEQ.nextval," + llpiid + ",'" + llcode + "','"+llpiclass+"'," + detno + ",'" + itemNo +
|