潘志宝
2024-09-09 ed81b7371e376df35448b81531d30dd9024bd44a
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java
@@ -35,7 +35,7 @@
        return success(BeanUtils.toBean(page, MmItemTypeRespVO.class));
    }
    @GetMapping("/info/{id}")
    @GetMapping("/get/{id}")
    public CommonResult<MmResultTableEntity> info(@PathVariable("id") String id){
        MmResultTableEntity resultTable = mmResultTableService.selectById(id);
@@ -45,7 +45,7 @@
    /**
     * 保存结果存放
     */
    @PostMapping
    @PostMapping("/create")
    public CommonResult<Boolean> save(@RequestBody MmResultTableEntity resultTable){
        int count = mmResultTableService.check(resultTable);
        if (count > 0) {
@@ -58,7 +58,7 @@
    /**
     * 修改结果存放
     */
    @PutMapping
    @PutMapping("/update")
    public CommonResult<Boolean> update(@RequestBody MmResultTableEntity resultTable){
        int count = mmResultTableService.check(resultTable);
        if (count > 0) {
@@ -71,9 +71,9 @@
    /**
     * 删除结果存放
     */
    @DeleteMapping("{id}")
    public CommonResult<Boolean> delete(@RequestBody String[] ids){
        mmResultTableService.deleteBatch(ids);
    @DeleteMapping("/delete")
    public CommonResult<Boolean> delete(@RequestParam("id") String id) {
        mmResultTableService.deleteBatch(new String[]{id});
        return success(true);
    }
}