订单详情创建
This commit is contained in:
parent
c5fbb67c93
commit
2fc7b141de
@ -0,0 +1,14 @@
|
|||||||
|
package com.cdzy.orders.mapper;
|
||||||
|
|
||||||
|
import com.mybatisflex.core.BaseMapper;
|
||||||
|
import com.cdzy.orders.model.entity.EbikeOrderPaymentItems;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单费用明细表 映射层。
|
||||||
|
*
|
||||||
|
* @author attiya
|
||||||
|
* @since 2025-04-25
|
||||||
|
*/
|
||||||
|
public interface EbikeOrderPaymentItemsMapper extends BaseMapper<EbikeOrderPaymentItems> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
package com.cdzy.orders.model.entity;
|
||||||
|
|
||||||
|
import com.mybatisflex.annotation.Id;
|
||||||
|
import com.mybatisflex.annotation.Table;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单费用明细表 实体类。
|
||||||
|
*
|
||||||
|
* @author attiya
|
||||||
|
* @since 2025-04-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Table("ebike_order_payment_items")
|
||||||
|
public class EbikeOrderPaymentItems implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 费用项ID
|
||||||
|
*/
|
||||||
|
@Id
|
||||||
|
private String itemId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单ID
|
||||||
|
*/
|
||||||
|
private String orderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 费用类型:1-骑行时长费 2-运营区调度费用 3-停车区调度费用 4-高峰时段出行费用 5-高峰日出行费用
|
||||||
|
*/
|
||||||
|
private Integer itemType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 费用名称
|
||||||
|
*/
|
||||||
|
private String itemName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 费用金额
|
||||||
|
*/
|
||||||
|
private BigDecimal itemAmount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计算规则(存储JSON)
|
||||||
|
*/
|
||||||
|
private String calculationRule;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联优惠券ID
|
||||||
|
*/
|
||||||
|
private String couponId;
|
||||||
|
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.cdzy.orders.service;
|
||||||
|
|
||||||
|
import com.mybatisflex.core.service.IService;
|
||||||
|
import com.cdzy.orders.model.entity.EbikeOrderPaymentItems;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单费用明细表 服务层。
|
||||||
|
*
|
||||||
|
* @author attiya
|
||||||
|
* @since 2025-04-25
|
||||||
|
*/
|
||||||
|
public interface EbikeOrderPaymentItemsService extends IService<EbikeOrderPaymentItems> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.cdzy.orders.service.impl;
|
||||||
|
|
||||||
|
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||||
|
import com.cdzy.orders.model.entity.EbikeOrderPaymentItems;
|
||||||
|
import com.cdzy.orders.mapper.EbikeOrderPaymentItemsMapper;
|
||||||
|
import com.cdzy.orders.service.EbikeOrderPaymentItemsService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单费用明细表 服务层实现。
|
||||||
|
*
|
||||||
|
* @author attiya
|
||||||
|
* @since 2025-04-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EbikeOrderPaymentItemsServiceImpl extends ServiceImpl<EbikeOrderPaymentItemsMapper, EbikeOrderPaymentItems> implements EbikeOrderPaymentItemsService{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user