Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
吴学德
gdtel-gztel-school-center
Commits
86b643f6
Commit
86b643f6
authored
Mar 31, 2020
by
彭祥礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取套餐信息和过学生ID查询学生信息 合并sql和方法,可以适用到数数库迁移
parent
a6465285
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
16 deletions
+1
-16
new-user/src/main/java/com/winsun/controller/StartSelectController.java
+1
-16
No files found.
new-user/src/main/java/com/winsun/controller/StartSelectController.java
View file @
86b643f6
...
@@ -44,6 +44,7 @@ public class StartSelectController {
...
@@ -44,6 +44,7 @@ public class StartSelectController {
/**
/**
*通过name和身份证查询学生信息
*通过name和身份证查询学生信息
* @param stuId 学生ID
* @param name 用户名
* @param name 用户名
* @param idCard 身份证号
* @param idCard 身份证号
* @return
* @return
...
@@ -64,25 +65,9 @@ public class StartSelectController {
...
@@ -64,25 +65,9 @@ public class StartSelectController {
studentWrapper
.
addFilter
(
"id_card = '"
+
idCard
+
"'"
);
studentWrapper
.
addFilter
(
"id_card = '"
+
idCard
+
"'"
);
}
}
List
<
Map
<
String
,
Object
>>
studentMap
=
studentMapper
.
selectMaps
(
studentWrapper
);
List
<
Map
<
String
,
Object
>>
studentMap
=
studentMapper
.
selectMaps
(
studentWrapper
);
//Map<String,Object> studentMap = schoolMapper.selectStudentByNameAndIdCard(name,idCard);
if
(
studentMap
==
null
||
studentMap
.
size
()
==
0
)
{
if
(
studentMap
==
null
||
studentMap
.
size
()
==
0
)
{
return
ResponseData
.
error
(
"该学生信息不存在!"
);
return
ResponseData
.
error
(
"该学生信息不存在!"
);
}
}
return
ResponseData
.
success
(
studentMap
.
get
(
0
),
"验证通过"
);
return
ResponseData
.
success
(
studentMap
.
get
(
0
),
"验证通过"
);
}
}
/**
*通过学生ID查询学生信息
* @param stuId 学生ID
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"getStuInfoById"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Map
<
String
,
Object
>>
getStuInfoById
(
String
stuId
){
Map
<
String
,
Object
>
studentMap
=
studentMapper
.
getStuById
(
stuId
);
if
(
studentMap
==
null
||
studentMap
.
size
()
==
0
)
{
return
ResponseData
.
error
(
"该学生信息不存在!"
);
}
return
ResponseData
.
success
(
studentMap
,
"查询成功"
);
}
}
}
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