|
@ -23,15 +23,18 @@ import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
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.utils.ConvertUtils; |
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.dao.VolunteerTagDao; |
|
|
import com.elink.esua.epdc.dao.VolunteerTagDao; |
|
|
import com.elink.esua.epdc.dto.VolunteerTagDTO; |
|
|
import com.elink.esua.epdc.dto.VolunteerTagDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.VolunteerTagsResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.VolunteerTagsResultDTO; |
|
|
|
|
|
import com.elink.esua.epdc.dto.epdc.result.VolunteerTagsSumResultDTO; |
|
|
import com.elink.esua.epdc.entity.VolunteerTagEntity; |
|
|
import com.elink.esua.epdc.entity.VolunteerTagEntity; |
|
|
import com.elink.esua.epdc.service.VolunteerTagService; |
|
|
import com.elink.esua.epdc.service.VolunteerTagService; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.Arrays; |
|
|
import java.util.Arrays; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
@ -103,4 +106,21 @@ public class VolunteerTagServiceImpl extends BaseServiceImpl<VolunteerTagDao, Vo |
|
|
return baseDao.selectListOfVolunteerTags(); |
|
|
return baseDao.selectListOfVolunteerTags(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result<List<VolunteerTagsSumResultDTO>> getVolunteerTags() { |
|
|
|
|
|
List<VolunteerTagsSumResultDTO> result = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
VolunteerTagsSumResultDTO firstCtegory = new VolunteerTagsSumResultDTO(); |
|
|
|
|
|
firstCtegory.setTypeName("服务团"); |
|
|
|
|
|
firstCtegory.setLists(baseDao.selectListByCategory("1")); |
|
|
|
|
|
result.add(firstCtegory); |
|
|
|
|
|
|
|
|
|
|
|
VolunteerTagsSumResultDTO secondCtegory = new VolunteerTagsSumResultDTO(); |
|
|
|
|
|
secondCtegory.setTypeName("服务队"); |
|
|
|
|
|
secondCtegory.setLists(baseDao.selectListByCategory("2")); |
|
|
|
|
|
result.add(secondCtegory); |
|
|
|
|
|
|
|
|
|
|
|
return new Result<List<VolunteerTagsSumResultDTO>>().ok(result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|