修改sql语句
This commit is contained in:
parent
7d03e6a62d
commit
82d48a1800
|
@ -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!=''">
|
||||
|
|
Loading…
Reference in New Issue