File:goods-offer.html
Method:query(table,*app,*connect)
default.manufactor
对像不存在
xmls/goods.xmls
...Map[CatalogId];
@countcrid=@db.dataScalar(['select count(*) from goods_goods goo left join usmanufactor man on goo.ManufactorId=man.ManufactorId where goo.Status=1 and man.Status=1 and man.mStatus=0 and goo.AreaId={*AreaId} and CatalogId={*CatalogId}']);
@counttplx=@db.dataScalar(['select count(*) from goods_goods goo left join usmanufactor man on goo.ManufactorId=man.ManufactorId where goo.Status=1 and man.Status=1 and man.mStatus=0 and goo.AreaId={*AreaId} and SerialsId={*SerialsId}']);

@
queryman=$query(manufactor,user);
@queryman[UserId]=@GoMap[UserId];
@itemdt(@GoMap[GoodsId]);
@Pic=@GoMap[Pic];
$if($file.existsFile($file.getMapPath(@Pic))==0){
@Pic=['images/default.jpg'];
}
@ManMap=@queryman.map(['CompanyName,ManufactorId,sjTag,datediff(year,ChenliDate,getdate()) ChenliDate,CompanyQQ,Counsel,Cgroup,ConfigID'],['UserId={*UserId}']);
@ChenliDate=$iif(@ManMap[ChenliDate]==0,-,@ManMap[ChenliDate]);
@renzheng=$string();
@sjTag=$string(@ManMap[sjTag]);
$if(@sjTag...