在开发中遇以下错误,
在使用xml文件where语句时,我类A引用类B,前台根据类B属性查询A的信息。
<select id="selectCommodityList" parameterType="com.zwyl.kks.commodity.entity.Commodity" resultMap="commodityMap">
SELECT
c.commodity_id ,c.commodity_name,
c.commodity_order,
c.commodity_status_code,c.upc,c.sku,
c.inventory_type_code,
c.factory_number,c.sell_price,
c.commodity_order,
b.brand_name,b.term_trade_codes,
f.file_id,f.is_home
FROM
commodity c,
brand b,
commodity_file f
<where>
c.brand_id=b.brand_id AND c.commodity_id=f.commodity_id
<if test="commodityName!=null and commodityName!=''">
AND (c.commodity_name LIKE '%${commodityName}%'
OR c.commodity_ename LIKE '%${commodityName}%')
</if>
<if test="factoryNumber!