Commit 616d13be by huluobin

# update

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