Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
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
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
yichengstreet
yichengstreet-be
Commits
a447de02
Commit
a447de02
authored
Mar 05, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'main'
Dev lb See merge request
!16
parents
c07f601d
5eeca148
Pipeline
#142886
passed with stages
in 4 minutes
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2153 additions
and
0 deletions
+2153
-0
LabelsController.java
...java/com/ruoyi/web/controller/other/LabelsController.java
+114
-0
Labels.java
...m/src/main/java/com/ruoyi/system/domain/other/Labels.java
+226
-0
LabelsExample.java
...ain/java/com/ruoyi/system/domain/other/LabelsExample.java
+1044
-0
LabelsVO.java
.../main/java/com/ruoyi/system/domain/other/vo/LabelsVO.java
+54
-0
LabelsMapper.java
...main/java/com/ruoyi/system/mapper/other/LabelsMapper.java
+32
-0
LabelsFacadeService.java
...a/com/ruoyi/system/service/other/LabelsFacadeService.java
+261
-0
LabelsService.java
...in/java/com/ruoyi/system/service/other/LabelsService.java
+21
-0
LabelsServiceImpl.java
...om/ruoyi/system/service/other/impl/LabelsServiceImpl.java
+82
-0
LabelsMapper.xml
...i-system/src/main/resources/mapper/other/LabelsMapper.xml
+319
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/other/LabelsController.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
web
.
controller
.
other
;
import
com.alibaba.fastjson2.JSON
;
import
com.github.pagehelper.PageHelper
;
import
com.ruoyi.common.annotation.Anonymous
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.system.domain.other.Labels
;
import
com.ruoyi.system.domain.other.LabelsExample
;
import
com.ruoyi.system.domain.other.vo.LabelsVO
;
import
com.ruoyi.system.service.other.LabelsFacadeService
;
import
com.ruoyi.system.service.other.LabelsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* @Auther: hxc
* @Date: 2019/6/18 0028 14:09
* @Description: 数据字典
*/
@Api
(
tags
=
"基本配置 - 数据字典"
)
@RestController
@RequestMapping
(
"/api/labels"
)
public
class
LabelsController
extends
BaseController
{
@Autowired
private
LabelsFacadeService
commonService
;
@Autowired
private
LabelsService
bsCommonService
;
@ApiOperation
(
"列表"
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
TableDataInfo
getCommons
(
@RequestBody
LabelsVO
bsCommonVO
)
{
PageHelper
.
startPage
(
bsCommonVO
.
getPageNum
(),
bsCommonVO
.
getPageSize
());
LabelsExample
example
=
new
LabelsExample
();
LabelsExample
.
Criteria
criteria
=
example
.
createCriteria
();
if
(
StringUtils
.
isNotEmpty
(
bsCommonVO
.
getParentId
()))
{
criteria
.
andParentIdEqualTo
(
bsCommonVO
.
getParentId
());
}
example
.
setOrderByClause
(
" sort + 0 asc "
);
List
<
Labels
>
list
=
bsCommonService
.
selectByExample
(
example
);
return
getDataTable
(
list
);
}
@ApiOperation
(
"删除"
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
DELETE
)
@ResponseBody
public
String
delete
(
@RequestBody
Labels
body
)
{
try
{
return
commonService
.
commit
(
body
,
"delete"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
500
,
"服务器内部错误"
));
}
}
@ApiOperation
(
"创建"
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
String
insert
(
@RequestBody
Labels
body
)
{
try
{
return
commonService
.
commit
(
body
,
"insert"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
500
,
"服务器内部错误"
));
}
}
@ApiOperation
(
"更新"
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
PATCH
)
@ResponseBody
public
String
update
(
@RequestBody
Labels
body
)
{
try
{
return
commonService
.
commit
(
body
,
"update"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
500
,
"服务器内部错误"
));
}
}
@ApiOperation
(
"树结构"
)
@RequestMapping
(
value
=
"/getTreeNode"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
AjaxResult
getTreeNode
(
@RequestBody
LabelsVO
bsCommonVO
)
{
try
{
return
commonService
.
getTreeNode
(
bsCommonVO
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
AjaxResult
.
error
(
500
,
"服务器内部错误"
);
}
}
@Anonymous
@ApiOperation
(
"获取网格列表"
)
@RequestMapping
(
value
=
"/getWgdxList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
String
getWgdxList
(
@RequestParam
(
name
=
"code"
)
String
code
)
{
try
{
List
<
Labels
>
wgdxList
=
bsCommonService
.
getWgdxList
(
code
);
return
JSON
.
toJSONString
(
AjaxResult
.
success
(
wgdxList
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
500
,
"服务器内部错误"
));
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/Labels.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
domain
.
other
;
import
java.io.Serializable
;
public
class
Labels
implements
Serializable
{
/**
* ID
*
* @mbg.generated
*/
private
String
id
;
private
String
code
;
/**
* 字段名
*
* @mbg.generated
*/
private
String
name
;
/**
* 描述
* 若是选人,这里是names
* @mbg.generated
*/
private
String
description
;
/**
* 父节点
*
* @mbg.generated
*/
private
String
parentId
;
/**
* 是否有效 0:无效 1:有效
*
* @mbg.generated
*/
private
String
isValid
;
/**
* 排序
*
* @mbg.generated
*/
private
String
sort
;
//若是选人,这里是ids
private
String
ylzd1
;
private
String
ylzd2
;
private
String
ylzd3
;
private
String
ylzd4
;
private
String
ylzd5
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getIsValid
()
{
return
isValid
;
}
public
void
setIsValid
(
String
isValid
)
{
this
.
isValid
=
isValid
;
}
public
String
getSort
()
{
return
sort
;
}
public
void
setSort
(
String
sort
)
{
this
.
sort
=
sort
;
}
public
String
getYlzd1
()
{
return
ylzd1
;
}
public
void
setYlzd1
(
String
ylzd1
)
{
this
.
ylzd1
=
ylzd1
;
}
public
String
getYlzd2
()
{
return
ylzd2
;
}
public
void
setYlzd2
(
String
ylzd2
)
{
this
.
ylzd2
=
ylzd2
;
}
public
String
getYlzd3
()
{
return
ylzd3
;
}
public
void
setYlzd3
(
String
ylzd3
)
{
this
.
ylzd3
=
ylzd3
;
}
public
String
getYlzd4
()
{
return
ylzd4
;
}
public
void
setYlzd4
(
String
ylzd4
)
{
this
.
ylzd4
=
ylzd4
;
}
public
String
getYlzd5
()
{
return
ylzd5
;
}
public
void
setYlzd5
(
String
ylzd5
)
{
this
.
ylzd5
=
ylzd5
;
}
@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
(
", code="
).
append
(
code
);
sb
.
append
(
", name="
).
append
(
name
);
sb
.
append
(
", description="
).
append
(
description
);
sb
.
append
(
", parentId="
).
append
(
parentId
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", sort="
).
append
(
sort
);
sb
.
append
(
", ylzd1="
).
append
(
ylzd1
);
sb
.
append
(
", ylzd2="
).
append
(
ylzd2
);
sb
.
append
(
", ylzd3="
).
append
(
ylzd3
);
sb
.
append
(
", ylzd4="
).
append
(
ylzd4
);
sb
.
append
(
", ylzd5="
).
append
(
ylzd5
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
BsCommon
other
=
(
BsCommon
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getCode
()
==
null
?
other
.
getCode
()
==
null
:
this
.
getCode
().
equals
(
other
.
getCode
()))
&&
(
this
.
getName
()
==
null
?
other
.
getName
()
==
null
:
this
.
getName
().
equals
(
other
.
getName
()))
&&
(
this
.
getDescription
()
==
null
?
other
.
getDescription
()
==
null
:
this
.
getDescription
().
equals
(
other
.
getDescription
()))
&&
(
this
.
getParentId
()
==
null
?
other
.
getParentId
()
==
null
:
this
.
getParentId
().
equals
(
other
.
getParentId
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()))
&&
(
this
.
getSort
()
==
null
?
other
.
getSort
()
==
null
:
this
.
getSort
().
equals
(
other
.
getSort
()))
&&
(
this
.
getYlzd1
()
==
null
?
other
.
getYlzd1
()
==
null
:
this
.
getYlzd1
().
equals
(
other
.
getYlzd1
()))
&&
(
this
.
getYlzd2
()
==
null
?
other
.
getYlzd2
()
==
null
:
this
.
getYlzd2
().
equals
(
other
.
getYlzd2
()))
&&
(
this
.
getYlzd3
()
==
null
?
other
.
getYlzd3
()
==
null
:
this
.
getYlzd3
().
equals
(
other
.
getYlzd3
()))
&&
(
this
.
getYlzd4
()
==
null
?
other
.
getYlzd4
()
==
null
:
this
.
getYlzd4
().
equals
(
other
.
getYlzd4
()))
&&
(
this
.
getYlzd5
()
==
null
?
other
.
getYlzd5
()
==
null
:
this
.
getYlzd5
().
equals
(
other
.
getYlzd5
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getCode
()
==
null
)
?
0
:
getCode
().
hashCode
());
result
=
prime
*
result
+
((
getName
()
==
null
)
?
0
:
getName
().
hashCode
());
result
=
prime
*
result
+
((
getDescription
()
==
null
)
?
0
:
getDescription
().
hashCode
());
result
=
prime
*
result
+
((
getParentId
()
==
null
)
?
0
:
getParentId
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getSort
()
==
null
)
?
0
:
getSort
().
hashCode
());
result
=
prime
*
result
+
((
getYlzd1
()
==
null
)
?
0
:
getYlzd1
().
hashCode
());
result
=
prime
*
result
+
((
getYlzd2
()
==
null
)
?
0
:
getYlzd2
().
hashCode
());
result
=
prime
*
result
+
((
getYlzd3
()
==
null
)
?
0
:
getYlzd3
().
hashCode
());
result
=
prime
*
result
+
((
getYlzd4
()
==
null
)
?
0
:
getYlzd4
().
hashCode
());
result
=
prime
*
result
+
((
getYlzd5
()
==
null
)
?
0
:
getYlzd5
().
hashCode
());
return
result
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/LabelsExample.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
domain
.
other
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
LabelsExample
implements
Serializable
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
private
static
final
long
serialVersionUID
=
1L
;
public
LabelsExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
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
implements
Serializable
{
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
andCodeIsNull
()
{
addCriterion
(
"code is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeIsNotNull
()
{
addCriterion
(
"code is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeEqualTo
(
String
value
)
{
addCriterion
(
"code ="
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeNotEqualTo
(
String
value
)
{
addCriterion
(
"code <>"
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeGreaterThan
(
String
value
)
{
addCriterion
(
"code >"
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"code >="
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeLessThan
(
String
value
)
{
addCriterion
(
"code <"
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"code <="
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeLike
(
String
value
)
{
addCriterion
(
"code like"
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeNotLike
(
String
value
)
{
addCriterion
(
"code not like"
,
value
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeIn
(
List
<
String
>
values
)
{
addCriterion
(
"code in"
,
values
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"code not in"
,
values
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"code between"
,
value1
,
value2
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCodeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"code not between"
,
value1
,
value2
,
"code"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNull
()
{
addCriterion
(
"name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNotNull
()
{
addCriterion
(
"name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameEqualTo
(
String
value
)
{
addCriterion
(
"name ="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotEqualTo
(
String
value
)
{
addCriterion
(
"name <>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThan
(
String
value
)
{
addCriterion
(
"name >"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"name >="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThan
(
String
value
)
{
addCriterion
(
"name <"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"name <="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLike
(
String
value
)
{
addCriterion
(
"name like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotLike
(
String
value
)
{
addCriterion
(
"name not like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"name in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"name not in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"name between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"name not between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionIsNull
()
{
addCriterion
(
"description is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionIsNotNull
()
{
addCriterion
(
"description is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionEqualTo
(
String
value
)
{
addCriterion
(
"description ="
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionNotEqualTo
(
String
value
)
{
addCriterion
(
"description <>"
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionGreaterThan
(
String
value
)
{
addCriterion
(
"description >"
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"description >="
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionLessThan
(
String
value
)
{
addCriterion
(
"description <"
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"description <="
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionLike
(
String
value
)
{
addCriterion
(
"description like"
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionNotLike
(
String
value
)
{
addCriterion
(
"description not like"
,
value
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionIn
(
List
<
String
>
values
)
{
addCriterion
(
"description in"
,
values
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"description not in"
,
values
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"description between"
,
value1
,
value2
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDescriptionNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"description not between"
,
value1
,
value2
,
"description"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIsNull
()
{
addCriterion
(
"parent_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIsNotNull
()
{
addCriterion
(
"parent_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdEqualTo
(
String
value
)
{
addCriterion
(
"parent_id ="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotEqualTo
(
String
value
)
{
addCriterion
(
"parent_id <>"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdGreaterThan
(
String
value
)
{
addCriterion
(
"parent_id >"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"parent_id >="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdLessThan
(
String
value
)
{
addCriterion
(
"parent_id <"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"parent_id <="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdLike
(
String
value
)
{
addCriterion
(
"parent_id like"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotLike
(
String
value
)
{
addCriterion
(
"parent_id not like"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"parent_id in"
,
values
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"parent_id not in"
,
values
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"parent_id between"
,
value1
,
value2
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"parent_id not between"
,
value1
,
value2
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
String
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
String
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
String
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
String
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLike
(
String
value
)
{
addCriterion
(
"is_valid like"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotLike
(
String
value
)
{
addCriterion
(
"is_valid not like"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
String
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortIsNull
()
{
addCriterion
(
"sort is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortIsNotNull
()
{
addCriterion
(
"sort is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortEqualTo
(
String
value
)
{
addCriterion
(
"sort ="
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortNotEqualTo
(
String
value
)
{
addCriterion
(
"sort <>"
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortGreaterThan
(
String
value
)
{
addCriterion
(
"sort >"
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sort >="
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortLessThan
(
String
value
)
{
addCriterion
(
"sort <"
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"sort <="
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortLike
(
String
value
)
{
addCriterion
(
"sort like"
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortNotLike
(
String
value
)
{
addCriterion
(
"sort not like"
,
value
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortIn
(
List
<
String
>
values
)
{
addCriterion
(
"sort in"
,
values
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"sort not in"
,
values
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"sort between"
,
value1
,
value2
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSortNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"sort not between"
,
value1
,
value2
,
"sort"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1IsNull
()
{
addCriterion
(
"ylzd1 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1IsNotNull
()
{
addCriterion
(
"ylzd1 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1EqualTo
(
String
value
)
{
addCriterion
(
"ylzd1 ="
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1NotEqualTo
(
String
value
)
{
addCriterion
(
"ylzd1 <>"
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1GreaterThan
(
String
value
)
{
addCriterion
(
"ylzd1 >"
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd1 >="
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1LessThan
(
String
value
)
{
addCriterion
(
"ylzd1 <"
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd1 <="
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1Like
(
String
value
)
{
addCriterion
(
"ylzd1 like"
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1NotLike
(
String
value
)
{
addCriterion
(
"ylzd1 not like"
,
value
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1In
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd1 in"
,
values
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd1 not in"
,
values
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd1 between"
,
value1
,
value2
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd1NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd1 not between"
,
value1
,
value2
,
"ylzd1"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2IsNull
()
{
addCriterion
(
"ylzd2 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2IsNotNull
()
{
addCriterion
(
"ylzd2 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2EqualTo
(
String
value
)
{
addCriterion
(
"ylzd2 ="
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2NotEqualTo
(
String
value
)
{
addCriterion
(
"ylzd2 <>"
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2GreaterThan
(
String
value
)
{
addCriterion
(
"ylzd2 >"
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd2 >="
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2LessThan
(
String
value
)
{
addCriterion
(
"ylzd2 <"
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd2 <="
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2Like
(
String
value
)
{
addCriterion
(
"ylzd2 like"
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2NotLike
(
String
value
)
{
addCriterion
(
"ylzd2 not like"
,
value
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2In
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd2 in"
,
values
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd2 not in"
,
values
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd2 between"
,
value1
,
value2
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd2NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd2 not between"
,
value1
,
value2
,
"ylzd2"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3IsNull
()
{
addCriterion
(
"ylzd3 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3IsNotNull
()
{
addCriterion
(
"ylzd3 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3EqualTo
(
String
value
)
{
addCriterion
(
"ylzd3 ="
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3NotEqualTo
(
String
value
)
{
addCriterion
(
"ylzd3 <>"
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3GreaterThan
(
String
value
)
{
addCriterion
(
"ylzd3 >"
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd3 >="
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3LessThan
(
String
value
)
{
addCriterion
(
"ylzd3 <"
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd3 <="
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3Like
(
String
value
)
{
addCriterion
(
"ylzd3 like"
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3NotLike
(
String
value
)
{
addCriterion
(
"ylzd3 not like"
,
value
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3In
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd3 in"
,
values
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd3 not in"
,
values
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd3 between"
,
value1
,
value2
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd3NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd3 not between"
,
value1
,
value2
,
"ylzd3"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4IsNull
()
{
addCriterion
(
"ylzd4 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4IsNotNull
()
{
addCriterion
(
"ylzd4 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4EqualTo
(
String
value
)
{
addCriterion
(
"ylzd4 ="
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4NotEqualTo
(
String
value
)
{
addCriterion
(
"ylzd4 <>"
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4GreaterThan
(
String
value
)
{
addCriterion
(
"ylzd4 >"
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd4 >="
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4LessThan
(
String
value
)
{
addCriterion
(
"ylzd4 <"
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd4 <="
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4Like
(
String
value
)
{
addCriterion
(
"ylzd4 like"
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4NotLike
(
String
value
)
{
addCriterion
(
"ylzd4 not like"
,
value
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4In
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd4 in"
,
values
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd4 not in"
,
values
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd4 between"
,
value1
,
value2
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd4NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd4 not between"
,
value1
,
value2
,
"ylzd4"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5IsNull
()
{
addCriterion
(
"ylzd5 is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5IsNotNull
()
{
addCriterion
(
"ylzd5 is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5EqualTo
(
String
value
)
{
addCriterion
(
"ylzd5 ="
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5NotEqualTo
(
String
value
)
{
addCriterion
(
"ylzd5 <>"
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5GreaterThan
(
String
value
)
{
addCriterion
(
"ylzd5 >"
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd5 >="
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5LessThan
(
String
value
)
{
addCriterion
(
"ylzd5 <"
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"ylzd5 <="
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5Like
(
String
value
)
{
addCriterion
(
"ylzd5 like"
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5NotLike
(
String
value
)
{
addCriterion
(
"ylzd5 not like"
,
value
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5In
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd5 in"
,
values
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"ylzd5 not in"
,
values
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd5 between"
,
value1
,
value2
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
public
Criteria
andYlzd5NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"ylzd5 not between"
,
value1
,
value2
,
"ylzd5"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
implements
Serializable
{
protected
Criteria
()
{
super
();
}
}
public
static
class
Criterion
implements
Serializable
{
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
);
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/other/vo/LabelsVO.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
domain
.
other
.
vo
;
/**
* @Auther: hxc
* @Date: 2019/6/18 0018 15:46
* @Description:
*/
public
class
LabelsVO
{
private
String
Id
;
private
String
parentId
;
private
String
code
;
private
Integer
pageNum
;
private
Integer
pageSize
;
public
String
getId
()
{
return
Id
;
}
public
void
setId
(
String
id
)
{
Id
=
id
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
Integer
getPageNum
()
{
return
pageNum
;
}
public
void
setPageNum
(
Integer
pageNum
)
{
this
.
pageNum
=
pageNum
;
}
public
Integer
getPageSize
()
{
return
pageSize
;
}
public
void
setPageSize
(
Integer
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/other/LabelsMapper.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
mapper
.
other
;
import
com.ruoyi.system.domain.other.Labels
;
import
com.ruoyi.system.domain.other.LabelsExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
LabelsMapper
{
long
countByExample
(
LabelsExample
example
);
int
deleteByExample
(
LabelsExample
example
);
int
deleteByPrimaryKey
(
String
id
);
int
insert
(
Labels
record
);
int
insertSelective
(
Labels
record
);
Labels
selectByPrimaryKey
(
String
id
);
List
<
Labels
>
selectByExample
(
LabelsExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
Labels
record
,
@Param
(
"example"
)
LabelsExample
example
);
int
updateByPrimaryKeySelective
(
Labels
record
);
int
updateByExample
(
@Param
(
"record"
)
Labels
record
,
@Param
(
"example"
)
LabelsExample
example
);
List
<
Labels
>
getWgdxList
(
String
code
);
}
\ No newline at end of file
ruoyi-system/src/main/java/com/ruoyi/system/service/other/LabelsFacadeService.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
service
.
other
;
import
com.alibaba.fastjson2.JSON
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.system.domain.other.Labels
;
import
com.ruoyi.system.domain.other.LabelsExample
;
import
com.ruoyi.system.domain.other.vo.LabelsVO
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
java.lang.reflect.Method
;
import
java.util.*
;
/**
* @Auther: hxc
* @Date: 2019/6/18 0018 09:23
* @Description: 数据字典
*/
@Component
public
class
LabelsFacadeService
{
@Autowired
private
LabelsService
bsCommonService
;
public
String
commit
(
Labels
body
,
String
method
)
{
try
{
AjaxResult
result
=
new
AjaxResult
();
Method
methodCheck
=
null
;
try
{
methodCheck
=
this
.
getClass
().
getMethod
(
method
+
"Pre"
,
body
.
getClass
(),
result
.
getClass
());
}
catch
(
Exception
e
)
{
methodCheck
=
null
;
}
if
(
null
!=
methodCheck
)
{
Object
ret
=
methodCheck
.
invoke
(
this
,
body
,
result
);
if
((
ret
instanceof
Boolean
)
&&
!(
boolean
)
ret
)
{
return
JSON
.
toJSONString
(
result
);
}
}
Method
methodCommit
=
null
;
try
{
methodCommit
=
this
.
getClass
().
getMethod
(
method
,
body
.
getClass
(),
result
.
getClass
());
}
catch
(
Exception
e
)
{
methodCommit
=
null
;
}
if
(
null
==
methodCommit
)
{
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
600
,
"方法未找到:"
+
method
));
}
methodCommit
.
invoke
(
this
,
body
,
result
);
return
JSON
.
toJSONString
(
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
JSON
.
toJSONString
(
AjaxResult
.
error
(
500
,
"服务器内部错误"
));
}
}
public
boolean
insertPre
(
Labels
body
,
AjaxResult
result
)
{
if
(
null
==
body
)
{
result
.
buildError
(
500
,
"body为空"
);
return
false
;
}
LabelsExample
example
=
new
LabelsExample
();
example
.
createCriteria
().
andCodeEqualTo
(
body
.
getCode
());
int
count
=
bsCommonService
.
countByExample
(
example
);
if
(
count
>
0
)
{
result
.
buildError
(
500
,
"编码存在,请重新填写!"
);
return
false
;
}
return
true
;
}
public
void
insert
(
Labels
body
,
AjaxResult
result
)
{
String
id
=
UUID
.
randomUUID
().
toString
();
Labels
bsCommon
=
new
Labels
();
bsCommon
.
setId
(
id
);
bsCommon
.
setCode
(
body
.
getCode
());
bsCommon
.
setDescription
(
body
.
getDescription
());
bsCommon
.
setName
(
body
.
getName
());
bsCommon
.
setParentId
(
body
.
getParentId
());
bsCommon
.
setIsValid
(
body
.
getIsValid
());
bsCommon
.
setSort
(
body
.
getSort
());
bsCommon
.
setYlzd1
(
body
.
getYlzd1
());
bsCommon
.
setYlzd2
(
body
.
getYlzd2
());
bsCommon
.
setYlzd3
(
body
.
getYlzd3
());
bsCommon
.
setYlzd4
(
body
.
getYlzd4
());
bsCommon
.
setYlzd5
(
body
.
getYlzd5
());
int
ret
=
bsCommonService
.
insertSelective
(
bsCommon
);
if
(
ret
>
0
)
{
result
.
buildSuccess
(
"success"
,
id
);
}
else
{
result
.
buildError
(
600
,
"新增失败"
);
}
return
;
}
public
boolean
updatePre
(
Labels
body
,
AjaxResult
result
)
{
if
(
null
==
body
)
{
result
.
buildError
(
500
,
"body为空"
);
return
false
;
}
return
true
;
}
public
void
update
(
Labels
body
,
AjaxResult
result
)
{
String
id
=
body
.
getId
();
Labels
bean
=
get
(
id
,
null
);
if
(
null
==
bean
)
{
result
.
buildError
(
500
,
"body为空"
);
return
;
}
if
(!
bean
.
getCode
().
equals
(
body
.
getCode
()))
{
LabelsExample
example
=
new
LabelsExample
();
example
.
createCriteria
().
andCodeEqualTo
(
body
.
getCode
());
int
count
=
bsCommonService
.
countByExample
(
example
);
if
(
count
>
0
)
{
result
.
buildError
(
500
,
"编码存在,请重新填写!"
);
return
;
}
}
int
ret
=
bsCommonService
.
updateByPrimaryKeySelective
(
body
);
if
(
ret
>
0
)
{
result
.
buildSuccess
(
"success"
,
id
);
}
else
{
result
.
buildError
(
600
,
"更新失败"
);
}
return
;
}
public
Labels
get
(
String
id
,
Labels
bsCommon
)
{
if
(
null
==
bsCommon
)
{
if
(
StringUtils
.
isNotEmpty
(
id
))
{
bsCommon
=
bsCommonService
.
selectByPrimaryKey
(
id
);
}
if
(
null
==
bsCommon
)
{
return
null
;
}
}
return
bsCommon
;
}
public
boolean
deletePre
(
Labels
body
,
AjaxResult
result
)
{
if
(
null
==
body
)
{
result
.
buildError
(
500
,
"body为空"
);
return
false
;
}
if
(!
itemIsUUID
(
body
.
getId
()))
{
result
.
buildError
(
500
,
"参数非法"
);
return
false
;
}
return
true
;
}
public
void
delete
(
Labels
body
,
AjaxResult
result
)
{
Labels
bean
=
get
(
body
.
getId
(),
null
);
if
(
null
==
bean
)
{
result
.
buildError
(
500
,
"找不到该数据"
);
return
;
}
// 如果该网格下有子网格,则无法删除
LabelsExample
gridRegionExample
=
new
LabelsExample
();
gridRegionExample
.
createCriteria
().
andIsValidEqualTo
(
"1"
).
andParentIdEqualTo
(
body
.
getId
());
int
count
=
bsCommonService
.
countByExample
(
gridRegionExample
);
if
(
count
>
0
)
{
result
.
buildError
(
600
,
"有子数据无法删除"
);
return
;
}
// 防止数据残留
int
ret
=
bsCommonService
.
deleteByStringPrimaryKey
(
body
.
getId
());
if
(
ret
>
0
)
{
result
.
buildSuccess
(
"success"
,
null
);
}
else
{
result
.
buildError
(
600
,
"删除失败"
);
}
return
;
}
public
AjaxResult
getTreeNode
(
LabelsVO
bsCommonVO
)
{
LabelsExample
bsCommonExample
=
new
LabelsExample
();
LabelsExample
.
Criteria
criteria
=
bsCommonExample
.
createCriteria
();
criteria
.
andIsValidEqualTo
(
"1"
);
if
(
bsCommonVO
!=
null
){
if
(
StringUtils
.
isNotBlank
(
bsCommonVO
.
getCode
())){
criteria
.
andCodeLike
(
"%"
+
bsCommonVO
.
getCode
()+
"%"
);
}
}
bsCommonExample
.
setOrderByClause
(
" sort + 0 "
);
List
<
Labels
>
bsCommons
=
bsCommonService
.
selectByExample
(
bsCommonExample
);
List
<
Map
<
String
,
Object
>>
jsTreeModels
=
convertFrBomsCommon
(
bsCommons
);
return
AjaxResult
.
success
(
"success"
,
jsTreeModels
);
}
private
List
<
Map
<
String
,
Object
>>
convertFrBomsCommon
(
List
<
Labels
>
bsCommons
)
{
List
<
Map
<
String
,
Object
>>
models
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
bsCommons
))
{
for
(
Labels
bsCommon
:
bsCommons
)
{
if
(
StringUtils
.
isEmpty
(
bsCommon
.
getParentId
()))
{
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
model
.
put
(
"id"
,
bsCommon
.
getId
());
model
.
put
(
"code"
,
bsCommon
.
getCode
());
model
.
put
(
"name"
,
bsCommon
.
getName
());
model
.
put
(
"description"
,
bsCommon
.
getDescription
());
model
.
put
(
"parentId"
,
bsCommon
.
getParentId
());
model
.
put
(
"isValid"
,
bsCommon
.
getIsValid
());
model
.
put
(
"sort"
,
bsCommon
.
getSort
());
List
<
Map
<
String
,
Object
>>
childrenDocTypes
=
convertFromWgCodeByParent
(
bsCommons
,
bsCommon
.
getId
());
model
.
put
(
"child"
,
childrenDocTypes
);
models
.
add
(
model
);
}
}
}
return
models
;
}
private
List
<
Map
<
String
,
Object
>>
convertFromWgCodeByParent
(
List
<
Labels
>
bsCommons
,
String
parentId
)
{
List
<
Map
<
String
,
Object
>>
models
=
new
ArrayList
<>();
for
(
Labels
bsCommon
:
bsCommons
)
{
if
(
StringUtils
.
isNotEmpty
(
bsCommon
.
getParentId
())
&&
bsCommon
.
getParentId
().
equals
(
parentId
))
{
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
model
.
put
(
"id"
,
bsCommon
.
getId
());
model
.
put
(
"code"
,
bsCommon
.
getCode
());
model
.
put
(
"name"
,
bsCommon
.
getName
());
model
.
put
(
"description"
,
bsCommon
.
getDescription
());
model
.
put
(
"parentId"
,
bsCommon
.
getParentId
());
model
.
put
(
"isValid"
,
bsCommon
.
getIsValid
());
model
.
put
(
"sort"
,
bsCommon
.
getSort
());
List
<
Map
<
String
,
Object
>>
childrenDocTypes
=
convertFromWgCodeByParent
(
bsCommons
,
bsCommon
.
getId
());
model
.
put
(
"child"
,
childrenDocTypes
);
models
.
add
(
model
);
}
}
return
models
;
}
private
boolean
itemIsUUID
(
String
item
)
{
if
(
StringUtils
.
isEmpty
(
item
))
{
return
false
;
}
return
item
.
matches
(
"(\\w{8}(-\\w{4}){3}-\\w{12}?)"
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/other/LabelsService.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
service
.
other
;
import
com.ruoyi.system.domain.other.Labels
;
import
com.ruoyi.system.domain.other.LabelsExample
;
import
com.ruoyi.system.service.BaseService
;
import
java.util.List
;
import
java.util.Map
;
public
interface
LabelsService
extends
BaseService
<
Labels
,
LabelsExample
>
{
List
<
Labels
>
getWgdxList
(
String
code
);
String
getName
(
String
code
);
String
getCode
(
String
name
);
List
<
Labels
>
getBsCommonMap
();
Map
<
String
,
String
>
getMapByCodes
(
List
<
String
>
codes
);
}
\ No newline at end of file
ruoyi-system/src/main/java/com/ruoyi/system/service/other/impl/LabelsServiceImpl.java
0 → 100644
View file @
a447de02
package
com
.
ruoyi
.
system
.
service
.
other
.
impl
;
import
com.ruoyi.system.domain.other.Labels
;
import
com.ruoyi.system.domain.other.LabelsExample
;
import
com.ruoyi.system.listener.MyBaseService
;
import
com.ruoyi.system.mapper.other.LabelsMapper
;
import
com.ruoyi.system.service.BaseServiceImpl
;
import
com.ruoyi.system.service.other.LabelsService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* @author Cesar
* @date ${cTime}
* @desc BsCommonService实现
*/
@Service
@MyBaseService
public
class
LabelsServiceImpl
extends
BaseServiceImpl
<
LabelsMapper
,
Labels
,
LabelsExample
>
implements
LabelsService
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
LabelsServiceImpl
.
class
);
@Autowired
private
LabelsMapper
bsCommonMapper
;
@Override
public
List
<
Labels
>
getWgdxList
(
String
code
)
{
return
bsCommonMapper
.
getWgdxList
(
code
);
}
@Override
public
String
getName
(
String
code
)
{
LabelsExample
ex
=
new
LabelsExample
();
LabelsExample
.
Criteria
ca
=
ex
.
createCriteria
();
ca
.
andCodeEqualTo
(
code
);
ca
.
andIsValidEqualTo
(
"1"
);
Labels
bsCommon
=
selectFirstByExample
(
ex
);
if
(
bsCommon
!=
null
)
{
return
bsCommon
.
getName
();
}
else
{
return
null
;
}
}
@Override
public
String
getCode
(
String
name
)
{
LabelsExample
ex
=
new
LabelsExample
();
LabelsExample
.
Criteria
ca
=
ex
.
createCriteria
();
ca
.
andNameEqualTo
(
name
);
ca
.
andIsValidEqualTo
(
"1"
);
Labels
bsCommon
=
selectFirstByExample
(
ex
);
if
(
bsCommon
!=
null
)
{
return
bsCommon
.
getCode
();
}
else
{
return
null
;
}
}
@Override
public
List
<
Labels
>
getBsCommonMap
()
{
LabelsExample
ex
=
new
LabelsExample
();
LabelsExample
.
Criteria
ca
=
ex
.
createCriteria
();
ca
.
andIsValidEqualTo
(
"1"
);
return
this
.
selectByExample
(
ex
);
}
@Override
public
Map
<
String
,
String
>
getMapByCodes
(
List
<
String
>
codes
)
{
LabelsExample
ex
=
new
LabelsExample
();
LabelsExample
.
Criteria
ca
=
ex
.
createCriteria
();
ca
.
andIsValidEqualTo
(
"1"
);
ca
.
andCodeIn
(
codes
);
List
<
Labels
>
commonList
=
bsCommonMapper
.
selectByExample
(
ex
);
return
commonList
.
stream
().
collect
(
Collectors
.
toMap
(
Labels:
:
getCode
,
Labels:
:
getName
));
}
}
ruoyi-system/src/main/resources/mapper/other/LabelsMapper.xml
0 → 100644
View file @
a447de02
<?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.ruoyi.system.mapper.other.LabelsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.system.domain.other.Labels"
>
<result
column=
"id"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"code"
jdbcType=
"VARCHAR"
property=
"code"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"description"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"parent_id"
jdbcType=
"VARCHAR"
property=
"parentId"
/>
<result
column=
"is_valid"
jdbcType=
"VARCHAR"
property=
"isValid"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"ylzd1"
jdbcType=
"VARCHAR"
property=
"ylzd1"
/>
<result
column=
"ylzd2"
jdbcType=
"VARCHAR"
property=
"ylzd2"
/>
<result
column=
"ylzd3"
jdbcType=
"VARCHAR"
property=
"ylzd3"
/>
<result
column=
"ylzd4"
jdbcType=
"VARCHAR"
property=
"ylzd4"
/>
<result
column=
"ylzd5"
jdbcType=
"VARCHAR"
property=
"ylzd5"
/>
</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, code, name, description, parent_id, is_valid, sort, ylzd1, ylzd2, ylzd3,
ylzd4, ylzd5
</sql>
<select
id=
"selectByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from labels
<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"
>
select
<include
refid=
"Base_Column_List"
/>
from labels
where id = #{id,jdbcType=VARCHAR}
</select>
<select
id=
"getWgdxList"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from labels
where is_valid='1' and parent_id in (select id from bs_common where code= #{code,jdbcType=VARCHAR}) ORDER BY sort + 0
</select>
<delete
id=
"deleteByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
>
delete from bs_common
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete from labels
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
parameterType=
"com.ruoyi.system.domain.other.BsCommon"
>
insert into labels (id, code, name,
description, parent_id, is_valid,
sort, ylzd1,
ylzd2, ylzd3, ylzd4,
ylzd5)
values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{isValid,jdbcType=VARCHAR},
#{sort,jdbcType=VARCHAR}, #{ylzd1,jdbcType=VARCHAR},
#{ylzd2,jdbcType=VARCHAR}, #{ylzd3,jdbcType=VARCHAR}, #{ylzd4,jdbcType=VARCHAR},
#{ylzd5,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.ruoyi.system.domain.other.BsCommon"
>
insert into labels
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"code != null"
>
code,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"description != null"
>
description,
</if>
<if
test=
"parentId != null"
>
parent_id,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
<if
test=
"sort != null"
>
sort,
</if>
<if
test=
"ylzd1 != null"
>
ylzd1,
</if>
<if
test=
"ylzd2 != null"
>
ylzd2,
</if>
<if
test=
"ylzd3 != null"
>
ylzd3,
</if>
<if
test=
"ylzd4 != null"
>
ylzd4,
</if>
<if
test=
"ylzd5 != null"
>
ylzd5,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"code != null"
>
#{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"description != null"
>
#{description,jdbcType=VARCHAR},
</if>
<if
test=
"parentId != null"
>
#{parentId,jdbcType=VARCHAR},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=VARCHAR},
</if>
<if
test=
"sort != null"
>
#{sort,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd1 != null"
>
#{ylzd1,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd2 != null"
>
#{ylzd2,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd3 != null"
>
#{ylzd3,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd4 != null"
>
#{ylzd4,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd5 != null"
>
#{ylzd5,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.ruoyi.system.domain.other.BsCommonExample"
resultType=
"java.lang.Long"
>
select count(*) from labels
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update labels
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=VARCHAR},
</if>
<if
test=
"record.code != null"
>
code = #{record.code,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.description != null"
>
description = #{record.description,jdbcType=VARCHAR},
</if>
<if
test=
"record.parentId != null"
>
parent_id = #{record.parentId,jdbcType=VARCHAR},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=VARCHAR},
</if>
<if
test=
"record.sort != null"
>
sort = #{record.sort,jdbcType=VARCHAR},
</if>
<if
test=
"record.ylzd1 != null"
>
ylzd1 = #{record.ylzd1,jdbcType=VARCHAR},
</if>
<if
test=
"record.ylzd2 != null"
>
ylzd2 = #{record.ylzd2,jdbcType=VARCHAR},
</if>
<if
test=
"record.ylzd3 != null"
>
ylzd3 = #{record.ylzd3,jdbcType=VARCHAR},
</if>
<if
test=
"record.ylzd4 != null"
>
ylzd4 = #{record.ylzd4,jdbcType=VARCHAR},
</if>
<if
test=
"record.ylzd5 != null"
>
ylzd5 = #{record.ylzd5,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.ruoyi.system.domain.other.BsCommon"
>
update labels
<set>
<if
test=
"id != null"
>
id = #{id,jdbcType=VARCHAR},
</if>
<if
test=
"code != null"
>
code = #{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"description != null"
>
description = #{description,jdbcType=VARCHAR},
</if>
<if
test=
"parentId != null"
>
parent_id = #{parentId,jdbcType=VARCHAR},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=VARCHAR},
</if>
<if
test=
"sort != null"
>
sort = #{sort,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd1 != null"
>
ylzd1 = #{ylzd1,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd2 != null"
>
ylzd2 = #{ylzd2,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd3 != null"
>
ylzd3 = #{ylzd3,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd4 != null"
>
ylzd4 = #{ylzd4,jdbcType=VARCHAR},
</if>
<if
test=
"ylzd5 != null"
>
ylzd5 = #{ylzd5,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update labels
set id = #{record.id,jdbcType=VARCHAR},
code = #{record.code,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=VARCHAR},
is_valid = #{record.isValid,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=VARCHAR},
ylzd1 = #{record.ylzd1,jdbcType=VARCHAR},
ylzd2 = #{record.ylzd2,jdbcType=VARCHAR},
ylzd3 = #{record.ylzd3,jdbcType=VARCHAR},
ylzd4 = #{record.ylzd4,jdbcType=VARCHAR},
ylzd5 = #{record.ylzd5,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
</mapper>
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