不再清空游客的到期时间
This commit is contained in:
@@ -30,6 +30,6 @@ public interface AccountMapper extends CommonMapper<Account> {
|
|||||||
*/
|
*/
|
||||||
// Account findById(String id);
|
// Account findById(String id);
|
||||||
|
|
||||||
void toVisitor(Long id, Date date);
|
void toVisitor(Long id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1746,7 +1746,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void toVisitor(Account account){
|
public void toVisitor(Account account){
|
||||||
accountMapper.toVisitor(account.getId(), new Date());
|
accountMapper.toVisitor(account.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Long> setUserValidToDayEnd(){
|
public List<Long> setUserValidToDayEnd(){
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<update id="toVisitor">
|
<update id="toVisitor">
|
||||||
update t_account
|
update t_account
|
||||||
set is_trial = 0, credits = 0, system_user = 0, update_date = #{date}
|
set is_trial = 0, credits = 0, system_user = 0
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user