QiFeng.ZWY.Dal/DalExt/CommodityExtDal.cs
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using QiFeng.LMSD.DBUtility;
using QiFeng.LMSD.Model;
using QiFeng.LMSD.Model.EnumModel;
using QiFeng.LMSD.Utility;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QiFeng.LMSD.Dal.DalExt
{
public class CommodityExtDal : BaseDal<CommodityExtDal>
{
#region 方法
/// <summary>
/// 增加一件商品
/// </summary>
public int AddTranCommodity(SqlConnection connection, SqlTransaction sqlTran, 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) ,
后面还有 610 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。