Commit 472dd560 by 郑勇

feat: [none] 魔方查询

parent a2cac3c0
......@@ -3441,15 +3441,15 @@
<select id="listMoFangBook" parameterType="map" resultType="com.pcloud.book.book.dto.MoFangBookDto">
select
a.book_id bookId,
a.resource_count resourceCount,
a.jump_url jumpUrl,
b.book_name bookName,
b.cover_img coverImg
from mofang_book a inner join book b on a.book_id=b.book_id
book_id bookId,
resource_count resourceCount,
jump_url jumpUrl,
book_name bookName,
cover_img coverImg
from mofang_book
where 1=1
<if test="keyWords !=null and keyWords!=''">
and b.book_name like concat('%',#{keyWords},'%')
and book_name like concat('%',#{keyWords},'%')
</if>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment