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
fca73a8f
Commit
fca73a8f
authored
Nov 03, 2021
by
伍思炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询学校对应的客服二维码时限制查询字段
parent
d2d54ff7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
common/src/main/java/com/winsun/mapper/SchoolMapper.java
+2
-0
common/src/main/resources/com/winsun/mapper/mapping/SchoolMapper.xml
+5
-0
old-user/src/main/java/com/winsun/controller/ChooseController.java
+3
-1
No files found.
common/src/main/java/com/winsun/mapper/SchoolMapper.java
View file @
fca73a8f
...
@@ -68,4 +68,6 @@ public interface SchoolMapper extends BaseMapper<School> {
...
@@ -68,4 +68,6 @@ public interface SchoolMapper extends BaseMapper<School> {
int
insertNetworkInfo
(
Map
<
String
,
Object
>
map
);
int
insertNetworkInfo
(
Map
<
String
,
Object
>
map
);
List
<
Schools
>
selectHhrSchool
();
List
<
Schools
>
selectHhrSchool
();
String
selectServiceQrcode
(
@Param
(
"schoolId"
)
String
schoolId
);
}
}
common/src/main/resources/com/winsun/mapper/mapping/SchoolMapper.xml
View file @
fca73a8f
...
@@ -12,6 +12,11 @@
...
@@ -12,6 +12,11 @@
on hs.id = hus.school_id
on hs.id = hus.school_id
</select>
</select>
<select
id=
"selectServiceQrcode"
resultType=
"java.lang.String"
>
select service_qrcode from hhr_school where id = #{schoolId};
</select>
<insert
id=
"insertSchoolMap"
>
<insert
id=
"insertSchoolMap"
>
INSERT INTO hhr_school
INSERT INTO hhr_school
(sub_name,school_name,status,bandproduct_id,net_id,lzgh,lz_user,network_code,network_name,app_id,app_key)
(sub_name,school_name,status,bandproduct_id,net_id,lzgh,lz_user,network_code,network_name,app_id,app_key)
...
...
old-user/src/main/java/com/winsun/controller/ChooseController.java
View file @
fca73a8f
...
@@ -150,7 +150,9 @@ public class ChooseController {
...
@@ -150,7 +150,9 @@ public class ChooseController {
@RequestMapping
(
value
=
"selectSchoolInfo"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"selectSchoolInfo"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
School
>
selectSchoolInfo
(
@RequestParam
(
"partner"
)
String
partner
)
{
public
ResponseData
<
School
>
selectSchoolInfo
(
@RequestParam
(
"partner"
)
String
partner
)
{
String
schoolId
=
appMapper
.
selectSchoolId
(
partner
);
String
schoolId
=
appMapper
.
selectSchoolId
(
partner
);
School
school
=
schoolMapper
.
selectById
(
schoolId
);
String
serviceQrcode
=
schoolMapper
.
selectServiceQrcode
(
schoolId
);
School
school
=
new
School
();
school
.
setServiceQrcode
(
serviceQrcode
);
return
ResponseData
.
success
(
school
);
return
ResponseData
.
success
(
school
);
}
}
...
...
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