diff --git a/src/main/java/com/zcloud/controller/app/AppIdentificationPartsController.java b/src/main/java/com/zcloud/controller/app/AppIdentificationPartsController.java index f18916bf..8e680550 100644 --- a/src/main/java/com/zcloud/controller/app/AppIdentificationPartsController.java +++ b/src/main/java/com/zcloud/controller/app/AppIdentificationPartsController.java @@ -328,7 +328,7 @@ public class AppIdentificationPartsController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java b/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java index 687e4f86..56747cf2 100644 --- a/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java +++ b/src/main/java/com/zcloud/controller/bus/IdentificationPartsController.java @@ -501,7 +501,7 @@ public class IdentificationPartsController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/LimitSpaceController.java b/src/main/java/com/zcloud/controller/bus/LimitSpaceController.java index 06bc9740..8f4f0896 100644 --- a/src/main/java/com/zcloud/controller/bus/LimitSpaceController.java +++ b/src/main/java/com/zcloud/controller/bus/LimitSpaceController.java @@ -211,7 +211,7 @@ public class LimitSpaceController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel2") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/RestrictedSpaceController.java b/src/main/java/com/zcloud/controller/bus/RestrictedSpaceController.java index 39853aa0..d4d7669c 100644 --- a/src/main/java/com/zcloud/controller/bus/RestrictedSpaceController.java +++ b/src/main/java/com/zcloud/controller/bus/RestrictedSpaceController.java @@ -306,7 +306,7 @@ public class RestrictedSpaceController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/RiskPointController.java b/src/main/java/com/zcloud/controller/bus/RiskPointController.java index 7b2aeae8..7ce4bf50 100644 --- a/src/main/java/com/zcloud/controller/bus/RiskPointController.java +++ b/src/main/java/com/zcloud/controller/bus/RiskPointController.java @@ -592,7 +592,7 @@ public class RiskPointController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional @@ -804,7 +804,7 @@ public class RiskPointController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel2") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/RiskPointTemporaryController.java b/src/main/java/com/zcloud/controller/bus/RiskPointTemporaryController.java index b30153eb..39ebb238 100644 --- a/src/main/java/com/zcloud/controller/bus/RiskPointTemporaryController.java +++ b/src/main/java/com/zcloud/controller/bus/RiskPointTemporaryController.java @@ -501,7 +501,7 @@ public class RiskPointTemporaryController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional @@ -717,7 +717,7 @@ public class RiskPointTemporaryController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel2") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/RiskUnitController.java b/src/main/java/com/zcloud/controller/bus/RiskUnitController.java index aa687966..be169677 100644 --- a/src/main/java/com/zcloud/controller/bus/RiskUnitController.java +++ b/src/main/java/com/zcloud/controller/bus/RiskUnitController.java @@ -402,7 +402,7 @@ public class RiskUnitController extends BaseController { * @throws Exception */ @RequestMapping(value = "/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/bus/SpecialUserController.java b/src/main/java/com/zcloud/controller/bus/SpecialUserController.java index 7199fc23..a9ec9962 100644 --- a/src/main/java/com/zcloud/controller/bus/SpecialUserController.java +++ b/src/main/java/com/zcloud/controller/bus/SpecialUserController.java @@ -6,6 +6,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import com.alibaba.fastjson.JSON; +import com.zcloud.aspect.DockAnnotation; import com.zcloud.service.system.UsersService; import com.zcloud.util.Jurisdiction; import org.springframework.beans.factory.annotation.Autowired; @@ -45,18 +47,25 @@ public class SpecialUserController extends BaseController { @RequestMapping(value="/add") @RequiresPermissions("specialuser:add") @ResponseBody + @DockAnnotation(isAdd = true) public Object add() throws Exception{ Map map = new HashMap(); String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + PageData dockData = new PageData(); // 主要对接数据 + + PageData blindPageData = new PageData(); // pd对接数据 pd.put("SPECIALUSER_ID", this.get32UUID()); //主键 pd.put("CREATOR", Jurisdiction.getUSER_ID()); pd.put("CREATTIME", DateUtil.date2Str(new Date())); pd.put("OPERATOR",Jurisdiction.getUSER_ID()); pd.put("OPERATTIME",DateUtil.date2Str(new Date())); pd.put("ISDELETE","0"); + blindPageData.putAll(pd); + dockData.put("dockData", JSON.toJSONString(blindPageData)); specialuserService.save(pd); + map.put("dockData", JSON.toJSONString(dockData)); map.put("result", errInfo); return map; } @@ -68,11 +77,14 @@ public class SpecialUserController extends BaseController { @RequestMapping(value="/delete") @RequiresPermissions("specialuser:del") @ResponseBody + @DockAnnotation public Object delete() throws Exception{ Map map = new HashMap(); String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + PageData dockData = new PageData(); // 主要对接数据 + // 修改与删除功能仅企业主账号可操作,并仅可修改与删除本单位添加的特种人员信息 String corpID = Jurisdiction.getCORPINFO_ID(); // 登录企业信息 @@ -103,7 +115,11 @@ public class SpecialUserController extends BaseController { pd.put("OPERATOR",Jurisdiction.getUSER_ID()); pd.put("ISDELETE","0"); pd = this.getPageData(); + PageData blindPageData = new PageData(); // pd对接数据 + blindPageData.putAll(pd); + dockData.put("dockData", JSON.toJSONString(blindPageData)); specialuserService.delete(pd); + map.put("dockData", JSON.toJSONString(dockData)); map.put("result", errInfo); //返回结果 return map; } @@ -115,11 +131,13 @@ public class SpecialUserController extends BaseController { @RequestMapping(value="/edit") @RequiresPermissions("specialuser:edit") @ResponseBody + @DockAnnotation public Object edit() throws Exception{ Map map = new HashMap(); String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + PageData dockData = new PageData(); // 修改与删除功能仅企业主账号可操作,并仅可修改与删除本单位添加的特种人员信息 String corpID = Jurisdiction.getCORPINFO_ID(); // 登录企业信息 @@ -145,7 +163,11 @@ public class SpecialUserController extends BaseController { map.put("msg", "您不是企业主账号!请联系企业主账号进行修改!"); return map; } + PageData blindPageData = new PageData(); // pd对接数据 + blindPageData.putAll(pd); + dockData.put("dockData", JSON.toJSONString(blindPageData)); specialuserService.edit(pd); + map.put("dockData", JSON.toJSONString(dockData)); map.put("result", errInfo); return map; } @@ -198,11 +220,16 @@ public class SpecialUserController extends BaseController { @RequestMapping(value="/deleteAll") @RequiresPermissions("specialuser:del") @ResponseBody + @DockAnnotation public Object deleteAll() throws Exception{ Map map = new HashMap(); String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + PageData dockData = new PageData(); + PageData blindPageData = new PageData(); // pd对接数据 + blindPageData.putAll(pd); + dockData.put("dockData", JSON.toJSONString(blindPageData)); String DATA_IDS = pd.getString("DATA_IDS"); if(Tools.notEmpty(DATA_IDS)){ String ArrayDATA_IDS[] = DATA_IDS.split(","); @@ -211,6 +238,7 @@ public class SpecialUserController extends BaseController { }else{ errInfo = "fail"; } + map.put("dockData", JSON.toJSONString(dockData)); map.put("result", errInfo); //返回结果 return map; } diff --git a/src/main/java/com/zcloud/controller/firemanager/FireDeviceController.java b/src/main/java/com/zcloud/controller/firemanager/FireDeviceController.java index fe11a187..8fa77095 100644 --- a/src/main/java/com/zcloud/controller/firemanager/FireDeviceController.java +++ b/src/main/java/com/zcloud/controller/firemanager/FireDeviceController.java @@ -231,7 +231,7 @@ public class FireDeviceController extends BaseController { return map; } // @RequestMapping(value="/readExcel") - // @RequiresPermissions("fromExcel") + // // @RequiresPermissions("fromExcel") // @SuppressWarnings("unchecked") // @ResponseBody // public Object readExcel(@RequestParam(value="excel",required=false) MultipartFile file) throws Exception { diff --git a/src/main/java/com/zcloud/controller/gatemachine/GateAreaController.java b/src/main/java/com/zcloud/controller/gatemachine/GateAreaController.java new file mode 100644 index 00000000..6dd09f92 --- /dev/null +++ b/src/main/java/com/zcloud/controller/gatemachine/GateAreaController.java @@ -0,0 +1,57 @@ +package com.zcloud.controller.gatemachine; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.gatemachine.GateAreaService; +import com.zcloud.util.ReturnMap; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 说明:TODO + * 作者:wangxuan + * 官网:www.zcloudchina.com + */ +@RestController +@RequestMapping("/gateArea") +public class GateAreaController extends BaseController { + + @Resource + private GateAreaService gateAreaService; + + + @RequestMapping(value = "/page") + public ReturnMap page(Page page) { + ReturnMap returnMap = new ReturnMap(); + PageData pageData = this.getPageData(); + page.setPd(pageData); + List data = gateAreaService.getDatalistpage(page); + returnMap.put("varList", data); + returnMap.put("page", page); + return returnMap; + } + + @RequestMapping(value = "/edit") + public ReturnMap edit() { + PageData pd = this.getPageData(); + gateAreaService.edit(pd); + return ReturnMap.ok(); + } + @RequestMapping(value = "/removeByIds") + public ReturnMap removeByIds() { + PageData pageData = this.getPageData(); + gateAreaService.removeByIds(pageData); + return ReturnMap.ok(); + } + @RequestMapping(value = "/add") + public ReturnMap add() { + PageData pageData = this.getPageData(); + gateAreaService.save(pageData); + return ReturnMap.ok(); + } + +} diff --git a/src/main/java/com/zcloud/controller/gatemachine/GateMachineController.java b/src/main/java/com/zcloud/controller/gatemachine/GateMachineController.java new file mode 100644 index 00000000..2d3b48f9 --- /dev/null +++ b/src/main/java/com/zcloud/controller/gatemachine/GateMachineController.java @@ -0,0 +1,59 @@ +package com.zcloud.controller.gatemachine; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.gatemachine.GateMachineService; +import com.zcloud.util.ReturnMap; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.ArrayList; + +/** + * 说明:TODO + * 作者:wangxuan + * 官网:www.zcloudchina.com + */ +@RestController +@RequestMapping("/gateMachine") +public class GateMachineController extends BaseController { + + @Resource + private GateMachineService gateMachineService; + + + + @RequestMapping(value = "/page") + public ReturnMap page(Page page) { + PageData pageData = this.getPageData(); + page.setPd(pageData); + ArrayList data = gateMachineService.getDatalistpage(page); + ReturnMap returnMap = new ReturnMap(); + returnMap.put("varList", data); + returnMap.put("page", page); + return returnMap; + } + + + @RequestMapping(value = "/edit") + public ReturnMap edit() { + PageData pd = this.getPageData(); + gateMachineService.edit(pd); + return ReturnMap.ok(); + } + @RequestMapping(value = "/removeByIds") + public ReturnMap removeByIds() { + PageData pageData = this.getPageData(); + gateMachineService.removeByIds(pageData); + return ReturnMap.ok(); + } + @RequestMapping(value = "/add") + public ReturnMap add() { + PageData pageData = this.getPageData(); + gateMachineService.save(pageData); + return ReturnMap.ok(); + } + +} diff --git a/src/main/java/com/zcloud/controller/gatemachine/GateVideoController.java b/src/main/java/com/zcloud/controller/gatemachine/GateVideoController.java new file mode 100644 index 00000000..bd5b35f9 --- /dev/null +++ b/src/main/java/com/zcloud/controller/gatemachine/GateVideoController.java @@ -0,0 +1,225 @@ +package com.zcloud.controller.gatemachine; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.gatemachine.GateVideoService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Tools; +import com.zcloud.util.hk.HKUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 说明:视频管理 + * 作者:luoxiaobao + * 时间:2021-05-10 + * 官网:www.zcloudchina.com + */ +@Controller +@RequestMapping("/gateVideo") +public class GateVideoController extends BaseController { + + @Autowired + private GateVideoService gateVideoService; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("GATEVIDEO_ID", this.get32UUID()); //主键 + pd.put("OPDATE", DateUtil.date2Str(new Date())); //操作日期 + pd.put("OPUSER", Jurisdiction.getUsername()); //操作人 + pd.put("ISDELETE", "0"); //是否删除 + gateVideoService.save(pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param out + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + gateVideoService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + gateVideoService.edit(pd); + map.put("result", errInfo); + return map; + } + + /**定位 + * @param + * @throws Exception + */ + @RequestMapping(value="/savePosition") + @ResponseBody + public Object savePosition() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + gateVideoService.savePosition(pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/goAllVideo") + @ResponseBody + public Object goAllVideo() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + String DATA_IDS = pd.getString("DATA_IDS"); + if(Tools.notEmpty(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + pd.put("ArrayDATA_IDS", ArrayDATA_IDS); + } + List videoList = gateVideoService.listBo(pd); //根据ID读取 + for (PageData video : videoList) { + if(video.get("INDEXCODE")!=null && !"".equals(video.getString("INDEXCODE"))){ + Map data = HKUtil.camerasPreviewURLs(video.getString("INDEXCODE"), "hls"); + video.put("HLSVIDEOURL", data); + Map resData = (Map) data.get("data"); + video.put("GBSVIDEOURL",resData.get("url")); + } + } + map.put("videoList", videoList); + map.put("result", errInfo); + return map; + } + + /**列表 + * @param page + * @throws Exception + */ + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + page.setPd(pd); + + List varList = gateVideoService.list(page); //列出VideoManager列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/listAllForMap") + @ResponseBody + public Object listAllForMap() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + + List videoList = gateVideoService.listAllForMap(pd); //根据ID读取 + map.put("videoList", videoList); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/editIsShow") + @ResponseBody + public Object editIsShow() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + PageData epd = new PageData(); + epd.put("ISSHOW", '0'); + epd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + gateVideoService.editIsShowBycorpinfoid(epd); //根据ID读取 + + pd.put("ISSHOW", '1'); + gateVideoService.editIsShow(pd); //根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = gateVideoService.findById(pd); //根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(Tools.notEmpty(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + gateVideoService.deleteAll(ArrayDATA_IDS); + errInfo = "success"; + }else{ + errInfo = "error"; + } + map.put("result", errInfo); //返回结果 + return map; + } + + +} diff --git a/src/main/java/com/zcloud/controller/gf/GFLimitSpaceController.java b/src/main/java/com/zcloud/controller/gf/GFLimitSpaceController.java index 453242b8..931edef8 100644 --- a/src/main/java/com/zcloud/controller/gf/GFLimitSpaceController.java +++ b/src/main/java/com/zcloud/controller/gf/GFLimitSpaceController.java @@ -194,7 +194,7 @@ public class GFLimitSpaceController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel2") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/onlinexxks/QuestionController.java b/src/main/java/com/zcloud/controller/onlinexxks/QuestionController.java index 7140cb9e..376c2a60 100644 --- a/src/main/java/com/zcloud/controller/onlinexxks/QuestionController.java +++ b/src/main/java/com/zcloud/controller/onlinexxks/QuestionController.java @@ -306,7 +306,7 @@ public class QuestionController extends BaseController { * @throws Exception */ @RequestMapping(value="/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional diff --git a/src/main/java/com/zcloud/controller/system/UsersController.java b/src/main/java/com/zcloud/controller/system/UsersController.java index 377cfcc4..d1035e11 100644 --- a/src/main/java/com/zcloud/controller/system/UsersController.java +++ b/src/main/java/com/zcloud/controller/system/UsersController.java @@ -1238,7 +1238,7 @@ public class UsersController extends BaseController { * @throws Exception */ @RequestMapping(value = "/readExcel") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody public Object readExcel(@RequestParam(value = "excel", required = false) MultipartFile file) throws Exception { @@ -1452,7 +1452,7 @@ public class UsersController extends BaseController { * @throws Exception */ @RequestMapping(value = "/readExcel2") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody @Transactional @@ -1946,7 +1946,7 @@ public class UsersController extends BaseController { * @throws Exception */ @RequestMapping(value = "/readExcel3") - @RequiresPermissions("fromExcel") + // @RequiresPermissions("fromExcel") @SuppressWarnings("unchecked") @ResponseBody public Object readExcel3(@RequestParam(value = "FFILE", required = false) MultipartFile file) throws Exception { diff --git a/src/main/java/com/zcloud/service/gatemachine/impl/GateMachineServiceImpl.java b/src/main/java/com/zcloud/service/gatemachine/impl/GateMachineServiceImpl.java index 5d7e53dc..5bbb5529 100644 --- a/src/main/java/com/zcloud/service/gatemachine/impl/GateMachineServiceImpl.java +++ b/src/main/java/com/zcloud/service/gatemachine/impl/GateMachineServiceImpl.java @@ -2,7 +2,9 @@ package com.zcloud.service.gatemachine.impl; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; -import com.zcloud.mapper.datasource.gatemachine.*; +import com.zcloud.mapper.datasource.gatemachine.GateAreaMapper; +import com.zcloud.mapper.datasource.gatemachine.GateMachineMapper; +import com.zcloud.mapper.datasource.gatemachine.GateVideoMapper; import com.zcloud.service.gatemachine.GateMachineService; import com.zcloud.service.keyProjects.VideoManagerService; import com.zcloud.util.InitPageDataUtil; diff --git a/src/main/java/com/zcloud/util/hk/HKUtil.java b/src/main/java/com/zcloud/util/hk/HKUtil.java index 968b364f..2a3c53a7 100644 --- a/src/main/java/com/zcloud/util/hk/HKUtil.java +++ b/src/main/java/com/zcloud/util/hk/HKUtil.java @@ -49,14 +49,14 @@ public class HKUtil { */ public static Map camerasPreviewURLs(String id,String type){ JSONObject jsonBody = new JSONObject(); - jsonBody.put("indexCode", id); + jsonBody.put("cameraIndexCode", id); jsonBody.put("netZoneCode", "1"); jsonBody.put("transmode", 1); jsonBody.put("streamType", 0); jsonBody.put("protocol",type); jsonBody.put("expireTime", -1); jsonBody.put("expand","transcode=1&streamform=rtp"); - Map returnMap=publicHkInterface(jsonBody,"/api/vnsc/mls/v1/preview/openApi/getPreviewParam"); + Map returnMap=publicHkInterface(jsonBody,"/api/video/v1/cameras/previewURLs"); return returnMap; } diff --git a/src/main/webapp/uploadFiles/czksfile/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20231128/788cd55e596a4c34b7798aa037a9cd96.jpg b/src/main/webapp/uploadFiles/czks/file/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20231128/788cd55e596a4c34b7798aa037a9cd96.jpg similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20231128/788cd55e596a4c34b7798aa037a9cd96.jpg rename to src/main/webapp/uploadFiles/czks/file/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20231128/788cd55e596a4c34b7798aa037a9cd96.jpg diff --git a/src/main/webapp/uploadFiles/czksfile/Users.xls b/src/main/webapp/uploadFiles/czks/file/Users.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/Users.xls rename to src/main/webapp/uploadFiles/czks/file/Users.xls diff --git a/src/main/webapp/uploadFiles/czksfile/app.apk b/src/main/webapp/uploadFiles/czks/file/app.apk similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/app.apk rename to src/main/webapp/uploadFiles/czks/file/app.apk diff --git a/src/main/webapp/uploadFiles/czksfile/carportExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/carportExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/carportExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/carportExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/checkStandardTemplates.xls b/src/main/webapp/uploadFiles/czks/file/checkStandardTemplates.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/checkStandardTemplates.xls rename to src/main/webapp/uploadFiles/czks/file/checkStandardTemplates.xls diff --git a/src/main/webapp/uploadFiles/czksfile/clientExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/clientExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/clientExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/clientExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/fireDevice.xls b/src/main/webapp/uploadFiles/czks/file/fireDevice.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/fireDevice.xls rename to src/main/webapp/uploadFiles/czks/file/fireDevice.xls diff --git a/src/main/webapp/uploadFiles/czksfile/identificationpartsExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/identificationpartsExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/identificationpartsExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/identificationpartsExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/limitSpace.xls b/src/main/webapp/uploadFiles/czks/file/limitSpace.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/limitSpace.xls rename to src/main/webapp/uploadFiles/czks/file/limitSpace.xls diff --git a/src/main/webapp/uploadFiles/czksfile/questionExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/questionExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/questionExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/questionExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/restrictedspaceTemplate.xls b/src/main/webapp/uploadFiles/czks/file/restrictedspaceTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/restrictedspaceTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/restrictedspaceTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/riskpointExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/riskpointExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/riskpointExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/riskpointExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/riskunitExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/riskunitExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/riskunitExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/riskunitExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/roomExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/roomExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/roomExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/roomExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/user/device.xls b/src/main/webapp/uploadFiles/czks/file/user/device.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/user/device.xls rename to src/main/webapp/uploadFiles/czks/file/user/device.xls diff --git a/src/main/webapp/uploadFiles/czksfile/userExcelTemplate.xls b/src/main/webapp/uploadFiles/czks/file/userExcelTemplate.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/userExcelTemplate.xls rename to src/main/webapp/uploadFiles/czks/file/userExcelTemplate.xls diff --git a/src/main/webapp/uploadFiles/czksfile/userExcelTemplate2.xls b/src/main/webapp/uploadFiles/czks/file/userExcelTemplate2.xls similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/userExcelTemplate2.xls rename to src/main/webapp/uploadFiles/czks/file/userExcelTemplate2.xls diff --git a/src/main/webapp/uploadFiles/czksfile/秦安平台企业端使用说明书.doc b/src/main/webapp/uploadFiles/czks/file/秦安平台企业端使用说明书.doc similarity index 100% rename from src/main/webapp/uploadFiles/czksfile/秦安平台企业端使用说明书.doc rename to src/main/webapp/uploadFiles/czks/file/秦安平台企业端使用说明书.doc