Commit 3dc74b0e by huluobin

# 费用系统 搜索页面

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