123333
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.ruoyi.test.business;
|
||||
|
||||
import com.ruoyi.cai.domain.UserCount;
|
||||
import com.ruoyi.cai.service.UserCountService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@SpringBootTest
|
||||
@Slf4j
|
||||
public class UserTest {
|
||||
|
||||
@Autowired
|
||||
private UserCountService userCountService;
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
List<UserCount> list = userCountService.list();
|
||||
for (UserCount userCount : list) {
|
||||
userCountService.reset(userCount.getUserId());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user