package com.skyline.electricity.service.impl;
|
|
import com.skyline.electricity.service.*;
|
import org.springframework.stereotype.*;
|
import org.springframework.transaction.annotation.*;
|
import com.skyline.electricity.mapper.*;
|
import org.springframework.beans.factory.annotation.*;
|
import java.util.*;
|
import com.skyline.electricity.pojo.*;
|
|
@Service
|
@Transactional(transactionManager = "firstDataSourceTransactionManger")
|
public class DetectServiceImpl implements DetectService
|
{
|
@Autowired
|
private DetectMapper detectMapper;
|
|
@Override
|
public List<FencePosition> checkInFence(String lon, String lat) {
|
return detectMapper.checkInFence(lon,lat);
|
}
|
|
|
|
@Override
|
public Fence_User checkInAlert(String workid, String userid) {
|
return detectMapper.checkInAlert(workid,userid);
|
}
|
|
@Override
|
public void updateInfomation(Information information) {
|
detectMapper.updateInfomation(information);
|
}
|
|
|
@Override
|
public String judge(final Map<Object, Object> map) {
|
return this.detectMapper.judge(map);
|
}
|
|
@Override
|
public void insertPoint(final PersonPosition route) {
|
this.detectMapper.insertPoint(route);
|
}
|
|
@Override
|
public List<String> getRoute(final String username) {
|
return this.detectMapper.getRoute(username);
|
}
|
|
@Override
|
public List<Wifi> getWifiInfo() {
|
return this.detectMapper.getWifiInfo();
|
}
|
|
@Override
|
public List<Monitor> getMonitorInfo() {
|
return this.detectMapper.getMonitorInfo();
|
}
|
|
@Override
|
public List<DoorAccess> getDoorAccessInfo() {
|
return this.detectMapper.getDoorAccessInfo();
|
}
|
|
@Override
|
public void insertPolygon(final FencePosition fencePosition) {
|
this.detectMapper.insertPolygon(fencePosition);
|
}
|
|
@Override
|
public FencePosition selectPolygon(final FencePosition fencePosition) {
|
return this.detectMapper.selectPolygon(fencePosition);
|
}
|
|
@Override
|
public void insertHp(final HistoryPosition historyPosition) {
|
this.detectMapper.insertHp(historyPosition);
|
}
|
|
@Override
|
public List<HistoryPosition> getRouteByUserId(final String userId, final String starttime, final String endtime) {
|
return this.detectMapper.getRouteByUserId(userId, starttime, endtime);
|
}
|
|
@Override
|
public List<FencePosition> getFenceInfo(final String workId) {
|
return this.detectMapper.getFenceInfo(workId);
|
}
|
|
@Override
|
public int updateFenceInfo(final FencePosition fencePosition) {
|
return this.detectMapper.updateFenceInfo(fencePosition);
|
}
|
|
@Override
|
public void updateFenceById(final FencePosition fencePosition) {
|
this.detectMapper.updateFenceById(fencePosition);
|
}
|
|
@Override
|
public String intersects(final Map<String, Object> map) {
|
return this.detectMapper.intersects(map);
|
}
|
|
@Override
|
public int deleteFenceById(final String workId) {
|
return this.detectMapper.deleteFenceById(workId);
|
}
|
|
@Override
|
public int deleteFence() {
|
return this.detectMapper.deleteFence();
|
}
|
|
@Override
|
public List<FencePosition> getFenceInfoByStatus() {
|
return this.detectMapper.getFenceInfoByStatus();
|
}
|
|
@Override
|
public void changeFenceStatus(final String workId) {
|
this.detectMapper.changeFenceStatus(workId);
|
}
|
|
@Override
|
public int deleteDisabledFence() {
|
return this.detectMapper.deleteDisabledFence();
|
}
|
|
@Override
|
public Information selectPosition(final String userId, final String fenceId) {
|
return this.detectMapper.selectPosition(userId, fenceId);
|
}
|
|
@Override
|
public Information selectPositionDelay(final String userId, final String fenceId) {
|
return this.detectMapper.selectPositionDelay(userId, fenceId);
|
}
|
|
@Override
|
public void insertInfo(final Information information) {
|
this.detectMapper.insertInfo(information);
|
}
|
|
@Override
|
public void changeStatus(final String userId, final String workId) {
|
this.detectMapper.changeStatus(userId, workId);
|
}
|
|
@Override
|
public List<PersonPosition> getPositionById(final String userId) {
|
return this.detectMapper.getPositionById(userId);
|
}
|
|
@Override
|
public List<FencePosition> getFenceInfoById(final String workId) {
|
return this.detectMapper.getFenceInfoById(workId);
|
}
|
|
@Override
|
public void setFenceEnabled(final String workId) {
|
this.detectMapper.setFenceEnabled(workId);
|
}
|
|
@Override
|
public void setFenceDisabled(final String workId) {
|
this.detectMapper.setFenceDisabled(workId);
|
}
|
|
@Override
|
public void setEnabled(final String workId) {
|
this.detectMapper.setEnabled(workId);
|
}
|
|
@Override
|
public void setDisabled(final String workId) {
|
this.detectMapper.setDisabled(workId);
|
}
|
|
@Override
|
public String transLocation(final String point) {
|
return this.detectMapper.transLocation(point);
|
}
|
|
@Override
|
public List<DeviceInfo> getDeviceInfo() {
|
return this.detectMapper.getDeviceInfo();
|
}
|
|
@Override
|
public DeviceInfo getDeviceInfoById(final String device_id) {
|
return this.detectMapper.getDeviceInfoById(device_id);
|
}
|
|
@Override
|
public List<String> getDeviceId() {
|
return this.detectMapper.getDeviceId();
|
}
|
|
@Override
|
public List<DeviceKKS> getDeviceKKSInfo(final String device_id) {
|
return this.detectMapper.getDeviceKKSInfo(device_id);
|
}
|
|
@Override
|
public List<MonitorInfo> getMonitorDeviceInfo() {
|
return this.detectMapper.getMonitorDeviceInfo();
|
}
|
|
|
|
@Override
|
public List<MonitorInfo> getMonitorDeviceInfoById(final String cameraIndex) {
|
return this.detectMapper.getMonitorDeviceInfoById(cameraIndex);
|
}
|
|
@Override
|
public List<FencePosition> getFixedFenceInfo() {
|
return this.detectMapper.getFixedFenceInfo();
|
}
|
|
@Override
|
public void setFenceEnabledByStartTime(final String workId) {
|
this.detectMapper.setFenceEnabledByStartTime(workId);
|
}
|
|
@Override
|
public List<FencePosition> getTempFenceInfo() {
|
return this.detectMapper.getTempFenceInfo();
|
}
|
|
@Override
|
public void insertFencePersonRel(final List<Map<String, Object>> personlist, final String workid) {
|
this.detectMapper.delFencePersonRel(workid);
|
if (personlist.size() != 0) {
|
this.detectMapper.insertFencePersonRel(personlist);
|
}
|
}
|
|
@Override
|
public List<Map<String, Object>> selectFencePersonRelByworkid(final String workid) {
|
return this.detectMapper.selectFencePersonRelByworkid(workid);
|
}
|
|
@Override
|
public void insertfixareaPersonRel(final List<Map<String, Object>> personlist, final String workid, final int personcount) {
|
this.detectMapper.delFencePersonRel(workid);
|
if (personlist.size() != 0) {
|
for (final Map<String, Object> map : personlist) {
|
map.put("personcount", personcount);
|
}
|
this.detectMapper.insertfixareaPersonRel(personlist);
|
}
|
}
|
|
@Override
|
public List<Map<String, Object>> selectAllfixedareaPerson() {
|
return this.detectMapper.selectAllfixedareaPerson();
|
}
|
|
@Override
|
public List<Map<String, Object>> selectAllfencePerson() {
|
return this.detectMapper.selectAllfencePerson();
|
}
|
|
@Override
|
public List<FencePosition> selectFenceAndfixedArea() {
|
final List<FencePosition> fence = this.detectMapper.getFenceInfoByStatus();
|
return fence;
|
}
|
|
@Override
|
public List<FencePosition> selectFenceAndfixedYQArea() {
|
final List<FencePosition> fence = this.detectMapper.selectFenceAndfixedYQArea();
|
return fence;
|
}
|
|
@Override
|
public void insertPolygon_yq(final FencePosition fencePosition) {
|
this.detectMapper.insertPolygon_yq(fencePosition);
|
}
|
|
@Override
|
public FenceTemp queryFenceTemp(final String workId, final String userId) {
|
return this.detectMapper.selectFenceTemp(workId, userId);
|
}
|
|
@Override
|
public void insetFenceTemp(final FenceTemp ft) {
|
this.detectMapper.insetFenceTemp(ft);
|
}
|
|
@Override
|
public void updateFenceTemp(final String workId, final String newUserId) {
|
this.detectMapper.updateFenceTemp(workId, newUserId);
|
}
|
|
@Override
|
public void deleteFenceTemp(final String workId) {
|
this.detectMapper.deleteFenceTemp(workId);
|
}
|
|
@Override
|
public Information queryInformation(final String wtId, final String userId) {
|
return this.detectMapper.selectInformation(wtId, userId);
|
}
|
|
@Override
|
public void delAllFencePersonRel() {
|
this.detectMapper.delAllFencePersonRel();
|
}
|
|
@Override
|
public List<Map> selectPeopleInSecureCircle() {
|
return this.detectMapper.selectPeopleInSecureCircle();
|
}
|
|
@Override
|
public List<Map> selectDepartDeputyDirectorByStaffid(final String userid) {
|
return this.detectMapper.selectDepartDeputyDirectorByStaffid(userid);
|
}
|
|
@Override
|
public List<Map> selectWorkLeader(final String workid) {
|
return this.detectMapper.selectWorkLeader(workid);
|
}
|
|
@Override
|
public void updateFenceAlarmCount(final String workid) {
|
this.detectMapper.updateFenceAlarmCount(workid);
|
}
|
}
|