Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8eb91097
authored
Apr 25, 2021
by
zhoujinghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
生成文件加入
1 parent
6c1ebe95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
841 additions
and
0 deletions
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/mapper/CenterRoleMapper.java
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/CenterRole.java
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/CenterRoleExample.java
nafmii-mbg/src/main/resources/org/nafmii/nafmiimbg/mapper/CenterRoleMapper.xml
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/mapper/CenterRoleMapper.java
0 → 100644
View file @
8eb9109
package
org
.
nafmii
.
nafmiimbg
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.nafmii.nafmiimbg.model.CenterRole
;
import
org.nafmii.nafmiimbg.model.CenterRoleExample
;
public
interface
CenterRoleMapper
{
long
countByExample
(
CenterRoleExample
example
);
int
deleteByExample
(
CenterRoleExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
CenterRole
record
);
int
insertSelective
(
CenterRole
record
);
List
<
CenterRole
>
selectByExample
(
CenterRoleExample
example
);
CenterRole
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
CenterRole
record
,
@Param
(
"example"
)
CenterRoleExample
example
);
int
updateByExample
(
@Param
(
"record"
)
CenterRole
record
,
@Param
(
"example"
)
CenterRoleExample
example
);
int
updateByPrimaryKeySelective
(
CenterRole
record
);
int
updateByPrimaryKey
(
CenterRole
record
);
}
\ No newline at end of file
\ No newline at end of file
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/CenterRole.java
0 → 100644
View file @
8eb9109
package
org
.
nafmii
.
nafmiimbg
.
model
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
CenterRole
implements
Serializable
{
@ApiModelProperty
(
value
=
"主键"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"角色名称"
)
private
String
rName
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
creatTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"启用禁用 0 启用 1禁用"
)
private
String
isEnable
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getrName
()
{
return
rName
;
}
public
void
setrName
(
String
rName
)
{
this
.
rName
=
rName
;
}
public
Date
getCreatTime
()
{
return
creatTime
;
}
public
void
setCreatTime
(
Date
creatTime
)
{
this
.
creatTime
=
creatTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
String
getIsEnable
()
{
return
isEnable
;
}
public
void
setIsEnable
(
String
isEnable
)
{
this
.
isEnable
=
isEnable
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", rName="
).
append
(
rName
);
sb
.
append
(
", creatTime="
).
append
(
creatTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", isEnable="
).
append
(
isEnable
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
\ No newline at end of file
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/CenterRoleExample.java
0 → 100644
View file @
8eb9109
package
org
.
nafmii
.
nafmiimbg
.
model
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
CenterRoleExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
CenterRoleExample
()
{
oredCriteria
=
new
ArrayList
<>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<>();
}
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
(
Long
value
)
{
addCriterion
(
"ID ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"ID <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"ID >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"ID >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"ID <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"ID <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"ID in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"ID not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"ID between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"ID not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameIsNull
()
{
addCriterion
(
"R_NAME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameIsNotNull
()
{
addCriterion
(
"R_NAME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameEqualTo
(
String
value
)
{
addCriterion
(
"R_NAME ="
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameNotEqualTo
(
String
value
)
{
addCriterion
(
"R_NAME <>"
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameGreaterThan
(
String
value
)
{
addCriterion
(
"R_NAME >"
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"R_NAME >="
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameLessThan
(
String
value
)
{
addCriterion
(
"R_NAME <"
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"R_NAME <="
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameLike
(
String
value
)
{
addCriterion
(
"R_NAME like"
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameNotLike
(
String
value
)
{
addCriterion
(
"R_NAME not like"
,
value
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"R_NAME in"
,
values
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"R_NAME not in"
,
values
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"R_NAME between"
,
value1
,
value2
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"R_NAME not between"
,
value1
,
value2
,
"rName"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeIsNull
()
{
addCriterion
(
"CREAT_TIME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeIsNotNull
()
{
addCriterion
(
"CREAT_TIME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeEqualTo
(
Date
value
)
{
addCriterion
(
"CREAT_TIME ="
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"CREAT_TIME <>"
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"CREAT_TIME >"
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"CREAT_TIME >="
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeLessThan
(
Date
value
)
{
addCriterion
(
"CREAT_TIME <"
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"CREAT_TIME <="
,
value
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"CREAT_TIME in"
,
values
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"CREAT_TIME not in"
,
values
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"CREAT_TIME between"
,
value1
,
value2
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"CREAT_TIME not between"
,
value1
,
value2
,
"creatTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"UPDATE_TIME is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"UPDATE_TIME is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"UPDATE_TIME <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"UPDATE_TIME in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"UPDATE_TIME not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"UPDATE_TIME between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"UPDATE_TIME not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableIsNull
()
{
addCriterion
(
"IS_ENABLE is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableIsNotNull
()
{
addCriterion
(
"IS_ENABLE is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableEqualTo
(
String
value
)
{
addCriterion
(
"IS_ENABLE ="
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableNotEqualTo
(
String
value
)
{
addCriterion
(
"IS_ENABLE <>"
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableGreaterThan
(
String
value
)
{
addCriterion
(
"IS_ENABLE >"
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"IS_ENABLE >="
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableLessThan
(
String
value
)
{
addCriterion
(
"IS_ENABLE <"
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"IS_ENABLE <="
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableLike
(
String
value
)
{
addCriterion
(
"IS_ENABLE like"
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableNotLike
(
String
value
)
{
addCriterion
(
"IS_ENABLE not like"
,
value
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableIn
(
List
<
String
>
values
)
{
addCriterion
(
"IS_ENABLE in"
,
values
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"IS_ENABLE not in"
,
values
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"IS_ENABLE between"
,
value1
,
value2
,
"isEnable"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsEnableNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"IS_ENABLE not between"
,
value1
,
value2
,
"isEnable"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
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
\ No newline at end of file
nafmii-mbg/src/main/resources/org/nafmii/nafmiimbg/mapper/CenterRoleMapper.xml
0 → 100644
View file @
8eb9109
<?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=
"org.nafmii.nafmiimbg.mapper.CenterRoleMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"org.nafmii.nafmiimbg.model.CenterRole"
>
<id
column=
"ID"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"R_NAME"
jdbcType=
"VARCHAR"
property=
"rName"
/>
<result
column=
"CREAT_TIME"
jdbcType=
"TIMESTAMP"
property=
"creatTime"
/>
<result
column=
"UPDATE_TIME"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"IS_ENABLE"
jdbcType=
"VARCHAR"
property=
"isEnable"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<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"
>
<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"
>
ID, R_NAME, CREAT_TIME, UPDATE_TIME, IS_ENABLE
</sql>
<select
id=
"selectByExample"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRoleExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CENTER_ROLE
<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.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from CENTER_ROLE
where ID = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from CENTER_ROLE
where ID = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRoleExample"
>
delete from CENTER_ROLE
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRole"
>
insert into CENTER_ROLE (ID, R_NAME, CREAT_TIME,
UPDATE_TIME, IS_ENABLE)
values (#{id,jdbcType=BIGINT}, #{rName,jdbcType=VARCHAR}, #{creatTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{isEnable,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRole"
>
insert into CENTER_ROLE
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
ID,
</if>
<if
test=
"rName != null"
>
R_NAME,
</if>
<if
test=
"creatTime != null"
>
CREAT_TIME,
</if>
<if
test=
"updateTime != null"
>
UPDATE_TIME,
</if>
<if
test=
"isEnable != null"
>
IS_ENABLE,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"rName != null"
>
#{rName,jdbcType=VARCHAR},
</if>
<if
test=
"creatTime != null"
>
#{creatTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isEnable != null"
>
#{isEnable,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRoleExample"
resultType=
"java.lang.Long"
>
select count(*) from CENTER_ROLE
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update CENTER_ROLE
<set>
<if
test=
"record.id != null"
>
ID = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.rName != null"
>
R_NAME = #{record.rName,jdbcType=VARCHAR},
</if>
<if
test=
"record.creatTime != null"
>
CREAT_TIME = #{record.creatTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isEnable != null"
>
IS_ENABLE = #{record.isEnable,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update CENTER_ROLE
set ID = #{record.id,jdbcType=BIGINT},
R_NAME = #{record.rName,jdbcType=VARCHAR},
CREAT_TIME = #{record.creatTime,jdbcType=TIMESTAMP},
UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
IS_ENABLE = #{record.isEnable,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRole"
>
update CENTER_ROLE
<set>
<if
test=
"rName != null"
>
R_NAME = #{rName,jdbcType=VARCHAR},
</if>
<if
test=
"creatTime != null"
>
CREAT_TIME = #{creatTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isEnable != null"
>
IS_ENABLE = #{isEnable,jdbcType=VARCHAR},
</if>
</set>
where ID = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"org.nafmii.nafmiimbg.model.CenterRole"
>
update CENTER_ROLE
set R_NAME = #{rName,jdbcType=VARCHAR},
CREAT_TIME = #{creatTime,jdbcType=TIMESTAMP},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
IS_ENABLE = #{isEnable,jdbcType=VARCHAR}
where ID = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment