|
|
|
@ -6,6 +6,7 @@ import cn.estsh.i3plus.ext.mes.pcn.pojo.util.MesPcnExtConstWords;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.model.ChengDuLoadingListDetailPrintModel;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.model.ChengDuLoadingListPrintModel;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.model.MesProduceSnPrintModel;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.TimeTool;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
@ -63,10 +64,10 @@ public class ChengDuLoadingListPrintStrategy implements IPrintTemplateStrategySe
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ResultBean execute(List<MesLoadingList> loadingLists) {
|
|
|
|
|
public ResultBean execute(List<MesLoadingList> loadingLists, boolean reprint) {
|
|
|
|
|
List<ChengDuLoadingListPrintModel> modelList = new ArrayList<>();
|
|
|
|
|
for (MesLoadingList loadingList : loadingLists) {
|
|
|
|
|
ChengDuLoadingListPrintModel model = getPrintData(loadingList);
|
|
|
|
|
ChengDuLoadingListPrintModel model = getPrintData(loadingList, reprint);
|
|
|
|
|
if (model != null) {
|
|
|
|
|
modelList.add(model);
|
|
|
|
|
}
|
|
|
|
@ -74,7 +75,7 @@ public class ChengDuLoadingListPrintStrategy implements IPrintTemplateStrategySe
|
|
|
|
|
return ResultBean.success("装车单打印成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setResultList(modelList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private ChengDuLoadingListPrintModel getPrintData(MesLoadingList loadingList) {
|
|
|
|
|
private ChengDuLoadingListPrintModel getPrintData(MesLoadingList loadingList, boolean reprint) {
|
|
|
|
|
final String organizeCode = AuthUtilExt.getOrganizeCode();
|
|
|
|
|
final String userName = AuthUtilExt.getUserName();
|
|
|
|
|
|
|
|
|
@ -155,6 +156,12 @@ public class ChengDuLoadingListPrintStrategy implements IPrintTemplateStrategySe
|
|
|
|
|
loadingList.setLastPrintUser(userName);
|
|
|
|
|
ConvertBean.serviceModelUpdate(loadingList, userName);
|
|
|
|
|
loadingListRDao.update(loadingList);
|
|
|
|
|
|
|
|
|
|
if (reprint) {
|
|
|
|
|
model.setRePrintDatetime(TimeTool.getNowTime(MesExtConstWords.DATETIME_FORMAT_SINGLE_SLASH));
|
|
|
|
|
model.setRePrintUser(userName);
|
|
|
|
|
model.setIsRePrint("重打印");
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|