64 changed files with 1921 additions and 169 deletions
@ -1,13 +1,16 @@ |
|||||
package com.epmet.constant; |
package com.epmet.constants; |
||||
|
|
||||
/** |
/** |
||||
* 导入任务的业务类型常量 |
* 导入任务的业务类型常量 |
||||
*/ |
*/ |
||||
public interface ImportTaskConstants { |
public interface ImportTaskConstants { |
||||
/** |
/** |
||||
* 居民 |
* 业务类型:居民 |
||||
*/ |
*/ |
||||
String BIZ_TYPE_RESI = "resi"; |
String BIZ_TYPE_RESI = "resi"; |
||||
|
String BIZ_TYPE_NEIGHBOR_HOOD = "neighborHood"; |
||||
|
String BIZ_TYPE_BUILDING = "building"; |
||||
|
String BIZ_TYPE_HOUSE = "house"; |
||||
|
|
||||
/** |
/** |
||||
* 处理状态:处理中 |
* 处理状态:处理中 |
||||
@ -0,0 +1,47 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
@Data |
||||
|
public class ImportTaskCommonFormDTO { |
||||
|
|
||||
|
public interface Create {} |
||||
|
public interface Finish {} |
||||
|
|
||||
|
/** |
||||
|
* 操作者ID |
||||
|
*/ |
||||
|
@NotBlank(message = "操作者ID必填", groups = { Create.class, Finish.class }) |
||||
|
private String operatorId; |
||||
|
|
||||
|
/** |
||||
|
* 业务类型 |
||||
|
*/ |
||||
|
@NotBlank(message = "业务类型必填", groups = { Create.class }) |
||||
|
private String bizType; |
||||
|
|
||||
|
/** |
||||
|
* 任务ID |
||||
|
*/ |
||||
|
@NotBlank(message = "任务ID必填", groups = { Finish.class }) |
||||
|
private String taskId; |
||||
|
|
||||
|
/** |
||||
|
* 处理状态 |
||||
|
*/ |
||||
|
@NotBlank(message = "处理状态必填", groups = { Finish.class }) |
||||
|
private String processStatus; |
||||
|
|
||||
|
/** |
||||
|
* 结果文件 url |
||||
|
*/ |
||||
|
private String resultDescFilePath; |
||||
|
|
||||
|
/** |
||||
|
* 结果描述文本 |
||||
|
*/ |
||||
|
private String resultDesc; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
@Data |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
public class ImportTaskCommonResultDTO { |
||||
|
|
||||
|
private String taskId; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
package com.epmet.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
||||
|
import com.epmet.commons.tools.exception.EpmetException; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dto.form.ImportTaskCommonFormDTO; |
||||
|
import com.epmet.dto.result.ImportTaskCommonResultDTO; |
||||
|
import com.epmet.service.ImportTaskService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("import-task") |
||||
|
public class ImportTaskController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ImportTaskService importTaskService; |
||||
|
|
||||
|
/** |
||||
|
* 创建导入任务 |
||||
|
* @param input |
||||
|
* @return |
||||
|
*/ |
||||
|
@RequestMapping("create") |
||||
|
public Result<ImportTaskCommonResultDTO> createTask(@RequestBody ImportTaskCommonFormDTO input) { |
||||
|
ValidatorUtils.validateEntity(input, ImportTaskCommonFormDTO.Create.class); |
||||
|
String operatorId = input.getOperatorId(); |
||||
|
String bizType = input.getBizType(); |
||||
|
|
||||
|
String taskId = importTaskService.createProcessTask(operatorId, bizType); |
||||
|
ImportTaskCommonResultDTO ro = new ImportTaskCommonResultDTO(taskId); |
||||
|
return new Result().ok(ro); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 结束任务 |
||||
|
* @param input |
||||
|
* @return |
||||
|
*/ |
||||
|
@RequestMapping("finish") |
||||
|
public Result finishTask(@RequestBody ImportTaskCommonFormDTO input) { |
||||
|
ValidatorUtils.validateEntity(input, ImportTaskCommonFormDTO.Finish.class); |
||||
|
Boolean finished = importTaskService.finish(input.getTaskId(), input.getProcessStatus(), input.getOperatorId(), input.getResultDescFilePath(), input.getResultDesc()); |
||||
|
if (!finished) { |
||||
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), |
||||
|
"失败,请确认任务是否存在,以及是否已完成", |
||||
|
"失败,请确认任务是否存在,以及是否已完成"); |
||||
|
} |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,47 @@ |
|||||
|
package com.epmet.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-02-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("import_task") |
||||
|
public class ImportTaskEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 业务类型。resi:居民;楼栋:building;房屋:house。依次补充 |
||||
|
*/ |
||||
|
private String bizType; |
||||
|
|
||||
|
/** |
||||
|
* 处理状态。processing:处理中;finished:完成; |
||||
|
*/ |
||||
|
private String processStatus; |
||||
|
|
||||
|
/** |
||||
|
* 谁导入的 |
||||
|
*/ |
||||
|
private String operatorId; |
||||
|
|
||||
|
/** |
||||
|
* 开始导入的时间 |
||||
|
*/ |
||||
|
private Date startTime; |
||||
|
|
||||
|
private String resultDescFile; |
||||
|
|
||||
|
private String resultDesc; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,85 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcActivityServiceRelationDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 活动ID |
||||
|
*/ |
||||
|
private String activityId; |
||||
|
|
||||
|
/** |
||||
|
* act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识 0未删除、1已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,89 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcActivityUnitRelationDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 活动ID |
||||
|
*/ |
||||
|
private String activityId; |
||||
|
|
||||
|
/** |
||||
|
* act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 单位ID |
||||
|
*/ |
||||
|
private String unitId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识 0未删除、1已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,79 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LatestActServiceRelationDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* latest_act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识 0未删除、1已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,84 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LatestActUnitRelationDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* latest_act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 单位ID |
||||
|
*/ |
||||
|
private String unitId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识 0未删除、1已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.IcActivityServiceRelationEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IcActivityServiceRelationDao extends BaseDao<IcActivityServiceRelationEntity> { |
||||
|
/** |
||||
|
* 删除活动所属服务 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:19 |
||||
|
*/ |
||||
|
void deleteByActivity(@Param("activityId") String activityId); |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.IcActivityUnitRelationEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IcActivityUnitRelationDao extends BaseDao<IcActivityUnitRelationEntity> { |
||||
|
/** |
||||
|
* 删除活动所属单位 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:19 |
||||
|
*/ |
||||
|
void deleteByActivity(@Param("activityId") String activityId); |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.LatestActServiceRelationEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LatestActServiceRelationDao extends BaseDao<LatestActServiceRelationEntity> { |
||||
|
/** |
||||
|
* 删除活动所属服务 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:19 |
||||
|
*/ |
||||
|
void deleteByActivity(@Param("activityId") String activityId); |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.LatestActUnitRelationEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LatestActUnitRelationDao extends BaseDao<LatestActUnitRelationEntity> { |
||||
|
/** |
||||
|
* 删除活动所属服务 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:19 |
||||
|
*/ |
||||
|
void deleteByActivity(@Param("activityId") String activityId); |
||||
|
} |
||||
@ -0,0 +1,56 @@ |
|||||
|
package com.epmet.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("ic_activity_service_relation") |
||||
|
public class IcActivityServiceRelationEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 活动ID |
||||
|
*/ |
||||
|
private String activityId; |
||||
|
|
||||
|
/** |
||||
|
* act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,56 @@ |
|||||
|
package com.epmet.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("ic_activity_unit_relation") |
||||
|
public class IcActivityUnitRelationEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 活动ID |
||||
|
*/ |
||||
|
private String activityId; |
||||
|
|
||||
|
/** |
||||
|
* act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 单位ID |
||||
|
*/ |
||||
|
private String unitId; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("latest_act_service_relation") |
||||
|
public class LatestActServiceRelationEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* latest_act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
private String serviceMatter; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("latest_act_unit_relation") |
||||
|
public class LatestActUnitRelationEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 组织的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* latest_act_info表ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 单位ID |
||||
|
*/ |
||||
|
private String unitId; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.IcActivityServiceRelationEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
public interface IcActivityServiceRelationService extends BaseService<IcActivityServiceRelationEntity> { |
||||
|
/** |
||||
|
* 获取活动所属服务事项 |
||||
|
* |
||||
|
* @Param activityId 活动ID |
||||
|
* @Return {@link List <String>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 14:36 |
||||
|
*/ |
||||
|
List<String> getServiceList(String activityId); |
||||
|
|
||||
|
/** |
||||
|
* 删除活动所属服务事项 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:10 |
||||
|
*/ |
||||
|
void deleteByActivity(String activityId); |
||||
|
} |
||||
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.IcActivityUnitRelationEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
public interface IcActivityUnitRelationService extends BaseService<IcActivityUnitRelationEntity> { |
||||
|
/** |
||||
|
* 获取活动所属党建单位 |
||||
|
* |
||||
|
* @Param activityId 活动ID |
||||
|
* @Return {@link List<String>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 14:36 |
||||
|
*/ |
||||
|
List<String> getUnitList(String activityId); |
||||
|
|
||||
|
/** |
||||
|
* 删除活动所属单位 |
||||
|
* |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:10 |
||||
|
*/ |
||||
|
void deleteByActivity(String activityId); |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.LatestActServiceRelationEntity; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
public interface LatestActServiceRelationService extends BaseService<LatestActServiceRelationEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.LatestActUnitRelationEntity; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
public interface LatestActUnitRelationService extends BaseService<LatestActUnitRelationEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
package com.epmet.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.dao.IcActivityServiceRelationDao; |
||||
|
import com.epmet.entity.IcActivityServiceRelationEntity; |
||||
|
import com.epmet.service.IcActivityServiceRelationService; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与服务事项关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class IcActivityServiceRelationServiceImpl extends BaseServiceImpl<IcActivityServiceRelationDao, IcActivityServiceRelationEntity> implements IcActivityServiceRelationService { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 获取活动所属服务事项 |
||||
|
* |
||||
|
* @param activityId |
||||
|
* @Param activityId 活动ID |
||||
|
* @Return {@link List <String>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 14:36 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<String> getServiceList(String activityId) { |
||||
|
LambdaQueryWrapper<IcActivityServiceRelationEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(IcActivityServiceRelationEntity::getActivityId, activityId); |
||||
|
wrapper.orderByAsc(IcActivityServiceRelationEntity::getSort); |
||||
|
List<IcActivityServiceRelationEntity> list = baseDao.selectList(wrapper); |
||||
|
if (CollectionUtils.isEmpty(list)) { |
||||
|
return Collections.emptyList(); |
||||
|
} |
||||
|
return list.stream().map(IcActivityServiceRelationEntity::getServiceMatter).collect(Collectors.toList()); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除活动所属服务事项 |
||||
|
* |
||||
|
* @param activityId |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:10 |
||||
|
*/ |
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void deleteByActivity(String activityId) { |
||||
|
baseDao.deleteByActivity(activityId); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,60 @@ |
|||||
|
package com.epmet.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.dao.IcActivityUnitRelationDao; |
||||
|
import com.epmet.entity.IcActivityUnitRelationEntity; |
||||
|
import com.epmet.service.IcActivityUnitRelationService; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class IcActivityUnitRelationServiceImpl extends BaseServiceImpl<IcActivityUnitRelationDao, IcActivityUnitRelationEntity> implements IcActivityUnitRelationService { |
||||
|
|
||||
|
/** |
||||
|
* 获取活动所属党建单位 |
||||
|
* |
||||
|
* @param activityId |
||||
|
* @Param activityId 活动ID |
||||
|
* @Return {@link List <String>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 14:36 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<String> getUnitList(String activityId) { |
||||
|
LambdaQueryWrapper<IcActivityUnitRelationEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(IcActivityUnitRelationEntity::getActivityId, activityId); |
||||
|
wrapper.orderByAsc(IcActivityUnitRelationEntity::getSort); |
||||
|
List<IcActivityUnitRelationEntity> list = baseDao.selectList(wrapper); |
||||
|
if (CollectionUtils.isEmpty(list)) { |
||||
|
return Collections.emptyList(); |
||||
|
} |
||||
|
return list.stream().map(IcActivityUnitRelationEntity::getUnitId).collect(Collectors.toList()); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除活动所属单位 |
||||
|
* |
||||
|
* @param activityId |
||||
|
* @Param activityId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2022/2/21 16:10 |
||||
|
*/ |
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void deleteByActivity(String activityId) { |
||||
|
baseDao.deleteByActivity(activityId); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.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.dao.LatestActServiceRelationDao; |
||||
|
import com.epmet.dto.LatestActServiceRelationDTO; |
||||
|
import com.epmet.entity.LatestActServiceRelationEntity; |
||||
|
import com.epmet.redis.LatestActServiceRelationRedis; |
||||
|
import com.epmet.service.LatestActServiceRelationService; |
||||
|
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-02-21 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LatestActServiceRelationServiceImpl extends BaseServiceImpl<LatestActServiceRelationDao, LatestActServiceRelationEntity> implements LatestActServiceRelationService { |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
package com.epmet.service.impl; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.dao.LatestActUnitRelationDao; |
||||
|
import com.epmet.entity.LatestActUnitRelationEntity; |
||||
|
import com.epmet.service.LatestActUnitRelationService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* 联建活动与单位关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-02-21 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LatestActUnitRelationServiceImpl extends BaseServiceImpl<LatestActUnitRelationDao, LatestActUnitRelationEntity> implements LatestActUnitRelationService { |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
<?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.dao.IcActivityServiceRelationDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.IcActivityServiceRelationEntity" id="icActivityServiceRelationMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="agencyId" column="AGENCY_ID"/> |
||||
|
<result property="pids" column="PIDS"/> |
||||
|
<result property="activityId" column="ACTIVITY_ID"/> |
||||
|
<result property="actId" column="ACT_ID"/> |
||||
|
<result property="serviceMatter" column="SERVICE_MATTER"/> |
||||
|
<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> |
||||
|
<delete id="deleteByActivity"> |
||||
|
DELETE FROM ic_activity_service_relation WHERE ACTIVITY_ID = #{activityId} |
||||
|
</delete> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,26 @@ |
|||||
|
<?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.dao.IcActivityUnitRelationDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.IcActivityUnitRelationEntity" id="icActivityUnitRelationMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="agencyId" column="AGENCY_ID"/> |
||||
|
<result property="pids" column="PIDS"/> |
||||
|
<result property="activityId" column="ACTIVITY_ID"/> |
||||
|
<result property="actId" column="ACT_ID"/> |
||||
|
<result property="unitId" column="UNIT_ID"/> |
||||
|
<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> |
||||
|
<delete id="deleteByActivity"> |
||||
|
DELETE FROM ic_activity_unit_relation WHERE ACTIVITY_ID = #{activityId} |
||||
|
</delete> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,24 @@ |
|||||
|
<?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.dao.LatestActServiceRelationDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.LatestActServiceRelationEntity" id="latestActServiceRelationMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="agencyId" column="AGENCY_ID"/> |
||||
|
<result property="pids" column="PIDS"/> |
||||
|
<result property="actId" column="ACT_ID"/> |
||||
|
<result property="serviceMatter" column="SERVICE_MATTER"/> |
||||
|
<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> |
||||
|
<delete id="deleteByActivity"> |
||||
|
DELETE FROM latest_act_service_relation WHERE ACT_ID = #{activityId} |
||||
|
</delete> |
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,24 @@ |
|||||
|
<?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.dao.LatestActUnitRelationDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.LatestActUnitRelationEntity" id="latestActUnitRelationMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="agencyId" column="AGENCY_ID"/> |
||||
|
<result property="pids" column="PIDS"/> |
||||
|
<result property="actId" column="ACT_ID"/> |
||||
|
<result property="unitId" column="UNIT_ID"/> |
||||
|
<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> |
||||
|
<delete id="deleteByActivity"> |
||||
|
DELETE FROM latest_act_unit_relation WHERE ACT_ID = #{activityId} |
||||
|
</delete> |
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,12 @@ |
|||||
|
package com.epmet.constant; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/2/21 4:25 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
public interface ImportErrorMsgConstants { |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.model; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/2/15 10:07 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BuildingErrorInfoModel { |
||||
|
|
||||
|
@ExcelProperty(value = "小区名称") |
||||
|
private String neighborHoodName; |
||||
|
|
||||
|
@ExcelProperty(value = "楼栋名称") |
||||
|
private String buildingName; |
||||
|
|
||||
|
@ExcelProperty(value = "错误信息") |
||||
|
private String errorMsg; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.model; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/2/13 1:26 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class HouseErrorInfoModel { |
||||
|
|
||||
|
@ExcelProperty(value = "所属小区") |
||||
|
private String neighborHoodName; |
||||
|
|
||||
|
@ExcelProperty(value = "所属楼栋") |
||||
|
private String buildingName; |
||||
|
|
||||
|
@ExcelProperty(value = "单元号") |
||||
|
private Integer buildingUnit; |
||||
|
|
||||
|
@ExcelProperty(value = "门牌号") |
||||
|
private String doorName; |
||||
|
|
||||
|
@ExcelProperty(value = "错误信息") |
||||
|
private String errorMsg; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.model; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/2/15 2:15 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class NeighborHoodErrorInfoModel { |
||||
|
|
||||
|
@ExcelProperty(value = "小区名称") |
||||
|
private String neighborHoodName; |
||||
|
|
||||
|
@ExcelProperty(value = "错误信息") |
||||
|
private String errorMsg; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,2 @@ |
|||||
|
alter table customer_agency add COLUMN CENTER_ADDRESS VARCHAR(128) comment '中心点位地址' AFTER LATITUDE; |
||||
|
alter table customer_grid add COLUMN CENTER_ADDRESS VARCHAR(128) comment '中心点位地址' AFTER LATITUDE; |
||||
Loading…
Reference in new issue