提交 8c7b8dca authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 cf91c006
package com.zrqx.fg.sysuser.mapper.recommend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.zrqx.core.mapper.BaseMapper;
import com.zrqx.core.model.sysuser.recommend.Recommend;
import com.zrqx.core.model.sysuser.recommend.RecommendGoods;
@Mapper
public interface FgRecommendMapper extends BaseMapper<Recommend>{
/**
* 根据推荐位代码code查一定数量的列表
* @param num
* @param code
* @return
* @author chyj
* @date: 2019年4月22日 下午6:06:12
*/
@Select(" <script> "
+ " select b.* from sys_recommend where 1=1 "
+ " <if test = '" + NOTBLANK + "(code)'> "
+ " and code = #{code} "
+ " </if> "
+ " ORDER BY sort ASC "
+ " LIMIT #{num} "
+ " </script> ")
RecommendGoods selectByCode(@Param("num") Integer num, @Param("code") String code);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论