地图摄像头点位不显示

liujun-2024-05-23-接口漏洞修复
limingyu 2024-04-23 14:42:00 +08:00
parent 65bebab413
commit 03ac45ffa5
2 changed files with 23 additions and 1 deletions

View File

@ -127,8 +127,26 @@ public class PlatformvideomanagementController extends BaseController {
PageData pd = new PageData(); PageData pd = new PageData();
pd = this.getPageData(); pd = this.getPageData();
List<PageData> varList = platformvideomanagementService.listAll(pd); //列出Platformvideomanagement列表 List<PageData> varList = platformvideomanagementService.listAll(pd); //列出Platformvideomanagement列表
for (PageData data : varList) {
data.put("MAP_POINT_NAME", data.getString("NAME"));
}
map.put("varList", varList); map.put("varList", varList);
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }
/**
* @throws Exception
*/
@RequestMapping(value="/getHlsPathById")
@ResponseBody
public Object getHlsPathById() throws Exception{
Map<String,Object> map = new HashMap<String,Object>();
PageData pd =this.getPageData();
pd = platformvideomanagementService.findById(pd);
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls");
map.put("pd",pd);
map.put("result", "success");
return map;
}
} }

View File

@ -162,9 +162,13 @@
<!-- 列表(全部) --> <!-- 列表(全部) -->
<select id="listAll" parameterType="pd" resultType="pd"> <select id="listAll" parameterType="pd" resultType="pd">
select select
<include refid="Field"></include> <include refid="Field"></include>,PLATFORMVIDEOMANAGEMENT_ID as id
from from
<include refid="tableName"></include> f <include refid="tableName"></include> f
where 1=1
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"><!-- 关键词检索 -->
and f.CORPINFO_ID = #{CORPINFO_ID}
</if>
</select> </select>
<!-- 批量删除 --> <!-- 批量删除 -->