Commit 8a9b591c authored by 李秀明's avatar 李秀明

Merge remote-tracking branch 'origin/develop_dl' into develop_dl

parents ecc7017a 5515c2b7
...@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO { ...@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO {
@ApiModelProperty(value = "分类名称/车或者装备") @ApiModelProperty(value = "分类名称/车或者装备")
private String systemType; private String systemType;
@ApiModelProperty(value = "") @ApiModelProperty(value = "状态评估")
private String other; private String other;
@ApiModelProperty(value = "") @ApiModelProperty(value = "日常运维")
private String equip; private String equip;
} }
...@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController {
return equipmentSpecificSerivce.getMonitoringUnitList(equipTypeAmountPage); return equipmentSpecificSerivce.getMonitoringUnitList(equipTypeAmountPage);
} }
@GetMapping(value = "/getMonitoringCount")
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "查询监测部件列表", notes = "查询监测部件列表")
public List<Map<String, Object>> getMonitoringCount(String bizOrgCode) {
return equipmentSpecificSerivce.getMonitoringCount(bizOrgCode);
}
/** /**
* 添加系统 * 添加系统
......
...@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> { ...@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List<Map<String, Object>> getListByCode(@Param("code") String code, @Param("bizOrgCode") String bizOrgCode); List<Map<String, Object>> getListByCode(@Param("code") String code, @Param("bizOrgCode") String bizOrgCode);
IPage<EquipTypeImgAmountVO> getMonitoringUnitList(@Param("page") IPage page,@Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage); IPage<EquipTypeImgAmountVO> getMonitoringUnitList(@Param("page") IPage page,@Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage);
List<Map<String, Object >> getMonitoringCount(String bizOrgCode);
} }
...@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> { ...@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
String updateEquipSpecificStatusByCheckInput( String id); String updateEquipSpecificStatusByCheckInput( String id);
IPage<EquipTypeImgAmountVO> getMonitoringUnitList(EquipTypeAmountPageDTO equipTypeAmountPage); IPage<EquipTypeImgAmountVO> getMonitoringUnitList(EquipTypeAmountPageDTO equipTypeAmountPage);
List<Map<String, Object >> getMonitoringCount(String bizOrgCode);
} }
...@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*; ...@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*;
import com.yeejoin.equipmanage.remote.RemoteSecurityService; import com.yeejoin.equipmanage.remote.RemoteSecurityService;
import com.yeejoin.equipmanage.service.*; import com.yeejoin.equipmanage.service.*;
import com.yeejoin.equipmanage.utils.RelationRedisUtil; import com.yeejoin.equipmanage.utils.RelationRedisUtil;
import liquibase.pro.packaged.S;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
...@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
public IPage<EquipTypeImgAmountVO> getMonitoringUnitList(EquipTypeAmountPageDTO equipTypeAmountPage) { public IPage<EquipTypeImgAmountVO> getMonitoringUnitList(EquipTypeAmountPageDTO equipTypeAmountPage) {
return equipmentSpecificMapper.getMonitoringUnitList(equipTypeAmountPage.getPage(),equipTypeAmountPage); return equipmentSpecificMapper.getMonitoringUnitList(equipTypeAmountPage.getPage(),equipTypeAmountPage);
} }
@Override
public List<Map<String, Object >> getMonitoringCount(String bizOrgCode) {
return equipmentSpecificMapper.getMonitoringCount(bizOrgCode);
}
} }
...@@ -74,6 +74,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -74,6 +74,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
SendToMsgRiskEquipInfoVo equipInfoVo = new SendToMsgRiskEquipInfoVo(); SendToMsgRiskEquipInfoVo equipInfoVo = new SendToMsgRiskEquipInfoVo();
SendToMsgRiskAlarmInfoVo equipAlarm = new SendToMsgRiskAlarmInfoVo(); SendToMsgRiskAlarmInfoVo equipAlarm = new SendToMsgRiskAlarmInfoVo();
Map<String, Object> m = new HashMap<>(); Map<String, Object> m = new HashMap<>();
RiskBizInfoVo infoVo = new RiskBizInfoVo();
if (source.equalsIgnoreCase(RiskSourceTypeEnum.PATROL.getName())) { if (source.equalsIgnoreCase(RiskSourceTypeEnum.PATROL.getName())) {
List<Map<String, Object>> checkInputItems = equipmentSpecificMapper.queryCheckInputItemsByCheckId(id); List<Map<String, Object>> checkInputItems = equipmentSpecificMapper.queryCheckInputItemsByCheckId(id);
Map<String, Object> map = checkInputItems.get(0); Map<String, Object> map = checkInputItems.get(0);
...@@ -102,6 +103,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -102,6 +103,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
m.put("checkUser", String.valueOf(patrolMap.get("username"))); m.put("checkUser", String.valueOf(patrolMap.get("username")));
m.put("checkResult", String.valueOf(patrolMap.get("inputStatus"))); m.put("checkResult", String.valueOf(patrolMap.get("inputStatus")));
m.put("checkTime", String.valueOf(patrolMap.get("checkTime"))); m.put("checkTime", String.valueOf(patrolMap.get("checkTime")));
infoVo.setSourceSupplyField(String.valueOf(patrolMap.get("checkInputId")));
} }
} else if (source.equalsIgnoreCase(RiskSourceTypeEnum.EQUIP.getName())) { } else if (source.equalsIgnoreCase(RiskSourceTypeEnum.EQUIP.getName())) {
equipmentSpecId = id; equipmentSpecId = id;
...@@ -148,7 +150,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -148,7 +150,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
} }
detailVo.setEquipInfo(equipInfoVo); detailVo.setEquipInfo(equipInfoVo);
detailVo.setAlarmInfo(equipAlarm); detailVo.setAlarmInfo(equipAlarm);
RiskBizInfoVo infoVo = new RiskBizInfoVo();
infoVo.setWarningObjectName(detailVo.getEquipInfo().getName()); infoVo.setWarningObjectName(detailVo.getEquipInfo().getName());
infoVo.setWarningObjectCode(detailVo.getEquipInfo().getCode()); infoVo.setWarningObjectCode(detailVo.getEquipInfo().getCode());
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
...@@ -198,15 +200,23 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -198,15 +200,23 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
contentVo.setType("qrcode"); contentVo.setType("qrcode");
break; break;
case "alarmContent": case "alarmContent":
contentVo.setLabel(u.getDescribe()); if(!source.equalsIgnoreCase(RiskSourceTypeEnum.PATROL.getName())) {
contentVo.setValue(equipAlarm.getAlarmContent()); contentVo.setLabel(u.getDescribe());
contentVo.setType("text"); contentVo.setValue(equipAlarm.getAlarmContent());
break; contentVo.setType("text");
break;
} else {
break;
}
case "alarmDate": case "alarmDate":
contentVo.setLabel(u.getDescribe()); if(!source.equalsIgnoreCase(RiskSourceTypeEnum.PATROL.getName())) {
contentVo.setValue(equipAlarm.getAlarmDate()); contentVo.setLabel(u.getDescribe());
contentVo.setType("text"); contentVo.setValue(equipAlarm.getAlarmDate());
break; contentVo.setType("text");
break;
} else {
break;
}
default: default:
log.info("方法参数错误 !!!"); log.info("方法参数错误 !!!");
break; break;
......
...@@ -2612,14 +2612,27 @@ ...@@ -2612,14 +2612,27 @@
AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%') AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
</if> </if>
<if test="equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''"> <if test="equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''">
And wlc.equip_status = #{equipTypeAmountPage.equipStatus} And wes.equip_status = #{equipTypeAmountPage.equipStatus}
</if> </if>
<if test="equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''"> <if test="equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''">
and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%') and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%')
</if> </if>
and wes.id = aqr.buss_id
</where> </where>
ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC
</select> </select>
<select id="getMonitoringCount" resultType="java.util.Map">
SELECT
wes.id,
count(wed.code) AS count,
LEFT(wed.code, 8) AS code,
wed.equipment_name name
FROM
wl_equipment_specific wes
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
WHERE
wes.biz_org_code LIKE CONCAT( #{bizOrgCode}, '%' )
AND wed.equipment_name is not null
GROUP BY code
</select>
</mapper> </mapper>
\ No newline at end of file
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