update:
1. fix
This commit is contained in:
@@ -44,10 +44,10 @@ public interface MerchantCatalogMapper extends BaseMapper<MerchantCatalogEntity>
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param product 查询参数
|
||||
* @param catalogVO 查询参数
|
||||
* @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 * from merchant_product where is_deleted = 0
|
||||
<if test="product.type !=null">
|
||||
and type = #{product.type}
|
||||
select * from merchant_catalog where is_deleted = 0
|
||||
<if test="catalogVO.type !=null">
|
||||
and type = #{catalogVO.type}
|
||||
</if>
|
||||
<if test="product.userAccount !=null">
|
||||
and user_account = #{product.userAccount}
|
||||
<if test="catalogVO.userAccount !=null">
|
||||
and user_account = #{catalogVO.userAccount}
|
||||
</if>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user