|
|
@ -20,12 +20,14 @@ package com.elink.esua.epdc.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.dao.VlounteerTeamRealationDao; |
|
|
|
import com.elink.esua.epdc.dto.VlounteerTeamRealationDTO; |
|
|
|
import com.elink.esua.epdc.dto.VolunteerInfoDTO; |
|
|
|
import com.elink.esua.epdc.entity.VlounteerTeamRealationEntity; |
|
|
|
import com.elink.esua.epdc.entity.VolunteerInfoEntity; |
|
|
|
import com.elink.esua.epdc.redis.VlounteerTeamRealationRedis; |
|
|
|
import com.elink.esua.epdc.service.VlounteerTeamRealationService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -58,6 +60,21 @@ public class VlounteerTeamRealationServiceImpl extends BaseServiceImpl<Vlounteer |
|
|
|
return getPageData(page, VlounteerTeamRealationDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<VlounteerTeamRealationDTO> getPageList(Map<String, Object> params) { |
|
|
|
IPage<VlounteerTeamRealationDTO> page = getPage(params); |
|
|
|
List<VlounteerTeamRealationDTO> list = baseDao.getPageList(params); |
|
|
|
return new PageData<>(list, page.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<VolunteerInfoDTO> getVolunteerListByTeamId(Map<String, Object> params) { |
|
|
|
IPage<VolunteerInfoEntity> page = getPage(params); |
|
|
|
//查询
|
|
|
|
List<VolunteerInfoEntity> list = baseDao.getVolunteerListByTeamId(params); |
|
|
|
return getPageData(list, page.getTotal(), VolunteerInfoDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<VlounteerTeamRealationDTO> list(Map<String, Object> params) { |
|
|
|
List<VlounteerTeamRealationEntity> entityList = baseDao.selectList(getWrapper(params)); |
|
|
@ -101,4 +118,6 @@ public class VlounteerTeamRealationServiceImpl extends BaseServiceImpl<Vlounteer |
|
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|