|
@@ -40,14 +40,14 @@ public class KqxxController {
|
40
|
40
|
|
41
|
41
|
@PostMapping("/create")
|
42
|
42
|
@Operation(summary = "创建库区信息;")
|
43
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:create')")
|
|
43
|
+ //@PreAuthorize("@ss.hasPermission('coding:kqxx:create')")
|
44
|
44
|
public CommonResult<Long> createKqxx(@Valid @RequestBody KqxxSaveReqVO createReqVO) {
|
45
|
45
|
return success(kqxxService.createKqxx(createReqVO));
|
46
|
46
|
}
|
47
|
47
|
|
48
|
48
|
@PutMapping("/update")
|
49
|
49
|
@Operation(summary = "更新库区信息;")
|
50
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:update')")
|
|
50
|
+ // @PreAuthorize("@ss.hasPermission('coding:kqxx:update')")
|
51
|
51
|
public CommonResult<Boolean> updateKqxx(@Valid @RequestBody KqxxSaveReqVO updateReqVO) {
|
52
|
52
|
kqxxService.updateKqxx(updateReqVO);
|
53
|
53
|
return success(true);
|
|
@@ -56,7 +56,7 @@ public class KqxxController {
|
56
|
56
|
@DeleteMapping("/delete")
|
57
|
57
|
@Operation(summary = "删除库区信息;")
|
58
|
58
|
@Parameter(name = "id", description = "编号", required = true)
|
59
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:delete')")
|
|
59
|
+ //@PreAuthorize("@ss.hasPermission('coding:kqxx:delete')")
|
60
|
60
|
public CommonResult<Boolean> deleteKqxx(@RequestParam("id") Long id) {
|
61
|
61
|
kqxxService.deleteKqxx(id);
|
62
|
62
|
return success(true);
|
|
@@ -65,14 +65,14 @@ public class KqxxController {
|
65
|
65
|
@GetMapping("/get")
|
66
|
66
|
@Operation(summary = "获得库区信息;")
|
67
|
67
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
68
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:query')")
|
|
68
|
+ // @PreAuthorize("@ss.hasPermission('coding:kqxx:query')")
|
69
|
69
|
public CommonResult<KqxxRespVO> getKqxx(@RequestParam("id") Long id) {
|
70
|
70
|
KqxxDO kqxx = kqxxService.getKqxx(id);
|
71
|
71
|
return success(BeanUtils.toBean(kqxx, KqxxRespVO.class));
|
72
|
72
|
}
|
73
|
73
|
@GetMapping("/getByKqBm")
|
74
|
74
|
@Operation(summary = "根据库区编码获得库区信息;")
|
75
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:queryByKqBm')")
|
|
75
|
+ // @PreAuthorize("@ss.hasPermission('coding:kqxx:queryByKqBm')")
|
76
|
76
|
public CommonResult<KqxxRespVO> getKqxxByKqBm() {
|
77
|
77
|
KqxxDO kqxx = kqxxService.getKqxxByKqBm();
|
78
|
78
|
return success(BeanUtils.toBean(kqxx, KqxxRespVO.class));
|
|
@@ -80,7 +80,7 @@ public class KqxxController {
|
80
|
80
|
|
81
|
81
|
@GetMapping("/page")
|
82
|
82
|
@Operation(summary = "获得库区信息;分页")
|
83
|
|
- @PreAuthorize("@ss.hasPermission('coding:kqxx:query')")
|
|
83
|
+ //@PreAuthorize("@ss.hasPermission('coding:kqxx:query')")
|
84
|
84
|
public CommonResult<PageResult<KqxxRespVO>> getKqxxPage(@Valid KqxxPageReqVO pageReqVO) {
|
85
|
85
|
PageResult<KqxxDO> pageResult = kqxxService.getKqxxPage(pageReqVO);
|
86
|
86
|
return success(BeanUtils.toBean(pageResult, KqxxRespVO.class));
|