| | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.ApiInfoData; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | |
| | | import com.fzzy.push.sh2023.SH2023Constant; |
| | | import com.fzzy.push.sh2023.dto.SH2023Api1311; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.aspectj.weaver.ConcreteTypeMunger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private Fzzy40Sync1311Rep fzzy40Sync1311Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | |
| | |
| | | String secType = "01,02,03,04,05"; |
| | | for (Fz40SecCamera sysData : list) { |
| | | dataID = kqdm.substring(3, 8) + "01401327" + String.format("%06d", num++); |
| | | List<ApiInfoData> apiInfoData = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_1311, dataID); |
| | | List<ApiInfoData> apiInfoData = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_1311, dataID, kqdm); |
| | | if (null != apiInfoData && apiInfoData.size() > 0) { |
| | | continue; |
| | | } |
| | | sh2023Api1311 = new SH2023Api1311(); |
| | | sh2023Api1311.setSxtbh(dataID); |
| | | sh2023Api1311.setTdbh(sysData.getChanNum()); |
| | | sh2023Api1311.setTdmc(sysData.getChanNum() + "号通道"); |
| | | sh2023Api1311.setJksbmc(sysData.getName()); |
| | |
| | | infoData.setDataId(dataID); |
| | | infoData.setRemarks("视频监控信息"); |
| | | //设置操作标志 |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_1311, infoData.getDataId()); |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_1311, infoData.getDataId(), kqdm); |
| | | if (null == apiInfoDataList || apiInfoDataList.isEmpty()) { |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | } else { |