Beispiel #1
0
 /// <summary>
 /// 插入地图查询日志
 /// </summary>
 public bool InsertMapLog(s_log_mapEntity model)
 {
     using (conn = ConnectionFactory.CreateConnection())
     {
         if (conn.State == ConnectionState.Closed)
         {
             conn.Open();
         }
         string sql = SqlFactory.GetInsertSql(model);
         return(conn.Execute(sql, model) != 0);
     }
 }
Beispiel #2
0
        /// <summary>
        /// 插入地图查询日志
        /// </summary>
        public bool InsertMapLog(string userId, string token, string cph, string msg = null)
        {
            s_log_mapEntity model = new s_log_mapEntity();

            model.logid  = Guid.NewGuid().ToString();
            model.userId = userId;
            model.token  = token;
            model.cph    = cph;
            model.msg    = msg;
            model.cjsj   = DateTime.Now;
            return(InsertMapLog(model));
        }