|
|
|
@ -2494,21 +2494,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
warehouseUpdownTypeClient.downPackageOrDelTray(loadscanEntity.getOrderPackageCode(), myCurrentWarehouse.getId(), "签收下架解托"); |
|
|
|
|
//维护订单状态
|
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+loadscanEntity.getSigningUser()+"扫描签收,装车方式:扫描装车,配送车次号:"+deliveryListEntity.getTrainNumber()+"预约任务号:"+distributionReservationEntity.getReservationCode(); |
|
|
|
|
JSONObject trunklinePackageTrackLog= new JSONObject(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",loadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",loadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",loadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",loadscanEntity.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",loadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",loadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",loadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntity.getScanUser()); |
|
|
|
|
JSONObject trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
aaa.add(trunklinePackageTrackLog); |
|
|
|
|
orderPackageCodes.add(loadscanEntity.getOrderPackageCode()); |
|
|
|
|
} else { |
|
|
|
@ -2584,25 +2570,9 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
log.info("content 参数:>>>>>>>>>>Warehouse:{},ScanUser:{},TrainNumber:{},ReservationCode:{}",myCurrentWarehouse.getName(),distributionLoadscanEntity.getSigningUser(),deliveryListEntity.getTrainNumber(),distributionReservationEntity.getReservationCode()); |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+distributionLoadscanEntity.getSigningUser()+"扫描签收,装车方式:补录装车,配送车次号:"+deliveryListEntity.getTrainNumber()+"预约任务号:"+distributionReservationEntity.getReservationCode(); |
|
|
|
|
JSONObject trunklinePackageTrackLog= new JSONObject(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",distributionLoadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",distributionLoadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",distributionLoadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",distributionLoadscanEntity.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",distributionLoadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",distributionLoadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",distributionLoadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",distributionLoadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",distributionLoadscanEntity.getScanUser()); |
|
|
|
|
JSONObject trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
aaa.add(trunklinePackageTrackLog); |
|
|
|
|
orderPackageCodes.add(distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//修改包件状态为装车、签收
|
|
|
|
|
DistributionParcelListEntity updatePackage = collect.get(0); |
|
|
|
@ -3169,7 +3139,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+AuthUtil.getNickName()+"扫描异常签收,装车方式:补录装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
|
JSONObject trunklinePackageTrackLog= new JSONObject(); |
|
|
|
|
switch (reservationEntity.getDeliveryType()) { |
|
|
|
|
case "1": |
|
|
|
|
//商配
|
|
|
|
@ -3249,24 +3218,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionLoadscanService.updateById(distributionLoadscanEntity); |
|
|
|
|
distributionSignforMapper.updateSignforNum(distributionLoadscanEntity.getDeliveryId(), distributionLoadscanEntity.getReservationId(), distributionLoadscanEntity.getPackageNub()); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",distributionLoadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",distributionLoadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",distributionLoadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",distributionLoadscanEntity.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",distributionLoadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",distributionLoadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",distributionLoadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",distributionLoadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",distributionLoadscanEntity.getSigningUser()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error("商配异常签收日志参数错误",e); |
|
|
|
|
} |
|
|
|
|
JSONObject trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_ABNORMAL_SIGN_FOR.getCode()); |
|
|
|
|
aaa.add(trunklinePackageTrackLog); |
|
|
|
|
assert loadscanEntity != null; |
|
|
|
|
orderPackageCodes.add(distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
@ -3340,26 +3292,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
Integer i = distributionDeliveryListMapper.updateloadingTimeById(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
//修改包件装车、签收状态
|
|
|
|
|
packageLockIds.add(distributionLoadscanEntity.getPackageId()); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",distributionLoadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",distributionLoadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",distributionLoadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",distributionLoadscanEntity.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",distributionLoadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",distributionLoadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",distributionLoadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",distributionLoadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",distributionLoadscanEntity.getSigningUser()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("市配异常签收日志参数错误>>>>>>>>>>>>>>>>data:{}",trunklinePackageTrackLog); |
|
|
|
|
throw new RuntimeException("该包件正在被操作,请稍后再试!!!"); |
|
|
|
|
} |
|
|
|
|
JSONObject trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_ABNORMAL_SIGN_FOR.getCode()); |
|
|
|
|
aaa.add(trunklinePackageTrackLog); |
|
|
|
|
orderPackageCodes.add(loadscanEntity.getOrderPackageCode()); |
|
|
|
|
|
|
|
|
@ -5178,18 +5111,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
jsonObject.put("remark","批量签收下架"); |
|
|
|
|
jsonObjects.add(jsonObject); |
|
|
|
|
content = "包件在"+myCurrentWarehouse.getName()+"由"+loadscanEntity.getSigningUser()+"司机一键签收,装车方式:扫描装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",loadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",loadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",loadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",loadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",loadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",loadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",loadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntity.getSigningUser()); |
|
|
|
|
trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_ABNORMAL_SIGN_FOR.getCode()); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
//存在装车数据
|
|
|
|
|
if (distributionSignfor.getIsClerk()) { |
|
|
|
@ -5210,18 +5133,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionLoadscanService.updateById(loadscanEntities); |
|
|
|
|
packageLockIds.add(loadscanEntities.getPackageId()); |
|
|
|
|
content = "包件在"+myCurrentWarehouse.getName()+"由"+loadscanEntities.getSigningUser()+"司机一键签收,装车方式:补录装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",loadscanEntities.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",loadscanEntities.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",loadscanEntities.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",loadscanEntities.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",loadscanEntities.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",loadscanEntities.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",loadscanEntities.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntities.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntities.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",myCurrentWarehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntities.getSigningUser()); |
|
|
|
|
trunklinePackageTrackLog= handleLogJSONObject(myCurrentWarehouse,AuthUtil.getUser(),parcelListEntity.getOrderPackageCode(),content,WorkNodeEnums.DISTRIBUTION_ABNORMAL_SIGN_FOR.getCode()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5234,7 +5147,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
packageCodes.add(parcelListEntity.getOrderPackageCode()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(packageIds)) { |
|
|
|
|
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId()); |
|
|
|
|
//批量推送
|
|
|
|
@ -6518,4 +6430,24 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private JSONObject handleLogJSONObject(BasicdataWarehouseEntity warehouse,BladeUser user,String orderPackageCode,String content,Integer node) { |
|
|
|
|
JSONObject trunklinePackageTrackLog = new JSONObject(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",user.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",new Date()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",user.getUserId()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",user.getUserId()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",new Date()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",0); |
|
|
|
|
trunklinePackageTrackLog.put("status",1); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",warehouse.getDepartment()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",orderPackageCode); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",warehouse.getId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",warehouse.getName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode",node); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",user.getNickName()); |
|
|
|
|
return trunklinePackageTrackLog; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|