| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- package com.sckw.freight.controller;
- import com.sckw.freight.model.vo.request.RequestSettlementLogisticsPageInfo;
- import com.sckw.freight.model.vo.response.ResponsePageData;
- import com.sckw.freight.model.vo.response.ResponseSettlementLogistics;
- import com.sckw.freight.service.freight.IKwpSettlementLogisticsService;
- import com.sckw.freight.util.R;
- import io.swagger.v3.oas.annotations.Operation;
- import io.swagger.v3.oas.annotations.Parameter;
- import io.swagger.v3.oas.annotations.Parameters;
- import io.swagger.v3.oas.annotations.tags.Tag;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.format.annotation.DateTimeFormat;
- import org.springframework.web.bind.annotation.*;
- import java.math.BigDecimal;
- import java.time.LocalDateTime;
- /**
- * @BelongsProject: Freight-Settlement-Backend
- * @BelongsPackage: com.sckw.freight.controller
- * @Author: xj
- * @CreateTime: 2025-01-12 13:21
- * @Description: 收款记录
- * @Version: 1.0
- */
- @RestController
- @RequestMapping("/settlement")
- @Slf4j
- @Tag(name = "收款")
- public class SettlementLogisticsController {
- @Autowired
- IKwpSettlementLogisticsService iKwpSettlementLogisticsService;
- /**
- * @description:添加收款明细(用于支付完成后,支付中台回调)
- * @author: xj
- * @date: 2025/1/12 星期日 13:19
- * @param:
- * @return: null
- **/
- @GetMapping("/add")
- @Operation(summary = "添加收款")
- @Parameters(value = {
- @Parameter(name = "lLedgerId", description = "对账单id"),
- @Parameter(name = "price", description = "付款金额"),
- @Parameter(name = "slOrderNo", description = "付款单号"),
- @Parameter(name = "payTime", description = "支付时间"),
- @Parameter(name = "userid", description = "用户id"),
- })
- public R<String> addSettlementLogistics(
- @RequestParam(value = "lLedgerId", required = true)Long lLedgerId,
- @RequestParam(value = "price", required = true) BigDecimal price,
- @RequestParam(value = "slOrderNo", required = true)String slOrderNo,
- @RequestParam(value = "payTime", required = true)@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime payTime,
- @RequestParam(value = "userid", required = true)Long userid) {
- iKwpSettlementLogisticsService.addSettlementLogistics(lLedgerId, price, slOrderNo, payTime, userid);
- return R.ok();
- }
- /**
- * @description:分页查询收款
- * @author: xj
- * @date: 2025/1/12 星期日 13:49
- * @param:
- * @return: null
- **/
- @PostMapping("/list")
- @Operation(summary = "分页查询收款")
- public R<ResponsePageData<ResponseSettlementLogistics>> list(@RequestBody RequestSettlementLogisticsPageInfo requestPageInfo) {
- return iKwpSettlementLogisticsService.list(requestPageInfo);
- }
- }
|