|
@@ -68,11 +68,67 @@
|
|
</if>
|
|
</if>
|
|
limit #{pageIndex},#{pageFrom}
|
|
limit #{pageIndex},#{pageFrom}
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="Deleterlist" resultType="com.management.platform.entity.Clue">
|
|
|
|
+ select c.id,
|
|
|
|
+ c.company_id,
|
|
|
|
+ (select company_name from company where company_id = c.id) companyName,
|
|
|
|
+ c.clue_name,
|
|
|
|
+ c.clue_source_id,
|
|
|
|
+ c.phone,
|
|
|
|
+ c.email,
|
|
|
|
+ c.customer_industry_id,
|
|
|
|
+ c.customer_level_id,
|
|
|
|
+ c.address,
|
|
|
|
+ c.incharger_id,
|
|
|
|
+ c.remark,
|
|
|
|
+ c.is_delete,
|
|
|
|
+ c.plate1,
|
|
|
|
+ c.plate2,
|
|
|
|
+ c.plate3,
|
|
|
|
+ c.plate4,
|
|
|
|
+ c.plate5,
|
|
|
|
+ c.create_time,
|
|
|
|
+ c.create_id
|
|
|
|
+ from Clue c
|
|
|
|
+ where
|
|
|
|
+ c.company_id = #{companyId} and is_delete = 1
|
|
|
|
+ <if test="startTime != null and endTime != null ">
|
|
|
|
+ and c.create_time BETWEEN #{startTime} and #{endTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="clueName != null and clueName != '' ">
|
|
|
|
+ and c.clue_name = #{clueName}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="clueSourceId != null">
|
|
|
|
+ and c.clue_source_id = #{clueSourceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerIndustryId != null">
|
|
|
|
+ and c.customer_industry_id = #{customerIndustryId}
|
|
|
|
+ </if>
|
|
|
|
+ limit #{pageIndex},#{pageFrom}
|
|
|
|
+ </select>
|
|
<select id="getTotal" resultType="java.lang.Integer">
|
|
<select id="getTotal" resultType="java.lang.Integer">
|
|
select count(*)
|
|
select count(*)
|
|
from Clue c
|
|
from Clue c
|
|
where
|
|
where
|
|
- c.company_id = #{companyId}
|
|
|
|
|
|
+ c.company_id = #{companyId} and is_delete = 0
|
|
|
|
+ <if test="startTime != null and endTime != null ">
|
|
|
|
+ and c.create_time BETWEEN #{startTime} and #{endTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="clueName != null and clueName != '' ">
|
|
|
|
+ and c.clue_name = #{clueName}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="clueSourceId != null">
|
|
|
|
+ and c.clue_source_id = #{clueSourceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerIndustryId != null">
|
|
|
|
+ and c.customer_industry_id = #{customerIndustryId}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getDeleterTotal" resultType="java.lang.Integer">
|
|
|
|
+ select count(*)
|
|
|
|
+ from Clue c
|
|
|
|
+ where
|
|
|
|
+ c.company_id = #{companyId} and is_delete = 1
|
|
<if test="startTime != null and endTime != null ">
|
|
<if test="startTime != null and endTime != null ">
|
|
and c.create_time BETWEEN #{startTime} and #{endTime}
|
|
and c.create_time BETWEEN #{startTime} and #{endTime}
|
|
</if>
|
|
</if>
|