File:view.html
Method:db.dataScalar(sql)
等待资源池 'default' (2)中的内存资源来执行该查询时发生超时。请重新运行该查询。 select count(*) from (select UserId from ororder where GoodsUserId=1075 group by UserId) a
数据库执行错误
xmls/head.xmls
$sub shophead(guserid){
//订单买家
@db=$db();
@db.setField($field(GoodsUserId,@guserid,number));
@
buyercount=@db.dataScalar(['select count(*) from (select UserId from ororder where GoodsUserId={*GoodsUserId} group by UserId) a']);
$return($empty);
}

$function headcata(){
$shell[AreaId]=$resource(config.res).get(AreaId);
@querycatalog=$query(catalog,goods);
@querycatalog[AreaId]=$shell[AreaId];
@catalogtb=@querycatalog.table(['CatalogName,CatalogId'],['ParentId=364 and Status=1 and AreaId={*AreaId}'],['Grade desc']);
@recomstr=$string();
@catalist=@catalogtb.format([#<li><a href="{...