Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
8b643e22
Commit
8b643e22
authored
Oct 12, 2018
by
HuangBingGui
Browse files
no commit message
parent
563ff060
Changes
385
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
5 of 385+
files are displayed.
Plain diff
Email patch
JeeSpringCloud/src/main/java/com/jeespring/modules/test/entity/onetomany/TestDataChild.java
0 → 100644
View file @
8b643e22
/**
* * Copyright © 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/jeeSpringCloud">JeeSpringCloud</a> All rights reserved..
*/
package
com.jeespring.modules.test.entity.onetomany
;
import
com.jeespring.modules.sys.entity.Area
;
import
javax.validation.constraints.NotNull
;
import
org.hibernate.validator.constraints.Length
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.jeespring.common.persistence.AbstractBaseEntity
;
import
com.jeespring.common.utils.excel.annotation.ExcelField
;
import
com.jeespring.modules.sys.utils.DictUtils
;
/**
* 订票Entity
* @author JeeSpring
* @version 2018-10-12
*/
public
class
TestDataChild
extends
AbstractBaseEntity
<
TestDataChild
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
start
;
// 出发地
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
end
;
// 目的地
private
Double
price
;
// 代理价格
private
TestDataMain
testDataMain
;
// 业务主表ID 父类testDataMain.id
public
TestDataChild
()
{
super
();
}
public
TestDataChild
(
String
id
){
super
(
id
);
}
public
TestDataChild
(
TestDataMain
testDataMain
){
this
.
testDataMain
=
testDataMain
;
}
@NotNull
(
message
=
"出发地不能为空"
)
@ExcelField
(
title
=
"出发地"
,
fieldType
=
Area
.
class
,
value
=
"start.name"
,
align
=
2
,
sort
=
1
)
public
Area
getStart
()
{
return
start
;
}
public
void
setStart
(
Area
start
)
{
this
.
start
=
start
;
}
@NotNull
(
message
=
"目的地不能为空"
)
@ExcelField
(
title
=
"目的地"
,
fieldType
=
Area
.
class
,
value
=
"end.name"
,
align
=
2
,
sort
=
2
)
public
Area
getEnd
()
{
return
end
;
}
public
void
setEnd
(
Area
end
)
{
this
.
end
=
end
;
}
@NotNull
(
message
=
"代理价格不能为空"
)
@ExcelField
(
title
=
"代理价格"
,
align
=
2
,
sort
=
3
)
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
@Length
(
min
=
0
,
max
=
64
,
message
=
"业务主表ID长度必须介于 0 和 64 之间"
)
@JsonIgnore
@JSONField
(
serialize
=
false
)
public
TestDataMain
getTestDataMain
()
{
return
testDataMain
;
}
public
void
setTestDataMain
(
TestDataMain
testDataMain
)
{
this
.
testDataMain
=
testDataMain
;
}
}
\ No newline at end of file
JeeSpringCloud/src/main/java/com/jeespring/modules/test/entity/onetomany/TestDataChild2.java
0 → 100644
View file @
8b643e22
/**
* * Copyright © 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/jeeSpringCloud">JeeSpringCloud</a> All rights reserved..
*/
package
com.jeespring.modules.test.entity.onetomany
;
import
com.jeespring.modules.sys.entity.Area
;
import
javax.validation.constraints.NotNull
;
import
org.hibernate.validator.constraints.Length
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.jeespring.common.persistence.AbstractBaseEntity
;
import
com.jeespring.common.utils.excel.annotation.ExcelField
;
import
com.jeespring.modules.sys.utils.DictUtils
;
/**
* 订票Entity
* @author JeeSpring
* @version 2018-10-12
*/
public
class
TestDataChild2
extends
AbstractBaseEntity
<
TestDataChild2
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
start
;
// 出发地
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
end
;
// 目的地
private
Double
price
;
// 代理价格
private
TestDataMain
testDataMain
;
// 外键 父类testDataMain.id
public
TestDataChild2
()
{
super
();
}
public
TestDataChild2
(
String
id
){
super
(
id
);
}
public
TestDataChild2
(
TestDataMain
testDataMain
){
this
.
testDataMain
=
testDataMain
;
}
@NotNull
(
message
=
"出发地不能为空"
)
@ExcelField
(
title
=
"出发地"
,
fieldType
=
Area
.
class
,
value
=
"start.name"
,
align
=
2
,
sort
=
1
)
public
Area
getStart
()
{
return
start
;
}
public
void
setStart
(
Area
start
)
{
this
.
start
=
start
;
}
@NotNull
(
message
=
"目的地不能为空"
)
@ExcelField
(
title
=
"目的地"
,
fieldType
=
Area
.
class
,
value
=
"end.name"
,
align
=
2
,
sort
=
2
)
public
Area
getEnd
()
{
return
end
;
}
public
void
setEnd
(
Area
end
)
{
this
.
end
=
end
;
}
@ExcelField
(
title
=
"代理价格"
,
align
=
2
,
sort
=
3
)
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
@Length
(
min
=
1
,
max
=
64
,
message
=
"外键长度必须介于 1 和 64 之间"
)
@JsonIgnore
@JSONField
(
serialize
=
false
)
public
TestDataMain
getTestDataMain
()
{
return
testDataMain
;
}
public
void
setTestDataMain
(
TestDataMain
testDataMain
)
{
this
.
testDataMain
=
testDataMain
;
}
}
\ No newline at end of file
JeeSpringCloud/src/main/java/com/jeespring/modules/test/entity/onetomany/TestDataChild3.java
0 → 100644
View file @
8b643e22
/**
* * Copyright © 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/jeeSpringCloud">JeeSpringCloud</a> All rights reserved..
*/
package
com.jeespring.modules.test.entity.onetomany
;
import
com.jeespring.modules.sys.entity.Area
;
import
javax.validation.constraints.NotNull
;
import
org.hibernate.validator.constraints.Length
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.jeespring.common.persistence.AbstractBaseEntity
;
import
com.jeespring.common.utils.excel.annotation.ExcelField
;
import
com.jeespring.modules.sys.utils.DictUtils
;
/**
* 订票Entity
* @author JeeSpring
* @version 2018-10-12
*/
public
class
TestDataChild3
extends
AbstractBaseEntity
<
TestDataChild3
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
start
;
// 出发地
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
end
;
// 目的地
private
Double
price
;
// 代理价格
private
TestDataMain
testDataMain
;
// 外键 父类testDataMain.id
public
TestDataChild3
()
{
super
();
}
public
TestDataChild3
(
String
id
){
super
(
id
);
}
public
TestDataChild3
(
TestDataMain
testDataMain
){
this
.
testDataMain
=
testDataMain
;
}
@NotNull
(
message
=
"出发地不能为空"
)
@ExcelField
(
title
=
"出发地"
,
fieldType
=
Area
.
class
,
value
=
"start.name"
,
align
=
2
,
sort
=
1
)
public
Area
getStart
()
{
return
start
;
}
public
void
setStart
(
Area
start
)
{
this
.
start
=
start
;
}
@NotNull
(
message
=
"目的地不能为空"
)
@ExcelField
(
title
=
"目的地"
,
fieldType
=
Area
.
class
,
value
=
"end.name"
,
align
=
2
,
sort
=
2
)
public
Area
getEnd
()
{
return
end
;
}
public
void
setEnd
(
Area
end
)
{
this
.
end
=
end
;
}
@ExcelField
(
title
=
"代理价格"
,
align
=
2
,
sort
=
3
)
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
@Length
(
min
=
1
,
max
=
64
,
message
=
"外键长度必须介于 1 和 64 之间"
)
@JsonIgnore
@JSONField
(
serialize
=
false
)
public
TestDataMain
getTestDataMain
()
{
return
testDataMain
;
}
public
void
setTestDataMain
(
TestDataMain
testDataMain
)
{
this
.
testDataMain
=
testDataMain
;
}
}
\ No newline at end of file
JeeSpringCloud/src/main/java/com/jeespring/modules/test/entity/onetomany/TestDataMain.java
0 → 100644
View file @
8b643e22
/**
* * Copyright © 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/jeeSpringCloud">JeeSpringCloud</a> All rights reserved..
*/
package
com.jeespring.modules.test.entity.onetomany
;
import
com.jeespring.modules.sys.entity.User
;
import
javax.validation.constraints.NotNull
;
import
com.jeespring.modules.sys.entity.Office
;
import
com.jeespring.modules.sys.entity.Area
;
import
org.hibernate.validator.constraints.Length
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.util.List
;
import
com.google.common.collect.Lists
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.jeespring.common.persistence.AbstractBaseEntity
;
import
com.jeespring.common.utils.excel.annotation.ExcelField
;
import
com.jeespring.modules.sys.utils.DictUtils
;
/**
* 订票Entity
* @author JeeSpring
* @version 2018-10-12
*/
public
class
TestDataMain
extends
AbstractBaseEntity
<
TestDataMain
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
com
.
jeespring
.
modules
.
sys
.
entity
.
User
user
;
// 归属用户
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Office
office
;
// 归属部门
private
com
.
jeespring
.
modules
.
sys
.
entity
.
Area
area
;
// 归属区域
private
String
name
;
// 名称
private
String
sex
;
// 性别
private
String
sexLabel
;
// 性别Label
private
String
sexPicture
;
// 性别Picture
private
java
.
util
.
Date
inDate
;
// 加入日期
private
java
.
util
.
Date
beginInDate
;
// 开始 加入日期
private
java
.
util
.
Date
endInDate
;
// 结束 加入日期
private
List
<
TestDataChild
>
testDataChildList
=
Lists
.
newArrayList
();
// 子表列表
private
List
<
TestDataChild2
>
testDataChild2List
=
Lists
.
newArrayList
();
// 子表列表
private
List
<
TestDataChild3
>
testDataChild3List
=
Lists
.
newArrayList
();
// 子表列表
public
TestDataMain
()
{
super
();
}
public
TestDataMain
(
String
id
){
super
(
id
);
}
@NotNull
(
message
=
"归属用户不能为空"
)
@ExcelField
(
title
=
"归属用户"
,
fieldType
=
User
.
class
,
value
=
"user.name"
,
align
=
2
,
sort
=
1
)
public
User
getUser
()
{
return
user
;
}
public
void
setUser
(
User
user
)
{
this
.
user
=
user
;
}
@NotNull
(
message
=
"归属部门不能为空"
)
@ExcelField
(
title
=
"归属部门"
,
fieldType
=
Office
.
class
,
value
=
"office.name"
,
align
=
2
,
sort
=
2
)
public
Office
getOffice
()
{
return
office
;
}
public
void
setOffice
(
Office
office
)
{
this
.
office
=
office
;
}
@NotNull
(
message
=
"归属区域不能为空"
)
@ExcelField
(
title
=
"归属区域"
,
fieldType
=
Area
.
class
,
value
=
"area.name"
,
align
=
2
,
sort
=
3
)
public
Area
getArea
()
{
return
area
;
}
public
void
setArea
(
Area
area
)
{
this
.
area
=
area
;
}
@Length
(
min
=
1
,
max
=
100
,
message
=
"名称长度必须介于 1 和 100 之间"
)
@ExcelField
(
title
=
"名称"
,
align
=
2
,
sort
=
4
)
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Length
(
min
=
1
,
max
=
1
,
message
=
"性别长度必须介于 1 和 1 之间"
)
@ExcelField
(
title
=
"性别"
,
dictType
=
"sex"
,
align
=
2
,
sort
=
5
)
public
String
getSex
()
{
return
sex
;
}
public
void
setSex
(
String
sex
)
{
this
.
sex
=
sex
;
}
public
String
getSexLabel
()
{
return
DictUtils
.
getDictLabel
(
sex
,
"sex"
,
""
);
}
public
String
getSexPicture
()
{
return
DictUtils
.
getDictPicture
(
sex
,
"sex"
,
""
);
}
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@NotNull
(
message
=
"加入日期不能为空"
)
@ExcelField
(
title
=
"加入日期"
,
align
=
2
,
sort
=
6
)
public
Date
getInDate
()
{
return
inDate
;
}
public
void
setInDate
(
Date
inDate
)
{
this
.
inDate
=
inDate
;
}
public
Date
getBeginInDate
()
{
return
beginInDate
;
}
public
void
setBeginInDate
(
Date
beginInDate
)
{
this
.
beginInDate
=
beginInDate
;
}
public
Date
getEndInDate
()
{
return
endInDate
;
}
public
void
setEndInDate
(
Date
endInDate
)
{
this
.
endInDate
=
endInDate
;
}
public
List
<
TestDataChild
>
getTestDataChildList
()
{
return
testDataChildList
;
}
public
void
setTestDataChildList
(
List
<
TestDataChild
>
testDataChildList
)
{
this
.
testDataChildList
=
testDataChildList
;
}
public
List
<
TestDataChild2
>
getTestDataChild2List
()
{
return
testDataChild2List
;
}
public
void
setTestDataChild2List
(
List
<
TestDataChild2
>
testDataChild2List
)
{
this
.
testDataChild2List
=
testDataChild2List
;
}
public
List
<
TestDataChild3
>
getTestDataChild3List
()
{
return
testDataChild3List
;
}
public
void
setTestDataChild3List
(
List
<
TestDataChild3
>
testDataChild3List
)
{
this
.
testDataChild3List
=
testDataChild3List
;
}
}
\ No newline at end of file
JeeSpringCloud/src/main/java/com/jeespring/modules/test/entity/tree/TestTree.java
0 → 100644
View file @
8b643e22
/**
* * Copyright © 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/jeeSpringCloud">JeeSpringCloud</a> All rights reserved..
*/
package
com.jeespring.modules.test.entity.tree
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotNull
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.jeespring.common.persistence.TreeEntity
;
/**
* 树Entity
* @author JeeSpring
* @version 2018-10-11
*/
public
class
TestTree
extends
TreeEntity
<
TestTree
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
name
;
// 名称
private
Integer
sort
;
// 排序
private
TestTree
parent
;
// 父级编号
private
String
parentIds
;
// 所有父级编号
public
TestTree
()
{
super
();
}
public
TestTree
(
String
id
){
super
(
id
);
}
@Length
(
min
=
1
,
max
=
100
,
message
=
"名称长度必须介于 1 和 100 之间"
)
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@NotNull
(
message
=
"排序不能为空"
)
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
@JsonBackReference
@NotNull
(
message
=
"父级编号不能为空"
)
public
TestTree
getParent
()
{
return
parent
;
}
public
void
setParent
(
TestTree
parent
)
{
this
.
parent
=
parent
;
}
@Length
(
min
=
1
,
max
=
2000
,
message
=
"所有父级编号长度必须介于 1 和 2000 之间"
)
public
String
getParentIds
()
{
return
parentIds
;
}
public
void
setParentIds
(
String
parentIds
)
{
this
.
parentIds
=
parentIds
;
}
public
String
getParentId
()
{
return
parent
!=
null
&&
parent
.
getId
()
!=
null
?
parent
.
getId
()
:
"0"
;
}
}
\ No newline at end of file
Prev
1
…
16
17
18
19
20
Next
Write
Preview
Supports
Markdown
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