Commit f54dcd2dfa1872237f4eb6efd2129310b68bdd4c
1 parent
a437906e
feat: ERP升级
1、修复获取最后回款时间bug
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/order/erp/service/order/impl/InvoiceBillOrderServiceImpl.java
... | ... | @@ -474,6 +474,9 @@ public class InvoiceBillOrderServiceImpl extends ServiceImpl<InvoiceBillOrderMap |
474 | 474 | SystemSettingDO systemSettingDO = systemSettingService.getOne(new LambdaQueryWrapper<SystemSettingDO>().eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) |
475 | 475 | .eq(SystemSettingDO::getSettingCode, "customerCode").eq(SystemSettingDO::getSettingValue, customerCode) |
476 | 476 | .eq(SystemSettingDO::getRelationCode, "orderHodTime").last("limit 1")); |
477 | + if (Objects.isNull(systemSettingDO)) { | |
478 | + return Constant.ZERO; | |
479 | + } | |
477 | 480 | String holdTime = systemSettingDO.getRelationValue(); |
478 | 481 | return StringUtils.isBlank(holdTime) ? Constant.ZERO : Integer.parseInt(holdTime); |
479 | 482 | } | ... | ... |