|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.HashSet;
|
|
|
import java.util.List;
|
|
@@ -87,11 +88,28 @@ public class ReimburseProjectController {
|
|
|
result.success("修改成功!");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 集体修改状态
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/editMoreStatus")
|
|
|
+ public Result<Object> editMoreStatus(@RequestBody JSONObject data) {
|
|
|
+ List<Long> ids = JSONArray.parseArray(data.getJSONArray("ids").toJSONString(), Long.class);
|
|
|
+ String status = data.getString("status");
|
|
|
+ List<ReimburseProject> list = new ArrayList<>();
|
|
|
+ for (Long id : ids) {
|
|
|
+ ReimburseProject p = new ReimburseProject();
|
|
|
+ p.setId(id);
|
|
|
+ p.setStatus(status);
|
|
|
+ list.add(p);
|
|
|
+ }
|
|
|
+ reimburseProjectService.updateBatchById(list);
|
|
|
+ return Result.ok("success");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 通过id删除
|
|
|
*/
|
|
|
@GetMapping(value = "/delete")
|