|  | @ -26,6 +26,7 @@ import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |  |  | import com.epmet.commons.tools.redis.common.CustomerStaffRedis; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.security.dto.TokenDto; |  |  | import com.epmet.commons.tools.security.dto.TokenDto; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.utils.ConvertUtils; |  |  | import com.epmet.commons.tools.utils.ConvertUtils; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.utils.DateUtils; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dao.IcPartyActivityDao; |  |  | import com.epmet.dao.IcPartyActivityDao; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.IcPartyActivityDTO; |  |  | import com.epmet.dto.IcPartyActivityDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.IcPartyUnitDTO; |  |  | import com.epmet.dto.IcPartyUnitDTO; | 
			
		
	
	
		
		
			
				
					|  | @ -42,6 +43,7 @@ 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 java.util.Date; | 
			
		
	
		
		
			
				
					|  |  | import java.util.List; |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					|  |  | import java.util.Map; |  |  | import java.util.Map; | 
			
		
	
		
		
			
				
					|  |  | import java.util.stream.Collectors; |  |  | import java.util.stream.Collectors; | 
			
		
	
	
		
		
			
				
					|  | @ -60,6 +62,14 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     public PageData<IcPartyActivityDTO> search(PartyActivityFormDTO formDTO) { |  |  |     public PageData<IcPartyActivityDTO> search(PartyActivityFormDTO formDTO) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null == formDTO.getStartTime()) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             Date startDate = DateUtils.parse("1900-01-01 00:00:00", DateUtils.DATE_TIME_PATTERN); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             formDTO.setStartTime(startDate); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null == formDTO.getEndTime()) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             Date endDate = DateUtils.parse("2099-12-31 00:00:00", DateUtils.DATE_TIME_PATTERN); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             formDTO.setEndTime(endDate); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); |  |  |         PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); | 
			
		
	
		
		
			
				
					|  |  |         LambdaQueryWrapper<IcPartyActivityEntity> wrapper = new LambdaQueryWrapper<>(); |  |  |         LambdaQueryWrapper<IcPartyActivityEntity> wrapper = new LambdaQueryWrapper<>(); | 
			
		
	
		
		
			
				
					|  |  |         wrapper.eq(IcPartyActivityEntity::getAgencyId, formDTO.getAgencyId()); |  |  |         wrapper.eq(IcPartyActivityEntity::getAgencyId, formDTO.getAgencyId()); | 
			
		
	
	
		
		
			
				
					|  | @ -85,6 +95,14 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     public List<IcPartyActivityDTO> list(PartyActivityFormDTO formDTO) { |  |  |     public List<IcPartyActivityDTO> list(PartyActivityFormDTO formDTO) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null == formDTO.getStartTime()) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             Date startDate = DateUtils.parse("1900-01-01 00:00:00", DateUtils.DATE_TIME_PATTERN); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             formDTO.setStartTime(startDate); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null == formDTO.getEndTime()) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             Date endDate = DateUtils.parse("2099-12-31 00:00:00", DateUtils.DATE_TIME_PATTERN); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             formDTO.setEndTime(endDate); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         LambdaQueryWrapper<IcPartyActivityEntity> wrapper = new LambdaQueryWrapper<>(); |  |  |         LambdaQueryWrapper<IcPartyActivityEntity> wrapper = new LambdaQueryWrapper<>(); | 
			
		
	
		
		
			
				
					|  |  |         wrapper.eq(IcPartyActivityEntity::getAgencyId, formDTO.getAgencyId()); |  |  |         wrapper.eq(IcPartyActivityEntity::getAgencyId, formDTO.getAgencyId()); | 
			
		
	
		
		
			
				
					|  |  |         wrapper.eq(StringUtils.isNotBlank(formDTO.getUnitId()), IcPartyActivityEntity::getUnitId, formDTO.getUnitId()); |  |  |         wrapper.eq(StringUtils.isNotBlank(formDTO.getUnitId()), IcPartyActivityEntity::getUnitId, formDTO.getUnitId()); | 
			
		
	
	
		
		
			
				
					|  | 
 |