大屏接口修改

dongdingding
董丁丁 2 years ago
parent 409bca6e7a
commit 14226cfda6

@ -79,4 +79,14 @@ public class ZongzhiScreenManageController {
} }
/**
*
*/
@ApiOperation(value = "地图", response = ZongzhiMapResponse.class)
@GetMapping("/map")
private AjaxResult getMap() {
return AjaxResult.success(zongzhiScreenManageService.getMap());
}
} }

@ -0,0 +1,46 @@
package com.ruoyi.screen.domain.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
*
*/
@Data
@ApiModel("大屏数据请朗专项行动数据统计响应类")
public class ZongzhiMapResponse {
/**
* id
*/
@ApiModelProperty(value = "id")
private Integer id;
/**
*
*/
@ApiModelProperty(value = "纬度")
private double latitude;
/**
*
*/
@ApiModelProperty(value = "经度")
private double longitude;
/**
*
*/
@ApiModelProperty(value = "被举报对象")
private String jbdx;
}

@ -44,4 +44,11 @@ public interface ZongzhiScreenManageMapper {
*/ */
public List<ZongzhiActionDynamicstResponse> getActionDynamicst(); public List<ZongzhiActionDynamicstResponse> getActionDynamicst();
/**
*
*/
public List<ZongzhiMapResponse> getMap();
} }

@ -45,4 +45,11 @@ public interface ZongzhiScreenManageService {
public List<ZongzhiActionDynamicstResponse> getActionDynamicst(); public List<ZongzhiActionDynamicstResponse> getActionDynamicst();
/**
*
*/
public List<ZongzhiMapResponse> getMap();
} }

@ -46,5 +46,10 @@ public class ZongzhiScreenManageServiceImpl implements ZongzhiScreenManageServic
return zongzhiScreenManageMapper.getActionDynamicst(); return zongzhiScreenManageMapper.getActionDynamicst();
} }
@Override
public List<ZongzhiMapResponse> getMap() {
return zongzhiScreenManageMapper.getMap();
}
} }

@ -11,12 +11,14 @@
GROUP BY type, materials_name GROUP BY type, materials_name
</select> </select>
<select id="getNetworkReport" resultType="com.ruoyi.screen.domain.response.ZongzhiNetworkReportResponse"> <select id="getNetworkReport" resultType="com.ruoyi.screen.domain.response.ZongzhiNetworkReportResponse">
select count(*) as count, ROUND(count(case when state=2 THEN 1 ELSE NULL END ) * 100.0/ sum(count(*)) OVER (), 1 )as handle select count(*) as count, ROUND(count(case when state=2 THEN 1 ELSE NULL END ) * 100.0/ sum(count(*)) OVER (), 1
)as handle
FROM tc_network_report FROM tc_network_report
</select> </select>
<select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse"> <select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse">
select count(*) as count, zhuanxiang_time as zhuanxiangTime ,ROUND(count(*) * 100.0/ sum(count(*)) OVER (), 1 ) as pt,zhuanxiang_type as type select count(*) as count, zhuanxiang_time as zhuanxiangTime ,ROUND(count(*) * 100.0/ sum(count(*)) OVER (), 1 )
as pt,zhuanxiang_type as type
from tc_qinglang_zhuanxiang from tc_qinglang_zhuanxiang
GROUP BY zhuanxiang_type, zhuanxiang_time GROUP BY zhuanxiang_type, zhuanxiang_time
@ -36,6 +38,9 @@
FROM `tc_work_dongtai` FROM `tc_work_dongtai`
where materials_name is not null where materials_name is not null
</select> </select>
<select id="getMap" resultType="com.ruoyi.screen.domain.response.ZongzhiMapResponse">
select id,longitude,latitude,jbdx from tc_network_report
</select>
</mapper> </mapper>
Loading…
Cancel
Save