|
@@ -1,56 +0,0 @@
|
|
|
-package com.fjhx.controller;
|
|
|
-
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import org.springblade.core.tool.api.R;
|
|
|
-import com.fjhx.entity.PaymentDetails;
|
|
|
-import com.fjhx.params.payment.PaymentDetailsVo;
|
|
|
-import com.fjhx.service.PaymentDetailsService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-/**
|
|
|
- * <p>
|
|
|
- * 前端控制器
|
|
|
- * </p>
|
|
|
- *
|
|
|
- * @author ${author}
|
|
|
- * @since 2022-08-26
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/paymentDetails")
|
|
|
-public class PaymentDetailsController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private PaymentDetailsService paymentDetailsService;
|
|
|
-
|
|
|
- @PostMapping("/page")
|
|
|
- public R page(@RequestBody Map<String, String> condition){
|
|
|
- Page<PaymentDetails> result = paymentDetailsService.getPage(condition);
|
|
|
- return R.success(result);
|
|
|
- }
|
|
|
-
|
|
|
- @PostMapping("/add")
|
|
|
- public R add(@RequestBody PaymentDetailsVo paymentDetailsVo){
|
|
|
- paymentDetailsService.add(paymentDetailsVo);
|
|
|
- return R.success();
|
|
|
- }
|
|
|
-
|
|
|
- @PostMapping("/edit")
|
|
|
- public R edit(@RequestBody PaymentDetailsVo paymentDetailsVo){
|
|
|
- paymentDetailsService.edit(paymentDetailsVo);
|
|
|
- return R.success();
|
|
|
- }
|
|
|
-
|
|
|
- @PostMapping("/delete")
|
|
|
- public R delete(@RequestBody PaymentDetailsVo paymentDetailsVo){
|
|
|
- paymentDetailsService.delete(paymentDetailsVo);
|
|
|
- return R.success();
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|