Browse Source

站点 摄像头

platform-api
blankk 2 years ago
parent
commit
c06211a691
  1. 3
      .idea/compiler.xml
  2. 2
      .idea/encodings.xml
  3. 20
      .idea/jarRepositories.xml
  4. 12
      .idea/libraries/examples.xml
  5. 5
      .idea/misc.xml
  6. 9
      ruoyi-code/src/main/java/com/ruoyi/code/camera/controller/CameraController.java
  7. 3
      ruoyi-code/src/main/java/com/ruoyi/code/camera/mapper/CameraMapper.java
  8. 3
      ruoyi-code/src/main/java/com/ruoyi/code/camera/service/ICameraService.java
  9. 5
      ruoyi-code/src/main/java/com/ruoyi/code/camera/service/impl/CameraServiceImpl.java
  10. 5
      ruoyi-code/src/main/resources/mapper/camera/CameraMapper.xml

3
.idea/compiler.xml

@ -8,10 +8,11 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" /> <outputRelativeToContentRoot value="true" />
<module name="ruoyi-framework" /> <module name="ruoyi-framework" />
<module name="ruoyi-system" />
<module name="ruoyi-generator" /> <module name="ruoyi-generator" />
<module name="ruoyi-common" /> <module name="ruoyi-common" />
<module name="ruoyi-system" />
<module name="ruoyi-quartz" /> <module name="ruoyi-quartz" />
<module name="ruoyi-code" />
<module name="ruoyi-admin" /> <module name="ruoyi-admin" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>

2
.idea/encodings.xml

@ -3,6 +3,8 @@
<component name="Encoding"> <component name="Encoding">
<file url="file://$PROJECT_DIR$/ruoyi-admin/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/ruoyi-admin/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-admin/src/main/resources" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/ruoyi-admin/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-code/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-code/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-common/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/ruoyi-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-common/src/main/resources" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/ruoyi-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/ruoyi-framework/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/ruoyi-framework/src/main/java" charset="UTF-8" />

20
.idea/jarRepositories.xml

@ -11,11 +11,31 @@
<option name="name" value="Central Repository" /> <option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" /> <option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="nexus" />
<option name="name" value="nexus" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="public" />
<option name="name" value="aliyun nexus" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
</remote-repository>
<remote-repository> <remote-repository>
<option name="id" value="central" /> <option name="id" value="central" />
<option name="name" value="Maven Central repository" /> <option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" /> <option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="spring-milestones" />
<option name="name" value="spring-milestones" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
</remote-repository>
<remote-repository> <remote-repository>
<option name="id" value="jboss.community" /> <option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" /> <option name="name" value="JBoss Community repository" />

12
.idea/libraries/examples.xml

@ -0,0 +1,12 @@
<component name="libraryTable">
<library name="examples">
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/examples.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/jna.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/sdk.java.netmanager.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/sdk.java.playmanager.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

5
.idea/misc.xml

@ -9,4 +9,9 @@
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
<component name="SwUserDefinedSpecifications">
<option name="specTypeByUrl">
<map />
</option>
</component>
</project> </project>

9
ruoyi-code/src/main/java/com/ruoyi/code/camera/controller/CameraController.java

@ -133,4 +133,13 @@ public class CameraController extends BaseController
window.showVideo(new NativeLong(Long.parseLong(c.getLoginId()))); window.showVideo(new NativeLong(Long.parseLong(c.getLoginId())));
} }
/**
* 查询摄像头未绑定站点的
*/
@RequestMapping("/cameraNoList")
public R getCameraList(){
return R.ok().put("data",cameraService.getCameraList());
}
} }

3
ruoyi-code/src/main/java/com/ruoyi/code/camera/mapper/CameraMapper.java

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.code.camera.domain.Camera; import com.ruoyi.code.camera.domain.Camera;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/** /**
* Mapper接口 * Mapper接口
* *
@ -14,4 +16,5 @@ import org.apache.ibatis.annotations.Mapper;
public interface CameraMapper extends BaseMapper<Camera> public interface CameraMapper extends BaseMapper<Camera>
{ {
List<Camera> queryCameraList();
} }

3
ruoyi-code/src/main/java/com/ruoyi/code/camera/service/ICameraService.java

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.R; import com.ruoyi.common.core.page.R;
import com.ruoyi.code.camera.domain.Camera; import com.ruoyi.code.camera.domain.Camera;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -24,4 +25,6 @@ public interface ICameraService extends IService<Camera>
void online(String ip,int port,String username,String password,String devsn,String loginID); void online(String ip,int port,String username,String password,String devsn,String loginID);
void outline(String loginID); void outline(String loginID);
List<Camera> getCameraList();
} }

5
ruoyi-code/src/main/java/com/ruoyi/code/camera/service/impl/CameraServiceImpl.java

@ -91,4 +91,9 @@ public class CameraServiceImpl extends ServiceImpl<CameraMapper, Camera> impleme
updateById(c); updateById(c);
} }
} }
@Override
public List<Camera> getCameraList() {
return baseMapper.queryCameraList();
}
} }

5
ruoyi-code/src/main/resources/mapper.camera/CameraMapper.xml → ruoyi-code/src/main/resources/mapper/camera/CameraMapper.xml

@ -4,4 +4,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.code.camera.mapper.CameraMapper"> <mapper namespace="com.ruoyi.code.camera.mapper.CameraMapper">
<select id="queryCameraList" resultType="com.ruoyi.code.camera.domain.Camera">
select * from camera where devsn not in (
select camera_sn from sc_station_info
)
</select>
</mapper> </mapper>
Loading…
Cancel
Save