File:view.html
Method:map.get(key,default)
rowmanufactor??get
类型不正确
xmls/goodsview.xmls
...;
$if(@row==$null){
$end();
}
$else{
@dbcatalog=$query(catalog,goods);
@dbcatalog[CatalogId]=@row[CatalogId];
@rowCatalog=@dbcatalog.map(['CatalogName'],['CatalogId={*CatalogId}']);
@dbmanufactor=$query(manufactor,user);
@dbmanufactor[UserId]=@row[UserId];
@rowmanufactor=@dbmanufactor.map(['CompanyName'],['UserId={*UserId}']);
@dbgoodsData=$query(goodsData,user);
@dbgoodsData[GoodsName]=@row[GoodsName];
@dbgoodsData[CatalogName]=@rowCatalog[CatalogName];
@dbgoodsData[CompanyName]=@
rowmanufactor[CompanyName];
@dbgoodsData[BrandName]=@row[BrandName];
@dbgoodsData[CreateDate]=$datetime.now().toString(yyyy-MM-dd);
@goodsDataCount=@dbgoodsData.scalar(['count(*)'],['GoodsName={*GoodsName} and CatalogName={*CatalogName} and CompanyName={*CompanyName} and BrandName={*BrandName} and CreateDate={*CreateDate}']);
$if(@goodsDataCount>0){
@dbgoodsMap=@dbgoodsData.map(['GoodsDataId,Click'],['GoodsName={*GoodsName} and CatalogName={*CatalogName} and CompanyName={*CompanyName} and B...