Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
f7b9e29c
Commit
f7b9e29c
authored
Oct 16, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-17 app文件上传接口调整
parent
ed5f3254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
FileUploadController.java
...va/com/baosight/hggp/controller/FileUploadController.java
+2
-1
ServiceHGSC099.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC099.java
+2
-1
No files found.
src/main/java/com/baosight/hggp/controller/FileUploadController.java
View file @
f7b9e29c
package
com
.
baosight
.
hggp
.
controller
;
package
com
.
baosight
.
hggp
.
controller
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.S3Constant
;
import
com.baosight.hggp.core.tools.ThreadLocalTools
;
import
com.baosight.hggp.core.tools.ThreadLocalTools
;
import
com.baosight.hggp.core.utils.QrCodeUtils
;
import
com.baosight.hggp.core.utils.QrCodeUtils
;
import
com.baosight.hggp.hg.mt.utils.UploadUtils
;
import
com.baosight.hggp.hg.mt.utils.UploadUtils
;
...
@@ -48,7 +49,7 @@ public class FileUploadController {
...
@@ -48,7 +49,7 @@ public class FileUploadController {
try
{
try
{
JSONObject
upload
=
new
JSONObject
();
JSONObject
upload
=
new
JSONObject
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
if
(
CommonConstant
.
FileLocation
.
S3
.
equalsIgnoreCase
(
S3Constant
.
FILE_LOCATION
))
{
Iterator
multiFileIterator
=
((
DefaultMultipartHttpServletRequest
)
request
).
getMultiFileMap
().
get
(
"uploadFile"
).
iterator
();
Iterator
multiFileIterator
=
((
DefaultMultipartHttpServletRequest
)
request
).
getMultiFileMap
().
get
(
"uploadFile"
).
iterator
();
while
(
multiFileIterator
.
hasNext
())
{
while
(
multiFileIterator
.
hasNext
())
{
CommonsMultipartFile
multipartFile
=
(
CommonsMultipartFile
)
multiFileIterator
.
next
();
CommonsMultipartFile
multipartFile
=
(
CommonsMultipartFile
)
multiFileIterator
.
next
();
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC099.java
View file @
f7b9e29c
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.S3Constant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.sc.domain.HGSC099
;
import
com.baosight.hggp.hg.sc.domain.HGSC099
;
...
@@ -50,7 +51,7 @@ public class ServiceHGSC099 extends ServiceEPBase {
...
@@ -50,7 +51,7 @@ public class ServiceHGSC099 extends ServiceEPBase {
try
{
try
{
// 项目环境
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
if
(
CommonConstant
.
FileLocation
.
S3
.
equalsIgnoreCase
(
S3Constant
.
FILE_LOCATION
))
{
inInfo
=
super
.
query
(
inInfo
,
"HGSC099.queryRun"
,
new
HGSC099
());
inInfo
=
super
.
query
(
inInfo
,
"HGSC099.queryRun"
,
new
HGSC099
());
}
else
{
}
else
{
inInfo
=
super
.
query
(
inInfo
,
"HGSC099.queryDev"
,
new
HGSC099
());
inInfo
=
super
.
query
(
inInfo
,
"HGSC099.queryDev"
,
new
HGSC099
());
...
...
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