|
|
|
@ -30614,10 +30614,10 @@ select @id";
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
string tsql = @"
|
|
|
|
|
SELECT a.[ID],a.[GoodsId],c.GoodsCode,[JinJia],[YunFei],[TouCheng],[HuoWuShuiFei],[YuGuJiaGe],[CreateUserId],[CreateTime]
|
|
|
|
|
FROM [newerpbak_cwk].[dbo].[TemuChengBen] a
|
|
|
|
|
SELECT top 1 a.[ID],a.[GoodsId],c.GoodsCode,[JinJia],[YunFei],[TouCheng],[HuoWuShuiFei],[YuGuJiaGe],[CreateUserId],[CreateTime]
|
|
|
|
|
FROM [dbo].[TemuChengBen] a
|
|
|
|
|
inner join HW_GoodsInfo c on a.GoodsId=c.GoodsId
|
|
|
|
|
where a.GoodsId = @GoodsId ";
|
|
|
|
|
where a.GoodsId = @GoodsId order by a.CreateTime desc";
|
|
|
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
|
DbCommand cmd = db.GetSqlStringCommand(tsql);
|
|
|
|
|
db.AddInParameter(cmd, "@GoodsId", DbType.Int32, GoodsId);
|
|
|
|
|