diff --git a/TradeManageNew/DataNew.cs b/TradeManageNew/DataNew.cs index 4e858e2..0dbaa67 100644 --- a/TradeManageNew/DataNew.cs +++ b/TradeManageNew/DataNew.cs @@ -30582,13 +30582,15 @@ end else begin - insert into TemuChengBen(JinJia,YunFei,TouCheng,HuoWuShuiFei,YuGuJiaGe,CreateUserId,CreateTime) values(@JinJia,@YunFei,@HuoWuShuiFei,@YuGuJiaGe,@createUserId,GETDATE()) + insert into TemuChengBen(GoodsId,JinJia,YunFei,TouCheng,HuoWuShuiFei,YuGuJiaGe,CreateUserId,CreateTime) values(@GoodsId,@JinJia,@YunFei,@TouCheng,@HuoWuShuiFei,@YuGuJiaGe,@createUserId,GETDATE()) +set @id=SCOPE_IDENTITY() end select @id"; var db = DatabaseFactory.CreateDatabase(); var cmd = db.GetSqlStringCommand(sql); db.AddInParameter(cmd, "@id", DbType.Int32, md.ID); + db.AddInParameter(cmd, "@GoodsId", DbType.Int32, md.GoodsId); db.AddInParameter(cmd, "@JinJia", DbType.Decimal, md.JinJia); db.AddInParameter(cmd, "@YunFei", DbType.Decimal, md.YunFei); db.AddInParameter(cmd, "@TouCheng", DbType.Decimal, md.TouCheng); diff --git a/TradeManageNew/ModelNew.cs b/TradeManageNew/ModelNew.cs index a2aa035..9f1ec11 100644 --- a/TradeManageNew/ModelNew.cs +++ b/TradeManageNew/ModelNew.cs @@ -11218,10 +11218,11 @@ namespace TradeManageNew } - public class TemuChengBen { public int ID { get; set; } + + public int GoodsId { get; set; } public decimal? JinJia { get; set; } public decimal? YunFei { get; set; } public decimal? TouCheng { get; set; }