Browse Source

Merge remote-tracking branch 'origin_elink/yantai_zhengwu_master'

dev
yinzuomei 2 years ago
parent
commit
1c0e8e3853
  1. 3
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagCustomerServiceImpl.java

3
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/TagCustomerServiceImpl.java

@ -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++;
}

Loading…
Cancel
Save