| | |
| | | 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.CoalPayDto; |
| | | import com.gkhy.exam.pay.dto.req.CoalPayReq; |
| | | import com.gkhy.exam.pay.dto.req.CoalPayStudentReq; |
| | | import com.gkhy.exam.pay.dto.req.CoalPayTypeReq; |
| | | 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") |
| | |
| | | return toAjax(coalPayService.updateCoalPayType(coalPayTypeReq)); |
| | | } |
| | | |
| | | // /** |
| | | // * 修改煤矿缴费 |
| | | // */ |
| | | // @PostMapping("/updatePayCompany") |
| | | // public AjaxResult updatePay(@RequestBody ){ |
| | | // return toAjax(coalPayService.updatePay()); |
| | | // } |
| | | /** |
| | | * 删除煤矿缴费管理 |
| | | */ |
| | |
| | | return success(coalPayStudentReps); |
| | | } |
| | | |
| | | @PostMapping("/personPay") |
| | | @GetMapping("/personPay") |
| | | @ApiOperation(value = "个人缴费接口") |
| | | @Anonymous |
| | | public AjaxResult payMoney(@RequestParam("coalPayId") Long coalPayId,@RequestParam("studentId") Long studentId){ |
| | | return success(coalPayService.personPayMoney(coalPayId,studentId)); |
| | | } |
| | | |
| | | @PostMapping("/teamPay") |
| | | @Anonymous |
| | | @ApiOperation(value = "批量缴费") |
| | | public AjaxResult teamMoney(@RequestBody CoalTeamPayReq coalTeamPayReq){ |
| | | return success(coalPayService.teamPayMoney(coalTeamPayReq)); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/topay") |
| | | @Anonymous |
| | | @ApiOperation(value = "缴费测试") |
| | | public AjaxResult toPay() throws IOException, BillSignException { |
| | | return success(coalPayService.topay()); |
| | | } |
| | | |
| | | |
| | | |
| | | } |