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
9561bc88
Commit
9561bc88
authored
Aug 22, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into jrz_dev
parents
e31a73bb
c19c70b8
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
23 deletions
+44
-23
AppUserManageBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
+3
-3
BaseUserMemberBiz.java
.../github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
+2
-1
AppUsersManageController.java
...wxiaoqi/security/admin/rest/AppUsersManageController.java
+3
-2
BaseUserMemberController.java
...wxiaoqi/security/admin/rest/BaseUserMemberController.java
+3
-3
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+6
-0
pom.xml
ace-modules/ace-tool/pom.xml
+6
-3
pom.xml
ace-sidecar/ace-sidecar-client-demo/pom.xml
+8
-2
pom.xml
ace-sidecar/ace-sidecar-server/pom.xml
+4
-1
CertificationController.java
...latform/universal/controller/CertificationController.java
+1
-1
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+8
-7
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
View file @
9561bc88
...
@@ -103,9 +103,9 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
...
@@ -103,9 +103,9 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
if
(
CollectionUtils
.
isEmpty
(
appUserManageVos
))
{
if
(
CollectionUtils
.
isEmpty
(
appUserManageVos
))
{
return
new
PageInfo
<
AppUserManageVo
>();
return
new
PageInfo
<
AppUserManageVo
>();
}
}
Set
<
Integer
>
usSet
=
appUserManageDTO
.
getCitySet
();
//
Set<Integer> usSet = appUserManageDTO.getCitySet();
List
<
AppUserManageVo
>
results
=
appUserManageVos
.
parallelStream
().
filter
(
us
->
usSet
.
contains
(
us
.
getCityCode
())).
collect
(
Collectors
.
toList
());
//
List<AppUserManageVo> results = appUserManageVos.parallelStream().filter(us -> usSet.contains(us.getCityCode())).collect(Collectors.toList());
PageInfo
<
AppUserManageVo
>
pageInfo
=
PageInfo
.
of
(
result
s
);
PageInfo
<
AppUserManageVo
>
pageInfo
=
PageInfo
.
of
(
appUserManageVo
s
);
return
getAppUserManageVoPageInfo
(
pageInfo
);
return
getAppUserManageVoPageInfo
(
pageInfo
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
View file @
9561bc88
...
@@ -208,11 +208,12 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper, BaseUserMem
...
@@ -208,11 +208,12 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper, BaseUserMem
if
(
baseUserMemberVO
!=
null
)
{
if
(
baseUserMemberVO
!=
null
)
{
return
baseUserMemberVO
;
return
baseUserMemberVO
;
}
}
return
n
ew
BaseUserMemberVO
()
;
return
n
ull
;
}
}
/**
/**
* 设置用户会员
* 设置用户会员
*
*
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUsersManageController.java
View file @
9561bc88
...
@@ -45,19 +45,20 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
...
@@ -45,19 +45,20 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
@Autowired
@Autowired
private
VehicleFeign
vehicleFeign
;
private
VehicleFeign
vehicleFeign
;
private
Integer
ALL_PERMISSIONS
=
1
;
/**
/**
* 查询所有
* 查询所有
* @return
* @return
*/
*/
@PostMapping
(
"/findAll"
)
@PostMapping
(
"/findAll"
)
public
ObjectRestResponse
<
PageInfo
<
AppUserManageVo
>>
findAllByQuery
(
@RequestBody
AppUserManageDTO
appUserManageDTO
,
HttpServletRequest
request
)
throws
Exception
{
public
ObjectRestResponse
<
PageInfo
<
AppUserManageVo
>>
findAllByQuery
(
@RequestBody
AppUserManageDTO
appUserManageDTO
)
throws
Exception
{
String
token
=
userAuthConfig
.
getToken
(
request
);
String
token
=
userAuthConfig
.
getToken
(
request
);
ObjectRestResponse
objectRestResponse
=
publicController
.
userinfoByToken
(
token
);
ObjectRestResponse
objectRestResponse
=
publicController
.
userinfoByToken
(
token
);
User
user
=
(
User
)
objectRestResponse
.
getData
();
User
user
=
(
User
)
objectRestResponse
.
getData
();
if
(
user
==
null
){
if
(
user
==
null
){
throw
new
BaseException
(
"User error!"
);
throw
new
BaseException
(
"User error!"
);
}
}
if
(
user
.
getDataAll
()==
1
)
{
if
(
ALL_PERMISSIONS
.
equals
(
user
.
getDataAll
())
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
findAllByQuery
(
appUserManageDTO
));
return
ObjectRestResponse
.
succ
(
baseBiz
.
findAllByQuery
(
appUserManageDTO
));
}
}
ObjectRestResponse
<
Set
<
Integer
>>
setObjectRestResponse
=
vehicleFeign
.
corporationCity
(
user
.
getDataZone
(),
user
.
getDataCompany
());
ObjectRestResponse
<
Set
<
Integer
>>
setObjectRestResponse
=
vehicleFeign
.
corporationCity
(
user
.
getDataZone
(),
user
.
getDataCompany
());
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/BaseUserMemberController.java
View file @
9561bc88
...
@@ -3,7 +3,6 @@ package com.github.wxiaoqi.security.admin.rest;
...
@@ -3,7 +3,6 @@ package com.github.wxiaoqi.security.admin.rest;
import
com.github.wxiaoqi.security.admin.biz.BaseUserMemberBiz
;
import
com.github.wxiaoqi.security.admin.biz.BaseUserMemberBiz
;
import
com.github.wxiaoqi.security.admin.dto.BaseUserMemberVO
;
import
com.github.wxiaoqi.security.admin.dto.BaseUserMemberVO
;
import
com.github.wxiaoqi.security.admin.dto.UserMemberDTO
;
import
com.github.wxiaoqi.security.admin.dto.UserMemberDTO
;
import
com.github.wxiaoqi.security.admin.entity.AppUserManage
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMember
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMember
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
...
@@ -15,7 +14,6 @@ import io.swagger.annotations.ApiOperation;
...
@@ -15,7 +14,6 @@ import io.swagger.annotations.ApiOperation;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.Objects
;
import
java.util.Objects
;
/**
/**
...
@@ -40,7 +38,9 @@ public class BaseUserMemberController extends BaseController<BaseUserMemberBiz,
...
@@ -40,7 +38,9 @@ public class BaseUserMemberController extends BaseController<BaseUserMemberBiz,
@ApiOperation
(
value
=
"根据用户id获取用户会员信息"
)
@ApiOperation
(
value
=
"根据用户id获取用户会员信息"
)
@GetMapping
(
"/findOne/{userId}"
)
@GetMapping
(
"/findOne/{userId}"
)
public
ObjectRestResponse
<
BaseUserMemberVO
>
findOneByUserId
(
@PathVariable
Integer
userId
)
throws
Exception
{
public
ObjectRestResponse
<
BaseUserMemberVO
>
findOneByUserId
(
@PathVariable
Integer
userId
)
throws
Exception
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
findOneByUserId
(
userId
));
BaseUserMemberVO
oneByUserId
=
baseBiz
.
findOneByUserId
(
userId
);
oneByUserId
=(
oneByUserId
==
null
?
new
BaseUserMemberVO
():
oneByUserId
);
return
ObjectRestResponse
.
succ
(
oneByUserId
);
}
}
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
9561bc88
...
@@ -133,6 +133,12 @@
...
@@ -133,6 +133,12 @@
<if
test=
"source !=null "
>
<if
test=
"source !=null "
>
and d.source = #{source}
and d.source = #{source}
</if>
</if>
<if
test=
"citySet != null "
>
and d.city_code in
<foreach
collection=
"citySet"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
order by l.id ASC
order by l.id ASC
</select>
</select>
...
...
ace-modules/ace-tool/pom.xml
View file @
9561bc88
...
@@ -87,7 +87,10 @@
...
@@ -87,7 +87,10 @@
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
...
@@ -95,8 +98,8 @@
...
@@ -95,8 +98,8 @@
</dependency>
</dependency>
<!--<dependency>-->
<!--<dependency>-->
<!--<groupId>org.springframework.amqp</groupId>-->
<!--<groupId>org.springframework.amqp</groupId>-->
<!--<artifactId>spring-rabbit</artifactId>-->
<!--<artifactId>spring-rabbit</artifactId>-->
<!--</dependency>-->
<!--</dependency>-->
<dependency>
<dependency>
...
...
ace-sidecar/ace-sidecar-client-demo/pom.xml
View file @
9561bc88
...
@@ -36,8 +36,14 @@
...
@@ -36,8 +36,14 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-config-server
</artifactId>
<artifactId>
spring-cloud-config-server
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-consul-all</artifactId>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
...
...
ace-sidecar/ace-sidecar-server/pom.xml
View file @
9561bc88
...
@@ -36,7 +36,10 @@
...
@@ -36,7 +36,10 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-config-server
</artifactId>
<artifactId>
spring-cloud-config-server
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-consul-all
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/CertificationController.java
View file @
9561bc88
...
@@ -102,7 +102,7 @@ public class CertificationController {
...
@@ -102,7 +102,7 @@ public class CertificationController {
// }
// }
// });
// });
// thread.start();
// thread.start();
}
}
return
result
;
return
result
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
9561bc88
...
@@ -251,16 +251,16 @@ public class CertificationService {
...
@@ -251,16 +251,16 @@ public class CertificationService {
}
}
idInformation
.
setExpirationDate
(
expirationDate
);
idInformation
.
setExpirationDate
(
expirationDate
);
CertificationService
cs
=
applicationContext
.
getBean
(
this
.
getClass
());
CertificationService
cs
=
applicationContext
.
getBean
(
this
.
getClass
());
ObjectRestResponse
objRR
=
cs
.
addIdInformation
(
idInformation
);
return
cs
.
addIdInformation
(
idInformation
);
log
.
info
(
"----请求admin========="
+
objRR
);
//
log.info("----请求admin=========" + objRR);
if
(
objRR
.
getRel
())
{
//
if (objRR.getRel()) {
return
ObjectRestResponse
.
succ
(
objRR
.
getData
());
//
return ObjectRestResponse.succ(objRR.getData());
}
//
}
}
}
}
}
return
ObjectRestResponse
.
succ
(
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"网络异常,请稍后再试"
);
}
}
...
@@ -344,7 +344,8 @@ public class CertificationService {
...
@@ -344,7 +344,8 @@ public class CertificationService {
// idInformation.setId(idInformation1.getId());
// idInformation.setId(idInformation1.getId());
// idInformation.setUpdTime(new Date());
// idInformation.setUpdTime(new Date());
// idInformationMapper.updateByPrimaryKeySelective(idInformation);
// idInformationMapper.updateByPrimaryKeySelective(idInformation);
throw
new
BaseException
(
"该身份证已存在,不要重复认证!"
);
log
.
error
(
"该身份证已存在,不要重复认证"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"该身份证已存在,不要重复认证"
);
}
}
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLoginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLoginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
//认证成功后修改用户,用户认证状态
//认证成功后修改用户,用户认证状态
...
...
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