mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
余料入库权限问题修改
This commit is contained in:
+3
@@ -56,6 +56,9 @@ public class OptimizationSavePlateReqVO {
|
||||
private Integer texture;
|
||||
|
||||
|
||||
@Schema(description = "排孔类型,0 正纹 1 反面 2 随意面")
|
||||
private Integer placeHole;
|
||||
|
||||
@Schema(description = "宽度")
|
||||
private BigDecimal width;
|
||||
|
||||
|
||||
+1
-1
@@ -265,7 +265,7 @@ public class PlateServiceImpl implements PlateService {
|
||||
PlateDO plateDO = BeanUtils.toBean(reqVO, PlateDO.class);
|
||||
|
||||
plateDO.setRemark(reqVO.getRemake1() +","+ reqVO.getRemake2());
|
||||
|
||||
plateDO.setHoleArrange(reqVO.getPlaceHole());
|
||||
plateDO.setGoodsId(reqVO.getGoodsId());
|
||||
|
||||
plateDO.setPlateNo((obtainingTime) + Long.toString(plateNo).substring(2));
|
||||
|
||||
+4
-4
@@ -49,7 +49,7 @@ public class RemainPlateController {
|
||||
|
||||
@PostMapping("/createMultiple")
|
||||
@Operation(summary = "创建生产单余料板表(多个)")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:create')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Boolean> createRemainPlateMultiple(@Valid @RequestBody Set<RemainPlateSaveReqVO> createReqVOS) {
|
||||
return success(remainPlateService.createRemainPlateMultiple(createReqVOS));
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class RemainPlateController {
|
||||
|
||||
@PutMapping("/revertUpdate")
|
||||
@Operation(summary = "余料板批量释放")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Boolean> revertRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||
remainPlateService.revertRemainPlateStatus(updateReqVO.getId(),updateReqVO.getStatus());
|
||||
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('manage:remain-plate:query')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<RemainPlateRespVO> getRemainPlate(@RequestParam("id") Long id) {
|
||||
RemainPlateDO remainPlate = remainPlateService.getRemainPlate(id);
|
||||
return success(BeanUtils.toBean(remainPlate, RemainPlateRespVO.class));
|
||||
@@ -109,7 +109,7 @@ public class RemainPlateController {
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出生产单余料板表Excel")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:export')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
@OperateLog(type = EXPORT)
|
||||
public void exportRemainPlateExcel(@Valid RemainPlatePageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user