记得上下班打卡 | git大法好,push需谨慎

Commit 2f0d6261 authored by jiangxiulong's avatar jiangxiulong

prize_type_num to prize_num

parent 9978b290
......@@ -47,7 +47,7 @@
ORDER BY a.mid DESC
</select>
<select id="sureOutPrizeNum" resultType="java.lang.Integer">
select count(prize_type_num)
select COUNT(*)
from sweet_integral_activity_draw
<where>
<if test="integralActivityId != null and integralActivityId != ''">
......@@ -57,7 +57,7 @@
</where>
</select>
<select id="totalDrawNum" resultType="java.lang.Integer">
select count(*)
select COUNT(*)
from sweet_integral_activity_draw
<where>
<if test="integralActivityId != null and integralActivityId != ''">
......@@ -66,7 +66,7 @@
</where>
</select>
<select id="otherOutPrizeNum" resultType="java.lang.Integer">
select count(prize_type_num)
select COUNT(*)
from sweet_integral_activity_draw
<where>
<if test="integralActivityId != null and integralActivityId != ''">
......
......@@ -3,7 +3,7 @@
<mapper namespace="com.liquidnet.service.sweet.mapper.SweetIntegralActivityPrizeMapper">
<select id="sureTotalPrizeNum" resultType="java.lang.Integer">
select count(prize_num)
select ifnull(SUM(prize_num), 0)
from sweet_integral_activity_prize
<where>
<if test="integralActivityId != null and integralActivityId != ''">
......@@ -13,7 +13,7 @@
</where>
</select>
<select id="otherTotalPrizeNum" resultType="java.lang.Integer">
select count(prize_num)
select ifnull(SUM(prize_num), 0)
from sweet_integral_activity_prize
<where>
<if test="integralActivityId != null and integralActivityId != ''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment