diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java index 00b147a..a732963 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java @@ -58,7 +58,7 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl page (Map params){ IPage page = baseDao.selectPage( - getPage(params, ChangePackagingBoxHistory.CREATE_TIME, true), + getPage(params, ChangePackagingBoxHistory.CREATE_TIME, false), getWrapper(params) ); return getPageData(page, ChangePackagingBoxHistoryDTO.class); diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java index 9144c7d..b431b97 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java @@ -58,7 +58,7 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl page (Map params){ IPage page = baseDao.selectPage( - getPage(params, PrintModel.ID, true), + getPage(params, PrintModel.CREATE_TIME, false), getWrapper(params) ); return getPageData(page, PrintModelDTO.class); diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java index d56d2b1..89a264b 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java @@ -183,12 +183,15 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl substrateList = dto.getSubstrateList(); for(WoPackagingBoxSubstrate substrate : substrateList){ - substrate.setPackagingBoxId(box.getBoxNo()); - substrate.setPowerLevel(box.getPowerLevel()); - substrate.setSapMaterial(box.getSapMaterial()); - substrate.setLineBody(box.getLineBody()); - BaseSupportUtils.setCommonField(substrate); - woPackagingBoxSubstrateServiceBiz.insert(substrate); + //判断模组id是否非空 + if(!StringUtils.isBlank(substrate.getWoSubstrateId())) { + substrate.setPackagingBoxId(box.getBoxNo()); + substrate.setPowerLevel(box.getPowerLevel()); + substrate.setSapMaterial(box.getSapMaterial()); + substrate.setLineBody(box.getLineBody()); + BaseSupportUtils.setCommonField(substrate); + woPackagingBoxSubstrateServiceBiz.insert(substrate); + } } return IdVo.builder().id(box.getId()).build(); } diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java index 2295eb7..ec79d1c 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java @@ -194,9 +194,15 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl