|
@@ -46,8 +46,23 @@ public class TimeTypeController {
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/save")
|
|
@RequestMapping("/save")
|
|
- public HttpRespMsg save(TimeType record,String ids) {
|
|
|
|
|
|
+ public HttpRespMsg save(TimeType record) {
|
|
Boolean success = timeTypeService.updateById(record);
|
|
Boolean success = timeTypeService.updateById(record);
|
|
|
|
+ HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
|
+ if (!success) {
|
|
|
|
+ httpRespMsg.setError("保存失败");
|
|
|
|
+ }
|
|
|
|
+ return httpRespMsg;
|
|
|
|
+ }
|
|
|
|
+ @RequestMapping("/changeUserReportType")
|
|
|
|
+ public HttpRespMsg changeUserReportType(String id){
|
|
|
|
+ User user = userMapper.selectById(id);
|
|
|
|
+ user.setReportStatus(0);
|
|
|
|
+ userMapper.updateById(user);
|
|
|
|
+ return new HttpRespMsg();
|
|
|
|
+ }
|
|
|
|
+ @RequestMapping("/changeUserReportTypeList")
|
|
|
|
+ public HttpRespMsg changeUserReportTypeList(String ids){
|
|
if(!StringUtils.isEmpty(ids)){
|
|
if(!StringUtils.isEmpty(ids)){
|
|
String[] split = ids.split(",");
|
|
String[] split = ids.split(",");
|
|
List<User> userList = userMapper.selectList(new QueryWrapper<User>().in( "id", Arrays.asList(split)));
|
|
List<User> userList = userMapper.selectList(new QueryWrapper<User>().in( "id", Arrays.asList(split)));
|
|
@@ -56,11 +71,7 @@ public class TimeTypeController {
|
|
});
|
|
});
|
|
userService.updateBatchById(userList);
|
|
userService.updateBatchById(userList);
|
|
}
|
|
}
|
|
- HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
|
- if (!success) {
|
|
|
|
- httpRespMsg.setError("保存失败");
|
|
|
|
- }
|
|
|
|
- return httpRespMsg;
|
|
|
|
|
|
+ return new HttpRespMsg();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|