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
c5f9e3ec
Commit
c5f9e3ec
authored
Sep 23, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺陷所需APIxiugai
parent
8bf45a47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+4
-0
BuildingController.java
...om/yeejoin/equipmanage/controller/BuildingController.java
+7
-0
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+3
-0
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/WaterResourceController.java
View file @
c5f9e3ec
...
...
@@ -19,6 +19,7 @@ import com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.*
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -483,6 +484,9 @@ public class WaterResourceController extends BaseController {
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
if
(
StringUtils
.
isEmpty
(
bizOrgCode
))
{
if
(
ObjectUtils
.
isEmpty
(
reginParams
)
||
ObjectUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
())
||
StringUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
()))
{
return
ResponseHelper
.
buildResponse
(
null
);
}
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
}
Page
<
WaterResourceDto
>
page
=
new
Page
<>();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/BuildingController.java
View file @
c5f9e3ec
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -8,6 +9,8 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import
com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
...
...
@@ -38,6 +41,7 @@ import com.yeejoin.equipmanage.service.IFormInstanceService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
/**
* @author ZeHua Li
...
...
@@ -117,6 +121,9 @@ public class BuildingController extends AbstractBaseController {
@GetMapping
(
value
=
"/treeByName"
)
public
List
<
BuildingTreeVo
>
treeByName
(
@RequestParam
(
required
=
false
)
String
name
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
if
(
ObjectUtils
.
isEmpty
(
reginParams
)
||
ObjectUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
())
||
StringUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
()))
{
return
new
ArrayList
<>();
}
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
return
buildService
.
treeByName
(
bizOrgCode
,
name
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
c5f9e3ec
...
...
@@ -519,6 +519,9 @@ public class FireFightingSystemController extends AbstractBaseController {
)
{
if
(
null
!=
isDefect
&&
1
==
isDefect
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
if
(
org
.
apache
.
commons
.
lang3
.
ObjectUtils
.
isEmpty
(
reginParams
)
||
org
.
apache
.
commons
.
lang3
.
ObjectUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
())
||
StringUtils
.
isEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
()))
{
return
new
HashMap
<>();
}
if
(
StringUtils
.
isEmpty
(
bizOrgCode
))
{
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
}
...
...
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