Browse Source

增加配送计划整车字段、客户地址BUG修复

dist.1.2.0^2
汤建军 6 months ago
parent
commit
107c645576
  1. 8
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionDeliveryListEntity.java
  2. 4
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java
  3. 9
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java
  4. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java
  5. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionDeliveryAllocationDTO.java
  6. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java
  7. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

8
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionDeliveryListEntity.java

@ -279,10 +279,16 @@ public class DistributionDeliveryListEntity extends TenantEntity {
/**
* 签收件数
*/
@ApiModelProperty(value = "客户名称")
@ApiModelProperty(value = "签收数量")
@TableField(exist = false)
private Integer signingNumber;
/**
* 签收件数
*/
@ApiModelProperty(value = "是否整车")
private Integer isAll;

4
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java

@ -81,10 +81,6 @@ import static org.springblade.common.constant.DictBizConstant.OPEN_ORDER_PAY_WAY
public class BasicdataClientLogServiceImpl extends BaseServiceImpl<BasicdataClientLogMapper, BasicdataClientLogEntity> implements IBasicdataClientLogService {
@PostConstruct
public void intt(){
log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>11111111");
}
@Override

9
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java

@ -170,6 +170,15 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl<BasicdataClientM
if (!flag){
log.info(">>>>>>>>>>>>>>>>>>>>>>>记录客户修改日志操作失败");
}
if (Objects.isNull(basicdataClient.getBladeRegionProvinceId())){
basicdataClient.setBladeRegionProvinceId("");
}
if (Objects.isNull(basicdataClient.getBladeRegionAreaId())){
basicdataClient.setBladeRegionAreaId("");
}
if (Objects.isNull(basicdataClient.getBladeRegionCityId())){
basicdataClient.setBladeRegionCityId("");
}
//修改
this.updateById(basicdataClient);
List<BasicdataStoreBusinessEntity> list = basicdataStoreBusinessService.list(Wrappers.<BasicdataStoreBusinessEntity>query().lambda()

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java

@ -71,7 +71,7 @@ import java.util.Objects;
*/
@RestController
@AllArgsConstructor
@RequestMapping("/deliveryList")
@RequestMapping(value = "/deliveryList",produces = "application/json; charset=UTF-8")
@Api(value = "配送管理", tags = "配送管理接口")
@Slf4j
public class DistributionDeliveryListController extends BladeController {
@ -252,7 +252,7 @@ public class DistributionDeliveryListController extends BladeController {
@GetMapping("/page")
@ApiOperationSupport(order = 3)
@ApiOperation(value = "分页", notes = "传入distributionDeliveryList")
public R<IPage<DistributionDeliveryListVO>> page(DistributionDeliveryListDTO distributionDeliveryList, Query query) {
public R<IPage<DistributionDeliveryListVO>> page( DistributionDeliveryListDTO distributionDeliveryList, Query query) {
IPage<DistributionDeliveryListEntity> pages = distributionDeliveryListService.selectDistributionDeliveryListPage(Condition.getPage(query), distributionDeliveryList);
return R.data(DistributionDeliveryListWrapper.build().pageVO(pages));
}

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionDeliveryAllocationDTO.java

@ -93,4 +93,11 @@ public class DistributionDeliveryAllocationDTO {
private BigDecimal price;
/**
* 是否整车
*/
@ApiModelProperty(value = "是否整车")
private Integer isAll;
}

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

@ -3399,12 +3399,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
deliveryListEntity.setDeliveryNumber(deliveryPackageTotal.get());
deliveryListEntity.setCustomersNumber(clientTotal.get());
deliveryListEntity.setTaskTime(deliveryListDTO.getTaskTime());
deliveryListEntity.setIsAll(deliveryListDTO.getIsAll());
//对配送进行更改
this.updateById(deliveryListEntity);
//对修改计划下的所有包件进行维护
// // 执行发送推送
// distributionReservationService.createBusinessPreConversionQueue(deliveryListEntity.getId());
@ -3867,6 +3865,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
deliveryListEntity.setDeliveryNumber(packageTotal.get());
deliveryListEntity.setInventoryNub(inventoryTotal.get());
deliveryListEntity.setCustomersNumber(clientTotal.get());
deliveryListEntity.setIsAll(deliveryListDTO.getIsAll());
//对配送进行更改
this.updateById(deliveryListEntity);
//进行日志记录

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

@ -1443,6 +1443,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
distributionDeliveryListEntity.setType(DistributionTypeConstant.shipie.getValue());
distributionDeliveryListEntity.setOrderCode(String.join(",", hashSet));
distributionDeliveryListEntity.setNoteNumber(deliveryListMa());
distributionDeliveryListEntity.setIsAll(allocationDTO.getIsAll());
distributionDeliveryListEntity.setDeliveryListLoadingStatus(DeliveryLoadingStatusConstant.weizhuangche.getValue());
String taskTime = allocationDTO.getTaskTime();
if (Func.isNotEmpty(allocationDTO.getRemarks())) {
@ -2637,6 +2638,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
distributionDeliveryListEntity.setCustomersNumber(clientTotal.get());
distributionDeliveryListEntity.setDeliveryListLoadingStatus(DeliveryLoadingStatusConstant.weizhuangche.getValue());
distributionDeliveryListEntity.setWarehouseId(myCurrentWarehouse.getId());
distributionDeliveryListEntity.setIsAll(allocationDTO.getIsAll());
distributionDeliveryListService.updateById(distributionDeliveryListEntity);
//推送信息至运单追中日志
if (!aaa.isEmpty()) {

Loading…
Cancel
Save