mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
Merge branch 'main' of ssh://192.168.1.205:9922/cf_devdept2/cf_imes_server
This commit is contained in:
+10
-10
@@ -42,21 +42,21 @@ public class RemainPlateController {
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建生产单余料板表(单个)")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasAnyPermissions('manage:remain-plate:create','placeorder:optimize')")
|
||||
public CommonResult<Boolean> createRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO createReqVO) {
|
||||
return success(remainPlateService.createRemainPlate(createReqVO));
|
||||
}
|
||||
|
||||
@PostMapping("/createMultiple")
|
||||
@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) {
|
||||
return success(remainPlateService.createRemainPlateMultiple(createReqVOS));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新生产单余料板表")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
public CommonResult<Boolean> updateRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO updateReqVO) {
|
||||
remainPlateService.updateRemainPlate(updateReqVO);
|
||||
return success(true);
|
||||
@@ -64,7 +64,7 @@ public class RemainPlateController {
|
||||
|
||||
@PutMapping("/updateStatus")
|
||||
@Operation(summary = "余料板批量核销")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
public CommonResult<Boolean> updateRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||
remainPlateService.updateRemainPlateStatus(updateReqVO.getIds(),
|
||||
updateReqVO.getStatus(),
|
||||
@@ -75,7 +75,7 @@ public class RemainPlateController {
|
||||
|
||||
@PutMapping("/revertUpdate")
|
||||
@Operation(summary = "余料板批量释放")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
public CommonResult<Boolean> revertRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||
remainPlateService.revertRemainPlateStatus(updateReqVO.getIds(),updateReqVO.getStatus());
|
||||
return success(true);
|
||||
@@ -84,7 +84,7 @@ public class RemainPlateController {
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除生产单余料板表")
|
||||
@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) {
|
||||
remainPlateService.deleteRemainPlate(ids);
|
||||
return success(true);
|
||||
@@ -93,7 +93,7 @@ public class RemainPlateController {
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得生产单余料板表")
|
||||
@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) {
|
||||
RemainPlateDO remainPlate = remainPlateService.getRemainPlate(id);
|
||||
return success(BeanUtils.toBean(remainPlate, RemainPlateRespVO.class));
|
||||
@@ -101,7 +101,7 @@ public class RemainPlateController {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得生产单余料板表分页")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasAnyPermissions('manage:remain-plate:query','placeorder:optimize')")
|
||||
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePage(@Valid RemainPlatePageReqVO pageReqVO) {
|
||||
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
||||
@@ -109,7 +109,7 @@ public class RemainPlateController {
|
||||
|
||||
@GetMapping("/pageAdd")
|
||||
@Operation(summary = "获得生产单余料板可添加分页")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:query')")
|
||||
public CommonResult<PageResult<RemainPlateRespVO>> getRemainPlatePageToAdd(@Valid RemainPlatePageReqVO pageReqVO) {
|
||||
PageResult<RemainPlateDO> pageResult = remainPlateService.getRemainPlatePageToAdd(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));
|
||||
@@ -117,7 +117,7 @@ public class RemainPlateController {
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出生产单余料板表Excel")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:export')")
|
||||
@OperateLog(type = EXPORT)
|
||||
public void exportRemainPlateExcel(@Valid RemainPlatePageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
|
||||
@@ -161,5 +161,7 @@ chenfeng:
|
||||
send-maximum-quantity-per-day: 10
|
||||
begin-code: 9999 # 这里配置 9999 的原因是,测试方便。
|
||||
end-code: 9999 # 这里配置 9999 的原因是,测试方便。
|
||||
|
||||
encrypt:
|
||||
enable: false
|
||||
publicKey: cfimes
|
||||
debug: false
|
||||
|
||||
Reference in New Issue
Block a user