yurk 3 년 전
부모
커밋
bde4b1d7d6

+ 17 - 6
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/TimeTypeController.java

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