Commit b389f1bb by 吴博

hotfix: [1007249] erp查询rays书刊

parent 1273a6b8
...@@ -3573,18 +3573,23 @@ public class BookAdviserBizImpl implements BookAdviserBiz { ...@@ -3573,18 +3573,23 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
Integer currentPage, Integer numPerPage) { Integer currentPage, Integer numPerPage) {
BookSearchDto bookSearchDto = new BookSearchDto(); BookSearchDto bookSearchDto = new BookSearchDto();
if (!StringUtil.isEmpty(isbn)) { 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) { if (nameList.length > 1) {
bookSearchDto.setBookNames(Lists.newArrayList(nameList)); bookSearchDto.setBookNames(Lists.newArrayList(nameList));
} else {
bookSearchDto.setKeyword(isbn);
} }
} }
bookSearchDto.setKeyword(isbn); if (StrUtil.isNotBlank(uniqueNumber)) {
if (StrUtil.isNotBlank(uniqueNumber) && uniqueNumber.contains("BK")) { if (uniqueNumber.contains("BK") || uniqueNumber.contains("bk")) {
String bk = uniqueNumber.replace("BK", ""); uniqueNumber = uniqueNumber.replace("BK", "").replace("bk","");
if (NumberUtil.isNumber(bk)) {
bookSearchDto.setBookIdList(Lists.newArrayList(Long.valueOf(bk)));
} }
if (NumberUtil.isNumber(uniqueNumber)) {
bookSearchDto.setBookIdList(Lists.newArrayList(Long.valueOf(uniqueNumber)));
} }
}
bookSearchDto.setIsAdviserBook(Boolean.TRUE); bookSearchDto.setIsAdviserBook(Boolean.TRUE);
List<Long> adviserIds4ES = new ArrayList<>(); List<Long> adviserIds4ES = new ArrayList<>();
if (!StringUtil.isEmpty(adviserName)) { 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