修复:CRM 合同配置不提醒,待办事项中即将到期的合同查询报错

This commit is contained in:
zhanhong 2024-02-28 00:00:23 +08:00
parent 8222c3a831
commit 89aca4572d
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.crm.service.contract;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.lang.Validator;
import cn.hutool.core.util.ObjUtil;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
@ -345,6 +346,9 @@ public class CrmContractServiceImpl implements CrmContractService {
if (config != null && Boolean.FALSE.equals(config.getNotifyEnabled())) {
config = null;
}
if(Validator.isNull(config)){
return new PageResult<>();
}
}
// 2. 查询分页
return contractMapper.selectPage(pageReqVO, userId, config);