修复:CRM 合同配置不提醒,待办事项中即将到期的合同查询报错
This commit is contained in:
parent
8222c3a831
commit
89aca4572d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue