|
|
@ -18,6 +18,7 @@ |
|
|
|
package com.epmet.redis; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.redis.RedisUtils; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.constant.GovIssueRedisKeys; |
|
|
@ -93,7 +94,7 @@ public class IssueProjectTagDictRedis { |
|
|
|
public Map<String,List<IssueCategoryTagResultDTO>> getDefaultTagsSortedByCategoryAndCustomizedTagsOrderByRank(String customerId,List<String> category) { |
|
|
|
if (StringUtils.isBlank(customerId)) { |
|
|
|
log.error("customerId can not be null when obtain govern tags."); |
|
|
|
return null; |
|
|
|
throw new RenException("customerId can not be null when obtain govern tags."); |
|
|
|
} |
|
|
|
|
|
|
|
IssueProjectCategoryDictEntity otherCategory = categoryDictDao.selectSingleByCustomerIdAndCategoryNameAndCategoryType(customerId, ModuleConstants.CATEGORY_NAME_OTHERS, null); |
|
|
@ -139,7 +140,7 @@ public class IssueProjectTagDictRedis { |
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(compensate)) { |
|
|
|
log.error("compensation failure or there is no tag data in database!!"); |
|
|
|
return null; |
|
|
|
throw new RenException("compensation failure or there is no tag data in database!!"); |
|
|
|
} else { |
|
|
|
log.warn("compensation completed!!"); |
|
|
|
return compensate; |
|
|
|