lihao 4 anos atrás
pai
commit
402ddfb39d

+ 4 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Notice/NoticeService.cs

@@ -365,7 +365,10 @@ namespace GxPress.Service.Implement.Notice
             }
             else if (request.SearchType > 3)
             {
-                query.Where("tede_notice.TypeValue", request.SearchType);
+                if (request.SearchType == 16)
+                    query.WhereIn("tede_notice.TypeValue", new List<int> { AllTypeConst.Notice.GetHashCode(), AllTypeConst.Missive.GetHashCode(), request.SearchType, AllTypeConst.Anonymity.GetHashCode() });
+                else
+                    query.Where("tede_notice.TypeValue", request.SearchType);
                 query.WhereNot("tede_middle.NoticeAddresseeType", 2);
                 query.Where("tede_middle.IsDelete", false);
             }