Browse Source

1.修改部分日志输出

2.取消一件装车/签收的下架
fix-sign
pref_mail@163.com 4 months ago
parent
commit
d7cd50d096
  1. 42
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java
  2. 15
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java
  3. 20
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java
  4. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

42
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java

@ -305,27 +305,27 @@ public class DistributionSignforAppController {
public R oneclick(@Valid @RequestBody DistributionSignforDTO distributionSignfor) {
distributionSignfor.setIsClerk(false);
R r = distributionSignforService.oneclickPDA(distributionSignfor);
List<String> packageCodes = (List<String>) r.getData();
try {
String orderPackageCodes = null;
for (String packageCode : packageCodes) {
if (StringUtils.isBlank(orderPackageCodes)) {
orderPackageCodes = packageCode;
} else {
orderPackageCodes = orderPackageCodes + "," + packageCode;
}
}
log.info("##############oneclick: 开始执行下架:{}", packageCodes);
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
if(orderPackageCodes!=null){
updownTypeClient.downPackageOrDelTray(orderPackageCodes, myCurrentWarehouse.getId(), "司机一键签收下架解托");
}
log.info("##############oneclick: 结束执行下架:{}", packageCodes);
} catch (Exception e) {
log.error("##############oneclick: 更新包件下架状态失败 packageCodes={}", packageCodes);
}
// List<String> packageCodes = (List<String>) r.getData();
// try {
// String orderPackageCodes = null;
// for (String packageCode : packageCodes) {
// if (StringUtils.isBlank(orderPackageCodes)) {
// orderPackageCodes = packageCode;
// } else {
// orderPackageCodes = orderPackageCodes + "," + packageCode;
// }
// }
// log.info("##############oneclick: 开始执行下架:{}", packageCodes);
//
// BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
// if(orderPackageCodes!=null){
// updownTypeClient.downPackageOrDelTray(orderPackageCodes, myCurrentWarehouse.getId(), "司机一键签收下架解托");
// }
// log.info("##############oneclick: 结束执行下架:{}", packageCodes);
//
// } catch (Exception e) {
// log.warn("##############oneclick: 更新包件下架状态失败 packageCodes={}", packageCodes);
// }
return r;
}

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

@ -336,7 +336,6 @@ public class DistributionSignforController extends BladeController {
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)){
@ -345,19 +344,9 @@ public class DistributionSignforController extends BladeController {
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId());
// distributionAsyncService.sendReviewFactory(signId,myCurrentWarehouse.getName() ,myCurrentWarehouse.getId()); PC对于的批量签收同样需要复核
}
String orderPackageCodes = null;
for (String packageCode : packageCodes) {
if(StringUtils.isBlank(orderPackageCodes)){
orderPackageCodes = packageCode;
}else{
orderPackageCodes = orderPackageCodes + "," +packageCode;
}
}
if(StringUtils.isNotBlank(orderPackageCodes)){
updownTypeClient.downPackageOrDelTray(orderPackageCodes,myCurrentWarehouse.getId(),"文员一键签收下架解托");
}
}catch (Exception e){
log.error("##############oneclick: 更新包件下架状态失败 packageCodes={}",packageCodes);
log.warn("##############oneclick: 更新包件下架状态失败 r={}",r);
}
return r;
}

20
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

@ -126,6 +126,7 @@ import org.springblade.common.constant.reservation.ReservationStockupStatusConst
import org.springblade.common.constant.signing.SignforStatusConstant;
import org.springblade.common.constant.stockup.StockupStatusConstant;
import org.springblade.common.constant.stockup.StockupTypeConstant;
import org.springblade.common.exception.CustomerException;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.secure.utils.AuthUtil;
@ -2154,8 +2155,9 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
.eq(DistributionStockupInfoEntity::getReservationId, reservationId)
);
if (ObjectUtils.isNull(distributionStockupInfoEntity)) {
log.info("预约数据不存在!!");
throw new ServiceException("预约数据不存在!!");
log.warn("预约数据不存在!!");
// throw new ServiceException("预约数据不存在!!");
return ;
}
String stockUpType = distributionStockupInfoEntity.getStockUpType();
//维护备货时间
@ -2174,8 +2176,10 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
.apply("inventory_status in (1,3)")
);
if (ObjectUtils.isNull(one)) {
log.info("自提库存品数据为空!!");
throw new ServiceException("自提库存品数据为空!!");
log.warn("自提库存品数据为空!!");
return ;
// throw new ServiceException("自提库存品数据为空!!");
}
DistributionDeliveryDetailsEntity entity = new DistributionDeliveryDetailsEntity();
entity.setId(one.getId());
@ -2196,8 +2200,10 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
.apply("stock_list_status in (1,3)")
);
if (ObjectUtils.isNull(one1)) {
log.info("预约库存品数据为空!!");
throw new ServiceException("预约库存品数据为空!!");
log.warn("预约库存品数据为空!!");
return ;
// throw new CustomerException("预约库存品数据为空!!");
}
DistributionReservationStocklistEntity reservationStocklistEntity = new DistributionReservationStocklistEntity();
reservationStocklistEntity.setId(one1.getId());
@ -3165,7 +3171,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
pushInstallDTO.setBalance_people("1");
pushInstallDTO.setBalance_type(client.getDefaultPaymentMethods());
} else {
log.error(method + ">>>>>>>>>>>>>查询客户信息失败" + reservationEntity.getReceivingUnit());
log.warn(method + ">>>>>>>>>>>>>查询客户信息失败" + reservationEntity.getReceivingUnit());
}
List<PushInstallDTO.Order> orderList = new ArrayList<>();

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

@ -4537,7 +4537,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
return nodeFanoutMsg;
} catch (Exception e) {
log.error("备货扫描:发送备货节点消息失败", e);
log.warn("备货扫描:发送备货节点消息失败", e);
}
return null;

Loading…
Cancel
Save