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 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); } } }