BoomBoomBoom(提问者) 回复 黄源
select to_char(v3578.ID_系统字段) as ID,v3578.资产编号,v3578.资产名称,v3578.资产地址,v3578.出租面积,enum1.SHOWVALUE as 资产类别,v3578.应收年租金,v3578.土地面积,v3578.建筑面积,enum.SHOWVALUE as 出租状态,v3578.经度,v3578.纬度
from VIEW_FORMMAIN_3578 v3578
left join CTP_ENUM_ITEM enum on v3578.出租状态 = enum.ID
left join CTP_ENUM_ITEM enum1 on v3578.资产类别 = enum1.ID
where 1=1
${IF(len(id) == 0, \"\", \" and v3578.ID_系统字段 = \'\"+ id +\"\'\")}
${IF(len(companyName) == 0,\"\",\" and v3578.资产所属单位 in (\'\"+ companyName +\"\')\" )}