...
|
...
|
@@ -40,11 +40,13 @@ public class UserdayLeaveWordsServiceImpl implements IUserdayLeaveWordsService { |
|
|
}
|
|
|
|
|
|
// (2)查询列表
|
|
|
String uidStr = 0 == uid ? String.valueOf(uid) : "0," + uid;
|
|
|
List<UserdayLeaveWords> userdayLeaveWordsList = userdayLeaveWordsDAO.selectLeaveWordsList(uidStr);
|
|
|
if (null == userdayLeaveWordsList || 0 == userdayLeaveWordsList.size()) {
|
|
|
return new ArrayList<>();
|
|
|
//查询自己的留言
|
|
|
List<UserdayLeaveWords> userdayLeaveWordsList = userdayLeaveWordsDAO.selectLeaveWordsList(uid);
|
|
|
if (userdayLeaveWordsList == null) {
|
|
|
userdayLeaveWordsList = new ArrayList<>();
|
|
|
}
|
|
|
//查询公共留言
|
|
|
userdayLeaveWordsList.addAll(userdayLeaveWordsDAO.selectLeaveWordsList(0));
|
|
|
|
|
|
// (3)组装数据并返回
|
|
|
List<String> result = new ArrayList<>();
|
...
|
...
|
|