update:
1. fix
This commit is contained in:
@@ -44,10 +44,10 @@ public interface MerchantCatalogMapper extends BaseMapper<MerchantCatalogEntity>
|
|||||||
* 自定义分页
|
* 自定义分页
|
||||||
*
|
*
|
||||||
* @param page 分页参数
|
* @param page 分页参数
|
||||||
* @param product 查询参数
|
* @param catalogVO 查询参数
|
||||||
* @return List<MerchantProductVO>
|
* @return List<MerchantProductVO>
|
||||||
*/
|
*/
|
||||||
List<MerchantCatalogVO> selectMerchantCatalogPage(IPage page, MerchantCatalogVO product);
|
List<MerchantCatalogVO> selectMerchantCatalogPage(IPage page, MerchantCatalogVO catalogVO);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,12 +26,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectMerchantCatalogPage" resultMap="merchantCatalogResultMap">
|
<select id="selectMerchantCatalogPage" resultMap="merchantCatalogResultMap">
|
||||||
select * from merchant_product where is_deleted = 0
|
select * from merchant_catalog where is_deleted = 0
|
||||||
<if test="product.type !=null">
|
<if test="catalogVO.type !=null">
|
||||||
and type = #{product.type}
|
and type = #{catalogVO.type}
|
||||||
</if>
|
</if>
|
||||||
<if test="product.userAccount !=null">
|
<if test="catalogVO.userAccount !=null">
|
||||||
and user_account = #{product.userAccount}
|
and user_account = #{catalogVO.userAccount}
|
||||||
</if>
|
</if>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user