|
@@ -223,6 +223,7 @@
|
|
<select id="queryByGroupProductCategoryId" resultMap="queryByGroupProductCategoryIdMap">
|
|
<select id="queryByGroupProductCategoryId" resultMap="queryByGroupProductCategoryIdMap">
|
|
select product_category_id pci,
|
|
select product_category_id pci,
|
|
product_category_name,
|
|
product_category_name,
|
|
|
|
+ p.tenant_id pTenantId,
|
|
ifnull(#{orderBy}, '') orderBy,
|
|
ifnull(#{orderBy}, '') orderBy,
|
|
ifnull(#{orderType}, '') orderType,
|
|
ifnull(#{orderType}, '') orderType,
|
|
ifnull(#{productName}, '') productName,
|
|
ifnull(#{productName}, '') productName,
|
|
@@ -265,7 +266,7 @@
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
select="queryByGroupProductCategoryId2"
|
|
select="queryByGroupProductCategoryId2"
|
|
column="{pci=pci, orderBy=orderBy, orderType=orderType, productName=productName, companyName=companyName,
|
|
column="{pci=pci, orderBy=orderBy, orderType=orderType, productName=productName, companyName=companyName,
|
|
- patentNo=patentNo, productCategoryId=productCategoryId, productCategoryName=productCategoryName}">
|
|
|
|
|
|
+ patentNo=patentNo, productCategoryId=productCategoryId, productCategoryName=productCategoryName, pTenantId=pTenantId}">
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -305,7 +306,7 @@
|
|
and product_category_id = #{pci}
|
|
and product_category_id = #{pci}
|
|
</if>
|
|
</if>
|
|
<if test="true">
|
|
<if test="true">
|
|
- and p.tenant_id = #{tenantId}
|
|
|
|
|
|
+ and p.tenant_id = #{pTenantId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by
|
|
order by
|
|
@@ -323,6 +324,7 @@
|
|
<!--List<ProductGroupVO> queryByGroupCompanyName(ProductQueryPageDTO productQueryPageDTO);-->
|
|
<!--List<ProductGroupVO> queryByGroupCompanyName(ProductQueryPageDTO productQueryPageDTO);-->
|
|
<select id="queryByGroupCompanyName" resultMap="queryByGroupCompanyNameMap">
|
|
<select id="queryByGroupCompanyName" resultMap="queryByGroupCompanyNameMap">
|
|
select company_name cn,
|
|
select company_name cn,
|
|
|
|
+ tenant_id pTenantId,
|
|
ifnull(#{orderBy}, '') orderBy,
|
|
ifnull(#{orderBy}, '') orderBy,
|
|
ifnull(#{orderType}, '') orderType,
|
|
ifnull(#{orderType}, '') orderType,
|
|
ifnull(#{productName}, '') productName,
|
|
ifnull(#{productName}, '') productName,
|
|
@@ -366,7 +368,7 @@
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
<collection property="products" ofType="cn.cslg.pas.common.model.vo.ProductVO"
|
|
select="queryByGroupCompanyNameMap2"
|
|
select="queryByGroupCompanyNameMap2"
|
|
column="{cn=cn, orderBy=orderBy, orderType=orderType, productName=productName, companyName=companyName,
|
|
column="{cn=cn, orderBy=orderBy, orderType=orderType, productName=productName, companyName=companyName,
|
|
- patentNo=patentNo, productCategoryId=productCategoryId, productCategoryName=productCategoryName}">
|
|
|
|
|
|
+ patentNo=patentNo, productCategoryId=productCategoryId, productCategoryName=productCategoryName, pTenantId=pTenantId}">
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -406,7 +408,7 @@
|
|
and company_name = #{cn}
|
|
and company_name = #{cn}
|
|
</if>
|
|
</if>
|
|
<if test="true">
|
|
<if test="true">
|
|
- and p.tenant_id = #{tenantId}
|
|
|
|
|
|
+ and p.tenant_id = #{pTenantId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by
|
|
order by
|