| | |
| | | <result property="attrMark" column="attr_mark" /> |
| | | <result property="sort" column="sort"/> |
| | | <result property="companyId" column="company_id" /> |
| | | <collection property="child" column="{attrId=attr_id, shopId=shop_id}" select="selectByParentIds"/> |
| | | <collection property="child" column="{attrId=attr_id, companyId=company_id}" select="selectByParentIds"/> |
| | | </resultMap> |
| | | |
| | | <!-- 根据id查询--> |
| | |
| | | select |
| | | <include refid="columns" ></include> |
| | | from shop_product_attribute |
| | | where parent_id=#{attrId} and shop_id=#{shopId} |
| | | where parent_id=#{attrId} and company_id=#{companyId} |
| | | </select> |
| | | |
| | | <!-- 根据编码查询--> |