mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
-1
@@ -9,7 +9,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import javax.validation.*;
|
||||
import javax.servlet.http.*;
|
||||
import java.util.*;
|
||||
|
||||
+4
-5
@@ -6,7 +6,6 @@ import com.cf.imes.module.manage.controller.admin.plate.vo.remain.RemainPlateSav
|
||||
import com.cf.imes.module.manage.controller.admin.plate.vo.remain.RemainPlateUptReqVO;
|
||||
import com.cf.imes.module.manage.dal.dataobject.remainplaten.RemainPlateDO;
|
||||
import com.cf.imes.module.manage.service.remainplaten.RemainPlateService;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@@ -43,7 +42,7 @@ public class RemainPlateController {
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建生产单余料板表(单个)")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:create')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Long> createRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO createReqVO) {
|
||||
return success(remainPlateService.createRemainPlate(createReqVO));
|
||||
}
|
||||
@@ -57,7 +56,7 @@ public class RemainPlateController {
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新生产单余料板表")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Boolean> updateRemainPlate(@Valid @RequestBody RemainPlateSaveReqVO updateReqVO) {
|
||||
remainPlateService.updateRemainPlate(updateReqVO);
|
||||
return success(true);
|
||||
@@ -65,7 +64,7 @@ public class RemainPlateController {
|
||||
|
||||
@PutMapping("/updateStatus")
|
||||
@Operation(summary = "余料板批量核销")
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:update')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Boolean> updateRemainPlate(@RequestBody RemainPlateUptReqVO updateReqVO) {
|
||||
remainPlateService.updateRemainPlateStatus(updateReqVO.getIds(),
|
||||
updateReqVO.getStatus(),
|
||||
@@ -85,7 +84,7 @@ public class RemainPlateController {
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除生产单余料板表")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('manage:remain-plate:delete')")
|
||||
@PreAuthorize("@ss.hasPermission('placeorder:remain')")
|
||||
public CommonResult<Boolean> deleteRemainPlate(@RequestParam("id") Set<Long> ids) {
|
||||
remainPlateService.deleteRemainPlate(ids);
|
||||
return success(true);
|
||||
|
||||
Reference in New Issue
Block a user