| | |
| | | import com.boying.service.*; |
| | | import com.boying.util.HTTPEntityUtil; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | @RestController |
| | | @RequestMapping("ffzf/ffPay") |
| | | @RequiredArgsConstructor |
| | | @Tag(description = "ffzf/ffPay" , name = "对接财政支付接口" ) |
| | | public class PayController extends BaseController { |
| | | |
| | | private final OrderRecordService orderRecordService; |
| | |
| | | |
| | | //生成电子缴款码 |
| | | @PostMapping("zhiFa") |
| | | @Operation(summary = "执法生成缴款码" , description = "执法生成缴款码" ) |
| | | public Object zhiFa(Long id){ |
| | | Ticket ticket = ticketService.getById(id); |
| | | if(ticket.getPayStatus()==1){ |
| | |
| | | |
| | | //支付接口通知 |
| | | @PostMapping("result") |
| | | @Operation(summary = "缴费结果通知" , description = "缴费结果通知" ) |
| | | public String result(HttpServletRequest request, String payKey, String payerTypeCode, String payerNum, String payCode, Double amt, String status, String errorInfo, String sign, String signType) throws Exception{ |
| | | try { |
| | | // updateOrderRecord(payCode,status); |
| | |
| | | |
| | | //生成电子缴款码 |
| | | @PostMapping("park2") |
| | | @Operation(summary = "财政缴费更新生成缴款码" , description = "财政缴费更新生成缴款码" ) |
| | | public Object park2(Long id){ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); |
| | | String logs = sdf.format(new Date())+"开始扫码缴费------》\n"; |
| | |
| | | * 缴款书 |
| | | */ |
| | | @PostMapping("park") |
| | | @Operation(summary = "对接邮储生成缴款书" , description = "对接邮储生成缴款书" ) |
| | | public Object park(Long id){ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); |
| | | String logs = sdf.format(new Date())+"开始扫码缴费------》\n"; |
| | |
| | | * 获取执法id |
| | | */ |
| | | @PostMapping("getZhifaId") |
| | | @Operation(summary = "更新大厅缴款码" , description = "更新大厅缴款码" ) |
| | | public Object getZhifaId(){ |
| | | QueryWrapper<NowPayOrder> wrapper = new QueryWrapper<>(); |
| | | wrapper.lambda() |
| | |
| | | * 缴款书 |
| | | */ |
| | | @PostMapping("zhifa") |
| | | @Operation(summary = "执法缴费(新)" , description = "执法缴费(新)" ) |
| | | public Object zhifa(Long id){ |
| | | System.out.println(id+"开始缴费"); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); |