Commit 41342533 by 高鹏

Merge branch 'feature-1002151' into 'master'

1002151-平台端书刊管理搜索条件优化及添加展示字段

See merge request rays/pcloud-book!286
parents 5bf15988 955c7dc8
...@@ -1318,7 +1318,8 @@ ...@@ -1318,7 +1318,8 @@
</if> </if>
<if test="bookName!=null"> <if test="bookName!=null">
AND ( AND (
(b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') (b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%')
or b.SERIAL_NUMBER LIKE CONCAT('%', #{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}','%')
...@@ -1365,7 +1366,8 @@ ...@@ -1365,7 +1366,8 @@
</if> </if>
<if test="bookName!=null"> <if test="bookName!=null">
AND ( AND (
(b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') (b.BOOK_NAME LIKE CONCAT('%', #{bookName},'%') or b.ISBN LIKE CONCAT('%', #{bookName},'%')
or b.SERIAL_NUMBER LIKE CONCAT('%', #{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