From 6d78f8ab222498d727e91983d0511d8119d95aa3 Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Mon, 24 Jan 2022 19:34:42 +0800 Subject: [PATCH] Merge branch 'score_shop' into api_score_meger --- zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml index 9a30f8e..96da104 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml @@ -331,6 +331,41 @@ </if> </if> </select> + + <select id="selectForWxInPage" resultMap="MoneyCardUseFlowMap"> + select + id, + order_no, + pay_no, + content, + create_time, + type, + total, + times, + gift_money, + balance, + (SELECT su_name from sys_users a WHERE operation_id=a.su_id) staffName + from money_card_use_flow + <where> + and car_use_id=#{record.carUseId} + <if test="record.queryTime!=null and record.queryTime!=''"> + and DATE_FORMAT(create_time,'%Y-%m')=#{record.queryTime} + </if> + <if test="record.revenueType==1"> + and total>0 + </if> + <if test="record.revenueType==2"> + <![CDATA[ and total<0 ]]> + </if> + </where> + order by create_time desc + </select> + + <update id="updateVipCardId"> + update money_card_use_flow + set car_use_id=#{cardId} + where vip_id=#{vipId} and type='会员充值' + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1