| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- package com.dk.mdm.controller.mac;
- import com.dk.common.model.pojo.PageList;
- import com.dk.common.response.ResponseResultVO;
- import com.dk.mdm.model.pojo.mac.RecPay;
- import com.dk.common.service.BaseService;
- import com.dk.mdm.model.query.mac.RecPayQuery;
- import com.dk.mdm.model.response.mac.RecPayResponse;
- import com.dk.mdm.model.vo.mac.RecPayVO;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.web.bind.annotation.*;
- import org.springframework.beans.factory.annotation.Autowired;
- import io.swagger.annotations.Api;
- import com.dk.mdm.service.mac.RecPayService;
- import java.util.Map;
- @Api(tags = "收付款单API接口")
- @RestController
- @RequestMapping("/mac/recPay")
- public class RecPayController{
- public BaseService<RecPay> getService() {
- return recPayService;
- }
- @Autowired
- private RecPayService recPayService;
- /**
- * @desc : 条件查询
- * @author : 付斌
- * @date : 2023/1/9 10:36
- */
- @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询")
- @PostMapping({"list_by"})
- public ResponseResultVO<PageList<RecPayResponse>> selectByCond(@RequestBody RecPayQuery recPayQuery) {
- return recPayService.selectByCond(recPayQuery);
- }
- /**
- * @desc :查询收款明细(货物、收款、附件)
- * @author : 付斌
- * @date : 2024-02-28 13:24
- */
- @PostMapping({"select_rp_info_by_id/{id}"})
- public ResponseResultVO<Map<String, Object>> selectRpInfoById(@PathVariable String id) {
- return recPayService.selectRpInfoById(id);
- }
- /**
- * @desc : 通过ID查询
- * @author : 付斌
- * @date : 2023/1/9 10:41
- */
- @PostMapping({"/{id}"})
- public ResponseResultVO selectById(@PathVariable String id) {
- return recPayService.selectById(id);
- }
- /**
- * @desc : 新建客户收款
- * @author : 付斌
- * @date : 2023/1/9 10:48
- */
- @ApiOperation(value = "新建客户收款", notes = "新建客户收款")
- @PostMapping({"insert_receipt"})
- public ResponseResultVO<?> insertReceipt(@RequestBody RecPayVO recPayVO) {
- return recPayService.insertReceipt(recPayVO);
- }
- /**
- * @desc : 新建客户退款
- * @author : 付斌
- * @date : 2023/1/9 10:48
- */
- @ApiOperation(value = "新建客户退款", notes = "新建客户退款")
- @PostMapping({"insert_refund"})
- public ResponseResultVO<?> insertRefund(@RequestBody RecPayVO recPayVO) {
- return recPayService.insertRefund(recPayVO);
- }
- /**
- * @desc : 编辑客户收款/退款
- * @author : 付斌
- * @date : 2023/1/9 10:49
- */
- @ApiOperation(value = "编辑客户收款/退款", notes = "编辑客户收款/退款")
- @PostMapping({"update"})
- public ResponseResultVO<?> update(@RequestBody RecPayVO recPayVO) {
- return recPayService.update(recPayVO);
- }
- /**
- * @desc :查询收款明细(编辑用)
- * @author : 付斌
- * @date : 2024-02-28 13:24
- */
- @ApiOperation(value = "查询收款明细(编辑用)", notes = "查询收款明细(编辑用)")
- @PostMapping({"get_rp_for_update/{id}"})
- public ResponseResultVO<?> getRpForUpdate(@PathVariable String id) {
- return recPayService.getRpForUpdate(id);
- }
- /**
- * @desc : 新建应收收款(收款+冲应收)
- * @author : 付斌
- * @date : 2023/1/9 10:48
- */
- @ApiOperation(value = "新建应收收款", notes = "新建应收收款")
- @PostMapping({"insert_receivable_receipt"})
- public ResponseResultVO<?> insertReceivableReceipt(@RequestBody RecPayVO recPayVO) {
- return recPayService.insertReceivableReceipt(recPayVO);
- }
- }
|