Browse Source

Merge remote-tracking branch 'origin/dev' into dev

training
caoyizhong 1 year ago
parent
commit
4e026349e2
  1. 16
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java
  2. 14
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java
  3. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java
  4. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java
  5. 18
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml
  6. 9
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java
  7. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java
  8. 15
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java
  9. 18
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java
  10. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java
  11. 21
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java
  12. 11
      blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtFactoryDataServiceImpl.java
  13. 8
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

16
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java

@ -16,6 +16,7 @@
*/ */
package com.logpm.distribution.controller; package com.logpm.distribution.controller;
import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO;
import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.entity.DistributionAddvalueEntity;
import com.logpm.distribution.excel.DistributionAddvalueExcel; import com.logpm.distribution.excel.DistributionAddvalueExcel;
import com.logpm.distribution.service.IDistributionAddvalueService; import com.logpm.distribution.service.IDistributionAddvalueService;
@ -52,7 +53,7 @@ import javax.servlet.http.HttpServletResponse;
*/ */
@RestController @RestController
@AllArgsConstructor @AllArgsConstructor
@RequestMapping("addvalue/distributionAddvalue") @RequestMapping("/addvalue")
@Api(value = "配送增值服务表", tags = "配送增值服务表接口") @Api(value = "配送增值服务表", tags = "配送增值服务表接口")
public class DistributionAddvalueController extends BladeController { public class DistributionAddvalueController extends BladeController {
@ -147,4 +148,17 @@ public class DistributionAddvalueController extends BladeController {
ExcelUtil.export(response, "配送增值服务表数据" + DateUtil.time(), "配送增值服务表数据表", list, DistributionAddvalueExcel.class); ExcelUtil.export(response, "配送增值服务表数据" + DateUtil.time(), "配送增值服务表数据表", list, DistributionAddvalueExcel.class);
} }
// /**
// * 查询
// */
// @PostMapping("/addvalueInfoList")
// @ApiOperationSupport(order = 2)
// @ApiOperation(value = "分页", notes = "传入distributionAddvalue")
// public R addvalueInfoList(@ApiIgnore @RequestBody DistributionAppAddvalueDTO distributionAddvalue) {
// R r = distributionAddvalueService.editAddvalueInfo(distributionAddvalue);
// return r;
// }
} }

14
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java

@ -19,6 +19,7 @@ package com.logpm.distribution.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.distribution.dto.DistributionAddvalueDTO;
import com.logpm.distribution.dto.DistributionReservationStocklistDTO; import com.logpm.distribution.dto.DistributionReservationStocklistDTO;
import com.logpm.distribution.dto.DistributionSignforDTO; import com.logpm.distribution.dto.DistributionSignforDTO;
import com.logpm.distribution.entity.DistributionSignforEntity; import com.logpm.distribution.entity.DistributionSignforEntity;
@ -233,4 +234,17 @@ public class DistributionSignforController extends BladeController {
ExcelUtil.export(response, "签收管理数据" + DateUtil.time(), "签收管理数据表", list, DistributionSignforExcel.class); ExcelUtil.export(response, "签收管理数据" + DateUtil.time(), "签收管理数据表", list, DistributionSignforExcel.class);
} }
/**
* 签收管理 删除
*/
@PostMapping("/addvalueInfoList")
@ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids")
public R addvalueInfoList(@RequestBody DistributionAddvalueDTO distributionAddvalueDTO) {
R r = distributionSignforService.getAddvalueInfoList(distributionAddvalueDTO);
return r;
}
} }

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java

@ -31,4 +31,9 @@ import lombok.EqualsAndHashCode;
public class DistributionAddvalueDTO extends DistributionAddvalueEntity { public class DistributionAddvalueDTO extends DistributionAddvalueEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 签收ID
*/
private Long signforId;
} }

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java

