QiFeng.ZWY.Dal/WechatMsgConfig.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using QiFeng.LMSD.DBUtility;
using QiFeng.LMSD.Model;
namespace QiFeng.LMSD.Dal
{
public partial class WechatMsgConfigDal : BaseDal<WechatMsgConfigDal>
{
#region 默认方法
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(WechatMsgConfig model)
{
var strSql=new StringBuilder();
strSql.Append("insert into WechatMsgConfig(");
strSql.Append("WechatInfoId,MsgType,ApplySceneType,MsgRequestMsgType,MsgRequestContent,ReplyMsgContent,MediaId,Title,Description,MusicUrl,HQMusicUrl,ThumbMediaId,ArticleCount,IsDelete");
strSql.Append(") values (");
strSql.Append("@WechatInfoId,@MsgType,@ApplySceneType,@MsgRequestMsgType,@MsgRequestContent,@ReplyMsgContent,@MediaId,@Title,@Description,@MusicUrl,@HQMusicUrl,@ThumbMediaId,@ArticleCount,@IsDelete");
strSql.Append(") ");
strSql.Append(";select @@IDENTITY");
SqlParameter[] parameters = {
new SqlParameter("@WechatInfoId", SqlDbType.Int,4) ,
new SqlParameter("@MsgType", SqlDbType.NVarChar,64) ,
new SqlParameter("@ApplySceneType", SqlDbType.Int,4) ,
new SqlParameter("@MsgRequestMsgType", SqlDbType.NVarChar,64) ,
new SqlParameter("@MsgRequestContent", SqlDbType.NVarChar,256) ,
new SqlParameter("@ReplyMsgContent", SqlDbType.NVarChar,512) ,
new SqlParameter("@MediaId", SqlDbType.NVarChar,64) ,
new SqlParameter("@Title", SqlDbType.NVarChar,128) ,
new SqlParameter("@Description", SqlDbType.NVarChar,512) ,
new SqlParameter("@MusicUrl", SqlDbType.NVarChar,512) ,
new SqlParameter("@HQMusicUrl", SqlDbType.NVarChar,512) ,
new SqlParameter("@ThumbMediaId", SqlDbType.NVarChar,64) ,
new SqlParameter("@ArticleCount", SqlDbType.Int,4) ,
new SqlParameter("@IsDelete", SqlDbType.Bit,1)
};
parameters[0].Value = model.WechatInfoId;
parameters[1].Value = model.MsgType;
parameters[2].Value = model.ApplySceneType;
parameters[3].Value = model.MsgRequestMsgType;
parameters[4].Value = model.MsgRequestContent;
parameters[5].Value = model.ReplyMsgContent;
parameters[6].Value = model.MediaId;
parameters[7].Value = model.Title;
parameters[8].Value = model.Description;
parameters[9].Value = model.MusicUrl;
parameters[10].Value = model.HQMusicUrl;
parameters[11].Value = model.ThumbMediaId;
parameters[12].Value = model.ArticleCount;
parameters[13].Value = model.IsDelete;
var obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
return obj == null ? 0 : Convert.ToInt32(obj);
}
后面还有 191 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。