Browse Source

Merge branch 'dev' into pre-production

master
zhenghaoyu 10 months ago
parent
commit
604ca05b58
  1. 1
      blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml
  2. 24
      blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java
  3. 2
      blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java
  4. 14
      blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java

1
blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml

@ -38,3 +38,4 @@
</select> </select>
</mapper> </mapper>

24
blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java

@ -782,4 +782,28 @@ public class SyncOrderInfoToPlatform {
return ReturnT.SUCCESS; return ReturnT.SUCCESS;
} }
@XxlJob("clearOrderPackageStatusOut")
public ReturnT<String> clearOrderPackageStatusOut(String param) {
log.info("############clearOrderPackageStatusOut: 清理包件数据为已出库 开始");
List<JSONObject> ls = warehouseMappingDataService.findAllOrderPackage();
for (JSONObject l : ls) {
String orderPackageCode = l.getStr("orderPackageCode");
Long warehouseId = l.getLong("warehouseId");
syncOrderInfoService.clearOrderPackageStatusOut(orderPackageCode,warehouseId);
warehouseMappingDataService.updateClearOrderPackageStatusSignStatus(orderPackageCode,warehouseId,1);
}
log.info("############repairNoOpenOrderOrderInfo: 清理包件数据为已签收 完成");
return ReturnT.SUCCESS;
}
} }

2
blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java

@ -22,4 +22,6 @@ public interface ISyncOrderInfoService {
void clearOrderPackageStatusSign(String orderPackageCode, Long warehouseId); void clearOrderPackageStatusSign(String orderPackageCode, Long warehouseId);
void clearOrderPackageStatusStock(String orderPackageCode, Long warehouseId); void clearOrderPackageStatusStock(String orderPackageCode, Long warehouseId);
void clearOrderPackageStatusOut(String orderPackageCode, Long warehouseId);
} }

14
blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java

@ -331,6 +331,20 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
} }
} }
@Override
public void clearOrderPackageStatusOut(String orderPackageCode, Long warehouseId) {
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId);
if(!Objects.isNull(parcelListEntity)){
String orderCode = parcelListEntity.getOrderCode();
parcelListEntity.setOrderPackageStatus("60");
parcelListEntity.setOrderPackageGroundingStatus("10");
distributionParcelListClient.update(parcelListEntity);
distributionStockArticleClient.updateOrderInfo(orderCode,warehouseId);
warehouseUpdownTypeClient.downPackageOrDelTray(orderPackageCode,warehouseId);
}
}
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Override @Override

Loading…
Cancel
Save