|
|
|
@ -1788,6 +1788,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
trunklineCarsLoadLineService.updateById(carsLoadLineEntity); |
|
|
|
|
|
|
|
|
|
carsLoadEntity.setLoadStatus("10"); |
|
|
|
|
carsLoadEntity.setStartTime(date); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
@ -1968,6 +1969,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
carsLoadEntity.setSignTime(new Date()); |
|
|
|
|
carsLoadEntity.setLoadStatus("90"); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateScanStatusByLoadId(loadId, "3"); |
|
|
|
@ -4073,15 +4075,45 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
return R.fail(405, "数据id为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Long loadScanId = loadScanIds.get(0); |
|
|
|
|
TrunklineCarsLoadScanEntity scanEntity = trunklineCarsLoadScanService.getById(loadScanId); |
|
|
|
|
if(Objects.isNull(scanEntity)){ |
|
|
|
|
log.warn("############signLoadScanByIds: 数据信息不存在 loadScanId={}", loadScanId); |
|
|
|
|
return R.fail(405, "数据信息不存在"); |
|
|
|
|
} |
|
|
|
|
Long loadId = scanEntity.getLoadId(); |
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
|
if(Objects.isNull(carsLoadEntity)){ |
|
|
|
|
log.warn("############signLoadScanByIds: 车辆配载信息不存在 loadId={}", loadId); |
|
|
|
|
return R.fail(405, "车辆配载信息不存在"); |
|
|
|
|
} |
|
|
|
|
Integer realLoadingNumber = carsLoadEntity.getRealLoadingNumber(); |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity warehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
|
if (Objects.isNull(warehouseEntity)) { |
|
|
|
|
log.warn("############signLoadScanByIds: 仓库信息不存在 warehouseId={}", warehouseId); |
|
|
|
|
return R.fail(405, "仓库信息不存在"); |
|
|
|
|
} |
|
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateScanStatus(loadScanIds, "3"); |
|
|
|
|
|
|
|
|
|
List<String> orderPackageCodes = trunklineCarsLoadScanService.findSignListOrderPackageCodesByIds(loadScanIds); |
|
|
|
|
|
|
|
|
|
//通过loadId查询是否所有包件都签收了
|
|
|
|
|
Integer num = trunklineCarsLoadScanService.findSignNumByLoadId(loadId); |
|
|
|
|
if(realLoadingNumber.equals(num)){ |
|
|
|
|
carsLoadEntity.setSignTime(date); |
|
|
|
|
carsLoadEntity.setLoadStatus("90"); |
|
|
|
|
}else{ |
|
|
|
|
if(num == 1){ |
|
|
|
|
carsLoadEntity.setSignTime(date); |
|
|
|
|
carsLoadEntity.setLoadStatus("91"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
//包件签收状态修改
|
|
|
|
|
distributionParcelListClient.updatePackageStatus(orderPackageCodes,warehouseId,"70"); |
|
|
|
|
|
|
|
|
@ -5006,6 +5038,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
//无装车记录异常日志记录
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
carsLoadAsyncService.abnormalListUnloadByLoadIdAndWarehouseId(loadId, warehouseId, warehouseName, loadScanId, AuthUtil.getTenantId(), AuthUtil.getUserId(), AuthUtil.getNickName(), Func.firstLong(AuthUtil.getDeptId())); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.warn("###############unloadPackage: 存入异常列表记录失败"); |
|
|
|
|