QiFeng.ZWY.Bll/WechatLocationHistory.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QiFeng.LMSD.Dal;
using QiFeng.LMSD.Model;

namespace QiFeng.LMSD.Bll
{
    public class WechatLocationHistoryBll : BaseBll<WechatLocationHistoryBll>
    {
        /// <summary>
        /// 检查并创建用户地理位置上报数据表
        /// </summary>
        /// <param name="tableName"></param>
        public Result<string> CheckAndCreateNewWechatLocationHistoryTable(string tableName)
        {
            if (string.IsNullOrWhiteSpace(tableName))
            {
                return new Result<string>
                {
                    Status = false,
                    Message = "Error Create event history table",
                    Data = string.Empty
                };
            }

            try
            {
                WechatLocationHistoryDal.Instance.CheckAndCreateNewWechatLocationHistory(tableName);
                return new Result<string>
                {
                    Status = true,
                    Message = "Success",
                    Data = string.Empty
                };
            }
            catch (Exception ex)
            {
                _fileLog.Error("WechatParamQrCodeBll | CheckAndCreateNewWechatLocationHistoryTable | Exception: " + ex.Message +
                               ex.StackTrace);
                return new Result<string>
                {
                    Status = false,
                    Message = ex.Message,
                    Data = string.Empty
                };
            }
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(WechatLocationHistory model, string tableName)
        {
            return WechatLocationHistoryDal.Instance.Add(model, tableName);
        }

        /// <summary>
后面还有 30 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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