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
2f8caedd
Commit
2f8caedd
authored
Sep 18, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
cd7dc451
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+20
-1
LogListVO.java
...auth-web/src/main/java/com/gic/auth/web/vo/LogListVO.java
+14
-17
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
2f8caedd
...
@@ -298,7 +298,26 @@ public class MenuController {
...
@@ -298,7 +298,26 @@ public class MenuController {
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageQO
.
getPageSize
(),
ServiceResponse
<
Page
<
SystemSetLogDTO
>>
response
=
logApiService
.
listSystemSetLog
(
pageQO
.
getPageSize
(),
pageQO
.
getCurrentPage
(),
searchParam
);
pageQO
.
getCurrentPage
(),
searchParam
);
return
ResultControllerUtils
.
commonPageResult
(
response
,
LogListVO
.
class
);
if
(
response
.
isSuccess
())
{
Page
page
=
(
Page
)
response
.
getResult
();
if
(
page
==
null
)
{
return
RestResponse
.
success
();
}
List
<
SystemSetLogDTO
>
responseList
=
page
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
responseList
))
{
List
<
LogListVO
>
resultList
=
responseList
.
stream
().
map
(
e
->
{
LogListVO
temp
=
EntityUtil
.
changeEntityNew
(
LogListVO
.
class
,
e
);
temp
.
setNationCodeFrom
(
e
.
getRemark1
());
temp
.
setPhoneFrom
(
e
.
getRemark2
());
return
temp
;
}).
collect
(
Collectors
.
toList
());
page
.
setResult
(
resultList
);
return
RestResponse
.
success
(
page
);
}
return
RestResponse
.
success
();
}
else
{
return
RestResponse
.
failure
(
response
.
getCode
(),
response
.
getMessage
());
}
}
}
public
static
List
<
Map
<
String
,
Object
>>
changePageListToTree
(
int
storeGroupId
,
List
<
MenuDTO
>
list
)
{
public
static
List
<
Map
<
String
,
Object
>>
changePageListToTree
(
int
storeGroupId
,
List
<
MenuDTO
>
list
)
{
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/LogListVO.java
View file @
2f8caedd
package
com
.
gic
.
auth
.
web
.
vo
;
package
com
.
gic
.
auth
.
web
.
vo
;
import
com.gic.commons.annotation.SkipNamingCheck
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -12,7 +10,6 @@ import java.util.Date;
...
@@ -12,7 +10,6 @@ import java.util.Date;
* @author guojuxing
* @author guojuxing
* @date 2019/11/8 2:15 PM
* @date 2019/11/8 2:15 PM
*/
*/
@SkipNamingCheck
public
class
LogListVO
implements
Serializable
{
public
class
LogListVO
implements
Serializable
{
...
@@ -43,8 +40,8 @@ public class LogListVO implements Serializable{
...
@@ -43,8 +40,8 @@ public class LogListVO implements Serializable{
private
Long
relationId
;
private
Long
relationId
;
private
String
businessName
;
private
String
businessName
;
private
String
remark1
;
private
String
nationCodeFrom
;
private
String
remark2
;
private
String
phoneFrom
;
public
Long
getLogId
()
{
public
Long
getLogId
()
{
return
logId
;
return
logId
;
...
@@ -74,11 +71,11 @@ public class LogListVO implements Serializable{
...
@@ -74,11 +71,11 @@ public class LogListVO implements Serializable{
}
}
public
String
getNationCode
()
{
public
String
getNationCode
()
{
return
remark1
;
return
nationCodeFrom
;
}
}
public
String
getPhone
()
{
public
String
getPhone
()
{
return
remark2
;
return
phoneFrom
;
}
}
public
String
getProject
()
{
public
String
getProject
()
{
...
@@ -135,21 +132,21 @@ public class LogListVO implements Serializable{
...
@@ -135,21 +132,21 @@ public class LogListVO implements Serializable{
return
this
;
return
this
;
}
}
public
String
get
Remark1
()
{
public
String
get
NationCodeFrom
()
{
return
remark1
;
return
nationCodeFrom
;
}
}
public
LogListVO
set
Remark1
(
String
remark1
)
{
public
LogListVO
set
NationCodeFrom
(
String
nationCodeFrom
)
{
this
.
remark1
=
remark1
;
this
.
nationCodeFrom
=
nationCodeFrom
;
return
this
;
return
this
;
}
}
public
String
get
Remark2
()
{
public
String
get
PhoneFrom
()
{
return
remark2
;
return
phoneFrom
;
}
}
public
LogListVO
set
Remark2
(
String
remark2
)
{
public
LogListVO
set
PhoneFrom
(
String
phoneFrom
)
{
this
.
remark2
=
remark2
;
this
.
phoneFrom
=
phoneFrom
;
return
this
;
return
this
;
}
}
...
@@ -167,8 +164,8 @@ public class LogListVO implements Serializable{
...
@@ -167,8 +164,8 @@ public class LogListVO implements Serializable{
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", relationId="
+
relationId
+
", relationId="
+
relationId
+
", businessName='"
+
businessName
+
'\''
+
", businessName='"
+
businessName
+
'\''
+
",
remark1='"
+
remark1
+
'\''
+
",
nationCodeFrom='"
+
nationCodeFrom
+
'\''
+
",
remark2='"
+
remark2
+
'\''
+
",
phoneFrom='"
+
phoneFrom
+
'\''
+
'}'
;
'}'
;
}
}
}
}
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