|
@ -8,17 +8,15 @@ import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.dto.form.mq.MqBaseFormDTO; |
|
|
import com.epmet.commons.tools.dto.form.mq.MqBaseFormDTO; |
|
|
|
|
|
import com.epmet.commons.tools.enums.IcFormCodeEnum; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.enums.IcFormCodeEnum; |
|
|
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.redis.common.CustomerIcHouseRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerIcHouseRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.HouseInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.HouseInfoCache; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
import com.epmet.dao.IcVolunteerPolyCategoryDao; |
|
|
import com.epmet.dao.IcVolunteerPolyCategoryDao; |
|
@ -29,32 +27,33 @@ import com.epmet.dto.VolunteerInfoDTO; |
|
|
import com.epmet.dto.form.IcFormOptionsQueryFormDTO; |
|
|
import com.epmet.dto.form.IcFormOptionsQueryFormDTO; |
|
|
import com.epmet.dto.form.VolunteerPolyListFormDTO; |
|
|
import com.epmet.dto.form.VolunteerPolyListFormDTO; |
|
|
import com.epmet.dto.form.VolunteerPolyMapDataFormDTO; |
|
|
import com.epmet.dto.form.VolunteerPolyMapDataFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.VolunteerPolyPieFormDTO; |
|
|
import com.epmet.dto.result.ResiUserBaseInfoResultDTO; |
|
|
import com.epmet.dto.result.ResiUserBaseInfoResultDTO; |
|
|
import com.epmet.dto.result.VolunteerPolyListResultDTO; |
|
|
import com.epmet.dto.result.VolunteerPolyListResultDTO; |
|
|
import com.epmet.dto.result.VolunteerPolyMapDataResultDTO; |
|
|
import com.epmet.dto.result.VolunteerPolyMapDataResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.VolunteerPolyPieResultDTO; |
|
|
import com.epmet.entity.IcResiUserEntity; |
|
|
import com.epmet.entity.IcResiUserEntity; |
|
|
import com.epmet.dto.form.VolunteerPolyPieFormDTO; |
|
|
|
|
|
import com.epmet.dto.result.*; |
|
|
|
|
|
import com.epmet.entity.IcVolunteerPolyCategoryEntity; |
|
|
import com.epmet.entity.IcVolunteerPolyCategoryEntity; |
|
|
import com.epmet.entity.IcVolunteerPolyEntity; |
|
|
import com.epmet.entity.IcVolunteerPolyEntity; |
|
|
import com.epmet.entity.UserBaseInfoEntity; |
|
|
import com.epmet.entity.UserBaseInfoEntity; |
|
|
import com.epmet.feign.EpmetHeartOpenFeignClient; |
|
|
import com.epmet.feign.EpmetHeartOpenFeignClient; |
|
|
import com.epmet.service.IcVolunteerPolyCategoryService; |
|
|
|
|
|
import com.epmet.feign.OperCustomizeOpenFeignClient; |
|
|
import com.epmet.feign.OperCustomizeOpenFeignClient; |
|
|
|
|
|
import com.epmet.service.IcVolunteerPolyCategoryService; |
|
|
import com.epmet.service.IcVolunteerPolyService; |
|
|
import com.epmet.service.IcVolunteerPolyService; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
|
|
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 javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
import java.util.ArrayList; |
|
|
import java.util.*; |
|
|
import java.util.Arrays; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -191,7 +190,7 @@ public class IcVolunteerPolyServiceImpl extends BaseServiceImpl<IcVolunteerPolyD |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void volunteerDataExtraction(String customerId) { |
|
|
public void volunteerDataExtraction(String customerId) { |
|
|
if (StringUtils.isEmpty(customerId)) { |
|
|
if (StringUtils.isEmpty(customerId)) { |
|
|
throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), "客户ID不能为空", "客户ID不能为空"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "客户ID不能为空", "客户ID不能为空"); |
|
|
} |
|
|
} |
|
|
//获取居民信息表的志愿者
|
|
|
//获取居民信息表的志愿者
|
|
|
List<IcVolunteerPolyDTO> volunteerList = icResiUserDao.getVolunteerList(customerId, null); |
|
|
List<IcVolunteerPolyDTO> volunteerList = icResiUserDao.getVolunteerList(customerId, null); |
|
|