|
|
@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT SUM(pl.points) FROM el_points_loginfo pl
|
|
|
WHERE pl.points>0
|
|
|
AND pl.points_id = t.id
|
|
|
- <if test="pointsType != null ">
|
|
|
+ <if test="pointsType != null and pointsType != ''" >
|
|
|
AND pl.points_type = #{pointsType}
|
|
|
</if>
|
|
|
),0) allBonusPoints,
|
|
|
@@ -101,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT ABS(SUM(pl.points)) FROM el_points_loginfo pl
|
|
|
WHERE pl.points<=0
|
|
|
AND pl.points_id = t.id
|
|
|
- <if test="pointsType != null ">
|
|
|
+ <if test="pointsType != null and pointsType != ''" >
|
|
|
AND pl.points_type = #{pointsType}
|
|
|
</if>
|
|
|
),0) consumeBonusPoints,
|