java110
2021-08-17 f98df3864f181ea9b465ecc40c9192cee9aad24e
service-front/src/main/java/com/java110/front/controller/CallComponentController.java
old mode 100644 new mode 100755
@@ -115,7 +115,7 @@
            responseEntity = new ResponseEntity<>(msg, HttpStatus.INTERNAL_SERVER_ERROR);
        } finally {
            logger.debug("api调用返回信息为{}", responseEntity);
            logger.debug(componentCode+"::"+componentCode+ "back耗时:" + (DateUtil.getCurrentDate().getTime() - startTime));
            logger.debug(componentCode + "::" + componentCode + "back耗时:" + (DateUtil.getCurrentDate().getTime() - startTime));
            if (responseEntity.getStatusCode() == HttpStatus.OK) {
                return responseEntity;
@@ -125,8 +125,8 @@
            if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) {
                return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody());
            }
            return responseEntity;
        }
        return responseEntity;
    }
    /**
@@ -144,6 +144,7 @@
            HttpServletRequest request) {
        ResponseEntity<String> responseEntity = null;
        long startTime = DateUtil.getCurrentDate().getTime();
        logger.debug(componentCode + "::" + componentMethod + "调用back开始:" + (startTime));
        try {
            Assert.hasLength(componentCode, "参数错误,未传入组件编码");
@@ -185,7 +186,7 @@
            responseEntity = new ResponseEntity<>(msg, HttpStatus.INTERNAL_SERVER_ERROR);
        } finally {
            logger.debug("组件调用返回信息为{}", responseEntity);
            logger.debug(componentCode+"::"+componentCode+ "back耗时:" + (DateUtil.getCurrentDate().getTime() - startTime));
            logger.debug(componentCode + "::" + componentMethod + "调用back耗时:" + (DateUtil.getCurrentDate().getTime() - startTime));
            if (responseEntity.getStatusCode() == HttpStatus.OK) {
                return responseEntity;
            }
@@ -194,8 +195,8 @@
            if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) {
                return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody());
            }
            return responseEntity;
        }
        return responseEntity;
    }
    //组件上传文件处理/callComponent/upload/
@@ -265,8 +266,8 @@
            if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) {
                return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody());
            }
            return responseEntity;
        }
        return responseEntity;
    }
    /**
@@ -319,8 +320,8 @@
            responseEntity = new ResponseEntity<Object>(msg, HttpStatus.INTERNAL_SERVER_ERROR);
        } finally {
            logger.debug("组件调用返回信息为{}", responseEntity);
            return responseEntity;
        }
        return responseEntity;
    }
    /**