|
|
@ -39,6 +39,7 @@ import com.epmet.dto.result.UpdateTagUseCountsResultDTO; |
|
|
|
import com.epmet.entity.TagCustomerEntity; |
|
|
|
import com.epmet.entity.TagScopeEntity; |
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
|
import com.epmet.redis.TagRedis; |
|
|
|
import com.epmet.service.TagCustomerService; |
|
|
|
import com.epmet.utils.TagColorUtils; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
@ -68,7 +69,8 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
private TagScopeDao tagScopeDao; |
|
|
|
@Autowired |
|
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private TagRedis tagRedis; |
|
|
|
|
|
|
|
/** |
|
|
|
* pc标签管理-分页查询 |
|
|
@ -118,6 +120,8 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
tagScopeDao.insert(tagScopeEntity); |
|
|
|
}); |
|
|
|
} |
|
|
|
//删除redis缓存
|
|
|
|
tagRedis.clearCustomerTag(dto.getCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -149,6 +153,7 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
tagScopeDao.insert(tagScopeEntity); |
|
|
|
}); |
|
|
|
} |
|
|
|
tagRedis.clearCustomerTag(dto.getCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -199,6 +204,7 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
.set(TagCustomerEntity::getUpdatedTime, new Date()) |
|
|
|
.set(TagCustomerEntity::getShowFlag,showFlag); |
|
|
|
baseDao.update(null,tagCustomerUpdateWrapper); |
|
|
|
tagRedis.clearCustomerTag(EpmetRequestHolder.getLoginUserCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -224,7 +230,7 @@ public class TagCustomerServiceImpl extends BaseServiceImpl<TagCustomerDao, TagC |
|
|
|
Result<List<AgencyResultDTO>> communityRes = govOrgOpenFeignClient.getAllCommunity(customerId); |
|
|
|
if (communityRes.success() && CollectionUtils.isNotEmpty(communityRes.getData())) { |
|
|
|
int communityTotal = communityRes.getData().size(); |
|
|
|
int num = 1; |
|
|
|
int num = 0; |
|
|
|
for (TagCustomerEntity tag : tagList) { |
|
|
|
for (AgencyResultDTO agencyResultDTO : communityRes.getData()) { |
|
|
|
TagScopeEntity tagScopeEntity = new TagScopeEntity(); |
|
|
|