File:goods-offer.html
Method:system.set()
Shopprice
对像不存在
xmls/goods.xmls
...Id={*GoodsId} and Status=1'],['ParaId asc']);
$if(@ParaMap==$null){
@ParaMap=$map();
$if($var[GoodsTypeId]==2){
@Shopprice=议价;
}
}
$else{
@queryitem=$query(item,goods);
@queryitem[GoodsId]=$var[GoodsId];
@queryitem[ParaId]=@ParaMap[ParaId];
@itemtRow=@queryitem.map(['isnull(min(Price),0) MinPrice,isnull(max(Price),0) MaxPrice'],['GoodsId={*GoodsId} and ParaId={*ParaId}']);
$if(@itemtRow[MinPrice]==@itemtRow[MaxPrice]){
$if(@itemtRow[MaxPrice]==0.00){
@Shopprice=议价;
}
$else{
@Sho
pprice=@itemtRow[MinPrice];
}
}
$else{
@Shopprice=@itemtRow[MinPrice];
}

}

}
$elseif(@scataid==366){
@BrandName=$var[BrandName];
@str=$string(@BrandName);
$if(@str.length()>4){
@BrandName=@str.substring(1,4);
}
@querypara=$query(spartitem,goods);
@querypara[GoodsId]=$var[GoodsId];
@ParaMap=@querypara.map(['ParaId,ParaType'],['GoodsId={*GoodsId}'],['ParaId asc']);
$if(@ParaMap==$null){
@ParaMap=$map();
}
}
$else{
@querybrand=$query(brand,goods);
@querybrand[BrandId]=$va...