@ -19,6 +19,7 @@ package com.logpm.distribution.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.distribution.dto.DistributionAddvalueDTO;
import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.entity.DistributionAddvalueEntity;
import com.logpm.distribution.entity.DistributionAddvaluePackageEntity; import com.logpm.distribution.entity.DistributionAddvaluePackageEntity;
import com.logpm.distribution.excel.DistributionAddvalueExcel; import com.logpm.distribution.excel.DistributionAddvalueExcel;
@ -73,6 +74,13 @@ public interface DistributionAddvalueMapper extends BaseMapper<DistributionAddva
*/ */
List<DistributionAddvalueVO> addvalueInfo(@Param("reservationId")Long reservationId); List<DistributionAddvalueVO> addvalueInfo(@Param("reservationId")Long reservationId);
/**
* 查询签收列表客户的增值服务项
* @param distributionAddvalueDTO
* @return
*/
DistributionAddvalueVO getAddvalueBySignfor(@Param("par")DistributionAddvalueDTO distributionAddvalueDTO);
// /** // /**
// * 删除增值服务 // * 删除增值服务
// * @param reservationId // * @param reservationId

18
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml

@ -72,5 +72,23 @@
GROUP BY ldad.fee,ldad.num,ldad.flool_num,ldad.distance,ldad.id GROUP BY ldad.fee,ldad.num,ldad.flool_num,ldad.distance,ldad.id
</select> </select>
<select id="getAddvalueBySignfor" resultType="com.logpm.distribution.vo.DistributionAddvalueVO">
SELECT DISTINCT
lda.addvalue_id,
group_concat(DISTINCT ldad.fee) AS fee,
group_concat(DISTINCT ldad.num) AS num,
group_concat(DISTINCT ldad.id) AS addvalueDetailId,
group_concat(DISTINCT ldad.flool_num) AS floolNum,
group_concat(DISTINCT ldad.distance) AS distance,
group_concat( ldap.package_id SEPARATOR ',' ) AS packageListIds
FROM
logpm_distribution_signfor AS lds
INNER JOIN logpm_distribution_addvalue lda ON lds.reservation_id = lda.ref_id
INNER JOIN logpm_distribution_addvalue_detail ldad ON lda.id = ldad.addvalue_id
INNER JOIN logpm_distribution_addvalue_package ldap ON ldad.id = ldap.addvalue_detail_id
WHERE lds.id = #{par.signforId} and lda.addvalue_id = #{par.addvalueId}
GROUP BY
lda.id
</select>
</mapper> </mapper>

9
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java

@ -19,6 +19,7 @@ package com.logpm.distribution.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.logpm.distribution.dto.DistributionAddvalueDTO;
import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO; import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO;
import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.entity.DistributionAddvalueEntity;
import com.logpm.distribution.entity.DistributionAddvaluePackageEntity; import com.logpm.distribution.entity.DistributionAddvaluePackageEntity;
@ -103,4 +104,12 @@ public interface IDistributionAddvalueService extends IService<DistributionAddva
* @return * @return
*/ */
R addvalueInfo(DistributionAppAddvalueDTO distributionAppAddvalueDTO); R addvalueInfo(DistributionAppAddvalueDTO distributionAppAddvalueDTO);
// /**
// * 签收列表查看对应的增值服务列表信息
// * @param distributionAddvalueDTO
// * @return
// */
// List<DistributionAddvaluePackageEntity> getAddvalueBySignfor(DistributionAddvalueDTO distributionAddvalueDTO);
} }

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java

@ -19,6 +19,7 @@ package com.logpm.distribution.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.logpm.distribution.bean.Resp; import com.logpm.distribution.bean.Resp;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.distribution.dto.DistributionAddvalueDTO;
import com.logpm.distribution.dto.DistributionReservationStocklistDTO; import com.logpm.distribution.dto.DistributionReservationStocklistDTO;
import com.logpm.distribution.dto.DistributionSignforDTO; import com.logpm.distribution.dto.DistributionSignforDTO;
import com.logpm.distribution.dto.DistrilbutionAppsignforDTO; import com.logpm.distribution.dto.DistrilbutionAppsignforDTO;
@ -143,4 +144,11 @@ public interface IDistributionSignforService extends BaseService<DistributionSig
* @return * @return
*/ */
List<DistributionReservationStocklistVO> signforInventoryList(Long signforId); List<DistributionReservationStocklistVO> signforInventoryList(Long signforId);
/**
* 查询签收对应的增值服务类型
* @param distributionAddvalueDTO
* @return
*/
R getAddvalueInfoList(DistributionAddvalueDTO distributionAddvalueDTO);
} }

15
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java

