| | |
| | | SELECT id FROM se_virtual_card WHERE vc_num = #{vcNum} |
| | | </select> |
| | | |
| | | <!--根据虚拟卡编号获取虚拟卡ID--> |
| | | <select id="getClientIdAndNameByVsCardNo" resultType="java.util.Map"> |
| | | SELECT |
| | | cli.id AS clientId, |
| | | cli.name AS clientName |
| | | FROM se_virtual_card card |
| | | INNER JOIN se_client cli ON card.client_id = cli.id |
| | | WHERE card.vc_num = #{vcNum} |
| | | </select> |
| | | |
| | | <!--根据行政区划串模糊查询虚拟卡编号--> |
| | | <select id="getVcCardNumOfMax" resultType="java.lang.String"> |
| | | SELECT vc_num |
| | |
| | | WHEN order_state = 2 THEN "已支付" |
| | | END) AS orderStateName |
| | | FROM se_vc_recharge |
| | | <where> |
| | | <if test = "orderState != null"> |
| | | order_state = #{orderState,jdbcType=TINYINT} |
| | | </if> |
| | | </where> |
| | | where order_state = 2 |
| | | order by recharge_time DESC |
| | | <if test="pageCurr != null and pageSize != null"> |
| | | LIMIT ${(pageCurr-1)*pageSize}, ${pageSize} |
| | |
| | | SELECT |
| | | COUNT(*) |
| | | FROM se_vc_recharge |
| | | <where> |
| | | <if test = "orderState != null"> |
| | | order_state = #{orderState,jdbcType=TINYINT} |
| | | </if> |
| | | </where> |
| | | where order_state = 2 |
| | | </select> |
| | | </mapper> |