| | |
| | | */ |
| | | private void handlePayResult(String orderNo, Integer status, Map<String, String> params) { |
| | | UserPolicy userPolicy = userPolicyService.getOne(new LambdaQueryWrapper<UserPolicy>() |
| | | .eq(UserPolicy::getOrderNo,orderNo) |
| | | ); |
| | | .eq(UserPolicy::getOrderNo,orderNo)); |
| | | if(ObjectUtil.isNotEmpty(userPolicy)){ |
| | | if ("2".equals(status)) { |
| | | if (status == 2) { |
| | | userPolicy.setPayStatus(status); |
| | | } else if ("3".equals(status)) { |
| | | } else if (status == 3) { |
| | | userPolicy.setPayStatus(status); |
| | | } else if ("0010".equals(status)) { |
| | | } else if (0010 == status) { |
| | | userPolicy.setPayMsg("系统超时或异常"); |
| | | } else if ("0014".equals(status)) { |
| | | userPolicy.setPayMsg("mchId是系统分配的商户号,不能自己生成"); |
| | | } |
| | | } else if (0014 == status) { |
| | | userPolicy.setPayMsg("mchId是系统分配的商户号,不能自己生成"); |
| | | } |
| | | userPolicyService.updateById(userPolicy); |
| | | } |
| | | } |
| | | } |