@ -21,6 +21,7 @@ import com.alibaba.druid.sql.visitor.functions.If;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.logpm.distribution.bean.Res; import com.logpm.distribution.bean.Res;
import com.logpm.distribution.bean.Resp; import com.logpm.distribution.bean.Resp;
import com.logpm.distribution.dto.DistributionAddvalueDTO;
import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO; import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO;
import com.logpm.distribution.entity.*; import com.logpm.distribution.entity.*;
import com.logpm.distribution.excel.DistributionAddvalueExcel; import com.logpm.distribution.excel.DistributionAddvalueExcel;
@ -411,4 +412,18 @@ public class DistributionAddvalueServiceImpl extends BaseServiceImpl<Distributio
return R.data(addvalueInfo); return R.data(addvalueInfo);
} }
// @Override
// public List<DistributionAddvaluePackageEntity> getAddvalueBySignfor(DistributionAddvalueDTO distributionAddvalueDTO) {
// DistributionAddvalueVO addvalueVO = distributionAddvalueMapper.getAddvalueBySignfor(distributionAddvalueDTO);
// if (Func.isNotEmpty(addvalueVO)){
// String packageListIds = addvalueVO.getPackageListIds();
// if (Func.isNotEmpty(packageListIds)){
// List<Long> longs = Func.toLongList(packageListIds);
// List<DistributionAddvaluePackageEntity> distributionAddvaluePackageEntities = distributionAddvaluePackageService.list(Wrappers.<DistributionAddvaluePackageEntity>query().lambda().in(DistributionAddvaluePackageEntity::getPackageId,longs).eq(DistributionAddvaluePackageEntity::getAddvalueDetailId,addvalueVO.getAddvalueDetailId()));
// addvalueVO.setPackageEntityList(distributionAddvaluePackageEntities);
// }
// }
// return R.data(addvalueVO);
// }
} }

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

