Commit f8dfa5aa authored by chenzhao's avatar chenzhao

消防系统 筛选参数 120警情 消防队伍互相父子级 消防队伍部门返回上级单位的队伍

parent 6285ea0e
...@@ -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 ;
} }
...@@ -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>
......
...@@ -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);
......
...@@ -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());
} }
......
...@@ -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="";
......
...@@ -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
......
...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment