|
|
@@ -82,7 +82,7 @@ public interface CompanyMapper
|
|
|
@Select({"<script> " +
|
|
|
"select c.*,a.api_name as voice_api_name,u.user_name " +
|
|
|
"from company c left join company_voice_api a on a.api_id=c.voice_api_id left join company_user u on u.user_id=c.user_id " +
|
|
|
- "where is_del=0 " +
|
|
|
+ "where c.is_del=0 " +
|
|
|
"<if test = 'maps.companyId != null '> " +
|
|
|
"and c.company_id = #{maps.companyId}" +
|
|
|
"</if>" +
|
|
|
@@ -122,7 +122,7 @@ public interface CompanyMapper
|
|
|
"select c.*,a.api_name as voice_api_name,u.user_name " +
|
|
|
" ,(select count(1) from crm_customer cc where c.company_id= cc.company_id and date_format(cc.update_time,'%y%m%d') = date_format(now(),'%y%m%d') ) as now_day_customer_count " +
|
|
|
"from company c left join company_voice_api a on a.api_id=c.voice_api_id left join company_user u on u.user_id=c.user_id " +
|
|
|
- "where is_del=0 " +
|
|
|
+ "where c.is_del=0 " +
|
|
|
"<if test = 'maps.companyId != null '> " +
|
|
|
"and c.company_id = #{maps.companyId}" +
|
|
|
"</if>" +
|
|
|
@@ -227,7 +227,7 @@ public interface CompanyMapper
|
|
|
@Select({"<script> " +
|
|
|
"select c.*,a.api_name as voice_api_name,u.user_name " +
|
|
|
"from company c left join company_voice_api a on a.api_id=c.voice_api_id left join company_user u on u.user_id=c.user_id " +
|
|
|
- "where is_del=0 " +
|
|
|
+ "where c.is_del=0 " +
|
|
|
"<if test = 'maps.liveShow != null '> " +
|
|
|
"and c.live_show = #{maps.liveShow}" +
|
|
|
"</if>" +
|