1. fix
This commit is contained in:
2026-04-26 13:50:52 +08:00
parent cf60890b86
commit 231db6921d
2 changed files with 7 additions and 7 deletions

View File

@@ -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);
}

View File

@@ -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>