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
70490dce
Commit
70490dce
authored
Jun 11, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销员接口修改
parent
adc5fd25
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
common/src/main/java/com/winsun/outSideSystem/IntelligenceSendOrder.java
+1
-1
common/src/main/java/com/winsun/utils/PicturesUtil.java
+6
-6
service-manager/src/main/java/com/winsun/controller/OrderConversionController.java
+3
-6
No files found.
common/src/main/java/com/winsun/outSideSystem/IntelligenceSendOrder.java
View file @
70490dce
...
@@ -921,7 +921,7 @@ public class IntelligenceSendOrder {
...
@@ -921,7 +921,7 @@ public class IntelligenceSendOrder {
}
}
}
}
Map
<
String
,
Object
>
orderMap
=
n
ull
;
Map
<
String
,
Object
>
orderMap
=
n
ew
HashMap
<>()
;
Wrapper
<
OrderView
>
orderViewWrapper
=
new
EntityWrapper
<>();
Wrapper
<
OrderView
>
orderViewWrapper
=
new
EntityWrapper
<>();
orderViewWrapper
.
eq
(
"orderSeq"
,
order
.
getKdOrderId
());
orderViewWrapper
.
eq
(
"orderSeq"
,
order
.
getKdOrderId
());
List
<
Map
<
String
,
Object
>>
orderViewMaps
=
orderViewMapper
.
selectMaps
(
orderViewWrapper
);
List
<
Map
<
String
,
Object
>>
orderViewMaps
=
orderViewMapper
.
selectMaps
(
orderViewWrapper
);
...
...
common/src/main/java/com/winsun/utils/PicturesUtil.java
View file @
70490dce
...
@@ -7,9 +7,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -7,9 +7,7 @@ import org.apache.commons.lang3.StringUtils;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Base64
;
import
java.util.*
;
import
java.util.Calendar
;
import
java.util.Date
;
/**
/**
* 二维码海报工具类
* 二维码海报工具类
...
@@ -51,22 +49,24 @@ public class PicturesUtil {
...
@@ -51,22 +49,24 @@ public class PicturesUtil {
//blog.csdn.net/kookob/java/article/details/6885383
//blog.csdn.net/kookob/java/article/details/6885383
String
filePath
=
null
;
String
filePath
=
null
;
String
[]
multipartFiles
=
new
String
[]{
file
};
String
[]
multipartFiles
=
new
String
[]{
file
};
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
multipartFiles
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
multipartFiles
.
length
;
i
++)
{
if
(!
multipartFiles
[
i
].
isEmpty
())
{
if
(!
multipartFiles
[
i
].
isEmpty
())
{
String
base64Data
=
multipartFiles
[
i
].
split
(
","
)[
1
];
String
base64Data
=
multipartFiles
[
i
].
split
(
","
)[
1
];
String
houzhui
=
multipartFiles
[
i
].
split
(
","
)[
0
].
split
(
"/"
)[
1
].
split
(
";"
)[
0
];
String
houzhui
=
multipartFiles
[
i
].
split
(
","
)[
0
].
split
(
"/"
)[
1
].
split
(
";"
)[
0
];
String
filePath1
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
;
String
filePath1
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
;
File
dir
=
new
File
(
filePath1
);
map
.
put
(
"filePath1"
,
filePath1
);
File
dir
=
new
File
(
map
.
get
(
"filePath1"
).
toString
());
if
(!
dir
.
exists
())
{
if
(!
dir
.
exists
())
{
dir
.
mkdirs
();
dir
.
mkdirs
();
}
//enclosure/images/idCard/temp/年/月/日/name.jpeg
}
//enclosure/images/idCard/temp/年/月/日/name.jpeg
filePath
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
+
"/"
+
(
new
Date
()).
getTime
()
+
"."
+
PicturesUtil
.
checkSuffix
(
houzhui
);
filePath
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
+
"/"
+
(
new
Date
()).
getTime
()
+
"."
+
PicturesUtil
.
checkSuffix
(
houzhui
);
map
.
put
(
"filePath"
,
filePath
);
byte
[]
bytes
=
Base64
.
getMimeDecoder
().
decode
(
base64Data
.
replace
(
" "
,
"+"
));
byte
[]
bytes
=
Base64
.
getMimeDecoder
().
decode
(
base64Data
.
replace
(
" "
,
"+"
));
FileOutputStream
fos
=
null
;
FileOutputStream
fos
=
null
;
try
{
try
{
fos
=
new
FileOutputStream
(
filePath
);
fos
=
new
FileOutputStream
(
map
.
get
(
"filePath"
).
toString
()
);
if
(
fos
!=
null
)
{
if
(
fos
!=
null
)
{
fos
.
write
(
bytes
);
fos
.
write
(
bytes
);
}
}
...
...
service-manager/src/main/java/com/winsun/controller/OrderConversionController.java
View file @
70490dce
...
@@ -28,10 +28,7 @@ import java.io.InputStream;
...
@@ -28,10 +28,7 @@ import java.io.InputStream;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @Author: chenhaojian
* @Author: chenhaojian
...
@@ -60,7 +57,7 @@ public class OrderConversionController extends BaseController {
...
@@ -60,7 +57,7 @@ public class OrderConversionController extends BaseController {
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
,
"县分管理员(订单)"
)))
{
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
,
"县分管理员(订单)"
)))
{
ResponseData
.
error
(
"无权限查询订单"
);
ResponseData
.
error
(
"无权限查询订单"
);
}
}
List
<
Map
<
String
,
Object
>>
list
=
n
ull
;
List
<
Map
<
String
,
Object
>>
list
=
n
ew
ArrayList
<
Map
<
String
,
Object
>>()
;
if
(
""
.
equals
(
startTime
)&&
""
.
equals
(
endTime
)){
if
(
""
.
equals
(
startTime
)&&
""
.
equals
(
endTime
)){
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// 暂时计算2019年6月1号开始数据
// 暂时计算2019年6月1号开始数据
...
@@ -103,7 +100,7 @@ public class OrderConversionController extends BaseController {
...
@@ -103,7 +100,7 @@ public class OrderConversionController extends BaseController {
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
,
"县分管理员(订单)"
)))
{
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
,
"县分管理员(订单)"
)))
{
ResponseData
.
error
(
"无权限查询订单"
);
ResponseData
.
error
(
"无权限查询订单"
);
}
}
List
<
Map
<
String
,
Object
>>
list
=
n
ull
;
List
<
Map
<
String
,
Object
>>
list
=
n
ew
ArrayList
<
Map
<
String
,
Object
>>()
;
if
(
""
.
equals
(
startTime
)&&
""
.
equals
(
endTime
)){
if
(
""
.
equals
(
startTime
)&&
""
.
equals
(
endTime
)){
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// 暂时计算2019年6月1号开始数据
// 暂时计算2019年6月1号开始数据
...
...
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