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
f8dfa5aa
Commit
f8dfa5aa
authored
Nov 17, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防系统 筛选参数 120警情 消防队伍互相父子级 消防队伍部门返回上级单位的队伍
parent
6285ea0e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
8 deletions
+26
-8
RequestData.java
.../yeejoin/amos/boot/module/common/api/dto/RequestData.java
+3
-0
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+4
-1
FireTeamController.java
...boot/module/common/biz/controller/FireTeamController.java
+4
-6
FireTeamServiceImpl.java
...t/module/common/biz/service/impl/FireTeamServiceImpl.java
+5
-0
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+3
-0
application.properties
...ot-system-equip/src/main/resources/application.properties
+1
-1
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+6
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/RequestData.java
View file @
f8dfa5aa
...
@@ -73,4 +73,7 @@ public class RequestData {
...
@@ -73,4 +73,7 @@ public class RequestData {
@ApiModelProperty
(
value
=
"筛选条件-所属单位"
)
@ApiModelProperty
(
value
=
"筛选条件-所属单位"
)
private
String
bizOrgCode
;
private
String
bizOrgCode
;
@ApiModelProperty
(
value
=
"筛选条件-是否120警情"
)
private
String
isAid
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
f8dfa5aa
...
@@ -43,9 +43,12 @@
...
@@ -43,9 +43,12 @@
WHEN '1166' THEN '原地待命'
WHEN '1166' THEN '原地待命'
ELSE '' END responseLevelCode
ELSE '' END responseLevelCode
FROM jc_alert_called a
FROM jc_alert_called a
where a.is_delete=0
and a.alert_type_code
<![CDATA[ <> ]]>
1214
where a.is_delete=0
<!--AND a.coordinate_x IS NOT NULL
<!--AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL-->
AND a.coordinate_y IS NOT NULL-->
<if
test=
'par.isAid == null '
>
and a.alert_type_code
<![CDATA[ <> ]]>
1214
</if>
<if
test=
'par.status==0'
>
<if
test=
'par.status==0'
>
and a.alert_status =0
and a.alert_status =0
</if>
</if>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FireTeamController.java
View file @
f8dfa5aa
...
@@ -185,12 +185,11 @@ public class FireTeamController extends BaseController {
...
@@ -185,12 +185,11 @@ public class FireTeamController extends BaseController {
OrgUsr
our
=
iOrgUsrService
.
getById
(
companyId
);
OrgUsr
our
=
iOrgUsrService
.
getById
(
companyId
);
if
(
our
.
getParentId
()!=
null
){
if
(
our
.
getParentId
()!=
null
){
//判断是不是部门
//判断是不是部门
if
(
our
.
getBizOrgType
().
equals
(
"COMPANY"
)){
if
(
our
.
getBizOrgType
().
equals
(
"COMPANY"
)){
columnMap
.
put
(
"company"
,
companyId
);
columnMap
.
put
(
"company"
,
companyId
);
}
else
{
}
else
{
String
id
=
orgUsrMapper
.
getParentList
(
companyId
);
OrgUsr
orgUsr
=
iOrgUsrService
.
selectParentOrgUsr
(
our
);
columnMap
.
put
(
"company"
,
id
);
columnMap
.
put
(
"company"
,
orgUsr
.
getSequenceNbr
()
);
}
}
}
}
List
<
Menu
>
menus
=
iFireTeamService
.
getTeamTree
(
columnMap
);
List
<
Menu
>
menus
=
iFireTeamService
.
getTeamTree
(
columnMap
);
...
@@ -212,9 +211,8 @@ public class FireTeamController extends BaseController {
...
@@ -212,9 +211,8 @@ public class FireTeamController extends BaseController {
if
(
our
.
getBizOrgType
().
equals
(
"COMPANY"
)){
if
(
our
.
getBizOrgType
().
equals
(
"COMPANY"
)){
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
our
.
getBizOrgCode
());
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
our
.
getBizOrgCode
());
}
else
{
}
else
{
String
id
=
orgUsrMapper
.
getParentList
(
companyId
);
OrgUsr
orgUsr
=
iOrgUsrService
.
selectParentOrgUsr
(
our
);
OrgUsr
ourf
=
iOrgUsrService
.
getById
(
id
);
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
orgUsr
.
getBizOrgCode
());
fireTeamQueryWrapper
.
likeRight
(
"biz_org_code"
,
ourf
.
getBizOrgCode
());
}
}
}
}
List
<
Menu
>
menus
=
iFireTeamService
.
getTeamTreeLikeCode
(
fireTeamQueryWrapper
);
List
<
Menu
>
menus
=
iFireTeamService
.
getTeamTreeLikeCode
(
fireTeamQueryWrapper
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireTeamServiceImpl.java
View file @
f8dfa5aa
...
@@ -35,6 +35,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
...
@@ -35,6 +35,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -258,6 +259,10 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -258,6 +259,10 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
fireTeam
.
setTreeCode
(
TreeParser
.
genTreeCode
());
fireTeam
.
setTreeCode
(
TreeParser
.
genTreeCode
());
}
else
{
}
else
{
FireTeam
parentTeam
=
getById
(
fireTeam
.
getParent
());
FireTeam
parentTeam
=
getById
(
fireTeam
.
getParent
());
//防止互为上级 造成树死循环
if
(
fireTeam
.
getSequenceNbr
()
!=
null
&&
parentTeam
.
getParent
()
!=
null
&&
parentTeam
.
getParent
().
equals
(
fireTeam
.
getSequenceNbr
())
){
throw
new
BadRequest
(
"该上级队伍不可选,本队伍已经是其上级"
);
}
fireTeam
.
setTreeCode
(
parentTeam
.
getTreeCode
()
+
TreeParser
.
genTreeCode
());
fireTeam
.
setTreeCode
(
parentTeam
.
getTreeCode
()
+
TreeParser
.
genTreeCode
());
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
f8dfa5aa
...
@@ -599,6 +599,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
...
@@ -599,6 +599,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
//tuisongxinjingqing
//tuisongxinjingqing
RequestData
par
=
new
RequestData
();
RequestData
par
=
new
RequestData
();
par
.
setAlertId
(
alertCalled
.
getSequenceNbr
());
par
.
setAlertId
(
alertCalled
.
getSequenceNbr
());
if
(
alertCalled
.
getAlertTypeCode
().
equals
(
AlertStageEnums
.
JJJQ
.
getCode
())){
par
.
setIsAid
(
"0"
);
}
List
<
AlertCalledZhDto
>
list
=
this
.
alertCalledListByAlertStatus
(
null
,
null
,
par
);
List
<
AlertCalledZhDto
>
list
=
this
.
alertCalledListByAlertStatus
(
null
,
null
,
par
);
String
json
=
""
;
String
json
=
""
;
...
...
amos-boot-system-equip/src/main/resources/application.properties
View file @
f8dfa5aa
...
@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL
...
@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL
maintenance.feign.name
=
AMOS-MAINTENANCE-API
maintenance.feign.name
=
AMOS-MAINTENANCE-API
precontrol.feign.name
=
JEPCC-PRECONTROL-SERVER
precontrol.feign.name
=
JEPCC-PRECONTROL-SERVER
security.privilege.name
=
AMOS-API-PRIVILEGE
security.privilege.name
=
AMOS-API-PRIVILEGE
security.systemctl.name
=
AMOS-API-
SYSTEMCTL
security.systemctl.name
=
AMOS-API-
PRIVILEGE
#jpush
#jpush
Push.fegin.name
=
AppMessagePushService
Push.fegin.name
=
AppMessagePushService
dutyMode.fegin.name
=
AMOS-DUTYMODE
dutyMode.fegin.name
=
AMOS-DUTYMODE
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
f8dfa5aa
...
@@ -52,9 +52,15 @@
...
@@ -52,9 +52,15 @@
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND sys.biz_org_code like CONCAT(#{bizOrgCode},'%')
AND sys.biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
AND sys.biz_org_code like CONCAT(#{companyCode},'%')
</if>
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
AND sys.form_group_id = #{formGroupId}
AND sys.form_group_id = #{formGroupId}
</if>
</if>
<if
test=
"controBoxBuildId != null "
>
AND sys.contro_box_build = #{controBoxBuildId}
</if>
</where>
</where>
order by sys.id DESC
order by sys.id DESC
LIMIT #{spage},#{pageSize}
LIMIT #{spage},#{pageSize}
...
...
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