mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
余料库存:接口权限串修改
This commit is contained in:
+10
-10
@@ -42,21 +42,21 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建生产单余料板表(单个)")
|
@Operation(summary = "创建生产单余料板表(单个)")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasAnyPermissions('manage:remain-plate:create','placeorder:optimize')")
|
||||||
public CommonResult<Boolean> createRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO createReqVO) {
|
public CommonResult<Boolean> createRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO createReqVO) {
|
||||||
return success(remainPlateService.createRemainPlate(createReqVO));
|
return success(remainPlateService.createRemainPlate(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/createMultiple")
|
@PostMapping("/createMultiple")
|
||||||
@Operation(summary = "创建生产单余料板表(多个)")
|
@Operation(summary = "创建生产单余料板表(多个)")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasAnyPermissions('manage:remain-plate:create','placeorder:optimize')")
|
||||||
public CommonResult<Boolean> createRemainPlateMultiple(@Valid @RequestBody Set<RemainPlateSaveReqVO> createReqVOS) {
|
public CommonResult<Boolean> createRemainPlateMultiple(@Valid @RequestBody Set<RemainPlateSaveReqVO> createReqVOS) {
|
||||||
return success(remainPlateService.createRemainPlateMultiple(createReqVOS));
|
return success(remainPlateService.createRemainPlateMultiple(createReqVOS));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新生产单余料板表")
|
@Operation(summary = "更新生产单余料板表")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||||
public CommonResult<Boolean> updateRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO updateReqVO) {
|
||||||
remainPlateService.updateRemainPlate(updateReqVO);
|
remainPlateService.updateRemainPlate(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -64,7 +64,7 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@PutMapping("/updateStatus")
|
@PutMapping("/updateStatus")
|
||||||
@Operation(summary = "余料板批量核销")
|
@Operation(summary = "余料板批量核销")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||||
public CommonResult<Boolean> updateRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
public CommonResult<Boolean> updateRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||||
remainPlateService.updateRemainPlateStatus(updateReqVO.getId(),
|
remainPlateService.updateRemainPlateStatus(updateReqVO.getId(),
|
||||||
updateReqVO.getStatus(),
|
updateReqVO.getStatus(),
|
||||||
@@ -75,7 +75,7 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@PutMapping("/revertUpdate")
|
@PutMapping("/revertUpdate")
|
||||||
@Operation(summary = "余料板批量释放")
|
@Operation(summary = "余料板批量释放")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||||
public CommonResult<Boolean> revertRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
public CommonResult<Boolean> revertRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||||
remainPlateService.revertRemainPlateStatus(updateReqVO.getId(),updateReqVO.getStatus());
|
remainPlateService.revertRemainPlateStatus(updateReqVO.getId(),updateReqVO.getStatus());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -84,7 +84,7 @@ public class RemainPlateController {
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除生产单余料板表")
|
@Operation(summary = "删除生产单余料板表")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:delete')")
|
||||||
public CommonResult<Boolean> deleteRemainPlate(@RequestParam("id") Set<Long> ids) {
|
public CommonResult<Boolean> deleteRemainPlate(@RequestParam("id") Set<Long> ids) {
|
||||||
remainPlateService.deleteRemainPlate(ids);
|
remainPlateService.deleteRemainPlate(ids);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -93,7 +93,7 @@ public class RemainPlateController {
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得生产单余料板表")
|
@Operation(summary = "获得生产单余料板表")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:query')")
|
||||||
public CommonResult<RemainPlateRespVO> getRemainPlate(@RequestParam("id") Long id) {
|
public CommonResult<RemainPlateRespVO> getRemainPlate(@RequestParam("id") Long id) {
|
||||||
RemainPlateDO remainPlate = remainPlateService.getRemainPlate(id);
|
RemainPlateDO remainPlate = remainPlateService.getRemainPlate(id);
|
||||||
return success(BeanUtils.toBean(remainPlate, RemainPlateRespVO.class));
|
return success(BeanUtils.toBean(remainPlate, RemainPlateRespVO.class));
|
||||||
@@ -101,7 +101,7 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得生产单余料板表分页")
|
@Operation(summary = "获得生产单余料板表分页")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasAnyPermissions('manage:remain-plate:query','placeorder:optimize')")
|
||||||
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePage(@Valid RemainPlatePageReqVO pageReqVO) {
|
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePage(@Valid RemainPlatePageReqVO pageReqVO) {
|
||||||
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePage(pageReqVO);
|
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
||||||
@@ -109,7 +109,7 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@GetMapping("/pageAdd")
|
@GetMapping("/pageAdd")
|
||||||
@Operation(summary = "获得生产单余料板可添加分页")
|
@Operation(summary = "获得生产单余料板可添加分页")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:query')")
|
||||||
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePageToAdd(@Valid RemainPlatePageReqVO pageReqVO) {
|
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePageToAdd(@Valid RemainPlatePageReqVO pageReqVO) {
|
||||||
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePageToAdd(pageReqVO);
|
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePageToAdd(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
||||||
@@ -117,7 +117,7 @@ public class RemainPlateController {
|
|||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出生产单余料板表Excel")
|
@Operation(summary = "导出生产单余料板表Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
@PreAuthorize("@ss.hasPermission('manage:remain-plate:export')")
|
||||||
@OperateLog(type = EXPORT)
|
@OperateLog(type = EXPORT)
|
||||||
public void exportRemainPlateExcel(@Valid RemainPlatePageReqVO pageReqVO,
|
public void exportRemainPlateExcel(@Valid RemainPlatePageReqVO pageReqVO,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
|
|||||||
Reference in New Issue
Block a user