This commit is contained in:
杨旭 2025-04-21 16:20:43 +08:00
parent b72d0c9969
commit 02f7290639

View File

@ -12,6 +12,8 @@ import com.tmerclub.cloud.order.service.OrderAddrService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Date;
/**
* @Author lth
* @Date 2021/11/22 9:21
@ -35,6 +37,7 @@ public class OrderAddrFeignController implements OrderAddrFeignClient {
OrderAddr orderAddr = BeanUtil.toBean(orderAddrVO, OrderAddr.class);
Long addrId = segmentManager.getSegmentIdWithDateTime(DistributedIdKey.tmerclub_ORDER_ADDR, orderAddr.getUserId());
orderAddr.setOrderAddrId(addrId);
orderAddr.setCreateTime(new Date());
orderAddrService.save(orderAddr);
return ServerResponseEntity.success(addrId);
}