From 62a7f3228c94db41bf57858a6549eb0db033bf1e Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期三, 29 五月 2024 11:44:17 +0800 Subject: [PATCH] 2024-05-29 朱宝民 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeVirtualCardMapper.xml | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeVirtualCardMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeVirtualCardMapper.xml index d0bfda8..f579148 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeVirtualCardMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeVirtualCardMapper.xml @@ -150,7 +150,7 @@ </where> </select> - <!--鑾峰彇鍏ㄩ儴铏氭嫙鍗�--> + <!--鑾峰彇鍐滄埛鍏ㄩ儴铏氭嫙鍗�--> <select id="getVCs" resultType="com.dy.pipIrrGlobal.voSe.VoVirtualCard"> SELECT CAST(id AS char) AS id, @@ -162,6 +162,11 @@ WHEN in_use = 1 THEN "浣跨敤涓�" END) AS inUseName FROM se_virtual_card + <where> + <if test = "clientId != null"> + AND client_id = #{clientId} + </if> + </where> ORDER BY in_use, money </select> @@ -184,4 +189,13 @@ <select id="getVcIdByNum" resultType="java.lang.Long"> SELECT id FROM se_virtual_card WHERE vc_num = #{vcNum} </select> + + <!--鏍规嵁琛屾斂鍖哄垝涓叉ā绯婃煡璇㈣櫄鎷熷崱缂栧彿--> + <select id="getVcCardNumOfMax" resultType="java.lang.String"> + SELECT vc_num + FROM se_virtual_card + WHERE vc_num LIKE CONCAT('%',#{areaCode},'%') + ORDER BY vc_num desc + LIMIT 0,1 + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0