QiFeng.ZWY.Dal/ZhiWYPublicParameter.cs

(开头部分) 9KB

这里只显示每个文件的开头 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;
using QiFeng.LMSD.Model.EnumModel;

namespace QiFeng.LMSD.Dal
{
    public partial class ZhiWYPublicParameterDal : BaseDal<ZhiWYPublicParameterDal>
    {
        #region 默认方法
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(ZhiWYPublicParameter model)
        {
            var strSql = new StringBuilder();
            strSql.Append("insert into ZhiWYPublicParameter(");
            strSql.Append("ParameterType,AppId,AppName,AppKey,PublicKey,PrivateKey,AppSecret,CooperationId,BusinessUser,Code,TemplateCode,TimeOutExpress,Remark,IsDelete");
            strSql.Append(") values (");
            strSql.Append("@ParameterType,@AppId,@AppName,@AppKey,@PublicKey,@PrivateKey,@AppSecret,@CooperationId,@BusinessUser,@Code,@TemplateCode,@TimeOutExpress,@Remark,@IsDelete");
            strSql.Append(") ");
            strSql.Append(";select @@IDENTITY");
            SqlParameter[] parameters = {
                        new SqlParameter("@ParameterType", SqlDbType.Int,4) ,
                        new SqlParameter("@AppId", SqlDbType.NVarChar,200) ,
                        new SqlParameter("@AppName", SqlDbType.NVarChar,50) ,
                        new SqlParameter("@AppKey", SqlDbType.NVarChar,-1) ,
                        new SqlParameter("@PublicKey", SqlDbType.NVarChar,-1) ,
                        new SqlParameter("@PrivateKey", SqlDbType.NVarChar,-1) ,
                        new SqlParameter("@AppSecret", SqlDbType.NVarChar,-1) ,
                        new SqlParameter("@CooperationId", SqlDbType.NVarChar,250) ,
                        new SqlParameter("@BusinessUser", SqlDbType.NVarChar,250) ,
                        new SqlParameter("@Code", SqlDbType.NVarChar,250) ,
                        new SqlParameter("@TemplateCode", SqlDbType.NChar,10) ,
                        new SqlParameter("@TimeOutExpress", SqlDbType.Int,4) ,
                        new SqlParameter("@Remark", SqlDbType.NVarChar,250) ,
                        new SqlParameter("@IsDelete", SqlDbType.Bit,1)

            };

            parameters[0].Value = model.ParameterType;
            parameters[1].Value = model.AppId;
            parameters[2].Value = model.AppName;
            parameters[3].Value = model.AppKey;
            parameters[4].Value = model.PublicKey;
            parameters[5].Value = model.PrivateKey;
            parameters[6].Value = model.AppSecret;
            parameters[7].Value = model.CooperationId;
            parameters[8].Value = model.BusinessUser;
            parameters[9].Value = model.Code;
            parameters[10].Value = model.TemplateCode;
            parameters[11].Value = model.TimeOutExpress;
            parameters[12].Value = model.Remark;
            parameters[13].Value = model.IsDelete;
            var obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
            return obj == null ? 0 : Convert.ToInt32(obj);
后面还有 147 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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