package com.jg.emergency.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.jg.emergency.vo.yjzy.YjzyStaffDetailVO;
import com.jg.emergency.vo.yjzy.YjzyStaffPersonVO;
import com.jg.utils.util.StringUtils;
public class StaffDetailTreeUtil {
private StaffDetailTreeUtil() {
throw new IllegalStateException("StaffDetailTreeUtil class");
}
public static final String ID_KEY = "id";
public static final String NAME_KEY = "name";
public static final String PID_KEY = "pid";
public static final String TYPE_KEY = "type";
public static final String CHILDLIST_KEY = "childList";
public static final String URL_KEY = "url";
public static final String SORT_KEY = "sort";
public static final String LEADER_KEY = "leader";
public static final String ORGID="orgId";
public static final String ORGNAME = "orgName";
public static final String DUTY="duty";
public static final String PERSONS="persons";
public static List<Object> treeList(List<YjzyStaffDetailVO> paraList,String rootId) {
List<Object> list = new ArrayList<>();
Map<String, Map<String, Object>> map = makeTree(paraList);
for (Entry<String, Map<String, Object>> entry : map.entrySet()) {
String key = entry.getKey();
if(map.get(key).get(PID_KEY) == null && StringUtils.isEmpty(rootId)) {
list.add(map.get(key));
continue;
}
if (StringUtils.isNotEmpty(rootId)&&map.get(key).get(PID_KEY) != null&&map.get(key).get(PID_KEY).equals(rootId)) {
list.add(map.get(key));
}
}
return list;
}
public static List<YjzyStaffDetailVO> breakUpTree(List<Object> children){
List<YjzyStaffDetailVO> list = new ArrayList<>();
for(Object child : children) {
Map<String, Object> childvo = (Map<String, Object>)child;
YjzyStaffDetailVO vo = new YjzyStaffDetailVO();
vo.setId((String)childvo.get(ID_KEY));
vo.setName((String)childvo.get(NAME_KEY));
vo.setPid((String)childvo.get(PID_KEY));
vo.setType((String)childvo.get(TYPE_KEY));
vo.setDuty((String)childvo.get(DUTY));
List<Object> childrenObjectList = (List<Object>)childvo.get(CHILDLIST_KEY);
if(childrenObjectList != null && !childrenObjectList.isEmpty()) {
list.addAll(breakUpTree(childrenObjectList));
}
List<YjzyStaffPersonVO> personDetail = (ArrayList<YjzyStaffPersonVO>)childvo.get(PERSONS);
vo.setPersons(personDetail);
list.add(vo);
}
return list;
}
public static Map<String, Map<String, Object>> makeTree(List<YjzyStaffDetailVO> paraList) {
Map<String, Map<String, Object>> map = new LinkedHashMap<>();
for (YjzyStaffDetailVO baseTree : paraList) {
map.put(baseTree.getId(), makeMap(baseTree));
}
for (Entry<String, Map<String, Object>> enrty : map.entrySet()) {
String key = enrty.getKey();
Map<String, Object> child = map.get(key);
Map<String, Object> parent = map.get(child.get(PID_KEY));
if (parent != null) {
((List) parent.get(CHILDLIST_KEY)).add(child);
}
}
return map;
}
public static Map<String, Object> makeMap(YjzyStaffDetailVO baseTree) {
Map<String, Object> map = new HashMap<>();
if (baseTree == null) {
return map;
}
map.put(ID_KEY, baseTree.getId());
map.put(NAME_KEY, baseTree.getName());
map.put(PID_KEY, baseTree.getPid());
map.put(TYPE_KEY, baseTree.getType());
map.put(CHILDLIST_KEY, new LinkedList<>());
map.put(URL_KEY, baseTree.getUrl());
map.put(SORT_KEY, baseTree.getSort());
map.put(LEADER_KEY, baseTree.getLeader());
map.put(ORGID, baseTree.getOrgId());
map.put(ORGNAME, baseTree.getOrgName());
map.put(DUTY, baseTree.getDuty());
map.put(PERSONS, baseTree.getPersons());
return map;
}
}
package com.jg.emergency.util;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.util.StringUtil;
import com.jg.base.user.UserEntity;
import com.jg.base.user.UserUtils;
import com.jg.emergency.dto.yjzh.event.YjEventShareDTO;
import com.jg.emergency.vo.yjzh.event.YjEventVO;
import com.jg.shiro.util.AuthUtil;
import com.jg.utils.entity.SsoUser;
import com.jg.utils.exceptions.BusinessException;
import com.jg.utils.util.HttpClient;
import com.jg.utils.util.StringUtils;
@Component
public class YjEventShare {
private static final Logger logger = LoggerFactory.getLogger(WebMvcConfigurer.class);
private static final String EVENT_SAVE = "/out/event/save";
private static final String EVENT_UPDATE = "/out/event/update";
private static String eventUrl = null;
private static final String ERROR = "";
private static final String ENCODING = "utf-8";
@Value("${common.yjUrl}")
public void setDictUrl(String url) {
eventUrl = url;
}
public static void save(YjEventVO vo) {
try {
if(vo == null || StringUtils.isEmpty(vo.getId())) {
return;
}
SsoUser ssoUser = AuthUtil.getUser();
String ticket = ssoUser.getUserid() + "_" + ssoUser.getVersion();
Map<String,String> header = new HashMap<>();
header.put("X_TICKET", ticket);
YjEventShareDTO dto = setReportUser(vo);
String body = HttpClient.sendPostDataByJson(eventUrl + EVENT_SAVE, JSONObject.toJSONString(dto), ENCODING, header);
Map<String,Object> obj= JSONObject.parseObject(body);
if(obj == null) {
return;
}
Boolean success = (Boolean)obj.get("success");
if(Boolean.FALSE.equals(success)) {
logger.error(new Date() + "【"+vo.getId()+"】"+ERROR);
}
} catch (IOException e) {
throw new BusinessException(e.getMessage());
}
}
public static void update(YjEventVO vo) {
try {
if(vo == null || StringUtils.isEmpty(vo.getId())) {
return;
}
SsoUser ssoUser = AuthUtil.getUser();
String ticket = ssoUser.getUserid() + "_" + ssoUser.getVersion();
Map<String,String> header = new HashMap<>();
header.put("X_TICKET", ticket);
YjEventShareDTO dto = setReportUser(vo);
String body = HttpClient.sendPostDataByJson(eventUrl + EVENT_UPDATE,JSONObject.toJSONString(dto),ENCODING, header);
Map<String,Object> obj= JSONObject.parseObject(body);
Boolean success = (Boolean)obj.get("success");
if(Boolean.FALSE.equals(success)) {
logger.error(new Date() + "【"+vo.getId()+"】"+ERROR);
}
} catch (IOException e) {
throw new BusinessException(e.getMessage());
}
}
private static YjEventShareDTO setReportUser(YjEventVO vo) {
YjEventShareDTO dto = new YjEventShareDTO();
BeanUtils.copyProperties(vo, dto);
UserEntity reportUser = UserUtils.getById(vo.getReporter());
if(reportUser != null&& StringUtil.isNotEmpty(reportUser.getId())) {
vo.setReporter(reportUser.getName());
}
dto.setReceiveUser(vo.getReceiveUserName());
dto.setReceiveUnit(vo.getReceiveUnitName());
return dto;
}
}
package com.jg.emergency.task.sjjc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import com.jg.emergency.service.base.BaseCameraLocationService;
import com.jg.emergency.service.base.BaseCameraService;
import com.jg.emergency.service.sjjc.JcMsgEventSyncService;
@Service
public class JcMsgEventSyncTask {
private static Logger logger = LoggerFactory.getLogger(JcMsgEventSyncTask.class);
@Autowired
private JcMsgEventSyncService jcMsgEventSyncService;
@Autowired
private BaseCameraService baseCameraService;
@Autowired
private BaseCameraLocationService baseCameraLocationService;
@Scheduled(cron = "0 */1 * * * ?")
public void msgEventSync() {
Long startTime = System.currentTimeMillis();
logger.info("【】!");
jcMsgEventSyncService.msgEventSync();
Long endTime = System.currentTimeMillis();
logger.info(String.format("【】! :%s", endTime-startTime));
}
@Scheduled(cron = "0 0 1 * * ?")
public void msgEventRemoval() {
Long startTime = System.currentTimeMillis();
logger.info("【】!");
int count = jcMsgEventSyncService.msgEventRemoval();
Long endTime = System.currentTimeMillis();
logger.info(String.format("【】!:%s, :%s", count, endTime-startTime));
}
@Scheduled(cron = "0 0 */1 * * ?")
public void synchCamera() {
Long startTime = System.currentTimeMillis();
logger.info("【】,!");
int result = baseCameraService.updateAll();
int locaionResult = baseCameraLocationService.updateAll();
Long endTime = System.currentTimeMillis();
logger.info(String.format("【】,! :%s; %s ,%s ", endTime-startTime,result,locaionResult));
}
}
package com.jg.emergency.util;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import com.jg.utils.exceptions.BusinessException;
import com.jg.utils.util.HttpClient;
public class HttpsClient {
private static Logger logger = LoggerFactory.getLogger(HttpClient.class);
private static RequestConfig defaultRequestConfig = RequestConfig.custom()
.setSocketTimeout(60000)
.setConnectTimeout(60000)
.setConnectionRequestTimeout(60000)
.build();
private HttpsClient() {
throw new IllegalStateException("HttpsClient class");
}
public static String sendGetData(String url, String encoding){
logger.info(":{},",url);
String result = "";
httpclient
CloseableHttpClient httpClient;
try {
httpClient = new SSLClient();
get
HttpGet httpGet = new HttpGet(url);
httpGet.setConfig(defaultRequestConfig);
httpGet.addHeader("Content-type", "application/json");
CloseableHttpResponse response = httpClient.execute(httpGet);
(0--200)
if (response.getStatusLine().getStatusCode() == HttpStatus.OK.value()) {
result = EntityUtils.toString(response.getEntity(), encoding);
logger.info(":{},:{},",url,result);
}else {
logger.info(":{},:{},",url,result);
}
response.close();
return result;
} catch (Exception e) {
throw new BusinessException(e.getMessage());
}
}
}
package com.jg.emergency.util;
public class EventSituationConstrant {
private EventSituationConstrant() {
throw new IllegalStateException("EventSituationConstrant class");
}
public static final String CREATE = "create";
public static final String COMMAND = "command";
public static final String FINISH = "finish";
public static final String EVENT_CREATE = "%s:%s";
public static final String EVENT_COMMAND = "【%s】。";
public static final String EVENT_CHANGE = "%s,%s【%s】【%s】。";
public static final String EVENT_FINISH = "%s。";
public static final String EVENT_APPOINT = "【%s】【%s】【%s】【%s】";
}
package com.jg.emergency.vo.yjzh.event;
import java.text.ParseException;
import com.github.pagehelper.util.StringUtil;
import com.jg.base.department.DepartmentEntity;
import com.jg.base.department.DepartmentUtils;
import com.jg.emergency.dto.yjzh.event.YjAllEventListDTO;
import com.jg.emergency.enums.YjAllEventStatusEnum;
import com.jg.emergency.enums.YjEventdegreeOfEventsEnum;
import com.jg.utils.exceptions.BusinessException;
import com.jg.utils.util.DateTimeUtil;
import com.jg.utils.util.StringUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Column;
@Data
public class YjAllEventListVO {
@ApiModelProperty("Id")
private String id;
@ApiModelProperty("()")
private String typeName;
@ApiModelProperty("")
private String occurOn;
@ApiModelProperty("")
private String finishDate;
@ApiModelProperty("")
private String createDate;
@ApiModelProperty("")
private String occurPlace;
@ApiModelProperty("")
private String reportOrgName;
@ApiModelProperty("")
private String reportBranchName;
@ApiModelProperty("")
private String description;
@ApiModelProperty("")
private String status;
@ApiModelProperty("")
private String statusName;
@ApiModelProperty(":0,,;2,,")
private String delFlag;
@ApiModelProperty(":1,,;2,,status = 2 status = 3 ,;3,,")
private String approveStatus;
@ApiModelProperty(":0, 1, 2, 3, 4, 5, ")
private String influence;
@ApiModelProperty
private String roadId;
@ApiModelProperty
private String centerName;
@ApiModelProperty
private String degreeEvenCode;
@ApiModelProperty
private String degreeEvenName;
private String expectedDate;
@ApiModelProperty("id")
private String centerId;
private String currentResults;
@ApiModelProperty
private String influenceDefined;
@ApiModelProperty
private String roadName;
@ApiModelProperty
private String sectionName;
@ApiModelProperty
private String oragePlaceType;
@ApiModelProperty
private String currentResultDefined;
@ApiModelProperty
private String direction;
public YjAllEventListVO() {
}
public YjAllEventListVO(YjAllEventListDTO dto) {
this.id = dto.getId();
this.occurPlace = dto.getOccurPlace();
this.description = dto.getDescription();
this.delFlag = dto.getDelFlag();
this.status = dto.getStatus();
this.centerName=dto.getCenterName();
this.approveStatus = dto.getApproveStatus();
this.influence=dto.getInfluence();
this.centerId=dto.getCenterId();
this.currentResults=dto.getCurrentResults();
this.currentResultDefined=dto.getCurrentResultDefined();
this.influenceDefined=dto.getInfluenceDefined();
this.roadName=dto.getRoadName();
this.roadId=dto.getRoadId();
this.sectionName=dto.getSectionName();
this.oragePlaceType=dto.getOragePlaceType();
this.direction=dto.getDirection();
try {
this.occurOn = StringUtils.isEmpty(dto.getOccurOn())?null:
DateTimeUtil.DateToString(DateTimeUtil.parseDatetime(dto.getOccurOn()), DateTimeUtil._YYYY_MM_DD_HH_MM_SS);
this.finishDate = StringUtils.isEmpty(dto.getFinishDate())?null:
DateTimeUtil.DateToString(DateTimeUtil.parseDatetime(dto.getFinishDate()), DateTimeUtil._YYYY_MM_DD_HH_MM_SS);
this.expectedDate = StringUtils.isEmpty(dto.getExpectedDate())?null:
DateTimeUtil.DateToString(DateTimeUtil.parseDatetime(dto.getExpectedDate()), DateTimeUtil._YYYY_MM_DD_HH_MM_SS);
this.createDate = StringUtils.isEmpty(dto.getCreateDate())?null:
DateTimeUtil.DateToString(DateTimeUtil.parseDatetime(dto.getCreateDate()), DateTimeUtil._YYYY_MM_DD_HH_MM_SS);
} catch (ParseException e) {
throw new BusinessException(e.getMessage());
}
this.statusName = YjAllEventStatusEnum.getEnumName(dto.getStatus());
this.degreeEvenName= YjEventdegreeOfEventsEnum.getEnumName(dto.getDegreeEvenCode());
DepartmentEntity dept = DepartmentUtils.getById(dto.getReportOrg());
if(dept != null && StringUtil.isNotEmpty(dept.getId())) {
this.reportOrgName = dept.getName();
}
DepartmentEntity dept = DepartmentUtils.getById(dto.getReportBranch());
if(dept != null && StringUtil.isNotEmpty(dept.getId())) {
this.reportBranchName= dept.getName();
}
if(StringUtils.isNotEmpty(dto.getYjEventId())&&!dto.getStatus().equals(YjAllEventStatusEnum.FINISH.getId())) {
this.status = YjAllEventStatusEnum.REPORT.getId();
this.statusName = YjAllEventStatusEnum.REPORT.getName();
}
this.typeName = dto.getTypeName();
}
}
package com.jg.emergency.vo.yjzh.event;
import java.util.ArrayList;
import java.util.List;
import com.jg.emergency.dto.yjzh.event.YjAllEventApproveDetailDTO;
import com.jg.emergency.dto.yjzh.event.YjAllEventDealDTO;
import com.jg.emergency.vo.base.FileVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Column;
@Data
public class YjAllEventDetailVO {
@ApiModelProperty("Id")
private String id;
@ApiModelProperty("")
private String infoSource;
@ApiModelProperty("")
private String typeId;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("")
private String occurOn;
@ApiModelProperty("")
private String occurPlace;
@ApiModelProperty("")
private String lng;
@ApiModelProperty("")
private String lat;
@ApiModelProperty("")
private String reporter;
@ApiModelProperty("Id")
private String reporterId;
@ApiModelProperty("")
private String reportPhone;
@ApiModelProperty("")
private String reportOrg;
@ApiModelProperty("")
private String reportBranch;
@ApiModelProperty("")
private String reportBranchName;
@ApiModelProperty("")
private String reportOrgName;
@ApiModelProperty("")
private String description;
@ApiModelProperty("")
private List<String> fileIds = new ArrayList<>();
@ApiModelProperty("")
private List<FileVO> files = new ArrayList<>();
@ApiModelProperty("")
private String status;
@ApiModelProperty("")
private String statusName;
@ApiModelProperty("Id")
private String yjEventId;
@ApiModelProperty(":0,,;2,,")
private String delFlag;
@ApiModelProperty("")
private String finishDate;
@ApiModelProperty("")
private String startStake;
@ApiModelProperty("")
private String endStake;
@ApiModelProperty("")
private String roadId;
@ApiModelProperty("")
private String roadName;
@ApiModelProperty("")
private String direction;
@ApiModelProperty("")
private String directionRemark;
@ApiModelProperty("")
private String influence;
@ApiModelProperty("")
private String influenceRange;
@ApiModelProperty("")
private String tollgateId;
@ApiModelProperty("")
private String tollgateName;
@ApiModelProperty("")
private String tunnel;
@ApiModelProperty("")
private String isOccupy;
@ApiModelProperty("")
private String occupyLines;
@ApiModelProperty("")
private YjAllEventApproveDetailDTO approve = new YjAllEventApproveDetailDTO();
@ApiModelProperty("")
private List<YjAllEventDealDTO> deals = new ArrayList<>();
@ApiModelProperty
@ApiModelProperty
private String degreeEvenCode;
@ApiModelProperty("id")
private String centerId;
@ApiModelProperty
private String expectedDate;
@ApiModelProperty
private String placeId;
@ApiModelProperty
private String currentResults;
@ApiModelProperty
private String influenceDefined;
@ApiModelProperty
private String currentResultDefined;
}
package com.jg.emergency.vo.yjzh.event;
import io.swagger.annotations.ApiModelProperty;
public class YjEventPageListVO {
@ApiModelProperty("ID")
private String id;
@ApiModelProperty("")
private String name;
@ApiModelProperty("Id")
private String typeId;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("")
private String occurOn;
@ApiModelProperty("")
private String finishDate;
@ApiModelProperty("")
private String occurPlace;
@ApiModelProperty("")
private String description;
@ApiModelProperty("")
private String receiveUnit;
@ApiModelProperty("")
private String level;
@ApiModelProperty("")
private String levelName;
@ApiModelProperty("")
private String status;
@ApiModelProperty("")
private String statusName;
@ApiModelProperty("")
private String commandUnit;
@ApiModelProperty("")
private String commandUnitName;
@ApiModelProperty("")
private String isDrill;
@ApiModelProperty("")
private String createDate;
@ApiModelProperty(":0,,;2,,")
private String delFlag;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public String getOccurOn() {
return occurOn;
}
public void setOccurOn(String occurOn) {
this.occurOn = occurOn;
}
public String getOccurPlace() {
return occurPlace;
}
public void setOccurPlace(String occurPlace) {
this.occurPlace = occurPlace;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getIsDrill() {
return isDrill;
}
public void setIsDrill(String isDrill) {
this.isDrill = isDrill;
}
public String getReceiveUnit() {
return receiveUnit;
}
public void setReceiveUnit(String receiveUnit) {
this.receiveUnit = receiveUnit;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getCommandUnitName() {
return commandUnitName;
}
public void setCommandUnitName(String commandUnitName) {
this.commandUnitName = commandUnitName;
}
public String getLevelName() {
return levelName;
}
public void setLevelName(String levelName) {
this.levelName = levelName;
}
public String getStatusName() {
return statusName;
}
public void setStatusName(String statusName) {
this.statusName = statusName;
}
public String getCreateDate() {
return createDate;
}
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getFinishDate() {
return finishDate;
}
public void setFinishDate(String finishDate) {
this.finishDate = finishDate;
}
}
package com.jg.emergency.vo.yjzh.event;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import com.jg.base.department.DepartmentEntity;
import com.jg.emergency.vo.base.FileVO;
import com.jg.emergency.vo.yjzh.YjCommonVO;
public class YjEventVO {
@ApiModelProperty("Id")
private String id;
@ApiModelProperty("Id")
private String typeId;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("")
private String commandUnit;
@ApiModelProperty("")
private String commandUnitName;
@ApiModelProperty("")
private String name;
@ApiModelProperty("")
private String level;
@ApiModelProperty("")
private String levelName;
@ApiModelProperty("")
private List<String> shareOrgIds;
@ApiModelProperty("-")
private List<DepartmentEntity> shareOrgs;
@ApiModelProperty("")
private String occurOn;
@ApiModelProperty("")
private String occurPlace;
@ApiModelProperty("")
private String lng;
@ApiModelProperty("")
private String lat;
@ApiModelProperty("")
private String reporter;
@ApiModelProperty("")
private String reportPhone;
@ApiModelProperty("")
private String receiveUser;
@ApiModelProperty("")
private String receiveUserName;
@ApiModelProperty("")
private String receiveUnit;
@ApiModelProperty("")
private String receiveUnitName;
@ApiModelProperty("")
private String description;
@ApiModelProperty("")
private List<String> fileIds;
@ApiModelProperty("-")
private List<FileVO> files;
@ApiModelProperty("")
private String status;
@ApiModelProperty("")
private String isDrill;
@ApiModelProperty("")
private String takeoverStatus;
@ApiModelProperty(":null,,;null,planIdId")
private YjCommonVO plan;
@ApiModelProperty("")
private List<String> buttons;
@ApiModelProperty("")
private String createBy;
@ApiModelProperty("Id")
private String allEventId;
@ApiModelProperty(",")
private String allEventInfoSource;
@ApiModelProperty("")
private String roadCode;
@ApiModelProperty("")
private String stake;
@ApiModelProperty("")
private String direction;
@ApiModelProperty(":0:,1:")
private String isOperation;
@ApiModelProperty("Id")
private String appointId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getOccurOn() {
return occurOn;
}
public void setOccurOn(String occurOn) {
this.occurOn = occurOn;
}
public String getOccurPlace() {
return occurPlace;
}
public void setOccurPlace(String occurPlace) {
this.occurPlace = occurPlace;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getReporter() {
return reporter;
}
public void setReporter(String reporter) {
this.reporter = reporter;
}
public String getReportPhone() {
return reportPhone;
}
public void setReportPhone(String reportPhone) {
this.reportPhone = reportPhone;
}
public String getReceiveUser() {
return receiveUser;
}
public void setReceiveUser(String receiveUser) {
this.receiveUser = receiveUser;
}
public String getReceiveUnit() {
return receiveUnit;
}
public void setReceiveUnit(String receiveUnit) {
this.receiveUnit = receiveUnit;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public List<DepartmentEntity> getShareOrgs() {
return shareOrgs;
}
public void setShareOrgs(List<DepartmentEntity> shareOrgs) {
this.shareOrgs = shareOrgs;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getIsDrill() {
return isDrill;
}
public void setIsDrill(String isDrill) {
this.isDrill = isDrill;
}
public String getCommandUnit() {
return commandUnit;
}
public void setCommandUnit(String commandUnit) {
this.commandUnit = commandUnit;
}
public String getLevelName() {
return levelName;
}
public void setLevelName(String levelName) {
this.levelName = levelName;
}
public List<String> getShareOrgIds() {
return shareOrgIds;
}
public void setShareOrgIds(List<String> shareOrgIds) {
this.shareOrgIds = shareOrgIds;
}
public List<String> getFileIds() {
return fileIds;
}
public void setFileIds(List<String> fileIds) {
this.fileIds = fileIds;
}
public List<FileVO> getFiles() {
return files;
}
public void setFiles(List<FileVO> files) {
this.files = files;
}
public YjCommonVO getPlan() {
return plan;
}
public void setPlan(YjCommonVO plan) {
this.plan = plan;
}
public List<String> getButtons() {
return buttons;
}
public void setButtons(List<String> buttons) {
this.buttons = buttons;
}
public String getTakeoverStatus() {
return takeoverStatus;
}
public void setTakeoverStatus(String takeoverStatus) {
this.takeoverStatus = takeoverStatus;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getCommandUnitName() {
return commandUnitName;
}
public void setCommandUnitName(String commandUnitName) {
this.commandUnitName = commandUnitName;
}
public String getAllEventId() {
return allEventId;
}
public void setAllEventId(String allEventId) {
this.allEventId = allEventId;
}
public String getRoadCode() {
return roadCode;
}
public void setRoadCode(String roadCode) {
this.roadCode = roadCode;
}
public String getStake() {
return stake;
}
public void setStake(String stake) {
this.stake = stake;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getIsOperation() {
return isOperation;
}
public void setIsOperation(String isOperation) {
this.isOperation = isOperation;
}
public String getAllEventInfoSource() {
return allEventInfoSource;
}
public void setAllEventInfoSource(String allEventInfoSource) {
this.allEventInfoSource = allEventInfoSource;
}
public String getReceiveUserName() {
return receiveUserName;
}
public void setReceiveUserName(String receiveUserName) {
this.receiveUserName = receiveUserName;
}
public String getReceiveUnitName() {
return receiveUnitName;
}
public void setReceiveUnitName(String receiveUnitName) {
this.receiveUnitName = receiveUnitName;
}
public String getAppointId() {
return appointId;
}
public void setAppointId(String appointId) {
this.appointId = appointId;
}
}
package com.jg.emergency.vo.yjzh.eventplan;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
public class YjEventPlanStepVO {
@ApiModelProperty("Id")
private String id;
@ApiModelProperty("Id")
private String eventPlanId;
@ApiModelProperty("")
private int step;
@ApiModelProperty("")
private String name;
@ApiModelProperty("")
private String type;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("")
private List<YjEventPlanStaffVO> staff;
@ApiModelProperty("")
private List<YjEventPlanCooperationVO> cooperation;
@ApiModelProperty("")
private List<String> nonCooperaion;
@ApiModelProperty("")
private List<YjEventPlanResourcesVO> resources;
@ApiModelProperty("")
private List<String> nonResources;
@ApiModelProperty("")
private List<YjEventPlanExpertVO> expert;
@ApiModelProperty("")
private List<String> nonExpert;
@ApiModelProperty("")
private String others;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getEventPlanId() {
return eventPlanId;
}
public void setEventPlanId(String eventPlanId) {
this.eventPlanId = eventPlanId;
}
public int getStep() {
return step;
}
public void setStep(int step) {
this.step = step;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public List<YjEventPlanStaffVO> getStaff() {
return staff;
}
public void setStaff(List<YjEventPlanStaffVO> staff) {
this.staff = staff;
}
public List<YjEventPlanCooperationVO> getCooperation() {
return cooperation;
}
public void setCooperation(List<YjEventPlanCooperationVO> cooperation) {
this.cooperation = cooperation;
}
public List<YjEventPlanResourcesVO> getResources() {
return resources;
}
public void setResources(List<YjEventPlanResourcesVO> resources) {
this.resources = resources;
}
public List<YjEventPlanExpertVO> getExpert() {
return expert;
}
public void setExpert(List<YjEventPlanExpertVO> expert) {
this.expert = expert;
}
public String getOthers() {
return others;
}
public void setOthers(String others) {
this.others = others;
}
public List<String> getNonCooperaion() {
return nonCooperaion;
}
public void setNonCooperaion(List<String> nonCooperaion) {
this.nonCooperaion = nonCooperaion;
}
public List<String> getNonResources() {
return nonResources;
}
public void setNonResources(List<String> nonResources) {
this.nonResources = nonResources;
}
public List<String> getNonExpert() {
return nonExpert;
}
public void setNonExpert(List<String> nonExpert) {
this.nonExpert = nonExpert;
}
}
package com.jg.emergency.vo.yjzy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("")
public class YjzyCooperationVO {
@ApiModelProperty("ID")
private String id;
@ApiModelProperty("ID")
private String typeId;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("ID")
private String parentTypeId;
@ApiModelProperty("")
private String parentTypeName;
@ApiModelProperty("")
private String name;
@ApiModelProperty("")
private String address;
@ApiModelProperty("")
private String lng;
@ApiModelProperty("")
private String lat;
@ApiModelProperty("")
private String leader;
@ApiModelProperty("")
private String dutyPhone;
@ApiModelProperty("")
private String officePhone;
@ApiModelProperty("")
private String mobilePhone;
@ApiModelProperty("")
private String fax;
@ApiModelProperty("")
private String stake;
@ApiModelProperty("")
private String direction;
@ApiModelProperty(":0:,1:")
private String isOperation;
@ApiModelProperty("Id")
private String appointId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getOccurOn() {
return occurOn;
}
public void setOccurOn(String occurOn) {
this.occurOn = occurOn;
}
public String getOccurPlace() {
return occurPlace;
}
public void setOccurPlace(String occurPlace) {
this.occurPlace = occurPlace;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getReporter() {
return reporter;
}
public void setReporter(String reporter) {
this.reporter = reporter;
}
public String getReportPhone() {
return reportPhone;
}
public void setReportPhone(String reportPhone) {
this.reportPhone = reportPhone;
}
public String getReceiveUser() {
return receiveUser;
}
public void setReceiveUser(String receiveUser) {
this.receiveUser = receiveUser;
}
public String getReceiveUnit() {
return receiveUnit;
}
public void setReceiveUnit(String receiveUnit) {
this.receiveUnit = receiveUnit;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public List<DepartmentEntity> getShareOrgs() {
return shareOrgs;
}
public void setShareOrgs(List<DepartmentEntity> shareOrgs) {
this.shareOrgs = shareOrgs;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getIsDrill() {
return isDrill;
}
public void setIsDrill(String isDrill) {
this.isDrill = isDrill;
}
public String getCommandUnit() {
return commandUnit;
}
public void setCommandUnit(String commandUnit) {
this.commandUnit = commandUnit;
}
public String getLevelName() {
return levelName;
}
public void setLevelName(String levelName) {
this.levelName = levelName;
}
public List<String> getShareOrgIds() {
return shareOrgIds;
}
public void setShareOrgIds(List<String> shareOrgIds) {
this.shareOrgIds = shareOrgIds;
}
public List<String> getFileIds() {
return fileIds;
}
public void setFileIds(List<String> fileIds) {
this.fileIds = fileIds;
}
public List<FileVO> getFiles() {
return files;
}
public void setFiles(List<FileVO> files) {
this.files = files;
}
public YjCommonVO getPlan() {
return plan;
}
public void setPlan(YjCommonVO plan) {
this.plan = plan;
}
public List<String> getButtons() {
return buttons;
}
public void setButtons(List<String> buttons) {
this.buttons = buttons;
}
public String getTakeoverStatus() {
return takeoverStatus;
}
public void setTakeoverStatus(String takeoverStatus) {
this.takeoverStatus = takeoverStatus;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getCommandUnitName() {
return commandUnitName;
}
public void setCommandUnitName(String commandUnitName) {
this.commandUnitName = commandUnitName;
}
public String getAllEventId() {
return allEventId;
}
public void setAllEventId(String allEventId) {
this.allEventId = allEventId;
}
public String getRoadCode() {
return roadCode;
}
public void setRoadCode(String roadCode) {
this.roadCode = roadCode;
}
public String getStake() {
return stake;
}
public void setStake(String stake) {
this.stake = stake;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getIsOperation() {
return isOperation;
}
public void setIsOperation(String isOperation) {
this.isOperation = isOperation;
}
public String getAllEventInfoSource() {
return allEventInfoSource;
}
public void setAllEventInfoSource(String allEventInfoSource) {
this.allEventInfoSource = allEventInfoSource;
}
public String getReceiveUserName() {
return receiveUserName;
}
public void setReceiveUserName(String receiveUserName) {
this.receiveUserName = receiveUserName;
}
public String getReceiveUnitName() {
return receiveUnitName;
}
public void setReceiveUnitName(String receiveUnitName) {
this.receiveUnitName = receiveUnitName;
}
public String getAppointId() {
return appointId;
}
public void setAppointId(String appointId) {
this.appointId = appointId;
}
}
package com.jg.emergency.vo.yjzh.eventplan;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
public class YjEventPlanStepVO {
@ApiModelProperty("Id")
private String id;
@ApiModelProperty("Id")
private String eventPlanId;
@ApiModelProperty("")
private int step;
@ApiModelProperty("")
private String name;
@ApiModelProperty("")
private String type;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("")
private List<YjEventPlanStaffVO> staff;
@ApiModelProperty("")
private List<YjEventPlanCooperationVO> cooperation;
@ApiModelProperty("")
private List<String> nonCooperaion;
@ApiModelProperty("")
private List<YjEventPlanResourcesVO> resources;
@ApiModelProperty("")
private List<String> nonResources;
@ApiModelProperty("")
private List<YjEventPlanExpertVO> expert;
@ApiModelProperty("")
private List<String> nonExpert;
@ApiModelProperty("")
private String others;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getEventPlanId() {
return eventPlanId;
}
public void setEventPlanId(String eventPlanId) {
this.eventPlanId = eventPlanId;
}
public int getStep() {
return step;
}
public void setStep(int step) {
this.step = step;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public List<YjEventPlanStaffVO> getStaff() {
return staff;
}
public void setStaff(List<YjEventPlanStaffVO> staff) {
this.staff = staff;
}
public List<YjEventPlanCooperationVO> getCooperation() {
return cooperation;
}
public void setCooperation(List<YjEventPlanCooperationVO> cooperation) {
this.cooperation = cooperation;
}
public List<YjEventPlanResourcesVO> getResources() {
return resources;
}
public void setResources(List<YjEventPlanResourcesVO> resources) {
this.resources = resources;
}
public List<YjEventPlanExpertVO> getExpert() {
return expert;
}
public void setExpert(List<YjEventPlanExpertVO> expert) {
this.expert = expert;
}
public String getOthers() {
return others;
}
public void setOthers(String others) {
this.others = others;
}
public List<String> getNonCooperaion() {
return nonCooperaion;
}
public void setNonCooperaion(List<String> nonCooperaion) {
this.nonCooperaion = nonCooperaion;
}
public List<String> getNonResources() {
return nonResources;
}
public void setNonResources(List<String> nonResources) {
this.nonResources = nonResources;
}
public List<String> getNonExpert() {
return nonExpert;
}
public void setNonExpert(List<String> nonExpert) {
this.nonExpert = nonExpert;
}
}
package com.jg.emergency.vo.yjzy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("")
public class YjzyCooperationVO {
@ApiModelProperty("ID")
private String id;
@ApiModelProperty("ID")
private String typeId;
@ApiModelProperty("")
private String typeName;
@ApiModelProperty("ID")
private String parentTypeId;
@ApiModelProperty("")
@ApiModelProperty("")
private String postalCode;
@ApiModelProperty("")
private String email;
@ApiModelProperty("")
private String area;
@ApiModelProperty("")
private String serviceArea;
@ApiModelProperty("")
private String contactMobilePhone;
@ApiModelProperty("")
private String contactHomePhone;
@ApiModelProperty("")
private String contact;
@ApiModelProperty("")
private String contactPhone;
@ApiModelProperty("")
private String contactEmail;
@ApiModelProperty("")
private String qualificationLevel;
@ApiModelProperty("")
private String qualityLevel;
@ApiModelProperty("")
private String issueAuthority;
@ApiModelProperty("")
private String issueDate;
@ApiModelProperty("")
private String issueStartDate;
@ApiModelProperty("")
private String issueEndDate;
@ApiModelProperty("")
private String issueNum;
@ApiModelProperty("")
private String issueRemark;
@ApiModelProperty("")
private String foundDate;
@ApiModelProperty("")
private String competentUnit;
@ApiModelProperty("")
private Integer fullTimeNum;
@ApiModelProperty("")
private Integer partTimeNum;
@ApiModelProperty("")
private Integer squadronNum;
@ApiModelProperty("")
private Integer teamNum;
@ApiModelProperty("")
private Integer doctorNum;
@ApiModelProperty("")
private Integer nurseNum;
@ApiModelProperty("")
private Integer totalNum;
@ApiModelProperty("")
private String rescueRecord;
@ApiModelProperty("")
private String mainTasks;
@ApiModelProperty("")
private String mainEquipment;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getLeader() {
return leader;
}
public void setLeader(String leader) {
this.leader = leader;
}
public String getDutyPhone() {
return dutyPhone;
}
public void setDutyPhone(String dutyPhone) {
this.dutyPhone = dutyPhone;
}
public String getOfficePhone() {
return officePhone;
}
public void setOfficePhone(String officePhone) {
this.officePhone = officePhone;
}
public String getMobilePhone() {
return mobilePhone;
}
public void setMobilePhone(String mobilePhone) {
this.mobilePhone = mobilePhone;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getContact() {
return contact;
}
public void setContact(String contact) {
this.contact = contact;
}
public String getContactPhone() {
return contactPhone;
}
public void setContactPhone(String contactPhone) {
this.contactPhone = contactPhone;
}
public String getContactEmail() {
return contactEmail;
}
public void setContactEmail(String contactEmail) {
this.contactEmail = contactEmail;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public String getQualificationLevel() {
return qualificationLevel;
}
public void setQualificationLevel(String qualificationLevel) {
this.qualificationLevel = qualificationLevel;
}
public String getQualityLevel() {
return qualityLevel;
}
public void setQualityLevel(String qualityLevel) {
this.qualityLevel = qualityLevel;
}
public String getIssueAuthority() {
return issueAuthority;
}
public void setIssueAuthority(String issueAuthority) {
this.issueAuthority = issueAuthority;
}
public String getIssueDate() {
return issueDate;
}
public void setIssueDate(String issueDate) {
this.issueDate = issueDate;
}
public String getIssueStartDate() {
return issueStartDate;
}
public void setIssueStartDate(String issueStartDate) {
this.issueStartDate = issueStartDate;
}
public String getIssueEndDate() {
return issueEndDate;
}
public void setIssueEndDate(String issueEndDate) {
this.issueEndDate = issueEndDate;
}
public String getIssueNum() {
return issueNum;
}
public void setIssueNum(String issueNum) {
this.issueNum = issueNum;
}
public String getIssueRemark() {
return issueRemark;
}
public void setIssueRemark(String issueRemark) {
this.issueRemark = issueRemark;
}
public String getFoundDate() {
return foundDate;
}
public void setFoundDate(String foundDate) {
this.foundDate = foundDate;
}
public String getCompetentUnit() {
return competentUnit;
}
public void setCompetentUnit(String competentUnit) {
this.competentUnit = competentUnit;
}
public Integer getFullTimeNum() {
return fullTimeNum;
}
public void setFullTimeNum(Integer fullTimeNum) {
this.fullTimeNum = fullTimeNum;
}
public Integer getPartTimeNum() {
return partTimeNum;
}
public void setPartTimeNum(Integer partTimeNum) {
this.partTimeNum = partTimeNum;
}
public Integer getSquadronNum() {
return squadronNum;
}
public void setSquadronNum(Integer squadronNum) {
this.squadronNum = squadronNum;
}
public Integer getTeamNum() {
return teamNum;
}
public void setTeamNum(Integer teamNum) {
this.teamNum = teamNum;
}
public Integer getDoctorNum() {
return doctorNum;
}
public void setDoctorNum(Integer doctorNum) {
this.doctorNum = doctorNum;
}
public Integer getNurseNum() {
return nurseNum;
}
public void setNurseNum(Integer nurseNum) {
this.nurseNum = nurseNum;
}
public Integer getTotalNum() {
return totalNum;
}
public void setTotalNum(Integer totalNum) {
this.totalNum = totalNum;
}
public String getRescueRecord() {
return rescueRecord;
}
public void setRescueRecord(String rescueRecord) {
this.rescueRecord = rescueRecord;
}
public String getMainTasks() {
return mainTasks;
}
public void setMainTasks(String mainTasks) {
this.mainTasks = mainTasks;
}
public String getMainEquipment() {
return mainEquipment;
}
public void setMainEquipment(String mainEquipment) {
this.mainEquipment = mainEquipment;
}
public String getParentTypeId() {
return parentTypeId;
}
public void setParentTypeId(String parentTypeId) {
this.parentTypeId = parentTypeId;
}
public String getParentTypeName() {
return parentTypeName;
}
public void setParentTypeName(String parentTypeName) {
this.parentTypeName = parentTypeName;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getServiceArea() {
return serviceArea;
}
public void setServiceArea(String serviceArea) {
this.serviceArea = serviceArea;
}
public String getContactMobilePhone() {
return contactMobilePhone;
}
public void setContactMobilePhone(String contactMobilePhone) {
this.contactMobilePhone = contactMobilePhone;
}
public String getContactHomePhone() {
return contactHomePhone;
}
public void setContactHomePhone(String contactHomePhone) {
this.contactHomePhone = contactHomePhone;
}
}
package com.jg.emergency.vo.yjzy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("")
public class YjzyExpertVO {
@ApiModelProperty(value = "ID")
private String id;
@ApiModelProperty(value = "ID")
private String typeId;
@ApiModelProperty(value = "")
private String typeName;
@ApiModelProperty(value = "")
private String name;
@ApiModelProperty(value = "")
private String sex;
@ApiModelProperty(value = "")
private String birdthday;
@ApiModelProperty(value = "")
private String nation;
@ApiModelProperty(value = "")
private String nativePlace;
@ApiModelProperty(value = "")
private String studySchool;
@ApiModelProperty(value = "")
private String healthCondition;
@ApiModelProperty(value = "")
private String postalCode;
@ApiModelProperty(value = "")
private String officePhone;
@ApiModelProperty(value = "")
private String mobilePhone;
@ApiModelProperty(value = "")
private String homePhone;
@ApiModelProperty(value = "")
private String fax;
@ApiModelProperty(value = "")
private String email;
@ApiModelProperty(value = "")
private String politicalStaus;
@ApiModelProperty(value = "")
private String maxDegree;
@ApiModelProperty(value = "")
private String homeAddress;
@ApiModelProperty(value = "")
private String homeLng;
@ApiModelProperty(value = "")
private String homeLat;
@ApiModelProperty(value = "")
private String workUnit;
@ApiModelProperty(value = "")
private String workplace;
@ApiModelProperty(value = "")
private String profess;
@ApiModelProperty(value = "")
private String identityCard;
@ApiModelProperty(value = "")
private String workTime;
@ApiModelProperty(value = "")
private String administrativePosition;
@ApiModelProperty(value = "")
private String speciality;
@ApiModelProperty(value = "")
private String lng;
@ApiModelProperty(value = "")
private String lat;
@ApiModelProperty(value = "")
private String resume;
@ApiModelProperty(value = "")
private String accidentHandling;
@ApiModelProperty(value = "")
private String specialtyDescription;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getBirdthday() {
return birdthday;
}
public void setBirdthday(String birdthday) {
this.birdthday = birdthday;
}
public String getNation() {
return nation;
}
public void setNation(String nation) {
this.nation = nation;
}
public String getNativePlace() {
return nativePlace;
}
public Integer getFullTimeNum() {
return fullTimeNum;
}
public void setFullTimeNum(Integer fullTimeNum) {
this.fullTimeNum = fullTimeNum;
}
public Integer getPartTimeNum() {
return partTimeNum;
}
public void setPartTimeNum(Integer partTimeNum) {
this.partTimeNum = partTimeNum;
}
public Integer getSquadronNum() {
return squadronNum;
}
public void setSquadronNum(Integer squadronNum) {
this.squadronNum = squadronNum;
}
public Integer getTeamNum() {
return teamNum;
}
public void setTeamNum(Integer teamNum) {
this.teamNum = teamNum;
}
public Integer getDoctorNum() {
return doctorNum;
}
public void setDoctorNum(Integer doctorNum) {
this.doctorNum = doctorNum;
}
public Integer getNurseNum() {
return nurseNum;
}
public void setNurseNum(Integer nurseNum) {
this.nurseNum = nurseNum;
}
public Integer getTotalNum() {
return totalNum;
}
public void setTotalNum(Integer totalNum) {
this.totalNum = totalNum;
}
public String getRescueRecord() {
return rescueRecord;
}
public void setRescueRecord(String rescueRecord) {
this.rescueRecord = rescueRecord;
}
public String getMainTasks() {
return mainTasks;
}
public void setMainTasks(String mainTasks) {
this.mainTasks = mainTasks;
}
public String getMainEquipment() {
return mainEquipment;
}
public void setMainEquipment(String mainEquipment) {
this.mainEquipment = mainEquipment;
}
public String getParentTypeId() {
return parentTypeId;
}
public void setParentTypeId(String parentTypeId) {
this.parentTypeId = parentTypeId;
}
public String getParentTypeName() {
return parentTypeName;
}
public void setParentTypeName(String parentTypeName) {
this.parentTypeName = parentTypeName;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getServiceArea() {
return serviceArea;
}
public void setServiceArea(String serviceArea) {
this.serviceArea = serviceArea;
}
public String getContactMobilePhone() {
return contactMobilePhone;
}
public void setContactMobilePhone(String contactMobilePhone) {
this.contactMobilePhone = contactMobilePhone;
}
public String getContactHomePhone() {
return contactHomePhone;
}
public void setContactHomePhone(String contactHomePhone) {
this.contactHomePhone = contactHomePhone;
}
}
package com.jg.emergency.vo.yjzy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("")
public class YjzyExpertVO {
@ApiModelProperty(value = "ID")
private String id;
@ApiModelProperty(value = "ID")
private String typeId;
@ApiModelProperty(value = "")
private String typeName;
@ApiModelProperty(value = "")
private String name;
@ApiModelProperty(value = "")
private String sex;
@ApiModelProperty(value = "")
private String birdthday;
@ApiModelProperty(value = "")
private String nation;
@ApiModelProperty(value = "")
private String nativePlace;
@ApiModelProperty(value = "")
private String studySchool;
@ApiModelProperty(value = "")
private String healthCondition;
@ApiModelProperty(value = "")
private String postalCode;
@ApiModelProperty(value = "")
private String officePhone;
@ApiModelProperty(value = "")
private String mobilePhone;
@ApiModelProperty(value = "")
private String homePhone;
@ApiModelProperty(value = "")
private String fax;
@ApiModelProperty(value = "")
private String email;
@ApiModelProperty(value = "")
private String politicalStaus;
@ApiModelProperty(value = "")
private String maxDegree;
@ApiModelProperty(value = "")
private String homeAddress;
@ApiModelProperty(value = "")
private String homeLng;
@ApiModelProperty(value = "")
private String homeLat;
@ApiModelProperty(value = "")
private String workUnit;
@ApiModelProperty(value = "")
private String workplace;
@ApiModelProperty(value = "")
private String profess;
@ApiModelProperty(value = "")
private String identityCard;
@ApiModelProperty(value = "")
private String workTime;
@ApiModelProperty(value = "")
private String administrativePosition;
@ApiModelProperty(value = "")
private String speciality;
@ApiModelProperty(value = "")
private String lng;
@ApiModelProperty(value = "")
private String lat;
@ApiModelProperty(value = "")
private String resume;
@ApiModelProperty(value = "")
private String accidentHandling;
@ApiModelProperty(value = "")
private String specialtyDescription;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeId() {
return typeId;
}
public void setNativePlace(String nativePlace) {
this.nativePlace = nativePlace;
}
public String getStudySchool() {
return studySchool;
}
public void setStudySchool(String studySchool) {
this.studySchool = studySchool;
}
public String getHealthCondition() {
return healthCondition;
}
public void setHealthCondition(String healthCondition) {
this.healthCondition = healthCondition;
}
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public String getOfficePhone() {
return officePhone;
}
public void setOfficePhone(String officePhone) {
this.officePhone = officePhone;
}
public String getHomePhone() {
return homePhone;
}
public void setHomePhone(String homePhone) {
this.homePhone = homePhone;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPoliticalStaus() {
return politicalStaus;
}
public void setPoliticalStaus(String politicalStaus) {
this.politicalStaus = politicalStaus;
}
public String getMaxDegree() {
return maxDegree;
}
public void setMaxDegree(String maxDegree) {
this.maxDegree = maxDegree;
}
public String getHomeAddress() {
return homeAddress;
}
public void setHomeAddress(String homeAddress) {
this.homeAddress = homeAddress;
}
public String getHomeLng() {
return homeLng;
}
public void setHomeLng(String homeLng) {
this.homeLng = homeLng;
}
public String getHomeLat() {
return homeLat;
}
public void setHomeLat(String homeLat) {
this.homeLat = homeLat;
}
public String getWorkUnit() {
return workUnit;
}
public void setWorkUnit(String workUnit) {
this.workUnit = workUnit;
}
public String getWorkplace() {
return workplace;
}
public void setWorkplace(String workplace) {
this.workplace = workplace;
}
public String getProfess() {
return profess;
}
public void setProfess(String profess) {
this.profess = profess;
}
public String getIdentityCard() {
return identityCard;
}
public void setIdentityCard(String identityCard) {
this.identityCard = identityCard;
}
public String getWorkTime() {
return workTime;
}
public void setWorkTime(String workTime) {
this.workTime = workTime;
}
public String getAdministrativePosition() {
return administrativePosition;
}
public void setAdministrativePosition(String administrativePosition) {
this.administrativePosition = administrativePosition;
}
public String getSpeciality() {
return speciality;
}
public void setSpeciality(String speciality) {
this.speciality = speciality;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getResume() {
return resume;
}
public void setResume(String resume) {
this.resume = resume;
}
public String getAccidentHandling() {
return accidentHandling;
}
public void setAccidentHandling(String accidentHandling) {
this.accidentHandling = accidentHandling;
}
public String getSpecialtyDescription() {
return specialtyDescription;
}
public void setSpecialtyDescription(String specialtyDescription) {
this.specialtyDescription = specialtyDescription;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public String getMobilePhone() {
return mobilePhone;
}
public void setMobilePhone(String mobilePhone) {
this.mobilePhone = mobilePhone;
}
}
<template>
<div class="page-content have-btns">
<!-- -->
<table-search :searchs="searchs"
@unit="unitHandle">
<!-- -->
<template slot="prev">
<div style="padding-top:5px;margin-right:10px;">
<el-radio-group size="small"
v-model="radio1">
<el-radio-button label=""></el-radio-button>
<el-radio-button label=""></el-radio-button>
</el-radio-group>
</div>
</template>
</table-search>
<!-- -->
<table-table ref="tableTable"
:tableColumns="tableColumns"
:tableRequest="tableRequest"
:headButtons="headButtons"
@createHandle="createHandle"
@deleteHandle="deleteHandle"
@exportHandle="exportHandle">
<!-- -->
<template slot="expand"
slot-scope="scope">
<el-tag size="medium">{{ scope.row }}</el-tag>
</template>
<!-- slotprop -->
<template slot="legalPerson"
slot-scope="scope">
<el-tag size="medium">{{ scope.row.legalPerson }}</el-tag>
</template>
<!-- slotprop -->
<template slot="handle"
slot-scope="scope">
<el-button type="text"
v-auth="{btn: 'detail', meta: $route.meta.buttons}"
@click="rowBtnHandle(scope.row)"></el-button>
<el-button type="text"
@click="rowBtnHandle(scope.row)"></el-button>
<el-button type="text"
class="color-danger"
@click="rowBtnHandle(scope.row)"></el-button>
</template>
</table-table>
</div>
</template>
<script>
import api from '@/utils/requst.js'
import { TableSearch } from 'vue-common-nmg'
import { TableTable } from 'vue-common-nmg'
export default {
name: 'Table',
components: {
TableSearch,
TableTable
},
data() {
return {
searchs: [
{ type: 'input', id: 'name', label: '', width: '300px' },
{
type: 'select', id: 'type', label: '',
options: [{ name: '', value: 'supervisor' }, { name: '', value: 'construction' }]
},
{ type: 'datePicker', id: 'startTime', label: '' },
{ type: 'dateTimePicker', id: 'endTime', label: '' },
{
type: 'cascader', id: 'unit', label: '', change: 'type',
props: { checkStrictly: true, emitPath: false },
options: [
{
value: 1,
label: '',
children: [{
value: 2,
label: '',
children: [
{ value: 3, label: '' },
{ value: 4, label: '' },
{ value: 5, label: '' }
]
}, {
value: 7,
label: '',
children: []
}, {
value: 12,
label: '',
children: [
{ value: 13, label: '' },
{ value: 14, label: '' },
{ value: 15, label: '' }
]
}]
}, {
value: 17,
label: '',
children: [{
value: 18,
label: '',
children: [
{ value: 19, label: '' },
{ value: 20, label: '' }
]
}, {
value: 21,
label: '',
children: []
}]
}]
},
{ type: 'input', id: 'name2', label: '2' },
{ type: 'input', id: 'name3', label: '3', width: '250px' },
{ type: 'input', id: 'name4', label: '4' },
{ type: 'input', id: 'name5', label: '5' },
],
headButtons: [
{ type: 'primary', id: 'create', icon: 'el-icon-plus', method: 'createHandle' },
{ type: 'danger', id: 'delete', method: 'deleteHandle', selection: true },
{ id: 'export', method: 'exportHandle' },
],
tableRequest: {
method: 'get',
api: '/participationBaseinfo/getList',
form: {
city: ''
}
},
tableColumns: [
{ type: 'index' },
{ type: 'selection', width: '45px' },
{ type: 'expand', width: '35px' },
{ label: '()', prop: 'businessName', minWidth: '150%' },
{ label: '()', prop: 'businessType' },
{ label: '()', prop: 'legalPerson', slot: true, align: 'center' },
{ label: '()', prop: 'deptAddress' },
{ label: '', prop: 'handle', width: '150px', fixed: 'right', slot: true }
],
visible: false,
radio1: ''
}
},
watch: {
radio1(val) {
this.tableRequest.form.city = val
this.$refs.tableTable.getList()
}
},
methods: {
---
createHandle(selections) {
this.$message({
message: '',
type: 'success'
});
,,,;,,
this.$refs.tableTable.resetPage()
this.$refs.tableTable.getList()
},
---
deleteHandle(row) {
this.$confirm(', ?', '', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
this.$message.error('');
,,,;,,
this.$refs.tableTable.resetPage()
this.$refs.tableTable.getList()
}).catch(() => {
this.$message('')
})
},
---
exportHandle() {
this.$message('');
},
rowBtnHandle(row) {
console.log(row)
this.$message('');
},
,item3,
unitHandle(val) {
this.$message('unit!' + val);
}
}
}
</script>
<template>
<div></div>
</template>
<script>
export default {
name: 'Map',
,
mounted() {
this.$store.dispatch('updateSideMenuShow', false)
},
,
destroyed() {
this.$store.dispatch('updateSideMenuShow', true)
}
}
</script>
<style lang="scss" scoped>
.icon_lists {
background: #fff;
border: 1px solid #eee;
.dib {
display: inline-block;
float: left;
height: 120px;
width: 150px;
border-right: 1px solid #eee;
border-bottom: 1px solid #eee;
margin-right: -1px;
margin-bottom: -1px;
text-align: center;
/deep/ .svg-icon {
margin: 40px 0 15px 0;
font-size: 28px;
}
}
.dib:hover {
color: $--color-primary;
}
}
</style>
<template>
<div>
<el-upload ref="upload"
multiple
:limit="5"
:on-change="handleChange"
:on-remove="handleRemove"
:on-exceed="handleExceed"
:file-list="fileList"
:http-request="uploadFile"
:auto-upload="false">
<el-button slot="trigger"
size="small"
type="primary"></el-button>
<el-button style="margin-left: 133px;"
size="small"
type="success"
@click="submitUpload">
</el-button>
<div slot="tip"
class="el-upload__tip">xlsx,100m</div>
</el-upload>
</div>
</template>
<script>
import api from '@/utils/requst.js'
import VueFileUpload from 'vue-file-upload';
export default {
data() {
return {
fileData: '', ()
fileList: [], upload
uploadData: {
fieldData: {
id: '', id,
}
}
}
},
mounted() { },
methods: {
uploadFile(file) {
this.fileData.append('files', file.file); append
},
submitUpload() {
let fieldData = this.uploadData.fieldData; ,,fieldDatafileData
const isLt100M = this.fileList.every(file => file.size / 1024 / 1024 < 100);
this.fileData = new FormData(); new formData
this.$refs.upload.submit(); uploadFile
console.log(this.fileData)
api.post('https:jsonplaceholder.typicode.com/posts/', this.fileData).then((response) => {
if (response.data.code === 0) {
this.$message({
message: "",
type: 'success'
});
this.fileList = [];
} else {
this.$message({
message: response.data.desc,
type: 'error'
})
}
});
},
handleRemove(file, fileList) {
this.fileList = fileList;
return this.$confirm(` ${ file.name }?`);
},
handleExceed(files, fileList) {
this.$message.warning(` 5 , ${files.length} , ${files.length + fileList.length} `);
},
handleChange(file, fileList) {
let existFile = fileList.slice(0, fileList.length - 1).find(f => f.name === file.name);
if (existFile) {
this.$message.error('!');
fileList.pop();
}
this.fileList = fileList;
}
},
components: {
VueFileUpload
}
}
</script>
<template>
<div class="wrap">
<div id="map"></div>
<div class="leftNav"
ref="left">
<leftList @cloLeft="cloLeft"
:botBol="botBol"
@showDetail="showDetail"
@showName="showName"
@geteveBol="geteveBol"
@geteveId="geteveId"
class="leftList"></leftList>
<div class="letBut"
v-if="leftBol">
<i class="el-icon-d-arrow-right"
@click="openLeft"></i>
</div>
</div>
<div class="bottom"
v-if="botBol"
ref="bottom">
<botCont :detailId="detailIds"
@closeBot="closeBot"
@changeId="changeId"
:eveId="eveId"
:rtsp="rtsp"
:cameraId="cameraId"
:bols="botBol"
:eveBol="eveBol"
:creams="creams"
:status="status"
:detailName="detailName"></botCont>
</div>
<OBJECT ID="MediaClient3"
ref="MediaClient3"
class="content"
width="370"
v-show="false"
height="240"
CLASSID="CLSID:FA448097-D082-4838-8D4A-3F70005C1AD4"></OBJECT>
</div>
</template>
<script>
import leftList from './mans/leftList.vue'
import botCont from './mans/botCont.vue'
import danbin from './mans/danbin.vue'
import camera from './mans/camera.vue'
import api from '@/utils/requst.js'
import axios from "axios";
import Map from "ol/Map";
import View from "ol/View";
import Overlay from 'ol/Overlay';
import * as olLayer from 'ol/layer'
import TileGrid from "ol/tilegrid/TileGrid";
import TileImage from "ol/source/TileImage";
import XYZ from "ol/source/XYZ";
import * as olSource from 'ol/source'
import * as olFormat from 'ol/format'
import * as olStyle from 'ol/style'
import Feature from 'ol/Feature'
import * as olGeom from 'ol/geom'
import TileGridWMTS from 'ol/tilegrid/WMTS'
import * as olControl from 'ol/control'
import * as olPolygon from 'ol/geom/Polygon'
import Projection from 'ol/proj/Projection'
import {addProjection, addCoordinateTransforms} from "ol/proj";
import { Cluster, OSM, Vector as VectorSource } from 'ol/source';
import { Tile as TileLayer, Vector as VectorLayer } from 'ol/layer';
export default {
data() {
return {
activeName: 'first',
detailId: '',
detailName: '',
map: null,
rtsp: '',
botBol: false,
trLayers: {
layerCities: undefined, ,4~11
layerSfz: undefined, ,12
center: undefined,
},
leftBol: false,
rightBol: true,
righIndex: 1,
distance: 500,
affics: [],
mapBol: false,
mapBol2: false,
mapBol3: false,
mapBol4: false,
popup: {},
detail: {},
detailTable: [],
detailTable2: [],
title: '',
cooDetail: {},
cooTable: [],
callId: '',
callData: {},
eveId: '',
cameraId: '',
creams: [],
eveBol: false,
detailIds: '',
status: 0
}
},
components: {
leftList,
botCont
},
watch: {
detailId() {
if (this.detailId) {
this.detailIds = this.detailId
this.getPoints()
}
}
},
mounted() {
this.newMap()
this.getCreams()
this.showInit()
window.addEventListener('beforeunload', this.beforeunloadHandler)
},
methods: {
beforeunloadHandler() {
MediaClient3.LogonOut();
var result = MediaClient3.Uninit();
},
showInit() {
api.get('/camera/getNewestVideoPlateForm').then(res => {
try {
let tempMediaClient = this.$refs.MediaClient3
const version = tempMediaClient.Version()
if (res.version == version) {
this.Init()
} else {
this.$confirm(',', '', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
window.parent.location.href = res.downloadUrl
}).catch(() => {
this.$message({
type: 'info',
message: ''
});
this.Init()
});
}
} catch (err) {
this.$confirm('', '', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
window.parent.location.href = res.downloadUrl
}).catch(() => {
this.$message({
type: 'info',
message: ''
});
});
}
})
},
Init() {
var result = MediaClient3.Init();
if (result == 0) {
console.log('')
var result = MediaClient3.LogonIn("ip,172.160.1.163,port,15130,username,admin,password,12345678,dwLinkMode,0");
if (result == 0) {
console.log('')
} else {
}
}
},
getCreams() {
api.get('/jc/device/myDeviceList', { locationCode: '' }).then(res => {
this.affics = res
var arr = []
arr.push(res[0].lng)
arr.push(res[0].lat)
this.showDevices(arr)
})
},
closeBot() {
this.botBol = false
this.detailId = ''
this.map.removeLayer(this.trLayers.center)
},
getCenter() {
api.post2('/yjevent/getDetail', {
id: this.detailId
}).then(res => {
var arr = []
arr.push(res.lng)
arr.push(res.lat)
this.showDevices(arr)
})
},
getPoints() {
api.post2('/jc/device/get', {
id: this.detailId,
}).then(res => {
this.rtsp = res.rtsp
this.cameraId = res.cameraId
this.creams = [res]
this.status = res.status
let arr2 = []
arr2.push(res)
var arr = []
arr.push(res.lng)
arr.push(res.lat)
this.createLayerDevice2(arr2)
this.affics = arr2
this.showDevices(arr)
this.botBol = true
this.getCenter()
})
},
showDetail(id) {
this.detailId = id
var view = this.map.getView()
if (view.getZoom() < 10) {
view.setZoom(10)
}
},
showName(name) {
this.detailName = name
},
geteveBol(bol) {
this.eveBol = bol
},
geteveId(id) {
this.eveId = id
},
getIndex() {
let arr = document.querySelectorAll('.riNavs')
for (var i = 0; i < arr.length; i++) {
if (this.righIndex - 1 == i) {
arr[i].style.backgroundColor = '#283143'
} else {
arr[i].style.backgroundColor = '#3A455E'
}
}
},
changeIndex(index) {
this.righIndex = index
this.getIndex()
this.openRight(true)
},
openLeft() {
this.leftBol = false
this.$refs.left.style.left = '0'
},
cloLeft() {
this.leftBol = true
this.$refs.left.style.left = '-251px'
},
openRight(bol) {
this.rightBol = bol
if (bol) {
this.$refs.right.style.right = '0'
} else {
this.$refs.right.style.right = '-500px'
}
},
showDevices(arr) {
let that = this
this.map.removeLayer(this.trLayers.layerCities)
let layerCities = this.createLayerDevice(this.affics)
var view = this.map.getView()
if (arr[0] == 'null' || !arr[0]) {
view.setCenter([113.12, 40.98])
} else {
view.setCenter([arr[0], arr[1]])
}
this.trLayers.layerCities = layerCities
this.map.addLayer(layerCities)
that.popup = new Overlay({
element: document.getElementById('popup'),
positioning: 'bottom-center'
});
this.map.addOverlay(that.popup);
that.map.on('pointermove', function (e) {
var pixel = that.map.getEventPixel(e.originalEvent);
var hit = that.map.hasFeatureAtPixel(pixel);
that.map.getTargetElement().style.cursor = hit ? 'pointer' : '';
});
this.map.on('click', function (evt) {
var feature = that.map.forEachFeatureAtPixel(evt.pixel,
function (feature) {
return feature;
});
if (feature.values_.features) {
console.log(feature.values_.features)
that.enPoint(feature.values_.features)
}
});
},
geoserver
createBaseLayerGeoserver() {
const projBD09 = new Projection({
code:'BD:09',
extent:[-20037726.37, -11708041.66, 20037726.37, 12474104.17],
units:'m',
axisOrientation:'neu',
global:false
});
addProjection(projBD09);
addCoordinateTransforms("EPSG:4326", "BD:09",
function (coordinate) {
return lngLatToMercator(coordinate);
},
function (coordinate) {
return mercatorToLngLat(coordinate);
}
);
let baseUrl = '/static/bdMap/tiles'
let baseUrl = 'http:172.160.1.66:6081/geowebcache/service/wmts'
let matrixSet = 'EPSG:4326_NMGGC1_DP_BLUE2019'
let matrixIds = []
for (let i = 0; i < 14; i++) {
EPSG:4326_NMGGC1_DP_BLUE2019:0, 0~1314
matrixIds.push(matrixSet + ':' + i)
}
let layerName = 'NMGGC1_DP_BLUE2019'
var resolutions = [];
for (var i = 0; i <= 18; i++) {
resolutions[i] = Math.pow(2, 18 - i);
}
const baiduTileGrid = new TileGrid({
origin:[0, 0],
resolutions:resolutions
});
const baiduSource = new TileImage({
projection:'BD:09',
tileGrid:baiduTileGrid,
tilePixelRatio:2,
tileUrlFunction: function(tileCoord, pixelRatio, proj) {
if (!tileCoord) {
return '';
}
let z = tileCoord[0];
let x = tileCoord[1];
let y = tileCoord[2];
if (x < 0) {
x = (-x);
}
if (y < 0) {
y = (-y) - 1; ,ol6,,
}
return '/map/' + z + '/' + x + '/' + y + '.png';
},
crossOrigin: 'anonymous'
});
new olSource.WMTS({
url: baseUrl + '?',
layer: layerName,
matrixSet,
format: 'image/jpg',
projection: 'EPSG:4326',
tileGrid: new TileGridWMTS({
tileSize: [256, 256],
extent: [-400.0, -23.89270756292217, 193.44979058809065, 399.9999999999998],
origin: [-400.0, 399.9999999999998],
resolutions,
matrixIds
}),
style: ''
})
return new olLayer.Tile({
source: baiduSource
})
},
newMap(target = 'map') {
let controls = new olControl.defaults({ zoom: false })