diff --git a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java index 945511356..b81bf7cf4 100644 --- a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java +++ b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java @@ -127,6 +127,18 @@ public class AftersalesAbnormalPackageEntity extends TenantEntity { */ @ApiModelProperty(value = "物料编码(库存品)") private String cargoNumber; + + /** + * 一级品 + */ + @ApiModelProperty(value = "一级品") + private String first; + + /** + * 二级品 + */ + @ApiModelProperty(value = "二级品") + private String secondary; /** * 入库批次号(库存品) */ diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java index f81731ed7..1b0f7cef6 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java @@ -80,10 +80,10 @@ public class DistributionParcelListVO extends DistributionParcelListEntity { */ private String trayMsg; - /** - * 装车操作人 - */ - private String scanUser; +// /** +// * 装车操作人 +// */ +// private String scanUser; /** * 装车操作人 diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java index aa10c699b..a61a14c97 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java @@ -654,9 +654,9 @@ public class AftersalesWorkOrderController extends BladeController { if(ObjectUtils.isNull( aftersalesWorkOrder.getOrderCode()) ){ throw new ServiceException("订单自编号未填!"); } - if(ObjectUtils.isNull( aftersalesWorkOrder.getFirst()) ){ - throw new ServiceException("一级品类未填!"); - } +// if(ObjectUtils.isNull( aftersalesWorkOrder.getFirst()) ){ +// throw new ServiceException("一级品类未填!"); +// } // if(ObjectUtils.isNull( aftersalesWorkOrder.getSecondary()) ){ // throw new ServiceException("二级品类未填!"); // } diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java index 07c6c2c8c..f4e997707 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java @@ -53,6 +53,7 @@ import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.Func; +import org.springblade.core.tool.utils.StringUtil; import org.springblade.system.cache.DictBizCache; import org.springblade.system.entity.DictBiz; import org.springblade.system.entity.User; @@ -323,6 +324,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl packageEntityList = aftersalesWorkOrder.getPackageEntityList(); + if (!packageEntityList.isEmpty()){ + List collect = packageEntityList.stream().filter(f -> Objects.isNull(f.getFirst())).map(AftersalesAbnormalPackageEntity::getPackageCode).collect(Collectors.toList()); + if (!collect.isEmpty()){ + throw new RuntimeException(collect.stream().collect(Collectors.joining(","))+"无一级品信息"); + } + } //包件信息 List list = new ArrayList<>(); aftersalesWorkOrder.getPackageEntityList().forEach(i -> { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java index f7eded8b2..4917256b1 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java @@ -108,7 +108,7 @@ public interface DistributionParcelListMapper extends BaseMapper getParcelListInfo(@Param("param")DistributionParcelListVO parcelListVO); - List exportDistributionParcelList(@Param("paramMap")Map paramMap, @Param("idArr") List idArr); + List exportDistributionParcelList(@Param("param")Map paramMap, @Param("idArr") List idArr); void freezeByOrderCode(@Param("orderCode") String orderCode,@Param("freezeStatus") String freezeStatus); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml index 2ffd15749..47931acce 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml @@ -299,13 +299,6 @@ and ldpl.warehouse_entry_time_end BETWEEN #{param.startWarehouseEntryTimeEnd} AND #{param.lastWarehouseEntryTimeEnd} - - - - - - - @@ -893,55 +886,244 @@