Commit 00452373 authored by zhengyi's avatar zhengyi

批量费用申请审批详情内容未展示的bug修复

parent 9c854aff
...@@ -630,22 +630,42 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl ...@@ -630,22 +630,42 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl
@Override @Override
public OrderFeeApplicationBackVO getOrderByProcessId(String processId) { public OrderFeeApplicationBackVO getOrderByProcessId(String processId) {
OrderFeeApplicationDO orderFeeApplicationDO = feeApplicationMapper.selectOne(OrderFeeApplicationDO::getBpmProcessId, processId); OrderApprovalDO orderApprovalDO = orderApprovalService.getOne(new LambdaQueryWrapper<OrderApprovalDO>().eq(OrderApprovalDO::getFormId, processId).orderByDesc(OrderApprovalDO::getOrderApprovalId).last("limit 1"));
OrderFeeApplicationBackVO convert = OrderFeeApplicationConvert.INSTANCE.convert(orderFeeApplicationDO); if (Objects.nonNull(orderApprovalDO) && orderApprovalDO.getType() == 12 && StringUtils.isNotBlank(orderApprovalDO.getDetails())) {
if (orderFeeApplicationDO != null) { OrderFeeApplicationDO orderFeeApplicationDO = JSONObject.parseObject(orderApprovalDO.getDetails(), OrderFeeApplicationDO.class);
OrderBackVO order = orderQueryService.getOrder(orderFeeApplicationDO.getOrderId()); OrderFeeApplicationBackVO convert = OrderFeeApplicationConvert.INSTANCE.convert(orderFeeApplicationDO);
LogisticsInfoDto startInfoAndDestInfoByLineId = warehouseLineMapper.getStartInfoAndDestInfoByLineId(order.getLineId()); if (orderFeeApplicationDO != null) {
convert.setStartWarehouse(startInfoAndDestInfoByLineId.getStartTitleZh()); OrderBackVO order = orderQueryService.getOrder(orderFeeApplicationDO.getOrderId());
convert.setDestWarehouse(startInfoAndDestInfoByLineId.getDestTitleZh()); LogisticsInfoDto startInfoAndDestInfoByLineId = warehouseLineMapper.getStartInfoAndDestInfoByLineId(order.getLineId());
convert.setOrderBackVO(order); convert.setStartWarehouse(startInfoAndDestInfoByLineId.getStartTitleZh());
convert.setDestWarehouse(startInfoAndDestInfoByLineId.getDestTitleZh());
convert.setOrderBackVO(order);
}
return convert;
}else {
OrderFeeApplicationDO orderFeeApplicationDO = feeApplicationMapper.selectOne(OrderFeeApplicationDO::getBpmProcessId, processId);
OrderFeeApplicationBackVO convert = OrderFeeApplicationConvert.INSTANCE.convert(orderFeeApplicationDO);
if (orderFeeApplicationDO != null) {
OrderBackVO order = orderQueryService.getOrder(orderFeeApplicationDO.getOrderId());
LogisticsInfoDto startInfoAndDestInfoByLineId = warehouseLineMapper.getStartInfoAndDestInfoByLineId(order.getLineId());
convert.setStartWarehouse(startInfoAndDestInfoByLineId.getStartTitleZh());
convert.setDestWarehouse(startInfoAndDestInfoByLineId.getDestTitleZh());
convert.setOrderBackVO(order);
}
return convert;
} }
return convert;
} }
@Override @Override
public List<OrderFeeApplicationBackVO> getBatchFeeByProcessId(String processId) { public List<OrderFeeApplicationBackVO> getBatchFeeByProcessId(String processId) {
List<OrderFeeApplicationDO> orderFeeApplicationDOList = feeApplicationMapper.selectList(OrderFeeApplicationDO::getBatchBpmBusinessId, processId); OrderApprovalDO orderApprovalDO = orderApprovalService.getApproval(Long.valueOf(processId));
return OrderFeeApplicationConvert.INSTANCE.convertList(orderFeeApplicationDOList); if (Objects.nonNull(orderApprovalDO) && orderApprovalDO.getType() == 41 && StringUtils.isNotBlank(orderApprovalDO.getDetails())) {
List<OrderFeeApplicationDO> orderFeeApplicationDOList = JSONObject.parseArray(orderApprovalDO.getDetails(), OrderFeeApplicationDO.class);
return OrderFeeApplicationConvert.INSTANCE.convertList(orderFeeApplicationDOList);
}else {
List<OrderFeeApplicationDO> orderFeeApplicationDOList = feeApplicationMapper.selectList(OrderFeeApplicationDO::getBatchBpmBusinessId, processId);
return OrderFeeApplicationConvert.INSTANCE.convertList(orderFeeApplicationDOList);
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment