| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * 新增非煤缴费管理 |
| | | */ |
| | | @PostMapping("/add") |
| | | @PreAuthorize("@ss.hasPermi('noncoal:nonpay:add')") |
| | | //@PreAuthorize("@ss.hasPermi('noncoal:nonpay:add')") |
| | | @ApiOperation(value = "新增非煤缴费管理") |
| | | public AjaxResult add(@Validated @RequestBody NonCoalPayReqDto nonCoalPay) { |
| | | return toAjax(nonCoalPayService.insertNonCoalPay(nonCoalPay)); |
| | |
| | | return success(nonCoalPayStudentService.sendOrder(id, payType)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/queryOrder") |
| | | @ApiOperation(value = "查询是否生成缴费订单") |
| | | @Anonymous |
| | | @RepeatSubmit |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", dataTypeClass = Long.class, value = "个人缴费学员数据id,团队缴费数据id", required = true), |
| | | @ApiImplicitParam(name = "payType", dataTypeClass = String.class, value = "1个人2是团队", required = true), |
| | | }) |
| | | public AjaxResult queryOrder(@RequestParam("id") Long id, @RequestParam("payType") String payType) { |
| | | return success(nonCoalPayStudentService.sendOrder(id, payType)); |
| | | } |
| | | |
| | | |
| | | } |