|
|
|
@ -10,7 +10,7 @@ import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
|
|
|
|
|
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.system.api.domain.wms.MesReportWork;
|
|
|
|
|
import com.op.system.api.domain.wms.wmsReportWork;
|
|
|
|
|
import com.op.system.api.RemoteSapService;
|
|
|
|
|
import com.op.wms.domain.*;
|
|
|
|
|
import com.op.wms.mapper.*;
|
|
|
|
@ -294,19 +294,19 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<MesReportWork> getReportList(MesReportWork mesReportWork) {
|
|
|
|
|
List<MesReportWork> rlist = wmsProductPutMapper.getReportList(mesReportWork);;
|
|
|
|
|
public List<wmsReportWork> getReportList(wmsReportWork mesReportWork) {
|
|
|
|
|
List<wmsReportWork> rlist = wmsProductPutMapper.getReportList(mesReportWork);;
|
|
|
|
|
return rlist;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public String addReportListSap(List<MesReportWork> mesReportWorks) {
|
|
|
|
|
public String addReportListSap(List<wmsReportWork> mesReportWorks) {
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
String formattedDate = dateFormat.format(date);//批次
|
|
|
|
|
//List<WmsProductPut> wmsProductPutList= new ArrayList<>();
|
|
|
|
|
for (MesReportWork mesReportWork:
|
|
|
|
|
for (wmsReportWork mesReportWork:
|
|
|
|
|
mesReportWorks) {
|
|
|
|
|
WmsProductPut wmsProductPutk=new WmsProductPut();
|
|
|
|
|
//wms_product_put
|
|
|
|
@ -369,7 +369,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
List<Map<String, Object>> mapList = new ArrayList<>();
|
|
|
|
|
for (MesReportWork mesReportWork:
|
|
|
|
|
for (wmsReportWork mesReportWork:
|
|
|
|
|
mesReportWorks) {
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("AUFNR",mesReportWork.getWorkorderCodeSap());
|
|
|
|
@ -385,7 +385,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
|
|
|
|
|
R result=remoteSapService.sapOrderReceipt(mapList);
|
|
|
|
|
int code= result.getCode();
|
|
|
|
|
String msg= result.getMsg();
|
|
|
|
|
for (MesReportWork mesReportWork:
|
|
|
|
|
for (wmsReportWork mesReportWork:
|
|
|
|
|
mesReportWorks) {
|
|
|
|
|
WmsProductPut wmsProductPut2=new WmsProductPut();
|
|
|
|
|
wmsProductPut2.setId(mesReportWork.getId());
|
|
|
|
|