Authored by qinchao

fix:打款失败原因,200 显示汉字

@@ -56,8 +56,9 @@ public class TradeBillsController { @@ -56,8 +56,9 @@ public class TradeBillsController {
56 req.setOperateUname(userHelper.getUserName()); 56 req.setOperateUname(userHelper.getUserName());
57 57
58 ApiResponse apiResponse=new ApiResponse(); 58 ApiResponse apiResponse=new ApiResponse();
  59 + LOGGER.info("TradeBillsController manualRefund call ufo-gateway.manualDealMon param is {}", req);
59 JSONObject jsonObject = serviceCaller.asyncCall("ufo-gateway.manualDealMon", req, JSONObject.class).get(5); 60 JSONObject jsonObject = serviceCaller.asyncCall("ufo-gateway.manualDealMon", req, JSONObject.class).get(5);
60 - LOGGER.info("call ufo-gateway.manualDealMon interface is {}, result is {}", jsonObject.toJSONString()); 61 + LOGGER.info("TradeBillsController manualRefund call ufo-gateway.manualDealMon interface is {}, result is {}", jsonObject.toJSONString());
61 int resultCode=jsonObject.getIntValue("code"); 62 int resultCode=jsonObject.getIntValue("code");
62 if(200!=resultCode){ 63 if(200!=resultCode){
63 apiResponse.setCode(resultCode); 64 apiResponse.setCode(resultCode);
@@ -113,7 +113,12 @@ public class TradeBillsServiceImpl implements ITradeBillsService { @@ -113,7 +113,12 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
113 //打款失败原因 113 //打款失败原因
114 if(100!=item.getTradeStatus()){ 114 if(100!=item.getTradeStatus()){
115 String failReason = TradeStatusEnum.getDescByCode(item.getTradeStatus()); 115 String failReason = TradeStatusEnum.getDescByCode(item.getTradeStatus());
116 - resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason); 116 + if("200".equals(failReason)){
  117 + resp.setTradeStatusDesc("打款失败");
  118 + }else{
  119 + resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason);
  120 + }
  121 +
117 } 122 }
118 123
119 respList.add(resp); 124 respList.add(resp);