Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZhangKuan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宽
ZhangKuan
Commits
4b099408
Commit
4b099408
authored
Oct 06, 2016
by
胡小根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可以成功生成一个表的dao/mapper等
parent
231c3598
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
3519 additions
and
77 deletions
+3519
-77
CrmUserMapper.java
...m/haomostudio/SpringMVCProjectTemplate/CrmUserMapper.java
+96
-0
mybatis-generator.md
docs/wiki/mybatis-generator.md
+10
-0
CrmUser.java
...ava/com/haomostudio/SpringMVCProjectTemplate/CrmUser.java
+830
-0
CrmUserExample.java
.../haomostudio/SpringMVCProjectTemplate/CrmUserExample.java
+1963
-0
pom.xml
pom.xml
+1
-10
generatorConfig.xml
src/main/resources/generatorConfig.xml
+0
-47
test.properties
web/src/main/filters/test.properties
+4
-4
application.properties
web/src/main/resources/config/application.properties
+4
-4
CrmUserMapper.xml
...om/haomostudio/SpringMVCProjectTemplate/CrmUserMapper.xml
+600
-0
mysqlGeneratorConfig.xml
web/src/main/resources/mybatis/mysqlGeneratorConfig.xml
+0
-0
oracleGeneratorConfig.xml
web/src/main/resources/mybatis/oracleGeneratorConfig.xml
+11
-12
No files found.
dao/src/main/java/com/haomostudio/SpringMVCProjectTemplate/CrmUserMapper.java
0 → 100644
View file @
4b099408
package
com
.
haomostudio
.
SpringMVCProjectTemplate
;
import
com.haomostudio.SpringMVCProjectTemplate.CrmUser
;
import
com.haomostudio.SpringMVCProjectTemplate.CrmUserExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CrmUserMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
long
countByExample
(
CrmUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
deleteByExample
(
CrmUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
deleteByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
insert
(
CrmUser
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
insertSelective
(
CrmUser
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
List
<
CrmUser
>
selectByExample
(
CrmUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
CrmUser
selectByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
CrmUser
record
,
@Param
(
"example"
)
CrmUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
updateByExample
(
@Param
(
"record"
)
CrmUser
record
,
@Param
(
"example"
)
CrmUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
updateByPrimaryKeySelective
(
CrmUser
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
int
updateByPrimaryKey
(
CrmUser
record
);
}
\ No newline at end of file
docs/wiki/mybatis-generator.md
0 → 100644
View file @
4b099408
# MyBatis Generator
采用MyBatis Generator自动生成以下代码:
mapper.xml
mapper.java
domain.java
运行如下命令:
mvn mybatis-generator:generate -pl web # 注意: 只需要执行子目录web的配置文件就可以了
\ No newline at end of file
domain/src/main/java/com/haomostudio/SpringMVCProjectTemplate/CrmUser.java
0 → 100644
View file @
4b099408
package
com
.
haomostudio
.
SpringMVCProjectTemplate
;
import
java.util.Date
;
public
class
CrmUser
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.USERNAME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
username
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.LOGINID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
loginid
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.PASSWORD
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
password
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.MOBILE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
mobile
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.EMAIL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
email
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.AVATAR
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
avatar
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.DEPARTMENT_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
departmentId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.SEXUAL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Long
sexual
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.ASSISTANT_MANAGER_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
assistantManagerId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.CREATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Date
createTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.LAST_UPDATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Date
lastUpdateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.IS_DISMISSED
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Long
isDismissed
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.IS_FORBIDDEN
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Long
isForbidden
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.WORK_PHONE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
workPhone
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.LAST_LOGIN_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Date
lastLoginTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.SECURITY_LEVEL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Long
securityLevel
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.TYPE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Long
type
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U01
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u01
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U02
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u02
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U03
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u03
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U04
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u04
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U05
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u05
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.U06
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
String
u06
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column CRM_USER.SUPERIOR_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
private
Object
superiorId
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.ID
*
* @return the value of CRM_USER.ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.ID
*
* @param id the value for CRM_USER.ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.USERNAME
*
* @return the value of CRM_USER.USERNAME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getUsername
()
{
return
username
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.USERNAME
*
* @param username the value for CRM_USER.USERNAME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.LOGINID
*
* @return the value of CRM_USER.LOGINID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getLoginid
()
{
return
loginid
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.LOGINID
*
* @param loginid the value for CRM_USER.LOGINID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setLoginid
(
String
loginid
)
{
this
.
loginid
=
loginid
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.PASSWORD
*
* @return the value of CRM_USER.PASSWORD
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getPassword
()
{
return
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.PASSWORD
*
* @param password the value for CRM_USER.PASSWORD
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.MOBILE
*
* @return the value of CRM_USER.MOBILE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getMobile
()
{
return
mobile
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.MOBILE
*
* @param mobile the value for CRM_USER.MOBILE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setMobile
(
String
mobile
)
{
this
.
mobile
=
mobile
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.EMAIL
*
* @return the value of CRM_USER.EMAIL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getEmail
()
{
return
email
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.EMAIL
*
* @param email the value for CRM_USER.EMAIL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.AVATAR
*
* @return the value of CRM_USER.AVATAR
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getAvatar
()
{
return
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.AVATAR
*
* @param avatar the value for CRM_USER.AVATAR
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setAvatar
(
String
avatar
)
{
this
.
avatar
=
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.DEPARTMENT_ID
*
* @return the value of CRM_USER.DEPARTMENT_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getDepartmentId
()
{
return
departmentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.DEPARTMENT_ID
*
* @param departmentId the value for CRM_USER.DEPARTMENT_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setDepartmentId
(
String
departmentId
)
{
this
.
departmentId
=
departmentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.SEXUAL
*
* @return the value of CRM_USER.SEXUAL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Long
getSexual
()
{
return
sexual
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.SEXUAL
*
* @param sexual the value for CRM_USER.SEXUAL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setSexual
(
Long
sexual
)
{
this
.
sexual
=
sexual
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.ASSISTANT_MANAGER_ID
*
* @return the value of CRM_USER.ASSISTANT_MANAGER_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getAssistantManagerId
()
{
return
assistantManagerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.ASSISTANT_MANAGER_ID
*
* @param assistantManagerId the value for CRM_USER.ASSISTANT_MANAGER_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setAssistantManagerId
(
String
assistantManagerId
)
{
this
.
assistantManagerId
=
assistantManagerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.CREATE_TIME
*
* @return the value of CRM_USER.CREATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.CREATE_TIME
*
* @param createTime the value for CRM_USER.CREATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.LAST_UPDATE_TIME
*
* @return the value of CRM_USER.LAST_UPDATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Date
getLastUpdateTime
()
{
return
lastUpdateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.LAST_UPDATE_TIME
*
* @param lastUpdateTime the value for CRM_USER.LAST_UPDATE_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setLastUpdateTime
(
Date
lastUpdateTime
)
{
this
.
lastUpdateTime
=
lastUpdateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.IS_DISMISSED
*
* @return the value of CRM_USER.IS_DISMISSED
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Long
getIsDismissed
()
{
return
isDismissed
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.IS_DISMISSED
*
* @param isDismissed the value for CRM_USER.IS_DISMISSED
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setIsDismissed
(
Long
isDismissed
)
{
this
.
isDismissed
=
isDismissed
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.IS_FORBIDDEN
*
* @return the value of CRM_USER.IS_FORBIDDEN
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Long
getIsForbidden
()
{
return
isForbidden
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.IS_FORBIDDEN
*
* @param isForbidden the value for CRM_USER.IS_FORBIDDEN
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setIsForbidden
(
Long
isForbidden
)
{
this
.
isForbidden
=
isForbidden
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.WORK_PHONE
*
* @return the value of CRM_USER.WORK_PHONE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getWorkPhone
()
{
return
workPhone
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.WORK_PHONE
*
* @param workPhone the value for CRM_USER.WORK_PHONE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setWorkPhone
(
String
workPhone
)
{
this
.
workPhone
=
workPhone
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.LAST_LOGIN_TIME
*
* @return the value of CRM_USER.LAST_LOGIN_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Date
getLastLoginTime
()
{
return
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.LAST_LOGIN_TIME
*
* @param lastLoginTime the value for CRM_USER.LAST_LOGIN_TIME
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setLastLoginTime
(
Date
lastLoginTime
)
{
this
.
lastLoginTime
=
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.SECURITY_LEVEL
*
* @return the value of CRM_USER.SECURITY_LEVEL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Long
getSecurityLevel
()
{
return
securityLevel
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.SECURITY_LEVEL
*
* @param securityLevel the value for CRM_USER.SECURITY_LEVEL
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setSecurityLevel
(
Long
securityLevel
)
{
this
.
securityLevel
=
securityLevel
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.TYPE
*
* @return the value of CRM_USER.TYPE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Long
getType
()
{
return
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.TYPE
*
* @param type the value for CRM_USER.TYPE
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setType
(
Long
type
)
{
this
.
type
=
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U01
*
* @return the value of CRM_USER.U01
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU01
()
{
return
u01
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U01
*
* @param u01 the value for CRM_USER.U01
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU01
(
String
u01
)
{
this
.
u01
=
u01
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U02
*
* @return the value of CRM_USER.U02
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU02
()
{
return
u02
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U02
*
* @param u02 the value for CRM_USER.U02
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU02
(
String
u02
)
{
this
.
u02
=
u02
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U03
*
* @return the value of CRM_USER.U03
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU03
()
{
return
u03
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U03
*
* @param u03 the value for CRM_USER.U03
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU03
(
String
u03
)
{
this
.
u03
=
u03
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U04
*
* @return the value of CRM_USER.U04
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU04
()
{
return
u04
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U04
*
* @param u04 the value for CRM_USER.U04
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU04
(
String
u04
)
{
this
.
u04
=
u04
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U05
*
* @return the value of CRM_USER.U05
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU05
()
{
return
u05
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U05
*
* @param u05 the value for CRM_USER.U05
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU05
(
String
u05
)
{
this
.
u05
=
u05
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.U06
*
* @return the value of CRM_USER.U06
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getU06
()
{
return
u06
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.U06
*
* @param u06 the value for CRM_USER.U06
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setU06
(
String
u06
)
{
this
.
u06
=
u06
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column CRM_USER.SUPERIOR_ID
*
* @return the value of CRM_USER.SUPERIOR_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Object
getSuperiorId
()
{
return
superiorId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column CRM_USER.SUPERIOR_ID
*
* @param superiorId the value for CRM_USER.SUPERIOR_ID
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setSuperiorId
(
Object
superiorId
)
{
this
.
superiorId
=
superiorId
;
}
}
\ No newline at end of file
domain/src/main/java/com/haomostudio/SpringMVCProjectTemplate/CrmUserExample.java
0 → 100644
View file @
4b099408
package
com
.
haomostudio
.
SpringMVCProjectTemplate
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
CrmUserExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
CrmUserExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"ID is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"ID is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
String
value
)
{
addCriterion
(
"ID ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
String
value
)
{
addCriterion
(
"ID <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
String
value
)
{
addCriterion
(
"ID >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ID >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
String
value
)
{
addCriterion
(
"ID <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ID <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"ID like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"ID not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"ID in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ID not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ID between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ID not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameIsNull
()
{
addCriterion
(
"USERNAME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameIsNotNull
()
{
addCriterion
(
"USERNAME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameEqualTo
(
String
value
)
{
addCriterion
(
"USERNAME ="
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameNotEqualTo
(
String
value
)
{
addCriterion
(
"USERNAME <>"
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameGreaterThan
(
String
value
)
{
addCriterion
(
"USERNAME >"
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"USERNAME >="
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameLessThan
(
String
value
)
{
addCriterion
(
"USERNAME <"
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"USERNAME <="
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameLike
(
String
value
)
{
addCriterion
(
"USERNAME like"
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameNotLike
(
String
value
)
{
addCriterion
(
"USERNAME not like"
,
value
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameIn
(
List
<
String
>
values
)
{
addCriterion
(
"USERNAME in"
,
values
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"USERNAME not in"
,
values
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"USERNAME between"
,
value1
,
value2
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsernameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"USERNAME not between"
,
value1
,
value2
,
"username"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidIsNull
()
{
addCriterion
(
"LOGINID is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidIsNotNull
()
{
addCriterion
(
"LOGINID is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidEqualTo
(
String
value
)
{
addCriterion
(
"LOGINID ="
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidNotEqualTo
(
String
value
)
{
addCriterion
(
"LOGINID <>"
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidGreaterThan
(
String
value
)
{
addCriterion
(
"LOGINID >"
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"LOGINID >="
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidLessThan
(
String
value
)
{
addCriterion
(
"LOGINID <"
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"LOGINID <="
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidLike
(
String
value
)
{
addCriterion
(
"LOGINID like"
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidNotLike
(
String
value
)
{
addCriterion
(
"LOGINID not like"
,
value
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidIn
(
List
<
String
>
values
)
{
addCriterion
(
"LOGINID in"
,
values
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"LOGINID not in"
,
values
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"LOGINID between"
,
value1
,
value2
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLoginidNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"LOGINID not between"
,
value1
,
value2
,
"loginid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordIsNull
()
{
addCriterion
(
"PASSWORD is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordIsNotNull
()
{
addCriterion
(
"PASSWORD is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordEqualTo
(
String
value
)
{
addCriterion
(
"PASSWORD ="
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordNotEqualTo
(
String
value
)
{
addCriterion
(
"PASSWORD <>"
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordGreaterThan
(
String
value
)
{
addCriterion
(
"PASSWORD >"
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"PASSWORD >="
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordLessThan
(
String
value
)
{
addCriterion
(
"PASSWORD <"
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"PASSWORD <="
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordLike
(
String
value
)
{
addCriterion
(
"PASSWORD like"
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordNotLike
(
String
value
)
{
addCriterion
(
"PASSWORD not like"
,
value
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordIn
(
List
<
String
>
values
)
{
addCriterion
(
"PASSWORD in"
,
values
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"PASSWORD not in"
,
values
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"PASSWORD between"
,
value1
,
value2
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPasswordNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"PASSWORD not between"
,
value1
,
value2
,
"password"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileIsNull
()
{
addCriterion
(
"MOBILE is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileIsNotNull
()
{
addCriterion
(
"MOBILE is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileEqualTo
(
String
value
)
{
addCriterion
(
"MOBILE ="
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileNotEqualTo
(
String
value
)
{
addCriterion
(
"MOBILE <>"
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileGreaterThan
(
String
value
)
{
addCriterion
(
"MOBILE >"
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"MOBILE >="
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileLessThan
(
String
value
)
{
addCriterion
(
"MOBILE <"
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"MOBILE <="
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileLike
(
String
value
)
{
addCriterion
(
"MOBILE like"
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileNotLike
(
String
value
)
{
addCriterion
(
"MOBILE not like"
,
value
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileIn
(
List
<
String
>
values
)
{
addCriterion
(
"MOBILE in"
,
values
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"MOBILE not in"
,
values
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"MOBILE between"
,
value1
,
value2
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMobileNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"MOBILE not between"
,
value1
,
value2
,
"mobile"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIsNull
()
{
addCriterion
(
"EMAIL is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIsNotNull
()
{
addCriterion
(
"EMAIL is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailEqualTo
(
String
value
)
{
addCriterion
(
"EMAIL ="
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailNotEqualTo
(
String
value
)
{
addCriterion
(
"EMAIL <>"
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailGreaterThan
(
String
value
)
{
addCriterion
(
"EMAIL >"
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"EMAIL >="
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailLessThan
(
String
value
)
{
addCriterion
(
"EMAIL <"
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"EMAIL <="
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailLike
(
String
value
)
{
addCriterion
(
"EMAIL like"
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailNotLike
(
String
value
)
{
addCriterion
(
"EMAIL not like"
,
value
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIn
(
List
<
String
>
values
)
{
addCriterion
(
"EMAIL in"
,
values
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"EMAIL not in"
,
values
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"EMAIL between"
,
value1
,
value2
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"EMAIL not between"
,
value1
,
value2
,
"email"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarIsNull
()
{
addCriterion
(
"AVATAR is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarIsNotNull
()
{
addCriterion
(
"AVATAR is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarEqualTo
(
String
value
)
{
addCriterion
(
"AVATAR ="
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarNotEqualTo
(
String
value
)
{
addCriterion
(
"AVATAR <>"
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarGreaterThan
(
String
value
)
{
addCriterion
(
"AVATAR >"
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"AVATAR >="
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarLessThan
(
String
value
)
{
addCriterion
(
"AVATAR <"
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"AVATAR <="
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarLike
(
String
value
)
{
addCriterion
(
"AVATAR like"
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarNotLike
(
String
value
)
{
addCriterion
(
"AVATAR not like"
,
value
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarIn
(
List
<
String
>
values
)
{
addCriterion
(
"AVATAR in"
,
values
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"AVATAR not in"
,
values
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"AVATAR between"
,
value1
,
value2
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAvatarNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"AVATAR not between"
,
value1
,
value2
,
"avatar"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdIsNull
()
{
addCriterion
(
"DEPARTMENT_ID is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdIsNotNull
()
{
addCriterion
(
"DEPARTMENT_ID is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdEqualTo
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID ="
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdNotEqualTo
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID <>"
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdGreaterThan
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID >"
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID >="
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdLessThan
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID <"
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID <="
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdLike
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID like"
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdNotLike
(
String
value
)
{
addCriterion
(
"DEPARTMENT_ID not like"
,
value
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"DEPARTMENT_ID in"
,
values
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"DEPARTMENT_ID not in"
,
values
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"DEPARTMENT_ID between"
,
value1
,
value2
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDepartmentIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"DEPARTMENT_ID not between"
,
value1
,
value2
,
"departmentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualIsNull
()
{
addCriterion
(
"SEXUAL is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualIsNotNull
()
{
addCriterion
(
"SEXUAL is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualEqualTo
(
Long
value
)
{
addCriterion
(
"SEXUAL ="
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualNotEqualTo
(
Long
value
)
{
addCriterion
(
"SEXUAL <>"
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualGreaterThan
(
Long
value
)
{
addCriterion
(
"SEXUAL >"
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"SEXUAL >="
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualLessThan
(
Long
value
)
{
addCriterion
(
"SEXUAL <"
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"SEXUAL <="
,
value
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualIn
(
List
<
Long
>
values
)
{
addCriterion
(
"SEXUAL in"
,
values
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"SEXUAL not in"
,
values
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"SEXUAL between"
,
value1
,
value2
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSexualNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"SEXUAL not between"
,
value1
,
value2
,
"sexual"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdIsNull
()
{
addCriterion
(
"ASSISTANT_MANAGER_ID is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdIsNotNull
()
{
addCriterion
(
"ASSISTANT_MANAGER_ID is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdEqualTo
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID ="
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdNotEqualTo
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID <>"
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdGreaterThan
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID >"
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID >="
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdLessThan
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID <"
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID <="
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdLike
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID like"
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdNotLike
(
String
value
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID not like"
,
value
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID in"
,
values
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID not in"
,
values
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID between"
,
value1
,
value2
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAssistantManagerIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ASSISTANT_MANAGER_ID not between"
,
value1
,
value2
,
"assistantManagerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"CREATE_TIME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"CREATE_TIME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"CREATE_TIME ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"CREATE_TIME <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"CREATE_TIME >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"CREATE_TIME >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"CREATE_TIME <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"CREATE_TIME <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"CREATE_TIME in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"CREATE_TIME not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"CREATE_TIME between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"CREATE_TIME not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeIsNull
()
{
addCriterion
(
"LAST_UPDATE_TIME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeIsNotNull
()
{
addCriterion
(
"LAST_UPDATE_TIME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME ="
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME <>"
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME >"
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME >="
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME <"
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_UPDATE_TIME <="
,
value
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"LAST_UPDATE_TIME in"
,
values
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"LAST_UPDATE_TIME not in"
,
values
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"LAST_UPDATE_TIME between"
,
value1
,
value2
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"LAST_UPDATE_TIME not between"
,
value1
,
value2
,
"lastUpdateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedIsNull
()
{
addCriterion
(
"IS_DISMISSED is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedIsNotNull
()
{
addCriterion
(
"IS_DISMISSED is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedEqualTo
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED ="
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedNotEqualTo
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED <>"
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedGreaterThan
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED >"
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED >="
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedLessThan
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED <"
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"IS_DISMISSED <="
,
value
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedIn
(
List
<
Long
>
values
)
{
addCriterion
(
"IS_DISMISSED in"
,
values
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"IS_DISMISSED not in"
,
values
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"IS_DISMISSED between"
,
value1
,
value2
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDismissedNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"IS_DISMISSED not between"
,
value1
,
value2
,
"isDismissed"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenIsNull
()
{
addCriterion
(
"IS_FORBIDDEN is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenIsNotNull
()
{
addCriterion
(
"IS_FORBIDDEN is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenEqualTo
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN ="
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenNotEqualTo
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN <>"
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenGreaterThan
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN >"
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN >="
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenLessThan
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN <"
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"IS_FORBIDDEN <="
,
value
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenIn
(
List
<
Long
>
values
)
{
addCriterion
(
"IS_FORBIDDEN in"
,
values
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"IS_FORBIDDEN not in"
,
values
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"IS_FORBIDDEN between"
,
value1
,
value2
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsForbiddenNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"IS_FORBIDDEN not between"
,
value1
,
value2
,
"isForbidden"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneIsNull
()
{
addCriterion
(
"WORK_PHONE is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneIsNotNull
()
{
addCriterion
(
"WORK_PHONE is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneEqualTo
(
String
value
)
{
addCriterion
(
"WORK_PHONE ="
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneNotEqualTo
(
String
value
)
{
addCriterion
(
"WORK_PHONE <>"
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneGreaterThan
(
String
value
)
{
addCriterion
(
"WORK_PHONE >"
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"WORK_PHONE >="
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneLessThan
(
String
value
)
{
addCriterion
(
"WORK_PHONE <"
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"WORK_PHONE <="
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneLike
(
String
value
)
{
addCriterion
(
"WORK_PHONE like"
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneNotLike
(
String
value
)
{
addCriterion
(
"WORK_PHONE not like"
,
value
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneIn
(
List
<
String
>
values
)
{
addCriterion
(
"WORK_PHONE in"
,
values
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"WORK_PHONE not in"
,
values
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"WORK_PHONE between"
,
value1
,
value2
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andWorkPhoneNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"WORK_PHONE not between"
,
value1
,
value2
,
"workPhone"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeIsNull
()
{
addCriterion
(
"LAST_LOGIN_TIME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeIsNotNull
()
{
addCriterion
(
"LAST_LOGIN_TIME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME ="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME <>"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME >"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME >="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeLessThan
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME <"
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"LAST_LOGIN_TIME <="
,
value
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"LAST_LOGIN_TIME in"
,
values
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"LAST_LOGIN_TIME not in"
,
values
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"LAST_LOGIN_TIME between"
,
value1
,
value2
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLastLoginTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"LAST_LOGIN_TIME not between"
,
value1
,
value2
,
"lastLoginTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelIsNull
()
{
addCriterion
(
"SECURITY_LEVEL is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelIsNotNull
()
{
addCriterion
(
"SECURITY_LEVEL is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelEqualTo
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL ="
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelNotEqualTo
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL <>"
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelGreaterThan
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL >"
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL >="
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelLessThan
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL <"
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"SECURITY_LEVEL <="
,
value
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelIn
(
List
<
Long
>
values
)
{
addCriterion
(
"SECURITY_LEVEL in"
,
values
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"SECURITY_LEVEL not in"
,
values
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"SECURITY_LEVEL between"
,
value1
,
value2
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSecurityLevelNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"SECURITY_LEVEL not between"
,
value1
,
value2
,
"securityLevel"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"TYPE is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNotNull
()
{
addCriterion
(
"TYPE is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeEqualTo
(
Long
value
)
{
addCriterion
(
"TYPE ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Long
value
)
{
addCriterion
(
"TYPE <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Long
value
)
{
addCriterion
(
"TYPE >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"TYPE >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Long
value
)
{
addCriterion
(
"TYPE <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"TYPE <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Long
>
values
)
{
addCriterion
(
"TYPE in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"TYPE not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"TYPE between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"TYPE not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01IsNull
()
{
addCriterion
(
"U01 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01IsNotNull
()
{
addCriterion
(
"U01 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01EqualTo
(
String
value
)
{
addCriterion
(
"U01 ="
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01NotEqualTo
(
String
value
)
{
addCriterion
(
"U01 <>"
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01GreaterThan
(
String
value
)
{
addCriterion
(
"U01 >"
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U01 >="
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01LessThan
(
String
value
)
{
addCriterion
(
"U01 <"
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U01 <="
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01Like
(
String
value
)
{
addCriterion
(
"U01 like"
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01NotLike
(
String
value
)
{
addCriterion
(
"U01 not like"
,
value
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01In
(
List
<
String
>
values
)
{
addCriterion
(
"U01 in"
,
values
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U01 not in"
,
values
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U01 between"
,
value1
,
value2
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU01NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U01 not between"
,
value1
,
value2
,
"u01"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02IsNull
()
{
addCriterion
(
"U02 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02IsNotNull
()
{
addCriterion
(
"U02 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02EqualTo
(
String
value
)
{
addCriterion
(
"U02 ="
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02NotEqualTo
(
String
value
)
{
addCriterion
(
"U02 <>"
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02GreaterThan
(
String
value
)
{
addCriterion
(
"U02 >"
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U02 >="
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02LessThan
(
String
value
)
{
addCriterion
(
"U02 <"
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U02 <="
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02Like
(
String
value
)
{
addCriterion
(
"U02 like"
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02NotLike
(
String
value
)
{
addCriterion
(
"U02 not like"
,
value
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02In
(
List
<
String
>
values
)
{
addCriterion
(
"U02 in"
,
values
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U02 not in"
,
values
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U02 between"
,
value1
,
value2
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU02NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U02 not between"
,
value1
,
value2
,
"u02"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03IsNull
()
{
addCriterion
(
"U03 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03IsNotNull
()
{
addCriterion
(
"U03 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03EqualTo
(
String
value
)
{
addCriterion
(
"U03 ="
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03NotEqualTo
(
String
value
)
{
addCriterion
(
"U03 <>"
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03GreaterThan
(
String
value
)
{
addCriterion
(
"U03 >"
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U03 >="
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03LessThan
(
String
value
)
{
addCriterion
(
"U03 <"
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U03 <="
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03Like
(
String
value
)
{
addCriterion
(
"U03 like"
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03NotLike
(
String
value
)
{
addCriterion
(
"U03 not like"
,
value
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03In
(
List
<
String
>
values
)
{
addCriterion
(
"U03 in"
,
values
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U03 not in"
,
values
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U03 between"
,
value1
,
value2
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU03NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U03 not between"
,
value1
,
value2
,
"u03"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04IsNull
()
{
addCriterion
(
"U04 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04IsNotNull
()
{
addCriterion
(
"U04 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04EqualTo
(
String
value
)
{
addCriterion
(
"U04 ="
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04NotEqualTo
(
String
value
)
{
addCriterion
(
"U04 <>"
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04GreaterThan
(
String
value
)
{
addCriterion
(
"U04 >"
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U04 >="
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04LessThan
(
String
value
)
{
addCriterion
(
"U04 <"
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U04 <="
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04Like
(
String
value
)
{
addCriterion
(
"U04 like"
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04NotLike
(
String
value
)
{
addCriterion
(
"U04 not like"
,
value
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04In
(
List
<
String
>
values
)
{
addCriterion
(
"U04 in"
,
values
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U04 not in"
,
values
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U04 between"
,
value1
,
value2
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU04NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U04 not between"
,
value1
,
value2
,
"u04"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05IsNull
()
{
addCriterion
(
"U05 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05IsNotNull
()
{
addCriterion
(
"U05 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05EqualTo
(
String
value
)
{
addCriterion
(
"U05 ="
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05NotEqualTo
(
String
value
)
{
addCriterion
(
"U05 <>"
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05GreaterThan
(
String
value
)
{
addCriterion
(
"U05 >"
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U05 >="
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05LessThan
(
String
value
)
{
addCriterion
(
"U05 <"
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U05 <="
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05Like
(
String
value
)
{
addCriterion
(
"U05 like"
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05NotLike
(
String
value
)
{
addCriterion
(
"U05 not like"
,
value
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05In
(
List
<
String
>
values
)
{
addCriterion
(
"U05 in"
,
values
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U05 not in"
,
values
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U05 between"
,
value1
,
value2
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU05NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U05 not between"
,
value1
,
value2
,
"u05"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06IsNull
()
{
addCriterion
(
"U06 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06IsNotNull
()
{
addCriterion
(
"U06 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06EqualTo
(
String
value
)
{
addCriterion
(
"U06 ="
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06NotEqualTo
(
String
value
)
{
addCriterion
(
"U06 <>"
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06GreaterThan
(
String
value
)
{
addCriterion
(
"U06 >"
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U06 >="
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06LessThan
(
String
value
)
{
addCriterion
(
"U06 <"
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"U06 <="
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06Like
(
String
value
)
{
addCriterion
(
"U06 like"
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06NotLike
(
String
value
)
{
addCriterion
(
"U06 not like"
,
value
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06In
(
List
<
String
>
values
)
{
addCriterion
(
"U06 in"
,
values
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"U06 not in"
,
values
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"U06 between"
,
value1
,
value2
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andU06NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"U06 not between"
,
value1
,
value2
,
"u06"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdIsNull
()
{
addCriterion
(
"SUPERIOR_ID is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdIsNotNull
()
{
addCriterion
(
"SUPERIOR_ID is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdEqualTo
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID ="
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdNotEqualTo
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID <>"
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdGreaterThan
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID >"
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdGreaterThanOrEqualTo
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID >="
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdLessThan
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID <"
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdLessThanOrEqualTo
(
Object
value
)
{
addCriterion
(
"SUPERIOR_ID <="
,
value
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdIn
(
List
<
Object
>
values
)
{
addCriterion
(
"SUPERIOR_ID in"
,
values
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdNotIn
(
List
<
Object
>
values
)
{
addCriterion
(
"SUPERIOR_ID not in"
,
values
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdBetween
(
Object
value1
,
Object
value2
)
{
addCriterion
(
"SUPERIOR_ID between"
,
value1
,
value2
,
"superiorId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSuperiorIdNotBetween
(
Object
value1
,
Object
value2
)
{
addCriterion
(
"SUPERIOR_ID not between"
,
value1
,
value2
,
"superiorId"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table CRM_USER
*
* @mbg.generated do_not_delete_during_merge Thu Oct 06 17:59:41 CST 2016
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table CRM_USER
*
* @mbg.generated Thu Oct 06 17:59:41 CST 2016
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
pom.xml
View file @
4b099408
...
...
@@ -453,15 +453,6 @@
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
<version>
1.3.5
</version>
<configuration>
<configurationFile>
${project.basedir}/web/src/main/resources/config/mysqlGeneratorConfig.xml
</configurationFile>
<verbose>
true
</verbose>
<overwrite>
true
</overwrite>
<jdbcDriver>
com.mysql.jdbc.Driver
</jdbcDriver>
<jdbcURL>
jdbc:mysql://127.0.0.1:3306/zhuluoxi
</jdbcURL>
<jdbcUserId>
root
</jdbcUserId>
<jdbcPassword>
123456
</jdbcPassword>
</configuration>
</plugin>
</plugins>
</pluginManagement>
...
...
@@ -472,7 +463,7 @@
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
<version>
1.3.5
</version>
<configuration>
<configurationFile>
${
project.basedir}/web/src/main/resources/config/mysql
GeneratorConfig.xml
</configurationFile>
<configurationFile>
${
basedir}/src/main/resources/mybatis/oracle
GeneratorConfig.xml
</configurationFile>
<verbose>
true
</verbose>
<overwrite>
true
</overwrite>
</configuration>
...
...
src/main/resources/generatorConfig.xml
deleted
100644 → 0
View file @
231c3598
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location=
"/Users/hxgqh/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar"
/>
<context
id=
"testTables"
targetRuntime=
"MyBatis3"
>
<jdbcConnection
driverClass=
"oracle.jdbc.driver.OracleDriver"
connectionURL=
"jdbc:oracle:thin:@bcs.hitevision.com:1521:crmd02"
userId=
"crm"
password=
"sohu2020"
/>
<!-- 指定生成的类型为java类型,避免数据库中number等类型字段 -->
<javaTypeResolver>
<property
name=
"forceBigDecimals"
value=
"false"
/>
</javaTypeResolver>
<!-- 生成model模型,对应的包,存放位置可以指定具体的路径,如/ProjectName/src,也可以使用MAVEN来自动生成 -->
<javaModelGenerator
targetPackage=
"com.haomostudio.model"
targetProject=
"\domain\src"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
</javaModelGenerator>
<!--对应的xml mapper文件 -->
<sqlMapGenerator
targetPackage=
"com.haomostudio.dao"
targetProject=
"\web\src\main\resources\mybatis"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
</sqlMapGenerator>
<!-- 对应的dao接口 -->
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.jacksoft.mybatis.generator.dao"
targetProject=
"\dao\src"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
</javaClientGenerator>
<table
tableName=
"user"
domainObjectName=
"User"
/>
</context>
</generatorConfiguration>
web/src/main/filters/test.properties
View file @
4b099408
jdbc.driverClassName
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://127.0.0.1:3306/crm_dev?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
jdbc.username
=
root
jdbc.password
=
123456
\ No newline at end of file
#jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://127.0.0.1:3306/crm_dev?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
#jdbc.username=root
#
jdbc.password
=
123456
\ No newline at end of file
web/src/main/resources/config/application.properties
View file @
4b099408
#mysql database setting
jdbc.driver
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://10.28.163.192:3306/smartchatNew?useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
knowledge
jdbc.password
=
knowledge
#
jdbc.driver=com.mysql.jdbc.Driver
#
jdbc.url=jdbc:mysql://10.28.163.192:3306/smartchatNew?useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=knowledge
#
jdbc.password=knowledge
#connection pool settings
jdbc.pool.maxIdle
=
10
...
...
web/src/main/resources/mybatis/com/haomostudio/SpringMVCProjectTemplate/CrmUserMapper.xml
0 → 100644
View file @
4b099408
<?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.haomostudio.SpringMVCProjectTemplate.CrmUserMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.haomostudio.SpringMVCProjectTemplate.CrmUser"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
<id
column=
"ID"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"USERNAME"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"LOGINID"
jdbcType=
"VARCHAR"
property=
"loginid"
/>
<result
column=
"PASSWORD"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"MOBILE"
jdbcType=
"VARCHAR"
property=
"mobile"
/>
<result
column=
"EMAIL"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"AVATAR"
jdbcType=
"VARCHAR"
property=
"avatar"
/>
<result
column=
"DEPARTMENT_ID"
jdbcType=
"VARCHAR"
property=
"departmentId"
/>
<result
column=
"SEXUAL"
jdbcType=
"DECIMAL"
property=
"sexual"
/>
<result
column=
"ASSISTANT_MANAGER_ID"
jdbcType=
"VARCHAR"
property=
"assistantManagerId"
/>
<result
column=
"CREATE_TIME"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"LAST_UPDATE_TIME"
jdbcType=
"TIMESTAMP"
property=
"lastUpdateTime"
/>
<result
column=
"IS_DISMISSED"
jdbcType=
"DECIMAL"
property=
"isDismissed"
/>
<result
column=
"IS_FORBIDDEN"
jdbcType=
"DECIMAL"
property=
"isForbidden"
/>
<result
column=
"WORK_PHONE"
jdbcType=
"VARCHAR"
property=
"workPhone"
/>
<result
column=
"LAST_LOGIN_TIME"
jdbcType=
"TIMESTAMP"
property=
"lastLoginTime"
/>
<result
column=
"SECURITY_LEVEL"
jdbcType=
"DECIMAL"
property=
"securityLevel"
/>
<result
column=
"TYPE"
jdbcType=
"DECIMAL"
property=
"type"
/>
<result
column=
"U01"
jdbcType=
"VARCHAR"
property=
"u01"
/>
<result
column=
"U02"
jdbcType=
"VARCHAR"
property=
"u02"
/>
<result
column=
"U03"
jdbcType=
"VARCHAR"
property=
"u03"
/>
<result
column=
"U04"
jdbcType=
"VARCHAR"
property=
"u04"
/>
<result
column=
"U05"
jdbcType=
"VARCHAR"
property=
"u05"
/>
<result
column=
"U06"
jdbcType=
"VARCHAR"
property=
"u06"
/>
<result
column=
"SUPERIOR_ID"
jdbcType=
"OTHER"
property=
"superiorId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
ID, USERNAME, LOGINID, PASSWORD, MOBILE, EMAIL, AVATAR, DEPARTMENT_ID, SEXUAL, ASSISTANT_MANAGER_ID,
CREATE_TIME, LAST_UPDATE_TIME, IS_DISMISSED, IS_FORBIDDEN, WORK_PHONE, LAST_LOGIN_TIME,
SECURITY_LEVEL, TYPE, U01, U02, U03, U04, U05, U06, SUPERIOR_ID
</sql>
<select
id=
"selectByExample"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUserExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CRM_USER
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
select
<include
refid=
"Base_Column_List"
/>
from CRM_USER
where ID = #{id,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
delete from CRM_USER
where ID = #{id,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUserExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
delete from CRM_USER
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUser"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
insert into CRM_USER (ID, USERNAME, LOGINID,
PASSWORD, MOBILE, EMAIL,
AVATAR, DEPARTMENT_ID, SEXUAL,
ASSISTANT_MANAGER_ID, CREATE_TIME, LAST_UPDATE_TIME,
IS_DISMISSED, IS_FORBIDDEN, WORK_PHONE,
LAST_LOGIN_TIME, SECURITY_LEVEL, TYPE,
U01, U02, U03, U04,
U05, U06, SUPERIOR_ID)
values (#{id,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{loginid,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
#{avatar,jdbcType=VARCHAR}, #{departmentId,jdbcType=VARCHAR}, #{sexual,jdbcType=DECIMAL},
#{assistantManagerId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{isDismissed,jdbcType=DECIMAL}, #{isForbidden,jdbcType=DECIMAL}, #{workPhone,jdbcType=VARCHAR},
#{lastLoginTime,jdbcType=TIMESTAMP}, #{securityLevel,jdbcType=DECIMAL}, #{type,jdbcType=DECIMAL},
#{u01,jdbcType=VARCHAR}, #{u02,jdbcType=VARCHAR}, #{u03,jdbcType=VARCHAR}, #{u04,jdbcType=VARCHAR},
#{u05,jdbcType=VARCHAR}, #{u06,jdbcType=VARCHAR}, #{superiorId,jdbcType=OTHER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUser"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
insert into CRM_USER
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
ID,
</if>
<if
test=
"username != null"
>
USERNAME,
</if>
<if
test=
"loginid != null"
>
LOGINID,
</if>
<if
test=
"password != null"
>
PASSWORD,
</if>
<if
test=
"mobile != null"
>
MOBILE,
</if>
<if
test=
"email != null"
>
EMAIL,
</if>
<if
test=
"avatar != null"
>
AVATAR,
</if>
<if
test=
"departmentId != null"
>
DEPARTMENT_ID,
</if>
<if
test=
"sexual != null"
>
SEXUAL,
</if>
<if
test=
"assistantManagerId != null"
>
ASSISTANT_MANAGER_ID,
</if>
<if
test=
"createTime != null"
>
CREATE_TIME,
</if>
<if
test=
"lastUpdateTime != null"
>
LAST_UPDATE_TIME,
</if>
<if
test=
"isDismissed != null"
>
IS_DISMISSED,
</if>
<if
test=
"isForbidden != null"
>
IS_FORBIDDEN,
</if>
<if
test=
"workPhone != null"
>
WORK_PHONE,
</if>
<if
test=
"lastLoginTime != null"
>
LAST_LOGIN_TIME,
</if>
<if
test=
"securityLevel != null"
>
SECURITY_LEVEL,
</if>
<if
test=
"type != null"
>
TYPE,
</if>
<if
test=
"u01 != null"
>
U01,
</if>
<if
test=
"u02 != null"
>
U02,
</if>
<if
test=
"u03 != null"
>
U03,
</if>
<if
test=
"u04 != null"
>
U04,
</if>
<if
test=
"u05 != null"
>
U05,
</if>
<if
test=
"u06 != null"
>
U06,
</if>
<if
test=
"superiorId != null"
>
SUPERIOR_ID,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"username != null"
>
#{username,jdbcType=VARCHAR},
</if>
<if
test=
"loginid != null"
>
#{loginid,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
#{password,jdbcType=VARCHAR},
</if>
<if
test=
"mobile != null"
>
#{mobile,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
#{email,jdbcType=VARCHAR},
</if>
<if
test=
"avatar != null"
>
#{avatar,jdbcType=VARCHAR},
</if>
<if
test=
"departmentId != null"
>
#{departmentId,jdbcType=VARCHAR},
</if>
<if
test=
"sexual != null"
>
#{sexual,jdbcType=DECIMAL},
</if>
<if
test=
"assistantManagerId != null"
>
#{assistantManagerId,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastUpdateTime != null"
>
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDismissed != null"
>
#{isDismissed,jdbcType=DECIMAL},
</if>
<if
test=
"isForbidden != null"
>
#{isForbidden,jdbcType=DECIMAL},
</if>
<if
test=
"workPhone != null"
>
#{workPhone,jdbcType=VARCHAR},
</if>
<if
test=
"lastLoginTime != null"
>
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"securityLevel != null"
>
#{securityLevel,jdbcType=DECIMAL},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=DECIMAL},
</if>
<if
test=
"u01 != null"
>
#{u01,jdbcType=VARCHAR},
</if>
<if
test=
"u02 != null"
>
#{u02,jdbcType=VARCHAR},
</if>
<if
test=
"u03 != null"
>
#{u03,jdbcType=VARCHAR},
</if>
<if
test=
"u04 != null"
>
#{u04,jdbcType=VARCHAR},
</if>
<if
test=
"u05 != null"
>
#{u05,jdbcType=VARCHAR},
</if>
<if
test=
"u06 != null"
>
#{u06,jdbcType=VARCHAR},
</if>
<if
test=
"superiorId != null"
>
#{superiorId,jdbcType=OTHER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUserExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
select count(*) from CRM_USER
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
update CRM_USER
<set>
<if
test=
"record.id != null"
>
ID = #{record.id,jdbcType=VARCHAR},
</if>
<if
test=
"record.username != null"
>
USERNAME = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.loginid != null"
>
LOGINID = #{record.loginid,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
PASSWORD = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
MOBILE = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.email != null"
>
EMAIL = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
AVATAR = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.departmentId != null"
>
DEPARTMENT_ID = #{record.departmentId,jdbcType=VARCHAR},
</if>
<if
test=
"record.sexual != null"
>
SEXUAL = #{record.sexual,jdbcType=DECIMAL},
</if>
<if
test=
"record.assistantManagerId != null"
>
ASSISTANT_MANAGER_ID = #{record.assistantManagerId,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastUpdateTime != null"
>
LAST_UPDATE_TIME = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isDismissed != null"
>
IS_DISMISSED = #{record.isDismissed,jdbcType=DECIMAL},
</if>
<if
test=
"record.isForbidden != null"
>
IS_FORBIDDEN = #{record.isForbidden,jdbcType=DECIMAL},
</if>
<if
test=
"record.workPhone != null"
>
WORK_PHONE = #{record.workPhone,jdbcType=VARCHAR},
</if>
<if
test=
"record.lastLoginTime != null"
>
LAST_LOGIN_TIME = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.securityLevel != null"
>
SECURITY_LEVEL = #{record.securityLevel,jdbcType=DECIMAL},
</if>
<if
test=
"record.type != null"
>
TYPE = #{record.type,jdbcType=DECIMAL},
</if>
<if
test=
"record.u01 != null"
>
U01 = #{record.u01,jdbcType=VARCHAR},
</if>
<if
test=
"record.u02 != null"
>
U02 = #{record.u02,jdbcType=VARCHAR},
</if>
<if
test=
"record.u03 != null"
>
U03 = #{record.u03,jdbcType=VARCHAR},
</if>
<if
test=
"record.u04 != null"
>
U04 = #{record.u04,jdbcType=VARCHAR},
</if>
<if
test=
"record.u05 != null"
>
U05 = #{record.u05,jdbcType=VARCHAR},
</if>
<if
test=
"record.u06 != null"
>
U06 = #{record.u06,jdbcType=VARCHAR},
</if>
<if
test=
"record.superiorId != null"
>
SUPERIOR_ID = #{record.superiorId,jdbcType=OTHER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
update CRM_USER
set ID = #{record.id,jdbcType=VARCHAR},
USERNAME = #{record.username,jdbcType=VARCHAR},
LOGINID = #{record.loginid,jdbcType=VARCHAR},
PASSWORD = #{record.password,jdbcType=VARCHAR},
MOBILE = #{record.mobile,jdbcType=VARCHAR},
EMAIL = #{record.email,jdbcType=VARCHAR},
AVATAR = #{record.avatar,jdbcType=VARCHAR},
DEPARTMENT_ID = #{record.departmentId,jdbcType=VARCHAR},
SEXUAL = #{record.sexual,jdbcType=DECIMAL},
ASSISTANT_MANAGER_ID = #{record.assistantManagerId,jdbcType=VARCHAR},
CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
LAST_UPDATE_TIME = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
IS_DISMISSED = #{record.isDismissed,jdbcType=DECIMAL},
IS_FORBIDDEN = #{record.isForbidden,jdbcType=DECIMAL},
WORK_PHONE = #{record.workPhone,jdbcType=VARCHAR},
LAST_LOGIN_TIME = #{record.lastLoginTime,jdbcType=TIMESTAMP},
SECURITY_LEVEL = #{record.securityLevel,jdbcType=DECIMAL},
TYPE = #{record.type,jdbcType=DECIMAL},
U01 = #{record.u01,jdbcType=VARCHAR},
U02 = #{record.u02,jdbcType=VARCHAR},
U03 = #{record.u03,jdbcType=VARCHAR},
U04 = #{record.u04,jdbcType=VARCHAR},
U05 = #{record.u05,jdbcType=VARCHAR},
U06 = #{record.u06,jdbcType=VARCHAR},
SUPERIOR_ID = #{record.superiorId,jdbcType=OTHER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUser"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
update CRM_USER
<set>
<if
test=
"username != null"
>
USERNAME = #{username,jdbcType=VARCHAR},
</if>
<if
test=
"loginid != null"
>
LOGINID = #{loginid,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
PASSWORD = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"mobile != null"
>
MOBILE = #{mobile,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
EMAIL = #{email,jdbcType=VARCHAR},
</if>
<if
test=
"avatar != null"
>
AVATAR = #{avatar,jdbcType=VARCHAR},
</if>
<if
test=
"departmentId != null"
>
DEPARTMENT_ID = #{departmentId,jdbcType=VARCHAR},
</if>
<if
test=
"sexual != null"
>
SEXUAL = #{sexual,jdbcType=DECIMAL},
</if>
<if
test=
"assistantManagerId != null"
>
ASSISTANT_MANAGER_ID = #{assistantManagerId,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastUpdateTime != null"
>
LAST_UPDATE_TIME = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDismissed != null"
>
IS_DISMISSED = #{isDismissed,jdbcType=DECIMAL},
</if>
<if
test=
"isForbidden != null"
>
IS_FORBIDDEN = #{isForbidden,jdbcType=DECIMAL},
</if>
<if
test=
"workPhone != null"
>
WORK_PHONE = #{workPhone,jdbcType=VARCHAR},
</if>
<if
test=
"lastLoginTime != null"
>
LAST_LOGIN_TIME = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"securityLevel != null"
>
SECURITY_LEVEL = #{securityLevel,jdbcType=DECIMAL},
</if>
<if
test=
"type != null"
>
TYPE = #{type,jdbcType=DECIMAL},
</if>
<if
test=
"u01 != null"
>
U01 = #{u01,jdbcType=VARCHAR},
</if>
<if
test=
"u02 != null"
>
U02 = #{u02,jdbcType=VARCHAR},
</if>
<if
test=
"u03 != null"
>
U03 = #{u03,jdbcType=VARCHAR},
</if>
<if
test=
"u04 != null"
>
U04 = #{u04,jdbcType=VARCHAR},
</if>
<if
test=
"u05 != null"
>
U05 = #{u05,jdbcType=VARCHAR},
</if>
<if
test=
"u06 != null"
>
U06 = #{u06,jdbcType=VARCHAR},
</if>
<if
test=
"superiorId != null"
>
SUPERIOR_ID = #{superiorId,jdbcType=OTHER},
</if>
</set>
where ID = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.haomostudio.SpringMVCProjectTemplate.CrmUser"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Oct 06 17:59:41 CST 2016.
-->
update CRM_USER
set USERNAME = #{username,jdbcType=VARCHAR},
LOGINID = #{loginid,jdbcType=VARCHAR},
PASSWORD = #{password,jdbcType=VARCHAR},
MOBILE = #{mobile,jdbcType=VARCHAR},
EMAIL = #{email,jdbcType=VARCHAR},
AVATAR = #{avatar,jdbcType=VARCHAR},
DEPARTMENT_ID = #{departmentId,jdbcType=VARCHAR},
SEXUAL = #{sexual,jdbcType=DECIMAL},
ASSISTANT_MANAGER_ID = #{assistantManagerId,jdbcType=VARCHAR},
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
LAST_UPDATE_TIME = #{lastUpdateTime,jdbcType=TIMESTAMP},
IS_DISMISSED = #{isDismissed,jdbcType=DECIMAL},
IS_FORBIDDEN = #{isForbidden,jdbcType=DECIMAL},
WORK_PHONE = #{workPhone,jdbcType=VARCHAR},
LAST_LOGIN_TIME = #{lastLoginTime,jdbcType=TIMESTAMP},
SECURITY_LEVEL = #{securityLevel,jdbcType=DECIMAL},
TYPE = #{type,jdbcType=DECIMAL},
U01 = #{u01,jdbcType=VARCHAR},
U02 = #{u02,jdbcType=VARCHAR},
U03 = #{u03,jdbcType=VARCHAR},
U04 = #{u04,jdbcType=VARCHAR},
U05 = #{u05,jdbcType=VARCHAR},
U06 = #{u06,jdbcType=VARCHAR},
SUPERIOR_ID = #{superiorId,jdbcType=OTHER}
where ID = #{id,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
web/src/main/resources/
config
/mysqlGeneratorConfig.xml
→
web/src/main/resources/
mybatis
/mysqlGeneratorConfig.xml
View file @
4b099408
File moved
web/src/main/resources/
config
/oracleGeneratorConfig.xml
→
web/src/main/resources/
mybatis
/oracleGeneratorConfig.xml
View file @
4b099408
...
...
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location=
"/Users/hxgqh/.m2/repository/
mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38
.jar"
/>
<classPathEntry
location=
"/Users/hxgqh/.m2/repository/
com/oracle/ojdbc6/11.2.0.1.0/ojdbc6-11.2.0.1.0
.jar"
/>
<context
id=
"testTables"
targetRuntime=
"MyBatis3"
>
<jdbcConnection
driverClass=
"oracle.jdbc.driver.OracleDriver"
...
...
@@ -19,29 +19,28 @@
</javaTypeResolver>
<!-- 生成model模型,对应的包,存放位置可以指定具体的路径,如/ProjectName/src,也可以使用MAVEN来自动生成 -->
<javaModelGenerator
targetPackage=
"com.haomostudio.
model
"
targetProject=
"
\domain\src
"
>
<javaModelGenerator
targetPackage=
"com.haomostudio.
SpringMVCProjectTemplate
"
targetProject=
"
domain/src/main/java/
"
>
<property
name=
"enableSubPackages"
value=
"
tru
e"
/>
value=
"
fals
e"
/>
</javaModelGenerator>
<!--对应的xml mapper文件 -->
<sqlMapGenerator
targetPackage=
"com.haomostudio.
dao
"
targetProject=
"
\web\src\main\resources\mybatis
"
>
<sqlMapGenerator
targetPackage=
"com.haomostudio.
SpringMVCProjectTemplate
"
targetProject=
"
web/src/main/resources/mybatis/
"
>
<property
name=
"enableSubPackages"
value=
"true"
/>
</sqlMapGenerator>
<!-- 对应的dao接口 -->
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.
jacksoft.mybatis.generator.dao
"
targetProject=
"
\dao\src
"
>
targetPackage=
"com.
haomostudio.SpringMVCProjectTemplate
"
targetProject=
"
dao/src/main/java/
"
>
<property
name=
"enableSubPackages"
value=
"
tru
e"
/>
value=
"
fals
e"
/>
</javaClientGenerator>
<table
tableName=
"user"
domainObjectName=
"User"
/>
<table
tableName=
"crm_user"
domainObjectName=
"CrmUser"
/>
</context>
</generatorConfiguration>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment