|
@ -14,6 +14,7 @@ import com.epmet.service.stats.user.FactParticipationUserGridDailyService; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.util.CollectionUtils; |
|
|
import org.springframework.util.CollectionUtils; |
|
|
import com.epmet.constant.ScreenConstant; |
|
|
import com.epmet.constant.ScreenConstant; |
|
|
|
|
|
|
|
@ -97,6 +98,7 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
List<String> gridIds = (List<String>) agencyMap.get(agencyId); |
|
|
List<String> gridIds = (List<String>) agencyMap.get(agencyId); |
|
|
List<PartyMemberInfoResultDTO> partyMemberInfoList = partyMemberService.selectPartyMemberInfo(customerId, gridIds); |
|
|
List<PartyMemberInfoResultDTO> partyMemberInfoList = partyMemberService.selectPartyMemberInfo(customerId, gridIds); |
|
|
if (!CollectionUtils.isEmpty(partyMemberInfoList)){ |
|
|
if (!CollectionUtils.isEmpty(partyMemberInfoList)){ |
|
|
|
|
|
// 为每个人赋值年龄
|
|
|
partyMemberInfoList.forEach(party -> { |
|
|
partyMemberInfoList.forEach(party -> { |
|
|
party.setAge(getAge(party.getBirthday())); |
|
|
party.setAge(getAge(party.getBirthday())); |
|
|
}); |
|
|
}); |
|
@ -152,8 +154,8 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
List<UserCountResultDTO> userCountRList = userAgencyDailyService.selectUserCount(customerId, dateId); |
|
|
List<UserCountResultDTO> userCountRList = userAgencyDailyService.selectUserCount(customerId, dateId); |
|
|
agencyIdList.forEach(agency -> { |
|
|
agencyIdList.forEach(agency -> { |
|
|
String agencyId = agency.getAgencyId(); |
|
|
String agencyId = agency.getAgencyId(); |
|
|
Map<String, Object> agencyMap = agencyService.selectAllSubAgencyId(agencyId, customerId); |
|
|
// 下级机关agencyId
|
|
|
List<String> agencyIds = (List<String>) agencyMap.get(agencyId); |
|
|
List<String> agencyIds = agencyService.selectSubAgencyId(agencyId, customerId); |
|
|
// todo
|
|
|
// todo
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -227,6 +229,7 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2020/9/23 10:13 上午 |
|
|
* @date 2020/9/23 10:13 上午 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void delAndInsert(List<PartyBaseInfoFormDTO> result, String customerId, String dateId){ |
|
|
public void delAndInsert(List<PartyBaseInfoFormDTO> result, String customerId, String dateId){ |
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
List<String> orgIds = result.stream().map(m -> m.getOrgId()).collect(Collectors.toList()); |
|
|
List<String> orgIds = result.stream().map(m -> m.getOrgId()).collect(Collectors.toList()); |
|
|