Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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
base_platform_enterprise
gic-webapp-plug
Commits
123aa961
Commit
123aa961
authored
Dec 06, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fdff678a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
7 deletions
+66
-7
ScreeningController.java
...java/com/gic/plug/web/controller/ScreeningController.java
+35
-7
StoreResourceVO.java
src/main/java/com/gic/plug/web/vo/StoreResourceVO.java
+31
-0
No files found.
src/main/java/com/gic/plug/web/controller/ScreeningController.java
View file @
123aa961
...
...
@@ -5,6 +5,10 @@ import java.util.Collections;
import
java.util.Comparator
;
import
java.util.List
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.plug.web.vo.StoreResourceVO
;
import
com.gic.store.dto.StoreWidgetDTO
;
import
com.gic.store.service.StoreWidgetApiService
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -43,6 +47,8 @@ public class ScreeningController {
private
EsScreeningTemplateService
esScreeningTemplateService
;
@Autowired
private
StrategyInit
strategyInit
;
@Autowired
private
StoreWidgetApiService
storeWidgetApiService
;
/**
* @return
...
...
@@ -119,6 +125,34 @@ public class ScreeningController {
@RequestMapping
(
"screen-back"
)
@ResponseBody
public
Object
screenBack
(
String
param
)
throws
ClassNotFoundException
{
return
RestResponse
.
success
(
this
.
getScreenBack
(
param
));
}
@RequestMapping
(
"save-store-widget"
)
@ResponseBody
public
RestResponse
saveStoreWidget
(
String
searchParam
,
String
writeBackParam
){
return
null
;
}
@RequestMapping
(
"get-user-store-resource"
)
@ResponseBody
public
RestResponse
getUserStoreResouce
()
throws
ClassNotFoundException
{
Long
storeResource
=
UserDetailUtils
.
getUserDetail
().
getUserResourceInfo
().
getStoreResource
();
if
(
storeResource
==
null
){
return
RestResponse
.
success
(
new
StoreResourceVO
());
}
ServiceResponse
<
StoreWidgetDTO
>
storeWidget
=
this
.
storeWidgetApiService
.
getStoreWidget
(
storeResource
.
intValue
());
if
(
storeWidget
.
isSuccess
()
&&
storeWidget
.
getResult
()
!=
null
){
StoreResourceVO
vo
=
new
StoreResourceVO
();
vo
.
setAuthMode
(
storeWidget
.
getResult
().
getAuthMode
());
vo
.
setSearchJson
(
storeWidget
.
getResult
().
getSearchParam
());
vo
.
setSceenBack
(
this
.
getScreenBack
(
storeWidget
.
getResult
().
getSearchParam
()));
return
RestResponse
.
success
(
vo
);
}
return
RestResponse
.
success
(
new
StoreResourceVO
());
}
private
String
getScreenBack
(
String
param
)
throws
ClassNotFoundException
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
JSONArray
array
=
JSON
.
parseArray
(
param
);
StringBuilder
backMessage
=
new
StringBuilder
();
...
...
@@ -148,12 +182,6 @@ public class ScreeningController {
}
backMessage
.
append
(
stringBuilder
);
}
return
RestResponse
.
success
(
backMessage
.
toString
());
}
@RequestMapping
(
"save-store-widget"
)
@ResponseBody
public
RestResponse
saveStoreWidget
(
String
searchParam
,
String
writeBackParam
){
return
null
;
return
backMessage
.
toString
();
}
}
src/main/java/com/gic/plug/web/vo/StoreResourceVO.java
0 → 100644
View file @
123aa961
package
com
.
gic
.
plug
.
web
.
vo
;
public
class
StoreResourceVO
{
private
Integer
authMode
;
private
String
searchJson
;
private
String
sceenBack
;
public
Integer
getAuthMode
()
{
return
authMode
;
}
public
void
setAuthMode
(
Integer
authMode
)
{
this
.
authMode
=
authMode
;
}
public
String
getSearchJson
()
{
return
searchJson
;
}
public
void
setSearchJson
(
String
searchJson
)
{
this
.
searchJson
=
searchJson
;
}
public
String
getSceenBack
()
{
return
sceenBack
;
}
public
void
setSceenBack
(
String
sceenBack
)
{
this
.
sceenBack
=
sceenBack
;
}
}
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