管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-01-06 ee896f4e5589517a0eb6f5e0fc639ff5df036202
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
34
35
36
37
38
39
40
41
42
43
package com.lf.server.controller.data.upload;
 
import com.lf.server.annotation.SysLog;
import com.lf.server.controller.all.BaseController;
import com.lf.server.entity.all.ResponseMsg;
import com.lf.server.helper.StringHelper;
import com.lf.server.service.data.FmeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * 检查控制器
 * @author WWW
 */
public class CheckController extends BaseController {
    @Autowired
    protected FmeService fmeService;
 
    @SysLog()
    @ApiOperation(value = "查询数据有效性")
    @GetMapping(value = "/selectDataValid")
    public ResponseMsg<Object> selectDataValid(HttpServletRequest req) {
        try {
            String taskGuid = StringHelper.getGuid();
            String xmmc = "西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)";
            // 测量专业|勘察专业|地灾专业|洞库专业
            String sjzy = "测量专业";
            String filePath = "D:\\Project\\Data\\LF\\temp\\20230106135746\\数学基础检查.zip";
 
            String rs = fmeService.checkMath(taskGuid, xmmc, sjzy, filePath, req);
            if (StringHelper.isEmpty(rs)) {
                return fail("检查失败");
            }
 
            return success(rs);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
        }
    }
}