diff --git a/epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/GuardarDatosTask.java b/epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/GuardarDatosTask.java index 4a1376a5fd..a4a2bf1028 100644 --- a/epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/GuardarDatosTask.java +++ b/epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/GuardarDatosTask.java @@ -11,7 +11,7 @@ import org.springframework.stereotype.Component; import javax.annotation.Resource; /** - * 获取流动人口的数据存入ca_开头的表 + * 获取ruoyi系统数据存入表内 * * @param * @author LZN diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/constant/CaWghDataConstant.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/constant/CaWghDataConstant.java index 624c9ac5b4..208790880a 100644 --- a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/constant/CaWghDataConstant.java +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/constant/CaWghDataConstant.java @@ -11,16 +11,20 @@ public interface CaWghDataConstant { String AESKEY = "hriajrutnbghajsd"; String TABLESCHEMA_UNICOM = "unicom"; - - String UNICOM_PINGFANG = "ca_pingfang"; + String TABLESCHEMA_SHARE = "share"; + String UNICOM_PINGFANG = "ca_pingfang"; String UNICOM_LOUDONG = "ca_loudong"; String UNICOM_RESIDENT = "ca_resident"; String UNICOM_ROTATORS = "ca_rotators"; String UNICOM_RENTAL = "ca_rental"; + String SHARE_BASE_GRID = "BaseGrid"; + String DATA_URL_UNICON = "http://120.221.72.83:9090/bridge/unicom/page"; + String DATA_URL_SHARE = "http://120.221.72.83:9090/bridge/share/sharePage"; String UNICOM_CONDITION = "unicomCondition"; + String SHARE_CONDITION = "shareCondition"; } diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BasegridDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BasegridDTO.java new file mode 100644 index 0000000000..1cc3585aa1 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BasegridDTO.java @@ -0,0 +1,64 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class BasegridDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String 坐标信息; + + /** + * + */ + private String 网格名称; + + /** + * + */ + private String 所属街道办; + + /** + * + */ + private String 所属社区; + + /** + * + */ + private String 街道编码; + + /** + * + */ + private String 网格编码; + + /** + * + */ + private String 社区编码; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BmGridDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BmGridDTO.java new file mode 100644 index 0000000000..4c5c9869b4 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/BmGridDTO.java @@ -0,0 +1,206 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class BmGridDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 网格ID + */ + private Long gridId; + + /** + * 网格编码。人工填写,编码规则业务规定,不允许重复。 + */ + private String gridCode; + + /** + * 网格名称 + */ + private String gridName; + + /** + * 行政区划的国标编码 + */ + private String gbCode; + + /** + * 上级网格ID + */ + private Long parentId; + + /** + * 上级网格编码 + */ + private String parentCode; + + /** + * 网格分类。1基础网格 2环保网格 3防火网格 4城管网格 5执法网格 6安监网格等 + */ + private String gridClassification; + + /** + * 网格层级。网格层级表的层级 +根据【网格层级表】的层级关系动态展示。 +查询【网格层级表】层级 条件:上层级=网格树返回的网格层级 + */ + private String gridLevel; + + /** + * 网格属性。01村庄、02小区、03企业、04学校(幼儿园)、05医院、06驻镇(街)单位、07其他 + */ + private String gridProperty; + + /** + * 是否最后一级:0否 1是 + */ + private String isEnd; + + /** + * 网格地址 + */ + private String gridAddress; + + /** + * 网格介绍 + */ + private String gridIntroduce; + + /** + * 宣传图片 + */ + private String gridPicture; + + /** + * 地图区域范围 + */ + private String reginScopeDesc; + + /** + * 展示顺序 + */ + private Integer gridSort; + + /** + * 标绘状态 + */ + private String pointStatus; + + /** + * 事件上报中心 + */ + private Long gridEmCenter; + + /** + * 初始日期 + */ + private Date gridBeginTime; + + /** + * 终止日期 + */ + private Date gridEndTime; + + /** + * 面积 + */ + private String gridArea; + + /** + * 是否有效 + */ + private String isValid; + + /** + * 创建人 + */ + private Long createBy; + + /** + * 创建时间 + */ + private Date createDate; + + /** + * + */ + private Long updateBy; + + /** + * + */ + private Date updateDate; + + /** + * 删除状态: 字典值:normal正常,删除deleted + */ + private String deleteFlag; + + /** + * 乐观锁 + */ + private Integer versions; + + /** + * 网格内人口规模 + */ + private String attribute1; + + /** + * 是否成立网格党支部或网格党小组 + */ + private String attribute2; + + /** + * 网格党组织类型 + */ + private String attribute3; + + /** + * 党组织编码 + */ + private String attribute4; + + /** + * 扩展字段 + */ + private String attribute5; + + /** + * 扩展字段 + */ + private Long attribute6; + + /** + * 扩展字段 + */ + private Long attribute7; + + /** + * 扩展字段 + */ + private Long attribute8; + + /** + * 扩展字段 + */ + private Date attribute9; + + /** + * 扩展字段 + */ + private Date attribute10; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/CommunityDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/CommunityDTO.java new file mode 100644 index 0000000000..b3314d2ef3 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/CommunityDTO.java @@ -0,0 +1,54 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class CommunityDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String 坐标信息; + + /** + * + */ + private String 街道名称; + + /** + * + */ + private String 街道编码; + + /** + * + */ + private String 社区名称; + + /** + * + */ + private String 社区编码; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/SubdistrictOfficeDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/SubdistrictOfficeDTO.java new file mode 100644 index 0000000000..e3b7793ec9 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/SubdistrictOfficeDTO.java @@ -0,0 +1,44 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class SubdistrictOfficeDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String 坐标信息; + + /** + * + */ + private String 街道名称; + + /** + * + */ + private String 街道代码; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghDywgDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghDywgDTO.java new file mode 100644 index 0000000000..b3dbfaad42 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghDywgDTO.java @@ -0,0 +1,74 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghDywgDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 网格名称 + */ + private String bgname; + + /** + * 所属街镇 + */ + private String street; + + /** + * 所属社区 + */ + private String community; + + /** + * 网格面积 + */ + private Double bgsqua; + + /** + * 初始时间 + */ + private Date ordate; + + /** + * 变更时间 + */ + private Date chdate; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String contacts; + + /** + * 联系电话 + */ + private String telphone; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJdbDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJdbDTO.java new file mode 100644 index 0000000000..ec29eb022f --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJdbDTO.java @@ -0,0 +1,54 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJdbDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String objectid1; + + /** + * + */ + private String objectid; + + /** + * 街道名称 + */ + private String mc; + + /** + * 责任人 + */ + private String 责任人; + + /** + * 联系电话 + */ + private String 联系电话; + + /** + * + */ + private Double shapeLeng; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJqzDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJqzDTO.java new file mode 100644 index 0000000000..c635e57281 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJqzDTO.java @@ -0,0 +1,124 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJqzDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 等级 + */ + private String 等级; + + /** + * 性质 + */ + private String 性质; + + /** + * 备注 + */ + private String 备注; + + /** + * + */ + private String dwmcjc; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 数量 + */ + private String amount; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJxcsDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJxcsDTO.java new file mode 100644 index 0000000000..2c2b4e0584 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJxcsDTO.java @@ -0,0 +1,119 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJxcsDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String objectid; + + /** + * + */ + private String jsonInfo; + + /** + * + */ + private String creatTime; + + /** + * 所属街道 + */ + private String ssjd; + + /** + * 所属社区 + */ + private String sssq; + + /** + * 道路名 + */ + private String dlm; + + /** + * 门牌号 + */ + private String mph; + + /** + * 名称 + */ + private String name; + + /** + * + */ + private String ztlx; + + /** + * 子类型 + */ + private String type; + + /** + * 统一社会信用代码 + */ + private String xydm; + + /** + * 联系人 + */ + private String lxr; + + /** + * 联系电话 + */ + private String lxdh; + + /** + * + */ + private String userName; + + /** + * 备注 + */ + private String bz; + + /** + * + */ + private String available; + + /** + * + */ + private String id; + + /** + * 编辑人ID + */ + private String userId; + + /** + * 编辑人姓名 + */ + private String updateTim; + + /** + * 插入日期 + */ + private String insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJyzDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJyzDTO.java new file mode 100644 index 0000000000..605d5685dd --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghJyzDTO.java @@ -0,0 +1,124 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJyzDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 等级 + */ + private String 等级; + + /** + * 性质 + */ + private String 性质; + + /** + * 备注 + */ + private String 备注; + + /** + * + */ + private String dwmcjc; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 数量 + */ + private String amount; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSjxxbDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSjxxbDTO.java new file mode 100644 index 0000000000..3ae1d2aa4e --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSjxxbDTO.java @@ -0,0 +1,94 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSjxxbDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid1; + + /** + * + */ + private Double objectid; + + /** + * 事件来源 + */ + private String infosourcename; + + /** + * 事件类别 + */ + private String infotypename; + + /** + * 社区名称 + */ + private String communityname; + + /** + * 事件描述 + */ + private String description; + + /** + * + */ + private String taskid; + + /** + * + */ + private String casesn; + + /** + * 事件地址 + */ + private String address; + + /** + * 事件状态 + */ + private String statusname; + + /** + * + */ + private String infobcname; + + /** + * + */ + private String infoscname; + + /** + * 街道名称 + */ + private String streetname; + + /** + * + */ + private Date discovertime; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSqxxDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSqxxDTO.java new file mode 100644 index 0000000000..3e08eccd72 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSqxxDTO.java @@ -0,0 +1,139 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSqxxDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * + */ + private Double commuarea; + + /** + * + */ + private String belongto; + + /** + * + */ + private String contacts; + + /** + * + */ + private String telphone; + + /** + * + */ + private Double 网格数量; + + /** + * + */ + private String 街道编码; + + /** + * + */ + private String 社区编码; + + /** + * + */ + private String commname; + + /** + * + */ + private String jdcjgb; + + /** + * + */ + private String wgz; + + /** + * + */ + private String 交警姓名; + + /** + * + */ + private Double 交警电话; + + /** + * + */ + private String 交警单位; + + /** + * + */ + private String 民警姓名; + + /** + * + */ + private String 民警电话; + + /** + * + */ + private String 派出所; + + /** + * + */ + private String wgy; + + /** + * + */ + private String jdlxks; + + /** + * + */ + private String ddy; + + /** + * + */ + private String zhzfxm; + + /** + * + */ + private String zhzfdh; + + /** + * + */ + private String zhzfbm; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzcgwghDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzcgwghDTO.java new file mode 100644 index 0000000000..54de99914c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzcgwghDTO.java @@ -0,0 +1,49 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSzcgwghDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String sssq; + + /** + * + */ + private String ssjd; + + /** + * + */ + private String id; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzzrwgDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzzrwgDTO.java new file mode 100644 index 0000000000..e83e9eae4a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghSzzrwgDTO.java @@ -0,0 +1,49 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSzzrwgDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 备注 + */ + private String note; + + /** + * 责任单位 + */ + private String name; + + /** + * 监管人 + */ + private String principal; + + /** + * 联系方式 + */ + private String phone; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghWhpdwDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghWhpdwDTO.java new file mode 100644 index 0000000000..40c4c8b154 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghWhpdwDTO.java @@ -0,0 +1,134 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghWhpdwDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 安全负责人 + */ + private String person; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 数量 + */ + private String amount; + + /** + * 等级 + */ + private String grade; + + /** + * 性质 + */ + private String natrue; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String dwmcjc; + + /** + * 主要负责人 + */ + private String principal; + + /** + * 用途 + */ + private String user; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYjbmcsDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYjbmcsDTO.java new file mode 100644 index 0000000000..b217584fa9 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYjbmcsDTO.java @@ -0,0 +1,84 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghYjbmcsDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * + */ + private String grade; + + /** + * 地址 + */ + private String adress; + + /** + * 面积(㎡) + */ + private String area; + + /** + * 容纳人数 + */ + private String rnns; + + /** + * + */ + private String sfbsp; + + /** + * + */ + private String zysbcs; + + /** + * + */ + private String fzr; + + /** + * + */ + private String zgdw; + + /** + * + */ + private String name; + + /** + * + */ + private String fzrtel; + + /** + * + */ + private String ssjd; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYqhjzDTO.java b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYqhjzDTO.java new file mode 100644 index 0000000000..d070697218 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/wgh/WghYqhjzDTO.java @@ -0,0 +1,124 @@ +package com.epmet.opendata.dto.wgh; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghYqhjzDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 数量 + */ + private String amount; + + /** + * 等级 + */ + private String grade; + + /** + * 性质 + */ + private String natrue; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 备注 + */ + private String note; + + /** + * 简称 + */ + private String dwmcjc; + + /** + * 所在图层 + */ + private String layer; + + /** + * 所属街道办 + */ + private String ssjdb; + + /** + * 存在问题 + */ + private String problem; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BasegridController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BasegridController.java new file mode 100644 index 0000000000..f9acf3489a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BasegridController.java @@ -0,0 +1,96 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BasegridDTO; +import com.epmet.opendata.excel.BasegridExcel; +import com.epmet.opendata.service.BasegridService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("basegrid") +public class BasegridController { + + @Autowired + private BasegridService basegridService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = basegridService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + BasegridDTO data = basegridService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody BasegridDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + basegridService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody BasegridDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + basegridService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + basegridService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = basegridService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, BasegridExcel.class); + } + + /** + * 调用ruoyi存储基础网格的数据 + * + * @param dto + * @return com.epmet.commons.tools.utils.Result + * @author LZN + * @date 2022/6/14 13:40 + */ + @PostMapping("preserBaseGridVation") + public Result getPreserLouDongVation(@RequestBody PreserVationFormDTO dto) { + basegridService.preserBaseGridVation(dto); + return new Result(); + } + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BmGridController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BmGridController.java new file mode 100644 index 0000000000..c89a16bce1 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BmGridController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BmGridDTO; +import com.epmet.opendata.excel.BmGridExcel; +import com.epmet.opendata.service.BmGridService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("bmGrid") +public class BmGridController { + + @Autowired + private BmGridService bmGridService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = bmGridService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + BmGridDTO data = bmGridService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody BmGridDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + bmGridService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody BmGridDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + bmGridService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + bmGridService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = bmGridService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, BmGridExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/CommunityController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/CommunityController.java new file mode 100644 index 0000000000..8e7b7f9528 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/CommunityController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; + +import com.epmet.opendata.dto.wgh.CommunityDTO; +import com.epmet.opendata.excel.CommunityExcel; +import com.epmet.opendata.service.CommunityService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("community") +public class CommunityController { + + @Autowired + private CommunityService communityService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = communityService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + CommunityDTO data = communityService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody CommunityDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + communityService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody CommunityDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + communityService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + communityService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = communityService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, CommunityExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/SubdistrictOfficeController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/SubdistrictOfficeController.java new file mode 100644 index 0000000000..52b881b741 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/SubdistrictOfficeController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; + +import com.epmet.opendata.dto.wgh.SubdistrictOfficeDTO; +import com.epmet.opendata.excel.SubdistrictOfficeExcel; +import com.epmet.opendata.service.SubdistrictOfficeService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("subdistrictOffice") +public class SubdistrictOfficeController { + + @Autowired + private SubdistrictOfficeService subdistrictOfficeService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = subdistrictOfficeService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + SubdistrictOfficeDTO data = subdistrictOfficeService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody SubdistrictOfficeDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + subdistrictOfficeService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody SubdistrictOfficeDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + subdistrictOfficeService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + subdistrictOfficeService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = subdistrictOfficeService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, SubdistrictOfficeExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghDywgController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghDywgController.java new file mode 100644 index 0000000000..d7e2123e75 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghDywgController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; + +import com.epmet.opendata.dto.wgh.WghDywgDTO; +import com.epmet.opendata.excel.WghDywgExcel; +import com.epmet.opendata.service.WghDywgService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghDywg") +public class WghDywgController { + + @Autowired + private WghDywgService wghDywgService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghDywgService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghDywgDTO data = wghDywgService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghDywgDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghDywgService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghDywgDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghDywgService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghDywgService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghDywgService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghDywgExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJdbController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJdbController.java new file mode 100644 index 0000000000..9ccb44429d --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJdbController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; + +import com.epmet.opendata.dto.wgh.WghJdbDTO; +import com.epmet.opendata.excel.WghJdbExcel; +import com.epmet.opendata.service.WghJdbService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghJdb") +public class WghJdbController { + + @Autowired + private WghJdbService wghJdbService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghJdbService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghJdbDTO data = wghJdbService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghJdbDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghJdbService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghJdbDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghJdbService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghJdbService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghJdbService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghJdbExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJqzController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJqzController.java new file mode 100644 index 0000000000..57b51603ce --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJqzController.java @@ -0,0 +1,83 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; + +import com.epmet.opendata.dto.wgh.WghJqzDTO; +import com.epmet.opendata.excel.WghJqzExcel; +import com.epmet.opendata.service.WghJqzService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghJqz") +public class WghJqzController { + + @Autowired + private WghJqzService wghJqzService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghJqzService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghJqzDTO data = wghJqzService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghJqzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghJqzService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghJqzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghJqzService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghJqzService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghJqzService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghJqzExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJxcsController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJxcsController.java new file mode 100644 index 0000000000..0f2d225327 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJxcsController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghJxcsDTO; +import com.epmet.opendata.excel.WghJxcsExcel; +import com.epmet.opendata.service.WghJxcsService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghJxcs") +public class WghJxcsController { + + @Autowired + private WghJxcsService wghJxcsService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghJxcsService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghJxcsDTO data = wghJxcsService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghJxcsDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghJxcsService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghJxcsDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghJxcsService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghJxcsService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghJxcsService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghJxcsExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJyzController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJyzController.java new file mode 100644 index 0000000000..38b74659e0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghJyzController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghJyzDTO; +import com.epmet.opendata.excel.WghJyzExcel; +import com.epmet.opendata.service.WghJyzService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghJyz") +public class WghJyzController { + + @Autowired + private WghJyzService wghJyzService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghJyzService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghJyzDTO data = wghJyzService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghJyzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghJyzService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghJyzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghJyzService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghJyzService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghJyzService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghJyzExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSjxxbController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSjxxbController.java new file mode 100644 index 0000000000..512d3f19d4 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSjxxbController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghSjxxbDTO; +import com.epmet.opendata.excel.WghSjxxbExcel; +import com.epmet.opendata.service.WghSjxxbService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghSjxxb") +public class WghSjxxbController { + + @Autowired + private WghSjxxbService wghSjxxbService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghSjxxbService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghSjxxbDTO data = wghSjxxbService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghSjxxbDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghSjxxbService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghSjxxbDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghSjxxbService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghSjxxbService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghSjxxbService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghSjxxbExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSqxxController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSqxxController.java new file mode 100644 index 0000000000..8e5b513d15 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSqxxController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghSqxxDTO; +import com.epmet.opendata.excel.WghSqxxExcel; +import com.epmet.opendata.service.WghSqxxService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghSqxx") +public class WghSqxxController { + + @Autowired + private WghSqxxService wghSqxxService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghSqxxService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghSqxxDTO data = wghSqxxService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghSqxxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghSqxxService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghSqxxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghSqxxService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghSqxxService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghSqxxService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghSqxxExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzcgwghController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzcgwghController.java new file mode 100644 index 0000000000..809db1330d --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzcgwghController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghSzcgwghDTO; +import com.epmet.opendata.excel.WghSzcgwghExcel; +import com.epmet.opendata.service.WghSzcgwghService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghSzcgwgh") +public class WghSzcgwghController { + + @Autowired + private WghSzcgwghService wghSzcgwghService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghSzcgwghService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghSzcgwghDTO data = wghSzcgwghService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghSzcgwghDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghSzcgwghService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghSzcgwghDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghSzcgwghService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghSzcgwghService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghSzcgwghService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghSzcgwghExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzzrwgController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzzrwgController.java new file mode 100644 index 0000000000..aa3142f80d --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSzzrwgController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghSzzrwgDTO; +import com.epmet.opendata.excel.WghSzzrwgExcel; +import com.epmet.opendata.service.WghSzzrwgService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghSzzrwg") +public class WghSzzrwgController { + + @Autowired + private WghSzzrwgService wghSzzrwgService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghSzzrwgService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghSzzrwgDTO data = wghSzzrwgService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghSzzrwgDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghSzzrwgService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghSzzrwgDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghSzzrwgService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghSzzrwgService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghSzzrwgService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghSzzrwgExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghWhpdwController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghWhpdwController.java new file mode 100644 index 0000000000..2a7a81f156 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghWhpdwController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.opendata.dto.wgh.WghWhpdwDTO; +import com.epmet.opendata.excel.WghWhpdwExcel; +import com.epmet.opendata.service.WghWhpdwService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghWhpdw") +public class WghWhpdwController { + + @Autowired + private WghWhpdwService wghWhpdwService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghWhpdwService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghWhpdwDTO data = wghWhpdwService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghWhpdwDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghWhpdwService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghWhpdwDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghWhpdwService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghWhpdwService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghWhpdwService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghWhpdwExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYjbmcsController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYjbmcsController.java new file mode 100644 index 0000000000..a76832bba8 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYjbmcsController.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.dto.wgh.WghYjbmcsDTO; +import com.epmet.opendata.excel.WghYjbmcsExcel; +import com.epmet.opendata.service.WghYjbmcsService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghYjbmcs") +public class WghYjbmcsController { + + @Autowired + private WghYjbmcsService wghYjbmcsService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghYjbmcsService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghYjbmcsDTO data = wghYjbmcsService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghYjbmcsDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghYjbmcsService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghYjbmcsDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghYjbmcsService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghYjbmcsService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghYjbmcsService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghYjbmcsExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYqhjzController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYqhjzController.java new file mode 100644 index 0000000000..9b91f4bc11 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghYqhjzController.java @@ -0,0 +1,81 @@ +package com.epmet.opendata.controller; + +import com.epmet.commons.tools.aop.NoRepeatSubmit; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ExcelUtils; +import com.epmet.commons.tools.utils.Result; +import com.epmet.commons.tools.validator.AssertUtils; +import com.epmet.commons.tools.validator.ValidatorUtils; +import com.epmet.commons.tools.validator.group.AddGroup; +import com.epmet.commons.tools.validator.group.DefaultGroup; +import com.epmet.commons.tools.validator.group.UpdateGroup; +import com.epmet.opendata.service.WghYqhjzService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.epmet.opendata.dto.wgh.WghYqhjzDTO; +import javax.servlet.http.HttpServletResponse; +import com.epmet.opendata.excel.WghYqhjzExcel; +import java.util.List; +import java.util.Map; + + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@RestController +@RequestMapping("wghYqhjz") +public class WghYqhjzController { + + @Autowired + private WghYqhjzService wghYqhjzService; + + @RequestMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = wghYqhjzService.page(params); + return new Result>().ok(page); + } + + @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) + public Result get(@PathVariable("id") String id){ + WghYqhjzDTO data = wghYqhjzService.get(id); + return new Result().ok(data); + } + + @NoRepeatSubmit + @PostMapping("save") + public Result save(@RequestBody WghYqhjzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + wghYqhjzService.save(dto); + return new Result(); + } + + @NoRepeatSubmit + @PostMapping("update") + public Result update(@RequestBody WghYqhjzDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + wghYqhjzService.update(dto); + return new Result(); + } + + @PostMapping("delete") + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + wghYqhjzService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = wghYqhjzService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, WghYqhjzExcel.class); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BasegridDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BasegridDao.java new file mode 100644 index 0000000000..8cdc58af1c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BasegridDao.java @@ -0,0 +1,18 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.BasegridEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface BasegridDao extends BaseDao { + + int deleteAll(); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BmGridDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BmGridDao.java new file mode 100644 index 0000000000..257761fae9 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BmGridDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.BmGridEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface BmGridDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/CommunityDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/CommunityDao.java new file mode 100644 index 0000000000..9dd874ef17 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/CommunityDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.CommunityEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface CommunityDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/SubdistrictOfficeDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/SubdistrictOfficeDao.java new file mode 100644 index 0000000000..2300a96e5c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/SubdistrictOfficeDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.SubdistrictOfficeEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface SubdistrictOfficeDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghDywgDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghDywgDao.java new file mode 100644 index 0000000000..488784b3d2 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghDywgDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.WghDywgEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghDywgDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJdbDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJdbDao.java new file mode 100644 index 0000000000..51aa3e73c0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJdbDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.WghJdbEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghJdbDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJqzDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJqzDao.java new file mode 100644 index 0000000000..4e38c5a9e1 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJqzDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghJqzEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghJqzDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJxcsDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJxcsDao.java new file mode 100644 index 0000000000..cca15fbf4d --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJxcsDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghJxcsEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghJxcsDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJyzDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJyzDao.java new file mode 100644 index 0000000000..8e1234f7c6 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghJyzDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghJyzEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghJyzDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSjxxbDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSjxxbDao.java new file mode 100644 index 0000000000..8734113bd2 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSjxxbDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghSjxxbEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghSjxxbDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSqxxDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSqxxDao.java new file mode 100644 index 0000000000..53b16dfb73 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSqxxDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.WghSqxxEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghSqxxDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzcgwghDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzcgwghDao.java new file mode 100644 index 0000000000..900503ff51 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzcgwghDao.java @@ -0,0 +1,17 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; + +import com.epmet.opendata.entity.WghSzcgwghEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghSzcgwghDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzzrwgDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzzrwgDao.java new file mode 100644 index 0000000000..b1fe06ac53 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSzzrwgDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghSzzrwgEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghSzzrwgDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghWhpdwDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghWhpdwDao.java new file mode 100644 index 0000000000..98ab1ed32c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghWhpdwDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghWhpdwEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghWhpdwDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYjbmcsDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYjbmcsDao.java new file mode 100644 index 0000000000..effb876078 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYjbmcsDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghYjbmcsEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghYjbmcsDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYqhjzDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYqhjzDao.java new file mode 100644 index 0000000000..661c60f9a4 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghYqhjzDao.java @@ -0,0 +1,16 @@ +package com.epmet.opendata.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.opendata.entity.WghYqhjzEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Mapper +public interface WghYqhjzDao extends BaseDao { + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BasegridEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BasegridEntity.java new file mode 100644 index 0000000000..3f97751b94 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BasegridEntity.java @@ -0,0 +1,69 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("basegrid") +public class BasegridEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String coordinateInfo; + + /** + * + */ + private String gridName; + + /** + * + */ + private String subDistrictOffice; + + /** + * + */ + private String community; + + /** + * + */ + private String streetCode; + + /** + * + */ + private String gridCode; + + /** + * + */ + private String communityCode; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BmGridEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BmGridEntity.java new file mode 100644 index 0000000000..0df07d3dc4 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BmGridEntity.java @@ -0,0 +1,211 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("bm_grid") +public class BmGridEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * 网格ID + */ + private Long gridId; + + /** + * 网格编码。人工填写,编码规则业务规定,不允许重复。 + */ + private String gridCode; + + /** + * 网格名称 + */ + private String gridName; + + /** + * 行政区划的国标编码 + */ + private String gbCode; + + /** + * 上级网格ID + */ + private Long parentId; + + /** + * 上级网格编码 + */ + private String parentCode; + + /** + * 网格分类。1基础网格 2环保网格 3防火网格 4城管网格 5执法网格 6安监网格等 + */ + private String gridClassification; + + /** + * 网格层级。网格层级表的层级 +根据【网格层级表】的层级关系动态展示。 +查询【网格层级表】层级 条件:上层级=网格树返回的网格层级 + */ + private String gridLevel; + + /** + * 网格属性。01村庄、02小区、03企业、04学校(幼儿园)、05医院、06驻镇(街)单位、07其他 + */ + private String gridProperty; + + /** + * 是否最后一级:0否 1是 + */ + private String isEnd; + + /** + * 网格地址 + */ + private String gridAddress; + + /** + * 网格介绍 + */ + private String gridIntroduce; + + /** + * 宣传图片 + */ + private String gridPicture; + + /** + * 地图区域范围 + */ + private String reginScopeDesc; + + /** + * 展示顺序 + */ + private Integer gridSort; + + /** + * 标绘状态 + */ + private String pointStatus; + + /** + * 事件上报中心 + */ + private Long gridEmCenter; + + /** + * 初始日期 + */ + private Date gridBeginTime; + + /** + * 终止日期 + */ + private Date gridEndTime; + + /** + * 面积 + */ + private String gridArea; + + /** + * 是否有效 + */ + private String isValid; + + /** + * 创建人 + */ + private Long createBy; + + /** + * 创建时间 + */ + private Date createDate; + + /** + * + */ + private Long updateBy; + + /** + * + */ + private Date updateDate; + + /** + * 删除状态: 字典值:normal正常,删除deleted + */ + private String deleteFlag; + + /** + * 乐观锁 + */ + private Integer versions; + + /** + * 网格内人口规模 + */ + private String attribute1; + + /** + * 是否成立网格党支部或网格党小组 + */ + private String attribute2; + + /** + * 网格党组织类型 + */ + private String attribute3; + + /** + * 党组织编码 + */ + private String attribute4; + + /** + * 扩展字段 + */ + private String attribute5; + + /** + * 扩展字段 + */ + private Long attribute6; + + /** + * 扩展字段 + */ + private Long attribute7; + + /** + * 扩展字段 + */ + private Long attribute8; + + /** + * 扩展字段 + */ + private Date attribute9; + + /** + * 扩展字段 + */ + private Date attribute10; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/CommunityEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/CommunityEntity.java new file mode 100644 index 0000000000..aba2fa7d1b --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/CommunityEntity.java @@ -0,0 +1,59 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("community") +public class CommunityEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String coordinateInfo; + + /** + * + */ + private String streetName; + + /** + * + */ + private String streetCode; + + /** + * + */ + private String communityName; + + /** + * + */ + private String communityCode; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/SubdistrictOfficeEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/SubdistrictOfficeEntity.java new file mode 100644 index 0000000000..bd3e3aaa6a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/SubdistrictOfficeEntity.java @@ -0,0 +1,49 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("subdistrict_office") +public class SubdistrictOfficeEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String coordinateInfo; + + /** + * + */ + private String streetName; + + /** + * + */ + private String streetCode; + + /** + * + */ + private String longitude; + + /** + * + */ + private String latitude; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghDywgEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghDywgEntity.java new file mode 100644 index 0000000000..c223b3edd0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghDywgEntity.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_dywg") +public class WghDywgEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 网格名称 + */ + private String bgname; + + /** + * 所属街镇 + */ + private String street; + + /** + * 所属社区 + */ + private String community; + + /** + * 网格面积 + */ + private Double bgsqua; + + /** + * 初始时间 + */ + private Date ordate; + + /** + * 变更时间 + */ + private Date chdate; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String contacts; + + /** + * 联系电话 + */ + private String telphone; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJdbEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJdbEntity.java new file mode 100644 index 0000000000..26f9ca493c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJdbEntity.java @@ -0,0 +1,59 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_jdb") +public class WghJdbEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String objectid1; + + /** + * + */ + private String objectid; + + /** + * 街道名称 + */ + private String mc; + + /** + * 责任人 + */ + private String personInCharge; + + /** + * 联系电话 + */ + private String phone; + + /** + * + */ + private Double shapeLeng; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJqzEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJqzEntity.java new file mode 100644 index 0000000000..767ccacabe --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJqzEntity.java @@ -0,0 +1,129 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_jqz") +public class WghJqzEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 等级 + */ + private String level; + + /** + * 性质 + */ + private String nature; + + /** + * 备注 + */ + private String remarks; + + /** + * + */ + private String dwmcjc; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 数量 + */ + private String amount; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJxcsEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJxcsEntity.java new file mode 100644 index 0000000000..c2ae105195 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJxcsEntity.java @@ -0,0 +1,119 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_jxcs") +public class WghJxcsEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private String objectid; + + /** + * + */ + private String jsonInfo; + + /** + * + */ + private String creatTime; + + /** + * 所属街道 + */ + private String ssjd; + + /** + * 所属社区 + */ + private String sssq; + + /** + * 道路名 + */ + private String dlm; + + /** + * 门牌号 + */ + private String mph; + + /** + * 名称 + */ + private String name; + + /** + * + */ + private String ztlx; + + /** + * 子类型 + */ + private String type; + + /** + * 统一社会信用代码 + */ + private String xydm; + + /** + * 联系人 + */ + private String lxr; + + /** + * 联系电话 + */ + private String lxdh; + + /** + * + */ + private String userName; + + /** + * 备注 + */ + private String bz; + + /** + * + */ + private String available; + + /** + * 编辑人ID + */ + private String userId; + + /** + * 编辑人姓名 + */ + private String updateTim; + + /** + * 插入日期 + */ + private String insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJyzEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJyzEntity.java new file mode 100644 index 0000000000..7f14adb663 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghJyzEntity.java @@ -0,0 +1,129 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_jyz") +public class WghJyzEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 等级 + */ + private String level; + + /** + * 性质 + */ + private String nature; + + /** + * 备注 + */ + private String remarks; + + /** + * + */ + private String dwmcjc; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 数量 + */ + private String amount; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSjxxbEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSjxxbEntity.java new file mode 100644 index 0000000000..586a8a75db --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSjxxbEntity.java @@ -0,0 +1,99 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_sjxxb") +public class WghSjxxbEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid1; + + /** + * + */ + private Double objectid; + + /** + * 事件来源 + */ + private String infosourcename; + + /** + * 事件类别 + */ + private String infotypename; + + /** + * 社区名称 + */ + private String communityname; + + /** + * 事件描述 + */ + private String description; + + /** + * + */ + private String taskid; + + /** + * + */ + private String casesn; + + /** + * 事件地址 + */ + private String address; + + /** + * 事件状态 + */ + private String statusname; + + /** + * + */ + private String infobcname; + + /** + * + */ + private String infoscname; + + /** + * 街道名称 + */ + private String streetname; + + /** + * + */ + private Date discovertime; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSqxxEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSqxxEntity.java new file mode 100644 index 0000000000..d1121e17d7 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSqxxEntity.java @@ -0,0 +1,144 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_sqxx") +public class WghSqxxEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * + */ + private Double commuarea; + + /** + * + */ + private String belongto; + + /** + * + */ + private String contacts; + + /** + * + */ + private String telphone; + + /** + * + */ + private Double numberOfGrid; + + /** + * + */ + private String streetCode; + + /** + * + */ + private String communityCode; + + /** + * + */ + private String commname; + + /** + * + */ + private String jdcjgb; + + /** + * + */ + private String wgz; + + /** + * + */ + private String policeName; + + /** + * + */ + private Double trafficPolicePhone; + + /** + * + */ + private String trafficPoliceCompany; + + /** + * + */ + private String peoPoliceName; + + /** + * + */ + private String peoPolicePhone; + + /** + * + */ + private String policeStation; + + /** + * + */ + private String wgy; + + /** + * + */ + private String jdlxks; + + /** + * + */ + private String ddy; + + /** + * + */ + private String zhzfxm; + + /** + * + */ + private String zhzfdh; + + /** + * + */ + private String zhzfbm; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzcgwghEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzcgwghEntity.java new file mode 100644 index 0000000000..ae5b53f708 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzcgwghEntity.java @@ -0,0 +1,49 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_szcgwgh") +public class WghSzcgwghEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String sssq; + + /** + * + */ + private String ssjd; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzzrwgEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzzrwgEntity.java new file mode 100644 index 0000000000..6b2baae270 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghSzzrwgEntity.java @@ -0,0 +1,54 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_szzrwg") +public class WghSzzrwgEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 备注 + */ + private String note; + + /** + * 责任单位 + */ + private String name; + + /** + * 监管人 + */ + private String principal; + + /** + * 联系方式 + */ + private String phone; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghWhpdwEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghWhpdwEntity.java new file mode 100644 index 0000000000..4c379db795 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghWhpdwEntity.java @@ -0,0 +1,139 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_whpdw") +public class WghWhpdwEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 存在问题 + */ + private String problem; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 安全负责人 + */ + private String person; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 数量 + */ + private String amount; + + /** + * 等级 + */ + private String grade; + + /** + * 性质 + */ + private String natrue; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 备注 + */ + private String note; + + /** + * + */ + private String dwmcjc; + + /** + * 主要负责人 + */ + private String principal; + + /** + * 用途 + */ + private String user; + + /** + * + */ + private String layer; + + /** + * + */ + private String ssjdb; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYjbmcsEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYjbmcsEntity.java new file mode 100644 index 0000000000..097baf6258 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYjbmcsEntity.java @@ -0,0 +1,89 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_yjbmcs") +public class WghYjbmcsEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * + */ + private String grade; + + /** + * 地址 + */ + private String adress; + + /** + * 面积(㎡) + */ + private String area; + + /** + * 容纳人数 + */ + private String rnns; + + /** + * + */ + private String sfbsp; + + /** + * + */ + private String zysbcs; + + /** + * + */ + private String fzr; + + /** + * + */ + private String zgdw; + + /** + * + */ + private String name; + + /** + * + */ + private String fzrtel; + + /** + * + */ + private String ssjd; + + /** + * + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYqhjzEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYqhjzEntity.java new file mode 100644 index 0000000000..39718863c5 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/WghYqhjzEntity.java @@ -0,0 +1,129 @@ +package com.epmet.opendata.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("wgh_yqhjz") +public class WghYqhjzEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * + */ + private Integer objectid; + + /** + * 序号 + */ + private String xh; + + /** + * 单位名称 + */ + private String name; + + /** + * + */ + private Double area; + + /** + * 周边安全间距 + */ + private String space; + + /** + * 危险源类型 + */ + private String type; + + /** + * 经营地址 + */ + private String location; + + /** + * 负责人 + */ + private String principal; + + /** + * 联系电话 + */ + private String phone; + + /** + * 企业类型 + */ + private String qtype; + + /** + * 危化品种类 + */ + private String wtype; + + /** + * 数量 + */ + private String amount; + + /** + * 等级 + */ + private String grade; + + /** + * 性质 + */ + private String natrue; + + /** + * 应急措施 + */ + private String yjcs; + + /** + * 备注 + */ + private String note; + + /** + * 简称 + */ + private String dwmcjc; + + /** + * 所在图层 + */ + private String layer; + + /** + * 所属街道办 + */ + private String ssjdb; + + /** + * 存在问题 + */ + private String problem; + + /** + * 插入日期 + */ + private Date insertTime; + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BasegridExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BasegridExcel.java new file mode 100644 index 0000000000..c78c090c22 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BasegridExcel.java @@ -0,0 +1,45 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class BasegridExcel { + + @Excel(name = "") + private String coordinateInfo; + + @Excel(name = "") + private String gridName; + + @Excel(name = "") + private String subDistrictOffice; + + @Excel(name = "") + private String community; + + @Excel(name = "") + private String streetCode; + + @Excel(name = "") + private String gridCode; + + @Excel(name = "") + private String communityCode; + + @Excel(name = "") + private String longitude; + + @Excel(name = "") + private String latitude; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BmGridExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BmGridExcel.java new file mode 100644 index 0000000000..351509c9dd --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/BmGridExcel.java @@ -0,0 +1,129 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class BmGridExcel { + + @Excel(name = "网格ID") + private Long gridId; + + @Excel(name = "网格编码。人工填写,编码规则业务规定,不允许重复。") + private String gridCode; + + @Excel(name = "网格名称") + private String gridName; + + @Excel(name = "行政区划的国标编码") + private String gbCode; + + @Excel(name = "上级网格ID") + private Long parentId; + + @Excel(name = "上级网格编码") + private String parentCode; + + @Excel(name = "网格分类。1基础网格 2环保网格 3防火网格 4城管网格 5执法网格 6安监网格等") + private String gridClassification; + + @Excel(name = "网格层级。网格层级表的层级 根据【网格层级表】的层级关系动态展示。 查询【网格层级表】层级 条件:上层级=网格树返回的网格层级") + private String gridLevel; + + @Excel(name = "网格属性。01村庄、02小区、03企业、04学校(幼儿园)、05医院、06驻镇(街)单位、07其他") + private String gridProperty; + + @Excel(name = "是否最后一级:0否 1是") + private String isEnd; + + @Excel(name = "网格地址") + private String gridAddress; + + @Excel(name = "网格介绍") + private String gridIntroduce; + + @Excel(name = "宣传图片") + private String gridPicture; + + @Excel(name = "地图区域范围") + private String reginScopeDesc; + + @Excel(name = "展示顺序") + private Integer gridSort; + + @Excel(name = "标绘状态") + private String pointStatus; + + @Excel(name = "事件上报中心") + private Long gridEmCenter; + + @Excel(name = "初始日期") + private Date gridBeginTime; + + @Excel(name = "终止日期") + private Date gridEndTime; + + @Excel(name = "面积") + private String gridArea; + + @Excel(name = "是否有效") + private String isValid; + + @Excel(name = "创建人") + private Long createBy; + + @Excel(name = "创建时间") + private Date createDate; + + @Excel(name = "") + private Long updateBy; + + @Excel(name = "") + private Date updateDate; + + @Excel(name = "删除状态: 字典值:normal正常,删除deleted") + private String deleteFlag; + + @Excel(name = "乐观锁") + private Integer versions; + + @Excel(name = "网格内人口规模") + private String attribute1; + + @Excel(name = "是否成立网格党支部或网格党小组") + private String attribute2; + + @Excel(name = "网格党组织类型") + private String attribute3; + + @Excel(name = "党组织编码") + private String attribute4; + + @Excel(name = "扩展字段") + private String attribute5; + + @Excel(name = "扩展字段") + private Long attribute6; + + @Excel(name = "扩展字段") + private Long attribute7; + + @Excel(name = "扩展字段") + private Long attribute8; + + @Excel(name = "扩展字段") + private Date attribute9; + + @Excel(name = "扩展字段") + private Date attribute10; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/CommunityExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/CommunityExcel.java new file mode 100644 index 0000000000..cf4f22c20f --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/CommunityExcel.java @@ -0,0 +1,39 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class CommunityExcel { + + @Excel(name = "") + private String coordinateInfo; + + @Excel(name = "") + private String streetName; + + @Excel(name = "") + private String streetCode; + + @Excel(name = "") + private String communityName; + + @Excel(name = "") + private String communityCode; + + @Excel(name = "") + private String longitude; + + @Excel(name = "") + private String latitude; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/SubdistrictOfficeExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/SubdistrictOfficeExcel.java new file mode 100644 index 0000000000..43af5c9c7a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/SubdistrictOfficeExcel.java @@ -0,0 +1,33 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class SubdistrictOfficeExcel { + + @Excel(name = "") + private String coordinateInfo; + + @Excel(name = "") + private String streetName; + + @Excel(name = "") + private String streetCode; + + @Excel(name = "") + private String longitude; + + @Excel(name = "") + private String latitude; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghDywgExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghDywgExcel.java new file mode 100644 index 0000000000..0c8300cdb0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghDywgExcel.java @@ -0,0 +1,51 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghDywgExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "网格名称") + private String bgname; + + @Excel(name = "所属街镇") + private String street; + + @Excel(name = "所属社区") + private String community; + + @Excel(name = "网格面积") + private Double bgsqua; + + @Excel(name = "初始时间") + private Date ordate; + + @Excel(name = "变更时间") + private Date chdate; + + @Excel(name = "备注") + private String note; + + @Excel(name = "") + private String contacts; + + @Excel(name = "联系电话") + private String telphone; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJdbExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJdbExcel.java new file mode 100644 index 0000000000..e2bc316ac2 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJdbExcel.java @@ -0,0 +1,39 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJdbExcel { + + @Excel(name = "") + private String objectid1; + + @Excel(name = "") + private String objectid; + + @Excel(name = "街道名称") + private String mc; + + @Excel(name = "责任人") + private String personInCharge; + + @Excel(name = "联系电话") + private String 联系电话; + + @Excel(name = "") + private Double shapeLeng; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJqzExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJqzExcel.java new file mode 100644 index 0000000000..c8f469aaef --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJqzExcel.java @@ -0,0 +1,81 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJqzExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "序号") + private String xh; + + @Excel(name = "单位名称") + private String name; + + @Excel(name = "") + private Double area; + + @Excel(name = "周边安全间距") + private String space; + + @Excel(name = "存在问题") + private String problem; + + @Excel(name = "危险源类型") + private String type; + + @Excel(name = "经营地址") + private String location; + + @Excel(name = "负责人") + private String principal; + + @Excel(name = "联系电话") + private String phone; + + @Excel(name = "企业类型") + private String qtype; + + @Excel(name = "危化品种类") + private String wtype; + + @Excel(name = "等级") + private String level; + + @Excel(name = "性质") + private String nature; + + @Excel(name = "备注") + private String remarks; + + @Excel(name = "") + private String dwmcjc; + + @Excel(name = "") + private String layer; + + @Excel(name = "") + private String ssjdb; + + @Excel(name = "数量") + private String amount; + + @Excel(name = "应急措施") + private String yjcs; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJxcsExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJxcsExcel.java new file mode 100644 index 0000000000..0c2bd157cf --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJxcsExcel.java @@ -0,0 +1,78 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJxcsExcel { + + @Excel(name = "") + private String objectid; + + @Excel(name = "") + private String jsonInfo; + + @Excel(name = "") + private String creatTime; + + @Excel(name = "所属街道") + private String ssjd; + + @Excel(name = "所属社区") + private String sssq; + + @Excel(name = "道路名") + private String dlm; + + @Excel(name = "门牌号") + private String mph; + + @Excel(name = "名称") + private String name; + + @Excel(name = "") + private String ztlx; + + @Excel(name = "子类型") + private String type; + + @Excel(name = "统一社会信用代码") + private String xydm; + + @Excel(name = "联系人") + private String lxr; + + @Excel(name = "联系电话") + private String lxdh; + + @Excel(name = "") + private String userName; + + @Excel(name = "备注") + private String bz; + + @Excel(name = "") + private String available; + + @Excel(name = "") + private String id; + + @Excel(name = "编辑人ID") + private String userId; + + @Excel(name = "编辑人姓名") + private String updateTim; + + @Excel(name = "插入日期") + private String insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJyzExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJyzExcel.java new file mode 100644 index 0000000000..e8bdf9e000 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghJyzExcel.java @@ -0,0 +1,81 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghJyzExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "序号") + private String xh; + + @Excel(name = "单位名称") + private String name; + + @Excel(name = "") + private Double area; + + @Excel(name = "周边安全间距") + private String space; + + @Excel(name = "存在问题") + private String problem; + + @Excel(name = "危险源类型") + private String type; + + @Excel(name = "经营地址") + private String location; + + @Excel(name = "负责人") + private String principal; + + @Excel(name = "联系电话") + private String phone; + + @Excel(name = "企业类型") + private String qtype; + + @Excel(name = "危化品种类") + private String wtype; + + @Excel(name = "等级") + private String level; + + @Excel(name = "性质") + private String nature; + + @Excel(name = "备注") + private String remarks; + + @Excel(name = "") + private String dwmcjc; + + @Excel(name = "") + private String layer; + + @Excel(name = "") + private String ssjdb; + + @Excel(name = "数量") + private String amount; + + @Excel(name = "应急措施") + private String yjcs; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSjxxbExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSjxxbExcel.java new file mode 100644 index 0000000000..eb861aa4ae --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSjxxbExcel.java @@ -0,0 +1,63 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSjxxbExcel { + + @Excel(name = "") + private Integer objectid1; + + @Excel(name = "") + private Double objectid; + + @Excel(name = "事件来源") + private String infosourcename; + + @Excel(name = "事件类别") + private String infotypename; + + @Excel(name = "社区名称") + private String communityname; + + @Excel(name = "事件描述") + private String description; + + @Excel(name = "") + private String taskid; + + @Excel(name = "") + private String casesn; + + @Excel(name = "事件地址") + private String address; + + @Excel(name = "事件状态") + private String statusname; + + @Excel(name = "") + private String infobcname; + + @Excel(name = "") + private String infoscname; + + @Excel(name = "街道名称") + private String streetname; + + @Excel(name = "") + private Date discovertime; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSqxxExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSqxxExcel.java new file mode 100644 index 0000000000..4d308f8d41 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSqxxExcel.java @@ -0,0 +1,90 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSqxxExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "") + private Double commuarea; + + @Excel(name = "") + private String belongto; + + @Excel(name = "") + private String contacts; + + @Excel(name = "") + private String telphone; + + @Excel(name = "") + private Double numberOfGrid; + + @Excel(name = "") + private String streetCode; + + @Excel(name = "") + private String communityCode; + + @Excel(name = "") + private String commname; + + @Excel(name = "") + private String jdcjgb; + + @Excel(name = "") + private String wgz; + + @Excel(name = "") + private String policeName; + + @Excel(name = "") + private Double trafficPolicePhone; + + @Excel(name = "") + private String trafficPoliceCompany; + + @Excel(name = "") + private String peoPoliceName; + + @Excel(name = "") + private String peoPolicePhone; + + @Excel(name = "") + private String policeStation; + + @Excel(name = "") + private String wgy; + + @Excel(name = "") + private String jdlxks; + + @Excel(name = "") + private String ddy; + + @Excel(name = "") + private String zhzfxm; + + @Excel(name = "") + private String zhzfdh; + + @Excel(name = "") + private String zhzfbm; + + @Excel(name = "") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzcgwghExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzcgwghExcel.java new file mode 100644 index 0000000000..e00b617c39 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzcgwghExcel.java @@ -0,0 +1,36 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSzcgwghExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "备注") + private String note; + + @Excel(name = "") + private String sssq; + + @Excel(name = "") + private String ssjd; + + @Excel(name = "") + private String id; + + @Excel(name = "") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzzrwgExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzzrwgExcel.java new file mode 100644 index 0000000000..9b59f93a96 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghSzzrwgExcel.java @@ -0,0 +1,36 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghSzzrwgExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "备注") + private String note; + + @Excel(name = "责任单位") + private String name; + + @Excel(name = "监管人") + private String principal; + + @Excel(name = "联系方式") + private String phone; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghWhpdwExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghWhpdwExcel.java new file mode 100644 index 0000000000..94a9e37250 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghWhpdwExcel.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghWhpdwExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "序号") + private String xh; + + @Excel(name = "单位名称") + private String name; + + @Excel(name = "") + private Double area; + + @Excel(name = "周边安全间距") + private String space; + + @Excel(name = "存在问题") + private String problem; + + @Excel(name = "危险源类型") + private String type; + + @Excel(name = "经营地址") + private String location; + + @Excel(name = "安全负责人") + private String person; + + @Excel(name = "联系电话") + private String phone; + + @Excel(name = "企业类型") + private String qtype; + + @Excel(name = "危化品种类") + private String wtype; + + @Excel(name = "数量") + private String amount; + + @Excel(name = "等级") + private String grade; + + @Excel(name = "性质") + private String natrue; + + @Excel(name = "应急措施") + private String yjcs; + + @Excel(name = "备注") + private String note; + + @Excel(name = "") + private String dwmcjc; + + @Excel(name = "主要负责人") + private String principal; + + @Excel(name = "用途") + private String user; + + @Excel(name = "") + private String layer; + + @Excel(name = "") + private String ssjdb; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYjbmcsExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYjbmcsExcel.java new file mode 100644 index 0000000000..b180b13932 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYjbmcsExcel.java @@ -0,0 +1,57 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghYjbmcsExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "") + private String grade; + + @Excel(name = "地址") + private String adress; + + @Excel(name = "面积(㎡)") + private String area; + + @Excel(name = "容纳人数") + private String rnns; + + @Excel(name = "") + private String sfbsp; + + @Excel(name = "") + private String zysbcs; + + @Excel(name = "") + private String fzr; + + @Excel(name = "") + private String zgdw; + + @Excel(name = "") + private String name; + + @Excel(name = "") + private String fzrtel; + + @Excel(name = "") + private String ssjd; + + @Excel(name = "") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYqhjzExcel.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYqhjzExcel.java new file mode 100644 index 0000000000..c6bfaa9307 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/excel/WghYqhjzExcel.java @@ -0,0 +1,81 @@ +package com.epmet.opendata.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Data +public class WghYqhjzExcel { + + @Excel(name = "") + private Integer objectid; + + @Excel(name = "序号") + private String xh; + + @Excel(name = "单位名称") + private String name; + + @Excel(name = "") + private Double area; + + @Excel(name = "周边安全间距") + private String space; + + @Excel(name = "危险源类型") + private String type; + + @Excel(name = "经营地址") + private String location; + + @Excel(name = "负责人") + private String principal; + + @Excel(name = "联系电话") + private String phone; + + @Excel(name = "企业类型") + private String qtype; + + @Excel(name = "危化品种类") + private String wtype; + + @Excel(name = "数量") + private String amount; + + @Excel(name = "等级") + private String grade; + + @Excel(name = "性质") + private String natrue; + + @Excel(name = "应急措施") + private String yjcs; + + @Excel(name = "备注") + private String note; + + @Excel(name = "简称") + private String dwmcjc; + + @Excel(name = "所在图层") + private String layer; + + @Excel(name = "所属街道办") + private String ssjdb; + + @Excel(name = "存在问题") + private String problem; + + @Excel(name = "插入日期") + private Date insertTime; + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BasegridRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BasegridRedis.java new file mode 100644 index 0000000000..26ac2a5600 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BasegridRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class BasegridRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BmGridRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BmGridRedis.java new file mode 100644 index 0000000000..29e6df66c3 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/BmGridRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class BmGridRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/CommunityRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/CommunityRedis.java new file mode 100644 index 0000000000..201fa90d44 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/CommunityRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class CommunityRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/SubdistrictOfficeRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/SubdistrictOfficeRedis.java new file mode 100644 index 0000000000..11e7458396 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/SubdistrictOfficeRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class SubdistrictOfficeRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghDywgRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghDywgRedis.java new file mode 100644 index 0000000000..7ae8d82888 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghDywgRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghDywgRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJdbRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJdbRedis.java new file mode 100644 index 0000000000..7eb624a467 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJdbRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghJdbRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJqzRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJqzRedis.java new file mode 100644 index 0000000000..2c05f982dd --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJqzRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghJqzRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJxcsRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJxcsRedis.java new file mode 100644 index 0000000000..4463866cd3 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJxcsRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghJxcsRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJyzRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJyzRedis.java new file mode 100644 index 0000000000..6d477dd45c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghJyzRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghJyzRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSjxxbRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSjxxbRedis.java new file mode 100644 index 0000000000..f52724484b --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSjxxbRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghSjxxbRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSqxxRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSqxxRedis.java new file mode 100644 index 0000000000..ae6c063db3 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSqxxRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghSqxxRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzcgwghRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzcgwghRedis.java new file mode 100644 index 0000000000..3ad17f710a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzcgwghRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghSzcgwghRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzzrwgRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzzrwgRedis.java new file mode 100644 index 0000000000..d3bf717cb2 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghSzzrwgRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghSzzrwgRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghWhpdwRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghWhpdwRedis.java new file mode 100644 index 0000000000..91d21285f1 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghWhpdwRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghWhpdwRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYjbmcsRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYjbmcsRedis.java new file mode 100644 index 0000000000..cbe2fb69d5 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYjbmcsRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghYjbmcsRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYqhjzRedis.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYqhjzRedis.java new file mode 100644 index 0000000000..4143ec72df --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/redis/WghYqhjzRedis.java @@ -0,0 +1,30 @@ +package com.epmet.opendata.redis; + +import com.epmet.commons.tools.redis.RedisUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Component +public class WghYqhjzRedis { + @Autowired + private RedisUtils redisUtils; + + public void delete(Object[] ids) { + + } + + public void set(){ + + } + + public String get(String id){ + return null; + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BasegridService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BasegridService.java new file mode 100644 index 0000000000..2dad26e69a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BasegridService.java @@ -0,0 +1,88 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BasegridDTO; +import com.epmet.opendata.entity.BasegridEntity; + + +import java.util.List; +import java.util.Map; + +/** + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface BasegridService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return BasegridDTO + * @author generator + * @date 2022-06-14 + */ + BasegridDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(BasegridDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(BasegridDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); + + /** + * 调用ruoyi存储基础网格的数据 + * + * @param dto + * @return void + * @author LZN + * @date 2022/6/14 13:40 + */ + void preserBaseGridVation(PreserVationFormDTO dto); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BmGridService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BmGridService.java new file mode 100644 index 0000000000..c61414ab19 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BmGridService.java @@ -0,0 +1,82 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BmGridDTO; +import com.epmet.opendata.entity.BmGridEntity; + + +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface BmGridService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return BmGridDTO + * @author generator + * @date 2022-06-14 + */ + BmGridDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(BmGridDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(BmGridDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/CommunityService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/CommunityService.java new file mode 100644 index 0000000000..002c3f0fd6 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/CommunityService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.CommunityDTO; +import com.epmet.opendata.entity.CommunityEntity; + + +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface CommunityService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return CommunityDTO + * @author generator + * @date 2022-06-14 + */ + CommunityDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(CommunityDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(CommunityDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/SubdistrictOfficeService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/SubdistrictOfficeService.java new file mode 100644 index 0000000000..8d37a4ff87 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/SubdistrictOfficeService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.SubdistrictOfficeDTO; +import com.epmet.opendata.entity.SubdistrictOfficeEntity; + + +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface SubdistrictOfficeService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return SubdistrictOfficeDTO + * @author generator + * @date 2022-06-14 + */ + SubdistrictOfficeDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(SubdistrictOfficeDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(SubdistrictOfficeDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghDywgService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghDywgService.java new file mode 100644 index 0000000000..e078faba79 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghDywgService.java @@ -0,0 +1,78 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghDywgDTO; +import com.epmet.opendata.entity.WghDywgEntity; + +import java.util.List; +import java.util.Map; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghDywgService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghDywgDTO + * @author generator + * @date 2022-06-14 + */ + WghDywgDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghDywgDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghDywgDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJdbService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJdbService.java new file mode 100644 index 0000000000..6c85b56301 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJdbService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghJdbDTO; +import com.epmet.opendata.entity.WghJdbEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghJdbService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghJdbDTO + * @author generator + * @date 2022-06-14 + */ + WghJdbDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghJdbDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghJdbDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJqzService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJqzService.java new file mode 100644 index 0000000000..941e4c2b29 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJqzService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghJqzDTO; +import com.epmet.opendata.entity.WghJqzEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghJqzService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghJqzDTO + * @author generator + * @date 2022-06-14 + */ + WghJqzDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghJqzDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghJqzDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJxcsService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJxcsService.java new file mode 100644 index 0000000000..4f0d630cff --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJxcsService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghJxcsDTO; +import com.epmet.opendata.entity.WghJxcsEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghJxcsService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghJxcsDTO + * @author generator + * @date 2022-06-14 + */ + WghJxcsDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghJxcsDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghJxcsDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJyzService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJyzService.java new file mode 100644 index 0000000000..816c3950fe --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghJyzService.java @@ -0,0 +1,78 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghJyzDTO; +import com.epmet.opendata.entity.WghJyzEntity; + +import java.util.List; +import java.util.Map; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghJyzService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghJyzDTO + * @author generator + * @date 2022-06-14 + */ + WghJyzDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghJyzDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghJyzDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSjxxbService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSjxxbService.java new file mode 100644 index 0000000000..260daf8c31 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSjxxbService.java @@ -0,0 +1,78 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghSjxxbDTO; +import com.epmet.opendata.entity.WghSjxxbEntity; + +import java.util.List; +import java.util.Map; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghSjxxbService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghSjxxbDTO + * @author generator + * @date 2022-06-14 + */ + WghSjxxbDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghSjxxbDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghSjxxbDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSqxxService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSqxxService.java new file mode 100644 index 0000000000..8b2f86155c --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSqxxService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghSqxxDTO; +import com.epmet.opendata.entity.WghSqxxEntity; + + +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghSqxxService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghSqxxDTO + * @author generator + * @date 2022-06-14 + */ + WghSqxxDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghSqxxDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghSqxxDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzcgwghService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzcgwghService.java new file mode 100644 index 0000000000..c31d4d68ad --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzcgwghService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghSzcgwghDTO; +import com.epmet.opendata.entity.WghSzcgwghEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghSzcgwghService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghSzcgwghDTO + * @author generator + * @date 2022-06-14 + */ + WghSzcgwghDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghSzcgwghDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghSzcgwghDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzzrwgService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzzrwgService.java new file mode 100644 index 0000000000..6a83a2401a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSzzrwgService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghSzzrwgDTO; +import com.epmet.opendata.entity.WghSzzrwgEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghSzzrwgService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghSzzrwgDTO + * @author generator + * @date 2022-06-14 + */ + WghSzzrwgDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghSzzrwgDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghSzzrwgDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghWhpdwService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghWhpdwService.java new file mode 100644 index 0000000000..44469f2890 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghWhpdwService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghWhpdwDTO; +import com.epmet.opendata.entity.WghWhpdwEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghWhpdwService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghWhpdwDTO + * @author generator + * @date 2022-06-14 + */ + WghWhpdwDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghWhpdwDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghWhpdwDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYjbmcsService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYjbmcsService.java new file mode 100644 index 0000000000..d73715139d --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYjbmcsService.java @@ -0,0 +1,79 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.dto.wgh.WghYjbmcsDTO; +import com.epmet.opendata.entity.WghYjbmcsEntity; + + +import java.util.List; +import java.util.Map; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghYjbmcsService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghYjbmcsDTO + * @author generator + * @date 2022-06-14 + */ + WghYjbmcsDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghYjbmcsDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghYjbmcsDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYqhjzService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYqhjzService.java new file mode 100644 index 0000000000..7aff21c044 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghYqhjzService.java @@ -0,0 +1,78 @@ +package com.epmet.opendata.service; + +import com.epmet.commons.mybatis.service.BaseService; +import com.epmet.commons.tools.page.PageData; +import com.epmet.opendata.entity.WghYqhjzEntity; +import com.epmet.opendata.dto.wgh.WghYqhjzDTO; + +import java.util.List; +import java.util.Map; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +public interface WghYqhjzService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2022-06-14 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2022-06-14 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return WghYqhjzDTO + * @author generator + * @date 2022-06-14 + */ + WghYqhjzDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void save(WghYqhjzDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2022-06-14 + */ + void update(WghYqhjzDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2022-06-14 + */ + void delete(String[] ids); +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BasegridServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BasegridServiceImpl.java new file mode 100644 index 0000000000..3cbabe9382 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BasegridServiceImpl.java @@ -0,0 +1,168 @@ +package com.epmet.opendata.service.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.commons.tools.constant.NumConstant; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.utils.HttpClientManager; +import com.epmet.commons.tools.utils.Result; +import com.epmet.opendata.dao.BasegridDao; +import com.epmet.opendata.dto.constant.CaWghDataConstant; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BasegridDTO; +import com.epmet.opendata.entity.BasegridEntity; +import com.epmet.opendata.entity.CaLoudongEntity; +import com.epmet.opendata.redis.BasegridRedis; +import com.epmet.opendata.service.BasegridService; +import com.epmet.opendata.util.AesUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class BasegridServiceImpl extends BaseServiceImpl implements BasegridService { + + @Autowired + private BasegridRedis basegridRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, BasegridDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, BasegridDTO.class); + } + + private QueryWrapper getWrapper(Map params) { + String id = (String) params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public BasegridDTO get(String id) { + BasegridEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, BasegridDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(BasegridDTO dto) { + BasegridEntity entity = ConvertUtils.sourceToTarget(dto, BasegridEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(BasegridDTO dto) { + BasegridEntity entity = ConvertUtils.sourceToTarget(dto, BasegridEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + + /** + * 调用ruoyi存储基础网格的数据 + * + * @param dto + * @return void + * @author LZN + * @date 2022/6/14 13:41 + */ + @Override + public void preserBaseGridVation(PreserVationFormDTO dto) { + int i = baseDao.deleteAll(); + if (i > 0) { + dto.setPageNo(NumConstant.ONE); + dto.setPageSize(NumConstant.FIFTY); + dto.setTableSchema(CaWghDataConstant.TABLESCHEMA_SHARE); + dto.setTableName(CaWghDataConstant.SHARE_BASE_GRID); + + dto.setWhereCase("1=1"); + dto.setOrderBy(""); + + int pageNo = 1; + + int total = 0; + + do { + try { + total = listBaseGrid(dto); + pageNo++; + dto.setPageNo(pageNo); + } catch (Exception e) { + e.printStackTrace(); + } + } while (total > (pageNo * NumConstant.FIFTY)); + + } + } + + private int listBaseGrid(PreserVationFormDTO dto) throws Exception { + String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), CaWghDataConstant.AESKEY); + JSONObject obj = new JSONObject(); + obj.put(CaWghDataConstant.SHARE_CONDITION, aes); + String data = HttpClientManager.getInstance().sendPostByJSON(CaWghDataConstant.DATA_URL_SHARE, obj.toJSONString()).getData(); + JSONObject toResult = JSON.parseObject(data); + Result result = ConvertUtils.mapToEntity(toResult, Result.class); + if (!result.success()) { + return dto.getPageNo() + 1; + } + + ReturnDate returnDate = JSONObject.parseObject(JSONObject.toJSONString(result.getData()), ReturnDate.class); + this.insertBatch(returnDate.getList()); + return returnDate.getTotal(); + } + + static class ReturnDate { + private int total; + private List list; + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BmGridServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BmGridServiceImpl.java new file mode 100644 index 0000000000..349e77f2cf --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BmGridServiceImpl.java @@ -0,0 +1,91 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; + +import com.epmet.opendata.dao.BmGridDao; +import com.epmet.opendata.dto.form.PreserVationFormDTO; +import com.epmet.opendata.dto.wgh.BmGridDTO; +import com.epmet.opendata.entity.BmGridEntity; +import com.epmet.opendata.redis.BmGridRedis; +import com.epmet.opendata.service.BmGridService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class BmGridServiceImpl extends BaseServiceImpl implements BmGridService { + + @Autowired + private BmGridRedis bmGridRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, BmGridDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, BmGridDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public BmGridDTO get(String id) { + BmGridEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, BmGridDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(BmGridDTO dto) { + BmGridEntity entity = ConvertUtils.sourceToTarget(dto, BmGridEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(BmGridDTO dto) { + BmGridEntity entity = ConvertUtils.sourceToTarget(dto, BmGridEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + + + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/CommunityServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/CommunityServiceImpl.java new file mode 100644 index 0000000000..d1143a6ac9 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/CommunityServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.opendata.dao.CommunityDao; +import com.epmet.opendata.dto.wgh.CommunityDTO; +import com.epmet.opendata.entity.CommunityEntity; +import com.epmet.opendata.redis.CommunityRedis; +import com.epmet.opendata.service.CommunityService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class CommunityServiceImpl extends BaseServiceImpl implements CommunityService { + + @Autowired + private CommunityRedis communityRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, CommunityDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, CommunityDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public CommunityDTO get(String id) { + CommunityEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, CommunityDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(CommunityDTO dto) { + CommunityEntity entity = ConvertUtils.sourceToTarget(dto, CommunityEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(CommunityDTO dto) { + CommunityEntity entity = ConvertUtils.sourceToTarget(dto, CommunityEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java index b8e1f0b669..9a790ccd56 100644 --- a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GuardarDatosTaskServiceImpl.java @@ -25,6 +25,9 @@ public class GuardarDatosTaskServiceImpl implements GuardarDatosTaskService { @Autowired private CaRotatorsService rotatorsService; + @Autowired + private BasegridService basegridService; + @Override public void guardarDatosTask(PreserVationFormDTO dto) { if (StringUtils.isBlank(dto.getTableName())) { @@ -33,6 +36,7 @@ public class GuardarDatosTaskServiceImpl implements GuardarDatosTaskService { rentalService.preserRentalVation(dto); residentService.preserResidentVation(dto); rotatorsService.preserRotatorsVation(dto); + basegridService.preserBaseGridVation(dto); } switch (dto.getTableName()) { @@ -51,6 +55,9 @@ public class GuardarDatosTaskServiceImpl implements GuardarDatosTaskService { case CaWghDataConstant.UNICOM_ROTATORS: rotatorsService.preserRotatorsVation(dto); break; + case CaWghDataConstant.SHARE_BASE_GRID: + basegridService.preserBaseGridVation(dto); + break; } } } diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/SubdistrictOfficeServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/SubdistrictOfficeServiceImpl.java new file mode 100644 index 0000000000..bc1d42dd32 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/SubdistrictOfficeServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.opendata.dao.SubdistrictOfficeDao; +import com.epmet.opendata.dto.wgh.SubdistrictOfficeDTO; +import com.epmet.opendata.entity.SubdistrictOfficeEntity; +import com.epmet.opendata.redis.SubdistrictOfficeRedis; +import com.epmet.opendata.service.SubdistrictOfficeService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class SubdistrictOfficeServiceImpl extends BaseServiceImpl implements SubdistrictOfficeService { + + @Autowired + private SubdistrictOfficeRedis subdistrictOfficeRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, SubdistrictOfficeDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, SubdistrictOfficeDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public SubdistrictOfficeDTO get(String id) { + SubdistrictOfficeEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, SubdistrictOfficeDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(SubdistrictOfficeDTO dto) { + SubdistrictOfficeEntity entity = ConvertUtils.sourceToTarget(dto, SubdistrictOfficeEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(SubdistrictOfficeDTO dto) { + SubdistrictOfficeEntity entity = ConvertUtils.sourceToTarget(dto, SubdistrictOfficeEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghDywgServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghDywgServiceImpl.java new file mode 100644 index 0000000000..ed55100449 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghDywgServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.opendata.dao.WghDywgDao; +import com.epmet.opendata.dto.wgh.WghDywgDTO; +import com.epmet.opendata.entity.WghDywgEntity; +import com.epmet.opendata.redis.WghDywgRedis; +import com.epmet.opendata.service.WghDywgService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 单元网格 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghDywgServiceImpl extends BaseServiceImpl implements WghDywgService { + + @Autowired + private WghDywgRedis wghDywgRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghDywgDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghDywgDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghDywgDTO get(String id) { + WghDywgEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghDywgDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghDywgDTO dto) { + WghDywgEntity entity = ConvertUtils.sourceToTarget(dto, WghDywgEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghDywgDTO dto) { + WghDywgEntity entity = ConvertUtils.sourceToTarget(dto, WghDywgEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJdbServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJdbServiceImpl.java new file mode 100644 index 0000000000..874af41b73 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJdbServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.opendata.dao.WghJdbDao; +import com.epmet.opendata.dto.wgh.WghJdbDTO; +import com.epmet.opendata.entity.WghJdbEntity; +import com.epmet.opendata.redis.WghJdbRedis; +import com.epmet.opendata.service.WghJdbService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 街道办 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghJdbServiceImpl extends BaseServiceImpl implements WghJdbService { + + @Autowired + private WghJdbRedis wghJdbRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghJdbDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghJdbDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghJdbDTO get(String id) { + WghJdbEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghJdbDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghJdbDTO dto) { + WghJdbEntity entity = ConvertUtils.sourceToTarget(dto, WghJdbEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghJdbDTO dto) { + WghJdbEntity entity = ConvertUtils.sourceToTarget(dto, WghJdbEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJqzServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJqzServiceImpl.java new file mode 100644 index 0000000000..79ed9af41e --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJqzServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghJqzDao; +import com.epmet.opendata.dto.wgh.WghJqzDTO; +import com.epmet.opendata.entity.WghJqzEntity; +import com.epmet.opendata.redis.WghJqzRedis; +import com.epmet.opendata.service.WghJqzService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 加气站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghJqzServiceImpl extends BaseServiceImpl implements WghJqzService { + + @Autowired + private WghJqzRedis wghJqzRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghJqzDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghJqzDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghJqzDTO get(String id) { + WghJqzEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghJqzDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghJqzDTO dto) { + WghJqzEntity entity = ConvertUtils.sourceToTarget(dto, WghJqzEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghJqzDTO dto) { + WghJqzEntity entity = ConvertUtils.sourceToTarget(dto, WghJqzEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJxcsServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJxcsServiceImpl.java new file mode 100644 index 0000000000..1817a3bf57 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJxcsServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghJxcsDao; +import com.epmet.opendata.dto.wgh.WghJxcsDTO; +import com.epmet.opendata.entity.WghJxcsEntity; +import com.epmet.opendata.redis.WghJxcsRedis; +import com.epmet.opendata.service.WghJxcsService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 九小场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghJxcsServiceImpl extends BaseServiceImpl implements WghJxcsService { + + @Autowired + private WghJxcsRedis wghJxcsRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghJxcsDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghJxcsDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghJxcsDTO get(String id) { + WghJxcsEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghJxcsDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghJxcsDTO dto) { + WghJxcsEntity entity = ConvertUtils.sourceToTarget(dto, WghJxcsEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghJxcsDTO dto) { + WghJxcsEntity entity = ConvertUtils.sourceToTarget(dto, WghJxcsEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJyzServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJyzServiceImpl.java new file mode 100644 index 0000000000..893d0a3000 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghJyzServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghJyzDao; +import com.epmet.opendata.dto.wgh.WghJyzDTO; +import com.epmet.opendata.entity.WghJyzEntity; +import com.epmet.opendata.redis.WghJyzRedis; +import com.epmet.opendata.service.WghJyzService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 加油站 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghJyzServiceImpl extends BaseServiceImpl implements WghJyzService { + + @Autowired + private WghJyzRedis wghJyzRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghJyzDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghJyzDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghJyzDTO get(String id) { + WghJyzEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghJyzDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghJyzDTO dto) { + WghJyzEntity entity = ConvertUtils.sourceToTarget(dto, WghJyzEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghJyzDTO dto) { + WghJyzEntity entity = ConvertUtils.sourceToTarget(dto, WghJyzEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSjxxbServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSjxxbServiceImpl.java new file mode 100644 index 0000000000..1ecbbcfa48 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSjxxbServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghSjxxbDao; +import com.epmet.opendata.dto.wgh.WghSjxxbDTO; +import com.epmet.opendata.entity.WghSjxxbEntity; +import com.epmet.opendata.redis.WghSjxxbRedis; +import com.epmet.opendata.service.WghSjxxbService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 事件信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghSjxxbServiceImpl extends BaseServiceImpl implements WghSjxxbService { + + @Autowired + private WghSjxxbRedis wghSjxxbRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghSjxxbDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghSjxxbDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghSjxxbDTO get(String id) { + WghSjxxbEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghSjxxbDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghSjxxbDTO dto) { + WghSjxxbEntity entity = ConvertUtils.sourceToTarget(dto, WghSjxxbEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghSjxxbDTO dto) { + WghSjxxbEntity entity = ConvertUtils.sourceToTarget(dto, WghSjxxbEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSqxxServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSqxxServiceImpl.java new file mode 100644 index 0000000000..791f65fcb7 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSqxxServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghSqxxDao; +import com.epmet.opendata.dto.wgh.WghSqxxDTO; +import com.epmet.opendata.entity.WghSqxxEntity; +import com.epmet.opendata.redis.WghSqxxRedis; +import com.epmet.opendata.service.WghSqxxService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghSqxxServiceImpl extends BaseServiceImpl implements WghSqxxService { + + @Autowired + private WghSqxxRedis wghSqxxRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghSqxxDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghSqxxDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghSqxxDTO get(String id) { + WghSqxxEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghSqxxDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghSqxxDTO dto) { + WghSqxxEntity entity = ConvertUtils.sourceToTarget(dto, WghSqxxEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghSqxxDTO dto) { + WghSqxxEntity entity = ConvertUtils.sourceToTarget(dto, WghSqxxEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzcgwghServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzcgwghServiceImpl.java new file mode 100644 index 0000000000..945a091d0a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzcgwghServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghSzcgwghDao; +import com.epmet.opendata.dto.wgh.WghSzcgwghDTO; +import com.epmet.opendata.entity.WghSzcgwghEntity; +import com.epmet.opendata.redis.WghSzcgwghRedis; +import com.epmet.opendata.service.WghSzcgwghService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 数字城管网格化信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghSzcgwghServiceImpl extends BaseServiceImpl implements WghSzcgwghService { + + @Autowired + private WghSzcgwghRedis wghSzcgwghRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghSzcgwghDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghSzcgwghDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghSzcgwghDTO get(String id) { + WghSzcgwghEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghSzcgwghDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghSzcgwghDTO dto) { + WghSzcgwghEntity entity = ConvertUtils.sourceToTarget(dto, WghSzcgwghEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghSzcgwghDTO dto) { + WghSzcgwghEntity entity = ConvertUtils.sourceToTarget(dto, WghSzcgwghEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzzrwgServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzzrwgServiceImpl.java new file mode 100644 index 0000000000..5020b084c0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSzzrwgServiceImpl.java @@ -0,0 +1,88 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; + +import com.epmet.opendata.dao.WghSzzrwgDao; +import com.epmet.opendata.dto.wgh.WghSzzrwgDTO; +import com.epmet.opendata.entity.WghSzzrwgEntity; +import com.epmet.opendata.redis.WghSzzrwgRedis; +import com.epmet.opendata.service.WghSzzrwgService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 市政责任网格信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghSzzrwgServiceImpl extends BaseServiceImpl implements WghSzzrwgService { + + @Autowired + private WghSzzrwgRedis wghSzzrwgRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghSzzrwgDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghSzzrwgDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghSzzrwgDTO get(String id) { + WghSzzrwgEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghSzzrwgDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghSzzrwgDTO dto) { + WghSzzrwgEntity entity = ConvertUtils.sourceToTarget(dto, WghSzzrwgEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghSzzrwgDTO dto) { + WghSzzrwgEntity entity = ConvertUtils.sourceToTarget(dto, WghSzzrwgEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghWhpdwServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghWhpdwServiceImpl.java new file mode 100644 index 0000000000..b2e05da08a --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghWhpdwServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghWhpdwDao; +import com.epmet.opendata.dto.wgh.WghWhpdwDTO; +import com.epmet.opendata.entity.WghWhpdwEntity; +import com.epmet.opendata.redis.WghWhpdwRedis; +import com.epmet.opendata.service.WghWhpdwService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 危化品单位信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghWhpdwServiceImpl extends BaseServiceImpl implements WghWhpdwService { + + @Autowired + private WghWhpdwRedis wghWhpdwRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghWhpdwDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghWhpdwDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghWhpdwDTO get(String id) { + WghWhpdwEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghWhpdwDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghWhpdwDTO dto) { + WghWhpdwEntity entity = ConvertUtils.sourceToTarget(dto, WghWhpdwEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghWhpdwDTO dto) { + WghWhpdwEntity entity = ConvertUtils.sourceToTarget(dto, WghWhpdwEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYjbmcsServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYjbmcsServiceImpl.java new file mode 100644 index 0000000000..367d539a63 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYjbmcsServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; +import com.epmet.opendata.dao.WghYjbmcsDao; +import com.epmet.opendata.dto.wgh.WghYjbmcsDTO; +import com.epmet.opendata.entity.WghYjbmcsEntity; +import com.epmet.opendata.redis.WghYjbmcsRedis; +import com.epmet.opendata.service.WghYjbmcsService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 应急避难场所信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghYjbmcsServiceImpl extends BaseServiceImpl implements WghYjbmcsService { + + @Autowired + private WghYjbmcsRedis wghYjbmcsRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghYjbmcsDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghYjbmcsDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghYjbmcsDTO get(String id) { + WghYjbmcsEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghYjbmcsDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghYjbmcsDTO dto) { + WghYjbmcsEntity entity = ConvertUtils.sourceToTarget(dto, WghYjbmcsEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghYjbmcsDTO dto) { + WghYjbmcsEntity entity = ConvertUtils.sourceToTarget(dto, WghYjbmcsEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYqhjzServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYqhjzServiceImpl.java new file mode 100644 index 0000000000..aa8b06d753 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghYqhjzServiceImpl.java @@ -0,0 +1,87 @@ +package com.epmet.opendata.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; +import com.epmet.commons.tools.page.PageData; +import com.epmet.commons.tools.utils.ConvertUtils; +import com.epmet.commons.tools.constant.FieldConstant; + +import com.epmet.opendata.dao.WghYqhjzDao; +import com.epmet.opendata.entity.WghYqhjzEntity; +import com.epmet.opendata.redis.WghYqhjzRedis; +import com.epmet.opendata.service.WghYqhjzService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.epmet.opendata.dto.wgh.WghYqhjzDTO; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 油气合建站信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-06-14 + */ +@Service +public class WghYqhjzServiceImpl extends BaseServiceImpl implements WghYqhjzService { + + @Autowired + private WghYqhjzRedis wghYqhjzRedis; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, WghYqhjzDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, WghYqhjzDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public WghYqhjzDTO get(String id) { + WghYqhjzEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WghYqhjzDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WghYqhjzDTO dto) { + WghYqhjzEntity entity = ConvertUtils.sourceToTarget(dto, WghYqhjzEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WghYqhjzDTO dto) { + WghYqhjzEntity entity = ConvertUtils.sourceToTarget(dto, WghYqhjzEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + +} diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BasegridDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BasegridDao.xml new file mode 100644 index 0000000000..daab0d0aee --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BasegridDao.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + delete from BaseGrid + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BmGridDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BmGridDao.xml new file mode 100644 index 0000000000..5afad7c849 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BmGridDao.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/CommunityDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/CommunityDao.xml new file mode 100644 index 0000000000..dd20682a82 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/CommunityDao.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/SubdistrictOfficeDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/SubdistrictOfficeDao.xml new file mode 100644 index 0000000000..9848740d6e --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/SubdistrictOfficeDao.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghDywgDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghDywgDao.xml new file mode 100644 index 0000000000..08611dc01e --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghDywgDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJdbDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJdbDao.xml new file mode 100644 index 0000000000..f5ef0fa1fb --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJdbDao.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJqzDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJqzDao.xml new file mode 100644 index 0000000000..d4549ee7a3 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJqzDao.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJxcsDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJxcsDao.xml new file mode 100644 index 0000000000..92f7c4f881 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJxcsDao.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJyzDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJyzDao.xml new file mode 100644 index 0000000000..4f2e3eddc5 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghJyzDao.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSjxxbDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSjxxbDao.xml new file mode 100644 index 0000000000..8fd239723f --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSjxxbDao.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSqxxDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSqxxDao.xml new file mode 100644 index 0000000000..fd055baeb0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSqxxDao.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzcgwghDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzcgwghDao.xml new file mode 100644 index 0000000000..4c68a27413 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzcgwghDao.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzzrwgDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzzrwgDao.xml new file mode 100644 index 0000000000..1c8dd6b88f --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSzzrwgDao.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghWhpdwDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghWhpdwDao.xml new file mode 100644 index 0000000000..d4c41c8e94 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghWhpdwDao.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYjbmcsDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYjbmcsDao.xml new file mode 100644 index 0000000000..536ca04ca0 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYjbmcsDao.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYqhjzDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYqhjzDao.xml new file mode 100644 index 0000000000..1ec98d4387 --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghYqhjzDao.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +