zelong.shao

dao|初始化dao层

1 +package com.fedex.connect.common.dao.log;
2 +
3 +import com.fedex.connect.common.model.log.UserLoginInfo;
4 +import com.fedex.connect.common.model.log.UserLoginInfoExample;
5 +import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
7 +
8 +public interface UserLoginInfoMapper {
9 + long countByExample(UserLoginInfoExample example);
10 +
11 + int deleteByExample(UserLoginInfoExample example);
12 +
13 + int deleteByPrimaryKey(Long id);
14 +
15 + int insert(UserLoginInfo record);
16 +
17 + int insertSelective(UserLoginInfo record);
18 +
19 + List<UserLoginInfo> selectByExample(UserLoginInfoExample example);
20 +
21 + UserLoginInfo selectByPrimaryKey(Long id);
22 +
23 + int updateByExampleSelective(@Param("record") UserLoginInfo record, @Param("example") UserLoginInfoExample example);
24 +
25 + int updateByExample(@Param("record") UserLoginInfo record, @Param("example") UserLoginInfoExample example);
26 +
27 + int updateByPrimaryKeySelective(UserLoginInfo record);
28 +
29 + int updateByPrimaryKey(UserLoginInfo record);
30 +}
...\ No newline at end of file ...\ No newline at end of file
1 -package com.fedex.connect.common.dao.log;
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.dao.sys;
2 +
3 +import com.fedex.connect.common.model.sys.redisSlab;
4 +import com.fedex.connect.common.model.sys.redisSlabExample;
5 +import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
7 +
8 +public interface redisSlabMapper {
9 + long countByExample(redisSlabExample example);
10 +
11 + int deleteByExample(redisSlabExample example);
12 +
13 + int deleteByPrimaryKey(Long id);
14 +
15 + int insert(redisSlab record);
16 +
17 + int insertSelective(redisSlab record);
18 +
19 + List<redisSlab> selectByExample(redisSlabExample example);
20 +
21 + redisSlab selectByPrimaryKey(Long id);
22 +
23 + int updateByExampleSelective(@Param("record") redisSlab record, @Param("example") redisSlabExample example);
24 +
25 + int updateByExample(@Param("record") redisSlab record, @Param("example") redisSlabExample example);
26 +
27 + int updateByPrimaryKeySelective(redisSlab record);
28 +
29 + int updateByPrimaryKey(redisSlab record);
30 +}
...\ No newline at end of file ...\ No newline at end of file
1 -package com.fedex.connect.common.mapper.log;
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.log;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: 用户登录日志表
8 + * TABLE: T_LOG_USER_LOGIN_INFO
9 + */
10 +public class UserLoginInfo implements Serializable {
11 + /**
12 + * ID,主键自增
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 操作人用户ID,关联用户表ID
18 + */
19 + private Long userId;
20 +
21 + /**
22 + * 操作类型ID。
23 +关联数据字典表。指定字典目录CODE:USER_LOGIN_TYPE
24 + */
25 + private Long operTypeId;
26 +
27 + /**
28 + * 操作类型名称(登录、退出、修改密码、FCL登录注册,、停用、启用)
29 + */
30 + private String operTypeName;
31 +
32 + /**
33 + * 操作描述
34 + */
35 + private String operDesc;
36 +
37 + /**
38 + * 操作IP
39 + */
40 + private String ip;
41 +
42 + /**
43 + * 创建时间
44 + */
45 + private Date createTime;
46 +
47 + /**
48 + * 创建人ID,关联用户表ID
49 + */
50 + private Long createUserId;
51 +
52 + /**
53 + * 创建人名称
54 + */
55 + private String createUserName;
56 +
57 + /**
58 + * 修改时间
59 + */
60 + private Date modifyTime;
61 +
62 + /**
63 + * 修改人ID,关联用户表ID
64 + */
65 + private Long modifyUserId;
66 +
67 + /**
68 + * 修改人名称
69 + */
70 + private String modifyUserName;
71 +
72 + private static final long serialVersionUID = 1L;
73 +
74 + public Long getId() {
75 + return id;
76 + }
77 +
78 + public void setId(Long id) {
79 + this.id = id;
80 + }
81 +
82 + public Long getUserId() {
83 + return userId;
84 + }
85 +
86 + public void setUserId(Long userId) {
87 + this.userId = userId;
88 + }
89 +
90 + public Long getOperTypeId() {
91 + return operTypeId;
92 + }
93 +
94 + public void setOperTypeId(Long operTypeId) {
95 + this.operTypeId = operTypeId;
96 + }
97 +
98 + public String getOperTypeName() {
99 + return operTypeName;
100 + }
101 +
102 + public void setOperTypeName(String operTypeName) {
103 + this.operTypeName = operTypeName == null ? null : operTypeName.trim();
104 + }
105 +
106 + public String getOperDesc() {
107 + return operDesc;
108 + }
109 +
110 + public void setOperDesc(String operDesc) {
111 + this.operDesc = operDesc == null ? null : operDesc.trim();
112 + }
113 +
114 + public String getIp() {
115 + return ip;
116 + }
117 +
118 + public void setIp(String ip) {
119 + this.ip = ip == null ? null : ip.trim();
120 + }
121 +
122 + public Date getCreateTime() {
123 + return createTime;
124 + }
125 +
126 + public void setCreateTime(Date createTime) {
127 + this.createTime = createTime;
128 + }
129 +
130 + public Long getCreateUserId() {
131 + return createUserId;
132 + }
133 +
134 + public void setCreateUserId(Long createUserId) {
135 + this.createUserId = createUserId;
136 + }
137 +
138 + public String getCreateUserName() {
139 + return createUserName;
140 + }
141 +
142 + public void setCreateUserName(String createUserName) {
143 + this.createUserName = createUserName == null ? null : createUserName.trim();
144 + }
145 +
146 + public Date getModifyTime() {
147 + return modifyTime;
148 + }
149 +
150 + public void setModifyTime(Date modifyTime) {
151 + this.modifyTime = modifyTime;
152 + }
153 +
154 + public Long getModifyUserId() {
155 + return modifyUserId;
156 + }
157 +
158 + public void setModifyUserId(Long modifyUserId) {
159 + this.modifyUserId = modifyUserId;
160 + }
161 +
162 + public String getModifyUserName() {
163 + return modifyUserName;
164 + }
165 +
166 + public void setModifyUserName(String modifyUserName) {
167 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
168 + }
169 +
170 + @Override
171 + public String toString() {
172 + StringBuilder sb = new StringBuilder();
173 + sb.append(getClass().getSimpleName());
174 + sb.append(" [");
175 + sb.append("Hash = ").append(hashCode());
176 + sb.append(", id=").append(id);
177 + sb.append(", userId=").append(userId);
178 + sb.append(", operTypeId=").append(operTypeId);
179 + sb.append(", operTypeName=").append(operTypeName);
180 + sb.append(", operDesc=").append(operDesc);
181 + sb.append(", ip=").append(ip);
182 + sb.append(", createTime=").append(createTime);
183 + sb.append(", createUserId=").append(createUserId);
184 + sb.append(", createUserName=").append(createUserName);
185 + sb.append(", modifyTime=").append(modifyTime);
186 + sb.append(", modifyUserId=").append(modifyUserId);
187 + sb.append(", modifyUserName=").append(modifyUserName);
188 + sb.append(", serialVersionUID=").append(serialVersionUID);
189 + sb.append("]");
190 + return sb.toString();
191 + }
192 +}
...\ No newline at end of file ...\ No newline at end of file
1 -package com.fedex.connect.common.model.log;
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.sys;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: 用户登录信息token表
8 + * TABLE: T_SYS_REDIS_SLAB
9 + */
10 +public class redisSlab implements Serializable {
11 + /**
12 + * ID,自动增加
13 + */
14 + private Long id;
15 +
16 + /**
17 + * Redis key
18 + */
19 + private String redisKey;
20 +
21 + /**
22 + * Redis信息
23 + */
24 + private String redisMsg;
25 +
26 + /**
27 + * 有效时长
28 + */
29 + private Long validDuration;
30 +
31 + /**
32 + * 失效时间
33 + */
34 + private Date disTime;
35 +
36 + /**
37 + * 创建时间
38 + */
39 + private Date createTime;
40 +
41 + /**
42 + * 创建人ID,关联用户表ID
43 + */
44 + private Long createUserId;
45 +
46 + /**
47 + * 创建人名称
48 + */
49 + private String createUserName;
50 +
51 + /**
52 + * 修改时间
53 + */
54 + private Date modifyTime;
55 +
56 + /**
57 + * 修改人ID,关联用户表ID
58 + */
59 + private Long modifyUserId;
60 +
61 + /**
62 + * 修改人名称
63 + */
64 + private String modifyUserName;
65 +
66 + private static final long serialVersionUID = 1L;
67 +
68 + public Long getId() {
69 + return id;
70 + }
71 +
72 + public void setId(Long id) {
73 + this.id = id;
74 + }
75 +
76 + public String getRedisKey() {
77 + return redisKey;
78 + }
79 +
80 + public void setRedisKey(String redisKey) {
81 + this.redisKey = redisKey == null ? null : redisKey.trim();
82 + }
83 +
84 + public String getRedisMsg() {
85 + return redisMsg;
86 + }
87 +
88 + public void setRedisMsg(String redisMsg) {
89 + this.redisMsg = redisMsg == null ? null : redisMsg.trim();
90 + }
91 +
92 + public Long getValidDuration() {
93 + return validDuration;
94 + }
95 +
96 + public void setValidDuration(Long validDuration) {
97 + this.validDuration = validDuration;
98 + }
99 +
100 + public Date getDisTime() {
101 + return disTime;
102 + }
103 +
104 + public void setDisTime(Date disTime) {
105 + this.disTime = disTime;
106 + }
107 +
108 + public Date getCreateTime() {
109 + return createTime;
110 + }
111 +
112 + public void setCreateTime(Date createTime) {
113 + this.createTime = createTime;
114 + }
115 +
116 + public Long getCreateUserId() {
117 + return createUserId;
118 + }
119 +
120 + public void setCreateUserId(Long createUserId) {
121 + this.createUserId = createUserId;
122 + }
123 +
124 + public String getCreateUserName() {
125 + return createUserName;
126 + }
127 +
128 + public void setCreateUserName(String createUserName) {
129 + this.createUserName = createUserName == null ? null : createUserName.trim();
130 + }
131 +
132 + public Date getModifyTime() {
133 + return modifyTime;
134 + }
135 +
136 + public void setModifyTime(Date modifyTime) {
137 + this.modifyTime = modifyTime;
138 + }
139 +
140 + public Long getModifyUserId() {
141 + return modifyUserId;
142 + }
143 +
144 + public void setModifyUserId(Long modifyUserId) {
145 + this.modifyUserId = modifyUserId;
146 + }
147 +
148 + public String getModifyUserName() {
149 + return modifyUserName;
150 + }
151 +
152 + public void setModifyUserName(String modifyUserName) {
153 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
154 + }
155 +
156 + @Override
157 + public String toString() {
158 + StringBuilder sb = new StringBuilder();
159 + sb.append(getClass().getSimpleName());
160 + sb.append(" [");
161 + sb.append("Hash = ").append(hashCode());
162 + sb.append(", id=").append(id);
163 + sb.append(", redisKey=").append(redisKey);
164 + sb.append(", redisMsg=").append(redisMsg);
165 + sb.append(", validDuration=").append(validDuration);
166 + sb.append(", disTime=").append(disTime);
167 + sb.append(", createTime=").append(createTime);
168 + sb.append(", createUserId=").append(createUserId);
169 + sb.append(", createUserName=").append(createUserName);
170 + sb.append(", modifyTime=").append(modifyTime);
171 + sb.append(", modifyUserId=").append(modifyUserId);
172 + sb.append(", modifyUserName=").append(modifyUserName);
173 + sb.append(", serialVersionUID=").append(serialVersionUID);
174 + sb.append("]");
175 + return sb.toString();
176 + }
177 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
40 sys:系统 系统相关表,例如kafka表 40 sys:系统 系统相关表,例如kafka表
41 log: 日志 日志记录表,例如邮件发送日志表 41 log: 日志 日志记录表,例如邮件发送日志表
42 --> 42 -->
43 - <javaModelGenerator targetPackage="com.fedex.connect.common.model.base" targetProject="src/main/java"> 43 + <javaModelGenerator targetPackage="com.fedex.connect.common.model.sys" targetProject="src/main/java">
44 <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性--> 44 <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性-->
45 <property name="enableSubPackages" value="false"/> 45 <property name="enableSubPackages" value="false"/>
46 <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false--> 46 <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false-->
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
52 </javaModelGenerator> 52 </javaModelGenerator>
53 53
54 <!-- 生成映射文件*.xml的位置--> 54 <!-- 生成映射文件*.xml的位置-->
55 - <sqlMapGenerator targetPackage="mapper.base" targetProject="src/main/java/com/fedex/connect/common"> 55 + <sqlMapGenerator targetPackage="mapper.sys" targetProject="src/main/java/com/fedex/connect/common">
56 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> 56 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
57 <property name="enableSubPackages" value="false"/> 57 <property name="enableSubPackages" value="false"/>
58 </sqlMapGenerator> 58 </sqlMapGenerator>
59 59
60 <!-- 生成DAO的包名和位置 --> 60 <!-- 生成DAO的包名和位置 -->
61 - <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.base" targetProject="src/main/java"> 61 + <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.sys" targetProject="src/main/java">
62 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> 62 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
63 <property name="enableSubPackages" value="false"/> 63 <property name="enableSubPackages" value="false"/>
64 </javaClientGenerator> 64 </javaClientGenerator>
...@@ -73,6 +73,13 @@ ...@@ -73,6 +73,13 @@
73 generatedKey 指定KEY,Oracle需要指定序列。 73 generatedKey 指定KEY,Oracle需要指定序列。
74 sqlStatement 指定序列名称 74 sqlStatement 指定序列名称
75 --> 75 -->
76 +
77 + <table tableName="T_SYS_REDIS_SLAB" domainObjectName="redisSlab"
78 + enableCountByExample="true" enableUpdateByExample="true"
79 + enableDeleteByExample="true" enableSelectByExample="true"
80 + selectByExampleQueryId="true">
81 + <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_REDIS_SLAB.NEXTVAL FROM DUAL" />
82 + </table>
76 <!-- <table tableName="T_KAFKA_TEMPORARY_STORAGE" domainObjectName="KafkaTemporaryStorage"--> 83 <!-- <table tableName="T_KAFKA_TEMPORARY_STORAGE" domainObjectName="KafkaTemporaryStorage"-->
77 <!-- enableCountByExample="true" enableUpdateByExample="true"--> 84 <!-- enableCountByExample="true" enableUpdateByExample="true"-->
78 <!-- enableDeleteByExample="true" enableSelectByExample="true"--> 85 <!-- enableDeleteByExample="true" enableSelectByExample="true"-->
...@@ -123,18 +130,18 @@ ...@@ -123,18 +130,18 @@
123 <!-- </table>--> 130 <!-- </table>-->
124 131
125 132
126 - <table tableName="T_BI_DICTIONARY_ENTRIES" domainObjectName="DictionaryEntries" 133 +<!-- <table tableName="T_BI_DICTIONARY_ENTRIES" domainObjectName="DictionaryEntries"-->
127 - enableCountByExample="true" enableUpdateByExample="true" 134 +<!-- enableCountByExample="true" enableUpdateByExample="true"-->
128 - enableDeleteByExample="true" enableSelectByExample="true" 135 +<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
129 - selectByExampleQueryId="true"> 136 +<!-- selectByExampleQueryId="true">-->
130 - <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY_ENTRIES.NEXTVAL FROM DUAL" /> 137 +<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY_ENTRIES.NEXTVAL FROM DUAL" />-->
131 - </table> 138 +<!-- </table>-->
132 - <table tableName="T_BI_DICTIONARY" domainObjectName="Dictionary" 139 +<!-- <table tableName="T_BI_DICTIONARY" domainObjectName="Dictionary"-->
133 - enableCountByExample="true" enableUpdateByExample="true" 140 +<!-- enableCountByExample="true" enableUpdateByExample="true"-->
134 - enableDeleteByExample="true" enableSelectByExample="true" 141 +<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
135 - selectByExampleQueryId="true"> 142 +<!-- selectByExampleQueryId="true">-->
136 - <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY.NEXTVAL FROM DUAL" /> 143 +<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY.NEXTVAL FROM DUAL" />-->
137 - </table> 144 +<!-- </table>-->
138 145
139 146
140 <!-- <table tableName="T_TASK_MANAGEMENT" domainObjectName="TaskManagement"--> 147 <!-- <table tableName="T_TASK_MANAGEMENT" domainObjectName="TaskManagement"-->
......