Commit 89aca4572db6288613cc3530c879ac1616b5d6b8
1 parent
8222c3a8
修复:CRM 合同配置不提醒,待办事项中即将到期的合同查询报错
Showing
1 changed file
with
4 additions
and
0 deletions
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.crm.service.contract; |
| 3 | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | 4 | import cn.hutool.core.collection.ListUtil; |
| 5 | 5 | import cn.hutool.core.lang.Assert; |
| 6 | +import cn.hutool.core.lang.Validator; | |
| 6 | 7 | import cn.hutool.core.util.ObjUtil; |
| 7 | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 8 | 9 | import cn.iocoder.yudao.framework.common.util.number.MoneyUtils; |
| ... | ... | @@ -345,6 +346,9 @@ public class CrmContractServiceImpl implements CrmContractService { |
| 345 | 346 | if (config != null && Boolean.FALSE.equals(config.getNotifyEnabled())) { |
| 346 | 347 | config = null; |
| 347 | 348 | } |
| 349 | + if(Validator.isNull(config)){ | |
| 350 | + return new PageResult<>(); | |
| 351 | + } | |
| 348 | 352 | } |
| 349 | 353 | // 2. 查询分页 |
| 350 | 354 | return contractMapper.selectPage(pageReqVO, userId, config); | ... | ... |