File:product.html
Method:query.table(columns,*where,*order,*top)
'=' 附近有语法错误。 select * FROM gocatalog WHERE AreaId=1 and ParentId=
数据库执行错误
xmls/product.xmls
...isttb);
}


//查询内容
$sub viewGoods(format){
@queryGoods=$query(goods,goods);
@queryGoods[GoodsCode]=$http.get(gId);
@rowGoods=@queryGoods.map(*,['GoodsCode={*GoodsCode}']);
$if(@rowGoods==$null){
$write.error();
}
@queryGoods[GoodsId]=@rowGoods[GoodsId];
@queryGoods.setField($field(Click,Click+1,object));
@queryGoods.update();
$shell.entry(@rowGoods);
$return($empty);
}

//根据类别查询(产品栏目)
$sub execatalog(format){
@query=$query(catalog,goods);
@query[ParentId]=$http.get(cid);
@
tables=@query.table(*,['AreaId=1 and ParentId={*ParentId}']);

@list=@tables.format(@format){
@dates=$var[CreateDate];
@date=$datetime(@dates);
@year=@date.year();
@month=@date.month();
@day=@date.day();
}
$return(@list);
}

$sub formatGoodsItem(){
@format=[#
<tr>
<td><span class="color6">{*GoodsCode}-{*Pack}</span></td>
<td><span class="color6 fontWe" id="{*ItemId}cmbertatals">{@price}</span></td>
<input type="hidden" value="{@totalprices}" id="{*ItemId}cmbertatals"/>
<td >{@t...