Commit 83c1a3d5 authored by H2T's avatar H2T

条件查询检查项接口修改

parent 4553619c
...@@ -150,12 +150,18 @@ ...@@ -150,12 +150,18 @@
<select id="queryCustomInputItem" resultType="com.yeejoin.amos.patrol.business.vo.PointInputItemVo"> <select id="queryCustomInputItem" resultType="com.yeejoin.amos.patrol.business.vo.PointInputItemVo">
SELECT * FROM p_input_item SELECT * FROM p_input_item
where is_delete = '0' and input_type = 0 where is_delete = '0' and input_type = 0
<if test="id!=null and id !='' ">
and id like concat('%', #{id}, '%')
</if>
<if test="orgCode!=null and orgCode !='' "> <if test="orgCode!=null and orgCode !='' ">
and org_Code = #{orgCode} and org_Code = #{orgCode}
</if> </if>
<if test="itemType!=null and itemType !='' "> <if test="itemType!=null and itemType !='' ">
and item_type = #{itemType} and item_type = #{itemType}
</if> </if>
<if test="inputClassify!=null and inputClassify !='' ">
and input_classify = #{inputClassify}
</if>
<if test="nameOrItemNo!=null and nameOrItemNo !='' "> <if test="nameOrItemNo!=null and nameOrItemNo !='' ">
and (name like concat('%', #{nameOrItemNo}, '%') or item_no like concat('%', #{nameOrItemNo}, '%')) and (name like concat('%', #{nameOrItemNo}, '%') or item_no like concat('%', #{nameOrItemNo}, '%'))
</if> </if>
......
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