Commit 76792895 by 李传峰

Merge branch 'hotfix/1007249' into 'release'

Hotfix/1007249

See merge request rays/pcloud-book!1583
parents b3fbf47a b389f1bb
......@@ -3573,18 +3573,23 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
Integer currentPage, Integer numPerPage) {
BookSearchDto bookSearchDto = new BookSearchDto();
if (!StringUtil.isEmpty(isbn)) {
String[] nameList = isbn.trim().split("[\u00A0|\u3000|\u0020]");
isbn = isbn.replace("-", "").replace("/", "");
String[] nameList = isbn.trim().split("[\u00A0|\u3000|\u0020]+");
if (nameList.length > 1) {
bookSearchDto.setBookNames(Lists.newArrayList(nameList));
} else {
bookSearchDto.setKeyword(isbn);
}
}
bookSearchDto.setKeyword(isbn);
if (StrUtil.isNotBlank(uniqueNumber) && uniqueNumber.contains("BK")) {
String bk = uniqueNumber.replace("BK", "");
if (NumberUtil.isNumber(bk)) {
bookSearchDto.setBookIdList(Lists.newArrayList(Long.valueOf(bk)));
if (StrUtil.isNotBlank(uniqueNumber)) {
if (uniqueNumber.contains("BK") || uniqueNumber.contains("bk")) {
uniqueNumber = uniqueNumber.replace("BK", "").replace("bk","");
}
if (NumberUtil.isNumber(uniqueNumber)) {
bookSearchDto.setBookIdList(Lists.newArrayList(Long.valueOf(uniqueNumber)));
}
}
bookSearchDto.setIsAdviserBook(Boolean.TRUE);
List<Long> adviserIds4ES = new ArrayList<>();
if (!StringUtil.isEmpty(adviserName)) {
......
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