记得上下班打卡 | git大法好,push需谨慎

Commit 66a8f10a authored by 胡佳晨's avatar 胡佳晨

扫码退款

parent 95b89bef
package com.liquidnet.service.dragon.channel.wepay.resp; package com.liquidnet.service.dragon.channel.wepay.resp;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.liquidnet.service.goblin.dto.vo.GoblinOrderSkuVo;
import lombok.Data; import lombok.Data;
@Data @Data
public class AliPayRefundReturnCallBackDto { public class AliPayRefundReturnCallBackDto implements Cloneable{
@JsonProperty("gmt_create") @JsonProperty("gmt_create")
private String gmtCreate; private String gmtCreate;
@JsonProperty("charset") @JsonProperty("charset")
...@@ -54,4 +55,13 @@ public class AliPayRefundReturnCallBackDto { ...@@ -54,4 +55,13 @@ public class AliPayRefundReturnCallBackDto {
@JsonProperty("seller_id") @JsonProperty("seller_id")
private String sellerId; private String sellerId;
private static final AliPayRefundReturnCallBackDto obj = new AliPayRefundReturnCallBackDto();
public static AliPayRefundReturnCallBackDto getNew() {
try {
return (AliPayRefundReturnCallBackDto) obj.clone();
} catch (CloneNotSupportedException e) {
return new AliPayRefundReturnCallBackDto();
}
}
} }
...@@ -608,6 +608,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService ...@@ -608,6 +608,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
contentDto.setRequest(JSON.toJSONString(response.getParams())); contentDto.setRequest(JSON.toJSONString(response.getParams()));
contentDto.setResponse(response.getBody()); contentDto.setResponse(response.getBody());
channelDto.setContent(contentDto); channelDto.setContent(contentDto);
if(DragonConstant.REFUND_TYPE_MICROPAY_ALIPAY.equals(paymentType) && response.getFundChange().equals("Y")) {
AliPayRefundReturnCallBackDto map = AliPayRefundReturnCallBackDto.getNew();
map.setOutBizNo(response.getOutTradeNo());
map.setTradeNo(response.getTradeNo());
map.setOutTradeNo(response.getOutTradeNo());
map.setGmtRefund(DateUtil.format(response.getGmtRefundPay(), DateUtil.Formatter.yyyyMMddHHmmss));
aliPayRefundCallBack(JSON.toJSONString(map));
}
return channelDto; return channelDto;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment