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
ee44a087
Commit
ee44a087
authored
Sep 30, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提交
parent
359f4c40
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
3 deletions
+56
-3
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+8
-0
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+13
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+10
-0
JcsFeignClient.java
...join/amos/latentdanger/business/feign/JcsFeignClient.java
+22
-0
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+0
-0
application-dev.properties
...atentdanger/src/main/resources/application-dev.properties
+3
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
ee44a087
...
...
@@ -216,4 +216,12 @@ public interface IOrgUsrService {
* @return
*/
List
<
OrgUsrExcelDto
>
exportPersonToExcelByParentId
(
Long
parentId
);
/**
* 根据机场人员id获取amos账号id
*
* @param orgUserId
* @return
*/
String
getAmosIdByOrgUserId
(
String
orgUserId
)
throws
Exception
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
ee44a087
...
...
@@ -478,5 +478,16 @@ public class OrgUsrController extends BaseController {
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
amosIdExist
(
amosId
));
}
/**
* 根据机场人员id获取amos平台人员id
*
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/amos/{orgUserId}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据机场人员id获取amos平台人员id"
,
notes
=
"根据机场人员id获取amos平台人员id"
)
public
ResponseModel
<
String
>
getAmosIdByOrgUserId
(
@PathVariable
String
orgUserId
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getAmosIdByOrgUserId
(
orgUserId
));
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
ee44a087
...
...
@@ -32,6 +32,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
javax.annotation.Resource
;
...
...
@@ -1539,6 +1540,15 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
return
true
;
}
@Override
public
String
getAmosIdByOrgUserId
(
String
orgUserId
)
throws
Exception
{
OrgUsr
orgUsr
=
this
.
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
OrgUsr
>().
eq
(
OrgUsr:
:
getSequenceNbr
,
orgUserId
));
if
(
ValidationUtil
.
isEmpty
(
orgUsr
))
{
throw
new
Exception
(
"账号不存在"
);
}
return
orgUsr
.
getAmosOrgId
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/feign/JcsFeignClient.java
0 → 100644
View file @
ee44a087
package
com
.
yeejoin
.
amos
.
latentdanger
.
business
.
feign
;
import
com.yeejoin.amos.boot.module.common.api.feign.MultipartSupportConfig
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
* 机场服务feign
*
* @author Dell
*/
@FeignClient
(
name
=
"${jcs.fegin.name}"
,
path
=
"jcs"
,
configuration
=
{
MultipartSupportConfig
.
class
})
public
interface
JcsFeignClient
{
/**
* 根据机场人员id获取amos平台人员id
**/
@RequestMapping
(
value
=
"/org-usr/amos/{orgUserId}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
String
>
getAmosIdByUserId
(
@PathVariable
String
orgUserId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
ee44a087
This diff is collapsed.
Click to expand it.
amos-boot-system-latentdanger/src/main/resources/application-dev.properties
View file @
ee44a087
...
...
@@ -90,4 +90,5 @@ file.url=http://39.98.45.134:9000/
iot.fegin.name
=
AMOS-API-IOT
control.fegin.name
=
JCS-API-CONTROL
supervision.feign.name
=
AMOS-SUPERVISION-API
\ No newline at end of file
supervision.feign.name
=
AMOS-SUPERVISION-API
jcs.fegin.name
=
JCS-tb
\ 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