CueOrder
This commit is contained in:
parent
b72d0c9969
commit
02f7290639
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user