地质所 沉降监测网建设项目
zmk
2024-05-15 9e3afc6d0fa514f986d3fea40fa23124e6fb5070
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.javaweb.quartz.task;
 
 
import com.javaweb.geotdp.service.impl.GeoDataServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * @author mzy-cxy
 */
@Component("handleExceptionTask")
public class HandleExceptionTask {
 
    @Autowired
    private GeoDataServiceImpl geoDataService;
 
 
    /**
     * 扫描异常
     */
    public void scanException(){
        System.out.println("扫描异常任务开始执行=============扫描异常任务开始执行!=========================");
        try {
            geoDataService.scanHandleException();
        } catch (Exception e) {
            System.out.println("扫描异常任务开始执行=============扫描异常任务执行失败!=========================");
            e.printStackTrace();
        }
        System.out.println("扫描异常任务开始执行=============扫描异常任务执行结束!=========================");
    }
 
 
}