Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
7d0f5d48
Commit
7d0f5d48
authored
Dec 12, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2dd553e9
0049ace0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
AppUserLoginBiz.java
...om/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
+12
-0
DataController.java
...om/github/wxiaoqi/security/admin/rest/DataController.java
+2
-2
UsableVeicleDTO.java
.../java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
+6
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
View file @
7d0f5d48
...
...
@@ -249,6 +249,18 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
return
phoneAndUserIdMap
;
}
public
Map
<
String
,
Integer
>
findPhoneAndUserIdMapByPhonesForDel
(
List
<
String
>
phones
)
{
Example
example
=
new
Example
(
AppUserLogin
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andIn
(
"username"
,
phones
);
List
<
AppUserLogin
>
appUserLogins
=
mapper
.
selectByExample
(
example
);
Map
<
String
,
Integer
>
phoneAndUserIdMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
appUserLogins
))
{
phoneAndUserIdMap
=
appUserLogins
.
parallelStream
().
collect
(
Collectors
.
toMap
(
AppUserLogin:
:
getUsername
,
AppUserLogin:
:
getId
));
}
return
phoneAndUserIdMap
;
}
public
Map
<
Integer
,
AppUserLogin
>
findUserIdAndUserLoginMapByMemberIds
(
List
<
Integer
>
memberIds
)
{
Map
<
Integer
,
AppUserLogin
>
userIdAndAppUserLoginMap
=
new
HashMap
<>();
List
<
AppUserLogin
>
appUserLogins
=
mapper
.
selectByIdList
(
memberIds
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/DataController.java
View file @
7d0f5d48
...
...
@@ -52,7 +52,7 @@ public class DataController {
@GetMapping
(
"/clearwithphone"
)
public
ObjectRestResponse
<
Void
>
clearData
(
@RequestParam
(
"phones"
)
List
<
String
>
phons
)
{
Map
<
String
,
Integer
>
phoneAndUserIdMapByPhones
=
appUserLoginBiz
.
findPhoneAndUserIdMapByPhones
(
phons
);
Map
<
String
,
Integer
>
phoneAndUserIdMapByPhones
=
appUserLoginBiz
.
findPhoneAndUserIdMapByPhones
ForDel
(
phons
);
if
(
Objects
.
nonNull
(
phoneAndUserIdMapByPhones
))
{
Collection
<
Integer
>
userIds
=
phoneAndUserIdMapByPhones
.
values
();
//1.删除登录表信息
...
...
@@ -80,7 +80,7 @@ public class DataController {
@GetMapping
(
"/clear_relation_withphone"
)
public
ObjectRestResponse
<
Void
>
clearRelationphone
(
@RequestParam
(
"phones"
)
List
<
String
>
phons
)
{
Map
<
String
,
Integer
>
phoneAndUserIdMapByPhones
=
appUserLoginBiz
.
findPhoneAndUserIdMapByPhones
(
phons
);
Map
<
String
,
Integer
>
phoneAndUserIdMapByPhones
=
appUserLoginBiz
.
findPhoneAndUserIdMapByPhones
ForDel
(
phons
);
if
(
Objects
.
nonNull
(
phoneAndUserIdMapByPhones
))
{
Collection
<
Integer
>
userIds
=
phoneAndUserIdMapByPhones
.
values
();
appUserRelationBiz
.
deleteByMemberIds
(
userIds
);
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
View file @
7d0f5d48
...
...
@@ -74,4 +74,10 @@ public class UsableVeicleDTO extends PageParam {
this
.
endDate
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
endDateExtend
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)).
plusDays
(
1L
));
}
// private Boolean isTest;
//
// private Integer testCompanyId;
//
// private Integer testModelId;
}
\ 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