|
@@ -10,14 +10,37 @@
|
|
<result column="parentId" property="parentId"/>
|
|
<result column="parentId" property="parentId"/>
|
|
<result column="remark" property="remark"/>
|
|
<result column="remark" property="remark"/>
|
|
<result column="sign" property="sign"/>
|
|
<result column="sign" property="sign"/>
|
|
|
|
+ <collection property="productList" ofType="com.bosshand.virgo.api.workark.model.Product" resultMap="com.bosshand.virgo.api.workark.dao.ProductDao.result" columnPrefix="product_"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
+ <sql id="query">
|
|
|
|
+ select a.*,
|
|
|
|
+ b.id as product_id,
|
|
|
|
+ b.organizationId as product_organizationId,
|
|
|
|
+ b.state as product_state,
|
|
|
|
+ b.type as product_type,
|
|
|
|
+ b.productLevelId as product_productLevelId,
|
|
|
|
+ b.createTime as product_createTime,
|
|
|
|
+ b.updateTime as product_updateTime,
|
|
|
|
+ b.name as product_name,
|
|
|
|
+ b.price as product_price,
|
|
|
|
+ b.intro as product_intro,
|
|
|
|
+ b.listDisplayImage as product_listDisplayImage,
|
|
|
|
+ b.rotatingImages as product_rotatingImages,
|
|
|
|
+ b.detailedImage as product_detailedImage
|
|
|
|
+ from workark_product_level a left join workark_product b on a.id = b.productLevelId
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="getParentId" resultMap="result">
|
|
|
|
+ select * from workark_product_level where parentId = #{parentId}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="getSign" resultMap="result">
|
|
<select id="getSign" resultMap="result">
|
|
select * from workark_product_level where sign = #{sign}
|
|
select * from workark_product_level where sign = #{sign}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getList" resultMap="result">
|
|
<select id="getList" resultMap="result">
|
|
- select * from workark_product_level
|
|
|
|
|
|
+ <include refid="query"/>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getRoot" resultMap="result">
|
|
<select id="getRoot" resultMap="result">
|