修改sql语句

This commit is contained in:
yangjun 2024-07-24 22:05:07 +08:00
parent 7d03e6a62d
commit 82d48a1800
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
if(c.id is null,0,1) as sfdz
FROM bl_shipinquan a
left join artificer b on a.create_by = b.user_id
left join bl_shipinquan_dianzan c on a.id = b.user_id <if test="params.userId!=null and params.userId!=''">and c.create_by = #{params.userId}</if>
left join bl_shipinquan_dianzan c on a.id = c.shipinquan_id <if test="params.userId!=null and params.userId!=''">and c.create_by = #{params.userId}</if>
left join collect_artificer d on b.artificer_id = d.artificer_id
<where>
<if test="params.userId!=null and params.userId!=''">