|
|
@@ -119,15 +119,17 @@ public interface FsStoreAfterSalesScrmMapper
|
|
|
"<if test = 'maps.companyUserNickName != null and maps.companyUserNickName != \"\" '> " +
|
|
|
"and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%') " +
|
|
|
"</if>" +
|
|
|
- "<if test = 'maps.beginTime != null and maps.beginTime != \"\" '> " +
|
|
|
- " AND date_format(s.create_time,'%y%m%d') >= date_format(#{maps.beginTime},'%y%m%d') " +
|
|
|
+ "<if test = 'maps.params != null and maps.params != \"\" '> " +
|
|
|
+ "<if test = 'maps.params.beginTime != null and maps.params.beginTime != \"\" '> " +
|
|
|
+ " AND date_format(s.create_time,'%y%m%d') >= date_format(#{maps.params.beginTime},'%y%m%d') " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test = 'maps.params.endTime != null and maps.params.endTime != \"\" '> " +
|
|
|
+ " AND date_format(s.create_time,'%y%m%d') <= date_format(#{maps.params.endTime},'%y%m%d') " +
|
|
|
+ "</if>" +
|
|
|
"</if>" +
|
|
|
"<if test = 'maps.consigneePhone != null and maps.consigneePhone !=\"\" '> " +
|
|
|
"and o.user_phone like CONCAT('%',#{maps.consigneePhone},'%') " +
|
|
|
"</if>" +
|
|
|
- "<if test = 'maps.endTime != null and maps.endTime != \"\" '> " +
|
|
|
- " AND date_format(s.create_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
- "</if>" +
|
|
|
"<if test = 'maps.deptId != null '> " +
|
|
|
" AND (o.dept_id = #{maps.deptId} OR o.dept_id IN ( SELECT t.dept_id FROM company_dept t WHERE find_in_set(#{maps.deptId}, ancestors) )) " +
|
|
|
"</if>" +
|