Browse Source
# Conflicts: # epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/ScreenProjectDataDTO.javadev_shibei_match
31 changed files with 1252 additions and 59 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.epmet.dto.basereport.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/10/15 10:55 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EventInfoFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 8479649048108914555L; |
||||
|
private String customerId; |
||||
|
private String projectId; |
||||
|
} |
@ -0,0 +1,143 @@ |
|||||
|
package com.epmet.dto.basereport.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/10/15 10:57 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EventInfoResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -6483163020737762044L; |
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 网格编码 |
||||
|
*/ |
||||
|
private String orgCode; |
||||
|
|
||||
|
/** |
||||
|
* 网格名称 |
||||
|
*/ |
||||
|
private String orgName; |
||||
|
|
||||
|
/** |
||||
|
* 事件名称 |
||||
|
*/ |
||||
|
private String eventName; |
||||
|
|
||||
|
/** |
||||
|
* 事件类别 |
||||
|
*/ |
||||
|
private String eventCategory; |
||||
|
|
||||
|
/** |
||||
|
* 上报时间 YYYY-MM-DD HH:MM:SS |
||||
|
*/ |
||||
|
private Date reportTime; |
||||
|
|
||||
|
/** |
||||
|
* 发生时间 格式为“YYYY-MM-DD” |
||||
|
*/ |
||||
|
private Date happenDate; |
||||
|
|
||||
|
/** |
||||
|
* 发生地点 |
||||
|
*/ |
||||
|
private String happenPlace; |
||||
|
|
||||
|
/** |
||||
|
* 事件简述 |
||||
|
*/ |
||||
|
private String eventDescription; |
||||
|
|
||||
|
/** |
||||
|
* 办结方式 01自办;02上报 源于居民端的最终结案的项目为02;工作端立项的项目最终结案的01 |
||||
|
*/ |
||||
|
private String waysOfResolving; |
||||
|
|
||||
|
/** |
||||
|
* 是否办结 Y:是、N:否 |
||||
|
*/ |
||||
|
private String successfulOrNo; |
||||
|
|
||||
|
/** |
||||
|
* 办结层级01省、自治区、直辖市02地、市、州、盟03县、市、区、旗04乡镇、街道05片区06村、社区07网格 |
||||
|
*/ |
||||
|
private String completeLevel; |
||||
|
|
||||
|
/** |
||||
|
* 基础信息主键 |
||||
|
*/ |
||||
|
private String baseInfoId; |
||||
|
|
||||
|
/** |
||||
|
* 办结时间 |
||||
|
*/ |
||||
|
private Date completeTime; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private BigDecimal lng; |
||||
|
|
||||
|
/** |
||||
|
* 纬度 |
||||
|
*/ |
||||
|
private BigDecimal lat; |
||||
|
|
||||
|
/** |
||||
|
* 主要当事人姓名 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 涉及人数 |
||||
|
*/ |
||||
|
private Integer numberInvolved; |
||||
|
|
||||
|
/** |
||||
|
* 涉及单位 |
||||
|
*/ |
||||
|
private String relatedUnits; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所类别 01九小场所, 02公共场所 |
||||
|
*/ |
||||
|
private String keyAreaType; |
||||
|
|
||||
|
/** |
||||
|
* 宗教活动规模 01 0-50人,02 51-200人,03 201人以上 |
||||
|
|
||||
|
*/ |
||||
|
private String religionScale; |
||||
|
|
||||
|
/** |
||||
|
* 宗教类别 01道教 02佛教 03基督教 04伊斯兰教 05其他 |
||||
|
|
||||
|
*/ |
||||
|
private String religionType; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所是否变动 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeyareaState; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员是否在当地 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeypeopleLocate; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员现状 |
||||
|
*/ |
||||
|
private String keypeopleStatus; |
||||
|
} |
@ -0,0 +1,207 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.opendata.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 事件信息表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-10-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BaseDisputeProcessDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 网格编码 |
||||
|
*/ |
||||
|
private String orgCode; |
||||
|
|
||||
|
/** |
||||
|
* 网格名称 |
||||
|
*/ |
||||
|
private String orgName; |
||||
|
|
||||
|
/** |
||||
|
* 事件名称 |
||||
|
*/ |
||||
|
private String eventName; |
||||
|
|
||||
|
/** |
||||
|
* 事件类别 |
||||
|
*/ |
||||
|
private String eventCategory; |
||||
|
|
||||
|
/** |
||||
|
* 上报时间 YYYY-MM-DD HH:MM:SS |
||||
|
*/ |
||||
|
private Date reportTime; |
||||
|
|
||||
|
/** |
||||
|
* 发生时间 格式为“YYYY-MM-DD” |
||||
|
*/ |
||||
|
private Date happenDate; |
||||
|
|
||||
|
/** |
||||
|
* 发生地点 |
||||
|
*/ |
||||
|
private String happenPlace; |
||||
|
|
||||
|
/** |
||||
|
* 事件简述 |
||||
|
*/ |
||||
|
private String eventDescription; |
||||
|
|
||||
|
/** |
||||
|
* 办结方式 01自办;02上报 源于居民端的最终结案的项目为02;工作端立项的项目最终结案的01 |
||||
|
*/ |
||||
|
private String waysOfResolving; |
||||
|
|
||||
|
/** |
||||
|
* 是否办结 Y:是、N:否 |
||||
|
*/ |
||||
|
private String successfulOrNo; |
||||
|
|
||||
|
/** |
||||
|
* 办结层级 |
||||
|
01省、自治区、直辖市 |
||||
|
02地、市、州、盟 |
||||
|
03县、市、区、旗 |
||||
|
04乡镇、街道 |
||||
|
05片区 |
||||
|
06村、社区 |
||||
|
07网格 |
||||
|
|
||||
|
*/ |
||||
|
private String completeLevel; |
||||
|
|
||||
|
/** |
||||
|
* 基础信息主键 |
||||
|
*/ |
||||
|
private String baseInfoId; |
||||
|
|
||||
|
/** |
||||
|
* 办结时间 |
||||
|
*/ |
||||
|
private Date completeTime; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private BigDecimal lng; |
||||
|
|
||||
|
/** |
||||
|
* 纬度 |
||||
|
*/ |
||||
|
private BigDecimal lat; |
||||
|
|
||||
|
/** |
||||
|
* 主要当事人姓名 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 涉及人数 |
||||
|
*/ |
||||
|
private Integer numberInvolved; |
||||
|
|
||||
|
/** |
||||
|
* 涉及单位 |
||||
|
*/ |
||||
|
private String relatedUnits; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所类别 01九小场所, 02公共场所 |
||||
|
*/ |
||||
|
private String keyAreaType; |
||||
|
|
||||
|
/** |
||||
|
* 宗教活动规模 01 0-50人,02 51-200人,03 201人以上 |
||||
|
|
||||
|
*/ |
||||
|
private String religionScale; |
||||
|
|
||||
|
/** |
||||
|
* 宗教类别 01道教 02佛教 03基督教 04伊斯兰教 05其他 |
||||
|
|
||||
|
*/ |
||||
|
private String religionType; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所是否变动 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeyareaState; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员是否在当地 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeypeopleLocate; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员现状 |
||||
|
*/ |
||||
|
private String keypeopleStatus; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识 0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Long delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.opendata.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.opendata.entity.BaseDisputeProcessEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 事件信息表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-10-15 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface BaseDisputeProcessDao extends BaseDao<BaseDisputeProcessEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,177 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.opendata.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 事件信息表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-10-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("base_dispute_process") |
||||
|
public class BaseDisputeProcessEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 网格编码 |
||||
|
*/ |
||||
|
private String orgCode; |
||||
|
|
||||
|
/** |
||||
|
* 网格名称 |
||||
|
*/ |
||||
|
private String orgName; |
||||
|
|
||||
|
/** |
||||
|
* 事件名称 |
||||
|
*/ |
||||
|
private String eventName; |
||||
|
|
||||
|
/** |
||||
|
* 事件类别 |
||||
|
*/ |
||||
|
private String eventCategory; |
||||
|
|
||||
|
/** |
||||
|
* 上报时间 YYYY-MM-DD HH:MM:SS |
||||
|
*/ |
||||
|
private Date reportTime; |
||||
|
|
||||
|
/** |
||||
|
* 发生时间 格式为“YYYY-MM-DD” |
||||
|
*/ |
||||
|
private Date happenDate; |
||||
|
|
||||
|
/** |
||||
|
* 发生地点 |
||||
|
*/ |
||||
|
private String happenPlace; |
||||
|
|
||||
|
/** |
||||
|
* 事件简述 |
||||
|
*/ |
||||
|
private String eventDescription; |
||||
|
|
||||
|
/** |
||||
|
* 办结方式 01自办;02上报 源于居民端的最终结案的项目为02;工作端立项的项目最终结案的01 |
||||
|
*/ |
||||
|
private String waysOfResolving; |
||||
|
|
||||
|
/** |
||||
|
* 是否办结 Y:是、N:否 |
||||
|
*/ |
||||
|
private String successfulOrNo; |
||||
|
|
||||
|
/** |
||||
|
* 办结层级 |
||||
|
01省、自治区、直辖市 |
||||
|
02地、市、州、盟 |
||||
|
03县、市、区、旗 |
||||
|
04乡镇、街道 |
||||
|
05片区 |
||||
|
06村、社区 |
||||
|
07网格 |
||||
|
|
||||
|
*/ |
||||
|
private String completeLevel; |
||||
|
|
||||
|
/** |
||||
|
* 基础信息主键 |
||||
|
*/ |
||||
|
private String baseInfoId; |
||||
|
|
||||
|
/** |
||||
|
* 办结时间 |
||||
|
*/ |
||||
|
private Date completeTime; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private BigDecimal lng; |
||||
|
|
||||
|
/** |
||||
|
* 纬度 |
||||
|
*/ |
||||
|
private BigDecimal lat; |
||||
|
|
||||
|
/** |
||||
|
* 主要当事人姓名 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 涉及人数 |
||||
|
*/ |
||||
|
private Integer numberInvolved; |
||||
|
|
||||
|
/** |
||||
|
* 涉及单位 |
||||
|
*/ |
||||
|
private String relatedUnits; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所类别 01九小场所, 02公共场所 |
||||
|
*/ |
||||
|
private String keyAreaType; |
||||
|
|
||||
|
/** |
||||
|
* 宗教活动规模 01 0-50人,02 51-200人,03 201人以上 |
||||
|
|
||||
|
*/ |
||||
|
private String religionScale; |
||||
|
|
||||
|
/** |
||||
|
* 宗教类别 01道教 02佛教 03基督教 04伊斯兰教 05其他 |
||||
|
|
||||
|
*/ |
||||
|
private String religionType; |
||||
|
|
||||
|
/** |
||||
|
* 重点场所是否变动 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeyareaState; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员是否在当地 Y:是、N:否 |
||||
|
*/ |
||||
|
private String isKeypeopleLocate; |
||||
|
|
||||
|
/** |
||||
|
* 重点人员现状 |
||||
|
*/ |
||||
|
private String keypeopleStatus; |
||||
|
|
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.opendata.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.opendata.dto.BaseDisputeProcessDTO; |
||||
|
import com.epmet.opendata.entity.BaseDisputeProcessEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 事件信息表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-10-15 |
||||
|
*/ |
||||
|
public interface BaseDisputeProcessService extends BaseService<BaseDisputeProcessEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<BaseDisputeProcessDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
PageData<BaseDisputeProcessDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<BaseDisputeProcessDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
List<BaseDisputeProcessDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return BaseDisputeProcessDTO |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
BaseDisputeProcessDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
void save(BaseDisputeProcessDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
void update(BaseDisputeProcessDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-10-15 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.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.BaseDisputeProcessDao; |
||||
|
import com.epmet.opendata.dto.BaseDisputeProcessDTO; |
||||
|
import com.epmet.opendata.entity.BaseDisputeProcessEntity; |
||||
|
import com.epmet.opendata.service.BaseDisputeProcessService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 2021-10-15 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class BaseDisputeProcessServiceImpl extends BaseServiceImpl<BaseDisputeProcessDao, BaseDisputeProcessEntity> implements BaseDisputeProcessService { |
||||
|
|
||||
|
@Override |
||||
|
public PageData<BaseDisputeProcessDTO> page(Map<String, Object> params) { |
||||
|
IPage<BaseDisputeProcessEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, BaseDisputeProcessDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<BaseDisputeProcessDTO> list(Map<String, Object> params) { |
||||
|
List<BaseDisputeProcessEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, BaseDisputeProcessDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<BaseDisputeProcessEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<BaseDisputeProcessEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public BaseDisputeProcessDTO get(String id) { |
||||
|
BaseDisputeProcessEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, BaseDisputeProcessDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(BaseDisputeProcessDTO dto) { |
||||
|
BaseDisputeProcessEntity entity = ConvertUtils.sourceToTarget(dto, BaseDisputeProcessEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(BaseDisputeProcessDTO dto) { |
||||
|
BaseDisputeProcessEntity entity = ConvertUtils.sourceToTarget(dto, BaseDisputeProcessEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.opendata.dao.BaseDisputeProcessDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.opendata.entity.BaseDisputeProcessEntity" id="baseDisputeProcessMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="orgCode" column="ORG_CODE"/> |
||||
|
<result property="orgName" column="ORG_NAME"/> |
||||
|
<result property="eventName" column="EVENT_NAME"/> |
||||
|
<result property="eventCategory" column="EVENT_CATEGORY"/> |
||||
|
<result property="reportTime" column="REPORT_TIME"/> |
||||
|
<result property="happenDate" column="HAPPEN_DATE"/> |
||||
|
<result property="happenPlace" column="HAPPEN_PLACE"/> |
||||
|
<result property="eventDescription" column="EVENT_DESCRIPTION"/> |
||||
|
<result property="waysOfResolving" column="WAYS_OF_RESOLVING"/> |
||||
|
<result property="successfulOrNo" column="SUCCESSFUL_OR_NO"/> |
||||
|
<result property="completeLevel" column="COMPLETE_LEVEL"/> |
||||
|
<result property="baseInfoId" column="BASE_INFO_ID"/> |
||||
|
<result property="completeTime" column="COMPLETE_TIME"/> |
||||
|
<result property="lng" column="LNG"/> |
||||
|
<result property="lat" column="LAT"/> |
||||
|
<result property="name" column="NAME"/> |
||||
|
<result property="numberInvolved" column="NUMBER_INVOLVED"/> |
||||
|
<result property="relatedUnits" column="RELATED_UNITS"/> |
||||
|
<result property="keyAreaType" column="KEY_AREA_TYPE"/> |
||||
|
<result property="religionScale" column="RELIGION_SCALE"/> |
||||
|
<result property="religionType" column="RELIGION_TYPE"/> |
||||
|
<result property="isKeyareaState" column="IS_KEYAREA_STATE"/> |
||||
|
<result property="isKeypeopleLocate" column="IS_KEYPEOPLE_LOCATE"/> |
||||
|
<result property="keypeopleStatus" column="KEYPEOPLE_STATUS"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue