修改重复绑定返回warn
This commit is contained in:
parent
8b9336c1cc
commit
a37ce706dc
@ -1355,6 +1355,14 @@ public class AppSystemController extends BaseController {
|
||||
if(userFollowList1.size() > 0){
|
||||
// 互相关注
|
||||
sysUserFollow.setFollowStatus("1");
|
||||
|
||||
// 他的follow_status也要成1 变成互相关注
|
||||
SysUserFollow userFollow1 = userFollowList1.get(0);
|
||||
userFollow1.setFollowStatus("1");
|
||||
// 更新关注状态
|
||||
userFollowService.updateSysUserFollow(userFollow1);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1387,6 +1395,13 @@ public class AppSystemController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
// // 测试 warning返回码
|
||||
// @GetMapping("/warning")
|
||||
// public AjaxResult warning()
|
||||
// {
|
||||
// return AjaxResult.warn("警告");
|
||||
// }
|
||||
|
||||
// 新增点赞信息
|
||||
@GetMapping("/addLike/{workId}")
|
||||
@Transactional
|
||||
|
||||
Loading…
Reference in New Issue
Block a user