| | |
| | | package com.gkhy.exam.pay.controller; |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.gkhy.exam.pay.dto.rep.CoalPayRepDto; |
| | | import com.gkhy.exam.pay.dto.rep.CoalPayStudentRep; |
| | | import com.gkhy.exam.pay.dto.req.*; |
| | | import com.gkhy.exam.pay.entity.CoalPayStudent; |
| | | import com.gkhy.exam.pay.entity.PayReqData; |
| | | import com.gkhy.exam.pay.service.CoalPayService; |
| | | import com.gkhy.exam.pay.utils.BillSignException; |
| | | import com.gkhy.exam.pay.utils.PayUtils; |
| | | import com.gkhy.exam.pay.utils.ResultVo; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.utils.RandomUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | /** |
| | | * 查询煤矿缴费管理列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询煤矿缴费管理列表") |
| | | public TableDataInfo list(@RequestBody CoalPayReq coalPayReq) { |
| | | public TableDataInfo list(CoalPayReq coalPayReq) { |
| | | startPage(); |
| | | List<CoalPayRepDto> list = coalPayService.selectCoalPayList(coalPayReq); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 获取非煤缴费管理详细信息 |
| | | * 获取煤矿缴费管理详细信息 |
| | | */ |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取煤矿缴费管理详细信息", httpMethod = "GET") |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/topay") |
| | | @Anonymous |
| | | @ApiOperation(value = "缴费测试") |
| | | public AjaxResult toPay() throws IOException, BillSignException { |
| | | return success(coalPayService.topay()); |
| | | } |
| | | |
| | | |
| | | |
| | | } |