123
This commit is contained in:
@@ -144,6 +144,9 @@ public class DynamicController extends BaseController {
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(dynamicService.removeBatchByIds(Arrays.asList(ids)));
|
||||
for (Long id : ids) {
|
||||
dynamicService.deleteDynamicAdmin(id);
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ public class NoticeTest {
|
||||
System.out.println(JSON.toJSONString(rechargeTotalCache.getToday()));
|
||||
rechargeTotalCache.add(BigDecimal.valueOf(123));
|
||||
System.out.println(JSON.toJSONString(rechargeTotalCache.getToday()));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.ruoyi.test.business;
|
||||
import com.ruoyi.cai.domain.User;
|
||||
import com.ruoyi.cai.domain.UserCount;
|
||||
import com.ruoyi.cai.im.ImManager;
|
||||
import com.ruoyi.cai.service.DynamicService;
|
||||
import com.ruoyi.cai.service.UserCountService;
|
||||
import com.ruoyi.cai.service.UserService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -22,6 +23,14 @@ public class UserTest {
|
||||
private UserService userService;
|
||||
@Autowired
|
||||
private ImManager imManager;
|
||||
@Autowired
|
||||
private DynamicService dynamicService;
|
||||
|
||||
@Test
|
||||
public void clean(){
|
||||
dynamicService.clearDynamic(12);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
@@ -35,7 +44,7 @@ public class UserTest {
|
||||
public void refreshIm(){
|
||||
List<User> list = userService.list();
|
||||
for (User user : list) {
|
||||
imManager.updateImInfo(user.getId(),user.getAvatar(),user.getNickname());
|
||||
imManager.updateImInfo(user.getId(),user.getAvatar(),user.getNickname(),user.getGender());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user