|
@@ -22,7 +22,7 @@ namespace GxPress.Service.Implement.Reply
|
|
|
/// <returns></returns>
|
|
|
public async Task<IEnumerable<ReplyResult>> GetReplyNoteOrTopicResults(ReplyRequest request)
|
|
|
{
|
|
|
- var noteConstValue = AllTypeConst.Note.GetHashCode();
|
|
|
+ var noteConstValue = AllTypeConst.TopicNote.GetHashCode();
|
|
|
string sqlStr = string.Empty;
|
|
|
if (!string.IsNullOrEmpty(request.KeyWord))
|
|
|
{
|
|
@@ -60,6 +60,7 @@ namespace GxPress.Service.Implement.Reply
|
|
|
WHERE
|
|
|
1=1 AND a.TypeValue ={noteConstValue}
|
|
|
AND b.IsDelete = 0
|
|
|
+ and b.IsTopic=1
|
|
|
{sqlStr}
|
|
|
ORDER BY a.CreatedDate DESC
|
|
|
";
|
|
@@ -176,7 +177,6 @@ namespace GxPress.Service.Implement.Reply
|
|
|
/// <returns></returns>
|
|
|
public async Task<IEnumerable<ReplyResult>> GetReplyNoticeTopicResults(ReplyRequest request)
|
|
|
{
|
|
|
- var topicConstValue = AllTypeConst.Topic.GetHashCode();
|
|
|
string sqlStr = string.Empty;
|
|
|
if (!string.IsNullOrEmpty(request.KeyWord))
|
|
|
{
|