| | |
| | | import com.boying.common.SystemConfigProperties; |
| | | import com.boying.entity.*; |
| | | import com.boying.service.*; |
| | | import com.boying.util.DateUtilOther; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | */ |
| | | @GetMapping("/getByQueryId") |
| | | public Object getByQueryId(Long queryId){ |
| | | if(queryId == null){ |
| | | return R.failed("参数为空"); |
| | | } |
| | | OutPark byId = outParkService.getById(queryId); |
| | | if(byId.getTime() > 0){ |
| | | byId.setTimeStr(DateUtilOther.millisToDayHrMinSec(new Double(byId.getTime()).longValue())); |
| | | } |
| | | return R.ok(byId,"请求成功"); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | if(outPark.getStatus() == 0){ |
| | | return R.ok("跳转邮储支付", "https://hbfs.govpay.ccb.com/online/fssm?fee=130000000001&PyfScnCgycd=01&pyfTpcd=3&BNo="+outPark.getPayCode()); |
| | | // return R.ok("跳转邮储支付", "https://hbfs.govpay.ccb.com/online/fssm?fee=130000000001&PyfScnCgycd=01&pyfTpcd=3&BNo="+outPark.getPayCode()); |
| | | // return R.ok("跳转邮储支付", "http://wxtest.smeia.cn/h5/?appid=CUP11234601101¶ms={\"payMode\":\"B\",\"payItemNo\":\"41301106100124\",\"userNo\":"+id+"}"); |
| | | return R.ok("跳转邮储支付", "http://wxtest.smeia.cn/h5/static/router.html?rurl=router&router=psbc&appid=CUP16522400671¶ms={\"payMode\":\"B\",\"payItemNo\":\"41301106100124\",\"userNo\":"+id+"}"); |
| | | |
| | | }else if(outPark.getStatus() == 1){ |
| | | return R.failed("已缴费"); |
| | | }else { |
| | |
| | | //修改订单状态 0成功 |
| | | if(success==0){ |
| | | updateOrderRecord(queryId,"03"); |
| | | return R.ok(null,"请求成功"); |
| | | return R.ok(null,"回调成功"); |
| | | }else { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); |
| | | String logs = sdf.format(new Date())+" 出场id为:"+queryId+",缴费失败------》\n"; |
| | |
| | | writeTxt(logs); |
| | | } |
| | | } |
| | | return R.ok(byId,"请求成功"); |
| | | return R.ok(byId,"回调成功"); |
| | | } |
| | | |
| | | /** |