| | |
| | | SH2023Api1311 sh2023Api1311; |
| | | SH2023Api1311 sh1311; |
| | | List<ApiInfoData> apiInfoDataList; |
| | | Integer num = 1000001; |
| | | for (Fz40SecCamera sysData : list) { |
| | | sh2023Api1311 = new SH2023Api1311(); |
| | | sh2023Api1311.setSpjksbid(api1102.getXzqhdm() + "00401327" + String.valueOf(num).substring(1)); |
| | | sh2023Api1311.setSpjksbid(sysData.getId()); |
| | | sh2023Api1311.setTdbh(sysData.getChanNum()); |
| | | sh2023Api1311.setJksbmc(sysData.getName()); |
| | | sh2023Api1311.setKqdm(kqdm); |
| | |
| | | } else { |
| | | sh2023Api1311.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | infoData.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | sh1311 = JSONObject.parseObject(infoData.getData(), SH2023Api1311.class); |
| | | sh1311 = JSONObject.parseObject(apiInfoDataList.get(0).getData(), SH2023Api1311.class); |
| | | if(null != sh1311 && StringUtils.isNotEmpty(sh1311.getAjdm())){ |
| | | sh2023Api1311.setAjdm(sh1311.getAjdm()); |
| | | } |
| | |
| | | |
| | | infoData.setData(JSON.toJSONString(sh2023Api1311)); |
| | | apiInfoDataRep.save(infoData); |
| | | num++; |
| | | log.info("1311---视频监控-同步数据:{}", sh2023Api1311); |
| | | } |
| | | |