张涛 1 yıl önce
ebeveyn
işleme
2c82c5d3e7

+ 4
- 4
src/main/java/com/example/civilizedcity/entity/SysOrg.java Dosyayı Görüntüle

@@ -52,10 +52,10 @@ public class SysOrg implements Serializable,Cloneable{
52 52
     /** 创建时间 */
53 53
     @ApiModelProperty(name = "创建时间",notes = "")
54 54
     private LocalDateTime createDate ;
55
-
56
-     /** 短信接收者 */
57
-     @ApiModelProperty(name = "短信接收者",notes = "")
58
-     private String smsPson ;
55
+//
56
+//     /** 短信接收者 */
57
+//     @ApiModelProperty(name = "短信接收者",notes = "")
58
+//     private String smsPson ;
59 59
 
60 60
 
61 61
 }

+ 1
- 1
src/main/java/com/example/civilizedcity/service/TaIssueService.java Dosyayı Görüntüle

@@ -35,5 +35,5 @@ public interface TaIssueService extends IBaseService<TaIssue> {
35 35
     TaIssue copyIssue(TaIssue origin, SysUser sysUser);
36 36
 
37 37
 
38
-    void issueWarning();
38
+//    void issueWarning();
39 39
 }

+ 37
- 37
src/main/java/com/example/civilizedcity/service/impl/TaIssueServiceImpl.java Dosyayı Görüntüle

@@ -293,43 +293,43 @@ public class TaIssueServiceImpl extends BaseServiceImpl<TaIssueMapper, TaIssue>
293 293
         return taIssue;
294 294
     }
295 295
 
296
-    @Override
297
-    public void issueWarning() {
298
-        // 1. 获取所有机构
299
-        List<SysOrg> orgList = sysOrgMapper.getAllList();
300
-
301
-
302
-        // 2. 遍历每个机构是否有未交办,逾期
303
-        for (SysOrg element : orgList) {
304
-
305
-            //已逾期
306
-            long eRubNum = baseMapper.expectRubNum(element.getOrgId());
307
-            //待交办
308
-            long aRubNum = baseMapper.AssignedRubNum(element.getOrgId());
309
-
310
-            if(eRubNum!=0){
311
-                String[] telSms = element.getSmsPson().split(",");
312
-                try {
313
-                    sMSCaptcha.send(telSms[0],"已逾期");
314
-                    sMSCaptcha.send(telSms[1],"已逾期");
315
-                } catch (Exception e) {
316
-                    e.printStackTrace();
317
-                }
318
-            }
319
-            if(aRubNum!=0){
320
-                String[] telSms = element.getSmsPson().split(",");
321
-                try {
322
-                    sMSCaptcha.send(telSms[0],"待交办");
323
-                    sMSCaptcha.send(telSms[1],"待交办");
324
-                } catch (Exception e) {
325
-                    e.printStackTrace();
326
-                }
327
-            }
328
-//                让程序停顿一秒
329
-            try{Thread.sleep(1000);}catch(Exception e){}
330
-        }
331
-
332
-    }
296
+//    @Override
297
+//    public void issueWarning() {
298
+//        // 1. 获取所有机构
299
+//        List<SysOrg> orgList = sysOrgMapper.getAllList();
300
+//
301
+//
302
+//        // 2. 遍历每个机构是否有未交办,逾期
303
+//        for (SysOrg element : orgList) {
304
+//
305
+//            //已逾期
306
+//            long eRubNum = baseMapper.expectRubNum(element.getOrgId());
307
+//            //待交办
308
+//            long aRubNum = baseMapper.AssignedRubNum(element.getOrgId());
309
+//
310
+//            if(eRubNum!=0){
311
+//                String[] telSms = element.getSmsPson().split(",");
312
+//                try {
313
+//                    sMSCaptcha.send(telSms[0],"已逾期");
314
+//                    sMSCaptcha.send(telSms[1],"已逾期");
315
+//                } catch (Exception e) {
316
+//                    e.printStackTrace();
317
+//                }
318
+//            }
319
+//            if(aRubNum!=0){
320
+//                String[] telSms = element.getSmsPson().split(",");
321
+//                try {
322
+//                    sMSCaptcha.send(telSms[0],"待交办");
323
+//                    sMSCaptcha.send(telSms[1],"待交办");
324
+//                } catch (Exception e) {
325
+//                    e.printStackTrace();
326
+//                }
327
+//            }
328
+////                让程序停顿一秒
329
+//            try{Thread.sleep(1000);}catch(Exception e){}
330
+//        }
331
+//
332
+//    }
333 333
 
334 334
     Integer getStatValueBy(Object v, Integer def) {
335 335
         if (null == v) return def;

+ 5
- 5
src/main/java/com/example/civilizedcity/task/everyDayMessage.java Dosyayı Görüntüle

@@ -16,11 +16,11 @@ public class everyDayMessage {
16 16
     TaIssueService taIssueService;
17 17
 
18 18
 //    @Async
19
-    @Scheduled(cron = "50 20 17 * * ?")
20
-    public void issueWarning() {
21
-        System.out.println("开始拉");
22
-        taIssueService.issueWarning();
23
-    }
19
+//    @Scheduled(cron = "50 20 17 * * ?")
20
+//    public void issueWarning() {
21
+//        System.out.println("开始拉");
22
+//        taIssueService.issueWarning();
23
+//    }
24 24
 
25 25
 }
26 26
 

+ 1
- 1
src/main/resources/application-dev.yml Dosyayı Görüntüle

@@ -1,7 +1,7 @@
1 1
 
2 2
 spring:
3 3
   datasource:
4
-    url: jdbc:mysql://110.40.183.156:3306/civilizedcity?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
4
+    url: jdbc:mysql://112.2.2.154:3394/civilizedcity?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
5 5
     username: civilizedcity
6 6
     password: civilizedcity@ABCD1234
7 7
     hikari:

+ 1
- 1
src/main/resources/mapper/TaIssueApplyMapper.xml Dosyayı Görüntüle

@@ -19,7 +19,7 @@
19 19
         INNER JOIN ta_issue s ON t.issue_id = s.issue_id
20 20
         WHERE
21 21
         t.`status` &gt; -1
22
-        <!--            AND s.`status` &gt; -1-->
22
+        AND s.`status` &gt; -1
23 23
         <if test="issueId != null">
24 24
             AND t.issue_id = #{issueId}
25 25
         </if>