mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
首页推荐案例查询bug修复
This commit is contained in:
@@ -934,11 +934,11 @@ public class CasesServiceImpl implements ICasesService {
|
||||
List<Cases> result = new ArrayList<>();
|
||||
try {
|
||||
String hql = "select a.caseId FROM CasesRecommendPushRecord a left join Cases b ON a.caseId = b.id WHERE a.pushUserId=?1 and b.deleted = false group by a.caseId ORDER By a.pushTime DESC";
|
||||
List<Object[]> listFields = casesRecommendDao.findListFields(hql, CASE_LEN, accountId);
|
||||
List<Long> caseIds = new ArrayList<>();
|
||||
List<String> listFields = casesRecommendDao.findListFields(hql, CASE_LEN, ListUtil.toList(accountId));
|
||||
List<String> caseIds = new ArrayList<>();
|
||||
if (CollUtil.isNotEmpty(listFields)) {
|
||||
for (Object[] objs : listFields) {
|
||||
caseIds.add(resultToVo(objs));
|
||||
for (String objs : listFields) {
|
||||
caseIds.add(objs);
|
||||
}
|
||||
}
|
||||
int caseIdLen = caseIds.size();
|
||||
@@ -983,11 +983,6 @@ public class CasesServiceImpl implements ICasesService {
|
||||
return casesVos;
|
||||
}
|
||||
|
||||
private Long resultToVo(Object[] objs) {
|
||||
Long caseId = (Long) objs[0];
|
||||
return caseId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void excellent(String id, Boolean excellent) {
|
||||
//取消时,把时间清空
|
||||
|
||||
@@ -53,7 +53,7 @@ class CasesServiceImplTest {
|
||||
@Test
|
||||
void queryCaseV2() {
|
||||
CurrentUser currentUser = new CurrentUser();
|
||||
currentUser.setAccountId("12323");
|
||||
currentUser.setAccountId("965342027497607168");
|
||||
List<CasesVo> list = casesService.caseIndexV2(currentUser);
|
||||
System.out.println(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user