Fancy
2024-06-12 5dac0857309483496cf2828cc121fe8a0db84497
add line disabled method
1个文件已修改
21 ■■■■ 已修改文件
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineCtrl.java 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineCtrl.java
@@ -48,7 +48,6 @@
        }
    }
    /**
     * 更新
     * @param line
@@ -58,6 +57,23 @@
    @SsoPowerAop(power = "10300005")
    @Log("更新生产线")
    public BaseResponse<Boolean> update(@RequestBody @Valid PltProductionLine line){
        int count = sv.update(line);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
        } else {
            return BaseResponseUtils.buildSuccess(true);
        }
    }
    /**
     * 启用\禁用生产线
     * @return
     */
    @PostMapping(path="disabled")
    @SsoPowerAop(power = "10300005")
    @Log("设置生产线状态")
    //{id: "2", disabled: true}
    public BaseResponse<Boolean> disabled(@RequestBody PltProductionLine line){
        int count = sv.update(line);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -82,8 +98,6 @@
            return BaseResponseUtils.buildSuccess(true);
        }
    }
    /**
     * 根据ID查询
@@ -122,6 +136,5 @@
        return BaseResponseUtils.buildSuccess(list);
    }
}