mirror of https://github.com/elunez/eladmin
耗材采购权限
parent
f4f50d9377
commit
06da2219a9
|
@ -78,7 +78,7 @@ public class ConsumablesPurchaseOrderController {
|
||||||
@Log("审核耗材采购单")
|
@Log("审核耗材采购单")
|
||||||
@ApiOperation(value = "审核耗材采购单")
|
@ApiOperation(value = "审核耗材采购单")
|
||||||
@PostMapping(value = "/auditConsumablesPurchaseOrder")
|
@PostMapping(value = "/auditConsumablesPurchaseOrder")
|
||||||
@PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL','PRODUCTPURCHASEORDER_AUDIT')")
|
@PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL','CONSUMABLESPURCHASEORDER_AUDIT')")
|
||||||
public ResponseEntity auditConsumablesPurchaseOrder(@Validated @RequestBody AuditConsumablesPurchaseOrderRequest auditConsumablesPurchaseOrderRequest){
|
public ResponseEntity auditConsumablesPurchaseOrder(@Validated @RequestBody AuditConsumablesPurchaseOrderRequest auditConsumablesPurchaseOrderRequest){
|
||||||
consumablesPurchaseOrderService.auditConsumablesPurchaseOrder(auditConsumablesPurchaseOrderRequest);
|
consumablesPurchaseOrderService.auditConsumablesPurchaseOrder(auditConsumablesPurchaseOrderRequest);
|
||||||
return new ResponseEntity(HttpStatus.OK);
|
return new ResponseEntity(HttpStatus.OK);
|
||||||
|
@ -86,7 +86,7 @@ public class ConsumablesPurchaseOrderController {
|
||||||
|
|
||||||
@Log("初始化耗材采购单编号")
|
@Log("初始化耗材采购单编号")
|
||||||
@GetMapping(value = "/initConsumablesPurchaseOrderCode")
|
@GetMapping(value = "/initConsumablesPurchaseOrderCode")
|
||||||
@PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL')")
|
@PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL')")
|
||||||
public ResponseEntity initConsumablesPurchaseOrderCode(){
|
public ResponseEntity initConsumablesPurchaseOrderCode(){
|
||||||
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");//设置日期格式
|
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");//设置日期格式
|
||||||
String supplierCode = "CP"+ LocalDateTime.now().format(fmt);
|
String supplierCode = "CP"+ LocalDateTime.now().format(fmt);
|
||||||
|
@ -96,7 +96,7 @@ public class ConsumablesPurchaseOrderController {
|
||||||
@Log("查看耗材采购详情")
|
@Log("查看耗材采购详情")
|
||||||
@ApiOperation(value = "查看产品采购详情")
|
@ApiOperation(value = "查看产品采购详情")
|
||||||
@GetMapping(value = "/consumablesPurchaseOrder/{id}")
|
@GetMapping(value = "/consumablesPurchaseOrder/{id}")
|
||||||
@PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL','PRODUCTPURCHASEORDER_DETAIL_BY_I')")
|
@PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL','CONSUMABLESPURCHASEORDER_DETAIL_BY_ID')")
|
||||||
public ResponseEntity getOutSourceInspectionCertificate(@PathVariable Long id){
|
public ResponseEntity getOutSourceInspectionCertificate(@PathVariable Long id){
|
||||||
return new ResponseEntity(consumablesPurchaseOrderService.findById(id), HttpStatus.OK);
|
return new ResponseEntity(consumablesPurchaseOrderService.findById(id), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue