Browse Source

Merge branch 'dev' into pre-production

single_db
pref_mail@163.com 1 year ago
parent
commit
af9f190629
  1. 2
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml
  2. 13
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java
  3. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java
  4. 16
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java
  5. 2
      blade-service/logpm-patch/src/main/java/com/logpm/patch/mapper/SyncServiceTypeMapper.xml
  6. 1
      blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncServiceTypeServiceImpl.java

2
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml

@ -291,7 +291,7 @@
lwtg.tray_code trayCode,
lwug.position_code positionCode,
SUM(lwug.num) num,
GROUP_CONCAT(DISTINCT lwug.create_time SEPARATOR '、') upTime,
GROUP_CONCAT( DISTINCT DATE_FORMAT( lwug.create_time, '%Y-%m-%d %H:%i' ) SEPARATOR '、' ) AS upTime,
GROUP_CONCAT(DISTINCT lwug.create_user SEPARATOR '、') upUser,
(SELECT GROUP_CONCAT( DISTINCT ldsli.order_code) order_code FROM logpm_distribution_stock_list_info ldsli WHERE
ldsli.incoming_batch = ldsl.incoming_batch

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

@ -30,6 +30,7 @@ import com.logpm.distribution.entity.DistributionSignPrintEntity;
import com.logpm.distribution.entity.DistributionSignforEntity;
import com.logpm.distribution.excel.DistributionSignforExcel;
import com.logpm.distribution.excel.DistributionSignforOwnExcel;
import com.logpm.distribution.service.IDistributionAsyncService;
import com.logpm.distribution.service.IDistributionReservationService;
import com.logpm.distribution.service.IDistributionSignforService;
import com.logpm.distribution.service.impl.DistributionAddvalueServiceImpl;
@ -82,6 +83,8 @@ public class DistributionSignforController extends BladeController {
private final IBasicdataWarehouseClient warehouseClient;
private final IDistributionAsyncService distributionAsyncService;
/**
* 签收管理 详情
*/
@ -268,9 +271,18 @@ public class DistributionSignforController extends BladeController {
@ApiOperation(value = "新增", notes = "传入distributionSignfor")
public R oneclick(@Valid @RequestBody DistributionSignforDTO distributionSignfor) {
distributionSignfor.setIsClerk(true);
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
R r = distributionSignforService.oneclick(distributionSignfor);
List<String> packageCodes = (List<String>)r.getData();
try{
Map<String,Object> data = (Map<String, Object>) r.getData();
if (Func.isNotEmpty(data)){
List<Long> packageIds = (List<Long>) data.get("packageIds");
Long signId = (Long) data.get("signId");
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId());
distributionAsyncService.sendReviewFactory(signId,myCurrentWarehouse.getName() ,myCurrentWarehouse.getId());
}
String orderPackageCodes = null;
for (String packageCode : packageCodes) {
if(StringUtils.isBlank(orderPackageCodes)){
@ -279,7 +291,6 @@ public class DistributionSignforController extends BladeController {
orderPackageCodes = orderPackageCodes + "," +packageCode;
}
}
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
updownTypeClient.downPackageOrDelTray(orderPackageCodes,myCurrentWarehouse.getId());
}catch (Exception e){
log.error("##############oneclick: 更新包件下架状态失败 packageCodes={}",packageCodes);

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

@ -2029,8 +2029,10 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
AtomicInteger orderTotal = new AtomicInteger();
//客户数量
AtomicInteger clientTotal = new AtomicInteger();
//客户数量
//包件数量
AtomicInteger deliveryPackageTotal = new AtomicInteger();
//库存品数量
AtomicInteger inventoryNub = new AtomicInteger();
//查询运单信息
//收货单位
Date date = new Date();
@ -2315,6 +2317,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
reservationEntity.setReservationNum(packageTotal.get());
this.updateById(reservationEntity);
deliveryPackageTotal.getAndAdd(reservationEntity.getReservationNum());
inventoryNub.getAndAdd(reservationEntity.getReservationStockListNum());
DistributionSignforEntity distributionSignforEntity = new DistributionSignforEntity();
distributionSignforEntity.setReservationId(reservationEntity.getId());
distributionSignforEntity.setTrainNumber(trainNumberMa);
@ -2402,6 +2405,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
// distributionDeliveryListEntity.setOrderCode(String.join(",", orderNumber));
distributionDeliveryListEntity.setOrderNumber(orderTotal.get());
distributionDeliveryListEntity.setDeliveryNumber(deliveryPackageTotal.get());
distributionDeliveryListEntity.setInventoryNub(inventoryNub.get());
distributionDeliveryListEntity.setNoteNumber(deliveryListMa());
distributionDeliveryListEntity.setCustomersNumber(clientTotal.get());
distributionDeliveryListEntity.setDeliveryListLoadingStatus(DeliveryLoadingStatusConstant.weizhuangche.getValue());

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

@ -2768,6 +2768,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
log.error("#############deliveryId参数错误:{}", distributionSignfor.getDeliveryId());
return R.fail("服务器正忙~~");
}
Map<String,Object> map = new HashMap<>();
DistributionDeliverySelfEntity distributionDeliverySelfEntity = null;
if (distributionDeliveryListEntity.getKind().equals("1")) {
//自主
@ -3139,11 +3141,13 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionStockArticleService.maintenanceOrderInfo(orderCode,myCurrentWarehouse.getId());
}
if (Func.isNotEmpty(packageIds)) {
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId());
map.put("packageIds",packageIds);
map.put("signId",distributionSignforEntity.getId());
map.put("warehouse",myCurrentWarehouse);
// distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId());
//批量推送
distributionAsyncService.sendReviewFactory(distributionSignforEntity.getId(),myCurrentWarehouse.getName() ,myCurrentWarehouse.getId());
// distributionAsyncService.sendReviewFactory(distributionSignforEntity.getId(),myCurrentWarehouse.getName() ,myCurrentWarehouse.getId());
}
}
@ -3179,9 +3183,9 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
boolean update = this.update(set);
//维护配送信息
distributionDeliveryListService.maintenanceDeliveryInfo(distributionSignforEntity.getDeliveryId());
return R.status(true);
} @Override
return R.data(map);
}
@Override
@Transactional
public R oneclickPDA(DistributionSignforDTO distributionSignfor) {

2
blade-service/logpm-patch/src/main/java/com/logpm/patch/mapper/SyncServiceTypeMapper.xml

@ -6,7 +6,7 @@
<update id="syncServiceTypeByMallName">
UPDATE logpm_distribution_stock_article ldsa
LEFT JOIN logpm_basicdata_client lbc ON lbc.client_name = #{mallName} AND lbc.is_deleted = 0
LEFT JOIN logpm_basicdata_store_business lbsb ON lbsb.client_id = lbc.id
LEFT JOIN logpm_basicdata_store_business lbsb ON lbsb.client_id = lbc.id AND lbsb.is_deleted = 0
SET ldsa.mall_id = COALESCE(lbc.id, ldsa.mall_id),
ldsa.mall_code = COALESCE(lbc.client_code, ldsa.mall_code),
ldsa.mall_name = COALESCE(lbc.client_name, ldsa.mall_name),

1
blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncServiceTypeServiceImpl.java

@ -26,6 +26,7 @@ public class SyncServiceTypeServiceImpl implements ISyncServiceTypeService {
@Override
public void syncServiceType(String id, String warehouseName, String mallName) {
//根据包件码查询出订单号
DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByOrderPackageCodeAndStatus(id);
if (distributionParcelListEntity==null){
throw new ServiceException("订单号不存在");

Loading…
Cancel
Save