|
|
@@ -362,27 +362,27 @@
|
|
|
a.uid = b.id left join business_glossory c on
|
|
|
a.business_glossory_id = c.id left join admin d on
|
|
|
a.uid = d.id
|
|
|
- where a.aid = #{adminId,jdbcType=VARCHAR}
|
|
|
+ where a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
<if test="businessId !=null and businessId != ''">
|
|
|
and c.id = #{businessId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="identifyName != null and identifyName != ''">
|
|
|
- b.identify_name = #{identifyName,jdbcType=VARCHAR}
|
|
|
+ and b.identify_name = #{identifyName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="followSituation != null">
|
|
|
- a.follow_situation = #{followSituation,jdbcType=INTEGER}
|
|
|
+ and a.follow_situation = #{followSituation,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="customerStatus != null">
|
|
|
- a.customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
+ and a.customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="adminName != null and adminName != ''">
|
|
|
- d.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ and d.name = #{adminName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="startDate != null and startDate != ''">
|
|
|
- and a.create_time > STR_TO_DATE(#{startDate},'%Y-%m-%d %H:%i:%s')
|
|
|
+ and and a.create_time > STR_TO_DATE(#{startDate},'%Y-%m-%d %H:%i:%s')
|
|
|
</if>
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
- and a.create_time < STR_TO_DATE(#{endDate},'%Y-%m-%d %H:%i:%s')
|
|
|
+ and and a.create_time < STR_TO_DATE(#{endDate},'%Y-%m-%d %H:%i:%s')
|
|
|
</if>
|
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
|
@@ -396,21 +396,21 @@
|
|
|
a.uid = b.id left join business_glossory c on
|
|
|
a.business_glossory_id = c.id left join admin d on
|
|
|
a.uid = d.id
|
|
|
- where a.aid = #{adminId,jdbcType=VARCHAR}
|
|
|
+ where a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
<if test="businessId !=null and businessId != ''">
|
|
|
and c.id = #{businessId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="identifyName != null and identifyName != ''">
|
|
|
- b.identify_name = #{identifyName,jdbcType=VARCHAR}
|
|
|
+ and b.identify_name = #{identifyName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="followSituation != null">
|
|
|
- a.follow_situation = #{followSituation,jdbcType=INTEGER}
|
|
|
+ and a.follow_situation = #{followSituation,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="customerStatus != null">
|
|
|
- a.customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
+ and a.customer_status = #{customerStatus,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="adminName != null and adminName != ''">
|
|
|
- d.name = #{adminName,jdbcType=VARCHAR}
|
|
|
+ and d.name = #{adminName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="startDate != null and startDate != ''">
|
|
|
and a.create_time > STR_TO_DATE(#{startDate},'%Y-%m-%d %H:%i:%s')
|
|
|
@@ -439,4 +439,21 @@
|
|
|
select select id,uid,business_glossory_id,follow_situation,customer_status,remarks from user_business
|
|
|
where uid = #{uid,jdbcType=VARCHAR} and aid = #{aid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findBusinessDetail" parameterType="java.lang.String" resultType="com.goafanti.customer.bo.BussinessFollowBo">
|
|
|
+ select
|
|
|
+ a.id as businessId,
|
|
|
+ a.business_glossory_id as businessGlossoryId,
|
|
|
+ a.create_time as createTime,
|
|
|
+ a.follow_situation as followSituation,
|
|
|
+ a.customer_status as customerStatus,
|
|
|
+ a.remarks,
|
|
|
+ b.identify_name as identifyName,
|
|
|
+ c.name as adminName
|
|
|
+ from
|
|
|
+ user_business a left join user b on
|
|
|
+ a.uid = b.id left join admin c on
|
|
|
+ a.aid = c.id
|
|
|
+ where a.id = #{businessId,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
</mapper>
|