jiangping
2024-07-30 995436f56f93874f19b8094fe5537e96d413b6fd
server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java
@@ -37,21 +37,24 @@
    public static  InterfaceLogService interfaceLogService;
    public void saveInterfaceLog(Object param, String path,String result,Integer type) {
        if(interfaceLogService !=null) {
            InterfaceLog interfaceLog = new InterfaceLog();
            interfaceLog.setType(type);
            interfaceLog.setCreateDate(new Date());
            interfaceLog.setIsdeleted(Constants.ZERO);
            if (param != null) {
                interfaceLog.setRequest(JSONObject.toJSONString(param));
        try {
            if(interfaceLogService !=null) {
                InterfaceLog interfaceLog = new InterfaceLog();
                interfaceLog.setType(type);
                interfaceLog.setCreateDate(new Date());
                interfaceLog.setIsdeleted(Constants.ZERO);
                if (param != null) {
                    interfaceLog.setRequest(JSONObject.toJSONString(param));
                }
                interfaceLog.setPlat(Constants.ONE);
                interfaceLog.setRepose(result);
                interfaceLog.setName(path);
                interfaceLog.setUrl(path);
                interfaceLogService.create(interfaceLog);
            }
            interfaceLog.setPlat(Constants.ONE);
            interfaceLog.setRepose(result);
            interfaceLog.setName(path);
            interfaceLog.setUrl(path);
            interfaceLogService.create(interfaceLog);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
@@ -161,6 +164,8 @@
                    throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),response.getMessage());
                }
            }
        }catch (BusinessException e){
            throw e;
        }catch (Exception e){
            e.printStackTrace();
        }finally {