fix:修改管理端获取活动信息添加联系方式
This commit is contained in:
parent
a092e38c08
commit
323f730255
@ -55,6 +55,12 @@ public class AdminActivityInfoCollectionResp {
|
|||||||
@Schema(description = "出生年月")
|
@Schema(description = "出生年月")
|
||||||
private LocalDate childBirthDate;
|
private LocalDate childBirthDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号
|
||||||
|
*/
|
||||||
|
@Schema(description = "手机号")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 年级
|
* 年级
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package com.seer.teach.mp.admin.convert;
|
|||||||
import com.seer.teach.mp.admin.controller.resp.AdminActivityInfoCollectionResp;
|
import com.seer.teach.mp.admin.controller.resp.AdminActivityInfoCollectionResp;
|
||||||
import com.seer.teach.mp.entity.MpActivityInfoCollectionEntity;
|
import com.seer.teach.mp.entity.MpActivityInfoCollectionEntity;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
|
import org.mapstruct.Mapping;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -12,6 +13,7 @@ public interface AdminActivityInfoCollectionConvert {
|
|||||||
|
|
||||||
AdminActivityInfoCollectionConvert INSTANCE = Mappers.getMapper(AdminActivityInfoCollectionConvert.class);
|
AdminActivityInfoCollectionConvert INSTANCE = Mappers.getMapper(AdminActivityInfoCollectionConvert.class);
|
||||||
|
|
||||||
|
@Mapping(source = "mobile", target = "mobile")
|
||||||
AdminActivityInfoCollectionResp convertToResp(MpActivityInfoCollectionEntity entity);
|
AdminActivityInfoCollectionResp convertToResp(MpActivityInfoCollectionEntity entity);
|
||||||
|
|
||||||
List<AdminActivityInfoCollectionResp> convertToRespList(List<MpActivityInfoCollectionEntity> entity);
|
List<AdminActivityInfoCollectionResp> convertToRespList(List<MpActivityInfoCollectionEntity> entity);
|
||||||
|
|||||||
@ -43,6 +43,7 @@ public class AdminActivityInfoCollectionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取活动信息收集记录详情
|
* 获取活动信息收集记录详情
|
||||||
|
*
|
||||||
* @param id 记录ID
|
* @param id 记录ID
|
||||||
* @return 详情
|
* @return 详情
|
||||||
*/
|
*/
|
||||||
@ -53,6 +54,7 @@ public class AdminActivityInfoCollectionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除活动信息收集记录
|
* 删除活动信息收集记录
|
||||||
|
*
|
||||||
* @param ids 删除的ID列表
|
* @param ids 删除的ID列表
|
||||||
* @return 删除结果
|
* @return 删除结果
|
||||||
*/
|
*/
|
||||||
@ -66,7 +68,7 @@ public class AdminActivityInfoCollectionService {
|
|||||||
* @param activityId 活动Id
|
* @param activityId 活动Id
|
||||||
* @return 返回活动列表
|
* @return 返回活动列表
|
||||||
*/
|
*/
|
||||||
public PageListBean<AdminActivityInfoCollectionResp> list(ActivityInfoCollectionQueryReq req ,Integer activityId) {
|
public PageListBean<AdminActivityInfoCollectionResp> list(ActivityInfoCollectionQueryReq req, Integer activityId) {
|
||||||
LambdaQueryWrapper<MpActivityInfoCollectionEntity> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<MpActivityInfoCollectionEntity> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(MpActivityInfoCollectionEntity::getActivityId, activityId)
|
wrapper.eq(MpActivityInfoCollectionEntity::getActivityId, activityId)
|
||||||
.like(Objects.nonNull(req.getChildName()) && !req.getChildName().isEmpty(), MpActivityInfoCollectionEntity::getChildName, req.getChildName())
|
.like(Objects.nonNull(req.getChildName()) && !req.getChildName().isEmpty(), MpActivityInfoCollectionEntity::getChildName, req.getChildName())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user