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
99e012ce
Commit
99e012ce
authored
Nov 07, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
8e9e9bf4
073522f2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
106 deletions
+76
-106
ResourceController.java
.../java/com/gic/auth/web/controller/ResourceController.java
+13
-6
AppResourceQO.java
...-web/src/main/java/com/gic/auth/web/qo/AppResourceQO.java
+0
-42
ResourceQO.java
...uth-web/src/main/java/com/gic/auth/web/qo/ResourceQO.java
+4
-4
AppResourceVO.java
...-web/src/main/java/com/gic/auth/web/vo/AppResourceVO.java
+0
-42
ApplicationSubVO.java
...b/src/main/java/com/gic/auth/web/vo/ApplicationSubVO.java
+31
-0
ApplicationVO.java
...-web/src/main/java/com/gic/auth/web/vo/ApplicationVO.java
+25
-9
ResourceVO.java
...uth-web/src/main/java/com/gic/auth/web/vo/ResourceVO.java
+3
-3
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/ResourceController.java
View file @
99e012ce
...
...
@@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
...
...
@@ -62,17 +63,23 @@ public class ResourceController {
@RequestMapping
(
"/list-resource-app"
)
public
RestResponse
listResourceApp
()
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
Integer
enterpriseId
=
100
;
ServiceResponse
<
List
<
ApplicationDTO
>>
appServiceResponse
=
appTokenApiService
.
listApplicationByEnterpriseId
(
Long
.
valueOf
(
enterpriseId
),
0
);
if
(!
appServiceResponse
.
isSuccess
())
{
return
ResultControllerUtils
.
commonResult
(
appServiceResponse
);
}
List
<
ApplicationDTO
>
appDTOList
=
appServiceResponse
.
getResult
();
List
<
ApplicationVO
>
appVOList
=
EntityUtil
.
changeEntityListByJSON
(
ApplicationVO
.
class
,
appDTOList
);
for
(
Application
VO
applicationVO
:
appV
OList
)
{
ServiceResponse
<
List
<
ApplicationSubDTO
>>
subServiceResponse
=
applicationSubApiService
.
listSubApp
(
enterpriseId
,
application
V
O
.
getApplicationId
());
List
<
ApplicationVO
>
appVOList
=
new
ArrayList
<>(
appDTOList
.
size
()
);
for
(
Application
DTO
applicationDTO
:
appDT
OList
)
{
ServiceResponse
<
List
<
ApplicationSubDTO
>>
subServiceResponse
=
applicationSubApiService
.
listSubApp
(
enterpriseId
,
application
DT
O
.
getApplicationId
());
if
(
subServiceResponse
.
isSuccess
())
{
applicationVO
.
setChildList
(
subServiceResponse
.
getResult
());
if
(
CollectionUtils
.
isNotEmpty
(
subServiceResponse
.
getResult
()))
{
ApplicationVO
applicationVO
=
new
ApplicationVO
();
applicationVO
.
setApplicationId
(
applicationDTO
.
getApplicationId
());
applicationVO
.
setName
(
applicationDTO
.
getName
());
applicationVO
.
setChildren
(
EntityUtil
.
changeEntityListByJSON
(
ApplicationSubVO
.
class
,
subServiceResponse
.
getResult
()));
appVOList
.
add
(
applicationVO
);
}
}
}
return
RestResponse
.
success
(
appVOList
);
...
...
@@ -171,7 +178,7 @@ public class ResourceController {
vo
.
setOrderResourceJSON
(
orderResourceList
);
}
if
(
StringUtils
.
isNotBlank
(
dto
.
getAppResourceJson
()))
{
List
<
AppResourceVO
>
appResourceList
=
JSON
.
parseArray
(
dto
.
getAppResourceJson
(),
AppResourceVO
.
class
);
List
<
List
>
appResourceList
=
JSON
.
parseArray
(
dto
.
getAppResourceJson
(),
List
.
class
);
vo
.
setAppResourceJSON
(
appResourceList
);
}
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsResponse
=
this
.
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
response
.
getResult
().
getGoodsResourceId
());
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/qo/AppResourceQO.java
deleted
100644 → 0
View file @
8e9e9bf4
package
com
.
gic
.
auth
.
web
.
qo
;
import
java.io.Serializable
;
import
java.util.List
;
/**
*
* @Description:
* @author zhiwj
* @date 2019-09-26 17:15
*/
public
class
AppResourceQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3106090790767253020L
;
private
Integer
appId
;
private
String
appName
;
private
List
<
AppResourceQO
>
child
;
public
Integer
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
Integer
appId
)
{
this
.
appId
=
appId
;
}
public
String
getAppName
()
{
return
appName
;
}
public
void
setAppName
(
String
appName
)
{
this
.
appName
=
appName
;
}
public
List
<
AppResourceQO
>
getChild
()
{
return
child
;
}
public
void
setChild
(
List
<
AppResourceQO
>
child
)
{
this
.
child
=
child
;
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/qo/ResourceQO.java
View file @
99e012ce
...
...
@@ -64,7 +64,7 @@ public class ResourceQO implements Serializable {
*/
private
List
<
OrderResourceQO
>
orderResourceJSON
;
private
List
<
AppResourceQO
>
appResourceJSON
;
private
List
<
List
<
Long
>
>
appResourceJSON
;
private
List
<
SmsSignResourceQO
>
smsSignResourceJSON
;
...
...
@@ -132,15 +132,15 @@ public class ResourceQO implements Serializable {
this
.
orderResourceJSON
=
orderResourceJSON
;
}
public
List
<
AppResourceQO
>
getAppResourceJSON
()
{
public
List
<
List
<
Long
>
>
getAppResourceJSON
()
{
return
appResourceJSON
;
}
public
void
setAppResourceJSON
(
List
<
AppResourceQO
>
appResourceJSON
)
{
public
void
setAppResourceJSON
(
List
<
List
<
Long
>
>
appResourceJSON
)
{
this
.
appResourceJSON
=
appResourceJSON
;
}
// public Long getGoodsResourceId() {
// public Long getGoodsResourceId() {
// return goodsResourceId;
// }
//
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/AppResourceVO.java
deleted
100644 → 0
View file @
8e9e9bf4
package
com
.
gic
.
auth
.
web
.
vo
;
import
java.io.Serializable
;
import
java.util.List
;
/**
*
* @Description:
* @author zhiwj
* @date 2019-09-27 10:23
*/
public
class
AppResourceVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
495359852430529567L
;
private
Integer
appId
;
private
String
appName
;
private
List
<
AppResourceVO
>
child
;
public
Integer
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
Integer
appId
)
{
this
.
appId
=
appId
;
}
public
String
getAppName
()
{
return
appName
;
}
public
void
setAppName
(
String
appName
)
{
this
.
appName
=
appName
;
}
public
List
<
AppResourceVO
>
getChild
()
{
return
child
;
}
public
void
setChild
(
List
<
AppResourceVO
>
child
)
{
this
.
child
=
child
;
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/ApplicationSubVO.java
0 → 100644
View file @
99e012ce
package
com
.
gic
.
auth
.
web
.
vo
;
import
java.io.Serializable
;
/**
*
* @Description:
* @author zhiwj
* @date 2019-11-06 14:32
*/
public
class
ApplicationSubVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4918329047567649472L
;
private
Long
applicationId
;
private
String
name
;
public
Long
getApplicationId
()
{
return
applicationId
;
}
public
void
setApplicationId
(
Long
applicationId
)
{
this
.
applicationId
=
applicationId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/ApplicationVO.java
View file @
99e012ce
package
com
.
gic
.
auth
.
web
.
vo
;
import
com.gic.open.api.dto.ApplicationDTO
;
import
com.gic.open.api.dto.ApplicationSubDTO
;
import
java.io.Serializable
;
import
java.util.List
;
/**
...
...
@@ -11,17 +9,35 @@ import java.util.List;
* @author zhiwj
* @date 2019-11-06 11:36
*/
public
class
ApplicationVO
extends
ApplicationDTO
{
public
class
ApplicationVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4558390896804884123L
;
private
List
<
ApplicationSubDTO
>
childList
;
private
Long
applicationId
;
private
String
name
;
private
List
<
ApplicationSubVO
>
children
;
public
Long
getApplicationId
()
{
return
applicationId
;
}
public
void
setApplicationId
(
Long
applicationId
)
{
this
.
applicationId
=
applicationId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
List
<
ApplicationSub
DTO
>
getChildList
()
{
return
child
List
;
public
List
<
ApplicationSub
VO
>
getChildren
()
{
return
child
ren
;
}
public
void
setChild
List
(
List
<
ApplicationSubDTO
>
childList
)
{
this
.
child
List
=
childList
;
public
void
setChild
ren
(
List
<
ApplicationSubVO
>
children
)
{
this
.
child
ren
=
children
;
}
}
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/ResourceVO.java
View file @
99e012ce
...
...
@@ -51,7 +51,7 @@ public class ResourceVO implements Serializable{
*/
private
List
<
OrderResourceVO
>
orderResourceJSON
;
private
List
<
AppResourceVO
>
appResourceJSON
;
private
List
<
List
>
appResourceJSON
;
private
Integer
userResourceCount
;
private
StoreResouceVO
storeResouce
;
...
...
@@ -121,11 +121,11 @@ public class ResourceVO implements Serializable{
this
.
orderResourceJSON
=
orderResourceJSON
;
}
public
List
<
AppResourceVO
>
getAppResourceJSON
()
{
public
List
<
List
>
getAppResourceJSON
()
{
return
appResourceJSON
;
}
public
void
setAppResourceJSON
(
List
<
AppResourceVO
>
appResourceJSON
)
{
public
void
setAppResourceJSON
(
List
<
List
>
appResourceJSON
)
{
this
.
appResourceJSON
=
appResourceJSON
;
}
...
...
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