订单详情

This commit is contained in:
attiya 2025-05-06 11:29:51 +08:00
parent 2cfe179504
commit 44d7a7905b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.cdzy.orders.model.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
@ -65,6 +66,7 @@ public class EbikeOrderDetails implements Serializable {
*/
private String couponId;
@Column(onInsertValue = "now()")
private LocalDateTime createdAt;
}

View File

@ -164,7 +164,7 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, EbikeUs
FeignEbikeRegionDto regionDto = regionResult.getData();
ResFeignEbikeSysRcostsetDto feignEbikeSysRcostsetDto = operateJsonResult.getData();
// costCalculation(feignEbikeSysRcostsetDto, resGpsDto, regionDto, userOrders);
costCalculation(feignEbikeSysRcostsetDto, resGpsDto, regionDto, userOrders);
userOrdersMapper.update(userOrders);
//关锁,并且等待结果
CompletableFuture<String> stringCompletableFuture = ebikeCoreHandler.executeCommand(ecuInfo, CmdCode.LOCK, Long.valueOf(bikeInfoDto.getBikeId()), userId);