File:product3.html
Method:query.map(columns,*where,*order)
'=' 附近有语法错误。 select top 1 * FROM gogoods WHERE GoodsId=
数据库执行错误
product.xmls
...tyle="margin-left: 5px;">上一页</a></li>
{*list}
<li><a href="{*next}" style="margin-left: 5px;">下一页</a></li>
#],12,@count,$http.get(page,1),page,3);
@body=@tableGoods.format(@format);
$if(@count==0){
@body=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">对不起,当前没有数据!</div>'];
}

$return(@body);
}

//查询内容
$sub viewGoods(format){
@queryGoods=$query(goods,goods);
@queryGoods[GoodsId]=$http.get(GoodsId);
@
rowGoods=@queryGoods.map(*,['GoodsId={*GoodsId}']);
$if(@rowGoods==$null){
$write.error();
}
@ghs=@rowGoods[Jinshitu];
$if(@ghs==$empty){
@ghsimg=[''];
}
$else{
@sktype=$string(@ghs).split(\,);
@ghsimg=$string();
@sktype.foreach(){
@ghsnum=$var[value];
@ghsimg.append(["<img src="{#root}files/GHS/GHS{@ghsnum}.jpg" style="width:66px;height:66px;"/>"]);
}
}
@queryGoods[GoodsId]=@rowGoods[GoodsId];
@queryGoods.setField($field(Click,Click+1,object));
@queryGoods.update();
$shell.en...