|
@@ -5,10 +5,14 @@
|
|
|
SELECT * from t_dict_file df
|
|
|
LEFT JOIN t_dict d on df.dict_id = d.id
|
|
|
LEFT JOIN t_common_upload cu on df.upload_id = cu.id
|
|
|
+ left join tm_user u on df.sys_user_id = u.id
|
|
|
where df.rec_status = 'A'
|
|
|
<if test="param.sysUserId != null">
|
|
|
and ( df.sys_user_id = #{param.sysUserId} or df.use_type = 'animation')
|
|
|
</if>
|
|
|
+ <if test="param.deptId != null and param.deptId != ''">
|
|
|
+ and ( u.dept_id = #{param.deptId} or df.use_type = 'animation')
|
|
|
+ </if>
|
|
|
<if test="param.name != null and param.name !=''">
|
|
|
and df.name like concat('%',#{param.name}, '%')
|
|
|
</if>
|