|
|
@@ -177,16 +177,16 @@
|
|
|
LEFT JOIN kxs_partner kp ON ku.id = kp.user_id
|
|
|
<where>
|
|
|
and ku.del_flag != 1
|
|
|
- <if test="query.queryType != null and query.queryType != ''">
|
|
|
+ <if test="query.queryType != null">
|
|
|
<choose>
|
|
|
- <when test="query.queryType == '1'">
|
|
|
+ <when test="query.queryType == 1 ">
|
|
|
<if test="query.userId != null and query.userId != ''">
|
|
|
AND ku.pid = #{query.userId}
|
|
|
</if>
|
|
|
</when>
|
|
|
- <when test="query.queryType == '0'">
|
|
|
+ <when test="query.queryType == 0 ">
|
|
|
<if test="query.pid != null and query.pid != ''">
|
|
|
- AND ku.id = #{pid}
|
|
|
+ AND ku.id = #{query.pid}
|
|
|
</if>
|
|
|
</when>
|
|
|
</choose>
|