zelong.shao

dao|初始化dao层

1 +package com.fedex.connect.common.dao.base;
2 +
3 +import com.fedex.connect.common.model.base.DictionaryEntries;
4 +import com.fedex.connect.common.model.base.DictionaryEntriesExample;
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import java.util.List;
8 +
9 +public interface DictionaryEntriesMapper {
10 + long countByExample(DictionaryEntriesExample example);
11 +
12 + int deleteByExample(DictionaryEntriesExample example);
13 +
14 + int deleteByPrimaryKey(Long id);
15 +
16 + int insert(DictionaryEntries record);
17 +
18 + int insertSelective(DictionaryEntries record);
19 +
20 + List<DictionaryEntries> selectByExample(DictionaryEntriesExample example);
21 +
22 + DictionaryEntries selectByPrimaryKey(Long id);
23 +
24 + int updateByExampleSelective(@Param("record") DictionaryEntries record, @Param("example") DictionaryEntriesExample example);
25 +
26 + int updateByExample(@Param("record") DictionaryEntries record, @Param("example") DictionaryEntriesExample example);
27 +
28 + int updateByPrimaryKeySelective(DictionaryEntries record);
29 +
30 + int updateByPrimaryKey(DictionaryEntries record);
31 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.dao.base;
2 +
3 +import com.fedex.connect.common.model.base.Dictionary;
4 +import com.fedex.connect.common.model.base.DictionaryExample;
5 +import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
7 +
8 +public interface DictionaryMapper {
9 + long countByExample(DictionaryExample example);
10 +
11 + int deleteByExample(DictionaryExample example);
12 +
13 + int deleteByPrimaryKey(Long id);
14 +
15 + int insert(Dictionary record);
16 +
17 + int insertSelective(Dictionary record);
18 +
19 + List<Dictionary> selectByExample(DictionaryExample example);
20 +
21 + Dictionary selectByPrimaryKey(Long id);
22 +
23 + int updateByExampleSelective(@Param("record") Dictionary record, @Param("example") DictionaryExample example);
24 +
25 + int updateByExample(@Param("record") Dictionary record, @Param("example") DictionaryExample example);
26 +
27 + int updateByPrimaryKeySelective(Dictionary record);
28 +
29 + int updateByPrimaryKey(Dictionary record);
30 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.base;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: 字典目录表
8 + * TABLE: T_BI_DICTIONARY
9 + */
10 +public class Dictionary implements Serializable {
11 + /**
12 + * ID,主键自增
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 字典编号
18 + */
19 + private String code;
20 +
21 + /**
22 + * 字典英文名称
23 + */
24 + private String englishName;
25 +
26 + /**
27 + * 描述
28 + */
29 + private String description;
30 +
31 + /**
32 + * 状态(0:无效、1:有效)
33 + */
34 + private Long status;
35 +
36 + /**
37 + * 上级字典ID
38 + */
39 + private String parentId;
40 +
41 + /**
42 + * 扩展字段1,字符串
43 + */
44 + private String ext1;
45 +
46 + /**
47 + * 扩展字段2,字符串
48 + */
49 + private String ext2;
50 +
51 + /**
52 + * 扩展字段3,数字
53 + */
54 + private Long ext3;
55 +
56 + /**
57 + * 扩展字段4,数字
58 + */
59 + private Long ext4;
60 +
61 + /**
62 + * 创建时间
63 + */
64 + private Date createTime;
65 +
66 + /**
67 + * 创建人ID,关联用户表ID
68 + */
69 + private Long createUserId;
70 +
71 + /**
72 + * 创建人名称
73 + */
74 + private String createUserName;
75 +
76 + /**
77 + * 修改时间
78 + */
79 + private Date modifyTime;
80 +
81 + /**
82 + * 修改人ID,关联用户表ID
83 + */
84 + private Long modifyUserId;
85 +
86 + /**
87 + * 修改人名称
88 + */
89 + private String modifyUserName;
90 +
91 + private static final long serialVersionUID = 1L;
92 +
93 + public Long getId() {
94 + return id;
95 + }
96 +
97 + public void setId(Long id) {
98 + this.id = id;
99 + }
100 +
101 + public String getCode() {
102 + return code;
103 + }
104 +
105 + public void setCode(String code) {
106 + this.code = code == null ? null : code.trim();
107 + }
108 +
109 + public String getEnglishName() {
110 + return englishName;
111 + }
112 +
113 + public void setEnglishName(String englishName) {
114 + this.englishName = englishName == null ? null : englishName.trim();
115 + }
116 +
117 + public String getDescription() {
118 + return description;
119 + }
120 +
121 + public void setDescription(String description) {
122 + this.description = description == null ? null : description.trim();
123 + }
124 +
125 + public Long getStatus() {
126 + return status;
127 + }
128 +
129 + public void setStatus(Long status) {
130 + this.status = status;
131 + }
132 +
133 + public String getParentId() {
134 + return parentId;
135 + }
136 +
137 + public void setParentId(String parentId) {
138 + this.parentId = parentId == null ? null : parentId.trim();
139 + }
140 +
141 + public String getExt1() {
142 + return ext1;
143 + }
144 +
145 + public void setExt1(String ext1) {
146 + this.ext1 = ext1 == null ? null : ext1.trim();
147 + }
148 +
149 + public String getExt2() {
150 + return ext2;
151 + }
152 +
153 + public void setExt2(String ext2) {
154 + this.ext2 = ext2 == null ? null : ext2.trim();
155 + }
156 +
157 + public Long getExt3() {
158 + return ext3;
159 + }
160 +
161 + public void setExt3(Long ext3) {
162 + this.ext3 = ext3;
163 + }
164 +
165 + public Long getExt4() {
166 + return ext4;
167 + }
168 +
169 + public void setExt4(Long ext4) {
170 + this.ext4 = ext4;
171 + }
172 +
173 + public Date getCreateTime() {
174 + return createTime;
175 + }
176 +
177 + public void setCreateTime(Date createTime) {
178 + this.createTime = createTime;
179 + }
180 +
181 + public Long getCreateUserId() {
182 + return createUserId;
183 + }
184 +
185 + public void setCreateUserId(Long createUserId) {
186 + this.createUserId = createUserId;
187 + }
188 +
189 + public String getCreateUserName() {
190 + return createUserName;
191 + }
192 +
193 + public void setCreateUserName(String createUserName) {
194 + this.createUserName = createUserName == null ? null : createUserName.trim();
195 + }
196 +
197 + public Date getModifyTime() {
198 + return modifyTime;
199 + }
200 +
201 + public void setModifyTime(Date modifyTime) {
202 + this.modifyTime = modifyTime;
203 + }
204 +
205 + public Long getModifyUserId() {
206 + return modifyUserId;
207 + }
208 +
209 + public void setModifyUserId(Long modifyUserId) {
210 + this.modifyUserId = modifyUserId;
211 + }
212 +
213 + public String getModifyUserName() {
214 + return modifyUserName;
215 + }
216 +
217 + public void setModifyUserName(String modifyUserName) {
218 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
219 + }
220 +
221 + @Override
222 + public String toString() {
223 + StringBuilder sb = new StringBuilder();
224 + sb.append(getClass().getSimpleName());
225 + sb.append(" [");
226 + sb.append("Hash = ").append(hashCode());
227 + sb.append(", id=").append(id);
228 + sb.append(", code=").append(code);
229 + sb.append(", englishName=").append(englishName);
230 + sb.append(", description=").append(description);
231 + sb.append(", status=").append(status);
232 + sb.append(", parentId=").append(parentId);
233 + sb.append(", ext1=").append(ext1);
234 + sb.append(", ext2=").append(ext2);
235 + sb.append(", ext3=").append(ext3);
236 + sb.append(", ext4=").append(ext4);
237 + sb.append(", createTime=").append(createTime);
238 + sb.append(", createUserId=").append(createUserId);
239 + sb.append(", createUserName=").append(createUserName);
240 + sb.append(", modifyTime=").append(modifyTime);
241 + sb.append(", modifyUserId=").append(modifyUserId);
242 + sb.append(", modifyUserName=").append(modifyUserName);
243 + sb.append(", serialVersionUID=").append(serialVersionUID);
244 + sb.append("]");
245 + return sb.toString();
246 + }
247 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.base;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: 字典表
8 + * TABLE: T_BI_DICTIONARY_ENTRIES
9 + */
10 +public class DictionaryEntries implements Serializable {
11 + /**
12 + * ID,主键自增
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 字典编号
18 + */
19 + private String code;
20 +
21 + /**
22 + * 字典英文名称
23 + */
24 + private String englishName;
25 +
26 + /**
27 + * 描述
28 + */
29 + private String description;
30 +
31 + /**
32 + * 状态(0:无效、1:有效)
33 + */
34 + private Long status;
35 +
36 + /**
37 + * 上级字典ID
38 + */
39 + private Long parentId;
40 +
41 + /**
42 + * 字典目录ID
43 + */
44 + private Long dictId;
45 +
46 + /**
47 + * 字典目录CODE
48 + */
49 + private String dictCode;
50 +
51 + /**
52 + * 字典排序字段
53 + */
54 + private Long ordinal;
55 +
56 + /**
57 + * 扩展字段1,字符串
58 + */
59 + private String ext1;
60 +
61 + /**
62 + * 扩展字段2,字符串
63 + */
64 + private String ext2;
65 +
66 + /**
67 + * 扩展字段3,数字
68 + */
69 + private Long ext3;
70 +
71 + /**
72 + * 扩展字段4,数字
73 + */
74 + private Long ext4;
75 +
76 + /**
77 + * 创建时间
78 + */
79 + private Date createTime;
80 +
81 + /**
82 + * 创建人ID,关联用户表ID
83 + */
84 + private Long createUserId;
85 +
86 + /**
87 + * 创建人名称
88 + */
89 + private String createUserName;
90 +
91 + /**
92 + * 修改时间
93 + */
94 + private Date modifyTime;
95 +
96 + /**
97 + * 修改人ID,关联用户表ID
98 + */
99 + private Long modifyUserId;
100 +
101 + /**
102 + * 修改人名称
103 + */
104 + private String modifyUserName;
105 +
106 + private static final long serialVersionUID = 1L;
107 +
108 + public Long getId() {
109 + return id;
110 + }
111 +
112 + public void setId(Long id) {
113 + this.id = id;
114 + }
115 +
116 + public String getCode() {
117 + return code;
118 + }
119 +
120 + public void setCode(String code) {
121 + this.code = code == null ? null : code.trim();
122 + }
123 +
124 + public String getEnglishName() {
125 + return englishName;
126 + }
127 +
128 + public void setEnglishName(String englishName) {
129 + this.englishName = englishName == null ? null : englishName.trim();
130 + }
131 +
132 + public String getDescription() {
133 + return description;
134 + }
135 +
136 + public void setDescription(String description) {
137 + this.description = description == null ? null : description.trim();
138 + }
139 +
140 + public Long getStatus() {
141 + return status;
142 + }
143 +
144 + public void setStatus(Long status) {
145 + this.status = status;
146 + }
147 +
148 + public Long getParentId() {
149 + return parentId;
150 + }
151 +
152 + public void setParentId(Long parentId) {
153 + this.parentId = parentId;
154 + }
155 +
156 + public Long getDictId() {
157 + return dictId;
158 + }
159 +
160 + public void setDictId(Long dictId) {
161 + this.dictId = dictId;
162 + }
163 +
164 + public String getDictCode() {
165 + return dictCode;
166 + }
167 +
168 + public void setDictCode(String dictCode) {
169 + this.dictCode = dictCode == null ? null : dictCode.trim();
170 + }
171 +
172 + public Long getOrdinal() {
173 + return ordinal;
174 + }
175 +
176 + public void setOrdinal(Long ordinal) {
177 + this.ordinal = ordinal;
178 + }
179 +
180 + public String getExt1() {
181 + return ext1;
182 + }
183 +
184 + public void setExt1(String ext1) {
185 + this.ext1 = ext1 == null ? null : ext1.trim();
186 + }
187 +
188 + public String getExt2() {
189 + return ext2;
190 + }
191 +
192 + public void setExt2(String ext2) {
193 + this.ext2 = ext2 == null ? null : ext2.trim();
194 + }
195 +
196 + public Long getExt3() {
197 + return ext3;
198 + }
199 +
200 + public void setExt3(Long ext3) {
201 + this.ext3 = ext3;
202 + }
203 +
204 + public Long getExt4() {
205 + return ext4;
206 + }
207 +
208 + public void setExt4(Long ext4) {
209 + this.ext4 = ext4;
210 + }
211 +
212 + public Date getCreateTime() {
213 + return createTime;
214 + }
215 +
216 + public void setCreateTime(Date createTime) {
217 + this.createTime = createTime;
218 + }
219 +
220 + public Long getCreateUserId() {
221 + return createUserId;
222 + }
223 +
224 + public void setCreateUserId(Long createUserId) {
225 + this.createUserId = createUserId;
226 + }
227 +
228 + public String getCreateUserName() {
229 + return createUserName;
230 + }
231 +
232 + public void setCreateUserName(String createUserName) {
233 + this.createUserName = createUserName == null ? null : createUserName.trim();
234 + }
235 +
236 + public Date getModifyTime() {
237 + return modifyTime;
238 + }
239 +
240 + public void setModifyTime(Date modifyTime) {
241 + this.modifyTime = modifyTime;
242 + }
243 +
244 + public Long getModifyUserId() {
245 + return modifyUserId;
246 + }
247 +
248 + public void setModifyUserId(Long modifyUserId) {
249 + this.modifyUserId = modifyUserId;
250 + }
251 +
252 + public String getModifyUserName() {
253 + return modifyUserName;
254 + }
255 +
256 + public void setModifyUserName(String modifyUserName) {
257 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
258 + }
259 +
260 + @Override
261 + public String toString() {
262 + StringBuilder sb = new StringBuilder();
263 + sb.append(getClass().getSimpleName());
264 + sb.append(" [");
265 + sb.append("Hash = ").append(hashCode());
266 + sb.append(", id=").append(id);
267 + sb.append(", code=").append(code);
268 + sb.append(", englishName=").append(englishName);
269 + sb.append(", description=").append(description);
270 + sb.append(", status=").append(status);
271 + sb.append(", parentId=").append(parentId);
272 + sb.append(", dictId=").append(dictId);
273 + sb.append(", dictCode=").append(dictCode);
274 + sb.append(", ordinal=").append(ordinal);
275 + sb.append(", ext1=").append(ext1);
276 + sb.append(", ext2=").append(ext2);
277 + sb.append(", ext3=").append(ext3);
278 + sb.append(", ext4=").append(ext4);
279 + sb.append(", createTime=").append(createTime);
280 + sb.append(", createUserId=").append(createUserId);
281 + sb.append(", createUserName=").append(createUserName);
282 + sb.append(", modifyTime=").append(modifyTime);
283 + sb.append(", modifyUserId=").append(modifyUserId);
284 + sb.append(", modifyUserName=").append(modifyUserName);
285 + sb.append(", serialVersionUID=").append(serialVersionUID);
286 + sb.append("]");
287 + return sb.toString();
288 + }
289 +}
...\ No newline at end of file ...\ No newline at end of file