zelong.shao

dao|mapping表添加

1 +package com.fedex.connect.common.dao.biz;
2 +
3 +import com.fedex.connect.common.model.biz.UserConsignmentMapping;
4 +import com.fedex.connect.common.model.biz.UserConsignmentMappingExample;
5 +import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
7 +
8 +public interface UserConsignmentMappingMapper {
9 + long countByExample(UserConsignmentMappingExample example);
10 +
11 + int deleteByExample(UserConsignmentMappingExample example);
12 +
13 + int deleteByPrimaryKey(Long id);
14 +
15 + int insert(UserConsignmentMapping record);
16 +
17 + int insertSelective(UserConsignmentMapping record);
18 +
19 + List<UserConsignmentMapping> selectByExample(UserConsignmentMappingExample example);
20 +
21 + UserConsignmentMapping selectByPrimaryKey(Long id);
22 +
23 + int updateByExampleSelective(@Param("record") UserConsignmentMapping record, @Param("example") UserConsignmentMappingExample example);
24 +
25 + int updateByExample(@Param("record") UserConsignmentMapping record, @Param("example") UserConsignmentMappingExample example);
26 +
27 + int updateByPrimaryKeySelective(UserConsignmentMapping record);
28 +
29 + int updateByPrimaryKey(UserConsignmentMapping record);
30 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.biz;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: 用户运单关系映射表
8 + * TABLE: ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
9 + */
10 +public class UserConsignmentMapping implements Serializable {
11 + /**
12 + * ID,自动增加
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 创建人ID,关联用户表ID
18 + */
19 + private Long userId;
20 +
21 + /**
22 + * 运单ID,关联运单表ID
23 + */
24 + private Long consignmentId;
25 +
26 + /**
27 + * 状态(0:无效、1:有效)
28 + */
29 + private Long status;
30 +
31 + /**
32 + * 创建时间
33 + */
34 + private Date createTime;
35 +
36 + /**
37 + * 创建人ID,关联用户表ID
38 + */
39 + private Long createUserId;
40 +
41 + /**
42 + * 创建人名称
43 + */
44 + private String createUserName;
45 +
46 + /**
47 + * 修改时间
48 + */
49 + private Date modifyTime;
50 +
51 + /**
52 + * 修改人ID,关联用户表ID
53 + */
54 + private Long modifyUserId;
55 +
56 + /**
57 + * 修改人名称
58 + */
59 + private String modifyUserName;
60 +
61 + private static final long serialVersionUID = 1L;
62 +
63 + public Long getId() {
64 + return id;
65 + }
66 +
67 + public void setId(Long id) {
68 + this.id = id;
69 + }
70 +
71 + public Long getUserId() {
72 + return userId;
73 + }
74 +
75 + public void setUserId(Long userId) {
76 + this.userId = userId;
77 + }
78 +
79 + public Long getConsignmentId() {
80 + return consignmentId;
81 + }
82 +
83 + public void setConsignmentId(Long consignmentId) {
84 + this.consignmentId = consignmentId;
85 + }
86 +
87 + public Long getStatus() {
88 + return status;
89 + }
90 +
91 + public void setStatus(Long status) {
92 + this.status = status;
93 + }
94 +
95 + public Date getCreateTime() {
96 + return createTime;
97 + }
98 +
99 + public void setCreateTime(Date createTime) {
100 + this.createTime = createTime;
101 + }
102 +
103 + public Long getCreateUserId() {
104 + return createUserId;
105 + }
106 +
107 + public void setCreateUserId(Long createUserId) {
108 + this.createUserId = createUserId;
109 + }
110 +
111 + public String getCreateUserName() {
112 + return createUserName;
113 + }
114 +
115 + public void setCreateUserName(String createUserName) {
116 + this.createUserName = createUserName == null ? null : createUserName.trim();
117 + }
118 +
119 + public Date getModifyTime() {
120 + return modifyTime;
121 + }
122 +
123 + public void setModifyTime(Date modifyTime) {
124 + this.modifyTime = modifyTime;
125 + }
126 +
127 + public Long getModifyUserId() {
128 + return modifyUserId;
129 + }
130 +
131 + public void setModifyUserId(Long modifyUserId) {
132 + this.modifyUserId = modifyUserId;
133 + }
134 +
135 + public String getModifyUserName() {
136 + return modifyUserName;
137 + }
138 +
139 + public void setModifyUserName(String modifyUserName) {
140 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
141 + }
142 +
143 + @Override
144 + public String toString() {
145 + StringBuilder sb = new StringBuilder();
146 + sb.append(getClass().getSimpleName());
147 + sb.append(" [");
148 + sb.append("Hash = ").append(hashCode());
149 + sb.append(", id=").append(id);
150 + sb.append(", userId=").append(userId);
151 + sb.append(", consignmentId=").append(consignmentId);
152 + sb.append(", status=").append(status);
153 + sb.append(", createTime=").append(createTime);
154 + sb.append(", createUserId=").append(createUserId);
155 + sb.append(", createUserName=").append(createUserName);
156 + sb.append(", modifyTime=").append(modifyTime);
157 + sb.append(", modifyUserId=").append(modifyUserId);
158 + sb.append(", modifyUserName=").append(modifyUserName);
159 + sb.append(", serialVersionUID=").append(serialVersionUID);
160 + sb.append("]");
161 + return sb.toString();
162 + }
163 +}
...\ 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.sys" targetProject="src/main/java"> 43 + <javaModelGenerator targetPackage="com.fedex.connect.common.model.biz" 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.sys" targetProject="src/main/java/com/fedex/connect/common"> 55 + <sqlMapGenerator targetPackage="mapper.biz" 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.sys" targetProject="src/main/java"> 61 + <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.biz" 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,14 @@ ...@@ -73,6 +73,14 @@
73 generatedKey 指定KEY,Oracle需要指定序列。 73 generatedKey 指定KEY,Oracle需要指定序列。
74 sqlStatement 指定序列名称 74 sqlStatement 指定序列名称
75 --> 75 -->
76 + <table schema="ICLEARIMP" tableName="T_BIZ_USER_CONSIGNMENT_MAPPING" domainObjectName="UserConsignmentMapping"
77 + enableCountByExample="true" enableUpdateByExample="true"
78 + enableDeleteByExample="true" enableSelectByExample="true"
79 + selectByExampleQueryId="true">
80 + <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_USER_CONSIGNMENT_MAPPING.NEXTVAL FROM DUAL" />
81 + </table>
82 +
83 +
76 <!-- <table schema="ICLEARIMP" tableName="T_LOG_OPERATION" domainObjectName="Operation"--> 84 <!-- <table schema="ICLEARIMP" tableName="T_LOG_OPERATION" domainObjectName="Operation"-->
77 <!-- enableCountByExample="true" enableUpdateByExample="true"--> 85 <!-- enableCountByExample="true" enableUpdateByExample="true"-->
78 <!-- enableDeleteByExample="true" enableSelectByExample="true"--> 86 <!-- enableDeleteByExample="true" enableSelectByExample="true"-->
...@@ -173,12 +181,12 @@ ...@@ -173,12 +181,12 @@
173 <!-- selectByExampleQueryId="true">--> 181 <!-- selectByExampleQueryId="true">-->
174 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_ROLE_PRIVILEGE.NEXTVAL FROM DUAL" />--> 182 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_ROLE_PRIVILEGE.NEXTVAL FROM DUAL" />-->
175 <!-- </table>--> 183 <!-- </table>-->
176 - <table schema="ICLEARIMP" tableName="T_SYS_USER" domainObjectName="User" 184 +<!-- <table schema="ICLEARIMP" tableName="T_SYS_USER" domainObjectName="User"-->
177 - enableCountByExample="true" enableUpdateByExample="true" 185 +<!-- enableCountByExample="true" enableUpdateByExample="true"-->
178 - enableDeleteByExample="true" enableSelectByExample="true" 186 +<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
179 - selectByExampleQueryId="true"> 187 +<!-- selectByExampleQueryId="true">-->
180 - <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_USER.NEXTVAL FROM DUAL" /> 188 +<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_USER.NEXTVAL FROM DUAL" />-->
181 - </table> 189 +<!-- </table>-->
182 <!-- <table schema="ICLEARIMP" tableName="T_SYS_USER_ROLE" domainObjectName="UserRole"--> 190 <!-- <table schema="ICLEARIMP" tableName="T_SYS_USER_ROLE" domainObjectName="UserRole"-->
183 <!-- enableCountByExample="true" enableUpdateByExample="true"--> 191 <!-- enableCountByExample="true" enableUpdateByExample="true"-->
184 <!-- enableDeleteByExample="true" enableSelectByExample="true"--> 192 <!-- enableDeleteByExample="true" enableSelectByExample="true"-->
......