浏览代码

fix 过期账号清除家庭组账号

zoujiajian 3 年之前
父节点
当前提交
11801d215b

+ 2 - 1
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -9,7 +9,8 @@
             status       = #{entity.status},
             renew_status = #{entity.renewStatus},
             is_handle    = #{entity.isHandle},
-            user_id      = #{entity.userId}
+            user_id      = #{entity.userId},
+            account = #{entity.account}
         where id = #{entity.id} and expiry_time = #{expireTime}
     </update>
 

+ 1 - 0
netflix-service/src/main/java/com/cyksj/task/Scheduler.java

@@ -137,6 +137,7 @@ public class Scheduler {
         relation.setStatus(GroupsRelation.Status.none);
         relation.setIsHandle(false);
         relation.setRenewStatus(false);
+        relation.setAccount(null);
         Integer success = groupsRelationMapper.updateExpiryTime(relation, expireTime);
         if (success == 1) {
             log.info("开始清除过期子账号,座位号:{}", relation.getId());