| | |
| | | |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | import utils.StringUtils; |
| | | |
| | | import java.util.Date; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 一机一档 |
| | |
| | | */ |
| | | private String SSBMHY; |
| | | |
| | | |
| | | public String getJKDWLX() { |
| | | if (Objects.equals(JKDWLX, "1")) { |
| | | this.JKDWLX = "一类视频监控点"; |
| | | } |
| | | if (Objects.equals(JKDWLX, "2")) { |
| | | this.JKDWLX = "二类视频监控点"; |
| | | } |
| | | if (Objects.equals(JKDWLX, "3")) { |
| | | this.JKDWLX = "三类视频监控点"; |
| | | } |
| | | if (Objects.equals(JKDWLX, "4")) { |
| | | this.JKDWLX = "公安内部视频监控点"; |
| | | } |
| | | if (Objects.equals(JKDWLX, "9")) { |
| | | this.JKDWLX = "其他点位"; |
| | | } |
| | | return JKDWLX; |
| | | } |
| | | |
| | | public String getSXJGNLX() { |
| | | List<String> sxjgnlx = new ArrayList<>(); |
| | | if (StringUtils.contains(SXJGNLX, "1")) { |
| | | sxjgnlx.add("视频监控"); |
| | | } |
| | | if (StringUtils.contains(SXJGNLX, "2")) { |
| | | sxjgnlx.add("车辆识别"); |
| | | } |
| | | if (StringUtils.contains(SXJGNLX, "3")) { |
| | | sxjgnlx.add("人员识别"); |
| | | } |
| | | if (!sxjgnlx.isEmpty()) { |
| | | this.SXJGNLX = String.join("/", sxjgnlx); |
| | | } |
| | | return SXJGNLX; |
| | | } |
| | | |
| | | public String getSBZT() { |
| | | if (Objects.equals(SBZT, "1")) { |
| | | this.SBZT = "在用"; |
| | | } |
| | | if (Objects.equals(SBZT, "2")) { |
| | | this.SBZT = "维修"; |
| | | } |
| | | if (Objects.equals(SBZT, "3")) { |
| | | this.SBZT = "拆除"; |
| | | } |
| | | return SBZT; |
| | | } |
| | | |
| | | public String getSBCS() { |
| | | if (Objects.equals(SBCS, "1")) { |
| | | this.SBCS = "海康威视"; |
| | | } |
| | | if (Objects.equals(SBCS, "2")) { |
| | | this.SBCS = "大华"; |
| | | } |
| | | if (Objects.equals(SBCS, "3")) { |
| | | this.SBCS = "天地伟业"; |
| | | } |
| | | if (Objects.equals(SBCS, "4")) { |
| | | this.SBCS = "科达"; |
| | | } |
| | | if (Objects.equals(SBCS, "5")) { |
| | | this.SBCS = "安讯士"; |
| | | } |
| | | if (Objects.equals(SBCS, "6")) { |
| | | this.SBCS = "博世"; |
| | | } |
| | | if (Objects.equals(SBCS, "7")) { |
| | | this.SBCS = "亚安"; |
| | | } |
| | | if (Objects.equals(SBCS, "8")) { |
| | | this.SBCS = "英飞拓"; |
| | | } |
| | | if (Objects.equals(SBCS, "9")) { |
| | | this.SBCS = "宇视"; |
| | | } |
| | | if (Objects.equals(SBCS, "10")) { |
| | | this.SBCS = "海信"; |
| | | } |
| | | if (Objects.equals(SBCS, "11")) { |
| | | this.SBCS = "中星电子"; |
| | | } |
| | | if (Objects.equals(SBCS, "12")) { |
| | | this.SBCS = "明景"; |
| | | } |
| | | if (Objects.equals(SBCS, "13")) { |
| | | this.SBCS = "联想"; |
| | | } |
| | | if (Objects.equals(SBCS, "14")) { |
| | | this.SBCS = "中兴"; |
| | | } |
| | | if (Objects.equals(SBCS, "99")) { |
| | | this.SBCS = "其他"; |
| | | } |
| | | return SBCS; |
| | | } |
| | | |
| | | public String getSXJLX() { |
| | | if (Objects.equals(SXJLX, "1")) { |
| | | this.SXJLX = "球机"; |
| | | } |
| | | if (Objects.equals(SXJLX, "2")) { |
| | | this.SXJLX = "半球"; |
| | | } |
| | | if (Objects.equals(SXJLX, "3")) { |
| | | this.SXJLX = "固定枪机"; |
| | | } |
| | | if (Objects.equals(SXJLX, "4")) { |
| | | this.SXJLX = "遥控枪机"; |
| | | } |
| | | if (Objects.equals(SXJLX, "5")) { |
| | | this.SXJLX = "卡口枪机"; |
| | | } |
| | | if (Objects.equals(SXJLX, "99")) { |
| | | this.SXJLX = "未知"; |
| | | } |
| | | return SXJLX; |
| | | } |
| | | |
| | | |
| | | public String getBGSX() { |
| | | if (Objects.equals(BGSX, "1")) { |
| | | this.BGSX = "无补光"; |
| | | } |
| | | if (Objects.equals(BGSX, "2")) { |
| | | this.BGSX = "红外补光"; |
| | | } |
| | | if (Objects.equals(BGSX, "3")) { |
| | | this.BGSX = "白光补光"; |
| | | } |
| | | if (Objects.equals(BGSX, "9")) { |
| | | this.BGSX = "其他补光"; |
| | | } |
| | | return BGSX; |
| | | } |
| | | |
| | | public String getSXJBMGS() { |
| | | if (Objects.equals(SXJBMGS, "1")) { |
| | | this.SXJBMGS = "MPEG-4"; |
| | | } |
| | | if (Objects.equals(SXJBMGS, "2")) { |
| | | this.SXJBMGS = "H.264"; |
| | | } |
| | | if (Objects.equals(SXJBMGS, "3")) { |
| | | this.SXJBMGS = "SVAC"; |
| | | } |
| | | if (Objects.equals(SXJBMGS, "4")) { |
| | | this.SXJBMGS = "H.265"; |
| | | } |
| | | return SXJBMGS; |
| | | } |
| | | |
| | | public String getSXJWZLX() { |
| | | List<String> wzlx = new ArrayList<>(); |
| | | if (StringUtils.isBlank(SXJWZLX)) { |
| | | return SXJWZLX; |
| | | } |
| | | String[] split = SXJWZLX.split("/"); |
| | | if (ArrayUtils.contains(split, "1")) { |
| | | wzlx.add("省际检查站"); |
| | | } |
| | | if (ArrayUtils.contains(split, "2")) { |
| | | wzlx.add("党政机关"); |
| | | } |
| | | if (ArrayUtils.contains(split, "3")) { |
| | | wzlx.add("车站码头"); |
| | | } |
| | | if (ArrayUtils.contains(split, "4")) { |
| | | wzlx.add("中心广场"); |
| | | } |
| | | if (ArrayUtils.contains(split, "5")) { |
| | | wzlx.add("体育场馆"); |
| | | } |
| | | if (ArrayUtils.contains(split, "6")) { |
| | | wzlx.add("商业中心"); |
| | | } |
| | | if (ArrayUtils.contains(split, "7")) { |
| | | wzlx.add("宗教场所"); |
| | | } |
| | | if (ArrayUtils.contains(split, "8")) { |
| | | wzlx.add("校园周边"); |
| | | } |
| | | if (ArrayUtils.contains(split, "9")) { |
| | | wzlx.add("治安复杂区域"); |
| | | } |
| | | if (ArrayUtils.contains(split, "10")) { |
| | | wzlx.add("交通干线"); |
| | | } |
| | | if (ArrayUtils.contains(split, "11")) { |
| | | wzlx.add("医院周边"); |
| | | } |
| | | if (ArrayUtils.contains(split, "12")) { |
| | | wzlx.add("金融机构周边"); |
| | | } |
| | | if (ArrayUtils.contains(split, "13")) { |
| | | wzlx.add("危险物品场所周边"); |
| | | } |
| | | if (ArrayUtils.contains(split, "14")) { |
| | | wzlx.add("博物馆展览馆"); |
| | | } |
| | | if (ArrayUtils.contains(split, "15")) { |
| | | wzlx.add("重点水域、航道"); |
| | | } |
| | | if (ArrayUtils.contains(split, "96")) { |
| | | wzlx.add("市际公安检查站"); |
| | | } |
| | | if (ArrayUtils.contains(split, "97")) { |
| | | wzlx.add("涉外场所"); |
| | | } |
| | | if (ArrayUtils.contains(split, "98")) { |
| | | wzlx.add("边境沿线"); |
| | | } |
| | | if (ArrayUtils.contains(split, "99")) { |
| | | wzlx.add("旅游景区"); |
| | | } |
| | | this.SXJWZLX = String.join("/", wzlx); |
| | | return SXJWZLX; |
| | | } |
| | | |
| | | public String getJSFW() { |
| | | if (Objects.equals(JSFW, "1")) { |
| | | this.JSFW = "东"; |
| | | } |
| | | if (Objects.equals(JSFW, "2")) { |
| | | this.JSFW = "西"; |
| | | } |
| | | if (Objects.equals(JSFW, "3")) { |
| | | this.JSFW = "南"; |
| | | } |
| | | if (Objects.equals(JSFW, "4")) { |
| | | this.JSFW = "北"; |
| | | } |
| | | if (Objects.equals(JSFW, "5")) { |
| | | this.JSFW = "东南"; |
| | | } |
| | | if (Objects.equals(JSFW, "6")) { |
| | | this.JSFW = "东北"; |
| | | } |
| | | if (Objects.equals(JSFW, "7")) { |
| | | this.JSFW = "西南"; |
| | | } |
| | | if (Objects.equals(JSFW, "8")) { |
| | | this.JSFW = "西北"; |
| | | } |
| | | if (Objects.equals(JSFW, "9")) { |
| | | this.JSFW = "全向"; |
| | | } |
| | | return JSFW; |
| | | } |
| | | |
| | | public String getLWSX() { |
| | | if (Objects.equals(LWSX, "0")) { |
| | | this.LWSX = "已联网"; |
| | | } |
| | | if (Objects.equals(LWSX, "1")) { |
| | | this.LWSX = "未联网"; |
| | | } |
| | | return LWSX; |
| | | } |
| | | |
| | | public String getSSBMHY() { |
| | | List<String> ssbmhy = new ArrayList<>(); |
| | | if (StringUtils.isBlank(SSBMHY)) { |
| | | return SSBMHY; |
| | | } |
| | | String[] split = SSBMHY.split("/"); |
| | | if (ArrayUtils.contains(split, "1")) { |
| | | ssbmhy.add("公安机关"); |
| | | } |
| | | if (ArrayUtils.contains(split, "2")) { |
| | | ssbmhy.add("环保部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "3")) { |
| | | ssbmhy.add("文博部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "4")) { |
| | | ssbmhy.add("医疗部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "5")) { |
| | | ssbmhy.add("旅游管理"); |
| | | } |
| | | if (ArrayUtils.contains(split, "6")) { |
| | | ssbmhy.add("新闻广电"); |
| | | } |
| | | if (ArrayUtils.contains(split, "7")) { |
| | | ssbmhy.add("食品医药监督管理部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "8")) { |
| | | ssbmhy.add("教育管理部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "9")) { |
| | | ssbmhy.add("检察院"); |
| | | } |
| | | if (ArrayUtils.contains(split, "10")) { |
| | | ssbmhy.add("法院"); |
| | | } |
| | | if (ArrayUtils.contains(split, "11")) { |
| | | ssbmhy.add("金融部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "12")) { |
| | | ssbmhy.add("交通部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "13")) { |
| | | ssbmhy.add("住房和城乡建设部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "14")) { |
| | | ssbmhy.add("水利部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "15")) { |
| | | ssbmhy.add("林业部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "16")) { |
| | | ssbmhy.add("安全生产监督部门"); |
| | | } |
| | | if (ArrayUtils.contains(split, "17")) { |
| | | ssbmhy.add("市政市容委"); |
| | | } |
| | | if (ArrayUtils.contains(split, "18")) { |
| | | ssbmhy.add("国土局"); |
| | | } |
| | | this.SSBMHY = String.join("/", ssbmhy); |
| | | return SSBMHY; |
| | | } |
| | | } |