修改数据查询
This commit is contained in:
parent
e8e5748940
commit
337dd253e6
|
|
@ -47,7 +47,6 @@ public class ScIndexController {
|
|||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "告警提醒")
|
||||
@GetMapping("alarmReminder")
|
||||
public AjaxResult alarmReminder(ScreenParamDto dto){
|
||||
|
|
@ -89,4 +88,10 @@ public class ScIndexController {
|
|||
public AjaxResult getGtList(ScreenParamDto dto){
|
||||
return service.getGtList(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "工程下拉选集合")
|
||||
@GetMapping("getProList")
|
||||
public AjaxResult getProList(ScreenParamDto dto){
|
||||
return service.getProList(dto);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.securitycontrol.screen.mapper;
|
||||
|
||||
import com.securitycontrol.entity.background.vo.GtVo;
|
||||
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||
import com.securitycontrol.entity.screen.vo.ConstrQuality;
|
||||
import com.securitycontrol.entity.screen.vo.MapRiskVo;
|
||||
|
|
@ -146,4 +147,18 @@ public interface IScIndexMapper {
|
|||
*/
|
||||
@MapKey("bidCode")
|
||||
List<Map<String, Object>> getDangerNum(@Param("orgId") String orgId, @Param("params") ScreenParamDto dto);
|
||||
|
||||
/**
|
||||
* 查询杆塔集合
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<GtVo> getGtList(ScreenParamDto dto);
|
||||
|
||||
/**
|
||||
* 工程下拉选集合
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<GtVo> getProList(ScreenParamDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,4 +114,11 @@ public interface IScIndexService {
|
|||
* @return
|
||||
*/
|
||||
AjaxResult getGtList(ScreenParamDto dto);
|
||||
|
||||
/**
|
||||
* 查询工程下拉选集合
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
AjaxResult getProList(ScreenParamDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package com.securitycontrol.screen.service.impl;
|
|||
import com.securitycontrol.common.core.constant.Constant;
|
||||
import com.securitycontrol.common.core.utils.aes.DateTimeHelper;
|
||||
import com.securitycontrol.common.core.web.domain.AjaxResult;
|
||||
import com.securitycontrol.entity.background.vo.GtVo;
|
||||
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||
import com.securitycontrol.entity.screen.vo.ConstrQuality;
|
||||
import com.securitycontrol.entity.screen.vo.MapRiskVo;
|
||||
|
|
@ -333,7 +334,29 @@ public class ScIndexServiceImpl implements IScIndexService {
|
|||
|
||||
@Override
|
||||
public AjaxResult getGtList(ScreenParamDto dto) {
|
||||
try{
|
||||
List<GtVo> list=mapper.getGtList(dto);
|
||||
return AjaxResult.success(list);
|
||||
}catch (Exception e){
|
||||
log.error(e.toString());
|
||||
}
|
||||
return AjaxResult.success(new ArrayList<>());
|
||||
}
|
||||
|
||||
return null;
|
||||
/**
|
||||
* 工程下拉选结合
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public AjaxResult getProList(ScreenParamDto dto) {
|
||||
|
||||
try{
|
||||
List<GtVo> list=mapper.getProList(dto);
|
||||
return AjaxResult.success(list);
|
||||
}catch (Exception e){
|
||||
log.error(e.toString());
|
||||
}
|
||||
return AjaxResult.success(new ArrayList<>());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,9 +60,10 @@
|
|||
IFNULL(tdv.is_warn,'0') AS warn
|
||||
FROM tb_pro_bd tpd
|
||||
INNER JOIN tb_bd_device tbd ON tpd.id = tbd.bd_id
|
||||
INNER JOIN sys_dict sd ON sd.dict_code = tbd.devic_type AND sd.del_flag = 0 AND sd.dict_code= #{typeCode}
|
||||
INNER JOIN sys_dict sd ON sd.dict_code = tbd.devic_type AND sd.del_flag = 0
|
||||
LEFT JOIN tb_device_detail tdd ON tdd.device_id = tbd.device_id AND tdd.del_flag = 0
|
||||
LEFT JOIN tb_device_value tdv ON tdd.id = tdv.attribute_id
|
||||
where tbd.devic_type=1902
|
||||
</select>
|
||||
<!--设备状态 目前只查询边带设备-->
|
||||
<select id="deviceStatus" resultType="java.util.Map">
|
||||
|
|
@ -134,4 +135,15 @@
|
|||
WHERE jwp.start_date BETWEEN #{params.startTime} AND #{params.endTime} AND jwp.end_date BETWEEN #{params.startTime} AND #{params.endTime}
|
||||
AND jwp.build_no = #{orgId}
|
||||
</select>
|
||||
<select id="getGtList" resultType="com.securitycontrol.entity.background.vo.GtVo">
|
||||
select gt_name gtName,lat,lon,tp.pro_name proName
|
||||
from t_pro_gt pg
|
||||
left join tb_project tp on pg.bid_code=tp.bid_code
|
||||
where pg.del_flag=0 and pg.bid_code=#{bidCode}
|
||||
</select>
|
||||
<select id="getProList" resultType="com.securitycontrol.entity.background.vo.GtVo">
|
||||
select bid_code bidCode,pro_name proName
|
||||
from tb_project
|
||||
where del_flag=0
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue