订单详情
This commit is contained in:
parent
2cfe179504
commit
44d7a7905b
@ -1,5 +1,6 @@
|
|||||||
package com.cdzy.orders.model.entity;
|
package com.cdzy.orders.model.entity;
|
||||||
|
|
||||||
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -65,6 +66,7 @@ public class EbikeOrderDetails implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String couponId;
|
private String couponId;
|
||||||
|
|
||||||
|
@Column(onInsertValue = "now()")
|
||||||
private LocalDateTime createdAt;
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,7 +164,7 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, EbikeUs
|
|||||||
FeignEbikeRegionDto regionDto = regionResult.getData();
|
FeignEbikeRegionDto regionDto = regionResult.getData();
|
||||||
|
|
||||||
ResFeignEbikeSysRcostsetDto feignEbikeSysRcostsetDto = operateJsonResult.getData();
|
ResFeignEbikeSysRcostsetDto feignEbikeSysRcostsetDto = operateJsonResult.getData();
|
||||||
// costCalculation(feignEbikeSysRcostsetDto, resGpsDto, regionDto, userOrders);
|
costCalculation(feignEbikeSysRcostsetDto, resGpsDto, regionDto, userOrders);
|
||||||
userOrdersMapper.update(userOrders);
|
userOrdersMapper.update(userOrders);
|
||||||
//关锁,并且等待结果
|
//关锁,并且等待结果
|
||||||
CompletableFuture<String> stringCompletableFuture = ebikeCoreHandler.executeCommand(ecuInfo, CmdCode.LOCK, Long.valueOf(bikeInfoDto.getBikeId()), userId);
|
CompletableFuture<String> stringCompletableFuture = ebikeCoreHandler.executeCommand(ecuInfo, CmdCode.LOCK, Long.valueOf(bikeInfoDto.getBikeId()), userId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user