diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/QuestDetailChildEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/QuestDetailChildEntity.java index 37ce330b1..72b6ab9ee 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/QuestDetailChildEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/QuestDetailChildEntity.java @@ -35,6 +35,11 @@ import org.springblade.core.tenant.mp.TenantEntity; @EqualsAndHashCode(callSuper = true) public class QuestDetailChildEntity extends TenantEntity { + /** + * id + */ + @ApiModelProperty(value = "id") + private Long id; /** * 预留1 */ diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataFreightController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataFreightController.java index 48fae9b54..f39f4d434 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataFreightController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataFreightController.java @@ -19,6 +19,7 @@ package com.logpm.basicdata.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.logpm.basicdata.dto.BasicdataFreightDTO; import com.logpm.basicdata.entity.BasicdataFreightEntity; import com.logpm.basicdata.excel.BasicdataFreightExcel; import com.logpm.basicdata.service.IBasicdataFreightService; @@ -116,7 +117,7 @@ public class BasicdataFreightController extends BladeController { @PostMapping("/submit") @ApiOperationSupport(order = 6) @ApiOperation(value = "新增或修改", notes = "传入basicdataFreight") - public R submit(@Valid @RequestBody BasicdataFreightEntity basicdataFreight) { + public R submit(@Valid @RequestBody BasicdataFreightDTO basicdataFreight) { return R.status(basicdataFreightService.ownSaveOrUpdate(basicdataFreight)); } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/dto/BasicdataFreightDTO.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/dto/BasicdataFreightDTO.java index 9f818d2bd..f76e19ca6 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/dto/BasicdataFreightDTO.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/dto/BasicdataFreightDTO.java @@ -30,5 +30,11 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = true) public class BasicdataFreightDTO extends BasicdataFreightEntity { private static final long serialVersionUID = 1L; + /** + * 客户ID + */ + private String clientIds; + + } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataFreightService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataFreightService.java index 9611a737c..052b14074 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataFreightService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataFreightService.java @@ -18,6 +18,7 @@ package com.logpm.basicdata.service; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.logpm.basicdata.dto.BasicdataFreightDTO; import com.logpm.basicdata.entity.BasicdataFreightEntity; import com.logpm.basicdata.excel.BasicdataFreightExcel; import com.logpm.basicdata.vo.BasicdataFreightVO; @@ -55,5 +56,6 @@ public interface IBasicdataFreightService extends BaseService{ QueryWrapper queryWrapper = new QueryWrapper<>(); - if(type.equals("1")){ - //客户 - queryWrapper.apply(ObjectUtils.isNotNull(o1),"lbb.brand_name like concat('%',{0},'%') ",o1); - queryWrapper.apply("lbsb.client_id ={0} ",i); + //客户 + queryWrapper.apply(ObjectUtils.isNotNull(o1),"lbb.brand_name like concat('%',{0},'%') ",o1); + queryWrapper.apply("lbsb.client_id ={0} ",i); + /*if(ObjectUtils.isNotNull(type)){ + if(type.equals("1")){ + + } }else{ //门店 //客户 queryWrapper.apply(ObjectUtils.isNotNull(o1),"lbb.brand_name like concat('%',{0},'%') ",o1); queryWrapper.apply("lbsb.shop_id ={0} ", i); - } + }*/ List basicdataStoreBrandVOS = baseMapper.listNameBrand(queryWrapper ); // 查询相关品牌信息 voList.addAll(basicdataStoreBrandVOS); /* List basicdataStoreBrandEntities = baseMapper.selectList(Wrappers.query().lambda() diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationPackageExcel.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationPackageExcel.java index ebd7f0a0a..dc23dc6a7 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationPackageExcel.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationPackageExcel.java @@ -138,31 +138,31 @@ public class DistributionReservationPackageExcel implements Serializable { */ @ColumnWidth(20) @ExcelProperty("一级品") - private Long firsts; + private String firsts; /** * 订单编号 */ @ColumnWidth(20) @ExcelProperty("二级品") - private Long second; + private String second; /** * 订单编号 */ @ColumnWidth(20) @ExcelProperty("三级品") - private Long thirdProduct; + private String thirdProduct; /** * 订单编号 */ @ColumnWidth(20) @ExcelProperty("物料名称") - private Long materialName; + private String materialName; /** * 订单编号 */ @ColumnWidth(20) @ExcelProperty("数量") - private Long quantity; + private Integer quantity; // /** // * 订单编号 // */ @@ -174,12 +174,12 @@ public class DistributionReservationPackageExcel implements Serializable { */ @ColumnWidth(20) @ExcelProperty("货位数量") - private Long positionCode; + private Integer positionCode; /** * 订单编号 */ @ColumnWidth(20) @ExcelProperty("所在托盘") - private Long trayCode; + private String trayCode; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java index e8a8bb27b..02101bb2b 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionParcelListClient.java @@ -62,6 +62,7 @@ public class DistributionParcelListClient implements IDistributionParcelListClie .eq(ObjectUtils.isNotNull(parcelListEntity.getId()),DistributionParcelListEntity::getId,parcelListEntity.getId()) .eq(ObjectUtils.isNotNull(parcelListEntity.getWarehouseId()),DistributionParcelListEntity::getWarehouseId,parcelListEntity.getWarehouseId()) .eq(ObjectUtils.isNotNull(parcelListEntity.getStockArticleId()),DistributionParcelListEntity::getStockArticleId,parcelListEntity.getStockArticleId()) + .notIn(ObjectUtils.isNotNull(parcelListEntity.getOrderPackageStatus()),DistributionParcelListEntity::getOrderPackageStatus,parcelListEntity.getOrderPackageStatus().split(",")) ); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationPackageMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationPackageMapper.xml index cfeaf7f35..7f52d55b5 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationPackageMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationPackageMapper.xml @@ -58,7 +58,7 @@ LEFT JOIN logpm_warehouse_updown_goods lwug on lwug.association_id = ldpl.id and lwug.warehouse_id = #{param.warehouseId} ldrp.packet_bar_status in (1,3) - and ldrs.reservation_id = #{param.reservationId } + and ldrp.reservation_id = #{param.reservationId } and ldpl.waybill_number like concat('%',#{param.waybillNumber },'%') and ldpl.service_number like concat('%', #{param.serviceNumber },'%') and ldpl.order_code like concat('%', #{param.orderCode },'%') diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationStocklistMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationStocklistMapper.xml index 1c1c9fb5f..6968fb003 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationStocklistMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationStocklistMapper.xml @@ -49,6 +49,7 @@ LEFT JOIN logpm_distribution_stockup_info ldsi on ldsi.reservation_id = ldrs.reservation_id LEFT JOIN logpm_distribution_stockup lds on lds.id = ldsi.stockup_id + ldrs.reservation_id =#{param.reservationId} and ldsl.incoming_batch like concat('%', #{param.incomingBatch },'%') and ldsl.sku like concat('%', #{param.sku },'%') and ldsl.market_name like concat('%', #{param.marketName },'%') diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseTaskApiController.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseTaskApiController.java index bb0de6ccb..f7129fcb2 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseTaskApiController.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseTaskApiController.java @@ -113,7 +113,7 @@ public class WarehouseTaskApiController { return R.fail(403,"仓库信息为空"); } taskSearchDTO.setWarehouseId(myCurrentWarehouse.getId()); - R r= taskQuestService.queryContract(Condition.getPage(query), taskSearchDTO); + R r= taskQuestService.queryContractGai(Condition.getPage(query), taskSearchDTO); return r; } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.xml b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.xml index f4df050fc..f910b0d5c 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.xml +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/TaskQuestMapper.xml @@ -146,6 +146,7 @@ and allocation_id =#{param.allocationId } and tray_id =#{param.trayId } and order_code =#{param.orderCode } + and orde_package_code =#{param.ordePackageCode }