diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java index 97fb314d3..9c77bf1be 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java @@ -244,6 +244,10 @@ public class DistributionStockArticleEntity extends TenantEntity { @TableField(exist = false) @ApiModelProperty(value = "预约数量") private Integer reservationNum; + + @ApiModelProperty(value = "运单ID") + private Long waybillId; + /** * 运单号 */ diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionStockArticleClient.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionStockArticleClient.java index 8be621941..53b9c1cca 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionStockArticleClient.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionStockArticleClient.java @@ -74,7 +74,7 @@ public interface IDistributionStockArticleClient { void submitHandQuantity(@RequestParam Integer allNum,@RequestParam Long articleId); @GetMapping(API_PREFIX + "/likeOrderSelfNumbering") - List likeOrderSelfNumbering(String orderSelfNumbering); + List likeOrderSelfNumbering(@RequestParam String orderSelfNum); @GetMapping(API_PREFIX + "/findStockArticleByOrderCode") DistributionStockArticleEntity findStockArticleByOrderCode(@RequestParam String orderCode); diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicMaterialController.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicMaterialController.java index 78b8dd9e8..eccad3e38 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicMaterialController.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/controller/BasicMaterialController.java @@ -85,7 +85,9 @@ public class BasicMaterialController extends BladeController { @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入basicMaterial") public R> list(@ApiIgnore @RequestParam Map basicMaterial, Query query) { - IPage pages = basicMaterialService.page(Condition.getPage(query), Condition.getQueryWrapper(basicMaterial, BasicMaterialEntity.class)); + QueryWrapper queryWrapper = Condition.getQueryWrapper(basicMaterial, BasicMaterialEntity.class); + queryWrapper.orderByDesc("create_time"); + IPage pages = basicMaterialService.page(Condition.getPage(query), queryWrapper); return R.data(pages); } diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/excel/BasicMaterialExcel.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/excel/BasicMaterialExcel.java index df2c1df2f..61e6c644e 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/excel/BasicMaterialExcel.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/excel/BasicMaterialExcel.java @@ -136,25 +136,25 @@ public class BasicMaterialExcel implements Serializable { */ @ColumnWidth(20) @ExcelProperty("长") - private BigDecimal extent; + private String extent; /** * 宽 */ @ColumnWidth(20) @ExcelProperty("宽") - private BigDecimal breadth; + private String breadth; /** * 高度 */ @ColumnWidth(20) @ExcelProperty("高度") - private BigDecimal altitude; + private String altitude; /** * 体积 */ @ColumnWidth(20) @ExcelProperty("体积") - private BigDecimal volume; + private String volume; /** * 总量 */ diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/impl/BasicMaterialServiceImpl.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/impl/BasicMaterialServiceImpl.java index 1e8f08db3..013a06882 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/impl/BasicMaterialServiceImpl.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/service/impl/BasicMaterialServiceImpl.java @@ -94,6 +94,7 @@ public class BasicMaterialServiceImpl extends BaseServiceImpl basicMaterialEntities = baseMapper.selectList(new QueryWrapper().lambda().eq(BasicMaterialEntity::getProductCode,datum.getProductCode())); if (basicMaterialEntities.size()>0){continue;} BasicMaterialEntity copy = BeanUtil.copy(datum, BasicMaterialEntity.class); + copy.setHide(1); arrayList.add(copy); } // 根据对象的value属性进行去重 diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataWarehouseService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataWarehouseService.java index 13f091071..30eb3a356 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataWarehouseService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataWarehouseService.java @@ -20,16 +20,13 @@ package com.logpm.basicdata.service; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.logpm.basicdata.dto.BasicdataWarehouseDTO; import com.logpm.basicdata.entity.BasicdataWarehouseEntity; import com.logpm.basicdata.excel.BasicdataWarehouseExcel; -import com.logpm.basicdata.vo.BasicdataGoodsShelfVO; import com.logpm.basicdata.vo.BasicdataWarehouseVO; import org.springblade.core.mp.base.BaseService; import org.springblade.core.tool.api.R; import java.util.List; -import java.util.Map; /** * 仓库 服务类 @@ -107,4 +104,6 @@ public interface IBasicdataWarehouseService extends BaseService queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("warehouse_code",warehouseCode) + .eq("is_deleted",0); + + return baseMapper.selectOne(queryWrapper); + } } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java index 01050a7cf..c6c4f7bc1 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java @@ -120,8 +120,9 @@ public class DistributionStockArticleClient implements IDistributionStockArticle } @Override - public List likeOrderSelfNumbering(String orderSelfNumbering) { - return distributionStockArticleService.likeOrderSelfNumbering(orderSelfNumbering); + @GetMapping(API_PREFIX + "/likeOrderSelfNumbering") + public List likeOrderSelfNumbering(String orderSelfNum) { + return distributionStockArticleService.likeOrderSelfNumbering(orderSelfNum); } @Override diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java index 245eff17f..da39618ce 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java @@ -67,11 +67,12 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl30){ log.warn("################splitOrder: 当前在库订单已进入配送流程,不能拆单 waybillNo={}",waybillNo); return R.fail(405,"当前在库订单已进入配送流程"); } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java index 8569185e9..930bb1910 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java @@ -29,7 +29,7 @@ import com.logpm.warehouse.service.IWarehouseWaybillService; import com.logpm.warehouse.vo.WarehouseWaybillVO; import lombok.AllArgsConstructor; import lombok.extern.log4j.Log4j2; -import org.springblade.common.constant.order.OrderStatusConstant; +import org.springblade.common.constant.order.*; import org.springblade.common.constant.TenantNum; import org.springblade.common.exception.CustomerException; import org.springblade.core.mp.base.BaseServiceImpl; @@ -166,15 +166,18 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl