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
7f3e9a48
Commit
7f3e9a48
authored
Jun 16, 2025
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
40eaf7fe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+15
-9
pom.xml
amos-boot-module/amos-boot-module-biz/pom.xml
+1
-1
AmostEquipApplication.java
...quip/src/main/java/com/yeejoin/AmostEquipApplication.java
+1
-1
application-kingbase.properties
...-equip/src/main/resources/application-kingbase.properties
+2
-2
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 @
7f3e9a48
...
@@ -579,17 +579,24 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -579,17 +579,24 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
log
.
info
(
"orgCode当前值为::"
+
equipTypeAmountPage
.
getBizOrgCode
());
log
.
info
(
"orgCode当前值为::"
+
equipTypeAmountPage
.
getBizOrgCode
());
if
(
StringUtil
.
isNotEmpty
(
equipTypeAmountPage
.
getEquipmentClassificationCode
()))
{
if
(
StringUtil
.
isNotEmpty
(
equipTypeAmountPage
.
getEquipmentClassificationCode
()))
{
EquipmentCategory
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipTypeAmountPage
.
getEquipmentClassificationCode
());
if
(
equipmentCategory
!=
null
)
{
}
else
{
QueryWrapper
<
EquipmentCategory
>
equipmentCategoryQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
EquipmentCategory
>
equipmentCategoryQueryWrapper
=
new
QueryWrapper
<>();
log
.
info
(
"code当前值为::"
+
equipTypeAmountPage
.
getEquipmentClassificationCode
());
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipTypeAmountPage
.
getEquipmentClassificationCode
());
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipTypeAmountPage
.
getEquipmentClassificationCode
());
log
.
info
(
"industry_code当前值为::"
+
equipTypeAmountPage
.
getIndustryCode
());
equipmentCategoryQueryWrapper
.
eq
(
"industry_code"
,
equipTypeAmountPage
.
getIndustryCode
());
equipmentCategoryQueryWrapper
.
eq
(
"industry_code"
,
equipTypeAmountPage
.
getIndustryCode
());
EquipmentCategory
equipmentCategory
=
equipmentCategoryService
.
getOne
(
equipmentCategoryQueryWrapper
);
List
<
EquipmentCategory
>
equipmentCategoryList
=
equipmentCategoryService
.
list
(
equipmentCategoryQueryWrapper
);
if
(
equipmentCategory
==
null
)
{
if
(
CollectionUtils
.
isEmpty
(
equipmentCategoryList
)
)
{
throw
new
RuntimeException
(
"装备定义code有误"
);
throw
new
RuntimeException
(
"装备定义code有误"
);
}
}
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
}
String
code
=
equipmentCategory
.
getCode
();
int
inhierarchy
=
1
;
int
inhierarchy
=
1
;
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
//进来先判断是否默认就是空,如果为空第一层
//进来先判断是否默认就是空,如果为空第一层
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
//判断是否是最下面的子节点
//判断是否是最下面的子节点
...
@@ -605,7 +612,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -605,7 +612,7 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
}
}
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
inhierarchy
,
equipTypeAmountPage
.
getEquipmentClassificationCode
()
.
substring
(
0
,
inhierarchy
),
equipTypeAmountPage
);
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
inhierarchy
,
code
.
substring
(
0
,
inhierarchy
),
equipTypeAmountPage
);
}
else
{
}
else
{
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
0
,
null
,
equipTypeAmountPage
);
return
fireFightingSystemService
.
getColaCategoryAmountCarListJxiop
(
0
,
null
,
equipTypeAmountPage
);
}
}
...
@@ -624,20 +631,19 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -624,20 +631,19 @@ public class FireFightingSystemController extends AbstractBaseController {
if
(
StringUtil
.
isNotEmpty
(
equipTypeAmountPage
.
getEquipmentClassificationCode
()))
{
if
(
StringUtil
.
isNotEmpty
(
equipTypeAmountPage
.
getEquipmentClassificationCode
()))
{
EquipmentCategory
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipTypeAmountPage
.
getEquipmentClassificationCode
());
EquipmentCategory
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipTypeAmountPage
.
getEquipmentClassificationCode
());
QueryWrapper
<
EquipmentCategory
>
equipmentCategoryQueryWrapper
=
new
QueryWrapper
<>();
if
(
equipmentCategory
!=
null
)
if
(
equipmentCategory
!=
null
)
{
{
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipmentCategory
.
getCode
());
}
else
}
else
{
{
QueryWrapper
<
EquipmentCategory
>
equipmentCategoryQueryWrapper
=
new
QueryWrapper
<>();
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipTypeAmountPage
.
getEquipmentClassificationCode
());
equipmentCategoryQueryWrapper
.
eq
(
"code"
,
equipTypeAmountPage
.
getEquipmentClassificationCode
());
}
equipmentCategoryQueryWrapper
.
eq
(
"industry_code"
,
equipTypeAmountPage
.
getIndustryCode
());
equipmentCategoryQueryWrapper
.
eq
(
"industry_code"
,
equipTypeAmountPage
.
getIndustryCode
());
List
<
EquipmentCategory
>
equipmentCategoryList
=
equipmentCategoryService
.
list
(
equipmentCategoryQueryWrapper
);
List
<
EquipmentCategory
>
equipmentCategoryList
=
equipmentCategoryService
.
list
(
equipmentCategoryQueryWrapper
);
if
(
CollectionUtils
.
isEmpty
(
equipmentCategoryList
))
{
if
(
CollectionUtils
.
isEmpty
(
equipmentCategoryList
))
{
throw
new
RuntimeException
(
"装备定义code有误"
);
throw
new
RuntimeException
(
"装备定义code有误"
);
}
}
EquipmentCategory
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
}
int
inhierarchy
=
1
;
int
inhierarchy
=
1
;
int
flag
=
0
;
int
flag
=
0
;
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
...
...
amos-boot-module/amos-boot-module-biz/pom.xml
View file @
7f3e9a48
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<module>
amos-boot-module-latentdanger-biz
</module>
<module>
amos-boot-module-latentdanger-biz
</module>
<module>
amos-boot-module-equip-biz
</module>
<module>
amos-boot-module-equip-biz
</module>
<module>
amos-boot-module-ccs-biz
</module>
<module>
amos-boot-module-ccs-biz
</module>
<
module>
amos-boot-module-avic-biz
</module
>
<
!--<module>amos-boot-module-avic-biz</module>--
>
<module>
amos-boot-module-precontrol-biz
</module>
<module>
amos-boot-module-precontrol-biz
</module>
<module>
amos-boot-module-kgd-biz
</module>
<module>
amos-boot-module-kgd-biz
</module>
</modules>
</modules>
...
...
amos-boot-system-equip/src/main/java/com/yeejoin/AmostEquipApplication.java
View file @
7f3e9a48
...
@@ -46,7 +46,7 @@ public class AmostEquipApplication {
...
@@ -46,7 +46,7 @@ public class AmostEquipApplication {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmostEquipApplication
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmostEquipApplication
.
class
);
//是否走江西电建的车辆监听器,默认不走,如果在配置文件中添加了该配置且配置的值不为false
//是否走江西电建的车辆监听器,默认不走,如果在配置文件中添加了该配置且配置的值不为false
@Value
(
"${jxiop.carIotNewListener.enable:
fals
e}"
)
@Value
(
"${jxiop.carIotNewListener.enable:
tru
e}"
)
private
String
jxiop
;
private
String
jxiop
;
@Autowired
@Autowired
...
...
amos-boot-system-equip/src/main/resources/application-kingbase.properties
View file @
7f3e9a48
...
@@ -40,8 +40,8 @@ spring.redis.expire.time=30000
...
@@ -40,8 +40,8 @@ spring.redis.expire.time=30000
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://192.168.0.54:1883
emqx.broker
=
tcp://192.168.0.54:1883
emqx.user-name
=
super
emqx.user-name
=
admin
emqx.password
=
123456
emqx.password
=
public
mqtt.scene.host
=
mqtt://192.168.0.54:8083/mqtt
mqtt.scene.host
=
mqtt://192.168.0.54:8083/mqtt
mqtt.client.product.id
=
mqtt
mqtt.client.product.id
=
mqtt
mqtt.topic
=
topic_mqtt
mqtt.topic
=
topic_mqtt
...
...
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