diff --git a/op-api/op-api-system/src/main/java/com/op/system/api/domain/wms/wmsReportWork.java b/op-api/op-api-system/src/main/java/com/op/system/api/domain/wms/wmsReportWork.java index 6db08321..95396223 100644 --- a/op-api/op-api-system/src/main/java/com/op/system/api/domain/wms/wmsReportWork.java +++ b/op-api/op-api-system/src/main/java/com/op/system/api/domain/wms/wmsReportWork.java @@ -50,6 +50,17 @@ public class wmsReportWork extends BaseEntity { private String unit; private String SAPstatus; private String SAPmessage; + /** 生产工单编码 */ + + private String SAPquantity; + + public String getSAPquantity() { + return SAPquantity; + } + + public void setSAPquantity(String SAPquantity) { + this.SAPquantity = SAPquantity; + } public String getSAPstatus() { return SAPstatus; diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java index ff445592..6e08d1d2 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java @@ -12,6 +12,7 @@ import com.op.common.core.domain.R; import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.uuid.IdUtils; import com.op.common.core.web.domain.AjaxResult; +import com.op.common.security.utils.SecurityUtils; import com.op.system.api.RemoteQualityService; import com.op.system.api.domain.quality.QcCheckTaskWarehousingDTO; import com.op.system.api.domain.wms.wmsReportWork; @@ -322,7 +323,12 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { @DS("#header.poolName") public List getReportList(wmsReportWork mesReportWork) { List rlist = wmsProductPutMapper.getReportList(mesReportWork); - ; +// //加上已经过账的数量reportCode work_order batch_number batch +// for (wmsReportWork wmsReportWork: +// rlist) { +// String SAPquantity= wmsProductPutMapper.selectWmsProductPutNum(wmsReportWork); +// wmsReportWork.setSAPquantity(SAPquantity); +// } return rlist; } @@ -407,7 +413,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { //List wmsProductPutList= wmsProductPutMapper.selectWmsProductPutList(wmsProductPutk); wmsProductPutk.setAttr3(formattedDate);// - wmsProductPutk.setCreateBy(mesReportWork.getCreateBy()); + wmsProductPutk.setCreateBy(SecurityUtils.getUsername()); wmsProductPutk.setCreateTime(new Date()); wmsProductPutk.setProductDate(mesReportWork.getProductDate()); @@ -423,7 +429,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { wmsProductPutRecords.setWhCode(mesReportWork.getWhCode());//仓库编码 wmsProductPutRecords.setId(IdUtils.fastSimpleUUID()); wmsProductPutRecords.setNumber(mesReportWork.getQuantityQualified().toString()); - wmsProductPutRecords.setCreateBy(mesReportWork.getCreateBy()); + wmsProductPutRecords.setCreateBy(SecurityUtils.getUsername()); wmsProductPutRecords.setCreateTime(new Date()); wmsProductPutRecordsMapper.insertWmsProductPutRecords(wmsProductPutRecords); @@ -441,7 +447,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { List wmsFpStorageNewsList = wmsFpStorageNewsMapper.selectWmsFpStorageNewsList(wmsFpStorageNews); wmsFpStorageNews.setStorageId(IdUtils.fastSimpleUUID()); wmsFpStorageNews.setAmount(mesReportWork.getQuantityQualified()); - wmsFpStorageNews.setCreateBy(mesReportWork.getCreateBy()); + wmsFpStorageNews.setCreateBy(SecurityUtils.getUsername()); wmsFpStorageNews.setCreateTime(new Date()); if (wmsFpStorageNewsList.size() > 0) { WmsFpStorageNews wmsFpStorageNews1 = wmsFpStorageNewsList.get(0);