File:product-details.htm
Method:query.map(columns,*where,*order)
'=' 附近有语法错误。 select top 1 * FROM cpgoods WHERE GoodsCode=
数据库执行错误
xmls/brand.xmls
...0,0);
@querycata[CatalogId]=@CatalogId;
@AreaId=$shell[AreaId];
@querycata[AreaId]=@AreaId;
@cataname=@querycata.scalar(CatalogName,['CatalogId={*CatalogId} and AreaId={*AreaId}']);
@rowcontent=@querycata.row(@CatalogId);
@Modified=$empty;
$if(@rowcontent<>$null){

}
$else{
@rowcontent=$map();
@rowcontent[Title]=无数据;
}
$shell.put(@rowcontent);
$return($empty);
}

//产品详情
$sub viewGoods(){
@queryGoods=$query(goods,goods);
@Guid=$argv(0,$null);
@queryGoods[GoodsCode]=@Guid;
@
rowGoods=@queryGoods.map(*,['GoodsCode={*GoodsCode}']);
$if(@rowGoods[CAS]==$empty){
@ca=11111-01;

}
$else{
@ca=@rowGoods[CAS];
}
$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.setField($field(Click,Click+1,object));
@queryGoods...