<!-- 获得销售对象--> <select id="querySpecErpSales" parameterClass="string" resultMap="erpSaleRef" > <![CDATA[ SELECT rel.Id,rel.AREAID,rel.TYPEID,rel.INCOME,type.TYPENAME,area.AREANAME FROM ERP_SALES_RELATION rel,ERP_SALES_TYPE type,ERP_SALES_AREA area WHERE area.AREANAME=#areaName# and area.AREAID=rel.AREAID and rel.TYPEID= type.TYPEID ]]> </select>
</sqlMap>
这是我的ErpSalesRelation类 public class ErpSalesRelation { private int id; private int typeId; private int areaId; private String typeName; private String areaName; private String income;