|
|
@@ -467,4 +467,20 @@
|
|
|
set aid= #{transferId,jdbcType=VARCHAR}
|
|
|
where aid= #{aid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
+ <select id="selectBusinessProjectByUAPid" resultType="com.goafanti.customer.bo.BusinessListBo">
|
|
|
+ select
|
|
|
+ a.id as businessId,
|
|
|
+ a.uid,
|
|
|
+ a.business_project_id as businessProjectId,
|
|
|
+ a.follow_situation as followSituation,
|
|
|
+ a.customer_status as customerStatus,
|
|
|
+ a.remarks,
|
|
|
+ b.bname as businessProjectName,
|
|
|
+ c.cname as businessvarietiesName
|
|
|
+ from user_business a
|
|
|
+ left join business_project b on a.business_project_id = b.id
|
|
|
+ left join business_category c on b.cid = c.id
|
|
|
+ where a.uid = #{uid,jdbcType=VARCHAR} and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
+ and a.business_project_id= #{pid} and a.customer_status != 6
|
|
|
+ </select>
|
|
|
</mapper>
|