zhanghua
2023-09-11 06bbe2b33d8f147a5c5b024f3c0e507b547e794b
100路视频
8个文件已修改
101 ■■■■■ 已修改文件
document/副本丽水市遂昌县智慧执法应用-资源开通表 -0228.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/pom.xml 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/PlatformApplication.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/dict/DatabaseDictionaryController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/timer/GetDingToken.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/util/VideoUtil.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
document/¸±±¾ÀöË®ÊÐËì²ýÏØÖÇ»ÛÖ´·¨Ó¦ÓÃ-×ÊÔ´¿ªÍ¨±í -0228.xlsx
Binary files differ
ycl-platform/pom.xml
@@ -30,12 +30,12 @@
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.ycl</groupId>
            <artifactId>ycl-generator</artifactId>
            <version>1.0.0</version>
            <scope>compile</scope>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>com.ycl</groupId>-->
<!--            <artifactId>ycl-generator</artifactId>-->
<!--            <version>1.0.0</version>-->
<!--            <scope>compile</scope>-->
<!--        </dependency>-->
        <dependency>
            <groupId>com.alibaba.xxpt</groupId>
            <artifactId>zwdd</artifactId>
@@ -67,17 +67,29 @@
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <!-- å¦‚果要把依赖一起打包,注释下面configuration -->
                <configuration>
                    <layout>ZIP</layout>
                    <includes>
                        <!--将依赖剔除,只编译打包本项目-->
                        <include>
                            <groupId>nothing</groupId>
                            <artifactId>nothing</artifactId>
                        </include>
                    </includes>
                    <mainClass>com.ycl.PlatformApplication</mainClass> <!-- æŒ‡å®šå¯åŠ¨ä¸»ç±» -->
                    <fork>true</fork> <!-- å¦‚果没有该配置,devtools不会生效  æ‰“包 å°†å¤–部jar包打包进项目中 -->
                    <includeSystemScope>true</includeSystemScope> <!-- æ‰“包 å°†å¤–部jar包打包进项目中 -->
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
                <!-- å¦‚果要把依赖一起打包,注释下面configuration -->
<!--                <configuration>-->
<!--                    <layout>ZIP</layout>-->
<!--                    <includes>-->
<!--                        &lt;!&ndash;将依赖剔除,只编译打包本项目&ndash;&gt;-->
<!--                        <include>-->
<!--                            <groupId>nothing</groupId>-->
<!--                            <artifactId>nothing</artifactId>-->
<!--                        </include>-->
<!--                    </includes>-->
<!--                </configuration>-->
            </plugin>
@@ -90,21 +102,21 @@
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <configuration>
                    <outputDirectory>${project.build.directory}/lib</outputDirectory>
                </configuration>
                <!--执行package时自动将依赖复制出来到/lib中-->
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
<!--            <plugin>-->
<!--                <artifactId>maven-dependency-plugin</artifactId>-->
<!--                <configuration>-->
<!--                    <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
<!--                </configuration>-->
<!--                &lt;!&ndash;执行package时自动将依赖复制出来到/lib中&ndash;&gt;-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <phase>package</phase>-->
<!--                        <goals>-->
<!--                            <goal>copy-dependencies</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
<!--            </plugin>-->
ycl-platform/src/main/java/com/ycl/PlatformApplication.java
@@ -24,7 +24,6 @@
@EnableTransactionManagement(proxyTargetClass = true)
@SpringBootApplication
public class PlatformApplication {
    public static void main(String[] args) throws UnknownHostException {
        ConfigurableApplicationContext application = SpringApplication.run(PlatformApplication.class, args);
ycl-platform/src/main/java/com/ycl/controller/dict/DatabaseDictionaryController.java
@@ -4,14 +4,18 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ycl.api.CommonResult;
import com.ycl.controller.BaseController;
import com.ycl.dto.video.Camera;
import com.ycl.dto.video.PageResult;
import com.ycl.entity.dict.DataDictionary;
import com.ycl.enums.common.DictTypeEnum;
import com.ycl.service.dict.IDataDictionaryService;
import com.ycl.util.VideoUtil;
import com.ycl.vo.dict.DataDictionaryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -32,10 +36,18 @@
public class DatabaseDictionaryController extends BaseController {
    @Resource
    private IDataDictionaryService iDatabaseDictionaryService;
    @Autowired
    private VideoUtil videoUtil;
    @GetMapping("/listAll")
    @ApiOperation("获取所有字典")
    private CommonResult<List<DataDictionary>> listAll() {
        try {
                 PageResult<Camera> pageResult = videoUtil.callPostCameras(1, 20, "0");
            System.out.println("海康视频成功:" + pageResult.getTotal());
        } catch (Exception ex) {
            System.out.println("海康视频:" + ex.getMessage());
        }
        return CommonResult.success(iDatabaseDictionaryService.getAll());
    }
ycl-platform/src/main/java/com/ycl/timer/GetDingToken.java
@@ -88,7 +88,7 @@
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
            runAction();
//            runAction();
        }
    }
    @Scheduled(cron ="0 0/2 * * * ? ")
ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
@@ -52,11 +52,11 @@
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
         if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
             Thread thread = new Thread(this::run);
             thread.setUncaughtExceptionHandler(handler);
             thread.start();
         }
//         if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
//             Thread thread = new Thread(this::run);
//             thread.setUncaughtExceptionHandler(handler);
//             thread.start();
//         }
    }
    @Autowired
@@ -204,6 +204,6 @@
    @Override
    public void run(ApplicationArguments args) throws Exception {
         run();
//         run();
    }
}
ycl-platform/src/main/java/com/ycl/util/VideoUtil.java
@@ -137,6 +137,7 @@
    public PageResult<Camera> callPostCameras(Integer pageNo, Integer pageSize, String treeCode) throws Exception {
        System.out.println("海康视频-callPostCameras");
        ArtemisConfig config = new ArtemisConfig();
        System.out.println("海康视频-config");
        config.setHost(HOST); // ä»£ç†API网关nginx服务器ip端口
        config.setAppKey(APP_KEY);  // ç§˜é’¥appkey
        config.setAppSecret(APP_SECRET);// ç§˜é’¥appSecret
ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml
@@ -264,6 +264,7 @@
                and t1.handling_opinion like concat('%',#{queryForViolationParam.handlingOpinion},'%')
            </if>
        </where>
        order by t1.id desc
    </select>