Browse Source

小程序积分列表获得与消耗查询条件修改

Long 1 week ago
parent
commit
aaf762bdd3

+ 2 - 2
fs-service/src/main/java/com/fs/his/mapper/FsUserIntegralLogsMapper.java

@@ -88,10 +88,10 @@ public interface FsUserIntegralLogsMapper
             "and l.user_id = #{maps.userId}  " +
             "</if>" +
             "<if test = 'maps.type != null and maps.type==1       '> " +
-            "and (l.log_type =1 or l.log_type =2)  " +
+            "and l.integral >= 0  " +
             "</if>" +
             "<if test = 'maps.type != null and maps.type==2       '> " +
-            "and (l.log_type =3 or l.log_type =4)  " +
+            "and l.integral < 0  " +
             "</if>" +
             " order by l.id desc "+
             "</script>"})