潘志宝
2024-09-09 ed81b7371e376df35448b81531d30dd9024bd44a
Merge remote-tracking branch 'origin/master'

# Conflicts:
# iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/DmModuleController.java
已修改4个文件
37 ■■■■ 文件已修改
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/DmModuleController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/DmModuleController.java
@@ -52,11 +52,11 @@
    /**
     * 管网信息
     */
    @GetMapping("/get")
    public CommonResult<DmModuleEntity> info(@RequestParam("id") String id){
        DmModuleEntity module = dmModuleService.get(id);
    @GetMapping("/get/{id}")
    public CommonResult<DmModuleEntity> info(@PathVariable("id") String id){
        DmModuleEntity info = dmModuleService.selectById(id);
        return success(module);
        return success(info);
    }
    /**
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java
@@ -38,7 +38,7 @@
    /**
     * 预测项类型信息
     */
    @GetMapping("/info/{id}")
    @GetMapping("/get/{id}")
    public CommonResult<MmItemTypeEntity> info(@PathVariable("id") String id) {
        MmItemTypeEntity itemType = mmItemTypeService.selectById(id);
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java
@@ -40,7 +40,7 @@
    /**
     * 预测项信息
     */
    @GetMapping("/info/{id}")
    @GetMapping("/get/{id}")
    public CommonResult<MmPredictItemDTO> info(@PathVariable("id") String id, @RequestParam Map<String, Object> params){
        MmPredictItemDTO predictItem = mmPredictItemService.getDetailById(id, params);
        return success(predictItem);
@@ -49,7 +49,7 @@
    /**
     * 保存预测项
     */
    @PostMapping
    @PostMapping("/create")
    public CommonResult<Boolean> save(@RequestBody MmPredictItemDTO mmPredictItemDto){
        int count = mmPredictItemService.check(mmPredictItemDto.getMmPredictItem());
        if (count > 0) {
@@ -62,7 +62,7 @@
    /**
     * 修改预测项
     */
    @PutMapping
    @PutMapping("/update")
    public CommonResult<Boolean> update(@RequestBody MmPredictItemDTO mmPredictItemDto){
        int count = mmPredictItemService.check(mmPredictItemDto.getMmPredictItem());
        if (count > 0) {
@@ -75,12 +75,9 @@
    /**
     * 删除预测项
     */
    @DeleteMapping("{id}")
    public CommonResult<Boolean> delete(@RequestBody String[] itemIds){
        if (itemIds == null || itemIds.length == 0) {
            return error(999, "参数不能为空");
        }
        mmPredictItemService.deleteBatch(itemIds);
    @DeleteMapping("/delete")
    public CommonResult<Boolean> delete(@RequestParam("id") String id) {
        mmPredictItemService.deleteBatch(new String[]{id});
        return success(true);
    }
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);
    }
}