mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-15 05:46:49 +08:00
我的收藏
This commit is contained in:
@@ -291,16 +291,16 @@ public class FavoritesServiceImpl implements IFavoritesService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!noteList.isEmpty()){
|
if(!noteList.isEmpty()){
|
||||||
StringBuilder ids=new StringBuilder();
|
// StringBuilder ids=new StringBuilder();
|
||||||
for (String s:noteList) {
|
// for (String s:noteList) {
|
||||||
// ids.append("'");
|
//// ids.append("'");
|
||||||
ids.append(s);
|
// ids.append(s);
|
||||||
// ids.append("'");
|
//// ids.append("'");
|
||||||
ids.append(",");
|
// ids.append(",");
|
||||||
}
|
// }
|
||||||
ids.deleteCharAt(ids.length()-1);
|
// ids.deleteCharAt(ids.length()-1);
|
||||||
String sql="select id,course_name,content,sys_create_aid,sys_create_by,sys_create_time,praises,favorites,comments from boe_note_info where id in("+ids.toString()+")";
|
String sql="select id,course_name,content,sys_create_aid,sys_create_by,sys_create_time,praises,favorites,comments from boe_note_info where id in(?1)";
|
||||||
List<Object[]> list1 = dao.sqlFindList(sql);
|
List<Object[]> list1 = dao.sqlFindList(sql,noteList);
|
||||||
for (Object[] o:list1){
|
for (Object[] o:list1){
|
||||||
for (FavoriteTotalDto favoriteTotalDto : list.getList()) {
|
for (FavoriteTotalDto favoriteTotalDto : list.getList()) {
|
||||||
if(o[0].equals(favoriteTotalDto.getId())){
|
if(o[0].equals(favoriteTotalDto.getId())){
|
||||||
|
|||||||
Reference in New Issue
Block a user