Browse Source

退料单报错

koul 3 years ago
parent
commit
5dfddb6116
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/eis/service/Impl/MESServiceImpl.java

+ 1 - 1
src/main/java/com/uas/eis/service/Impl/MESServiceImpl.java

@@ -786,7 +786,7 @@ public class MESServiceImpl implements MESService {
                 }
                 warehouses2 = baseDao.getFieldsDataByCondition("customtabledetail left join customtable on cd_ctid=ct_id left join Warehouse on cd_varchar50_3=wh_code", "cd_varchar50_3,wh_description", "ct_statuscode='AUDITED' and ct_caller='MESWarehouse' and cd_varchar50_1='" + whcode2 + "'");
                 //获取领料单拨出仓库
-                int mmdetno = Integer.parseInt(StringUtil.nvl(baseDao.getFieldDataByCondition("make","mm_detno","mm_id in (" + lineId + ")"), "0"));
+                int mmdetno = Integer.parseInt(StringUtil.nvl(baseDao.getFieldDataByCondition("MakeMaterial","mm_detno","mm_id in (" + lineId + ")"), "0"));
                 Object data2 = baseDao.getFieldDataByCondition("prodiodetail", "min(pd_batchcode)","pd_piclass='生产领料单' and pd_ordercode='" + macode + "' and pd_orderdetno=" + mmdetno);
                 Object pdwhcode = baseDao.getFieldDataByCondition("prodiodetail", "pd_whcode","pd_piclass='拨出单' and pd_batchcode='" + data2 + "'");
                 int nocost = Integer.parseInt(StringUtil.nvl(baseDao.getFieldDataByCondition("Warehouse", "nvl(wh_nocost,0)", "wh_code='" + pdwhcode + "'"), "0"));