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
bbd4efff
Commit
bbd4efff
authored
Feb 24, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d27917b7
618afb49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
apply-net/src/main/java/com/winsun/controller/DankuanController.java
+5
-3
apply-net/src/main/java/com/winsun/controller/RongHeController.java
+3
-3
common/src/main/java/com/winsun/utils/Base64ToImgUtils.java
+1
-1
old-user/src/main/java/com/winsun/controller/PackageUpgradeController.java
+5
-1
No files found.
apply-net/src/main/java/com/winsun/controller/DankuanController.java
View file @
bbd4efff
...
...
@@ -126,6 +126,7 @@ public class DankuanController {
String
setMealIndex
=
request
.
getParameter
(
"setMealIndex"
);
String
imgUrl
=
request
.
getParameter
(
"imgUrl"
);
String
filePath
=
""
;
String
orderSeq
=
RandomUtil
.
RandomNumber
(
20
);
try
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
boolean
boo1
=
redisLockUtil
.
redisLock
(
orderNumber
,
uuid
,
10
);
...
...
@@ -137,11 +138,12 @@ public class DankuanController {
if
(
StringUtils
.
isBlank
(
imgUrl
)){
return
ResponseData
.
error
(
"签名失败!"
);
}
if
(
StringUtils
.
isNotBlank
(
imgUrl
)){
filePath
=
base64ToImgUtils
.
base64ToImg
(
imgUrl
,
FilePath
.
PATH
.
getValue
()+
FilePath
.
IMGURLPATH
.
getValue
()
);
filePath
=
PicturesUtil
.
uploadPictures
(
imgUrl
,
orderSeq
,
"signImg"
);
}
OrderView
orderV
=
new
OrderView
();
String
orderSeq
=
RandomUtil
.
RandomNumber
(
20
);
Product
product
=
productMapper
.
selectById
(
productId
);
OrderView
orderView
=
new
OrderView
();
orderView
.
setOrderName
(
orderName
);
...
...
@@ -249,7 +251,7 @@ public class DankuanController {
School
school
=
schoolMapper
.
selectById
(
schoolId
);
order
.
setHehuorenSchool
(
school
.
getSchoolName
());
order
.
setHehuorenName
(
sysUser
.
getName
());
order
.
setHehuorenArea
(
s
ysUser
.
getSubst
Name
());
order
.
setHehuorenArea
(
s
chool
.
getSub
Name
());
order
.
setSignImg
(
filePath
);
List
<
String
>
userId1
=
appMapper
.
selectsupervisorBySchool
(
schoolId
);
...
...
apply-net/src/main/java/com/winsun/controller/RongHeController.java
View file @
bbd4efff
...
...
@@ -168,6 +168,7 @@ public class RongHeController {
String
setMealIndex
=
request
.
getParameter
(
"setMealIndex"
);
String
imgUrl
=
request
.
getParameter
(
"imgUrl"
);
String
filePath
=
""
;
String
orderSeq
=
RandomUtil
.
RandomNumber
(
20
);
// 生成随机字符串
try
{
...
...
@@ -182,14 +183,13 @@ public class RongHeController {
return
ResponseData
.
error
(
"签名失败!"
);
}
if
(
StringUtils
.
isNotBlank
(
imgUrl
)){
filePath
=
base64ToImgUtils
.
base64ToImg
(
imgUrl
,
FilePath
.
PATH
.
getValue
()+
FilePath
.
IMGURLPATH
.
getValue
()
);
filePath
=
PicturesUtil
.
uploadPictures
(
imgUrl
,
orderSeq
,
"signImg"
);
}
OrderView
orderV
=
new
OrderView
();
String
mealStr
=
null
;
String
byStr
=
null
;
String
prices
=
null
;
Integer
index
=
0
;
String
orderSeq
=
RandomUtil
.
RandomNumber
(
20
);
Product
product
=
productMapper
.
selectById
(
productId
);
UniversityInfo
universityInfo
=
universityInfoMapper
.
selectById
(
product
.
getUniversityId
());
String
[]
rateArry
=
product
.
getProductRhRate
().
split
(
","
);
// 年月(包年,包月)
...
...
@@ -341,7 +341,7 @@ public class RongHeController {
order
.
setHehuorenSchool
(
school
.
getSchoolName
());
order
.
setHehuorenName
(
sysUser
.
getName
());
order
.
setPackageId
(
productId
);
order
.
setHehuorenArea
(
s
ysUser
.
getSubst
Name
());
order
.
setHehuorenArea
(
s
chool
.
getSub
Name
());
order
.
setSignImg
(
filePath
);
List
<
String
>
userId1
=
appMapper
.
selectsupervisorBySchool
(
schoolId
);
SysUser
user
=
sysUserMapper
.
selectById
(
userId1
.
get
(
0
));
...
...
common/src/main/java/com/winsun/utils/Base64ToImgUtils.java
View file @
bbd4efff
...
...
@@ -27,7 +27,7 @@ public class Base64ToImgUtils {
Date
date
=
new
Date
();
String
createdate
=
sd2
.
format
(
date
);
File
file
=
new
File
(
hhr_img
+
"/"
+
createdate
+
"/"
+
sd
.
format
(
date
)
+
"/"
+
orderNumber
);
File
file
=
new
File
(
hhr_img
+
createdate
+
"/"
+
sd
.
format
(
date
)
+
"/"
+
orderNumber
);
if
(!
file
.
exists
()
&&
!
file
.
isDirectory
())
{
file
.
mkdirs
();
}
...
...
old-user/src/main/java/com/winsun/controller/PackageUpgradeController.java
View file @
bbd4efff
...
...
@@ -12,6 +12,7 @@ import com.winsun.constant.UserType;
import
com.winsun.mapper.*
;
import
com.winsun.smsUtils.SendSmsAndMail
;
import
com.winsun.utils.IDCardUtil
;
import
com.winsun.utils.PicturesUtil
;
import
com.winsun.utils.ProduceIdUtil
;
import
com.winsun.utils.RandomUtil
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -323,7 +324,8 @@ public class PackageUpgradeController extends BaseController {
,
@RequestParam
(
"nowPackage"
)
String
nowPackage
,
@RequestParam
(
"partner"
)
String
partner
,
@RequestParam
(
"businessPackage"
)
String
businessPackage
,
@RequestParam
(
value
=
"servId"
)
String
servId
,
@RequestParam
(
value
=
"mark"
,
required
=
false
)
String
mark
,
@RequestParam
(
value
=
"addRess"
,
required
=
false
)
String
addRess
,
@RequestParam
(
value
=
"userSchool"
,
required
=
false
)
String
userSchool
)
{
,
@RequestParam
(
value
=
"userSchool"
,
required
=
false
)
String
userSchool
,
@RequestParam
(
value
=
"imgUrl"
,
required
=
false
)
String
imgUrl
)
{
if
(
contactNumber
.
length
()
!=
11
)
{
return
ResponseData
.
error
(
"联系号码有误,请重新输入"
);
}
...
...
@@ -361,6 +363,8 @@ public class PackageUpgradeController extends BaseController {
order
.
setOrderNumber
(
"YRYM"
+
ProduceIdUtil
.
getId
());
order
.
setHehuorenArea
(
sysUser
.
getSubstName
());
order
.
setHehuorenName
(
sysUser
.
getName
());
String
path
=
PicturesUtil
.
uploadPictures
(
imgUrl
,
order
.
getId
(),
"signImg"
);
order
.
setSignImg
(
path
);
String
schoolId
=
appMapper
.
selectSchoolId
(
partner
);
List
<
String
>
dudao
=
appMapper
.
selectsupervisorBySchool
(
schoolId
);
if
(
dudao
==
null
||
dudao
.
size
()
==
0
)
{
...
...
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