抽奖金额修改

订单笔数统计 只统计支付宝支付
增加 一次性任务 新人福利 领取1元
This commit is contained in:
2024-12-11 15:47:47 +08:00
parent b36abdd513
commit 2f73eb9032
11 changed files with 170 additions and 65 deletions

View File

@@ -314,6 +314,7 @@
WHERE
orders.user_id = #{userId}
AND orders.`status` = 1
AND orders.`pay_way` = 9
<if test="time !=null and time != ''">
and create_time > #{time}
</if>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sqx.modules.taskCenter.dao.TaskCenterRecordDao">
<select id="countTaskNum" resultType="Integer">
SELECT
count(*)
FROM
task_center_record record
WHERE
record.user_id = #{userId}
AND record.task_id = #{taskId}
<if test="time !=null and time != ''">
and create_time > #{time}
</if>
</select>
</mapper>