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
6b54a551
Commit
6b54a551
authored
Aug 24, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feign调用切换
parent
4bd41912
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
AgencyuserFeign.java
...oin/amos/boot/module/jxiop/api/feign/AgencyuserFeign.java
+18
-0
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+7
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/feign/AgencyuserFeign.java
0 → 100644
View file @
6b54a551
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
feign
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.LoginInfoModel
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
@FeignClient
(
name
=
"AMOS-API-PRIVILEGE"
,
path
=
"privilege"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
AgencyuserFeign
{
@RequestMapping
(
value
=
"/v1/agencyuser/login-info/{loginId}"
,
method
=
RequestMethod
.
PUT
)
public
FeignClientResult
<
LoginInfoModel
>
updateLoginInfo
(
@RequestBody
AgencyUserModel
model
,
@PathVariable
(
"loginId"
)
String
loginId
);
}
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 @
6b54a551
...
...
@@ -15,6 +15,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.Enum.QrcodeColorEnum;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.*
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.*
;
import
com.yeejoin.amos.boot.module.jxiop.api.feign.AgencyuserFeign
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.PersonAccountFedMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.PersonBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IPersonBasicService
;
...
...
@@ -86,6 +87,10 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
@Autowired
protected
EmqKeeper
emqKeeper
;
@Autowired
private
AgencyuserFeign
agencyuserFeign
;
/**
* 人员赋码触发风险模型
*/
...
...
@@ -624,7 +629,8 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
private
LoginInfoModel
updateLoginInfo
(
String
loginId
,
AgencyUserModel
userDto
)
{
FeignClientResult
<
LoginInfoModel
>
amosLoginfo
=
null
;
try
{
amosLoginfo
=
Privilege
.
agencyUserClient
.
updateLoginInfo
(
userDto
,
loginId
);
// amosLoginfo = Privilege.agencyUserClient.updateLoginInfo(userDto,loginId);
amosLoginfo
=
agencyuserFeign
.
updateLoginInfo
(
userDto
,
loginId
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
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