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
de447d40
Commit
de447d40
authored
Dec 21, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加get方法
parent
f00d9d73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+56
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
de447d40
...
@@ -493,6 +493,62 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -493,6 +493,62 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
}
}
@GetMapping
(
value
=
"/getEquipTypeAmountCarJxiop"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"九大类下装备,通过code截取"
,
notes
=
"九大类下装备信息列表"
)
public
IPage
<
EquipTypeImgAmountVO
>
getEquipTypeAmountCarJxiopGet
(
EquipTypeAmountPageDTO
equipTypeAmountPage
)
{
String
[]
result
=
hierarchy
.
split
(
","
);
Map
<
Integer
,
Integer
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
result
.
length
;
i
++)
{
map
.
put
(
i
,
Integer
.
valueOf
(
result
[
i
]));
}
log
.
info
(
"orgCode当前值为start::"
+
equipTypeAmountPage
.
getBizOrgCode
());
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
ObjectUtils
.
isEmpty
(
equipTypeAmountPage
.
getBizOrgCode
()))
{
if
(!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
equipTypeAmountPage
.
setBizOrgCode
(
reginParams
.
getCompany
().
getOrgCode
());
}
else
{
equipTypeAmountPage
.
setBizOrgCode
(
"-1"
);
}
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
())
&&
(
equipTypeAmountPage
.
getBizOrgCode
().
startsWith
(
reginParams
.
getCompany
().
getOrgCode
())))
{
}
else
{
equipTypeAmountPage
.
setBizOrgCode
(
reginParams
.
getCompany
().
getOrgCode
());
}
}
log
.
info
(
"orgCode当前值为::"
+
equipTypeAmountPage
.
getBizOrgCode
());
if
(
StringUtil
.
isNotEmpty
(
equipTypeAmountPage
.
getEquipmentClassificationCode
()))
{
QueryWrapper
<
EquipmentCategory
>
equipmentCategoryQueryWrapper
=
new
QueryWrapper
<>();
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipTypeAmountPage
.
getEquipmentClassificationCode
());
equipmentCategoryQueryWrapper
.
eq
(
"industry_code"
,
equipTypeAmountPage
.
getIndustryCode
());
EquipmentCategory
equipmentCategory
=
equipmentCategoryService
.
getOne
(
equipmentCategoryQueryWrapper
);
if
(
equipmentCategory
==
null
)
{
throw
new
RuntimeException
(
"装备定义code有误"
);
}
int
inhierarchy
=
1
;
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
//进来先判断是否默认就是空,如果为空第一层
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
//判断是否是最下面的子节点
if
(
i
>=
4
)
{
inhierarchy
=
8
;
}
else
{
inhierarchy
=
map
.
get
(
i
);
}
break
;
}
else
{
//查找到循环几次为空
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipmentCategory
.
getParentId
());
}
}
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
inhierarchy
,
equipTypeAmountPage
.
getEquipmentClassificationCode
().
substring
(
0
,
inhierarchy
),
equipTypeAmountPage
);
}
else
{
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
0
,
null
,
equipTypeAmountPage
);
}
}
@PostMapping
(
value
=
"/getEquipTypeAmountCarJxiop"
)
@PostMapping
(
value
=
"/getEquipTypeAmountCarJxiop"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
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