Commit 3dc74b0e by huluobin

# 费用系统 搜索页面

parent a7c080ea
......@@ -317,32 +317,34 @@
find_in_set(t1.project_type,#{req.projectTypes})
</if>
and (false or
<foreach collection="req.keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.cost_plan_no = #{key}
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.cost_no LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.type_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<if test=" req.keys!=null and req.keys.size()>0 ''">
<foreach collection="req.keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.cost_plan_no = #{key}
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.cost_no LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.type_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.company_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.bank_card_user LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.company_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
<foreach collection="keys" item="key" index="index">
<if test="key != null and key != '' ">
or t1.bank_card_user LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
</if>
)
group by t1.id
group by t1.id
......
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