新增mapper项目
This commit is contained in:
parent
335d10d7ed
commit
5dcd1922cc
|
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>cn.qihangerp.core</groupId>
|
||||||
|
<artifactId>core</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<groupId>cn.qihangerp.mapper</groupId>
|
||||||
|
<artifactId>mapper</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||||||
|
<version>3.5.5</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.qihangerp.model</groupId>
|
||||||
|
<artifactId>model</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.qihangerp.mapper;
|
||||||
|
|
||||||
|
import cn.qihangerp.model.entity.OOrderItem;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author qilip
|
||||||
|
* @description 针对表【o_order_item(OMS订单明细表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-06-02 11:23:55
|
||||||
|
* @Entity cn.qihangerp.model.entity.OOrderItem
|
||||||
|
*/
|
||||||
|
public interface ErpOrderItemMapper extends BaseMapper<OOrderItem> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.qihangerp.mapper;
|
||||||
|
|
||||||
|
import cn.qihangerp.model.entity.OOrder;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author qilip
|
||||||
|
* @description 针对表【o_order(OMS订单表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-06-02 11:23:22
|
||||||
|
* @Entity cn.qihangerp.model.entity.OOrder
|
||||||
|
*/
|
||||||
|
public interface ErpOrderMapper extends BaseMapper<OOrder> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
package cn.qihangerp.mapper;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Hello, World!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.qihangerp.mapper.ErpOrderItemMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.OOrderItem">
|
||||||
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||||
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="shopType" column="shop_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="orderId" column="order_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="orderNum" column="order_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="subOrderNum" column="sub_order_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skuId" column="sku_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="goodsId" column="goods_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="goodsSkuId" column="goods_sku_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="goodsTitle" column="goods_title" jdbcType="VARCHAR"/>
|
||||||
|
<result property="goodsImg" column="goods_img" jdbcType="VARCHAR"/>
|
||||||
|
<result property="goodsNum" column="goods_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="goodsSpec" column="goods_spec" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skuNum" column="sku_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="goodsPrice" column="goods_price" jdbcType="DOUBLE"/>
|
||||||
|
<result property="itemAmount" column="item_amount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="discountAmount" column="discount_amount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="payment" column="payment" jdbcType="DOUBLE"/>
|
||||||
|
<result property="quantity" column="quantity" jdbcType="INTEGER"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="refundCount" column="refund_count" jdbcType="INTEGER"/>
|
||||||
|
<result property="refundStatus" column="refund_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="orderStatus" column="order_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipper" column="shipper" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipType" column="ship_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipStatus" column="ship_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,shop_id,shop_type,
|
||||||
|
order_id,order_num,sub_order_num,
|
||||||
|
sku_id,goods_id,goods_sku_id,
|
||||||
|
goods_title,goods_img,goods_num,
|
||||||
|
goods_spec,sku_num,goods_price,
|
||||||
|
item_amount,discount_amount,payment,
|
||||||
|
quantity,remark,refund_count,
|
||||||
|
refund_status,order_status,shipper,
|
||||||
|
ship_type,ship_status,create_time,
|
||||||
|
create_by,update_time,update_by
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.qihangerp.mapper.ErpOrderMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.OOrder">
|
||||||
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||||
|
<result property="orderNum" column="order_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shopType" column="shop_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="buyerMemo" column="buyer_memo" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sellerMemo" column="seller_memo" jdbcType="VARCHAR"/>
|
||||||
|
<result property="tag" column="tag" jdbcType="VARCHAR"/>
|
||||||
|
<result property="refundStatus" column="refund_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="orderStatus" column="order_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="goodsAmount" column="goods_amount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="postFee" column="post_fee" jdbcType="DOUBLE"/>
|
||||||
|
<result property="sellerDiscount" column="seller_discount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="platformDiscount" column="platform_discount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="amount" column="amount" jdbcType="DOUBLE"/>
|
||||||
|
<result property="payment" column="payment" jdbcType="DOUBLE"/>
|
||||||
|
<result property="receiverName" column="receiver_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="receiverMobile" column="receiver_mobile" jdbcType="VARCHAR"/>
|
||||||
|
<result property="address" column="address" jdbcType="VARCHAR"/>
|
||||||
|
<result property="province" column="province" jdbcType="VARCHAR"/>
|
||||||
|
<result property="city" column="city" jdbcType="VARCHAR"/>
|
||||||
|
<result property="town" column="town" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderTime" column="order_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="shipper" column="shipper" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipType" column="ship_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipStatus" column="ship_status" jdbcType="INTEGER"/>
|
||||||
|
<result property="shipCompany" column="ship_company" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shipCode" column="ship_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shipTime" column="ship_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,order_num,shop_type,
|
||||||
|
shop_id,remark,buyer_memo,
|
||||||
|
seller_memo,tag,refund_status,
|
||||||
|
order_status,goods_amount,post_fee,
|
||||||
|
seller_discount,platform_discount,amount,
|
||||||
|
payment,receiver_name,receiver_mobile,
|
||||||
|
address,province,city,
|
||||||
|
town,order_time,shipper,
|
||||||
|
ship_type,ship_status,ship_company,
|
||||||
|
ship_code,ship_time,create_time,
|
||||||
|
create_by,update_time,update_by
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -17,6 +17,9 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>security</module>
|
<module>security</module>
|
||||||
<module>common</module>
|
<module>common</module>
|
||||||
|
<module>interfaces</module>
|
||||||
|
<module>model</module>
|
||||||
|
<module>mapper</module>
|
||||||
</modules>
|
</modules>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue