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
83ea7190
Commit
83ea7190
authored
Feb 14, 2022
by
伍思炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
毕业生宽带下单二维码
parent
0a2fb603
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
new-user/src/main/java/com/winsun/controller/StartSelectController.java
+14
-1
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
+4
-2
No files found.
new-user/src/main/java/com/winsun/controller/StartSelectController.java
View file @
83ea7190
...
...
@@ -82,12 +82,25 @@ public class StartSelectController {
UserSchool
userSchool
=
userSchoolMapper
.
selectById
(
id
);
if
(
userSchool
!=
null
){
School
school
=
schoolMapper
.
selectById
(
userSchool
.
getSchoolId
());
System
.
out
.
println
(
school
);
return
ResponseData
.
success
(
school
);
}
return
ResponseData
.
error
(
"没有查询相关的合伙人id的信息!!!"
);
}
/**
* 查询学校信息中的老用户升级套餐二维码
*/
@RequestMapping
(
value
=
"findSchoolPackageQrcode"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
selectSchoolPackageQrcode
(
@RequestParam
(
"id"
)
String
id
)
{
UserSchool
userSchool
=
userSchoolMapper
.
selectById
(
id
);
if
(
userSchool
!=
null
){
School
school
=
schoolMapper
.
selectById
(
userSchool
.
getSchoolId
());
return
ResponseData
.
success
(
school
.
getPackageQrcode
());
}
return
ResponseData
.
error
(
"没有查询相关的合伙人id的信息!!!"
);
}
@ResponseBody
@RequestMapping
(
value
=
"sendBysCodes"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Map
<
String
,
Object
>>
checkStudent
(
String
phone
)
{
...
...
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
View file @
83ea7190
...
...
@@ -143,6 +143,7 @@ public class SchoolManagementController extends BaseController {
/**
* 修改学校信息
*
* @param school
* @param chosePages
* @return
...
...
@@ -293,6 +294,7 @@ public class SchoolManagementController extends BaseController {
}
}
}
@Permission
(
menuname
=
"上传二维码"
,
value
=
"qrcodeUpload2"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
xiaotuUpload2
(
@RequestParam
(
value
=
"file"
)
MultipartFile
file
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
)
{
String
backgroundpath
=
FilePath
.
BACKGROUNDIMG
.
getValue
()
+
"/"
+
DEFAULTPATH
;
...
...
@@ -307,7 +309,7 @@ public class SchoolManagementController extends BaseController {
return
ResponseData
.
error
(
"图片过大,无法上传"
);
}
School
school1
=
schoolMapper
.
selectById
(
id
);
File
savePath
=
new
File
(
backgroundpath
,
school1
.
getId
()
+
FILENAME
);
File
savePath
=
new
File
(
backgroundpath
,
school1
.
getId
()
+
"-2"
+
FILENAME
);
OutputStream
os
=
null
;
try
{
os
=
new
FileOutputStream
(
savePath
);
...
...
@@ -318,7 +320,7 @@ public class SchoolManagementController extends BaseController {
wrapper
.
eq
(
"id"
,
id
);
School
school
=
schoolMapper
.
selectById
(
id
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"package_qrcode"
,
backgroundpath
+
school
.
getId
()
+
FILENAME
);
map
.
put
(
"package_qrcode"
,
backgroundpath
+
school
.
getId
()
+
"-2"
+
FILENAME
);
Integer
integer
=
schoolMapper
.
updateForSet
(
MyBatisPlusUpdateUtils
.
toUpdateSet
(
map
),
wrapper
);
if
(
integer
!=
1
)
{
return
ResponseData
.
error
(
"上传失败!"
);
...
...
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