wms成品部分修改31

master
mengjiao 9 months ago
parent 853fa0008f
commit 5d6572c095

@ -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;

@ -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<wmsReportWork> getReportList(wmsReportWork mesReportWork) {
List<wmsReportWork> 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<WmsProductPut> 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<WmsFpStorageNews> 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);

Loading…
Cancel
Save