From 8f7b99b0a3d53f4410e8b1f2f209ce2743f0a944 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 08 Apr 2021 20:14:44 +0800 Subject: [PATCH] 20210408 核销 --- zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml b/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml index d0c549b..71c76ac 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml @@ -5,4 +5,76 @@ <mapper namespace="com.matrix.system.activity.dao.ActivitySignReceiveRecordDao"> + <select id="findSignReceiveList" resultType="com.matrix.system.activity.vo.SignReceiveListVo"> + SELECT + a.id id, + b.nick_name nickName, + a.receive_time reciveTime, + c.cumulative_day cumulativeDay, + c.award_type awardType, + c.award_name awardName, + c.award_rule awardRule + FROM + activity_sign_receive_record a + LEFT JOIN biz_user b ON a.user_id = b.user_id + LEFT JOIN activity_sign_award_set c ON a.award_id = c.id + <where> + a.company_id = #{record.companyId} + and a.activity_id = #{record.actId} + <if test="record.yhmc != null and record.yhmc != ''"> + and b.nick_name like concat('%',#{record.yhmc},'%') + </if> + <if test="record.startTime != null "> + and a.receive_time >= #{record.startTime} + </if> + <if test="record.endTime != null"> + and #{record.endTime} >= a.receive_time + </if> + </where> + <if test="record.sort !=null"> + order by + a.${record.sort} ${record.order} + </if> + </select> + + <select id="selectCouponList" resultType="com.matrix.system.activity.vo.CouponVo"> + SELECT + a.id id, + a.c_name cName, + a.end_time endTime + FROM + shop_coupon a + <where> + a.company_id = #{record.companyId} + <if test="record.yhjmc != null and record.yhjmc != ''"> + and a.c_name like concat('%',#{record.yhjmc},'%') + </if> + </where> + <if test="record.sort !=null"> + order by + a.${record.sort} ${record.order} + </if> + </select> + + <select id="selectGoodsList" resultType="com.matrix.system.activity.vo.GoodsVo"> + SELECT + a.id id, + a.name name, + a.good_type goodType, + a.code code, + a.seal_pice sealPice + FROM + shopping_goods a + <where> + a.company_id = #{record.companyId} + <if test="record.cpmc != null and record.cpmc != ''"> + and a.name like concat('%',#{record.cpmc},'%') + </if> + </where> + <if test="record.sort !=null"> + order by + a.${record.sort} ${record.order} + </if> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1