Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-platform-auth
Commits
2750e957
Commit
2750e957
authored
Sep 20, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆
parent
1f757947
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
14 deletions
+71
-14
UnionEnterpriseController.java
...om/gic/auth/web/controller/UnionEnterpriseController.java
+18
-4
StoreResouceQO.java
...web/src/main/java/com/gic/auth/web/qo/StoreResouceQO.java
+42
-0
UnionEnterpriseQO.java
.../src/main/java/com/gic/auth/web/qo/UnionEnterpriseQO.java
+9
-9
dubbo-gic-platform-auth-web.xml
...th-web/src/main/resources/dubbo-gic-platform-auth-web.xml
+2
-1
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/UnionEnterpriseController.java
View file @
2750e957
...
...
@@ -13,6 +13,8 @@ import com.gic.commons.webapi.reponse.RestResponse;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.response.EnterpriseRestResponse
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.store.dto.StoreWidgetDTO
;
import
com.gic.store.service.StoreWidgetApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -25,6 +27,8 @@ public class UnionEnterpriseController {
private
AuthCodeApiService
authCodeApiService
;
@Autowired
private
UnionEnterpriseApiService
unionEnterpriseApiService
;
@Autowired
private
StoreWidgetApiService
storeWidgetApiService
;
@RequestMapping
(
"save-union-enterprise"
)
public
RestResponse
saveUnionEnterprise
(
UnionEnterpriseQO
unionEnterpriseQO
){
...
...
@@ -36,11 +40,21 @@ public class UnionEnterpriseController {
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
UnionEnterpriseDTO
enterpriseDTO
=
EntityUtil
.
changeEntityByJSON
(
UnionEnterpriseDTO
.
class
,
unionEnterpriseQO
);
enterpriseDTO
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Integer
>
response
=
this
.
unionEnterpriseApiService
.
saveUnionEnterprise
(
enterpriseDTO
);
if
(
response
.
isSuccess
()){
return
RestResponse
.
success
(
response
.
getResult
());
StoreWidgetDTO
storeWidgetDTO
=
new
StoreWidgetDTO
();
storeWidgetDTO
.
setAuthMode
(
unionEnterpriseQO
.
getStoreResouce
().
getAuthMode
());
storeWidgetDTO
.
setSearchParam
(
unionEnterpriseQO
.
getStoreResouce
().
getSearchParam
());
storeWidgetDTO
.
setStoreWidgetId
(
unionEnterpriseQO
.
getStoreResouce
().
getStoreResourceId
());
storeWidgetDTO
.
setWriteBackParam
(
unionEnterpriseQO
.
getStoreResouce
().
getWriteBackParam
());
ServiceResponse
<
Integer
>
storeWidgetResponse
=
this
.
storeWidgetApiService
.
saveAuthStoreWidget
(
storeWidgetDTO
);
if
(
storeWidgetResponse
.
isSuccess
()){
enterpriseDTO
.
setStoreResourceId
(
storeWidgetResponse
.
getResult
().
longValue
());
ServiceResponse
<
Integer
>
response
=
this
.
unionEnterpriseApiService
.
saveUnionEnterprise
(
enterpriseDTO
);
if
(
response
.
isSuccess
()){
return
RestResponse
.
success
(
response
.
getResult
());
}
return
EnterpriseRestResponse
.
failure
(
response
);
}
return
EnterpriseRestResponse
.
failure
(
r
esponse
);
return
EnterpriseRestResponse
.
failure
(
storeWidgetR
esponse
);
}
@RequestMapping
(
"union-enterprise-detail"
)
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/qo/StoreResouceQO.java
0 → 100644
View file @
2750e957
package
com
.
gic
.
auth
.
web
.
qo
;
import
java.io.Serializable
;
public
class
StoreResouceQO
implements
Serializable
{
private
Integer
storeResourceId
;
private
Integer
authMode
;
private
String
searchParam
;
private
String
writeBackParam
;
public
Integer
getStoreResourceId
()
{
return
storeResourceId
;
}
public
void
setStoreResourceId
(
Integer
storeResourceId
)
{
this
.
storeResourceId
=
storeResourceId
;
}
public
Integer
getAuthMode
()
{
return
authMode
;
}
public
void
setAuthMode
(
Integer
authMode
)
{
this
.
authMode
=
authMode
;
}
public
String
getSearchParam
()
{
return
searchParam
;
}
public
void
setSearchParam
(
String
searchParam
)
{
this
.
searchParam
=
searchParam
;
}
public
String
getWriteBackParam
()
{
return
writeBackParam
;
}
public
void
setWriteBackParam
(
String
writeBackParam
)
{
this
.
writeBackParam
=
writeBackParam
;
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/qo/UnionEnterpriseQO.java
View file @
2750e957
...
...
@@ -9,7 +9,7 @@ public class UnionEnterpriseQO implements Serializable {
private
Long
memberCardResourceId
;
private
Long
fwhResourceId
;
private
Long
appletResourceId
;
private
Long
storeResourceId
;
private
StoreResouceQO
storeResouce
;
private
Long
goodsResourceId
;
private
Long
orderResourceId
;
private
Integer
authCodeId
;
...
...
@@ -79,14 +79,6 @@ public class UnionEnterpriseQO implements Serializable {
this
.
appletResourceId
=
appletResourceId
;
}
public
Long
getStoreResourceId
()
{
return
storeResourceId
;
}
public
void
setStoreResourceId
(
Long
storeResourceId
)
{
this
.
storeResourceId
=
storeResourceId
;
}
public
Long
getGoodsResourceId
()
{
return
goodsResourceId
;
}
...
...
@@ -102,4 +94,12 @@ public class UnionEnterpriseQO implements Serializable {
public
void
setOrderResourceId
(
Long
orderResourceId
)
{
this
.
orderResourceId
=
orderResourceId
;
}
public
StoreResouceQO
getStoreResouce
()
{
return
storeResouce
;
}
public
void
setStoreResouce
(
StoreResouceQO
storeResouce
)
{
this
.
storeResouce
=
storeResouce
;
}
}
gic-platform-auth-web/src/main/resources/dubbo-gic-platform-auth-web.xml
View file @
2750e957
...
...
@@ -49,5 +49,5 @@
<dubbo:reference
interface=
"com.gic.auth.service.RoleApiService"
id=
"roleApiService"
timeout=
"6000"
/>
<!--受审组-->
<dubbo:reference
interface=
"com.gic.auth.service.AuditedGroupApiService"
id=
"auditedGroupApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreWidgetApiService"
id=
"storeWidgetApiService"
timeout=
"6000"
/>
</beans>
\ No newline at end of file
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