36 changed files with 1459 additions and 85 deletions
@ -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; |
|||
|
|||
} |
Loading…
Reference in new issue