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

Commit 7d991800 authored by 胡佳晨's avatar 胡佳晨

order 增加超时支付自动退款逻辑[商铺]

parent f48f69e2
package com.liquidnet.service.goblin.dto.vo; package com.liquidnet.service.goblin.dto.vo;
import com.liquidnet.service.goblin.entity.GoblinBackOrder;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
...@@ -90,6 +91,37 @@ public class GoblinBackOrderVo implements Serializable, Cloneable { ...@@ -90,6 +91,37 @@ public class GoblinBackOrderVo implements Serializable, Cloneable {
this.expireAt = LocalDateTime.parse(createdAt, DTF_YMD_HMS).plusDays(7).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); this.expireAt = LocalDateTime.parse(createdAt, DTF_YMD_HMS).plusDays(7).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
} }
public GoblinBackOrderVo copy(GoblinBackOrder source) {
this.setBackOrderId(source.getBackOrderId());
this.setBackCode(source.getBackCode());
this.setOrderId(source.getBackOrderId());
this.setOrderCode(source.getOrderCode());
this.setStoreId(source.getStoreId());
this.setUserId(source.getUserId());
this.setType(source.getType());
this.setReason(source.getReason());
this.setRefuseReason(source.getRefuseReason());
this.setErrorReason(source.getErrorReason());
this.setDescribes(source.getDescribes());
this.setCredential(source.getCredential());
this.setBackType(source.getBackType());
this.setRealBackPrice(source.getRealBackPrice());
this.setBackPriceExpress(source.getBackPriceExpress());
this.setPics(source.getPics());
this.setStatus(source.getStatus());
this.setPreDepositPay(source.getPreDepositPay());
this.setPayType(source.getBackOrderId());
this.setLogisCompanyName(source.getLogisCompanyName());
this.setMailNo(source.getMailNo());
this.setRefundAt(source.getRefundAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
this.setRefuseAt(source.getRefuseAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
this.setRefuseSize(source.getRefusedSize());
this.setAuditAt(source.getAuditAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
this.setCreatedAt(source.getCreatedAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
this.setExpireAt(source.getExpireAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
return this;
}
private static final GoblinBackOrderVo obj = new GoblinBackOrderVo(); private static final GoblinBackOrderVo obj = new GoblinBackOrderVo();
public static GoblinBackOrderVo getNew() { public static GoblinBackOrderVo getNew() {
......
...@@ -357,8 +357,7 @@ public class GoblinOrderUtils { ...@@ -357,8 +357,7 @@ public class GoblinOrderUtils {
goblinBackOrder.setStatus(GoblinStatusConst.Status.ORDER_BACK_STATUS_0.getValue()); goblinBackOrder.setStatus(GoblinStatusConst.Status.ORDER_BACK_STATUS_0.getValue());
goblinBackOrder.setAuditAt(now); goblinBackOrder.setAuditAt(now);
goblinBackOrder.setCreatedAt(now); goblinBackOrder.setCreatedAt(now);
GoblinBackOrderVo backOrderVo = GoblinBackOrderVo.getNew(); GoblinBackOrderVo backOrderVo = GoblinBackOrderVo.getNew().copy(goblinBackOrder);
BeanUtils.copyProperties(goblinBackOrder, backOrderVo);
backOrderVo.setCreatedAt(nowStr); backOrderVo.setCreatedAt(nowStr);
backOrderVo.setBackOrderSkuVos(orderSkuVoList); backOrderVo.setBackOrderSkuVos(orderSkuVoList);
//添加日志 //添加日志
......
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