Commit 616d13be by huluobin

# update

parent 1e840717
......@@ -206,7 +206,7 @@
where t1.cost_status = 6
and t3.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
</select>
......@@ -225,7 +225,7 @@
where t1.cost_status = 6
and t3.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
</select>
......@@ -239,7 +239,7 @@
where t1.cost_status not in (0, 3, 5)
and t2.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
</select>
......@@ -254,7 +254,7 @@
where t1.cost_status not in (0, 3, 5)
and t2.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
</select>
......@@ -267,7 +267,7 @@
where t1.cost_status in (7,9)
and t3.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
group by t1.id
......@@ -281,7 +281,7 @@
where t1.cost_status = 9
and t3.id is not null
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.bankCardUser},'%') or t1.cost_no like concat('%',#{req.costNo},'%'))
</if>
<include refid="checkCostListSearch"/>
</select>
......
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