Browse Source

代码提交

dist.1.3.0
汤建军 4 months ago
parent
commit
5c527d419c
  1. 4
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DisStockListDetailVO.java
  2. 4
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/ReservationAppDetailVO.java
  3. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml
  4. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryInfoServiceImpl.java
  5. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java
  6. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionDisStockListWrapper.java

4
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DisStockListDetailVO.java

@ -83,6 +83,10 @@ public class DisStockListDetailVO extends DisStockListDetailEntity {
* 品牌 * 品牌
*/ */
private String brandName; private String brandName;
/**
* 品牌
*/
private String stockupStatusName;

4
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/ReservationAppDetailVO.java

@ -42,6 +42,10 @@ public class ReservationAppDetailVO implements Serializable {
private Integer loadingNub; private Integer loadingNub;
private Integer orderNum;
private Integer planNum;
private List<DisStockListDetailVO> disStockListDetailVOS ; private List<DisStockListDetailVO> disStockListDetailVOS ;

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml

@ -995,8 +995,8 @@ FROM
'否' '否'
) AS isStock, ) AS isStock,
IFNULL(( SELECT SUM( loaded_nub ) FROM logpm_distribution_loadscan WHERE reservation_id = ldr.id AND is_deleted = 0 AND scan_status != 1 ), 0 ) + IFNULL(( SELECT SUM( loaded_nub ) FROM logpm_distribution_loadscaninvn WHERE reservation_id = ldr.id AND scan_status != 1 AND is_deleted = 0 ), 0 ) AS loadingNub, IFNULL(( SELECT SUM( loaded_nub ) FROM logpm_distribution_loadscan WHERE reservation_id = ldr.id AND is_deleted = 0 AND scan_status != 1 ), 0 ) + IFNULL(( SELECT SUM( loaded_nub ) FROM logpm_distribution_loadscaninvn WHERE reservation_id = ldr.id AND scan_status != 1 AND is_deleted = 0 ), 0 ) AS loadingNub,
(ldr.reservation_num + ldr.reservation_stock_list_num) AS planNum (ldr.reservation_num + ldr.reservation_stock_list_num) AS planNum,
IFNULL((SELECT COUNT(1) FROM logpm_distribution_reservation_stockarticle WHERE reservation_id = ldr.id AND is_deleted = 0 AND stock_article_status != 2),0 ) AS orderNum
FROM FROM
logpm_distribution_reservation AS ldr logpm_distribution_reservation AS ldr
WHERE WHERE

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryInfoServiceImpl.java

@ -931,6 +931,7 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib
sd.setCargoUnit(distributionStockListEntity.getCargoUnit()); sd.setCargoUnit(distributionStockListEntity.getCargoUnit());
sd.setCargoNorms(distributionStockListEntity.getCargoNorms()); sd.setCargoNorms(distributionStockListEntity.getCargoNorms());
sd.setCargoNumber(distributionStockListEntity.getCargoNumber()); sd.setCargoNumber(distributionStockListEntity.getCargoNumber());
sd.setCargoNumber(distributionStockListEntity.getCargoNumber());
} }
}); });
reservationAppDetailVO.setDisStockListDetailVOS(disStockListDetailVOS); reservationAppDetailVO.setDisStockListDetailVOS(disStockListDetailVOS);

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -973,7 +973,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
loadscanEntity.setPackageNub(parcelListEntity.getQuantity()); loadscanEntity.setPackageNub(parcelListEntity.getQuantity());
loadscanEntity.setPackageId(parcelListEntity.getId()); loadscanEntity.setPackageId(parcelListEntity.getId());
BladeUser user = AuthUtil.getUser(); BladeUser user = AuthUtil.getUser();
// loadscanEntity.setScanUser(user.getUserName());
loadscanEntity.setScanUser(user.getNickName()); loadscanEntity.setScanUser(user.getNickName());
loadscanEntity.setWarehouseId(myCurrentWarehouse.getId()); loadscanEntity.setWarehouseId(myCurrentWarehouse.getId());
loadscanEntity.setWarehouseName(myCurrentWarehouse.getName()); loadscanEntity.setWarehouseName(myCurrentWarehouse.getName());
@ -4698,7 +4697,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
if (Integer.parseInt(IsOrNoConstant.yes.getValue()) == distributionDeliveryListEntity.getIsStart()) { if (Integer.parseInt(IsOrNoConstant.yes.getValue()) == distributionDeliveryListEntity.getIsStart()) {
return Resp.scanFail("该车次已发车!", "该车次已发车!"); return Resp.scanFail("该车次已发车!", "该车次已发车!");
} }
BladeUser user = AuthUtil.getUser();
Boolean isDriverFlag = judgeIsDriver(user); Boolean isDriverFlag = judgeIsDriver(user);
if (!isDriverFlag){ if (!isDriverFlag){
return Resp.scanFail("当前操作人必须是司机!", "当前操作人必须是司机!"); return Resp.scanFail("当前操作人必须是司机!", "当前操作人必须是司机!");
@ -4810,9 +4808,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
distributionPlanLogEntity.setOperator(user.getNickName()); distributionPlanLogEntity.setOperator(user.getNickName());
distributionPlanLogEntity.setType(3); distributionPlanLogEntity.setType(3);
distributionPlanLogService.save(distributionPlanLogEntity); distributionPlanLogService.save(distributionPlanLogEntity);
} }
/** /**

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/wrapper/DistributionDisStockListWrapper.java

@ -26,7 +26,10 @@ public class DistributionDisStockListWrapper extends BaseEntityWrapper<DisStockL
public DisStockListDetailVO entityVO(DisStockListDetailEntity entity) { public DisStockListDetailVO entityVO(DisStockListDetailEntity entity) {
DisStockListDetailVO disStockListDetailVO = Objects.requireNonNull(BeanUtil.copy(entity, DisStockListDetailVO.class)); DisStockListDetailVO disStockListDetailVO = Objects.requireNonNull(BeanUtil.copy(entity, DisStockListDetailVO.class));
disStockListDetailVO.setLoadingStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_LOADING_STATUS, entity.getStockLockingStatus())); disStockListDetailVO.setLoadingStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_LOADING_STATUS, entity.getStockLockingStatus()));
// disStockListDetailVO.setSigningStatusName(DictBizCache.getValue(DictBizConstant.OPS, entity.getStockSignfoStatus())); disStockListDetailVO.setLoadingStatusName(DictBizCache.getValue(DictBizConstant.ORDER_PACKAGE_LOADING_STATUS, entity.getStockLockingStatus()));
disStockListDetailVO.setSigningStatusName( entity.getStockSignfoStatus().equals("20")?"已签收":"待签收");
disStockListDetailVO.setStockupStatusName(DictBizCache.getValue(DictBizConstant.RESERVATION_STOCKUP_STATUS,entity.getStockStatus()));
return disStockListDetailVO; return disStockListDetailVO;
} }
} }

Loading…
Cancel
Save