|
@ -23,6 +23,7 @@ import org.nl.wms.ext.acs.service.dto.to.acs.ApplyTaskResponse; |
|
|
import org.nl.wms.ext.acs.service.dto.to.acs.GetPalletizeResponse; |
|
|
import org.nl.wms.ext.acs.service.dto.to.acs.GetPalletizeResponse; |
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.*; |
|
|
import org.nl.wms.ext.acs.service.dto.to.wms.*; |
|
|
import org.nl.wms.ext.mes.service.WmsToMesService; |
|
|
import org.nl.wms.ext.mes.service.WmsToMesService; |
|
|
|
|
|
import org.nl.wms.ext.mes.service.dto.CusterDo; |
|
|
import org.nl.wms.ext.mes.service.dto.CusterVo; |
|
|
import org.nl.wms.ext.mes.service.dto.CusterVo; |
|
|
import org.nl.wms.ext.mes.service.dto.MesMudConsumptionDto; |
|
|
import org.nl.wms.ext.mes.service.dto.MesMudConsumptionDto; |
|
|
import org.nl.wms.ext.mms.service.WmsToMmsService; |
|
|
import org.nl.wms.ext.mms.service.WmsToMmsService; |
|
@ -468,7 +469,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public ApplyTaskResponse applyLabelling(JSONObject param) { |
|
|
public ApplyTaskResponse applyLabelling(JSONObject param) { |
|
|
// 木托盘号(4)##物料编码(12)##数量(2-3)##吨量(单重X数量)##生产日期(11)##客户名称##订单号(12)##产品名称##型号
|
|
|
// 木托盘号(4)##物料编码(12)##数量(2-3)##吨量(单重X数量)##生产日期(2023/11/04)##客户编码##订单号(12)#型号##产品名称##客户名称**
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
|
ApplyTaskRequest baseRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
ApplyTaskRequest baseRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
if (baseRequest.getVehicle_code() == null) { |
|
|
if (baseRequest.getVehicle_code() == null) { |
|
@ -491,16 +492,23 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
log.info("包装数据:{}", object); |
|
|
log.info("包装数据:{}", object); |
|
|
String custerNo = object.getString("custer_no"); |
|
|
String custerNo = object.getString("custer_no"); |
|
|
String orderNo = object.getString("order_no"); |
|
|
String orderNo = object.getString("order_no"); |
|
|
|
|
|
CusterDo custer; |
|
|
|
|
|
if (custerNo.matches("\\d+")) { |
|
|
|
|
|
custer = wmsToMesService.getCusterByNo(custerNo); |
|
|
|
|
|
} else { |
|
|
|
|
|
custer = wmsToMesService.getCusterByName(custerNo); |
|
|
|
|
|
} |
|
|
// 组合
|
|
|
// 组合
|
|
|
sb.append(baseRequest.getVehicle_code()).append("##") |
|
|
sb.append(baseRequest.getVehicle_code()).append("##") |
|
|
.append(baseMaterial.getMaterial_code()).append("##") |
|
|
.append(baseMaterial.getMaterial_code()).append("##") |
|
|
.append(groupInfo.getMaterial_qty()).append("##") |
|
|
.append(groupInfo.getMaterial_qty()).append("##") |
|
|
.append(multiply).append("##") |
|
|
.append(multiply).append("##") |
|
|
.append(DateUtil.format(DateUtil.parse(DateUtil.today()), "yyyy年MM月dd日")).append("##") |
|
|
.append(DateUtil.format(DateUtil.parse(DateUtil.today()), "yyyy/MM/dd")).append("##") |
|
|
.append(custerNo).append("##") |
|
|
.append(custer.getCuster_no()).append("##") |
|
|
.append(orderNo).append("##") |
|
|
.append(orderNo).append("##") |
|
|
|
|
|
.append(baseMaterial.getMaterial_spec() + "~" + baseMaterial.getMaterial_model()).append("##") |
|
|
.append(baseMaterial.getMaterial_name()).append("##") |
|
|
.append(baseMaterial.getMaterial_name()).append("##") |
|
|
.append(baseMaterial.getMaterial_model()).append("**"); |
|
|
.append(custer.getCuster_name()).append("**"); |
|
|
return ApplyTaskResponse.responseOk(requestNo, sb.toString()); |
|
|
return ApplyTaskResponse.responseOk(requestNo, sb.toString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|