forked from gzzfw/backEnd/gz-dyh

liyj
2024-10-28 1ac0d92fc65b6e1524b172af4adffbf8974e467b
dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/UtilsClientImpl.java
@@ -114,4 +114,25 @@
        }
    }
    /**
     * 公共工具-sys服务id工具-获取时间Id,后四位常量
     * @url {ctx}/api/client/sysUtils/getNewTimeId
     * @return ReturnBO
     */
    public String getNewTimeSysId(){
        try{
            ReturnBO returnBo = utilsClient.getNewTimeSysId();
            if (ReturnConsts.OK == returnBo.getCode()){
                String id = (String) returnBo.getData();
                return id;
            }else{
                log.error("Client外服务接口[UtilsClientImpl.getNewTimeSysId]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
                throw new ClientException("UtilsClientImpl.getNewTimeSysId", returnBo.getMsg());
            }
        }catch (Exception e){
            log.error("service方法[UtilsClientImpl.getNewTimeSysId]请求成功,处理异常:"+e, e);
            throw new ServiceException("UtilsClientImpl.getNewTimeSysId", e);
        }
    }
}