donggaosheng пре 9 месеци
родитељ
комит
c40c288b07

+ 2 - 2
zd-modules/zd-exam/src/main/resources/mapper/exam/ElPointsRecordMapper.xml

@@ -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&lt;=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,