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
69702d87
Commit
69702d87
authored
Dec 22, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
5823adfc
de447d40
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
26 deletions
+94
-26
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+35
-23
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+56
-0
ICarService.java
...ain/java/com/yeejoin/equipmanage/service/ICarService.java
+1
-1
CarServiceImpl.java
.../com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/CarController.java
View file @
69702d87
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
69702d87
...
@@ -494,6 +494,62 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -494,6 +494,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
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"九大类下装备,通过code截取-江西电建"
,
notes
=
"九大类下装备信息列表-江西电建"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"九大类下装备,通过code截取-江西电建"
,
notes
=
"九大类下装备信息列表-江西电建"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ICarService.java
View file @
69702d87
...
@@ -187,7 +187,7 @@ public interface ICarService extends IService<Car> {
...
@@ -187,7 +187,7 @@ public interface ICarService extends IService<Car> {
IPage
getQRCode
(
Long
id
);
IPage
getQRCode
(
Long
id
);
List
<
Car
>
location
();
List
<
Car
>
location
(
String
orgCode
);
// 获取车辆总数
// 获取车辆总数
Map
<
String
,
Integer
>
getCountOfCar
();
Map
<
String
,
Integer
>
getCountOfCar
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
View file @
69702d87
...
@@ -1442,8 +1442,8 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
...
@@ -1442,8 +1442,8 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
}
}
@Override
@Override
public
List
<
Car
>
location
()
{
public
List
<
Car
>
location
(
String
orgCode
)
{
List
<
Car
>
list
=
this
.
list
();
List
<
Car
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
Car
>().
like
(
Car:
:
getBizOrgCode
,
orgCode
)
);
return
list
;
return
list
;
}
}
...
...
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