diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/DictBizConstant.java b/blade-biz-common/src/main/java/org/springblade/common/constant/DictBizConstant.java index 89719ca7a..7f40efa13 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/DictBizConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/DictBizConstant.java @@ -20,6 +20,8 @@ public class DictBizConstant { public static final String ORDER_PACKAGE_STATUS = "order_package_status";//配送包件状态 public static final String ORDER_PACKAGE_FREEZE_STATUS = "order_package_freeze_status";//包间冻结状态 + public static final String ORDER_PACKAGE_STOCKUP_STATUS = "order_package_stockup_status";//包间备货状态 + public static final String ORDER_PACKAGE_GROUNDING_STATUS = "order_package_grounding_status";//包间上架状态 diff --git a/blade-biz-common/src/main/java/org/springblade/common/serviceConstant/ServiceConstant.java b/blade-biz-common/src/main/java/org/springblade/common/serviceConstant/ServiceConstant.java index f44f3ae07..6ec8cb871 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/serviceConstant/ServiceConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/serviceConstant/ServiceConstant.java @@ -243,6 +243,16 @@ public interface ServiceConstant { //已签收 String ORDER_STATE_SEVEN = "70"; + /** + * 订单预约状态 + */ + //未预约 + String ORDER_RESERVATION_STATE_NOT="10"; + //部分预约 + String ORDER_RESERVATION_STATE_PART="20"; + //已预约 + String ORDER_RESERVATION_STATE_RESERVED="30"; + diff --git a/blade-biz-common/src/main/java/org/springblade/common/utils/CommonUtil.java b/blade-biz-common/src/main/java/org/springblade/common/utils/CommonUtil.java index 6afaff719..552fc31dc 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/utils/CommonUtil.java +++ b/blade-biz-common/src/main/java/org/springblade/common/utils/CommonUtil.java @@ -55,7 +55,7 @@ public class CommonUtil { public static String datoLongToString(Long dateTime,String format,String timeZone){ - if (StringUtils.isEmpty(timeZone)) { + if (!StringUtils.hasLength(timeZone)) { timeZone = "Asia/Shanghai"; } if (dateTime != null) { diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelDetailsEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelDetailsEntity.java index 44074a8fd..55df4f3eb 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelDetailsEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelDetailsEntity.java @@ -108,4 +108,6 @@ public class DistributionParcelDetailsEntity extends TenantEntity { @ApiModelProperty(value = "货位") private String goodsAllocation; + + } diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java index 0be56b338..3507afd80 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java @@ -188,6 +188,17 @@ public class DistributionParcelListEntity extends TenantEntity { @ApiModelProperty(value = "包件冻结状态") private String orderPackageFreezeStatus; + @ApiModelProperty(value = "包件冻结状态") + private String orderPackageReservationStatus; + + + + @ApiModelProperty(value = "备货状态") + private String orderPackageStockupStatus; + + @ApiModelProperty(value = "上架状态") + private String orderPackageGroundingStatus; + diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockListEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockListEntity.java index b51a701c2..eb1271086 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockListEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockListEntity.java @@ -125,6 +125,11 @@ public class DistributionStockListEntity extends TenantEntity { */ @ApiModelProperty(value = "入库时间") private Date warehousingTime; + /** + * 上架时间 + */ + @ApiModelProperty(value = "上架时间") + private Date groundingTime; /** * 拆包数 */ 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 0f800bb16..c1c02fb48 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 @@ -48,6 +48,19 @@ public class DistributionParcelListVO extends DistributionParcelListEntity { * 包件冻结状态 */ private String orderPackageFreezeStatusName; + /** + * 包件上架状态 + */ + private String orderPackageGroundingStatusName; + /** + * 包件备货状态 + */ + private String orderPackageStockupStatusName; + + /** + * 包件预约状态 + */ + private String orderPackageReservationStatusName; } diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockArticleVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockArticleVO.java index 216e278fb..410e675b6 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockArticleVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockArticleVO.java @@ -77,11 +77,7 @@ public class DistributionStockArticleVO extends DistributionStockArticleEntity { @ApiModelProperty(value = "冻结状态名称") private String freezeStatusName; - /** - * 上架状态 - */ - @ApiModelProperty(value = "上架状态名称") - private String groundingStatus; + @ApiModelProperty(value = "订单状态名称") private String orderStatusName; diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java index 0b3e984e2..0a58a9bd8 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingAppVO.java @@ -18,6 +18,8 @@ package com.logpm.distribution.vo; import com.logpm.distribution.entity.DistrilbutionBillLadingEntity; import com.logpm.distribution.vo.app.DistrilbutionAppBillLadingDetailVO; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; @@ -33,6 +35,7 @@ import java.util.List; */ @Data @EqualsAndHashCode(callSuper = true) +@ApiModel(value="自提实体", description="自提实体") public class DistrilbutionBillLadingAppVO extends DistrilbutionBillLadingEntity { private static final long serialVersionUID = 1L; @@ -42,33 +45,50 @@ public class DistrilbutionBillLadingAppVO extends DistrilbutionBillLadingEntity private Integer carType; private String carTypeStr; - + @ApiModelProperty(value = "提货状态") private String condition;//提货状态 + @ApiModelProperty(value = "提货状态") private String conditionStr;//提货状态 + @ApiModelProperty(value = "车牌号") - private String pickUpPlate;//车牌号 + private String conditions;//提货状态 + private String conditionsStr;//提货状态 + private String pickUpPlate;//车牌号 + @ApiModelProperty(value = "提货人") private String consignee;//提货人 - + @ApiModelProperty(value = "备货状态") private String stockupStatus;//备货状态 +// @ApiModelProperty(value = "分类") private String stockupStatusStr; - + @ApiModelProperty(value = "制单时间") private Date createTime;//制单时间 + @ApiModelProperty(value = "提货时间") private Date pickUpTime;//提货时间 - + @ApiModelProperty(value = "订单总数") private Integer orderNum;//订单总数 + @ApiModelProperty(value = "自提件数") private Integer planNum;//自提件数 + @ApiModelProperty(value = "签收总数") private Integer signedNum;//签收总数 + @ApiModelProperty(value = "签收总数") private Integer inventoryNum;//签收总数 - + @ApiModelProperty(value = "齐套总数") private Integer completeNum;//齐套总数 + @ApiModelProperty(value = "库存品id") private String stockListId;//库存品id + @ApiModelProperty(value = "库存数量") private Integer quantity;//库存数量 + @ApiModelProperty(value = "物品名称") private String descriptionGoods;//物品名称 + @ApiModelProperty(value = "单位") private String cargoUnit;//单位 + @ApiModelProperty(value = "sku") private String sku;//sku + @ApiModelProperty(value = "备货数量") private Integer deliveryNum;//备货数量 + @ApiModelProperty(value = "以扫备货数量") private Integer esauInventoryNum;//以扫备货数量 diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingOwnVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingOwnVO.java index bc03f94ae..04e4eb65b 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingOwnVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingOwnVO.java @@ -16,13 +16,10 @@ */ package com.logpm.distribution.vo; -import com.logpm.distribution.entity.DistributionDeliveryChargeEntity; import com.logpm.distribution.entity.DistrilbutionBillLadingEntity; import lombok.Data; import lombok.EqualsAndHashCode; -import java.util.List; - /** * 提货单 视图实体类 * @@ -34,7 +31,7 @@ import java.util.List; public class DistrilbutionBillLadingOwnVO extends DistrilbutionBillLadingEntity { private static final long serialVersionUID = 1L; - private String orderSelfNumbering; + private String orderCode; private String descriptionGoods; private Integer totalNumber; private String stockupStatus; @@ -42,7 +39,7 @@ public class DistrilbutionBillLadingOwnVO extends DistrilbutionBillLadingEntity private String stockipAllocation; private Integer esau; - private String packetBarCode; + private String orderPackageCode; private String firsts; private String second; private String thirdProduct; diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistrilbutionAppBillLadingDetailVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistrilbutionAppBillLadingDetailVO.java index 88a17dce5..e3bd1b1ef 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistrilbutionAppBillLadingDetailVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/DistrilbutionAppBillLadingDetailVO.java @@ -31,9 +31,9 @@ public class DistrilbutionAppBillLadingDetailVO implements Serializable { private static final long serialVersionUID = 1L; private Long stockArticleId; - private String orderSelfNumbering; + private String orderCode; - private String packetBarCode; + private String orderPackageCode; private Integer scanStatus;//扫码状态 private String scanStatusStr;//扫码状态 diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java index 92874bdb5..aea0c76fc 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBillLadingAppController.java @@ -23,6 +23,8 @@ import com.logpm.distribution.service.IDistrilbutionBillLadingService; import com.logpm.distribution.vo.DistrilbutionBillLadingAppVO; import com.logpm.distribution.vo.app.DistrilbutionAppBillLadingOrderMainVO; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import lombok.extern.log4j.Log4j2; @@ -92,6 +94,7 @@ public class DistributionBillLadingAppController extends BladeController { @ApiOperation(value = "自提订单列表库存品",notes = "自提订单列表库存品") @GetMapping("/getInventory") @ApiOperationSupport(order = 1) + @ApiImplicitParam(name = "id",value ="自提单ID") public R> getInventory(@ApiIgnore @RequestParam Map distrilbutionBillLading, Query query){ IPage ladingAppVOIPage = distrilbutionBillLadingService.getInventory(Condition.getPage(query),distrilbutionBillLading); return R.data(ladingAppVOIPage); @@ -100,13 +103,19 @@ public class DistributionBillLadingAppController extends BladeController { @ApiOperation(value = "自提订单列表库存品详细包件",notes = "自提订单列表库存品详细包件") @GetMapping("/getInventoryNum") @ApiOperationSupport(order = 1) + @ApiImplicitParam(name = "id",value ="自提单ID") public R> getInventoryNum(@ApiIgnore @RequestParam Map distrilbutionBillLading, Query query){ IPage ladingAppVOIPage = distrilbutionBillLadingService.getInventoryNum(Condition.getPage(query),distrilbutionBillLading); return R.data(ladingAppVOIPage); } - @ApiOperation(value = "扫描id") + @ApiOperation(value = "自提扫描id") @PutMapping("/scan") + @ApiImplicitParams({ + @ApiImplicitParam(name = "id", value = "自提单ID", required = true), + @ApiImplicitParam(name = "coding", value = "包条码", required = true), + @ApiImplicitParam(name = "type", value = "类型 4 订单 3 库存品", required = true) + }) public R getScan(@ApiIgnore @RequestParam Map distrilbutionBillLading){ R scan = distrilbutionBillLadingService.getScan(distrilbutionBillLading); return scan; diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java index 30f5773cf..06cd48a4a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java @@ -29,6 +29,7 @@ import org.springblade.core.mp.support.Query; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; +import org.springblade.core.tool.utils.ObjectUtil; import org.springframework.web.bind.annotation.*; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; @@ -86,8 +87,11 @@ public class DistributionStockupController extends BladeController { @ApiOperation(value = "详情", notes = "传入distributionStockup") public R> detailReservationOwn(@ApiIgnore @RequestParam Map distributionStockup, Query query) { Object o = distributionStockup.get("id"); - IPage detail = distributionStockupService.detailReservationOwn(Condition.getPage(query),Long.parseLong((String) o)); - return R.data(detail); + if(ObjectUtil.isNotEmpty(o)){ + IPage detail = distributionStockupService.detailReservationOwn(Condition.getPage(query),Long.parseLong((String) o)); + return R.data(detail); + } + return R.data(null); } /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index a7c26cdbd..22298368e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -722,7 +722,7 @@ select DISTINCT ldrp.packet_bar_code packetBarCode, - ldsa.order_self_numbering orderSelfNumbering, + ldsa.order_code orderCode, ldl.scan_status scanStatus FROM logpm_distribution_reservation_package ldrp @@ -746,15 +746,15 @@ LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id =ldpl.id lds.delivery_id = #{param.id} - - and ldsa.order_self_numbering = #{param.orderSelfNumbering} + + and ldsa.order_code = #{param.orderCode} SELECT - ldsa.order_self_numbering orderSelfNumbering, + ldsa.order_code orderCode, ldsa.complete_set completeSet, ldrs.reservation_num reservationNum, (SELECT COALESCE(COUNT(*), 0) from logpm_distribution_loadscan ldl WHERE ldl.order_id =ldsa.id and ldl.scan_status !=1 and ldl.signfor_state =2 ) signNub 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 2f1500e89..9d364581d 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 @@ -53,15 +53,15 @@ select CONCAT(ldpl.cargo_title,'-',ldpl.shelf_title,'-',ldpl.goods_allocation) allocation, - ldsa.order_self_numbering orderCode, + ldsa.order_code orderCode, ldrs.stock_article_id stockArticleId, ldpl.pallet pallet, count(ldpl.id) planNum, @@ -184,7 +184,7 @@ group by ldpl.cargo_title, ldpl.shelf_title, ldpl.goods_allocation, - ldrs.stock_article_code, + ldsa.order_code, ldrs.stock_article_id, ldpl.pallet @@ -439,7 +439,7 @@ ldsl.reserve3, ldsl.reserve4, ldsl.reserve5, - ldsl.order_self_numbering, + ldsl.order_code, ldsl.incoming_batch, ldsl.service_number, ldsl.material_id, 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 4c52b2002..ca8a8cfd8 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 @@ -93,7 +93,6 @@ ldpl.warehouse_id, ldpl.warehouse, ldpl.conditions, - ldpl.packet_bar_code, ldpl.cargo_title, ldpl.shelf_title, ldpl.goods_allocation, @@ -105,7 +104,7 @@ ldpl.quantity, ldpl.train_number, ldpl.stock_article_id, - ldpl.order_self_numbering, + ldpl.order_code, ldpl.service_number, ldpl.material_name, ldpl.material_code, diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml index cbd11f5ce..6b1ba75ef 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml @@ -81,8 +81,8 @@ ) and ldsa.is_deleted = 0 and ldsa.type_service ='2' - - and ldsa.order_self_numbering == #{distributionStockArticleVO.orderSelfNumbering} + + and ldsa.order_code == #{distributionStockArticleVO.orderCode} diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml index a1a2f4696..3a40a7a77 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml @@ -124,7 +124,7 @@ - select s.coding packageCode, s.goods_name name @@ -136,13 +136,7 @@ where ldr.is_deleted = 0 and s.id is not null and ldr.id = #{reservationId} - and ldsl.description_goods = #{descriptionGoods} - and ldsl.storage_location = #{allocation} - and ldsl.tray_name = #{pallet} - and ldsl.sku = #{sku} - and ldsl.cargo_norms = #{cargoNorms} - and ldsl.cargo_unit = #{cargoUnit} - + and ldrs.stocklist_id = #{stockListId} @@ -204,12 +206,13 @@ LEFT JOIN logpm_distribution_stockup lds on lds.id = ldsi.stockup_id ldsi.stockup_id = #{ id } + and ldsi.is_deleted = 0 diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java index b43adbf47..f9243be46 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java @@ -17,6 +17,7 @@ package com.logpm.distribution.service.impl; import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; @@ -241,6 +242,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl qw = new QueryWrapper().lambda().eq(DistributionParcelListEntity::getStockArticleId, s.getId()); + List parcelListEntities = distributionParcelListService.getBaseMapper().selectList(qw); + if (packageList.size() == parcelListEntities.size()){ + //这里就是表示进行了包件选取的操作,但是选取的包件数量为全部 + s.setReservationStatus(ServiceConstant.ORDER_RESERVATION_STATE_RESERVED); + } } distributionReservationStockarticleEntity.setReservationNum(packageNum.get()); //订单无数据源,不需要进行包件信息维护 //修改订单状态为已预约 // s.setOrderStatus(ServiceConstant.ORDER_STATE_ALREADY_RESERVATION); s.setReservationStatus(30+"");// TODO 需要根据订单预约的包件数量是否等于订单总包件数量,存入 部分预约和已预约的状态值 + stockArticleCount.getAndAdd(s.getReservationNum()); DistributionStockArticleEntity stockArticleEntity = Func.copy(s, DistributionStockArticleEntity.class); -// if (stockArticleEntity.getStoreId()==-1){ -// -// } -// if (stockArticleEntity.getMallId()==-1){ -// -// } -// if (stockArticleEntity.getFee().equals(-1)){ -// -// } -// if (stockArticleEntity.getStoreId()==-1){ -// -// } -// if (stockArticleEntity.getStoreId()==-1){ -// -// } distributionStockArticleService.updateById(s); //拼接订单自编号 arrayList.add(s.getOrderCode()); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java index 1359a6c7f..1b2e1ede9 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java @@ -833,7 +833,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl{ DistrilbutionAppBillLadingDetailVO billLadingDetailVO = new DistrilbutionAppBillLadingDetailVO(); - billLadingDetailVO.setPacketBarCode(di.getCoding()); + billLadingDetailVO.setOrderPackageCode(di.getCoding()); billLadingDetailVO.setScanStatus(Integer.parseInt(di.getConditions())); switch (di.getConditions()){ case "2": diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionParcelListWrapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionParcelListWrapper.java index 777671889..7254e4d37 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionParcelListWrapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionParcelListWrapper.java @@ -28,6 +28,10 @@ public class DistributionParcelListWrapper extends BaseEntityWrapper