记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
ffaa02a0
Commit
ffaa02a0
authored
Jun 22, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/jxl-slime' into test-ecs
parents
ea3bba76
7da998cf
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
72 additions
and
2 deletions
+72
-2
smile_volunteers_add_nation.sql
docs/smile_volunteers_add_nation.sql
+2
-0
NationConst.java
...va/com/liquidnet/service/goblin/constant/NationConst.java
+31
-0
SmileVolunteersDetailsVo.java
...idnet/service/goblin/dto/vo/SmileVolunteersDetailsVo.java
+3
-0
SmileVolunteersApplyParam.java
...idnet/service/goblin/param/SmileVolunteersApplyParam.java
+2
-0
SmileVolunteersService.java
...service/goblin/service/manage/SmileVolunteersService.java
+2
-0
VolunteersExportVo.java
...t/client/admin/zhengzai/smile/dto/VolunteersExportVo.java
+3
-0
SmileVolunteers.java
...a/com/liquidnet/service/smile/entity/SmileVolunteers.java
+5
-0
VolunteersExportDto.java
...quidnet/service/smile/entity/dto/VolunteersExportDto.java
+1
-0
SmileVolunteersMapper.xml
.../liquidnet/service/smile/mapper/SmileVolunteersMapper.xml
+2
-0
db_ln_volunteers.sql
...le/liquidnet-service-smile-impl/docu/db_ln_volunteers.sql
+1
-0
SmileVolunteersController.java
...quidnet/service/controller/SmileVolunteersController.java
+6
-0
SmileVolunteerServerImpl.java
...uidnet/service/service/impl/SmileVolunteerServerImpl.java
+13
-1
sqlmap.properties
...t-service-smile-impl/src/main/resources/sqlmap.properties
+1
-1
No files found.
docs/smile_volunteers_add_nation.sql
0 → 100644
View file @
ffaa02a0
ALTER
TABLE
`smile_volunteers`
ADD
COLUMN
`nation`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'民族'
AFTER
`sex`
;
liquidnet-bus-api/liquidnet-service-smile-api/src/main/java/com/liquidnet/service/goblin/constant/NationConst.java
0 → 100644
View file @
ffaa02a0
package
com
.
liquidnet
.
service
.
goblin
.
constant
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
/**
* 中国民族(GB/T 3304),汉族置顶便于前端默认选中。
*/
public
final
class
NationConst
{
private
NationConst
()
{
}
public
static
final
List
<
String
>
NATIONS
=
Collections
.
unmodifiableList
(
Arrays
.
asList
(
"汉族"
,
"蒙古族"
,
"回族"
,
"藏族"
,
"维吾尔族"
,
"苗族"
,
"彝族"
,
"壮族"
,
"布依族"
,
"朝鲜族"
,
"满族"
,
"侗族"
,
"瑶族"
,
"白族"
,
"土家族"
,
"哈尼族"
,
"哈萨克族"
,
"傣族"
,
"黎族"
,
"傈僳族"
,
"佤族"
,
"畲族"
,
"高山族"
,
"拉祜族"
,
"水族"
,
"东乡族"
,
"纳西族"
,
"景颇族"
,
"柯尔克孜族"
,
"土族"
,
"达斡尔族"
,
"仫佬族"
,
"羌族"
,
"布朗族"
,
"撒拉族"
,
"毛南族"
,
"仡佬族"
,
"锡伯族"
,
"阿昌族"
,
"普米族"
,
"塔吉克族"
,
"怒族"
,
"乌孜别克族"
,
"俄罗斯族"
,
"鄂温克族"
,
"德昂族"
,
"保安族"
,
"裕固族"
,
"京族"
,
"塔塔尔族"
,
"独龙族"
,
"鄂伦春族"
,
"赫哲族"
,
"门巴族"
,
"珞巴族"
,
"基诺族"
));
private
static
final
Set
<
String
>
NATION_SET
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
NATIONS
));
public
static
boolean
isValid
(
String
nation
)
{
return
nation
!=
null
&&
NATION_SET
.
contains
(
nation
.
trim
());
}
}
liquidnet-bus-api/liquidnet-service-smile-api/src/main/java/com/liquidnet/service/goblin/dto/vo/SmileVolunteersDetailsVo.java
View file @
ffaa02a0
...
@@ -28,6 +28,8 @@ public class SmileVolunteersDetailsVo implements Cloneable {
...
@@ -28,6 +28,8 @@ public class SmileVolunteersDetailsVo implements Cloneable {
private
String
idCard
;
private
String
idCard
;
@ApiModelProperty
(
value
=
"性别"
,
example
=
""
)
@ApiModelProperty
(
value
=
"性别"
,
example
=
""
)
private
Integer
sex
;
private
Integer
sex
;
@ApiModelProperty
(
value
=
"民族"
,
example
=
""
)
private
String
nation
;
@ApiModelProperty
(
value
=
"审核状态"
,
example
=
""
)
@ApiModelProperty
(
value
=
"审核状态"
,
example
=
""
)
private
Integer
status
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"学校"
,
example
=
""
)
@ApiModelProperty
(
value
=
"学校"
,
example
=
""
)
...
@@ -65,6 +67,7 @@ public class SmileVolunteersDetailsVo implements Cloneable {
...
@@ -65,6 +67,7 @@ public class SmileVolunteersDetailsVo implements Cloneable {
this
.
setImg
(
source
.
getImg
());
this
.
setImg
(
source
.
getImg
());
this
.
setIdCard
(
source
.
getIdCard
());
this
.
setIdCard
(
source
.
getIdCard
());
this
.
setSex
(
source
.
getSex
());
this
.
setSex
(
source
.
getSex
());
this
.
setNation
(
source
.
getNation
());
this
.
setStatus
(
source
.
getStatus
());
this
.
setStatus
(
source
.
getStatus
());
this
.
setSchool
(
source
.
getSchool
());
this
.
setSchool
(
source
.
getSchool
());
this
.
setSchoolAddress
(
source
.
getSchoolAddress
());
this
.
setSchoolAddress
(
source
.
getSchoolAddress
());
...
...
liquidnet-bus-api/liquidnet-service-smile-api/src/main/java/com/liquidnet/service/goblin/param/SmileVolunteersApplyParam.java
View file @
ffaa02a0
...
@@ -36,6 +36,8 @@ public class SmileVolunteersApplyParam implements Serializable {
...
@@ -36,6 +36,8 @@ public class SmileVolunteersApplyParam implements Serializable {
private
String
idCard
;
private
String
idCard
;
@ApiModelProperty
(
value
=
"性别[0-未知|1-男|2-女]"
)
@ApiModelProperty
(
value
=
"性别[0-未知|1-男|2-女]"
)
private
Integer
sex
;
private
Integer
sex
;
@ApiModelProperty
(
value
=
"民族,参见 /volunteers/nations"
)
private
String
nation
;
@ApiModelProperty
(
value
=
"学校名称"
)
@ApiModelProperty
(
value
=
"学校名称"
)
private
String
school
;
private
String
school
;
@ApiModelProperty
(
value
=
"学校地址"
)
@ApiModelProperty
(
value
=
"学校地址"
)
...
...
liquidnet-bus-api/liquidnet-service-smile-api/src/main/java/com/liquidnet/service/goblin/service/manage/SmileVolunteersService.java
View file @
ffaa02a0
...
@@ -18,4 +18,6 @@ public interface SmileVolunteersService {
...
@@ -18,4 +18,6 @@ public interface SmileVolunteersService {
ResponseDto
<
SmileVProjectVo
>
projectDetails
(
String
uid
,
String
projectId
);
ResponseDto
<
SmileVProjectVo
>
projectDetails
(
String
uid
,
String
projectId
);
ResponseDto
<
Boolean
>
apply
(
SmileVolunteersApplyParam
param
);
ResponseDto
<
Boolean
>
apply
(
SmileVolunteersApplyParam
param
);
ResponseDto
<
List
<
String
>>
nations
();
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/smile/dto/VolunteersExportVo.java
View file @
ffaa02a0
...
@@ -16,6 +16,8 @@ public class VolunteersExportVo implements Serializable, Cloneable{
...
@@ -16,6 +16,8 @@ public class VolunteersExportVo implements Serializable, Cloneable{
private
String
idCard
;
private
String
idCard
;
@Excel
(
name
=
"性别"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
@Excel
(
name
=
"性别"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
private
String
sex
;
private
String
sex
;
@Excel
(
name
=
"民族"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
private
String
nation
;
@Excel
(
name
=
"审核状态"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
@Excel
(
name
=
"审核状态"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
private
String
status
;
private
String
status
;
@Excel
(
name
=
"学校"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
@Excel
(
name
=
"学校"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
...
@@ -56,6 +58,7 @@ public class VolunteersExportVo implements Serializable, Cloneable{
...
@@ -56,6 +58,7 @@ public class VolunteersExportVo implements Serializable, Cloneable{
this
.
setName
(
source
.
getName
());
this
.
setName
(
source
.
getName
());
this
.
setIdCard
(
source
.
getIdCard
());
this
.
setIdCard
(
source
.
getIdCard
());
this
.
setSex
(
source
.
getSex
());
this
.
setSex
(
source
.
getSex
());
this
.
setNation
(
source
.
getNation
());
this
.
setStatus
(
source
.
getStatus
());
this
.
setStatus
(
source
.
getStatus
());
this
.
setSchool
(
source
.
getSchool
());
this
.
setSchool
(
source
.
getSchool
());
// this.setSchoolAddress(source.getSchoolAddress());
// this.setSchoolAddress(source.getSchoolAddress());
...
...
liquidnet-bus-do/liquidnet-service-smile-do/src/main/java/com/liquidnet/service/smile/entity/SmileVolunteers.java
View file @
ffaa02a0
...
@@ -56,6 +56,11 @@ public class SmileVolunteers implements Serializable ,Cloneable{
...
@@ -56,6 +56,11 @@ public class SmileVolunteers implements Serializable ,Cloneable{
*/
*/
private
Integer
sex
;
private
Integer
sex
;
/**
* 民族
*/
private
String
nation
;
/**
/**
* 状态[0-待审核|1-审核通过|2-审核未通过]
* 状态[0-待审核|1-审核通过|2-审核未通过]
*/
*/
...
...
liquidnet-bus-do/liquidnet-service-smile-do/src/main/java/com/liquidnet/service/smile/entity/dto/VolunteersExportDto.java
View file @
ffaa02a0
...
@@ -12,6 +12,7 @@ public class VolunteersExportDto implements Serializable, Cloneable {
...
@@ -12,6 +12,7 @@ public class VolunteersExportDto implements Serializable, Cloneable {
private
String
name
;
private
String
name
;
private
String
idCard
;
private
String
idCard
;
private
String
sex
;
private
String
sex
;
private
String
nation
;
private
String
status
;
private
String
status
;
private
String
school
;
private
String
school
;
private
String
schoolAddress
;
private
String
schoolAddress
;
...
...
liquidnet-bus-do/liquidnet-service-smile-do/src/main/resources/com/liquidnet/service/smile/mapper/SmileVolunteersMapper.xml
View file @
ffaa02a0
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<result
column=
"name"
property=
"name"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"id_card"
property=
"idCard"
/>
<result
column=
"id_card"
property=
"idCard"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"nation"
property=
"nation"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"school"
property=
"school"
/>
<result
column=
"school"
property=
"school"
/>
<result
column=
"school_address"
property=
"schoolAddress"
/>
<result
column=
"school_address"
property=
"schoolAddress"
/>
...
@@ -35,6 +36,7 @@
...
@@ -35,6 +36,7 @@
WHEN sex = 1 THEN '男'
WHEN sex = 1 THEN '男'
WHEN sex = 2 THEN '女'
WHEN sex = 2 THEN '女'
ELSE '其他' END) as 'sex',
ELSE '其他' END) as 'sex',
sv.nation,
(CASE
(CASE
WHEN sv.status = 0 THEN '待审核'
WHEN sv.status = 0 THEN '待审核'
WHEN sv.status = 1 THEN '审核通过'
WHEN sv.status = 1 THEN '审核通过'
...
...
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/docu/db_ln_volunteers.sql
View file @
ffaa02a0
...
@@ -8,6 +8,7 @@ CREATE TABLE `smile_volunteers`
...
@@ -8,6 +8,7 @@ CREATE TABLE `smile_volunteers`
`img`
varchar
(
256
)
DEFAULT
''
COMMENT
'头像'
,
`img`
varchar
(
256
)
DEFAULT
''
COMMENT
'头像'
,
`id_card`
varchar
(
32
)
DEFAULT
''
COMMENT
'证件号'
,
`id_card`
varchar
(
32
)
DEFAULT
''
COMMENT
'证件号'
,
`sex`
tinyint
(
2
)
DEFAULT
0
COMMENT
'性别[0-未知|1-男|2-女]'
,
`sex`
tinyint
(
2
)
DEFAULT
0
COMMENT
'性别[0-未知|1-男|2-女]'
,
`nation`
varchar
(
16
)
DEFAULT
''
COMMENT
'民族'
,
`status`
tinyint
(
2
)
DEFAULT
0
COMMENT
'状态[0-待审核|1-审核通过|2-审核未通过]'
,
`status`
tinyint
(
2
)
DEFAULT
0
COMMENT
'状态[0-待审核|1-审核通过|2-审核未通过]'
,
`school`
varchar
(
64
)
DEFAULT
''
COMMENT
'学校'
,
`school`
varchar
(
64
)
DEFAULT
''
COMMENT
'学校'
,
`school_address`
varchar
(
64
)
DEFAULT
''
COMMENT
'学校地址'
,
`school_address`
varchar
(
64
)
DEFAULT
''
COMMENT
'学校地址'
,
...
...
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/controller/SmileVolunteersController.java
View file @
ffaa02a0
...
@@ -44,4 +44,10 @@ public class SmileVolunteersController {
...
@@ -44,4 +44,10 @@ public class SmileVolunteersController {
return
volunteersService
.
apply
(
param
);
return
volunteersService
.
apply
(
param
);
}
}
@GetMapping
(
"nations"
)
@ApiOperation
(
"民族字典(GB/T 3304)"
)
public
ResponseDto
<
List
<
String
>>
nations
()
{
return
volunteersService
.
nations
();
}
}
}
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/service/impl/SmileVolunteerServerImpl.java
View file @
ffaa02a0
...
@@ -6,6 +6,7 @@ import com.liquidnet.commons.lang.util.IDCard;
...
@@ -6,6 +6,7 @@ import com.liquidnet.commons.lang.util.IDCard;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.goblin.constant.NationConst
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.param.SmileVolunteersApplyParam
;
import
com.liquidnet.service.goblin.param.SmileVolunteersApplyParam
;
import
com.liquidnet.service.goblin.service.manage.SmileFrontService
;
import
com.liquidnet.service.goblin.service.manage.SmileFrontService
;
...
@@ -119,6 +120,12 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
...
@@ -119,6 +120,12 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
if
(!
utils
.
validate
(
param
.
getName
(),
param
.
getIdCard
()))
{
if
(!
utils
.
validate
(
param
.
getName
(),
param
.
getIdCard
()))
{
return
ResponseDto
.
failure
(
"验证身份证失败!"
);
return
ResponseDto
.
failure
(
"验证身份证失败!"
);
}
}
if
(
StringUtils
.
isBlank
(
param
.
getNation
()))
{
return
ResponseDto
.
failure
(
"请选择民族"
);
}
if
(!
NationConst
.
isValid
(
param
.
getNation
()))
{
return
ResponseDto
.
failure
(
"民族选项无效"
);
}
smileRedisUtils
.
setProjectIdCard
(
param
.
getProjectId
(),
param
.
getIdCard
());
smileRedisUtils
.
setProjectIdCard
(
param
.
getProjectId
(),
param
.
getIdCard
());
...
@@ -135,7 +142,7 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
...
@@ -135,7 +142,7 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
queueUtils
.
sendMsgByRedis
(
MQConst
.
SmileQueue
.
SMILE_USER
.
getKey
(),
queueUtils
.
sendMsgByRedis
(
MQConst
.
SmileQueue
.
SMILE_USER
.
getKey
(),
SqlMapping
.
get
(
"smile_volunteers.apply"
,
SqlMapping
.
get
(
"smile_volunteers.apply"
,
uid
,
param
.
getProjectId
(),
param
.
getName
(),
param
.
getImg
(),
uid
,
param
.
getProjectId
(),
param
.
getName
(),
param
.
getImg
(),
param
.
getIdCard
(),
param
.
getSex
(),
param
.
getSchool
(),
param
.
getSchoolAddress
(),
param
.
getIdCard
(),
param
.
getSex
(),
param
.
get
Nation
(),
param
.
get
School
(),
param
.
getSchoolAddress
(),
param
.
getSpecialty
(),
param
.
getSpecialty2
(),
param
.
getPhone
(),
param
.
getTeamId1
(),
param
.
getSpecialty
(),
param
.
getSpecialty2
(),
param
.
getPhone
(),
param
.
getTeamId1
(),
param
.
getTeamId2
(),
param
.
getTeamId3
(),
param
.
getIntroduce
(),
LocalDateTime
.
now
()
param
.
getTeamId2
(),
param
.
getTeamId3
(),
param
.
getIntroduce
(),
LocalDateTime
.
now
()
));
));
...
@@ -145,4 +152,9 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
...
@@ -145,4 +152,9 @@ public class SmileVolunteerServerImpl implements SmileVolunteersService {
}
}
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
@Override
public
ResponseDto
<
List
<
String
>>
nations
()
{
return
ResponseDto
.
success
(
NationConst
.
NATIONS
);
}
}
}
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/resources/sqlmap.properties
View file @
ffaa02a0
...
@@ -7,4 +7,4 @@ smile_service.delete_user= delete from smile_user where uid=?
...
@@ -7,4 +7,4 @@ smile_service.delete_user= delete from smile_user where uid=?
#---- 志愿者报名
#---- 志愿者报名
smile_volunteers.apply
=
INSERT INTO smile_volunteers (`uid`,`project_id`,`name`,`img`,`id_card`,`sex`,`school`,`school_address`,`specialty`,`specialty2`,`phone`,`team_id1`,`team_id2`,`team_id3`,`introduce`,`created_at`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
smile_volunteers.apply
=
INSERT INTO smile_volunteers (`uid`,`project_id`,`name`,`img`,`id_card`,`sex`,`nation`,`school`,`school_address`,`specialty`,`specialty2`,`phone`,`team_id1`,`team_id2`,`team_id3`,`introduce`,`created_at`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
\ No newline at end of file
\ No newline at end of file
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