|
|
@ -242,12 +242,15 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
int communityTotal = communityRes.getData().size(); |
|
|
|
int num = 0; |
|
|
|
for (TagCustomerEntity tag : tagList) { |
|
|
|
tagScopeDao.deleteByTagId(tag.getId(),tag.getCustomerId()); |
|
|
|
for (AgencyResultDTO agencyResultDTO : communityRes.getData()) { |
|
|
|
TagScopeEntity tagScopeEntity = new TagScopeEntity(); |
|
|
|
tagScopeEntity.setCustomerId(tag.getCustomerId()); |
|
|
|
tagScopeEntity.setTagId(tag.getId()); |
|
|
|
tagScopeEntity.setAgencyId(agencyResultDTO.getAgencyId()); |
|
|
|
tagScopeEntity.setOrgIdPath(agencyResultDTO.getOrgIdPath()); |
|
|
|
tagScopeEntity.setAgencyName(agencyResultDTO.getAgencyName()); |
|
|
|
tagScopeEntity.setPid(agencyResultDTO.getPid()); |
|
|
|
tagScopeDao.insert(tagScopeEntity); |
|
|
|
num++; |
|
|
|
} |
|
|
|