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 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 +<mapper namespace="com.fedex.connect.common.dao.biz.UserConsignmentMappingMapper">
4 + <resultMap id="BaseResultMap" type="com.fedex.connect.common.model.biz.UserConsignmentMapping">
5 + <id column="ID" jdbcType="NUMERIC" property="id" />
6 + <result column="USER_ID" jdbcType="NUMERIC" property="userId" />
7 + <result column="CONSIGNMENT_ID" jdbcType="NUMERIC" property="consignmentId" />
8 + <result column="STATUS" jdbcType="NUMERIC" property="status" />
9 + <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
10 + <result column="CREATE_USER_ID" jdbcType="NUMERIC" property="createUserId" />
11 + <result column="CREATE_USER_NAME" jdbcType="VARCHAR" property="createUserName" />
12 + <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" />
13 + <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" />
14 + <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" />
15 + </resultMap>
16 + <sql id="Example_Where_Clause">
17 + <where>
18 + <foreach collection="oredCriteria" item="criteria" separator="or">
19 + <if test="criteria.valid">
20 + <trim prefix="(" prefixOverrides="and" suffix=")">
21 + <foreach collection="criteria.criteria" item="criterion">
22 + <choose>
23 + <when test="criterion.noValue">
24 + and ${criterion.condition}
25 + </when>
26 + <when test="criterion.singleValue">
27 + and ${criterion.condition} #{criterion.value}
28 + </when>
29 + <when test="criterion.betweenValue">
30 + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
31 + </when>
32 + <when test="criterion.listValue">
33 + and ${criterion.condition}
34 + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
35 + #{listItem}
36 + </foreach>
37 + </when>
38 + </choose>
39 + </foreach>
40 + </trim>
41 + </if>
42 + </foreach>
43 + </where>
44 + </sql>
45 + <sql id="Update_By_Example_Where_Clause">
46 + <where>
47 + <foreach collection="example.oredCriteria" item="criteria" separator="or">
48 + <if test="criteria.valid">
49 + <trim prefix="(" prefixOverrides="and" suffix=")">
50 + <foreach collection="criteria.criteria" item="criterion">
51 + <choose>
52 + <when test="criterion.noValue">
53 + and ${criterion.condition}
54 + </when>
55 + <when test="criterion.singleValue">
56 + and ${criterion.condition} #{criterion.value}
57 + </when>
58 + <when test="criterion.betweenValue">
59 + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
60 + </when>
61 + <when test="criterion.listValue">
62 + and ${criterion.condition}
63 + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
64 + #{listItem}
65 + </foreach>
66 + </when>
67 + </choose>
68 + </foreach>
69 + </trim>
70 + </if>
71 + </foreach>
72 + </where>
73 + </sql>
74 + <sql id="Base_Column_List">
75 + ID, USER_ID, CONSIGNMENT_ID, STATUS, CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME,
76 + MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME
77 + </sql>
78 + <select id="selectByExample" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMappingExample" resultMap="BaseResultMap">
79 + <include refid="OracleDialectPrefix" />
80 + select
81 + <if test="distinct">
82 + distinct
83 + </if>
84 + 'true' as QUERYID,
85 + <include refid="Base_Column_List" />
86 + from ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
87 + <if test="_parameter != null">
88 + <include refid="Example_Where_Clause" />
89 + </if>
90 + <if test="orderByClause != null">
91 + order by ${orderByClause}
92 + </if>
93 + <include refid="OracleDialectSuffix" />
94 + </select>
95 + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
96 + select
97 + <include refid="Base_Column_List" />
98 + from ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
99 + where ID = #{id,jdbcType=NUMERIC}
100 + </select>
101 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
102 + delete from ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
103 + where ID = #{id,jdbcType=NUMERIC}
104 + </delete>
105 + <delete id="deleteByExample" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMappingExample">
106 + delete from ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
107 + <if test="_parameter != null">
108 + <include refid="Example_Where_Clause" />
109 + </if>
110 + </delete>
111 + <insert id="insert" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMapping">
112 + <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
113 + SELECT SEQ_T_BIZ_USER_CONSIGNMENT_MAPPING.NEXTVAL FROM DUAL
114 + </selectKey>
115 + insert into ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING (ID, USER_ID, CONSIGNMENT_ID,
116 + STATUS, CREATE_TIME, CREATE_USER_ID,
117 + CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID,
118 + MODIFY_USER_NAME)
119 + values (#{id,jdbcType=NUMERIC}, #{userId,jdbcType=NUMERIC}, #{consignmentId,jdbcType=NUMERIC},
120 + #{status,jdbcType=NUMERIC}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC},
121 + #{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC},
122 + #{modifyUserName,jdbcType=VARCHAR})
123 + </insert>
124 + <insert id="insertSelective" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMapping">
125 + <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
126 + SELECT SEQ_T_BIZ_USER_CONSIGNMENT_MAPPING.NEXTVAL FROM DUAL
127 + </selectKey>
128 + insert into ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
129 + <trim prefix="(" suffix=")" suffixOverrides=",">
130 + ID,
131 + <if test="userId != null">
132 + USER_ID,
133 + </if>
134 + <if test="consignmentId != null">
135 + CONSIGNMENT_ID,
136 + </if>
137 + <if test="status != null">
138 + STATUS,
139 + </if>
140 + <if test="createTime != null">
141 + CREATE_TIME,
142 + </if>
143 + <if test="createUserId != null">
144 + CREATE_USER_ID,
145 + </if>
146 + <if test="createUserName != null">
147 + CREATE_USER_NAME,
148 + </if>
149 + <if test="modifyTime != null">
150 + MODIFY_TIME,
151 + </if>
152 + <if test="modifyUserId != null">
153 + MODIFY_USER_ID,
154 + </if>
155 + <if test="modifyUserName != null">
156 + MODIFY_USER_NAME,
157 + </if>
158 + </trim>
159 + <trim prefix="values (" suffix=")" suffixOverrides=",">
160 + #{id,jdbcType=NUMERIC},
161 + <if test="userId != null">
162 + #{userId,jdbcType=NUMERIC},
163 + </if>
164 + <if test="consignmentId != null">
165 + #{consignmentId,jdbcType=NUMERIC},
166 + </if>
167 + <if test="status != null">
168 + #{status,jdbcType=NUMERIC},
169 + </if>
170 + <if test="createTime != null">
171 + #{createTime,jdbcType=TIMESTAMP},
172 + </if>
173 + <if test="createUserId != null">
174 + #{createUserId,jdbcType=NUMERIC},
175 + </if>
176 + <if test="createUserName != null">
177 + #{createUserName,jdbcType=VARCHAR},
178 + </if>
179 + <if test="modifyTime != null">
180 + #{modifyTime,jdbcType=TIMESTAMP},
181 + </if>
182 + <if test="modifyUserId != null">
183 + #{modifyUserId,jdbcType=NUMERIC},
184 + </if>
185 + <if test="modifyUserName != null">
186 + #{modifyUserName,jdbcType=VARCHAR},
187 + </if>
188 + </trim>
189 + </insert>
190 + <select id="countByExample" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMappingExample" resultType="java.lang.Long">
191 + select count(*) from ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
192 + <if test="_parameter != null">
193 + <include refid="Example_Where_Clause" />
194 + </if>
195 + </select>
196 + <update id="updateByExampleSelective" parameterType="map">
197 + update ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
198 + <set>
199 + <if test="record.id != null">
200 + ID = #{record.id,jdbcType=NUMERIC},
201 + </if>
202 + <if test="record.userId != null">
203 + USER_ID = #{record.userId,jdbcType=NUMERIC},
204 + </if>
205 + <if test="record.consignmentId != null">
206 + CONSIGNMENT_ID = #{record.consignmentId,jdbcType=NUMERIC},
207 + </if>
208 + <if test="record.status != null">
209 + STATUS = #{record.status,jdbcType=NUMERIC},
210 + </if>
211 + <if test="record.createTime != null">
212 + CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
213 + </if>
214 + <if test="record.createUserId != null">
215 + CREATE_USER_ID = #{record.createUserId,jdbcType=NUMERIC},
216 + </if>
217 + <if test="record.createUserName != null">
218 + CREATE_USER_NAME = #{record.createUserName,jdbcType=VARCHAR},
219 + </if>
220 + <if test="record.modifyTime != null">
221 + MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP},
222 + </if>
223 + <if test="record.modifyUserId != null">
224 + MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC},
225 + </if>
226 + <if test="record.modifyUserName != null">
227 + MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
228 + </if>
229 + </set>
230 + <if test="_parameter != null">
231 + <include refid="Update_By_Example_Where_Clause" />
232 + </if>
233 + </update>
234 + <update id="updateByExample" parameterType="map">
235 + update ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
236 + set ID = #{record.id,jdbcType=NUMERIC},
237 + USER_ID = #{record.userId,jdbcType=NUMERIC},
238 + CONSIGNMENT_ID = #{record.consignmentId,jdbcType=NUMERIC},
239 + STATUS = #{record.status,jdbcType=NUMERIC},
240 + CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
241 + CREATE_USER_ID = #{record.createUserId,jdbcType=NUMERIC},
242 + CREATE_USER_NAME = #{record.createUserName,jdbcType=VARCHAR},
243 + MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP},
244 + MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC},
245 + MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR}
246 + <if test="_parameter != null">
247 + <include refid="Update_By_Example_Where_Clause" />
248 + </if>
249 + </update>
250 + <update id="updateByPrimaryKeySelective" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMapping">
251 + update ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
252 + <set>
253 + <if test="userId != null">
254 + USER_ID = #{userId,jdbcType=NUMERIC},
255 + </if>
256 + <if test="consignmentId != null">
257 + CONSIGNMENT_ID = #{consignmentId,jdbcType=NUMERIC},
258 + </if>
259 + <if test="status != null">
260 + STATUS = #{status,jdbcType=NUMERIC},
261 + </if>
262 + <if test="createTime != null">
263 + CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
264 + </if>
265 + <if test="createUserId != null">
266 + CREATE_USER_ID = #{createUserId,jdbcType=NUMERIC},
267 + </if>
268 + <if test="createUserName != null">
269 + CREATE_USER_NAME = #{createUserName,jdbcType=VARCHAR},
270 + </if>
271 + <if test="modifyTime != null">
272 + MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
273 + </if>
274 + <if test="modifyUserId != null">
275 + MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC},
276 + </if>
277 + <if test="modifyUserName != null">
278 + MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
279 + </if>
280 + </set>
281 + where ID = #{id,jdbcType=NUMERIC}
282 + </update>
283 + <update id="updateByPrimaryKey" parameterType="com.fedex.connect.common.model.biz.UserConsignmentMapping">
284 + update ICLEARIMP.T_BIZ_USER_CONSIGNMENT_MAPPING
285 + set USER_ID = #{userId,jdbcType=NUMERIC},
286 + CONSIGNMENT_ID = #{consignmentId,jdbcType=NUMERIC},
287 + STATUS = #{status,jdbcType=NUMERIC},
288 + CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
289 + CREATE_USER_ID = #{createUserId,jdbcType=NUMERIC},
290 + CREATE_USER_NAME = #{createUserName,jdbcType=VARCHAR},
291 + MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
292 + MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC},
293 + MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR}
294 + where ID = #{id,jdbcType=NUMERIC}
295 + </update>
296 + <sql id="OracleDialectPrefix">
297 + <if test="limitStart != null and limitStart>=0">
298 + select * from ( select row_.*, rownum rownum_ from (
299 + </if>
300 + </sql>
301 + <sql id="OracleDialectSuffix">
302 + <if test="limitStart != null and limitStart>=0">
303 + <![CDATA[ ) row_ ) where rownum_ > #{limitStart} and rownum_ <= #{limitStart}+#{limitSize} ]]>
304 + </if>
305 + </sql>
306 +</mapper>
...\ 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
1 +package com.fedex.connect.common.model.biz;
2 +
3 +import java.util.ArrayList;
4 +import java.util.Date;
5 +import java.util.List;
6 +
7 +public class UserConsignmentMappingExample {
8 + protected String orderByClause;
9 +
10 + protected boolean distinct;
11 +
12 + protected List<Criteria> oredCriteria;
13 +
14 + protected Integer limitStart;
15 +
16 + protected Integer limitSize;
17 +
18 + public UserConsignmentMappingExample() {
19 + oredCriteria = new ArrayList<Criteria>();
20 + }
21 +
22 + public void setOrderByClause(String orderByClause) {
23 + this.orderByClause = orderByClause;
24 + }
25 +
26 + public String getOrderByClause() {
27 + return orderByClause;
28 + }
29 +
30 + public void setDistinct(boolean distinct) {
31 + this.distinct = distinct;
32 + }
33 +
34 + public boolean isDistinct() {
35 + return distinct;
36 + }
37 +
38 + public List<Criteria> getOredCriteria() {
39 + return oredCriteria;
40 + }
41 +
42 + public void or(Criteria criteria) {
43 + oredCriteria.add(criteria);
44 + }
45 +
46 + public Criteria or() {
47 + Criteria criteria = createCriteriaInternal();
48 + oredCriteria.add(criteria);
49 + return criteria;
50 + }
51 +
52 + public Criteria createCriteria() {
53 + Criteria criteria = createCriteriaInternal();
54 + if (oredCriteria.size() == 0) {
55 + oredCriteria.add(criteria);
56 + }
57 + return criteria;
58 + }
59 +
60 + protected Criteria createCriteriaInternal() {
61 + Criteria criteria = new Criteria();
62 + return criteria;
63 + }
64 +
65 + public void clear() {
66 + oredCriteria.clear();
67 + orderByClause = null;
68 + distinct = false;
69 + }
70 +
71 + public void setLimitStart(Integer limitStart) {
72 + this.limitStart=limitStart;
73 + }
74 +
75 + public Integer getLimitStart() {
76 + return limitStart;
77 + }
78 +
79 + public void setLimitSize(Integer limitSize) {
80 + this.limitSize=limitSize;
81 + }
82 +
83 + public Integer getLimitSize() {
84 + return limitSize;
85 + }
86 +
87 + protected abstract static class GeneratedCriteria {
88 + protected List<Criterion> criteria;
89 +
90 + protected GeneratedCriteria() {
91 + super();
92 + criteria = new ArrayList<Criterion>();
93 + }
94 +
95 + public boolean isValid() {
96 + return criteria.size() > 0;
97 + }
98 +
99 + public List<Criterion> getAllCriteria() {
100 + return criteria;
101 + }
102 +
103 + public List<Criterion> getCriteria() {
104 + return criteria;
105 + }
106 +
107 + protected void addCriterion(String condition) {
108 + if (condition == null) {
109 + throw new RuntimeException("Value for condition cannot be null");
110 + }
111 + criteria.add(new Criterion(condition));
112 + }
113 +
114 + protected void addCriterion(String condition, Object value, String property) {
115 + if (value == null) {
116 + throw new RuntimeException("Value for " + property + " cannot be null");
117 + }
118 + criteria.add(new Criterion(condition, value));
119 + }
120 +
121 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
122 + if (value1 == null || value2 == null) {
123 + throw new RuntimeException("Between values for " + property + " cannot be null");
124 + }
125 + criteria.add(new Criterion(condition, value1, value2));
126 + }
127 +
128 + public Criteria andIdIsNull() {
129 + addCriterion("ID is null");
130 + return (Criteria) this;
131 + }
132 +
133 + public Criteria andIdIsNotNull() {
134 + addCriterion("ID is not null");
135 + return (Criteria) this;
136 + }
137 +
138 + public Criteria andIdEqualTo(Long value) {
139 + addCriterion("ID =", value, "id");
140 + return (Criteria) this;
141 + }
142 +
143 + public Criteria andIdNotEqualTo(Long value) {
144 + addCriterion("ID <>", value, "id");
145 + return (Criteria) this;
146 + }
147 +
148 + public Criteria andIdGreaterThan(Long value) {
149 + addCriterion("ID >", value, "id");
150 + return (Criteria) this;
151 + }
152 +
153 + public Criteria andIdGreaterThanOrEqualTo(Long value) {
154 + addCriterion("ID >=", value, "id");
155 + return (Criteria) this;
156 + }
157 +
158 + public Criteria andIdLessThan(Long value) {
159 + addCriterion("ID <", value, "id");
160 + return (Criteria) this;
161 + }
162 +
163 + public Criteria andIdLessThanOrEqualTo(Long value) {
164 + addCriterion("ID <=", value, "id");
165 + return (Criteria) this;
166 + }
167 +
168 + public Criteria andIdIn(List<Long> values) {
169 + addCriterion("ID in", values, "id");
170 + return (Criteria) this;
171 + }
172 +
173 + public Criteria andIdNotIn(List<Long> values) {
174 + addCriterion("ID not in", values, "id");
175 + return (Criteria) this;
176 + }
177 +
178 + public Criteria andIdBetween(Long value1, Long value2) {
179 + addCriterion("ID between", value1, value2, "id");
180 + return (Criteria) this;
181 + }
182 +
183 + public Criteria andIdNotBetween(Long value1, Long value2) {
184 + addCriterion("ID not between", value1, value2, "id");
185 + return (Criteria) this;
186 + }
187 +
188 + public Criteria andUserIdIsNull() {
189 + addCriterion("USER_ID is null");
190 + return (Criteria) this;
191 + }
192 +
193 + public Criteria andUserIdIsNotNull() {
194 + addCriterion("USER_ID is not null");
195 + return (Criteria) this;
196 + }
197 +
198 + public Criteria andUserIdEqualTo(Long value) {
199 + addCriterion("USER_ID =", value, "userId");
200 + return (Criteria) this;
201 + }
202 +
203 + public Criteria andUserIdNotEqualTo(Long value) {
204 + addCriterion("USER_ID <>", value, "userId");
205 + return (Criteria) this;
206 + }
207 +
208 + public Criteria andUserIdGreaterThan(Long value) {
209 + addCriterion("USER_ID >", value, "userId");
210 + return (Criteria) this;
211 + }
212 +
213 + public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
214 + addCriterion("USER_ID >=", value, "userId");
215 + return (Criteria) this;
216 + }
217 +
218 + public Criteria andUserIdLessThan(Long value) {
219 + addCriterion("USER_ID <", value, "userId");
220 + return (Criteria) this;
221 + }
222 +
223 + public Criteria andUserIdLessThanOrEqualTo(Long value) {
224 + addCriterion("USER_ID <=", value, "userId");
225 + return (Criteria) this;
226 + }
227 +
228 + public Criteria andUserIdIn(List<Long> values) {
229 + addCriterion("USER_ID in", values, "userId");
230 + return (Criteria) this;
231 + }
232 +
233 + public Criteria andUserIdNotIn(List<Long> values) {
234 + addCriterion("USER_ID not in", values, "userId");
235 + return (Criteria) this;
236 + }
237 +
238 + public Criteria andUserIdBetween(Long value1, Long value2) {
239 + addCriterion("USER_ID between", value1, value2, "userId");
240 + return (Criteria) this;
241 + }
242 +
243 + public Criteria andUserIdNotBetween(Long value1, Long value2) {
244 + addCriterion("USER_ID not between", value1, value2, "userId");
245 + return (Criteria) this;
246 + }
247 +
248 + public Criteria andConsignmentIdIsNull() {
249 + addCriterion("CONSIGNMENT_ID is null");
250 + return (Criteria) this;
251 + }
252 +
253 + public Criteria andConsignmentIdIsNotNull() {
254 + addCriterion("CONSIGNMENT_ID is not null");
255 + return (Criteria) this;
256 + }
257 +
258 + public Criteria andConsignmentIdEqualTo(Long value) {
259 + addCriterion("CONSIGNMENT_ID =", value, "consignmentId");
260 + return (Criteria) this;
261 + }
262 +
263 + public Criteria andConsignmentIdNotEqualTo(Long value) {
264 + addCriterion("CONSIGNMENT_ID <>", value, "consignmentId");
265 + return (Criteria) this;
266 + }
267 +
268 + public Criteria andConsignmentIdGreaterThan(Long value) {
269 + addCriterion("CONSIGNMENT_ID >", value, "consignmentId");
270 + return (Criteria) this;
271 + }
272 +
273 + public Criteria andConsignmentIdGreaterThanOrEqualTo(Long value) {
274 + addCriterion("CONSIGNMENT_ID >=", value, "consignmentId");
275 + return (Criteria) this;
276 + }
277 +
278 + public Criteria andConsignmentIdLessThan(Long value) {
279 + addCriterion("CONSIGNMENT_ID <", value, "consignmentId");
280 + return (Criteria) this;
281 + }
282 +
283 + public Criteria andConsignmentIdLessThanOrEqualTo(Long value) {
284 + addCriterion("CONSIGNMENT_ID <=", value, "consignmentId");
285 + return (Criteria) this;
286 + }
287 +
288 + public Criteria andConsignmentIdIn(List<Long> values) {
289 + addCriterion("CONSIGNMENT_ID in", values, "consignmentId");
290 + return (Criteria) this;
291 + }
292 +
293 + public Criteria andConsignmentIdNotIn(List<Long> values) {
294 + addCriterion("CONSIGNMENT_ID not in", values, "consignmentId");
295 + return (Criteria) this;
296 + }
297 +
298 + public Criteria andConsignmentIdBetween(Long value1, Long value2) {
299 + addCriterion("CONSIGNMENT_ID between", value1, value2, "consignmentId");
300 + return (Criteria) this;
301 + }
302 +
303 + public Criteria andConsignmentIdNotBetween(Long value1, Long value2) {
304 + addCriterion("CONSIGNMENT_ID not between", value1, value2, "consignmentId");
305 + return (Criteria) this;
306 + }
307 +
308 + public Criteria andStatusIsNull() {
309 + addCriterion("STATUS is null");
310 + return (Criteria) this;
311 + }
312 +
313 + public Criteria andStatusIsNotNull() {
314 + addCriterion("STATUS is not null");
315 + return (Criteria) this;
316 + }
317 +
318 + public Criteria andStatusEqualTo(Long value) {
319 + addCriterion("STATUS =", value, "status");
320 + return (Criteria) this;
321 + }
322 +
323 + public Criteria andStatusNotEqualTo(Long value) {
324 + addCriterion("STATUS <>", value, "status");
325 + return (Criteria) this;
326 + }
327 +
328 + public Criteria andStatusGreaterThan(Long value) {
329 + addCriterion("STATUS >", value, "status");
330 + return (Criteria) this;
331 + }
332 +
333 + public Criteria andStatusGreaterThanOrEqualTo(Long value) {
334 + addCriterion("STATUS >=", value, "status");
335 + return (Criteria) this;
336 + }
337 +
338 + public Criteria andStatusLessThan(Long value) {
339 + addCriterion("STATUS <", value, "status");
340 + return (Criteria) this;
341 + }
342 +
343 + public Criteria andStatusLessThanOrEqualTo(Long value) {
344 + addCriterion("STATUS <=", value, "status");
345 + return (Criteria) this;
346 + }
347 +
348 + public Criteria andStatusIn(List<Long> values) {
349 + addCriterion("STATUS in", values, "status");
350 + return (Criteria) this;
351 + }
352 +
353 + public Criteria andStatusNotIn(List<Long> values) {
354 + addCriterion("STATUS not in", values, "status");
355 + return (Criteria) this;
356 + }
357 +
358 + public Criteria andStatusBetween(Long value1, Long value2) {
359 + addCriterion("STATUS between", value1, value2, "status");
360 + return (Criteria) this;
361 + }
362 +
363 + public Criteria andStatusNotBetween(Long value1, Long value2) {
364 + addCriterion("STATUS not between", value1, value2, "status");
365 + return (Criteria) this;
366 + }
367 +
368 + public Criteria andCreateTimeIsNull() {
369 + addCriterion("CREATE_TIME is null");
370 + return (Criteria) this;
371 + }
372 +
373 + public Criteria andCreateTimeIsNotNull() {
374 + addCriterion("CREATE_TIME is not null");
375 + return (Criteria) this;
376 + }
377 +
378 + public Criteria andCreateTimeEqualTo(Date value) {
379 + addCriterion("CREATE_TIME =", value, "createTime");
380 + return (Criteria) this;
381 + }
382 +
383 + public Criteria andCreateTimeNotEqualTo(Date value) {
384 + addCriterion("CREATE_TIME <>", value, "createTime");
385 + return (Criteria) this;
386 + }
387 +
388 + public Criteria andCreateTimeGreaterThan(Date value) {
389 + addCriterion("CREATE_TIME >", value, "createTime");
390 + return (Criteria) this;
391 + }
392 +
393 + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
394 + addCriterion("CREATE_TIME >=", value, "createTime");
395 + return (Criteria) this;
396 + }
397 +
398 + public Criteria andCreateTimeLessThan(Date value) {
399 + addCriterion("CREATE_TIME <", value, "createTime");
400 + return (Criteria) this;
401 + }
402 +
403 + public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
404 + addCriterion("CREATE_TIME <=", value, "createTime");
405 + return (Criteria) this;
406 + }
407 +
408 + public Criteria andCreateTimeIn(List<Date> values) {
409 + addCriterion("CREATE_TIME in", values, "createTime");
410 + return (Criteria) this;
411 + }
412 +
413 + public Criteria andCreateTimeNotIn(List<Date> values) {
414 + addCriterion("CREATE_TIME not in", values, "createTime");
415 + return (Criteria) this;
416 + }
417 +
418 + public Criteria andCreateTimeBetween(Date value1, Date value2) {
419 + addCriterion("CREATE_TIME between", value1, value2, "createTime");
420 + return (Criteria) this;
421 + }
422 +
423 + public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
424 + addCriterion("CREATE_TIME not between", value1, value2, "createTime");
425 + return (Criteria) this;
426 + }
427 +
428 + public Criteria andCreateUserIdIsNull() {
429 + addCriterion("CREATE_USER_ID is null");
430 + return (Criteria) this;
431 + }
432 +
433 + public Criteria andCreateUserIdIsNotNull() {
434 + addCriterion("CREATE_USER_ID is not null");
435 + return (Criteria) this;
436 + }
437 +
438 + public Criteria andCreateUserIdEqualTo(Long value) {
439 + addCriterion("CREATE_USER_ID =", value, "createUserId");
440 + return (Criteria) this;
441 + }
442 +
443 + public Criteria andCreateUserIdNotEqualTo(Long value) {
444 + addCriterion("CREATE_USER_ID <>", value, "createUserId");
445 + return (Criteria) this;
446 + }
447 +
448 + public Criteria andCreateUserIdGreaterThan(Long value) {
449 + addCriterion("CREATE_USER_ID >", value, "createUserId");
450 + return (Criteria) this;
451 + }
452 +
453 + public Criteria andCreateUserIdGreaterThanOrEqualTo(Long value) {
454 + addCriterion("CREATE_USER_ID >=", value, "createUserId");
455 + return (Criteria) this;
456 + }
457 +
458 + public Criteria andCreateUserIdLessThan(Long value) {
459 + addCriterion("CREATE_USER_ID <", value, "createUserId");
460 + return (Criteria) this;
461 + }
462 +
463 + public Criteria andCreateUserIdLessThanOrEqualTo(Long value) {
464 + addCriterion("CREATE_USER_ID <=", value, "createUserId");
465 + return (Criteria) this;
466 + }
467 +
468 + public Criteria andCreateUserIdIn(List<Long> values) {
469 + addCriterion("CREATE_USER_ID in", values, "createUserId");
470 + return (Criteria) this;
471 + }
472 +
473 + public Criteria andCreateUserIdNotIn(List<Long> values) {
474 + addCriterion("CREATE_USER_ID not in", values, "createUserId");
475 + return (Criteria) this;
476 + }
477 +
478 + public Criteria andCreateUserIdBetween(Long value1, Long value2) {
479 + addCriterion("CREATE_USER_ID between", value1, value2, "createUserId");
480 + return (Criteria) this;
481 + }
482 +
483 + public Criteria andCreateUserIdNotBetween(Long value1, Long value2) {
484 + addCriterion("CREATE_USER_ID not between", value1, value2, "createUserId");
485 + return (Criteria) this;
486 + }
487 +
488 + public Criteria andCreateUserNameIsNull() {
489 + addCriterion("CREATE_USER_NAME is null");
490 + return (Criteria) this;
491 + }
492 +
493 + public Criteria andCreateUserNameIsNotNull() {
494 + addCriterion("CREATE_USER_NAME is not null");
495 + return (Criteria) this;
496 + }
497 +
498 + public Criteria andCreateUserNameEqualTo(String value) {
499 + addCriterion("CREATE_USER_NAME =", value, "createUserName");
500 + return (Criteria) this;
501 + }
502 +
503 + public Criteria andCreateUserNameNotEqualTo(String value) {
504 + addCriterion("CREATE_USER_NAME <>", value, "createUserName");
505 + return (Criteria) this;
506 + }
507 +
508 + public Criteria andCreateUserNameGreaterThan(String value) {
509 + addCriterion("CREATE_USER_NAME >", value, "createUserName");
510 + return (Criteria) this;
511 + }
512 +
513 + public Criteria andCreateUserNameGreaterThanOrEqualTo(String value) {
514 + addCriterion("CREATE_USER_NAME >=", value, "createUserName");
515 + return (Criteria) this;
516 + }
517 +
518 + public Criteria andCreateUserNameLessThan(String value) {
519 + addCriterion("CREATE_USER_NAME <", value, "createUserName");
520 + return (Criteria) this;
521 + }
522 +
523 + public Criteria andCreateUserNameLessThanOrEqualTo(String value) {
524 + addCriterion("CREATE_USER_NAME <=", value, "createUserName");
525 + return (Criteria) this;
526 + }
527 +
528 + public Criteria andCreateUserNameLike(String value) {
529 + addCriterion("CREATE_USER_NAME like", value, "createUserName");
530 + return (Criteria) this;
531 + }
532 +
533 + public Criteria andCreateUserNameNotLike(String value) {
534 + addCriterion("CREATE_USER_NAME not like", value, "createUserName");
535 + return (Criteria) this;
536 + }
537 +
538 + public Criteria andCreateUserNameIn(List<String> values) {
539 + addCriterion("CREATE_USER_NAME in", values, "createUserName");
540 + return (Criteria) this;
541 + }
542 +
543 + public Criteria andCreateUserNameNotIn(List<String> values) {
544 + addCriterion("CREATE_USER_NAME not in", values, "createUserName");
545 + return (Criteria) this;
546 + }
547 +
548 + public Criteria andCreateUserNameBetween(String value1, String value2) {
549 + addCriterion("CREATE_USER_NAME between", value1, value2, "createUserName");
550 + return (Criteria) this;
551 + }
552 +
553 + public Criteria andCreateUserNameNotBetween(String value1, String value2) {
554 + addCriterion("CREATE_USER_NAME not between", value1, value2, "createUserName");
555 + return (Criteria) this;
556 + }
557 +
558 + public Criteria andModifyTimeIsNull() {
559 + addCriterion("MODIFY_TIME is null");
560 + return (Criteria) this;
561 + }
562 +
563 + public Criteria andModifyTimeIsNotNull() {
564 + addCriterion("MODIFY_TIME is not null");
565 + return (Criteria) this;
566 + }
567 +
568 + public Criteria andModifyTimeEqualTo(Date value) {
569 + addCriterion("MODIFY_TIME =", value, "modifyTime");
570 + return (Criteria) this;
571 + }
572 +
573 + public Criteria andModifyTimeNotEqualTo(Date value) {
574 + addCriterion("MODIFY_TIME <>", value, "modifyTime");
575 + return (Criteria) this;
576 + }
577 +
578 + public Criteria andModifyTimeGreaterThan(Date value) {
579 + addCriterion("MODIFY_TIME >", value, "modifyTime");
580 + return (Criteria) this;
581 + }
582 +
583 + public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
584 + addCriterion("MODIFY_TIME >=", value, "modifyTime");
585 + return (Criteria) this;
586 + }
587 +
588 + public Criteria andModifyTimeLessThan(Date value) {
589 + addCriterion("MODIFY_TIME <", value, "modifyTime");
590 + return (Criteria) this;
591 + }
592 +
593 + public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
594 + addCriterion("MODIFY_TIME <=", value, "modifyTime");
595 + return (Criteria) this;
596 + }
597 +
598 + public Criteria andModifyTimeIn(List<Date> values) {
599 + addCriterion("MODIFY_TIME in", values, "modifyTime");
600 + return (Criteria) this;
601 + }
602 +
603 + public Criteria andModifyTimeNotIn(List<Date> values) {
604 + addCriterion("MODIFY_TIME not in", values, "modifyTime");
605 + return (Criteria) this;
606 + }
607 +
608 + public Criteria andModifyTimeBetween(Date value1, Date value2) {
609 + addCriterion("MODIFY_TIME between", value1, value2, "modifyTime");
610 + return (Criteria) this;
611 + }
612 +
613 + public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
614 + addCriterion("MODIFY_TIME not between", value1, value2, "modifyTime");
615 + return (Criteria) this;
616 + }
617 +
618 + public Criteria andModifyUserIdIsNull() {
619 + addCriterion("MODIFY_USER_ID is null");
620 + return (Criteria) this;
621 + }
622 +
623 + public Criteria andModifyUserIdIsNotNull() {
624 + addCriterion("MODIFY_USER_ID is not null");
625 + return (Criteria) this;
626 + }
627 +
628 + public Criteria andModifyUserIdEqualTo(Long value) {
629 + addCriterion("MODIFY_USER_ID =", value, "modifyUserId");
630 + return (Criteria) this;
631 + }
632 +
633 + public Criteria andModifyUserIdNotEqualTo(Long value) {
634 + addCriterion("MODIFY_USER_ID <>", value, "modifyUserId");
635 + return (Criteria) this;
636 + }
637 +
638 + public Criteria andModifyUserIdGreaterThan(Long value) {
639 + addCriterion("MODIFY_USER_ID >", value, "modifyUserId");
640 + return (Criteria) this;
641 + }
642 +
643 + public Criteria andModifyUserIdGreaterThanOrEqualTo(Long value) {
644 + addCriterion("MODIFY_USER_ID >=", value, "modifyUserId");
645 + return (Criteria) this;
646 + }
647 +
648 + public Criteria andModifyUserIdLessThan(Long value) {
649 + addCriterion("MODIFY_USER_ID <", value, "modifyUserId");
650 + return (Criteria) this;
651 + }
652 +
653 + public Criteria andModifyUserIdLessThanOrEqualTo(Long value) {
654 + addCriterion("MODIFY_USER_ID <=", value, "modifyUserId");
655 + return (Criteria) this;
656 + }
657 +
658 + public Criteria andModifyUserIdIn(List<Long> values) {
659 + addCriterion("MODIFY_USER_ID in", values, "modifyUserId");
660 + return (Criteria) this;
661 + }
662 +
663 + public Criteria andModifyUserIdNotIn(List<Long> values) {
664 + addCriterion("MODIFY_USER_ID not in", values, "modifyUserId");
665 + return (Criteria) this;
666 + }
667 +
668 + public Criteria andModifyUserIdBetween(Long value1, Long value2) {
669 + addCriterion("MODIFY_USER_ID between", value1, value2, "modifyUserId");
670 + return (Criteria) this;
671 + }
672 +
673 + public Criteria andModifyUserIdNotBetween(Long value1, Long value2) {
674 + addCriterion("MODIFY_USER_ID not between", value1, value2, "modifyUserId");
675 + return (Criteria) this;
676 + }
677 +
678 + public Criteria andModifyUserNameIsNull() {
679 + addCriterion("MODIFY_USER_NAME is null");
680 + return (Criteria) this;
681 + }
682 +
683 + public Criteria andModifyUserNameIsNotNull() {
684 + addCriterion("MODIFY_USER_NAME is not null");
685 + return (Criteria) this;
686 + }
687 +
688 + public Criteria andModifyUserNameEqualTo(String value) {
689 + addCriterion("MODIFY_USER_NAME =", value, "modifyUserName");
690 + return (Criteria) this;
691 + }
692 +
693 + public Criteria andModifyUserNameNotEqualTo(String value) {
694 + addCriterion("MODIFY_USER_NAME <>", value, "modifyUserName");
695 + return (Criteria) this;
696 + }
697 +
698 + public Criteria andModifyUserNameGreaterThan(String value) {
699 + addCriterion("MODIFY_USER_NAME >", value, "modifyUserName");
700 + return (Criteria) this;
701 + }
702 +
703 + public Criteria andModifyUserNameGreaterThanOrEqualTo(String value) {
704 + addCriterion("MODIFY_USER_NAME >=", value, "modifyUserName");
705 + return (Criteria) this;
706 + }
707 +
708 + public Criteria andModifyUserNameLessThan(String value) {
709 + addCriterion("MODIFY_USER_NAME <", value, "modifyUserName");
710 + return (Criteria) this;
711 + }
712 +
713 + public Criteria andModifyUserNameLessThanOrEqualTo(String value) {
714 + addCriterion("MODIFY_USER_NAME <=", value, "modifyUserName");
715 + return (Criteria) this;
716 + }
717 +
718 + public Criteria andModifyUserNameLike(String value) {
719 + addCriterion("MODIFY_USER_NAME like", value, "modifyUserName");
720 + return (Criteria) this;
721 + }
722 +
723 + public Criteria andModifyUserNameNotLike(String value) {
724 + addCriterion("MODIFY_USER_NAME not like", value, "modifyUserName");
725 + return (Criteria) this;
726 + }
727 +
728 + public Criteria andModifyUserNameIn(List<String> values) {
729 + addCriterion("MODIFY_USER_NAME in", values, "modifyUserName");
730 + return (Criteria) this;
731 + }
732 +
733 + public Criteria andModifyUserNameNotIn(List<String> values) {
734 + addCriterion("MODIFY_USER_NAME not in", values, "modifyUserName");
735 + return (Criteria) this;
736 + }
737 +
738 + public Criteria andModifyUserNameBetween(String value1, String value2) {
739 + addCriterion("MODIFY_USER_NAME between", value1, value2, "modifyUserName");
740 + return (Criteria) this;
741 + }
742 +
743 + public Criteria andModifyUserNameNotBetween(String value1, String value2) {
744 + addCriterion("MODIFY_USER_NAME not between", value1, value2, "modifyUserName");
745 + return (Criteria) this;
746 + }
747 + }
748 +
749 + public static class Criteria extends GeneratedCriteria {
750 +
751 + protected Criteria() {
752 + super();
753 + }
754 + }
755 +
756 + public static class Criterion {
757 + private String condition;
758 +
759 + private Object value;
760 +
761 + private Object secondValue;
762 +
763 + private boolean noValue;
764 +
765 + private boolean singleValue;
766 +
767 + private boolean betweenValue;
768 +
769 + private boolean listValue;
770 +
771 + private String typeHandler;
772 +
773 + public String getCondition() {
774 + return condition;
775 + }
776 +
777 + public Object getValue() {
778 + return value;
779 + }
780 +
781 + public Object getSecondValue() {
782 + return secondValue;
783 + }
784 +
785 + public boolean isNoValue() {
786 + return noValue;
787 + }
788 +
789 + public boolean isSingleValue() {
790 + return singleValue;
791 + }
792 +
793 + public boolean isBetweenValue() {
794 + return betweenValue;
795 + }
796 +
797 + public boolean isListValue() {
798 + return listValue;
799 + }
800 +
801 + public String getTypeHandler() {
802 + return typeHandler;
803 + }
804 +
805 + protected Criterion(String condition) {
806 + super();
807 + this.condition = condition;
808 + this.typeHandler = null;
809 + this.noValue = true;
810 + }
811 +
812 + protected Criterion(String condition, Object value, String typeHandler) {
813 + super();
814 + this.condition = condition;
815 + this.value = value;
816 + this.typeHandler = typeHandler;
817 + if (value instanceof List<?>) {
818 + this.listValue = true;
819 + } else {
820 + this.singleValue = true;
821 + }
822 + }
823 +
824 + protected Criterion(String condition, Object value) {
825 + this(condition, value, null);
826 + }
827 +
828 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
829 + super();
830 + this.condition = condition;
831 + this.value = value;
832 + this.secondValue = secondValue;
833 + this.typeHandler = typeHandler;
834 + this.betweenValue = true;
835 + }
836 +
837 + protected Criterion(String condition, Object value, Object secondValue) {
838 + this(condition, value, secondValue, null);
839 + }
840 + }
841 +}
...\ 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"-->
......