@ -28,9 +28,7 @@ import com.logpm.basic.entity.BasicPrintTemplateEntity;
import com.logpm.basic.feign.IBasicPrintTemplateClient; import com.logpm.basic.feign.IBasicPrintTemplateClient;
import com.logpm.basicdata.entity.BasicdataDriverArteryEntity; import com.logpm.basicdata.entity.BasicdataDriverArteryEntity;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
import com.logpm.basicdata.feign.IBasicdataCarrierClient;
import com.logpm.basicdata.feign.IBasicdataDriverArteryClient; import com.logpm.basicdata.feign.IBasicdataDriverArteryClient;
import com.logpm.basicdata.feign.IBasicdataVehicleClient;
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; import com.logpm.basicdata.feign.IBasicdataWarehouseClient;
import com.logpm.distribution.bean.Resp; import com.logpm.distribution.bean.Resp;
import com.logpm.distribution.dto.*; import com.logpm.distribution.dto.*;
@ -76,7 +74,6 @@ import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
import org.springblade.core.redis.cache.BladeRedis;
import org.springblade.core.secure.BladeUser; import org.springblade.core.secure.BladeUser;
import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
@ -111,7 +108,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
private final IDistributionReservationStocklistService distributionReservationStocklistService; private final IDistributionReservationStocklistService distributionReservationStocklistService;
private final IDistributionReservationPackageService distributionReservationPackageService; private final IDistributionReservationPackageService distributionReservationPackageService;
private final DistributionReservationPackageMapper distributionReservationPackageMapper; private final DistributionReservationPackageMapper distributionReservationPackageMapper;
private final DistributionParcelListMapper distributionParcelListMapper;
private final IDistributionParcelListService distributionParcelListService; private final IDistributionParcelListService distributionParcelListService;
private final DistributionLoadscanMapper distributionLoadscanMapper; private final DistributionLoadscanMapper distributionLoadscanMapper;
private final DistributionLoadscanServiceImpl distributionLoadscanService; private final DistributionLoadscanServiceImpl distributionLoadscanService;
@ -131,10 +127,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
private final DistributionReservationStockarticleMapper distributionReservationStockarticleMapper; private final DistributionReservationStockarticleMapper distributionReservationStockarticleMapper;
private final DistributionStockupMapper distributionStockupMapper; private final DistributionStockupMapper distributionStockupMapper;
private final IDistributionStockupInfoService distributionStockupInfoService; private final IDistributionStockupInfoService distributionStockupInfoService;
private final DistributionStockupInfoMapper distributionStockupInfoMapper;
private final DistributionStockMapper distributionStockMapper; private final DistributionStockMapper distributionStockMapper;
private final DistributionLoadscaninvnMapper distributionLoadscaninvnMapper; private final DistributionLoadscaninvnMapper distributionLoadscaninvnMapper;
private final BladeRedis bladeRedis;
private final IDistributionAsyncService distributionAsyncService; private final IDistributionAsyncService distributionAsyncService;
private final IDictBizClient dictBizClient; private final IDictBizClient dictBizClient;
private final IBasicdataDriverArteryClient iBasicdataDriverArteryClient; private final IBasicdataDriverArteryClient iBasicdataDriverArteryClient;
@ -143,8 +137,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
private final DistributionStockListMapper distributionStockListMapper; private final DistributionStockListMapper distributionStockListMapper;
private final IWarehouseUpdownTypeClient warehouseUpdownTypeClient; private final IWarehouseUpdownTypeClient warehouseUpdownTypeClient;
private final IBasicPrintTemplateClient basicPrintTemplateClient; private final IBasicPrintTemplateClient basicPrintTemplateClient;
private final IBasicdataVehicleClient basicdataVehicleClient;
private final IBasicdataCarrierClient basicdataCarrierClient;
@Override @Override
public IPage<DistributionDeliveryListEntity> selectDistributionDeliveryListPage(IPage<DistributionDeliveryListEntity> page, DistributionDeliveryListDTO distributionDeliveryList) { public IPage<DistributionDeliveryListEntity> selectDistributionDeliveryListPage(IPage<DistributionDeliveryListEntity> page, DistributionDeliveryListDTO distributionDeliveryList) {
@ -1942,11 +1934,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
HashSet<String> consigneeAddress = new HashSet<>(); HashSet<String> consigneeAddress = new HashSet<>();
//运单客户收货单位 //运单客户收货单位
HashSet<String> consignee = new HashSet<>(); HashSet<String> consignee = new HashSet<>();
//运单号
HashSet<String> waybillNo = new HashSet<>();
clientTotal.getAndIncrement(); clientTotal.getAndIncrement();
if (Func.isEmpty(oldClient.get(k))) { if (Func.isEmpty(oldClient.get(k))) {
DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); DistributionReservationEntity reservationEntity = new DistributionReservationEntity();
reservationEntity.setWaybillNo(k); // reservationEntity.setWaybillNo(k);
reservationEntity.setReservationDate(reservationDate); reservationEntity.setReservationDate(reservationDate);
reservationEntity.setReservationStatus(ReservationStatusConstant.daipeisong.getValue()); reservationEntity.setReservationStatus(ReservationStatusConstant.daipeisong.getValue());
reservationEntity.setDeliveryType(DistributionTypeConstant.shangpei.getValue()); reservationEntity.setDeliveryType(DistributionTypeConstant.shangpei.getValue());
@ -1996,6 +1990,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
if (Func.isNotEmpty(s.getConsigneeAddress())) { if (Func.isNotEmpty(s.getConsigneeAddress())) {
consigneeAddress.add(s.getConsigneeAddress()); consigneeAddress.add(s.getConsigneeAddress());
} }
if (Func.isNotEmpty(s.getWaybillNumber())) {
waybillNo.add(s.getWaybillNumber());
}
DistributionReservationStockarticleEntity reservationStockarticleEntity = new DistributionReservationStockarticleEntity(); DistributionReservationStockarticleEntity reservationStockarticleEntity = new DistributionReservationStockarticleEntity();
//现在前端进行订单提交必然会携带包件信息 //现在前端进行订单提交必然会携带包件信息
List<DistributionParcelListEntity> packageListInfo = s.getPackageListInfo(); List<DistributionParcelListEntity> packageListInfo = s.getPackageListInfo();
@ -2109,6 +2106,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
if (Func.isNotEmpty(s.getServiceNumber())) { if (Func.isNotEmpty(s.getServiceNumber())) {
serviceNumber.add(s.getServiceNumber()); serviceNumber.add(s.getServiceNumber());
} }
if (Func.isNotEmpty(s.getWaybillNumber())) {
waybillNo.add(s.getWaybillNumber());
}
//此订单包件数量统计 //此订单包件数量统计
AtomicInteger orderPackageNum = new AtomicInteger(); AtomicInteger orderPackageNum = new AtomicInteger();
if (Func.isEmpty(oldOrder.get(s.getId()))) { if (Func.isEmpty(oldOrder.get(s.getId()))) {

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

@ -1381,6 +1381,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
stockupEntity.setStockupStatus(StockupStatusConstant.weibeihuo.getValue()); stockupEntity.setStockupStatus(StockupStatusConstant.weibeihuo.getValue());
stockupEntity.setAssignStatus(StockAssignStatusConstant.weizhipai.getValue()); stockupEntity.setAssignStatus(StockAssignStatusConstant.weizhipai.getValue());
} }
String trainNumberMa = trainNumberMa();
BladeUser user = AuthUtil.getUser(); BladeUser user = AuthUtil.getUser();
stockupEntity.setStockupUser(user.getUserName()); stockupEntity.setStockupUser(user.getUserName());
stockupEntity.setStockupUserId(user.getUserId()); stockupEntity.setStockupUserId(user.getUserId());
@ -1399,7 +1400,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
//4、维护配送表数据 //4、维护配送表数据
DistributionDeliveryListEntity distributionDeliveryListEntity = new DistributionDeliveryListEntity(); DistributionDeliveryListEntity distributionDeliveryListEntity = new DistributionDeliveryListEntity();
// String str = Func.random(7, RandomType.ALL) + DateUtil.today(); // String str = Func.random(7, RandomType.ALL) + DateUtil.today();
distributionDeliveryListEntity.setTrainNumber(trainNumberMa()); distributionDeliveryListEntity.setTrainNumber(trainNumberMa);
distributionDeliveryListEntity.setType(DistributionTypeConstant.shangpei.getValue()); distributionDeliveryListEntity.setType(DistributionTypeConstant.shangpei.getValue());
distributionDeliveryListEntity.setDeliveryStatus(DeliveryStatusConstant.daipeisong.getValue()); distributionDeliveryListEntity.setDeliveryStatus(DeliveryStatusConstant.daipeisong.getValue());
distributionDeliveryListEntity.setPrice(BigDecimal.ZERO); distributionDeliveryListEntity.setPrice(BigDecimal.ZERO);
@ -1561,7 +1562,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
deliveryPackageTotal.getAndAdd(reservationEntity.getReservationNum()); deliveryPackageTotal.getAndAdd(reservationEntity.getReservationNum());
DistributionSignforEntity distributionSignforEntity = new DistributionSignforEntity(); DistributionSignforEntity distributionSignforEntity = new DistributionSignforEntity();
distributionSignforEntity.setReservationId(reservationEntity.getId()); distributionSignforEntity.setReservationId(reservationEntity.getId());
distributionSignforEntity.setTrainNumber(trainNumberMa()); distributionSignforEntity.setTrainNumber(trainNumberMa);
distributionSignforEntity.setDeliveryId(distributionDeliveryListEntity.getId()); distributionSignforEntity.setDeliveryId(distributionDeliveryListEntity.getId());
distributionSignforService.save(distributionSignforEntity); distributionSignforService.save(distributionSignforEntity);
deliveryWarehouseName.add(reservationEntity.getWarehouseName()); deliveryWarehouseName.add(reservationEntity.getWarehouseName());

21
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -102,6 +102,9 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
private final DistributionReservationMapper distributionReservationMapper; private final DistributionReservationMapper distributionReservationMapper;
private final IDisStockListDetailService disStockListDetailService; private final IDisStockListDetailService disStockListDetailService;
private final IDistributionStockListService distributionStockListService; private final IDistributionStockListService distributionStockListService;
private final DistributionAddvalueMapper distributionAddvalueMapper;
private final IDistributionAddvalueService distributionAddvalueService;
private final IDistributionAddvaluePackageService distributionAddvaluePackageService;
@Override @Override
public IPage<DistributionSignforVO> selectDistributionSignforPage(IPage<DistributionSignforVO> page, DistributionSignforVO distributionSignfor) { public IPage<DistributionSignforVO> selectDistributionSignforPage(IPage<DistributionSignforVO> page, DistributionSignforVO distributionSignfor) {
@ -1384,5 +1387,23 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
return distributionReservationStocklistVOS; return distributionReservationStocklistVOS;
} }
@Override
public R getAddvalueInfoList(DistributionAddvalueDTO distributionAddvalueDTO) {
// List<DistributionAddvaluePackageEntity> addvaluePackageEntities = distributionAddvalueService.getAddvalueBySignfor(distributionAddvalueDTO);
DistributionAddvalueVO addvalueBySignfor = distributionAddvalueMapper.getAddvalueBySignfor(distributionAddvalueDTO);
if (Func.isNotEmpty(addvalueBySignfor)){
String packageListIds = addvalueBySignfor.getPackageListIds();
if (Func.isNotEmpty(packageListIds)){
List<Long> longs = Func.toLongList(packageListIds);
List<DistributionAddvaluePackageEntity> distributionAddvaluePackageEntities = distributionAddvaluePackageService.list(Wrappers.<DistributionAddvaluePackageEntity>query().lambda()
.in(DistributionAddvaluePackageEntity::getPackageId,longs)
.eq(DistributionAddvaluePackageEntity::getAddvalueDetailId,addvalueBySignfor.getAddvalueDetailId()));
addvalueBySignfor.setPackageEntityList(distributionAddvaluePackageEntities);
}
}
return R.data(addvalueBySignfor);
}
} }

11
blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtFactoryDataServiceImpl.java

@ -493,6 +493,12 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
logger.info("#############sendReceiveInfo: 未找到对应订单mainId={}", mainId); logger.info("#############sendReceiveInfo: 未找到对应订单mainId={}", mainId);
continue; continue;
} }
// 需要判断本次任务是否为中心仓的订单
if("转运仓".equals(mtFactoryOrderMain.getWarehouseType())){
// 转运仓的订单和签收不进行推送
logger.info("############# 转运仓的数据不进行推送 mtFactoryOrderMain={}", mtFactoryOrderMain);
continue;
}
MtReceiveContentDTO mtReceiveContentDTO = new MtReceiveContentDTO(); MtReceiveContentDTO mtReceiveContentDTO = new MtReceiveContentDTO();
mtReceiveContentDTO.setInvoiceOrderCode(mtFactoryOrderMain.getInvoiceOrderCode()); mtReceiveContentDTO.setInvoiceOrderCode(mtFactoryOrderMain.getInvoiceOrderCode());
@ -504,14 +510,15 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
mtReceiveContentDTOList.add(mtReceiveContentDTO); mtReceiveContentDTOList.add(mtReceiveContentDTO);
} }
logger.info("#############sendReceiveInfo:tag{}", 10); logger.info("#############mtReceiveContentDTOList: size {}", mtReceiveContentDTOList.size());
if(mtReceiveContentDTOList.size()==0){ if(mtReceiveContentDTOList.isEmpty()){
logger.info("############# 没有找到需要配推送的订单包件"); logger.info("############# 没有找到需要配推送的订单包件");
return R.success(""); return R.success("");
} }
//签收信息数据存入头部数据 //签收信息数据存入头部数据
mtReceiveDTO.setReceiveContentList(mtReceiveContentDTOList); mtReceiveDTO.setReceiveContentList(mtReceiveContentDTOList);

