Commit 11a185c7 by yao.xiao

补充提交

parent feccbd8f
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
left join ag_md_drop_options o on o.id = s.md_drop_option_id left join ag_md_drop_options o on o.id = s.md_drop_option_id
left join ag_acl_user uc on uc.id = s.created_by left join ag_acl_user uc on uc.id = s.created_by
left join ag_acl_user uu on uu.id = s.created_by left join ag_acl_user uu on uu.id = s.created_by
LEFT JOIN ag_acl_customer_object_share os on os.item_id = s.id
<where> <where>
<if test="mdDropOptionIds != null"> <if test="mdDropOptionIds != null">
<foreach collection="mdDropOptionIds" item="mdDropOptionId" index="index" open="(" close=")" separator="or"> <foreach collection="mdDropOptionIds" item="mdDropOptionId" index="index" open="(" close=")" separator="or">
...@@ -30,13 +31,15 @@ ...@@ -30,13 +31,15 @@
<if test="id != null"> <if test="id != null">
and s.id = #{id,jdbcType=BIGINT} and s.id = #{id,jdbcType=BIGINT}
</if> </if>
<if test="id != null"> <if test="shareCode != null">
and s.share_code = #{shareCode,jdbcType=VARCHAR} and os.item_type = 1
and os.share_code = #{shareCode,jdbcType=VARCHAR}
</if> </if>
<if test="isActive != null"> <if test="isActive != null">
and s.is_active = #{isActive,jdbcType=INTEGER} and s.is_active = #{isActive,jdbcType=INTEGER}
</if> </if>
</where> </where>
group by s.id
ORDER BY s.id desc ORDER BY s.id desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment