|
@@ -162,7 +162,7 @@
|
|
select="query3" column="p_id">
|
|
select="query3" column="p_id">
|
|
</collection>
|
|
</collection>
|
|
<collection property="productCategory" ofType="cn.cslg.pas.common.model.vo.ProductCategoryVO"
|
|
<collection property="productCategory" ofType="cn.cslg.pas.common.model.vo.ProductCategoryVO"
|
|
- select="query4" column="product_category_id">
|
|
|
|
|
|
+ select="query4" column="{pc_id=product_category_id}">
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -197,7 +197,7 @@
|
|
license_rate,
|
|
license_rate,
|
|
create_person_name
|
|
create_person_name
|
|
from product_category
|
|
from product_category
|
|
- where id = #{product_category_id}
|
|
|
|
|
|
+ where id = #{pc_id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<resultMap id="query4Map" type="cn.cslg.pas.common.model.vo.ProductCategoryVO">
|
|
<resultMap id="query4Map" type="cn.cslg.pas.common.model.vo.ProductCategoryVO">
|
|
@@ -229,8 +229,11 @@
|
|
<!--List<ProductGroupVO> queryByGroupProductCategoryId(ProductQueryPageDTO productQueryPageDTO);-->
|
|
<!--List<ProductGroupVO> queryByGroupProductCategoryId(ProductQueryPageDTO productQueryPageDTO);-->
|
|
<select id="queryByGroupProductCategoryId" resultMap="queryByGroupProductCategoryIdMap">
|
|
<select id="queryByGroupProductCategoryId" resultMap="queryByGroupProductCategoryIdMap">
|
|
select product_category_id pci,
|
|
select product_category_id pci,
|
|
- #{orderBy} orderBy, #{orderType} orderType
|
|
|
|
- from product
|
|
|
|
|
|
+ product_category_name,
|
|
|
|
+ #{orderBy} orderBy,
|
|
|
|
+ #{orderType} orderType
|
|
|
|
+ from product p
|
|
|
|
+ join product_category pc on p.product_category_id = pc.id
|
|
<where>
|
|
<where>
|
|
<if test="productName != null">
|
|
<if test="productName != null">
|
|
and product_name like '%${productName}%'
|
|
and product_name like '%${productName}%'
|
|
@@ -257,6 +260,7 @@
|
|
|
|
|
|
<resultMap id="queryByGroupProductCategoryIdMap" type="cn.cslg.pas.common.model.vo.ProductGroupVO">
|
|
<resultMap id="queryByGroupProductCategoryIdMap" type="cn.cslg.pas.common.model.vo.ProductGroupVO">
|
|
<result column="product_category_id" property="productCategoryId"/>
|
|
<result column="product_category_id" property="productCategoryId"/>
|
|
|
|
+ <result column="product_category_name" property="productCategoryName"/>
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
select="queryByGroupProductCategoryId2" column="{pci=pci, orderBy=orderBy, orderType=orderType}">
|
|
select="queryByGroupProductCategoryId2" column="{pci=pci, orderBy=orderBy, orderType=orderType}">
|
|
</collection>
|
|
</collection>
|