|
@@ -9,6 +9,7 @@ import com.lantone.qc.pub.model.vo.QueryVo;
|
|
import com.lantone.qc.pub.res.Response;
|
|
import com.lantone.qc.pub.res.Response;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -24,6 +25,7 @@ import java.util.Map;
|
|
* @Author : 楼辉荣
|
|
* @Author : 楼辉荣
|
|
* @Date: 2020-03-03 19:57
|
|
* @Date: 2020-03-03 19:57
|
|
*/
|
|
*/
|
|
|
|
+@Slf4j
|
|
@Api(value = "质控服务接口", tags = { "质控服务接口" })
|
|
@Api(value = "质控服务接口", tags = { "质控服务接口" })
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping(value = "analyse")
|
|
@RequestMapping(value = "analyse")
|
|
@@ -39,18 +41,26 @@ public class QCController {
|
|
try {
|
|
try {
|
|
response.setData(qCAnalysis.anlysis(queryVo));
|
|
response.setData(qCAnalysis.anlysis(queryVo));
|
|
} catch (AIException aie) {
|
|
} catch (AIException aie) {
|
|
|
|
+ log.error(aie.getMessage(),aie);
|
|
response.setRet(-1);
|
|
response.setRet(-1);
|
|
response.setMsg(aie.getMessage());
|
|
response.setMsg(aie.getMessage());
|
|
} catch (TransException trae) {
|
|
} catch (TransException trae) {
|
|
|
|
+ log.error(trae.getMessage(),trae);
|
|
response.setRet(-2);
|
|
response.setRet(-2);
|
|
response.setMsg(trae.getMessage());
|
|
response.setMsg(trae.getMessage());
|
|
} catch (CatalogueException ce) {
|
|
} catch (CatalogueException ce) {
|
|
|
|
+ log.error(ce.getMessage(),ce);
|
|
response.setRet(-3);
|
|
response.setRet(-3);
|
|
response.setMsg(ce.getMessage());
|
|
response.setMsg(ce.getMessage());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
response.setRet(-9);
|
|
response.setRet(-9);
|
|
response.setMsg("质控出错:" + e.getMessage());
|
|
response.setMsg("质控出错:" + e.getMessage());
|
|
}
|
|
}
|
|
|
|
+ if (response == null || response.getData() == null) {
|
|
|
|
+ log.error("------------------------------------远程质控接口没有返回数据!");
|
|
|
|
+ }
|
|
|
|
+
|
|
return response;
|
|
return response;
|
|
}
|
|
}
|
|
|
|
|