重点工程地图视频点位详情显示是否在线

liujun-2024-05-23-接口漏洞修复
limingyu 2024-05-07 13:41:36 +08:00
parent 40a74e663d
commit 5a2502a39f
6 changed files with 41 additions and 1 deletions

View File

@ -522,6 +522,26 @@ public class OutSourcedController extends BaseController {
return map; return map;
} }
/**
*
*
* @param page
* @throws Exception
*/
@RequestMapping(value = "/listForCount")
@ResponseBody
public Object listForCount() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
List<PageData> varList = outsourcedService.listForCount(pd); //列出OutSourced列表
map.put("varList", varList);
map.put("result", errInfo);
return map;
}
/** /**
* *
* *

View File

@ -90,5 +90,6 @@ public interface OutSourcedMapper{
List<PageData> outSouceslistPage(Page page); List<PageData> outSouceslistPage(Page page);
List<PageData> listForCount(PageData pd);
} }

View File

@ -92,5 +92,6 @@ public interface OutSourcedService{
public List<PageData> outSouceslistPage(Page page)throws Exception; public List<PageData> outSouceslistPage(Page page)throws Exception;
List<PageData> listForCount(PageData pd);
} }

View File

@ -116,5 +116,10 @@ public class OutSourcedServiceImpl implements OutSourcedService {
public List<PageData> outSouceslistPage(Page page) throws Exception { public List<PageData> outSouceslistPage(Page page) throws Exception {
return outsourcedMapper.outSouceslistPage(page); return outsourcedMapper.outSouceslistPage(page);
} }
@Override
public List<PageData> listForCount(PageData pd) {
return outsourcedMapper.listForCount(pd);
}
} }

View File

@ -164,13 +164,15 @@
f.LONGITUDE, f.LONGITUDE,
o.OUTSOURCED_NAME, o.OUTSOURCED_NAME,
c.CORP_NAME, c.CORP_NAME,
pv.INDEXCODE pv.INDEXCODE,
if(vr.ONLINE_STATUS is null,'未上线',if(vr.ONLINE_STATUS = '1','离线','在线')) ONLINE_STATUS
from from
`qa-gwj-regulatory`.BUS_VIDEOMANAGER f `qa-gwj-regulatory`.BUS_VIDEOMANAGER f
LEFT JOIN `qa-gwj-regulatory`.bus_outsourced o on o.OUTSOURCED_ID = f.OUTSOURCED_ID LEFT JOIN `qa-gwj-regulatory`.bus_outsourced o on o.OUTSOURCED_ID = f.OUTSOURCED_ID
LEFT JOIN `qa-gwj-prevention`.vi_user_all u on o.CREATOR = u.USER_ID LEFT JOIN `qa-gwj-prevention`.vi_user_all u on o.CREATOR = u.USER_ID
LEFT JOIN `qa-gwj-prevention`.bus_corp_info c on u.CORPINFO_ID=c.CORPINFO_ID LEFT JOIN `qa-gwj-prevention`.bus_corp_info c on u.CORPINFO_ID=c.CORPINFO_ID
left join `qa-gwj-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID left join `qa-gwj-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
left join `qa-gwj-regulatory`.bus_video_resources vr on vr.VIDEO_RESOURCES_ID = f.VIDEO_RESOURCES_ID and vr.ISDELETE = '0'
where where
f.VIDEOMANAGER_ID = #{id} f.VIDEOMANAGER_ID = #{id}
</select> </select>

View File

@ -917,4 +917,15 @@
f.STATE, f.STATE,
f.OPERATTIME DESC f.OPERATTIME DESC
</select> </select>
<select id="listForCount" resultType="com.zcloud.entity.PageData">
select <include refid="Field"></include>
from <include refid="tableName"></include> f
LEFT JOIN `qa-gwj-prevention`.vi_user_all vua on f.CREATOR = vua.USER_ID
LEFT JOIN `qa-gwj-regulatory`.vi_all_corp vac on vua.CORPINFO_ID = vac.CORPINFO_ID
where f.ISDELETE = '0'
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
and vac.CORPINFO_ID = #{CORPINFO_ID}
</if>
</select>
</mapper> </mapper>