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
7cd9874a
Commit
7cd9874a
authored
Jul 27, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三小概览信息
parent
a6fb06c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
16 deletions
+37
-16
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+12
-4
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+10
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+15
-10
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
7cd9874a
...
...
@@ -135,14 +135,22 @@ public class ConfigureController extends AbstractBaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取消防力量信息(队伍值班等)"
)
@GetMapping
(
"/getFireTeamInfo"
)
public
ResponseModel
getFireTeamInfo
()
{
@ApiOperation
(
value
=
"获取消防力量信息(队伍值班等
(专职)
)"
)
@GetMapping
(
"/getFireTeamInfo
By116
"
)
public
ResponseModel
getFireTeamInfo
By116
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
!
ValidationUtil
.
isEmpty
(
reginParams
.
getPersonIdentity
())
&&
StringUtil
.
isNotEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
())
?
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
:
null
;
return
CommonResponseUtil
.
success
(
fireFightingSystemMapper
.
getFireTeamInfo
(
bizOrgCode
));
return
CommonResponseUtil
.
success
(
fireFightingSystemMapper
.
getFireTeamInfo
By116
(
bizOrgCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取消防力量信息(队伍值班等(志愿消防队))"
)
@GetMapping
(
"/getFireTeamInfoBy117"
)
public
ResponseModel
getFireTeamInfoBy117
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
!
ValidationUtil
.
isEmpty
(
reginParams
.
getPersonIdentity
())
&&
StringUtil
.
isNotEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
())
?
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
:
null
;
return
CommonResponseUtil
.
success
(
fireFightingSystemMapper
.
getFireTeamInfoBy117
(
bizOrgCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"消防车辆信息"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
7cd9874a
...
...
@@ -268,7 +268,15 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @param bizOrgCode
* @return
*/
List
<
Map
<
String
,
Object
>>
getFireTeamInfo
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Map
<
String
,
Object
>
getFireTeamInfoBy117
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
* 获取消防力量信息(队伍值班等)
*
* @param bizOrgCode
* @return
*/
Map
<
String
,
Object
>
getFireTeamInfoBy116
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
* 消防车辆信息
...
...
@@ -276,7 +284,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @param bizOrgCode
* @return
*/
List
<
Map
<
String
,
Object
>
>
getFireCarInfo
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Map
<
String
,
Object
>
getFireCarInfo
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
* 物联监控页面消防车辆信息
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
7cd9874a
...
...
@@ -2422,29 +2422,33 @@
) AS unConfirmInfoNum
</select>
<select
id=
"getFireTeamInfo"
resultType=
"java.util.Map"
>
<select
id=
"getFireTeamInfo
By117
"
resultType=
"java.util.Map"
>
SELECT
ifnull( count( 0 ), 0 ) AS `total`,
ifnull( sum(( SELECT count( 0 ) FROM `d_duty_details` `duty` WHERE ( `duty`.`user_id` = `cou`.`sequence_nbr` ))), 0 ) AS `on_duty`,
'志愿消防队'
'志愿消防队'
as typeName
FROM
( SELECT * FROM `cb_org_usr` WHERE `cb_org_usr`.`is_firefighters` = 1 AND `cb_org_usr`.`type_code` = 117
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
AND biz_org_code = #{bizOrgCode,jdbcType=VARCHAR}
</if>
) `cou` UNION ALL
</if>
) `cou`
</select>
<select
id=
"getFireTeamInfoBy116"
resultType=
"java.util.Map"
>
SELECT
ifnull( count( 0 ), 0 ) AS `total`,
ifnull( sum(( SELECT count( 0 ) FROM `d_duty_details` `duty` WHERE ( `duty`.`user_id` = `cou`.`sequence_nbr` ))), 0 ) AS `on_duty`,
'专职驻站消防队'
ifnull( count( 0 ), 0 ) AS `total`,
ifnull( sum(( SELECT count( 0 ) FROM `d_duty_details` `duty` WHERE ( `duty`.`user_id` = `cou`.`sequence_nbr` ))), 0 ) AS `on_duty`,
'专职驻站消防队' as typeName
FROM
( SELECT * FROM `cb_org_usr` WHERE `cb_org_usr`.`is_firefighters` = 1 AND `cb_org_usr`.`type_code` = 116
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
AND biz_org_code = #{bizOrgCode,jdbcType=VARCHAR}
</if>
) `cou`
( SELECT * FROM `cb_org_usr` WHERE `cb_org_usr`.`is_firefighters` = 1 AND `cb_org_usr`.`type_code` = 116
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
AND biz_org_code = #{bizOrgCode,jdbcType=VARCHAR}
</if>
) `cou`
</select>
<select
id=
"getFireCarInfo"
resultType=
"java.util.Map"
>
SELECT
a.total,
IFNULL( sum( a.carStartState ), 0 ) AS carStartNum,
IFNULL( sum( a.carCloseState ), 0 ) AS carCloseNum
FROM
...
...
@@ -2452,6 +2456,7 @@
SELECT
`wc`.`id` AS `id`,
`wc`.`name` AS `name`,
count(wc.id) as total,
max(
CASE
...
...
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