Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
b0d0f786
Commit
b0d0f786
authored
Apr 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用平台
parent
48443c7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+27
-11
application.properties
...odule-jxiop-biz/src/main/resources/application.properties
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
b0d0f786
...
@@ -14,6 +14,7 @@ import com.yeejoin.amos.feign.privilege.client.DepartmentClient;
...
@@ -14,6 +14,7 @@ import com.yeejoin.amos.feign.privilege.client.DepartmentClient;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.DepartmentModel
;
import
com.yeejoin.amos.feign.privilege.model.DepartmentModel
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -113,10 +114,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -113,10 +114,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
usd
.
setRoleSeqs
(
personAccount
.
getRoles
());
usd
.
setRoleSeqs
(
personAccount
.
getRoles
());
//账号
//账号
usd
.
setUserName
(
personAccount
.
getAccountName
());
usd
.
setUserName
(
personAccount
.
getAccountName
());
LinkedHashMap
<
String
,
Object
>
user
=
this
.
setcreateUser
(
usd
,
appKey
,
product
,
token
);
//orgcode
//orgcode
...
@@ -127,9 +125,6 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -127,9 +125,6 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
//平台USERID
//平台USERID
//人员基础信息
//人员基础信息
PersonBasic
personBasic
=
new
PersonBasic
();
PersonBasic
personBasic
=
new
PersonBasic
();
BeanUtils
.
copyProperties
(
personUser
,
personBasic
);
BeanUtils
.
copyProperties
(
personUser
,
personBasic
);
...
@@ -231,13 +226,34 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -231,13 +226,34 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
}
}
//新增平台用户
//新增平台用户
private
ResponseModel
<
Object
>
setcreateUser
(
UserDto
userDto
,
String
appKey
,
String
product
,
String
token
)
{
private
LinkedHashMap
<
String
,
Object
>
setcreateUser
(
UserDto
userDto
,
String
appKey
,
String
product
,
String
token
)
{
return
privilegeFeignClient
.
create
(
appKey
,
product
,
token
,
userDto
);
ResponseModel
<
Object
>
amosUser
=
privilegeFeignClient
.
create
(
appKey
,
product
,
token
,
userDto
);
LinkedHashMap
<
String
,
Object
>
user
=
new
LinkedHashMap
<>();
if
(!
ObjectUtils
.
isEmpty
(
amosUser
))
{
if
(
amosUser
.
getStatus
()==
200
){
user
=
(
LinkedHashMap
<
String
,
Object
>)
amosUser
.
getResult
();
}
else
{
throw
new
RuntimeException
();
}
}
return
user
;
}
}
//修改平台用户
//修改平台用户
private
ResponseModel
<
Object
>
update
(
String
userId
,
UserDto
userDto
,
String
appKey
,
String
product
,
String
token
)
{
private
LinkedHashMap
<
String
,
Object
>
update
(
String
userId
,
UserDto
userDto
,
String
appKey
,
String
product
,
String
token
)
{
return
privilegeFeignClient
.
update
(
userId
,
appKey
,
product
,
token
,
userDto
);
ResponseModel
<
Object
>
amosUser
=
privilegeFeignClient
.
update
(
userId
,
appKey
,
product
,
token
,
userDto
);
LinkedHashMap
<
String
,
Object
>
user
=
new
LinkedHashMap
<>();
if
(!
ObjectUtils
.
isEmpty
(
amosUser
))
{
if
(
amosUser
.
getStatus
()==
200
){
user
=
(
LinkedHashMap
<
String
,
Object
>)
amosUser
.
getResult
();
}
else
{
throw
new
RuntimeException
();
}
}
return
user
;
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/application.properties
View file @
b0d0f786
spring.application.name
=
AMOS-JXIOP
-WJ
spring.application.name
=
AMOS-JXIOP
server.servlet.context-path
=
/jxiop
server.servlet.context-path
=
/jxiop
server.port
=
33100
server.port
=
33100
server.uri-encoding
=
UTF-8
server.uri-encoding
=
UTF-8
...
@@ -31,7 +31,6 @@ spring.liquibase.enabled=true
...
@@ -31,7 +31,6 @@ spring.liquibase.enabled=true
## eureka properties:
## eureka properties:
eureka.client.registry-fetch-interval-seconds
=
5
eureka.client.registry-fetch-interval-seconds
=
5
eureka.instance.prefer-ip-address
=
true
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.lease-renewal-interval-in-seconds
=
5
...
@@ -57,3 +56,5 @@ spring.http.encoding.force=true
...
@@ -57,3 +56,5 @@ spring.http.encoding.force=true
privilege.fegin.name
=
AMOS-API-PRIVILEGE
privilege.fegin.name
=
AMOS-API-PRIVILEGE
feign.client.config.default.connect-timeout
=
20000
feign.client.config.default.read-timeout
=
20000
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