QiFeng.ZWY.Dal/Commodity.cs

(开头部分) 24KB

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

namespace QiFeng.LMSD.Dal
{
    public partial class CommodityDal : BaseDal<CommodityDal>
    {
        #region 默认方法
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(Commodity model)
        {
            var strSql = new StringBuilder();
            strSql.Append("insert into Commodity(");
            strSql.Append("CommTypeId,IsTicket,CommName,NetContent,UnitPrice,Brief,Introduction,PlaceOfOrigin,StorageMode,UseSymptoms,Contraindication,ManufactureDate,ExpirationDate,Gender,MixedIngredients,Postage,ServiceIds,Inventory,UpdateAccountId,UpdateDate,IsRecommend,RecommendOrder,IsSupportIntegral,IntegralNumber,IntegralMoney,IntegralPostage,IntegralExchangeNum,AddDate,AddMcAccountId,IsDelete");
            strSql.Append(") values (");
            strSql.Append("@CommTypeId,@IsTicket,@CommName,@NetContent,@UnitPrice,@Brief,@Introduction,@PlaceOfOrigin,@StorageMode,@UseSymptoms,@Contraindication,@ManufactureDate,@ExpirationDate,@Gender,@MixedIngredients,@Postage,@ServiceIds,@Inventory,@UpdateAccountId,@UpdateDate,@IsRecommend,@RecommendOrder,@IsSupportIntegral,@IntegralNumber,@IntegralMoney,@IntegralPostage,@IntegralExchangeNum,@AddDate,@AddMcAccountId,@IsDelete");
            strSql.Append(") ");
            strSql.Append(";select @@IDENTITY");
            SqlParameter[] parameters = {
                        new SqlParameter("@CommTypeId", SqlDbType.Int,4) ,
                        new SqlParameter("@IsTicket", SqlDbType.Bit,1) ,
                        new SqlParameter("@CommName", SqlDbType.NVarChar,50) ,
                        new SqlParameter("@NetContent", SqlDbType.Int,4) ,
                        new SqlParameter("@UnitPrice", SqlDbType.Decimal,9) ,
                        new SqlParameter("@Brief", SqlDbType.NVarChar,500) ,
                        new SqlParameter("@Introduction", SqlDbType.NVarChar,-1) ,
                        new SqlParameter("@PlaceOfOrigin", SqlDbType.NVarChar,200) ,
                        new SqlParameter("@StorageMode", SqlDbType.NVarChar,200) ,
                        new SqlParameter("@UseSymptoms", SqlDbType.NVarChar,500) ,
                        new SqlParameter("@Contraindication", SqlDbType.NVarChar,500) ,
                        new SqlParameter("@ManufactureDate", SqlDbType.DateTime) ,
                        new SqlParameter("@ExpirationDate", SqlDbType.DateTime) ,
                        new SqlParameter("@Gender", SqlDbType.Int,4) ,
                        new SqlParameter("@MixedIngredients", SqlDbType.NVarChar,500) ,
                        new SqlParameter("@Postage", SqlDbType.Decimal,9) ,
                        new SqlParameter("@ServiceIds", SqlDbType.NVarChar,200) ,
                        new SqlParameter("@Inventory", SqlDbType.Int,4) ,
                        new SqlParameter("@UpdateAccountId", SqlDbType.Int,4) ,
                        new SqlParameter("@UpdateDate", SqlDbType.DateTime) ,
                        new SqlParameter("@IsRecommend", SqlDbType.Bit,1) ,
                        new SqlParameter("@RecommendOrder", SqlDbType.Int,4) ,
                        new SqlParameter("@IsSupportIntegral", SqlDbType.Bit,1) ,
                        new SqlParameter("@IntegralNumber", SqlDbType.Int,4) ,
                        new SqlParameter("@IntegralMoney", SqlDbType.Decimal,9) ,
                        new SqlParameter("@IntegralPostage", SqlDbType.Decimal,9) ,
                        new SqlParameter("@IntegralExchangeNum", SqlDbType.Int,4) ,
                        new SqlParameter("@AddDate", SqlDbType.DateTime) ,
                        new SqlParameter("@AddMcAccountId", SqlDbType.Int,4) ,
                        new SqlParameter("@IsDelete", SqlDbType.Bit,1)

后面还有 398 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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