8
blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

@ -281,7 +281,11 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
log.info("############handleData: 数据处理开始"); log.info("############handleData: 数据处理开始");
analyzeData(resultArray); analyzeData(resultArray);
opOrderStatusLogEntity.setDataStatus(1); opOrderStatusLogEntity.setDataStatus(1);
} catch (Exception e) { } catch (CustomerException e) {
log.error(">>>> error {}", e.getMessage());
opOrderStatusLogEntity.setDataStatus(2);
}catch (Exception e) {
log.error(">>>> error {}", e.getMessage()); log.error(">>>> error {}", e.getMessage());
opOrderStatusLogEntity.setDataStatus(2); opOrderStatusLogEntity.setDataStatus(2);
@ -312,6 +316,8 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
String type = valueObject.getString("Type"); String type = valueObject.getString("Type");
if ("中转".equals(type)) { if ("中转".equals(type)) {
receivingOrderEntity.setType(1); receivingOrderEntity.setType(1);
log.warn("############handleData: 中转到货暂不接收");
throw new CustomerException(403,"中转到货暂不接收");
} else if ("配送".equals(type)) { } else if ("配送".equals(type)) {
receivingOrderEntity.setType(2); receivingOrderEntity.setType(2);
} else { } else {

Loading…
Cancel
Save