소스 검색

bug修复

dzx 1 년 전
부모
커밋
7eb39c01bd

+ 3 - 0
src/main/java/com/xjrsoft/module/job/HikvisionBaseDataTask.java

@@ -29,6 +29,9 @@ public class HikvisionBaseDataTask {
     private HikvisionDataMapper hikvisionDataMapper;
 
     @Scheduled(cron = "0 */15 * * * ?")
+    public void execute() {
+        RefreshConnectionPool();
+    }
     public void RefreshConnectionPool() {
         String active = SpringUtil.getActiveProfile();
         if(!"prod".equals(active)){

+ 3 - 0
src/main/java/com/xjrsoft/module/job/InsertOutInRecordTask.java

@@ -21,6 +21,9 @@ public class InsertOutInRecordTask {
     OutInRecordUtil out_in_recordUtil = new OutInRecordUtil();
 
     @Scheduled(cron = "0 */30 * * * ?")
+    public void execute() {
+        RefreshConnectionPool();
+    }
     public void RefreshConnectionPool() {
         String active = SpringUtil.getActiveProfile();
         if(!"prod".equals(active)){

+ 3 - 0
src/main/java/com/xjrsoft/module/job/JianyuekbScheduleTask.java

@@ -26,6 +26,9 @@ import java.util.Set;
 @Slf4j
 public class JianyuekbScheduleTask {
     @Scheduled(cron = "0 */10 * * * ?")
+    public void execute() throws SQLException, InterruptedException {
+        RefreshConnectionPool();
+    }
     public void RefreshConnectionPool() throws SQLException, InterruptedException {
         String active = SpringUtil.getActiveProfile();
         if(!"prod".equals(active)){

+ 1 - 2
src/main/resources/mapper/student/BaseStudentDevelopmentMapper.xml

@@ -3,7 +3,6 @@
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.xjrsoft.module.student.mapper.BaseStudentDevelopmentMapper">
-    <!--姓名和性别,测试阶段采用姓名第一个字拼接user_id的方式脱敏-->
     <select id="getInfoById" resultType="com.xjrsoft.module.student.vo.BaseStudentDevelopmentVo">
         SELECT t1.id,t1.is_entrepreneurship,t1.entrepreneurial_project,t1.is_flexible_work,t1.work_content,
         t1.is_company_coop,t1.work_company,t1.company_industry,t1.company_nature,t2.name AS company_scale_cn,t1.is_matching,
@@ -16,7 +15,7 @@
         LEFT JOIN xjr_dictionary_detail t5 ON t1.ascending_arrangement = t5.code
         LEFT JOIN xjr_dictionary_detail t6 ON t1.unemployed_type = t6.code
         WHERE t1.delete_mark = 0
-        AND t1.base_student_graduate_id = #{id}
+        AND t1.id = #{id}
     </select>
 
 </mapper>