ct 2 дней назад
Родитель
Сommit
dc420dbc35

+ 10 - 0
fs-admin/src/main/java/com/fs/his/task/Task.java

@@ -243,6 +243,9 @@ public class Task {
     @Autowired
     private IFsUserInformationCollectionService fsUserInformationCollectionService;
 
+    @Autowired
+    private IFsConsecutiveWithdrawRecordService fsConsecutiveWithdrawRecordService;
+
 
     /**
      * 定时任务,处理ai禁止回复之后的消息
@@ -1985,4 +1988,11 @@ public class Task {
         private String userID;
         private String nickname;
     }
+
+    /**
+     * 风控连续提现用户 每天执行一次
+     */
+    public void checkConsecutiveWithdrawUsers(){
+        fsConsecutiveWithdrawRecordService.checkConsecutiveWithdrawUsers();
+    }
 }

+ 1 - 1
fs-service/src/main/resources/mapper/his/FsUserIntegralLogsMapper.xml

@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         order by create_time desc
     </select>
     <select id="sumIntegralByLogTypeAndCreateTime" resultType="java.lang.Long">
-        SELECT COALESCE(SUM(integral), 0) FROM fs_user_integral_logs where log_type = #{logType} and <include refid="timeCondition"/>
+        SELECT COALESCE(SUM(a.integral), 0) FROM fs_user_integral_logs a where a.log_type = #{logType} and <include refid="timeCondition"/>
     </select>
 
     <insert id="insertFsUserIntegralLogs" parameterType="FsUserIntegralLogs" useGeneratedKeys="true" keyProperty="id">