|
@@ -80,20 +80,22 @@ public class CallbackController {
|
|
|
return "";
|
|
|
}
|
|
|
JSONObject data = JSONObject.parseObject(respData);
|
|
|
- String transStat = data.getString("trans_stat");
|
|
|
+ String transStatus = data.getString("trans_status");
|
|
|
// 订单号
|
|
|
String reqSeqId = data.getString("req_seq_id");
|
|
|
String subRespCode = data.getString("sub_resp_code");
|
|
|
LambdaQueryWrapper<WithdrawalRecord> query = Wrappers.lambdaQuery();
|
|
|
query.eq(WithdrawalRecord::getOrderNo, reqSeqId);
|
|
|
WithdrawalRecord withdrawalRecord = withdrawalRecordService.getOne(query);
|
|
|
- withdrawalRecord.setStatus(2);
|
|
|
if (HuifuConstant.RESP_CODE.equals(subRespCode)) {
|
|
|
// 业务处理成功
|
|
|
- if (HuifuConstant.TRANS_STAT_S.equals(transStat) || HuifuConstant.TRANS_STAT_P.equals(transStat)) {
|
|
|
+ if (HuifuConstant.TRANS_STAT_S.equals(transStatus)) {
|
|
|
withdrawalRecord.setStatus(1);
|
|
|
- } else {
|
|
|
+ } else if (HuifuConstant.TRANS_STAT_F.equals(transStatus)){
|
|
|
+ withdrawalRecord.setStatus(2);
|
|
|
withdrawalRecord.setResultMsg(data.getString("sub_resp_desc"));
|
|
|
+ } else if (HuifuConstant.TRANS_STAT_P.equals(transStatus)) {
|
|
|
+ withdrawalRecord.setStatus(0);
|
|
|
}
|
|
|
} else {
|
|
|
// 业务处理失败
|