Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
059446fe
Commit
059446fe
authored
Apr 09, 2024
by
taowenzhong
Browse files
Options
Browse Files
Download
Plain Diff
fix commit
parents
38158cf8
6a86c688
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
382 additions
and
164 deletions
+382
-164
ruoyi-admin/src/main/resources/application.yml
+3
-2
ruoyi-admin/src/test/java/com/ruoyi/test/RuoyiTest.java
+12
-0
ruoyi-common/src/main/java/com/ruoyi/common/utils/pdf/PDFUtil.java
+0
-1
ruoyi-ui/src/views/smartSchool/openRecruitment/examManage/components/InfoReview.vue
+13
-14
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/A.java
+5
-12
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/examination/EduRecruitStudentController.java
+53
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/examination/SchoolRecruitExamController.java
+17
-10
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/recruit/EduRecruitStudentServiceImpl.java
+5
-15
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/recruit/SchoolRecruitStudentServiceImpl.java
+48
-35
smart-campus/src/main/java/yangtz/cs/liu/campus/service/recruit/IEduRecruitStudentService.java
+3
-2
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/examination/EduCruitStudentExportVo.java
+34
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/recruit/RecruitEduStudentVo.java
+43
-18
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/recruit/SchoolRecruitStudentVo.java
+4
-4
smart-campus/src/main/resources/mapper/recruit/SchoolRecruitRelationMapper.xml
+17
-4
smart-campus/src/main/resources/mapper/recruit/SchoolRecruitStudentMapper.xml
+125
-47
No files found.
ruoyi-admin/src/main/resources/application.yml
View file @
059446fe
...
@@ -9,13 +9,14 @@ ruoyi:
...
@@ -9,13 +9,14 @@ ruoyi:
# 实例演示开关
# 实例演示开关
demoEnabled
:
true
demoEnabled
:
true
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
profile
:
D:/ruoyi
/uploadPath
profile
:
E:/repo-git/shenglierzhong/dd_school
/uploadPath
# profile: /home/ruoyi/uploadPath
# profile: /home/ruoyi/uploadPath
#指定上传文件到哪个服务器,读取文件(本地选localhost,测试选47.105.176.202,试运行选10.20.100.201)
#指定上传文件到哪个服务器,读取文件(本地选localhost,测试选47.105.176.202,试运行选10.20.100.201)
# serverAddress: http://47.105.176.202:5112
# serverAddress: http://47.105.176.202:5112
# serverAddress: http://47.105.176.202:5131
# serverAddress: http://47.105.176.202:5131
serverAddress
:
http://192.168.31.166:5131
#
serverAddress: http://192.168.31.166:5131
# serverAddress: http://10.20.100.201:57321
# serverAddress: http://10.20.100.201:57321
serverAddress
:
http://localhost:5131
# 获取ip地址开关
# 获取ip地址开关
addressEnabled
:
false
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
# 验证码类型 math 数组计算 char 字符验证
...
...
ruoyi-admin/src/test/java/com/ruoyi/test/RuoyiTest.java
0 → 100644
View file @
059446fe
package
com
.
ruoyi
.
test
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
public
class
RuoyiTest
{
public
static
void
main
(
String
[]
args
)
{
String
password
=
"1111@aaaa"
;
String
encode
=
new
BCryptPasswordEncoder
().
encode
(
password
);
System
.
out
.
println
(
encode
);
}
}
ruoyi-common/src/main/java/com/ruoyi/common/utils/pdf/PDFUtil.java
View file @
059446fe
...
@@ -5,7 +5,6 @@ import com.itextpdf.text.pdf.BaseFont;
...
@@ -5,7 +5,6 @@ import com.itextpdf.text.pdf.BaseFont;
import
com.itextpdf.text.pdf.PdfPCell
;
import
com.itextpdf.text.pdf.PdfPCell
;
import
com.itextpdf.text.pdf.PdfPTable
;
import
com.itextpdf.text.pdf.PdfPTable
;
import
com.itextpdf.text.pdf.PdfWriter
;
import
com.itextpdf.text.pdf.PdfWriter
;
import
javafx.scene.paint.Color
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
...
...
ruoyi-ui/src/views/smartSchool/openRecruitment/examManage/components/InfoReview.vue
View file @
059446fe
...
@@ -280,26 +280,25 @@
...
@@ -280,26 +280,25 @@
<
script
>
<
script
>
import
{
import
{
pass
,
addRelation
,
back
,
back
,
reject
,
backOne
,
checkEnd
,
checkEnd
,
checkList
,
checkList
,
getStudent
,
delRelation
,
addRelation
,
updateRelation
,
commonUpload
,
commonUpload
,
delRelation
,
getPerInfo
,
getProjectList
,
getProjectList
,
getStudent
,
listSchool
,
listSchool
,
getPerInfo
,
pass
,
passOne
,
reject
,
rejectOne
,
rejectOne
,
backOne
,
updateRelation
passOne
}
from
"@/api/smartSchool/openRecruitment"
;
}
from
"@/api/smartSchool/openRecruitment"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
Gender
,
Nations
}
from
"@/enums/common"
;
import
{
Gender
}
from
"@/enums/common"
;
import
{
getEnrollDetail
}
from
"../../../../../api/smartSchool/openRecruitment"
;
export
default
{
export
default
{
name
:
"Relation"
,
name
:
"Relation"
,
...
@@ -399,7 +398,7 @@ export default {
...
@@ -399,7 +398,7 @@ export default {
// 设置上传的请求头部
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()},
headers
:
{
Authorization
:
"Bearer "
+
getToken
()},
// 上传的地址
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
`/edu
ArtS
tudent/importData/
${
this
.
examId
}
`
,
url
:
process
.
env
.
VUE_APP_BASE_API
+
`/edu
-recruit-s
tudent/importData/
${
this
.
examId
}
`
,
},
},
// 表单参数
// 表单参数
form
:
{
form
:
{
...
@@ -763,14 +762,14 @@ export default {
...
@@ -763,14 +762,14 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
this
.
download
(
`/
ar
tStudent/export/
${
this
.
examId
}
`
,
{
this
.
download
(
`/
recrui
tStudent/export/
${
this
.
examId
}
`
,
{
...
this
.
queryParams
...
this
.
queryParams
},
`报名信息
${
Date
.
now
()}
.xlsx`
)
},
`报名信息
${
Date
.
now
()}
.xlsx`
)
},
},
// 下载模板
// 下载模板
importTemplate
()
{
importTemplate
()
{
this
.
download
(
this
.
download
(
"/eduArtS
tudent/importTemplate"
,
"/edu-recruit-s
tudent/importTemplate"
,
{},
{},
`导入教育局信息内模板_
${
Date
.
now
()}
.xlsx`
`导入教育局信息内模板_
${
Date
.
now
()}
.xlsx`
);
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/A.java
View file @
059446fe
package
yangtz
.
cs
.
liu
.
campus
.
controller
;
package
yangtz
.
cs
.
liu
.
campus
.
controller
;
import
com.core.utils.HolidayDateUtil
;
import
com.core.utils.HolidayDateUtil
;
import
com.core.utils.StringUtil
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
lombok.Data
;
import
sun.security.provider.Sun
;
import
yangtz.cs.liu.campus.domain.student.SchoolStudent
;
import
yangtz.cs.liu.campus.vo.student.StudentLeaveVO
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Calendar
;
import
java.util.stream.Collectors
;
import
java.util.Date
;
import
java.util.stream.Stream
;
import
java.util.List
;
import
lombok.Data
;
@Data
@Data
public
class
A
{
public
class
A
{
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/examination/EduRecruitStudentController.java
0 → 100644
View file @
059446fe
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
examination
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
yangtz.cs.liu.campus.service.examination.IEduArtStudentService
;
import
yangtz.cs.liu.campus.service.recruit.IEduRecruitStudentService
;
import
yangtz.cs.liu.campus.vo.examination.EduCruitStudentExportVo
;
import
yangtz.cs.liu.campus.vo.examination.EduExportVo
;
/**
* @author xuten
*/
@RestController
@RequestMapping
(
"/edu-recruit-student"
)
public
class
EduRecruitStudentController
extends
BaseController
{
@Autowired
private
IEduArtStudentService
eduArtStudentService
;
@Autowired
private
IEduRecruitStudentService
eduRecruitStudentService
;
/**
* 教育局艺考生信息导入模板下载
* */
@PostMapping
(
"/importTemplate"
)
public
void
importTemplate
(
HttpServletResponse
response
)
{
ExcelUtil
<
EduCruitStudentExportVo
>
util
=
new
ExcelUtil
<
EduCruitStudentExportVo
>(
EduCruitStudentExportVo
.
class
);
util
.
importTemplateExcel
(
response
,
"导入信息模板"
);
}
/**
* 教育局艺考生信息导入
* */
@PostMapping
(
"/importData/{examId}"
)
public
AjaxResult
importDate
(
@PathVariable
Long
examId
,
MultipartFile
file
)
throws
Exception
{
ExcelUtil
<
EduCruitStudentExportVo
>
util
=
new
ExcelUtil
<>(
EduCruitStudentExportVo
.
class
);
List
<
EduCruitStudentExportVo
>
list
=
util
.
importExcel
(
file
.
getInputStream
());
//校验数据
eduRecruitStudentService
.
checkImport
(
list
);
//数据导入
return
AjaxResult
.
success
(
eduRecruitStudentService
.
importData
(
list
,
examId
));
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/examination/SchoolRecruitExamController.java
View file @
059446fe
...
@@ -8,29 +8,36 @@ import com.ruoyi.common.exception.ServiceException;
...
@@ -8,29 +8,36 @@ import com.ruoyi.common.exception.ServiceException;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
yangtz.cs.liu.campus.constant.RecruitExamConstant
;
import
yangtz.cs.liu.campus.constant.RecruitExamConstant
;
import
yangtz.cs.liu.campus.domain.recruit.EduRecruitStudent
;
import
yangtz.cs.liu.campus.domain.recruit.EduRecruitStudent
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitExam
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitExam
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitProject
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitProject
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitRelation
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitRelation
;
import
yangtz.cs.liu.campus.service.recruit.*
;
import
yangtz.cs.liu.campus.service.recruit.IEduRecruitStudentService
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitExamService
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitProjectService
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitRelationService
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitStudentService
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitExamAddressVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitExamAddressVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitExamScoreVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitExamScoreVo
;
import
yangtz.cs.liu.campus.vo.recruit.SchoolRecruitExamVo
;
import
yangtz.cs.liu.campus.vo.recruit.SchoolRecruitExamVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* @author xuten
* @author xuten
*/
*/
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/recruit/EduRecruitStudentServiceImpl.java
View file @
059446fe
...
@@ -15,6 +15,7 @@ import yangtz.cs.liu.campus.mapper.examination.JuniorHighSchoolMapper;
...
@@ -15,6 +15,7 @@ import yangtz.cs.liu.campus.mapper.examination.JuniorHighSchoolMapper;
import
yangtz.cs.liu.campus.mapper.recruit.EduRecruitStudentMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.EduRecruitStudentMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitProjectMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitProjectMapper
;
import
yangtz.cs.liu.campus.service.recruit.IEduRecruitStudentService
;
import
yangtz.cs.liu.campus.service.recruit.IEduRecruitStudentService
;
import
yangtz.cs.liu.campus.vo.examination.EduCruitStudentExportVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduExportVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduExportVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -31,7 +32,7 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -31,7 +32,7 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
private
JuniorHighSchoolMapper
schoolMapper
;
private
JuniorHighSchoolMapper
schoolMapper
;
@Override
@Override
public
void
checkImport
(
List
<
RecruitEdu
ExportVo
>
list
)
{
public
void
checkImport
(
List
<
EduCruitStudent
ExportVo
>
list
)
{
//检验是否为空
//检验是否为空
if
(
StringUtils
.
isNull
(
list
)
||
list
.
size
()
==
0
){
if
(
StringUtils
.
isNull
(
list
)
||
list
.
size
()
==
0
){
throw
new
ServiceException
(
"导入数据不能为空"
);
throw
new
ServiceException
(
"导入数据不能为空"
);
...
@@ -40,7 +41,7 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -40,7 +41,7 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
// 准备记录日志数据
// 准备记录日志数据
int
failureNum
=
0
;
int
failureNum
=
0
;
StringBuilder
failureMsg
=
new
StringBuilder
();
StringBuilder
failureMsg
=
new
StringBuilder
();
for
(
RecruitEdu
ExportVo
vo
:
list
){
for
(
EduCruitStudent
ExportVo
vo
:
list
){
if
(
StringUtils
.
isEmpty
(
vo
.
getEduIdCard
()))
{
if
(
StringUtils
.
isEmpty
(
vo
.
getEduIdCard
()))
{
failureNum
++;
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、身份证号为空,请您重新输入! "
);
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、身份证号为空,请您重新输入! "
);
...
@@ -49,14 +50,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -49,14 +50,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
failureNum
++;
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、姓名为空,请您重新输入! "
);
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、姓名为空,请您重新输入! "
);
}
}
if
(
StringUtils
.
isEmpty
(
vo
.
getEduStudentNumber
()))
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、学籍号为空,请您重新输入! "
);
}
if
(
StringUtils
.
isEmpty
(
vo
.
getEduSchoolName
()))
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、初中学校为空,请您重新输入! "
);
}
if
(
StringUtils
.
isEmpty
(
vo
.
getEduProject
()))
{
if
(
StringUtils
.
isEmpty
(
vo
.
getEduProject
()))
{
failureNum
++;
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、测试项目为空,请您重新输入! "
);
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、测试项目为空,请您重新输入! "
);
...
@@ -75,13 +68,13 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -75,13 +68,13 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
//数据导入
//数据导入
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
importData
(
List
<
RecruitEdu
ExportVo
>
list
,
Long
examId
)
{
public
String
importData
(
List
<
EduCruitStudent
ExportVo
>
list
,
Long
examId
)
{
// 准备记录日志数据
// 准备记录日志数据
int
successNum
=
0
;
int
successNum
=
0
;
StringBuilder
successMsg
=
new
StringBuilder
();
StringBuilder
successMsg
=
new
StringBuilder
();
int
failureNum
=
0
;
int
failureNum
=
0
;
StringBuilder
failureMsg
=
new
StringBuilder
();
StringBuilder
failureMsg
=
new
StringBuilder
();
for
(
RecruitEdu
ExportVo
vo
:
list
){
for
(
EduCruitStudent
ExportVo
vo
:
list
){
LambdaQueryWrapper
<
EduRecruitStudent
>
lqw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
EduRecruitStudent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
EduRecruitStudent:
:
getEduIdCard
,
vo
.
getEduIdCard
()).
eq
(
EduRecruitStudent:
:
getExamId
,
examId
);
lqw
.
eq
(
EduRecruitStudent:
:
getEduIdCard
,
vo
.
getEduIdCard
()).
eq
(
EduRecruitStudent:
:
getExamId
,
examId
);
List
<
EduRecruitStudent
>
students
=
eduRecruitStudentMapper
.
selectList
(
lqw
);
List
<
EduRecruitStudent
>
students
=
eduRecruitStudentMapper
.
selectList
(
lqw
);
...
@@ -94,8 +87,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -94,8 +87,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
//去除空格
//去除空格
student
.
setEduIdCard
(
StringUtil
.
clearSpace
(
vo
.
getEduIdCard
()));
student
.
setEduIdCard
(
StringUtil
.
clearSpace
(
vo
.
getEduIdCard
()));
student
.
setEduStudentName
(
StringUtil
.
clearSpace
(
vo
.
getEduStudentName
()));
student
.
setEduStudentName
(
StringUtil
.
clearSpace
(
vo
.
getEduStudentName
()));
student
.
setEduStudentNumber
(
StringUtil
.
clearSpace
(
vo
.
getEduStudentNumber
()));
student
.
setEduSchoolName
(
StringUtil
.
clearSpace
(
vo
.
getEduSchoolName
()));
student
.
setEduProject
(
StringUtil
.
clearSpace
(
vo
.
getEduProject
()));
student
.
setEduProject
(
StringUtil
.
clearSpace
(
vo
.
getEduProject
()));
student
.
setEduSex
(
vo
.
getEduSex
());
student
.
setEduSex
(
vo
.
getEduSex
());
//设置测试项目id
//设置测试项目id
...
@@ -107,7 +98,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
...
@@ -107,7 +98,6 @@ public class EduRecruitStudentServiceImpl extends ServiceImpl<EduRecruitStudentM
}
}
//设置初中学校id
//设置初中学校id
LambdaQueryWrapper
<
JuniorHighSchool
>
schoolLqw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JuniorHighSchool
>
schoolLqw
=
new
LambdaQueryWrapper
<>();
schoolLqw
.
eq
(
JuniorHighSchool:
:
getSchoolName
,
StringUtil
.
clearSpace
(
vo
.
getEduSchoolName
()));
List
<
JuniorHighSchool
>
schools
=
schoolMapper
.
selectList
(
schoolLqw
);
List
<
JuniorHighSchool
>
schools
=
schoolMapper
.
selectList
(
schoolLqw
);
if
(
StringUtils
.
isNotNull
(
schools
)
&&
schools
.
size
()
>
0
){
if
(
StringUtils
.
isNotNull
(
schools
)
&&
schools
.
size
()
>
0
){
student
.
setEduJuniorId
(
schools
.
get
(
0
).
getId
());
student
.
setEduJuniorId
(
schools
.
get
(
0
).
getId
());
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/recruit/SchoolRecruitStudentServiceImpl.java
View file @
059446fe
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
recruit
;
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
recruit
;
import
static
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ObjectUtils
.
isNotNull
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.constant.Constants
;
import
com.ruoyi.common.constant.Constants
;
...
@@ -12,31 +14,42 @@ import com.ruoyi.common.utils.SecurityUtils;
...
@@ -12,31 +14,42 @@ import com.ruoyi.common.utils.SecurityUtils;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.framework.manager.AsyncManager
;
import
com.ruoyi.framework.manager.AsyncManager
;
import
com.ruoyi.framework.manager.factory.AsyncFactory
;
import
com.ruoyi.framework.manager.factory.AsyncFactory
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
yangtz.cs.liu.campus.constant.RecruitExamConstant
;
import
yangtz.cs.liu.campus.constant.RecruitExamConstant
;
import
yangtz.cs.liu.campus.domain.examination.JuniorHighSchool
;
import
yangtz.cs.liu.campus.domain.examination.JuniorHighSchool
;
import
yangtz.cs.liu.campus.domain.recruit.*
;
import
yangtz.cs.liu.campus.domain.recruit.EduRecruitStudent
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitExam
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitProject
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitRelation
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudentFamily
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudentFjb
;
import
yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudentJl
;
import
yangtz.cs.liu.campus.mapper.examination.JuniorHighSchoolMapper
;
import
yangtz.cs.liu.campus.mapper.examination.JuniorHighSchoolMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.*
;
import
yangtz.cs.liu.campus.mapper.recruit.EduRecruitStudentMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitExamMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitProjectMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitRelationMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentFamilyMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentFjbMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentJlMapper
;
import
yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentMapper
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitStudentService
;
import
yangtz.cs.liu.campus.service.recruit.ISchoolRecruitStudentService
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitAndEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitAndEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.SchoolRecruitStudentVo
;
import
yangtz.cs.liu.campus.vo.recruit.SchoolRecruitStudentVo
;
import
yangtz.cs.liu.webpage.domain.WebRegisterBody
;
import
yangtz.cs.liu.webpage.domain.WebRegisterBody
;
import
yangtz.cs.liu.webpage.vo.RecruitAdmissionTicketVo
;
import
yangtz.cs.liu.webpage.vo.QueryScoreVo
;
import
yangtz.cs.liu.webpage.vo.QueryScoreVo
;
import
yangtz.cs.liu.webpage.vo.RecruitAdmissionTicketVo
;
import
yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo
;
import
yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
static
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ObjectUtils
.
isNotNull
;
@Service
@Service
public
class
SchoolRecruitStudentServiceImpl
extends
ServiceImpl
<
SchoolRecruitStudentMapper
,
SchoolRecruitStudent
>
implements
ISchoolRecruitStudentService
{
public
class
SchoolRecruitStudentServiceImpl
extends
ServiceImpl
<
SchoolRecruitStudentMapper
,
SchoolRecruitStudent
>
implements
ISchoolRecruitStudentService
{
@Autowired
@Autowired
...
@@ -548,8 +561,8 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
...
@@ -548,8 +561,8 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
//设置结果集对应教育局信息
//设置结果集对应教育局信息
studentVo
.
setEduIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setEduIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setEduStudentName
(
eduRecruitStudent
.
getEduStudentName
());
studentVo
.
setEduStudentName
(
eduRecruitStudent
.
getEduStudentName
());
studentVo
.
setEduStudentNumber
(
eduRecruitStudent
.
getEduStudentNumber
());
//
studentVo.setEduStudentNumber(eduRecruitStudent.getEduStudentNumber());
studentVo
.
setEduSchoolName
(
eduRecruitStudent
.
getEduSchoolName
());
//
studentVo.setEduSchoolName(eduRecruitStudent.getEduSchoolName());
studentVo
.
setEduProject
(
eduRecruitStudent
.
getEduProject
());
studentVo
.
setEduProject
(
eduRecruitStudent
.
getEduProject
());
studentVo
.
setEduSex
(
eduRecruitStudent
.
getEduSex
());
studentVo
.
setEduSex
(
eduRecruitStudent
.
getEduSex
());
break
;
break
;
...
@@ -562,8 +575,8 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
...
@@ -562,8 +575,8 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
studentVo
.
setInfoIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setInfoIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setEduIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setEduIdCard
(
eduRecruitStudent
.
getEduIdCard
());
studentVo
.
setEduStudentName
(
eduRecruitStudent
.
getEduStudentName
());
studentVo
.
setEduStudentName
(
eduRecruitStudent
.
getEduStudentName
());
studentVo
.
setEduStudentNumber
(
eduRecruitStudent
.
getEduStudentNumber
());
//
studentVo.setEduStudentNumber(eduRecruitStudent.getEduStudentNumber());
studentVo
.
setEduSchoolName
(
eduRecruitStudent
.
getEduSchoolName
());
//
studentVo.setEduSchoolName(eduRecruitStudent.getEduSchoolName());
studentVo
.
setEduProject
(
eduRecruitStudent
.
getEduProject
());
studentVo
.
setEduProject
(
eduRecruitStudent
.
getEduProject
());
studentVo
.
setEduSex
(
eduRecruitStudent
.
getEduSex
());
studentVo
.
setEduSex
(
eduRecruitStudent
.
getEduSex
());
voList
.
add
(
studentVo
);
voList
.
add
(
studentVo
);
...
@@ -707,12 +720,12 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
...
@@ -707,12 +720,12 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
if
(!
student
.
getStudentName
().
equals
(
eduRecruitStudent
.
getEduStudentName
()))
{
if
(!
student
.
getStudentName
().
equals
(
eduRecruitStudent
.
getEduStudentName
()))
{
flag
=
false
;
flag
=
false
;
}
}
if
(!
student
.
getStudentNumber
().
equals
(
eduRecruitStudent
.
getEduStudentNumber
()))
{
//
if (!student.getStudentNumber().equals(eduRecruitStudent.getEduStudentNumber())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
student
.
getSchoolName
().
equals
(
eduRecruitStudent
.
getEduSchoolName
()))
{
//
if (!student.getSchoolName().equals(eduRecruitStudent.getEduSchoolName())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
student
.
getProject
().
equals
(
eduRecruitStudent
.
getEduProject
()))
{
if
(!
student
.
getProject
().
equals
(
eduRecruitStudent
.
getEduProject
()))
{
flag
=
false
;
flag
=
false
;
}
}
...
@@ -772,12 +785,12 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
...
@@ -772,12 +785,12 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
if
(!
vo
.
getStudentName
().
equals
(
eduRecruitStudent
.
getEduStudentName
()))
{
if
(!
vo
.
getStudentName
().
equals
(
eduRecruitStudent
.
getEduStudentName
()))
{
flag
=
false
;
flag
=
false
;
}
}
if
(!
vo
.
getStudentNumber
().
equals
(
eduRecruitStudent
.
getEduStudentNumber
()))
{
//
if (!vo.getStudentNumber().equals(eduRecruitStudent.getEduStudentNumber())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
vo
.
getSchoolName
().
equals
(
eduRecruitStudent
.
getEduSchoolName
()))
{
//
if (!vo.getSchoolName().equals(eduRecruitStudent.getEduSchoolName())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
vo
.
getProject
().
equals
(
eduRecruitStudent
.
getEduProject
()))
{
if
(!
vo
.
getProject
().
equals
(
eduRecruitStudent
.
getEduProject
()))
{
flag
=
false
;
flag
=
false
;
}
}
...
@@ -959,18 +972,18 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
...
@@ -959,18 +972,18 @@ public class SchoolRecruitStudentServiceImpl extends ServiceImpl<SchoolRecruitSt
if
(!
vo
.
getStudentName
().
equals
(
vo
.
getEduStudentName
()))
{
if
(!
vo
.
getStudentName
().
equals
(
vo
.
getEduStudentName
()))
{
flag
=
false
;
flag
=
false
;
}
}
if
(!
vo
.
getStudentNumber
().
equals
(
vo
.
getEduStudentNumber
()))
{
//
if (!vo.getStudentNumber().equals(vo.getEduStudentNumber())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
vo
.
getSchoolName
().
equals
(
vo
.
getEduSchoolName
()))
{
//
if (!vo.getSchoolName().equals(vo.getEduSchoolName())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(!
vo
.
getProject
().
equals
(
vo
.
getEduProject
()))
{
if
(!
vo
.
getProject
().
equals
(
vo
.
getEduProject
()))
{
flag
=
false
;
flag
=
false
;
}
}
if
(!
vo
.
getSex
().
equals
(
vo
.
getEduSex
()))
{
//
if (!vo.getSex().equals(vo.getEduSex())) {
flag
=
false
;
//
flag = false;
}
//
}
if
(
flag
)
{
if
(
flag
)
{
//全部都匹配
//全部都匹配
vo
.
setMatchStatus
(
RecruitExamConstant
.
PASS
);
vo
.
setMatchStatus
(
RecruitExamConstant
.
PASS
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/recruit/IEduRecruitStudentService.java
View file @
059446fe
...
@@ -2,14 +2,15 @@ package yangtz.cs.liu.campus.service.recruit;
...
@@ -2,14 +2,15 @@ package yangtz.cs.liu.campus.service.recruit;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
yangtz.cs.liu.campus.domain.recruit.EduRecruitStudent
;
import
yangtz.cs.liu.campus.domain.recruit.EduRecruitStudent
;
import
yangtz.cs.liu.campus.vo.examination.EduCruitStudentExportVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduExportVo
;
import
yangtz.cs.liu.campus.vo.recruit.RecruitEduExportVo
;
import
java.util.List
;
import
java.util.List
;
public
interface
IEduRecruitStudentService
extends
IService
<
EduRecruitStudent
>
{
public
interface
IEduRecruitStudentService
extends
IService
<
EduRecruitStudent
>
{
//校验导入的数据
//校验导入的数据
void
checkImport
(
List
<
RecruitEdu
ExportVo
>
list
);
void
checkImport
(
List
<
EduCruitStudent
ExportVo
>
list
);
//数据导入
//数据导入
String
importData
(
List
<
RecruitEdu
ExportVo
>
list
,
Long
examId
);
String
importData
(
List
<
EduCruitStudent
ExportVo
>
list
,
Long
examId
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/examination/EduCruitStudentExportVo.java
0 → 100644
View file @
059446fe
package
yangtz
.
cs
.
liu
.
campus
.
vo
.
examination
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
/**
* @author xuten
*/
@Data
public
class
EduCruitStudentExportVo
{
/**
* 序号
* */
@Excel
(
name
=
"序号"
)
private
int
xh
;
/** 身份证号 */
@Excel
(
name
=
"身份证号"
,
width
=
25
)
private
String
eduIdCard
;
/** 姓名 */
@Excel
(
name
=
"姓名"
)
private
String
eduStudentName
;
/** 性别(0=男,1=女) */
@Excel
(
name
=
"性别"
,
combo
=
{
"男"
,
"女"
},
readConverterExp
=
"0=男,1=女"
)
private
String
eduSex
;
/** 测试项目 */
@Excel
(
name
=
"测试项目"
)
private
String
eduProject
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/recruit/RecruitEduStudentVo.java
View file @
059446fe
...
@@ -6,6 +6,7 @@ import lombok.Data;
...
@@ -6,6 +6,7 @@ import lombok.Data;
@Data
@Data
public
class
RecruitEduStudentVo
extends
OurBaseEntity
{
public
class
RecruitEduStudentVo
extends
OurBaseEntity
{
/**
/**
* 考试id
* 考试id
*/
*/
...
@@ -38,67 +39,91 @@ public class RecruitEduStudentVo extends OurBaseEntity {
...
@@ -38,67 +39,91 @@ public class RecruitEduStudentVo extends OurBaseEntity {
/***********学生自己的报名信息***********/
/***********学生自己的报名信息***********/
/** 姓名 */
/**
* 姓名
*/
@Excel
(
name
=
"姓名"
)
@Excel
(
name
=
"姓名"
)
private
String
studentName
;
private
String
studentName
;
/** 身份证号 */
/**
* 身份证号
*/
@Excel
(
name
=
"身份证号"
)
@Excel
(
name
=
"身份证号"
)
private
String
idCard
;
private
String
idCard
;
/** 学籍号 */
/**
* 学籍号
*/
@Excel
(
name
=
"学籍号"
)
@Excel
(
name
=
"学籍号"
)
private
String
studentNumber
;
private
String
studentNumber
;
/** 初中学校id */
/**
* 初中学校id
*/
@Excel
(
name
=
"初中学校id"
)
@Excel
(
name
=
"初中学校id"
)
private
Long
juniorId
;
private
Long
juniorId
;
private
String
schoolName
;
private
String
schoolName
;
/** 测试项目id */
/**
* 测试项目id
*/
@Excel
(
name
=
"测试项目id"
)
@Excel
(
name
=
"测试项目id"
)
private
Long
testId
;
private
Long
testId
;
private
String
project
;
private
String
project
;
/** 性别(0=男,1=女) */
/**
* 性别(0=男,1=女)
*/
@Excel
(
name
=
"性别"
,
readConverterExp
=
"0==男,1=女"
)
@Excel
(
name
=
"性别"
,
readConverterExp
=
"0==男,1=女"
)
private
String
sex
;
private
String
sex
;
/** 照片 */
/**
* 照片
*/
@Excel
(
name
=
"照片"
)
@Excel
(
name
=
"照片"
)
private
String
photo
;
private
String
photo
;
/***************教育局信息***************/
/***************教育局信息***************/
/** 身份证号 */
/**
* 身份证号
*/
@Excel
(
name
=
"身份证号"
)
@Excel
(
name
=
"身份证号"
)
private
String
eduIdCard
;
private
String
eduIdCard
;
/** 姓名 */
/**
* 姓名
*/
@Excel
(
name
=
"姓名"
)
@Excel
(
name
=
"姓名"
)
private
String
eduStudentName
;
private
String
eduStudentName
;
/** 学籍号 */
/** 学籍号 */
@Excel
(
name
=
"学籍号"
)
//
@Excel(name = "学籍号")
private
String
eduStudentNumber
;
//
private String eduStudentNumber;
/** 初中学校id */
/** 初中学校id */
@Excel
(
name
=
"初中学校id"
)
//
@Excel(name = "初中学校id")
private
Long
eduJuniorId
;
//
private Long eduJuniorId;
/** 初中学校 */
/** 初中学校 */
@Excel
(
name
=
"初中学校"
)
//
@Excel(name = "初中学校")
private
String
eduSchoolName
;
//
private String eduSchoolName;
/** 测试项目id */
/**
* 测试项目id
*/
@Excel
(
name
=
"测试项目id"
)
@Excel
(
name
=
"测试项目id"
)
private
Long
eduTestId
;
private
Long
eduTestId
;
/** 测试项目 */
/**
* 测试项目
*/
@Excel
(
name
=
"测试项目"
)
@Excel
(
name
=
"测试项目"
)
private
String
eduProject
;
private
String
eduProject
;
/** 性别(0=男,1=女) */
/**
* 性别(0=男,1=女)
*/
@Excel
(
name
=
"性别"
,
readConverterExp
=
"0=男,1=女"
)
@Excel
(
name
=
"性别"
,
readConverterExp
=
"0=男,1=女"
)
private
String
eduSex
;
private
String
eduSex
;
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/recruit/SchoolRecruitStudentVo.java
View file @
059446fe
...
@@ -22,12 +22,12 @@ public class SchoolRecruitStudentVo extends OurBaseEntity {
...
@@ -22,12 +22,12 @@ public class SchoolRecruitStudentVo extends OurBaseEntity {
private
String
studentName
;
private
String
studentName
;
/** 学籍号 */
/** 学籍号 */
@Excel
(
name
=
"学籍号"
,
width
=
30
)
//
@Excel(name = "学籍号",width = 30)
private
String
studentNumber
;
private
String
studentNumber
;
/** 初中学校id */
/** 初中学校id */
private
Long
juniorId
;
private
Long
juniorId
;
@Excel
(
name
=
"初中学校"
,
width
=
30
)
//
@Excel(name = "初中学校",width = 30)
private
String
schoolName
;
private
String
schoolName
;
/** 测试项目id */
/** 测试项目id */
...
@@ -40,11 +40,11 @@ public class SchoolRecruitStudentVo extends OurBaseEntity {
...
@@ -40,11 +40,11 @@ public class SchoolRecruitStudentVo extends OurBaseEntity {
private
String
sex
;
private
String
sex
;
/** 身高(单位厘米) */
/** 身高(单位厘米) */
@Excel
(
name
=
"身高"
)
//
@Excel(name = "身高")
private
double
height
;
private
double
height
;
/** 体重(单位千克) */
/** 体重(单位千克) */
@Excel
(
name
=
"体重"
)
//
@Excel(name = "体重")
private
double
weight
;
private
double
weight
;
/** 联系方式1 */
/** 联系方式1 */
...
...
smart-campus/src/main/resources/mapper/recruit/SchoolRecruitRelationMapper.xml
View file @
059446fe
...
@@ -37,14 +37,27 @@
...
@@ -37,14 +37,27 @@
</select>
</select>
<select
id=
"getInfoCheck"
resultType=
"yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo"
>
<select
id=
"getInfoCheck"
resultType=
"yangtz.cs.liu.campus.vo.recruit.RecruitEduStudentVo"
>
select sar.id, sar.exam_id, sar.student_id, sar.audit_status, sar.info_id_card,
select sar.id,
sas.student_name, sas.id_card, sas.student_number,sar.junior_id, jhs.school_name,
sar.exam_id,
sar.test_id, stp.project,sas.sex, sas.photo
sar.student_id,
sar.audit_status,
sar.info_id_card,
sas.student_name,
sas.id_card,
sas.student_number,
sar.junior_id,
jhs.school_name,
sar.test_id,
stp.project,
sas.sex,
sas.photo
from school_recruit_relation sar
from school_recruit_relation sar
left join school_recruit_student sas on sas.id = sar.student_id
left join school_recruit_student sas on sas.id = sar.student_id
left join school_recruit_project stp on stp.id = sar.test_id
left join school_recruit_project stp on stp.id = sar.test_id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join junior_high_school jhs on jhs.id = sar.junior_id
where sar.del_flag = '0' and sas.del_flag = '0' and sar.exam_id = #{examId}
where sar.del_flag = '0'
and sas.del_flag = '0'
and sar.exam_id = #{examId}
order by sar.create_time desc
order by sar.create_time desc
</select>
</select>
...
...
smart-campus/src/main/resources/mapper/recruit/SchoolRecruitStudentMapper.xml
View file @
059446fe
<?xml version="1.0" encoding="UTF-8" ?>
<?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" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentMapper"
>
<mapper
namespace=
"yangtz.cs.liu.campus.mapper.recruit.SchoolRecruitStudentMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
type=
"SchoolRecruitStudent"
id=
"SchoolRecruitStudentResult"
>
<resultMap
type=
"SchoolRecruitStudent"
id=
"SchoolRecruitStudentResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"studentName"
column=
"student_name"
/>
<result
property=
"studentName"
column=
"student_name"
/>
<result
property=
"idCard"
column=
"id_card"
/>
<result
property=
"idCard"
column=
"id_card"
/>
<result
property=
"studentNumber"
column=
"student_number"
/>
<result
property=
"studentNumber"
column=
"student_number"
/>
<result
property=
"sex"
column=
"sex"
/>
<result
property=
"sex"
column=
"sex"
/>
<result
property=
"height"
column=
"height"
/>
<result
property=
"height"
column=
"height"
/>
<result
property=
"weight"
column=
"weight"
/>
<result
property=
"weight"
column=
"weight"
/>
<result
property=
"telephone1"
column=
"telephone1"
/>
<result
property=
"telephone1"
column=
"telephone1"
/>
<result
property=
"telephone2"
column=
"telephone2"
/>
<result
property=
"telephone2"
column=
"telephone2"
/>
<result
property=
"photo"
column=
"photo"
/>
<result
property=
"photo"
column=
"photo"
/>
<result
property=
"phoneNumber"
column=
"phone_number"
/>
<result
property=
"phoneNumber"
column=
"phone_number"
/>
<result
property=
"password"
column=
"password"
/>
<result
property=
"password"
column=
"password"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"mz"
column=
"mz"
/>
<result
property=
"mz"
column=
"mz"
/>
<result
property=
"zzmm"
column=
"zzmm"
/>
<result
property=
"zzmm"
column=
"zzmm"
/>
<result
property=
"csrq"
column=
"csrq"
/>
<result
property=
"csrq"
column=
"csrq"
/>
<result
property=
"hyzk"
column=
"hyzk"
/>
<result
property=
"hyzk"
column=
"hyzk"
/>
<result
property=
"hjszd"
column=
"hjszd"
/>
<result
property=
"hjszd"
column=
"hjszd"
/>
<result
property=
"syd"
column=
"syd"
/>
<result
property=
"syd"
column=
"syd"
/>
<result
property=
"kssf"
column=
"kssf"
/>
<result
property=
"kssf"
column=
"kssf"
/>
<result
property=
"cjgzsj"
column=
"cjgzsj"
/>
<result
property=
"cjgzsj"
column=
"cjgzsj"
/>
<result
property=
"xgzdwzw"
column=
"xgzdwzw"
/>
<result
property=
"xgzdwzw"
column=
"xgzdwzw"
/>
<result
property=
"bkxlsfqrz"
column=
"bkxlsfqrz"
/>
<result
property=
"bkxlsfqrz"
column=
"bkxlsfqrz"
/>
<result
property=
"xl"
column=
"xl"
/>
<result
property=
"xl"
column=
"xl"
/>
<result
property=
"xw"
column=
"xw"
/>
<result
property=
"xw"
column=
"xw"
/>
<result
property=
"byxx"
column=
"byxx"
/>
<result
property=
"byxx"
column=
"byxx"
/>
<result
property=
"sxzz"
column=
"sxzz"
/>
<result
property=
"sxzz"
column=
"sxzz"
/>
<result
property=
"zhbysj"
column=
"zhbysj"
/>
<result
property=
"zhbysj"
column=
"zhbysj"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSchoolRecruitStudentVo"
>
<sql
id=
"selectSchoolRecruitStudentVo"
>
select id, student_name, id_card, student_number, sex, height, weight, telephone1, telephone2, photo, phone_number, password, create_time, create_by, update_time, update_by, del_flag from school_recruit_student
select id,
student_name,
id_card,
student_number,
sex,
height,
weight,
telephone1,
telephone2,
photo,
phone_number,
password,
create_time,
create_by,
update_time,
update_by,
del_flag
from school_recruit_student
</sql>
</sql>
<select
id=
"checkPhoneUnique"
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
<select
id=
"checkPhoneUnique"
select id, phone_number from school_recruit_student where phone_number = #{phoneNumber} and del_flag = '0' limit 1
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
select id, phone_number
from school_recruit_student
where phone_number = #{phoneNumber}
and del_flag = '0' limit 1
</select>
</select>
<select
id=
"checkIdCardUnique"
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
<select
id=
"checkIdCardUnique"
select id, id_card from school_recruit_student where id_card = #{idcard} and del_flag = '0' limit 1
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
select id, id_card
from school_recruit_student
where id_card = #{idcard}
and del_flag = '0' limit 1
</select>
</select>
<select
id=
"getStudentByPhoneNumber"
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
<select
id=
"getStudentByPhoneNumber"
resultType=
"yangtz.cs.liu.campus.domain.recruit.SchoolRecruitStudent"
>
<include
refid=
"selectSchoolRecruitStudentVo"
/>
<include
refid=
"selectSchoolRecruitStudentVo"
/>
<where>
<where>
del_flag = '0' and phone_number = #{phoneNumber} and id_card = #{idCard}
del_flag = '0' and phone_number = #{phoneNumber} and id_card = #{idCard}
...
@@ -58,15 +85,34 @@
...
@@ -58,15 +85,34 @@
</select>
</select>
<select
id=
"getInfo"
resultType=
"yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo"
>
<select
id=
"getInfo"
resultType=
"yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo"
>
select sas.id, sas.student_name, sas.id_card, sas.student_number, sar.junior_id, jhs.school_name, sar.test_id, stp.project, sas.sex, sas.height, sas.weight, sas.telephone1, sas.telephone2,
select sas.id,
sas.photo, sas.phone_number, sas.password from school_recruit_student sas
sas.student_name,
sas.id_card,
sas.student_number,
sar.junior_id,
jhs.school_name,
sar.test_id,
stp.project,
sas.sex,
sas.height,
sas.weight,
sas.telephone1,
sas.telephone2,
sas.photo,
sas.phone_number,
sas.password
from school_recruit_student sas
left join school_recruit_relation sar on sar.student_id = sas.id
left join school_recruit_relation sar on sar.student_id = sas.id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join school_recruit_project stp on stp.id = sar.test_id
left join school_recruit_project stp on stp.id = sar.test_id
where sas.del_flag = '0' and sar.del_flag = '0' and sas.id = #{id}
where sas.del_flag = '0'
and sar.del_flag = '0'
and sas.id = #{id}
</select>
</select>
<select
id=
"editExport"
resultType=
"yangtz.cs.liu.campus.vo.recruit.SchoolRecruitStudentVo"
>
<select
id=
"editExport"
resultType=
"yangtz.cs.liu.campus.vo.recruit.SchoolRecruitStudentVo"
>
select sas.id, sas.student_name, sas.id_card, sas.student_number, sar.junior_id, jhs.school_name, sar.test_id, stp.project, sas.sex, sas.height, sas.weight, sas.telephone1, sas.telephone2,
select sas.id, sas.student_name, sas.id_card, sas.student_number, sar.junior_id,
jhs.school_name, sar.test_id, stp.project, sas.sex, sas.height, sas.weight, sas.telephone1,
sas.telephone2,
sas.photo from school_recruit_student sas
sas.photo from school_recruit_student sas
left join school_recruit_relation sar on sar.student_id = sas.id
left join school_recruit_relation sar on sar.student_id = sas.id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join junior_high_school jhs on jhs.id = sar.junior_id
...
@@ -82,13 +128,45 @@
...
@@ -82,13 +128,45 @@
</select>
</select>
<select
id=
"getStuInfo"
resultType=
"yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo"
>
<select
id=
"getStuInfo"
resultType=
"yangtz.cs.liu.webpage.vo.WebSchoolRecruitStudentVo"
>
select sas.id, sas.student_name, sas.id_card, sas.student_number, sar.junior_id, jhs.school_name, sar.test_id, stp.project, sas.sex, sas.height, sas.weight, sas.telephone1, sas.telephone2,
select sas.id,
sas.photo, sas.phone_number, sas.password, sar.audit_status ,
sas.student_name,
sas.mz, sas.zzmm,sas.csrq, sas.hyzk, sas.hjszd, sas.syd, sas.kssf, sas.cjgzsj, sas.xgzdwzw, sas.bkxlsfqrz, sas.xl, sas.xw, sas.byxx, sas.sxzz, sas.zhbysj
sas.id_card,
sas.student_number,
sar.junior_id,
jhs.school_name,
sar.test_id,
stp.project,
sas.sex,
sas.height,
sas.weight,
sas.telephone1,
sas.telephone2,
sas.photo,
sas.phone_number,
sas.password,
sar.audit_status,
sas.mz,
sas.zzmm,
sas.csrq,
sas.hyzk,
sas.hjszd,
sas.syd,
sas.kssf,
sas.cjgzsj,
sas.xgzdwzw,
sas.bkxlsfqrz,
sas.xl,
sas.xw,
sas.byxx,
sas.sxzz,
sas.zhbysj
from school_recruit_student sas
from school_recruit_student sas
left join school_recruit_relation sar on sar.student_id = sas.id
left join school_recruit_relation sar on sar.student_id = sas.id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join junior_high_school jhs on jhs.id = sar.junior_id
left join school_recruit_project stp on stp.id = sar.test_id
left join school_recruit_project stp on stp.id = sar.test_id
where sas.del_flag = '0' and sar.del_flag = '0' and sas.id = #{id} and sar.exam_id = #{examId}
where sas.del_flag = '0'
and sar.del_flag = '0'
and sas.id = #{id}
and sar.exam_id = #{examId}
</select>
</select>
</mapper>
</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