songhuangfeng123
2022-08-03 81695c67562b55493a2e98263223c5440e28feed
goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/TargetDutySummaryController.java
@@ -59,10 +59,10 @@
     */
    @PostMapping(value = "/page/list")
    public ResultVO selectAll(@RequestBody PageQuery<TargetDutySummaryQueryCriteria> pageQuery){
      PageUtils.checkCheck(pageQuery);
        PageUtils.checkCheck(pageQuery);
      return this.targetDutySummaryService.queryAll(pageQuery);
    }
    /**
     * 通过主键查询单条数据
@@ -97,10 +97,12 @@
     * @param ids 主键结合
     * @return 删除结果
     */
    @GetMapping(value = "/delete")
    public ResultVO delete(String ids) {
   List<String> idList = Arrays.stream(ids.split(","))
                .collect(Collectors.toList());
    @RequestMapping(value = "/delete",method = RequestMethod.POST)
    public ResultVO delete(@RequestBody Long[] ids) {
        if(ids == null){
            return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL);
        }
        List<Long> idList = Arrays.asList(ids);
        this.targetDutySummaryService.removeByIds(idList);
        return new ResultVO<>(ResultCodes.OK);
    }
@@ -166,4 +168,4 @@
        System.out.println(JSONObject.toJSONString(mng));
    }
}
}