Commit 9cbf19cf1355454facce78b37602c88b7f127b9d
1 parent
8ed87562
fix:修复生成指示书时逻辑问题
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/order/erp/service/order/impl/OrderBaseInfoServiceImpl.java
@@ -2499,7 +2499,7 @@ end | @@ -2499,7 +2499,7 @@ end | ||
2499 | .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | 2499 | .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) |
2500 | .in(OrderProfitAnalysisDO::getOrderId, producePdfVO.getIds())); | 2500 | .in(OrderProfitAnalysisDO::getOrderId, producePdfVO.getIds())); |
2501 | //必须要求每一个订单的利润分析信息都存在,才能生成生产指标书。 | 2501 | //必须要求每一个订单的利润分析信息都存在,才能生成生产指标书。 |
2502 | - if (CollectionUtils.isEmpty(orderProfitAnalysisList) || producePdfVO.getIds().size() <= orderProfitAnalysisList.size()) { | 2502 | + if (CollectionUtils.isEmpty(orderProfitAnalysisList) || producePdfVO.getIds().size() > orderProfitAnalysisList.size()) { |
2503 | return ServerResult.fail("利润分析未填写,无法进行生成!"); | 2503 | return ServerResult.fail("利润分析未填写,无法进行生成!"); |
2504 | } | 2504 | } |
2505 | List<OrderFieldLockApplyDO> orderFieldLockApplyDOS = orderFieldLockApplyService.list(new LambdaQueryWrapper<OrderFieldLockApplyDO>() | 2505 | List<OrderFieldLockApplyDO> orderFieldLockApplyDOS = orderFieldLockApplyService.list(new LambdaQueryWrapper<OrderFieldLockApplyDO>() |