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
105889c3
Commit
105889c3
authored
Apr 08, 2020
by
弓厶
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
15306aef
02606456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
new-user/src/main/java/com/winsun/controller/StartSelectController.java
+34
-0
No files found.
new-user/src/main/java/com/winsun/controller/StartSelectController.java
View file @
105889c3
...
...
@@ -74,6 +74,40 @@ public class StartSelectController {
}
/**
*跟据合伙人id查找融合套餐信息
* @param hhrId
* @return
*/
@RequestMapping
(
"/getTcInfoByHhrId"
)
public
ResponseData
<
Map
<
String
,
Object
>>
getTcInfoByHhrId
(
@RequestParam
(
"hhrId"
)
String
hhrId
){
if
(
StringUtils
.
isEmpty
(
hhrId
)){
return
ResponseData
.
error
(
"请输入合伙人id"
);
}
Map
<
String
,
Object
>
objMap
=
new
HashMap
<>();
Wrapper
<
UserSchool
>
usWrapper
=
new
EntityWrapper
<>();
usWrapper
.
setSqlSelect
(
" school_id AS schoolId "
);
usWrapper
.
addFilter
(
" user_id = '"
+
hhrId
+
"'"
);
Map
<
String
,
Object
>
usMap
=
userSchoolMapper
.
selectMaps
(
usWrapper
).
get
(
0
);
Wrapper
<
School
>
schoolWrapper
=
new
EntityWrapper
<>();
schoolWrapper
.
setSqlSelect
(
" id,sub_name AS subName,bandproduct_id AS bandproductId "
);
schoolWrapper
.
addFilter
(
" id = '"
+
usMap
.
get
(
"schoolId"
)
+
"'"
);
Map
<
String
,
Object
>
schoolMap
=
schoolMapper
.
selectMaps
(
schoolWrapper
).
get
(
0
);
Wrapper
<
Product
>
productWrapper
=
new
EntityWrapper
<>();
productWrapper
.
setSqlSelect
(
" product_id,product_title,product_region,university_id "
);
productWrapper
.
addFilter
(
" product_id = '"
+
schoolMap
.
get
(
"bandproductId"
)
+
"'"
);
Map
<
String
,
Object
>
productMap
=
productMapper
.
selectMaps
(
productWrapper
).
get
(
0
);
/*if (CollectionUtils.isEmpty(mapList)){
return ResponseData.error("没有查询相关的合伙人id的信息");
}
Map<String, Object> map = mapList.get(0);*/
objMap
.
put
(
"userMap"
,
usMap
);
objMap
.
put
(
"schoolMap"
,
schoolMap
);
objMap
.
put
(
"productMap"
,
productMap
);
return
ResponseData
.
success
(
objMap
);
}
/**
*通过学生ID,name和身份证查询学生信息
* @param stuId 学生ID
* @param name 用户名
...
...
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