mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-27 23:19:36 +08:00
分库分表功能提交
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.dromara.demo.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@TableName("t_order")
|
||||
@Data
|
||||
public class TOrder {
|
||||
|
||||
|
||||
private Long orderId;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private int totalMoney;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.dromara.demo.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@TableName("t_order_item")
|
||||
@Data
|
||||
public class TOrderItem {
|
||||
|
||||
private Long orderItemId;
|
||||
|
||||
private Long orderId;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private int totalMoney;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.dromara.demo.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.dromara.demo.domain.TOrderItem;
|
||||
|
||||
@Mapper
|
||||
public interface TOrderItemMapper extends BaseMapper<TOrderItem> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.dromara.demo.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.dromara.demo.domain.TOrder;
|
||||
|
||||
@Mapper
|
||||
public interface TOrderMapper extends BaseMapper<TOrder> {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user