|
@@ -40,14 +40,14 @@ public class CrkxxController {
|
40
|
40
|
|
41
|
41
|
@PostMapping("/create")
|
42
|
42
|
@Operation(summary = "创建出入库信息")
|
43
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:create')")
|
|
43
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:create')")
|
44
|
44
|
public CommonResult<Long> createCrkxx(@Valid @RequestBody CrkxxSaveReqVO createReqVO) {
|
45
|
45
|
return success(crkxxService.createCrkxx(createReqVO));
|
46
|
46
|
}
|
47
|
47
|
|
48
|
48
|
@PutMapping("/update")
|
49
|
49
|
@Operation(summary = "更新出入库信息")
|
50
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:update')")
|
|
50
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:update')")
|
51
|
51
|
public CommonResult<Boolean> updateCrkxx(@Valid @RequestBody CrkxxSaveReqVO updateReqVO) {
|
52
|
52
|
crkxxService.updateCrkxx(updateReqVO);
|
53
|
53
|
return success(true);
|
|
@@ -56,7 +56,7 @@ public class CrkxxController {
|
56
|
56
|
@DeleteMapping("/delete")
|
57
|
57
|
@Operation(summary = "删除出入库信息")
|
58
|
58
|
@Parameter(name = "id", description = "编号", required = true)
|
59
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:delete')")
|
|
59
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:delete')")
|
60
|
60
|
public CommonResult<Boolean> deleteCrkxx(@RequestParam("id") Long id) {
|
61
|
61
|
crkxxService.deleteCrkxx(id);
|
62
|
62
|
return success(true);
|
|
@@ -65,7 +65,7 @@ public class CrkxxController {
|
65
|
65
|
@GetMapping("/get")
|
66
|
66
|
@Operation(summary = "获得出入库信息")
|
67
|
67
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
68
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:query')")
|
|
68
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:query')")
|
69
|
69
|
public CommonResult<CrkxxRespVO> getCrkxx(@RequestParam("id") Long id) {
|
70
|
70
|
CrkxxDO crkxx = crkxxService.getCrkxx(id);
|
71
|
71
|
CrkxxRespVO respVO = BeanUtils.toBean(crkxx, CrkxxRespVO.class);
|
|
@@ -74,7 +74,7 @@ public class CrkxxController {
|
74
|
74
|
|
75
|
75
|
@PostMapping("/page")
|
76
|
76
|
@Operation(summary = "获得出入库信息分页")
|
77
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:query')")
|
|
77
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:query')")
|
78
|
78
|
public CommonResult<PageResult<CrkxxRespVO>> getCrkxxPage(@Valid @RequestBody CrkxxPageReqVO pageReqVO) {
|
79
|
79
|
PageResult<CrkxxDO> pageResult = crkxxService.getCrkxxPage(pageReqVO);
|
80
|
80
|
return success(BeanUtils.toBean(pageResult, CrkxxRespVO.class));
|
|
@@ -82,7 +82,7 @@ public class CrkxxController {
|
82
|
82
|
|
83
|
83
|
@GetMapping("/export-excel")
|
84
|
84
|
@Operation(summary = "导出出入库信息 Excel")
|
85
|
|
- @PreAuthorize("@ss.hasPermission('delivery:crkxx:export')")
|
|
85
|
+ @PreAuthorize("@ss.hasPermission('coding:crkxx:export')")
|
86
|
86
|
@ApiAccessLog(operateType = EXPORT)
|
87
|
87
|
public void exportCrkxxExcel(@Valid CrkxxPageReqVO pageReqVO,
|
88
|
88
|
HttpServletResponse response) throws IOException {
|