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
8dee8b08
Commit
8dee8b08
authored
Jul 20, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检点新增
parent
e5dce878
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+2
-2
PointController.java
...join/amos/patrol/business/controller/PointController.java
+5
-3
JcsFeignClient.java
...om/yeejoin/amos/patrol/business/feign/JcsFeignClient.java
+2
-1
No files found.
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 @
8dee8b08
...
@@ -964,8 +964,7 @@ public class OrgUsrController extends BaseController {
...
@@ -964,8 +964,7 @@ public class OrgUsrController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@GetMapping
(
value
=
"/getCompanyInfo"
)
@GetMapping
(
value
=
"/getCompanyInfo"
)
public
ResponseModel
<
OrgUsr
>
getCompanyInfo
(
String
companyId
)
throws
Exception
{
public
ResponseModel
<
Object
>
getCompanyInfo
(
@RequestParam
String
companyId
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getByIduser
(
companyId
));
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getByIduser
(
companyId
));
}
}
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
8dee8b08
...
@@ -1131,9 +1131,11 @@ public class PointController extends AbstractBaseController {
...
@@ -1131,9 +1131,11 @@ public class PointController extends AbstractBaseController {
point
.
setOrgCode
(
loginOrgCode
);
//点归属于公司
point
.
setOrgCode
(
loginOrgCode
);
//点归属于公司
point
.
setCreatorId
(
user
.
getUserId
());
point
.
setCreatorId
(
user
.
getUserId
());
Object
result
=
jcsFeignClient
.
getCompanyInfo
(
point
.
getChargeDeptId
()).
getResult
();
String
bizOrgCode
=
((
Map
<
String
,
Object
>)
result
).
get
(
"bizOrgCode"
).
toString
();
ResponseModel
<
Object
>
companyInfo
=
jcsFeignClient
.
getCompanyInfo
(
point
.
getChargeDeptId
());
String
bizOrgName
=
((
Map
<
String
,
Object
>)
result
).
get
(
"bizOrgName"
).
toString
();
Object
obj
=
companyInfo
.
getResult
();
String
bizOrgCode
=
((
Map
<
String
,
Object
>)
obj
).
get
(
"bizOrgCode"
).
toString
();
String
bizOrgName
=
((
Map
<
String
,
Object
>)
obj
).
get
(
"bizOrgName"
).
toString
();
point
.
setBizOrgCode
(
bizOrgCode
);
point
.
setBizOrgCode
(
bizOrgCode
);
point
.
setBizOrgName
(
bizOrgName
);
point
.
setBizOrgName
(
bizOrgName
);
iPointService
.
addPointNew
(
point
);
iPointService
.
addPointNew
(
point
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/feign/JcsFeignClient.java
View file @
8dee8b08
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.patrol.business.feign;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.patrol.business.feign;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -62,6 +63,6 @@ public interface JcsFeignClient {
...
@@ -62,6 +63,6 @@ public interface JcsFeignClient {
FeignClientResult
<
List
<
Map
<
String
,
Object
>>>
selectByIdList
(
@RequestBody
List
<
String
>
id
);
FeignClientResult
<
List
<
Map
<
String
,
Object
>>>
selectByIdList
(
@RequestBody
List
<
String
>
id
);
@GetMapping
(
value
=
"/org-usr/getCompanyInfo"
)
@GetMapping
(
value
=
"/org-usr/getCompanyInfo"
)
ResponseModel
<
Object
>
getCompanyInfo
(
String
companyId
);
ResponseModel
<
Object
>
getCompanyInfo
(
@RequestParam
(
value
=
"companyId"
)
String
companyId
);
}
}
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