document/副本丽水市遂昌县智慧执法应用-资源开通表 -0228.xlsx | 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/pom.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/java/com/ycl/PlatformApplication.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/java/com/ycl/controller/dict/DatabaseDictionaryController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/java/com/ycl/timer/GetDingToken.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/java/com/ycl/util/VideoUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
document/¸±±¾ÀöË®ÊÐËì²ýÏØÖÇ»ÛÖ´·¨Ó¦ÓÃ-×ÊÔ´¿ªÍ¨±í -0228.xlsxBinary 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>--> <!-- <!–å°ä¾èµåé¤,åªç¼è¯æå æ¬é¡¹ç®–>--> <!-- <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>--> <!-- <!–æ§è¡packageæ¶èªå¨å°ä¾èµå¤å¶åºæ¥å°/lib世>--> <!-- <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>