File:particulars.html
Method:map.get(key,default)
rowgoods??get
类型不正确
xmls/product.xmls
...Id={*GoodsId}']);
@cid=$http.get(cid,0);
@querycatalog[CatalogId]=@cid;
@cname=@querycatalog.scalar(CatalogName,['CatalogId={*CatalogId}']);
$if(@rowitem<>$null){
@ItemId=@rowitem[ItemId];
}
$else{
@ItemId=$empty;
}
@time=$empty;
@querycomment[GoodsId]=@GoodsId;
@rowcomment=@querycomment.map(*,['GoodsId={*GoodsId}']);
$if(@rowcomment<>$null){
@UserID=@rowcomment[UserID];
@time=@rowcomment[CreateDate];
@time=$datetime.format(@time,yyyy-MM-dd);
}
$else{
@rowcomment=$map();
}
@
AttrValueId=@rowgoods[AttrValueIds];
@countmn=@querygoods.scalar(['count(*)'],['GoodsId={*GoodsId} and Status=1 and AreaId={*AreaId}']);
@querycomment=$query(comment,goods);
@querycomment[GoodsId]=@GoodsId;
@plcount=@querycomment.scalar(['count(*)'],['GoodsId={*GoodsId}']);
@Queryitem=$query(item,goods);
@Queryitem[GoodsId]=@GoodsId;
@ustock=0;
@itemmap=@Queryitem.map(*,['GoodsId={*GoodsId}'],['ItemId asc']);
$if(@itemmap<>$null){
@ustock=@itemmap[Stock];
}



@M0odified=$empty;
...