线索私海
This commit is contained in:
@@ -464,10 +464,10 @@
|
|||||||
LEFT JOIN hy_partner_user_info hpuinfo ON hpli.partner_id = hpuinfo.partner_id
|
LEFT JOIN hy_partner_user_info hpuinfo ON hpli.partner_id = hpuinfo.partner_id
|
||||||
LEFT JOIN enterprise_user eu ON hpli.investment_manager = eu.user_id
|
LEFT JOIN enterprise_user eu ON hpli.investment_manager = eu.user_id
|
||||||
WHERE line_status in (1,2)
|
WHERE line_status in (1,2)
|
||||||
<if test="keywordType!=null and keywordType=='name'">
|
<if test="keyword!=null and keyword!='' and keywordType!=null and keywordType=='name'">
|
||||||
AND (eu.name like concat('%',#{keyword},'%') or hpuinfo.username like concat('%',#{keyword},'%'))
|
AND (eu.name like concat('%',#{keyword},'%') or hpuinfo.username like concat('%',#{keyword},'%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="keywordType!=null and keywordType=='mobile'">
|
<if test="keyword!=null and keyword!='' and keywordType!=null and keywordType=='mobile'">
|
||||||
AND ( eu.mobile like concat('%',#{keyword},'%') or hpuinfo.mobile like concat('%',#{keyword},'%')')
|
AND ( eu.mobile like concat('%',#{keyword},'%') or hpuinfo.mobile like concat('%',#{keyword},'%')')
|
||||||
</if>
|
</if>
|
||||||
<if test="workflowStage!=null and workflowStage!=''">
|
<if test="workflowStage!=null and workflowStage!=''">
|
||||||
@@ -485,16 +485,16 @@
|
|||||||
<if test="acceptAdjustType!=null">
|
<if test="acceptAdjustType!=null">
|
||||||
AND hpuinfo.accept_adjust_type = #{acceptAdjustType}
|
AND hpuinfo.accept_adjust_type = #{acceptAdjustType}
|
||||||
</if>
|
</if>
|
||||||
<if test="storeKeywordType!=null and storeKeywordType=='storeCode'">
|
<if test="storeKeyword!=null and storeKeyword!='' and storeKeywordType!=null and storeKeywordType=='storeCode'">
|
||||||
AND hpuinfo.shop_code like concat('%',#{storeKeyword},'%')
|
AND hpuinfo.shop_code like concat('%',#{storeKeyword},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="storeKeywordType!=null and storeKeywordType=='storeName'">
|
<if test="storeKeyword!=null and storeKeyword!='' and storeKeywordType!=null and storeKeywordType=='storeName'">
|
||||||
AND hpuinfo.shop_name like concat('%',#{storeKeyword},'%')
|
AND hpuinfo.shop_name like concat('%',#{storeKeyword},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="storeKeywordType!=null and storeKeywordType=='partnerName'">
|
<if test="storeKeyword!=null and storeKeyword!='' and storeKeywordType!=null and storeKeywordType=='partnerName'">
|
||||||
AND hpuinfo.recommend_partner_name like concat('%',#{storeKeyword},'%')
|
AND hpuinfo.recommend_partner_name like concat('%',#{storeKeyword},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="storeKeywordType!=null and storeKeywordType=='partnerMobile'">
|
<if test="storeKeyword!=null and storeKeyword!='' and storeKeywordType!=null and storeKeywordType=='partnerMobile'">
|
||||||
AND hpuinfo.recommend_partner_mobile like concat('%',#{storeKeyword},'%')
|
AND hpuinfo.recommend_partner_mobile like concat('%',#{storeKeyword},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="userIdList!=null and userIdList.size>0 and developmentManagerList!=null and developmentManagerList.size==0">
|
<if test="userIdList!=null and userIdList.size>0 and developmentManagerList!=null and developmentManagerList.size==0">
|
||||||
|
|||||||
Reference in New Issue
Block a user