Compare commits
No commits in common. "9f64ed0f54ba174d81e0b58d3f85a09b46979988" and "3daa88a50974472b5e4ad2ddded7fba7a50d7210" have entirely different histories.
9f64ed0f54
...
3daa88a509
@ -41,12 +41,14 @@ public class FinancialPaymentController {
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建财务支付子表")
|
@Operation(summary = "创建财务支付子表")
|
||||||
|
@PreAuthorize("@ss.hasPermission('bpm:financial-payment:create')")
|
||||||
public CommonResult<Long> createFinancialPayment(@Valid @RequestBody FinancialPaymentSaveVO vo) {
|
public CommonResult<Long> createFinancialPayment(@Valid @RequestBody FinancialPaymentSaveVO vo) {
|
||||||
return success(financialPaymentService.createFinancialPayment(vo));
|
return success(financialPaymentService.createFinancialPayment(vo));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新财务支付管理")
|
@Operation(summary = "更新财务支付管理")
|
||||||
|
@PreAuthorize("@ss.hasPermission('bpm:financial-payment:update')")
|
||||||
public CommonResult<Boolean> updateFinancialPayment(@Valid @RequestBody FinancialPaymentSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateFinancialPayment(@Valid @RequestBody FinancialPaymentSaveReqVO updateReqVO) {
|
||||||
financialPaymentService.updateFinancialPayment(updateReqVO);
|
financialPaymentService.updateFinancialPayment(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@ -69,6 +71,7 @@ public class FinancialPaymentController {
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除财务支付管理")
|
@Operation(summary = "删除财务支付管理")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('bpm:financial-payment:delete')")
|
||||||
public CommonResult<Boolean> deleteFinancialPayment(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteFinancialPayment(@RequestParam("id") Long id) {
|
||||||
financialPaymentService.deleteFinancialPayment(id);
|
financialPaymentService.deleteFinancialPayment(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@ -77,6 +80,7 @@ public class FinancialPaymentController {
|
|||||||
@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('bpm:financial-payment:query')")
|
||||||
public CommonResult<FinancialPaymentRespVO> getFinancialPayment(@RequestParam("id") Long id) {
|
public CommonResult<FinancialPaymentRespVO> getFinancialPayment(@RequestParam("id") Long id) {
|
||||||
FinancialPaymentDO financialPayment = financialPaymentService.getFinancialPayment(id);
|
FinancialPaymentDO financialPayment = financialPaymentService.getFinancialPayment(id);
|
||||||
FinancialPaymentRespVO vo = BeanUtils.toBean(financialPayment, FinancialPaymentRespVO.class);
|
FinancialPaymentRespVO vo = BeanUtils.toBean(financialPayment, FinancialPaymentRespVO.class);
|
||||||
@ -101,6 +105,7 @@ public class FinancialPaymentController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得财务支付管理分页")
|
@Operation(summary = "获得财务支付管理分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('bpm:financial-payment:query')")
|
||||||
public CommonResult<PageResult<FinancialPaymentRespVO>> getFinancialPaymentPage(@Valid FinancialPaymentPageReqVO pageReqVO) {
|
public CommonResult<PageResult<FinancialPaymentRespVO>> getFinancialPaymentPage(@Valid FinancialPaymentPageReqVO pageReqVO) {
|
||||||
PageResult<FinancialPaymentDO> pageResult = financialPaymentService.getFinancialPaymentPage(pageReqVO);
|
PageResult<FinancialPaymentDO> pageResult = financialPaymentService.getFinancialPaymentPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, FinancialPaymentRespVO.class));
|
return success(BeanUtils.toBean(pageResult, FinancialPaymentRespVO.class));
|
||||||
|
Loading…
Reference in New Issue
Block a user