|
@@ -25,11 +25,15 @@ public class RetrievalMappingFacade extends RetrievalMappingServiceImpl {
|
|
* @param ids
|
|
* @param ids
|
|
* @return questionId-标签id,cou-别名个数
|
|
* @return questionId-标签id,cou-别名个数
|
|
*/
|
|
*/
|
|
- public Map<Long,Integer> getMapCouByQuesIds(List<Long> ids){
|
|
|
|
|
|
+ public Map<Long,Long> getMapCouByQuesIds(List<Long> ids){
|
|
|
|
+ Map<Long,Long> retMap = new HashMap<Long,Long>();
|
|
if(ListUtil.isEmpty(ids)){
|
|
if(ListUtil.isEmpty(ids)){
|
|
- return new HashMap<Long,Integer>();
|
|
|
|
|
|
+ return retMap;
|
|
}
|
|
}
|
|
- return this.baseMapper.getMapCouByQuesIds(ids);
|
|
|
|
|
|
+ this.baseMapper.getMapCouByQuesIds(ids).forEach(i->{
|
|
|
|
+ retMap.put((Long)(i.get("questionId")), (Long)(i.get("cou")));
|
|
|
|
+ });
|
|
|
|
+ return retMap;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|