#
luxiaotao1123
2024-02-18 56c4f53923375dc005c25530ee253b1e178a1c6c
#
3个文件已修改
18 ■■■■ 已修改文件
zy-asrs-framework/src/main/resources/templates/react/Controller.txt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/DeptController.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/UserController.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-framework/src/main/resources/templates/react/Controller.txt
@@ -49,7 +49,7 @@
    }
    @PreAuthorize("hasAuthority('@{ITEMNAME}:@{SIMPLEENTITYNAME}:save')")
    @OperationLog("添加@{ENTITYNAME}")
    @OperationLog("添加@{TABLEDESC}")
    @PostMapping("/@{SIMPLEENTITYNAME}/save")
    public R save(@RequestBody @{ENTITYNAME} @{SIMPLEENTITYNAME}) {
        if (!@{SIMPLEENTITYNAME}Service.save(@{SIMPLEENTITYNAME})) {
@@ -59,7 +59,7 @@
    }
    @PreAuthorize("hasAuthority('@{ITEMNAME}:@{SIMPLEENTITYNAME}:update')")
    @OperationLog("修改@{ENTITYNAME}")
    @OperationLog("修改@{TABLEDESC}")
    @PostMapping("/@{SIMPLEENTITYNAME}/update")
    public R update(@RequestBody @{ENTITYNAME} @{SIMPLEENTITYNAME}) {
        if (!@{SIMPLEENTITYNAME}Service.updateById(@{SIMPLEENTITYNAME})) {
@@ -69,7 +69,7 @@
    }
    @PreAuthorize("hasAuthority('@{ITEMNAME}:@{SIMPLEENTITYNAME}:remove')")
    @OperationLog("删除@{ENTITYNAME}")
    @OperationLog("删除@{TABLEDESC}")
    @PostMapping("/@{SIMPLEENTITYNAME}/remove/{ids}")
    public R remove(@PathVariable Long[] ids) {
        if (!@{SIMPLEENTITYNAME}Service.removeByIds(Arrays.asList(ids))) {
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/DeptController.java
@@ -49,7 +49,7 @@
    }
    @PreAuthorize("hasAuthority('system:dept:save')")
    @OperationLog("添加Dept")
    @OperationLog("添加部门")
    @PostMapping("/dept/save")
    public R save(@RequestBody Dept dept) {
        if (!deptService.save(dept)) {
@@ -59,7 +59,7 @@
    }
    @PreAuthorize("hasAuthority('system:dept:update')")
    @OperationLog("修改Dept")
    @OperationLog("修改部门")
    @PostMapping("/dept/update")
    public R update(@RequestBody Dept dept) {
        if (!deptService.updateById(dept)) {
@@ -69,7 +69,7 @@
    }
    @PreAuthorize("hasAuthority('system:dept:remove')")
    @OperationLog("删除Dept")
    @OperationLog("删除部门")
    @PostMapping("/dept/remove/{ids}")
    public R remove(@PathVariable Long[] ids) {
        if (!deptService.removeByIds(Arrays.asList(ids))) {
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/UserController.java
@@ -49,7 +49,7 @@
    }
    @PreAuthorize("hasAuthority('system:user:save')")
    @OperationLog("添加User")
    @OperationLog("添加用户")
    @PostMapping("/user/save")
    public R save(@RequestBody User user) {
        if (!userService.save(user)) {
@@ -59,7 +59,7 @@
    }
    @PreAuthorize("hasAuthority('system:user:update')")
    @OperationLog("修改User")
    @OperationLog("修改用户")
    @PostMapping("/user/update")
    public R update(@RequestBody User user) {
        if (!userService.updateById(user)) {
@@ -69,7 +69,7 @@
    }
    @PreAuthorize("hasAuthority('system:user:remove')")
    @OperationLog("删除User")
    @OperationLog("删除用户")
    @PostMapping("/user/remove/{ids}")
    public R remove(@PathVariable Long[] ids) {
        if (!userService.removeByIds(Arrays.asList(ids))) {