File:cn/goods.htm
Method:query.map(columns,*where,*order)
'=' 附近有语法错误。 select top 1 * FROM cpgoods WHERE GoodsId =
数据库执行错误
cn/xmls/goods.xmls
... $if(@brandMap==$null){
@brandMap=$map();
}
@queryuser=$query(user,user);
@queryuser[UserId]=@UserId;
@userMap=@queryuser.map(['UserGrade'],['UserId={*UserId}']);
$if(!@userMap){
@userMap[UserGrade]=0;
}
@pro=$call(~apps/user/shopcart.xmls);
@pro.getPormotion(@brandMap[PromotionIds],@cataMap[PromotionIds],@itemMap[PromotionIds],@itemMap[Price],1,@userMap[UserGrade]);
}

//产品详情
$sub viewGoods(){
@queryGoods=$query(goods,goods);
@Guid=$argv(0,$null);
@queryGoods[GoodsId]=@Guid;
@
rowGoods=@queryGoods.map(*,['{*GoodsId =}']);
$if(!@rowGoods){
$write.error();
$end();
}
//安全图片
@GHS=$string(@rowGoods[GHScode]);
@gimg=$string();
@GHSs=@GHS.split(\,);
@GHSs.foreach(){
@var=$var[value];
$if(@var){
@gimg.append(["<img src='../../files/GHS/{@var}.jpg' class='Ghs'/>"]);
}
}
@queryGoods[GoodsId]=@rowGoods[GoodsId];
@queryGoods[Click]=(@rowGoods[Click]+1);
//@queryGoods.setField($field(Click,Click+1,objectformatGoodsItem));
@queryGoods.update();
@rowGoods[Gimg]=@g...