Commit f9136971 by Administrator

Merge branch 'feature/listBookClassify' into 'master'

feat: [none] 增加图书Id筛选

See merge request rays/pcloud-book!1299
parents aa61e037 f4dc3175
...@@ -1494,7 +1494,7 @@ ...@@ -1494,7 +1494,7 @@
<if test="bookName!=null"> <if test="bookName!=null">
AND ( AND (
(b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%') (b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%')
or b.SERIAL_NUMBER LIKE CONCAT('%', #{bookName},'%') or b.SERIAL_NUMBER LIKE CONCAT('%', #{bookName},'%') OR b.BOOK_ID = #{bookName}
<if test="bookNameList != null and bookNameList.size > 0"> <if test="bookNameList != null and bookNameList.size > 0">
<foreach collection="bookNameList" item="item" open=" " separator=" " close=" "> <foreach collection="bookNameList" item="item" open=" " separator=" " close=" ">
OR b.BOOK_NAME LIKE CONCAT('%', '${item}','%') OR b.BOOK_NAME LIKE CONCAT('%', '${item}','%')
...@@ -1556,7 +1556,7 @@ ...@@ -1556,7 +1556,7 @@
<if test="bookName!=null"> <if test="bookName!=null">
AND ( AND (
(b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%') (b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%')
or b.SERIAL_NUMBER LIKE CONCAT('%', #{bookName},'%') or b.SERIAL_NUMBER LIKE CONCAT('%', #{bookName},'%') OR b.BOOK_ID = #{bookName}
<if test="bookNameList != null and bookNameList.size > 0"> <if test="bookNameList != null and bookNameList.size > 0">
<foreach collection="bookNameList" item="item" open=" " separator=" " close=" "> <foreach collection="bookNameList" item="item" open=" " separator=" " close=" ">
OR b.BOOK_NAME LIKE CONCAT('%', '${item}','%') OR b.BOOK_NAME LIKE CONCAT('%', '${item}','%')
......
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