SourceCode/RFrameGenerate.BLL/KeywordsManage.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RFrameGenerate.Model;

namespace RFrameGenerate.BLL
{
    public class KeywordsManage
    {
        /// <summary>
        /// get keywordlist by gridmodel
        /// </summary>
        /// <param name="gridModel"></param>
        /// <returns></returns>
        public static List<T_BAS_Keywords> GetKeyWordList(GridModel gridModel)
        {
            using (var query = Factory.CreateT_BAS_Keywords())
            {
                return query.GetPageList(gridModel, c => c.MerchantGuid == RFrameGenerate.Common.CurrentManage.MerchantGuid && c.Keyword !=RFrameGenerate.BLL.DictionaryConst.WeiXinAutoReply.ReplyKeyword.Subscribe && c.Keyword != RFrameGenerate.BLL.DictionaryConst.WeiXinAutoReply.ReplyKeyword.Default);
            }
        }
        /// <summary>
        /// get keywordlist by merchantguid
        /// </summary>
        /// <returns></returns>
        public static List<T_BAS_Keywords> GetKeyWordList()
        {
            using (var query = Factory.CreateT_BAS_Keywords())
            {
                return query.GetList(c => c.MerchantGuid == RFrameGenerate.Common.CurrentManage.MerchantGuid);
            }
        }

        /// <summary>
        /// get keywordlist by kedword
        /// </summary>
        /// <param name="gridModel"></param>
        /// <param name="keyword"></param>
        /// <returns></returns>
        public static List<T_BAS_Keywords> GetKeyWordList(GridModel gridModel,string keyword)
        {
            using (var query = Factory.CreateT_BAS_Keywords())
            {
                return query.GetList(c => c.MerchantGuid == RFrameGenerate.Common.CurrentManage.MerchantGuid && c.Keyword==keyword);
            }
        }

        public static Result AddAndUpdateKeyword(T_BAS_Keywords entity)
        {
            using (var query = Factory.CreateT_BAS_Keywords())
            {
                if (entity.KeywordGuid==Guid.Empty)
                {
                    entity.MerchantGuid = RFrameGenerate.Common.CurrentManage.MerchantGuid;
                    entity.KeywordGuid = Guid.NewGuid();
                    query.Add(entity);
                }
                else
                {
后面还有 58 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。