From 76c24821c597984767760282301418f35f3cd9d3 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 29 Jul 2020 15:05:12 +0800
Subject: [PATCH] add follow entity dao and xml

---
 src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerOrderRelationDao.java       |    7 +
 src/main/resources/mapper/documentary/FollowFollowerNoticeDao.xml                                |    5 +
 src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerOrderRelationEntity.java |   54 ++++++++++
 src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml                                |    5 +
 src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerSettingDao.java             |    7 +
 src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerNoticeEntity.java        |   35 +++++++
 src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerSettingEntity.java       |   60 ++++++++++++
 src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerNoticeDao.java              |    7 +
 src/main/resources/mapper/documentary/FollowFollowerSettingDao.xml                               |    5 +
 src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerProfitEntity.java        |   50 ++++++++++
 src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerProfitDao.java              |    7 +
 src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml                         |    5 +
 12 files changed, 247 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerNoticeDao.java b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerNoticeDao.java
new file mode 100644
index 0000000..74d554f
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerNoticeDao.java
@@ -0,0 +1,7 @@
+package com.xcong.excoin.modules.documentary.dao;
+
+/**
+ * @author helius
+ */
+public interface FollowFollowerNoticeDao {
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerOrderRelationDao.java b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerOrderRelationDao.java
new file mode 100644
index 0000000..3f2cf8f
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerOrderRelationDao.java
@@ -0,0 +1,7 @@
+package com.xcong.excoin.modules.documentary.dao;
+
+/**
+ * @author helius
+ */
+public interface FollowFollowerOrderRelationDao {
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerProfitDao.java b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerProfitDao.java
new file mode 100644
index 0000000..7f1b041
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerProfitDao.java
@@ -0,0 +1,7 @@
+package com.xcong.excoin.modules.documentary.dao;
+
+/**
+ * @author helius
+ */
+public interface FollowFollowerProfitDao {
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerSettingDao.java b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerSettingDao.java
new file mode 100644
index 0000000..b408308
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/dao/FollowFollowerSettingDao.java
@@ -0,0 +1,7 @@
+package com.xcong.excoin.modules.documentary.dao;
+
+/**
+ * @author helius
+ */
+public interface FollowFollowerSettingDao {
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerNoticeEntity.java b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerNoticeEntity.java
new file mode 100644
index 0000000..6994551
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerNoticeEntity.java
@@ -0,0 +1,35 @@
+package com.xcong.excoin.modules.documentary.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.xcong.excoin.common.system.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @author wzy
+ * @date 2020-07-29
+ **/
+@EqualsAndHashCode(callSuper = true)
+@Data
+@TableName("follow_follower_notice")
+public class FollowFollowerNoticeEntity extends BaseEntity {
+
+    /**
+     * 主键ID
+     */
+    private Long id;
+
+    /**
+     * 会员ID
+     */
+    private Long memberId;
+    /**
+     * 标题
+     */
+    private String title;
+    /**
+     * 内容
+     */
+    private String content;
+
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerOrderRelationEntity.java b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerOrderRelationEntity.java
new file mode 100644
index 0000000..880ab03
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerOrderRelationEntity.java
@@ -0,0 +1,54 @@
+package com.xcong.excoin.modules.documentary.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.xcong.excoin.common.system.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @author wzy
+ * @date 2020-07-29
+ **/
+@EqualsAndHashCode(callSuper = true)
+@Data
+@TableName("follow_follower_order_relation")
+public class FollowFollowerOrderRelationEntity extends BaseEntity {
+
+    /**
+     *  订单状态 1-持仓 2-历史
+     */
+    public static final Integer ORDER_TYPE_HOLD = 1;
+    public static final Integer ORDER_TYPE_HISTORY = 2;
+
+    /**
+     * 是否显示 1-是 2-否
+     */
+    public static final Integer IS_SHOW_Y = 1;
+    public static final Integer IS_SHOW_N = 2;
+
+
+    /**
+     * 主键ID
+     */
+    private Long id;
+    /**
+     * 会员ID
+     */
+    private Long memberId;
+    /**
+     * 交易员ID
+     */
+    private Long tradeId;
+    /**
+     * 订单ID
+     */
+    private Long orderId;
+    /**
+     * 订单类型 1-持仓 2-历史
+     */
+    private Integer orderType;
+    /**
+     * 订单是否显示 1-显示 2-不显示
+     */
+    private Integer isShow;
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerProfitEntity.java b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerProfitEntity.java
new file mode 100644
index 0000000..a428366
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerProfitEntity.java
@@ -0,0 +1,50 @@
+package com.xcong.excoin.modules.documentary.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.xcong.excoin.common.system.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.math.BigDecimal;
+
+/**
+ * @author wzy
+ * @date 2020-07-29
+ **/
+@EqualsAndHashCode(callSuper = true)
+@Data
+@TableName("follow_follower_profit")
+public class FollowFollowerProfitEntity extends BaseEntity {
+
+    public static final Integer IS_FOLLOW_Y = 1;
+    public static final Integer IS_FOLLOW_N = 2;
+
+    /**
+     * 主键ID
+     */
+    private Long id;
+    /**
+     * 跟随者ID
+     */
+    private Long memberId;
+    /**
+     * 交易员ID
+     */
+    private Long tradeId;
+    /**
+     * 交易员会员ID
+     */
+    private Long tradeMemberId;
+    /**
+     * 累计跟随本金
+     */
+    private BigDecimal totalPrincipal;
+    /**
+     * 累计收益
+     */
+    private BigDecimal totalProfit;
+    /**
+     * 是否跟随 1-是 2-否
+     */
+    private Integer isFollow;
+}
diff --git a/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerSettingEntity.java b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerSettingEntity.java
new file mode 100644
index 0000000..74e98f3
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/documentary/entity/FollowFollowerSettingEntity.java
@@ -0,0 +1,60 @@
+package com.xcong.excoin.modules.documentary.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.xcong.excoin.common.system.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @author wzy
+ * @date 2020-07-29
+ **/
+@EqualsAndHashCode(callSuper = true)
+@Data
+@TableName("follow_follower_setting")
+public class FollowFollowerSettingEntity extends BaseEntity {
+
+    /**
+     * 跟单方式 固定张数
+     */
+    public static final Integer FOLLOW_TYPE_PIECE = 1;
+    /**
+     * 跟单方式 固定比例
+     */
+    public static final Integer FOLLOW_TYPE_RATE = 2;
+
+
+    /**
+     * 主键ID
+     */
+    private Long id;
+    /**
+     * 会员ID
+     */
+    private Long memberId;
+    /**
+     * 交易员ID
+     */
+    private Long tradeId;
+    /**
+     * 交易员会员ID
+     */
+    private Long tradeMemberId;
+    /**
+     * 跟单合约(多个,且逗号隔开)
+     */
+    private String symbols;
+    /**
+     * 跟单方式 1-固定张数 2-固定比例
+     */
+    private Integer followType;
+    /**
+     * 跟单张数或者比例
+     */
+    private Integer followCnt;
+    /**
+     * 最大持仓张数
+     */
+    private Integer maxFollowCnt;
+
+}
diff --git a/src/main/resources/mapper/documentary/FollowFollowerNoticeDao.xml b/src/main/resources/mapper/documentary/FollowFollowerNoticeDao.xml
new file mode 100644
index 0000000..1e5097c
--- /dev/null
+++ b/src/main/resources/mapper/documentary/FollowFollowerNoticeDao.xml
@@ -0,0 +1,5 @@
+<?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="com.xcong.excoin.modules.documentary.dao.FollowFollowerNoticeDao">
+
+</mapper>
\ No newline at end of file
diff --git a/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml b/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml
new file mode 100644
index 0000000..c546474
--- /dev/null
+++ b/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml
@@ -0,0 +1,5 @@
+<?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="com.xcong.excoin.modules.documentary.dao.FollowFollowerOrderRelationDao">
+
+</mapper>
\ No newline at end of file
diff --git a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
new file mode 100644
index 0000000..33022cd
--- /dev/null
+++ b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
@@ -0,0 +1,5 @@
+<?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="com.xcong.excoin.modules.documentary.dao.FollowFollowerProfitDao">
+
+</mapper>
\ No newline at end of file
diff --git a/src/main/resources/mapper/documentary/FollowFollowerSettingDao.xml b/src/main/resources/mapper/documentary/FollowFollowerSettingDao.xml
new file mode 100644
index 0000000..fa41a98
--- /dev/null
+++ b/src/main/resources/mapper/documentary/FollowFollowerSettingDao.xml
@@ -0,0 +1,5 @@
+<?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="com.xcong.excoin.modules.documentary.dao.FollowFollowerSettingDao">
+
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.1