forked from rongchao/epmet-cloud-rizhao
16 changed files with 271 additions and 88 deletions
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.commons.tools.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* desc:通用Id and Name 不要轻易修改 |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/8/19 4:12 下午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IdAndNameDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 4481647404402681862L; |
||||
|
private String id; |
||||
|
private String name; |
||||
|
|
||||
|
} |
@ -1,18 +1,18 @@ |
|||||
package com.epmet.commons.tools.feign.fallback; |
package com.epmet.commons.tools.feign.fallback; |
||||
|
|
||||
import com.epmet.commons.tools.exception.ExceptionUtils; |
import com.epmet.commons.tools.exception.ExceptionUtils; |
||||
import com.epmet.commons.tools.feign.CommonUserFeignClient; |
import com.epmet.commons.tools.feign.CommonAggFeignClient; |
||||
import feign.hystrix.FallbackFactory; |
import feign.hystrix.FallbackFactory; |
||||
import lombok.extern.slf4j.Slf4j; |
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.stereotype.Component; |
import org.springframework.stereotype.Component; |
||||
|
|
||||
@Component |
@Component |
||||
@Slf4j |
@Slf4j |
||||
public class CommonUserFeignClientFallBackFactory implements FallbackFactory<CommonUserFeignClient> { |
public class CommonAggFeignClientFallBackFactory implements FallbackFactory<CommonAggFeignClient> { |
||||
private CommonUserFeignClientFallback fallback = new CommonUserFeignClientFallback(); |
private CommonAggFeignClientFallback fallback = new CommonAggFeignClientFallback(); |
||||
|
|
||||
@Override |
@Override |
||||
public CommonUserFeignClient create(Throwable cause) { |
public CommonAggFeignClient create(Throwable cause) { |
||||
log.error(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
log.error(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
||||
return fallback; |
return fallback; |
||||
} |
} |
@ -1,54 +0,0 @@ |
|||||
/** |
|
||||
* Copyright 2018 人人开源 https://www.renren.io
|
|
||||
* <p> |
|
||||
* This program is free software: you can redistribute it and/or modify |
|
||||
* it under the terms of the GNU General Public License as published by |
|
||||
* the Free Software Foundation, either version 3 of the License, or |
|
||||
* (at your option) any later version. |
|
||||
* <p> |
|
||||
* This program is distributed in the hope that it will be useful, |
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
* GNU General Public License for more details. |
|
||||
* <p> |
|
||||
* You should have received a copy of the GNU General Public License |
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||
*/ |
|
||||
|
|
||||
package com.epmet.commons.tools.redis.common.bean; |
|
||||
|
|
||||
import lombok.Data; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* desc: 工作人员所属的组织关系 |
|
||||
* @date 2021/8/19 10:07 上午 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class StaffOrgsCache implements Serializable { |
|
||||
|
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** |
|
||||
* 所属组织的上级组织 |
|
||||
*/ |
|
||||
private IdAndName parentAgency; |
|
||||
|
|
||||
/** |
|
||||
* 所属网格列表 |
|
||||
*/ |
|
||||
private List<IdAndName> gridList; |
|
||||
|
|
||||
/** |
|
||||
* 所属部门 |
|
||||
*/ |
|
||||
private List<IdAndName> deptList; |
|
||||
|
|
||||
@Data |
|
||||
class IdAndName { |
|
||||
private String id; |
|
||||
private String name; |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,82 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.dto.govorg.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 机关单位信息表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-04-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class StaffAgencyDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织名称 |
||||
|
*/ |
||||
|
private String agencyName; |
||||
|
|
||||
|
/** |
||||
|
* 上级组织机构ID |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 所有上级组织机构ID(以英文:隔开) |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 所有上级名称,以-连接 |
||||
|
*/ |
||||
|
private String allParentName; |
||||
|
|
||||
|
private String parentAgencyName; |
||||
|
|
||||
|
/** |
||||
|
* 机关级别(社区级:community, |
||||
|
乡(镇、街道)级:street, |
||||
|
区县级: district, |
||||
|
市级: city |
||||
|
省级:province) 机关级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
||||
|
*/ |
||||
|
private String level; |
||||
|
|
||||
|
/** |
||||
|
* 地区编码 |
||||
|
*/ |
||||
|
private String areaCode; |
||||
|
|
||||
|
/** |
||||
|
* 当前组织的上级行政地区编码add0204;举例平阴县对应的是济南市3701 |
||||
|
*/ |
||||
|
private String parentAreaCode; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue