潘志宝
2025-03-20 7587c74159ce4026baa811f25f306510569ee54a
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/DmModuleController.java
@@ -70,7 +70,7 @@
    @PostMapping("/create")
    @PreAuthorize("@ss.hasPermission('model:pre-module:create')")
    @DSTransactional(rollbackFor= Exception.class)
    public CommonResult<Boolean> save(@RequestBody DmModuleEntity module){
    public CommonResult<Boolean> create(@RequestBody DmModuleEntity module){
        int count = dmModuleService.check(module);
        if (count > 0) {
            ErrorCode errorCode = new ErrorCode(999, "名称重复");
@@ -101,4 +101,5 @@
        dmModuleService.deleteBatch(new String[]{id});
        return success(true);
    }
}