Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
8eafa423
Commit
8eafa423
authored
Oct 11, 2018
by
lili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台端与出版端支持图书类型查询
parent
0142a729
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
13 deletions
+33
-13
BookDto.java
...-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
+0
-1
BookBiz.java
...-book/src/main/java/com/pcloud/book/book/biz/BookBiz.java
+1
-1
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+15
-0
BookTypeBizImpl.java
...n/java/com/pcloud/book/book/biz/impl/BookTypeBizImpl.java
+6
-7
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+11
-4
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
View file @
8eafa423
...
@@ -401,7 +401,6 @@ public class BookDto extends BaseDto {
...
@@ -401,7 +401,6 @@ public class BookDto extends BaseDto {
this
.
qrRemark
=
qrRemark
;
this
.
qrRemark
=
qrRemark
;
}
}
public
String
getSceneName
()
{
public
String
getSceneName
()
{
return
sceneName
;
return
sceneName
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookBiz.java
View file @
8eafa423
...
@@ -333,7 +333,7 @@ public interface BookBiz {
...
@@ -333,7 +333,7 @@ public interface BookBiz {
*
*
* @param adviserId
* @param adviserId
* 编辑标识
* 编辑标识
* @param
pageParam
* @param
number
* 分页参数传递工具类
* 分页参数传递工具类
* @return
* @return
*/
*/
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
8eafa423
...
@@ -1041,6 +1041,14 @@ public class BookBizImpl implements BookBiz {
...
@@ -1041,6 +1041,14 @@ public class BookBizImpl implements BookBiz {
if
(
ListUtils
.
isEmpty
(
adviserIds
))
{
if
(
ListUtils
.
isEmpty
(
adviserIds
))
{
return
new
PageBean
(
0
,
0
,
new
ArrayList
<>());
return
new
PageBean
(
0
,
0
,
new
ArrayList
<>());
}
}
//图书类型查询
Long
templeId
=
(
Long
)
paramMap
.
get
(
"templetId"
);
if
(
null
!=
templeId
){
List
<
Long
>
ids
=
assistTempletConsr
.
getChildIdListByParentId
(
templeId
);
if
(!
ListUtils
.
isEmpty
(
ids
)){
paramMap
.
put
(
"templeIds"
,
ids
);
}
}
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listPage4Agent"
);
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listPage4Agent"
);
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
return
new
PageBean
();
return
new
PageBean
();
...
@@ -1209,6 +1217,13 @@ public class BookBizImpl implements BookBiz {
...
@@ -1209,6 +1217,13 @@ public class BookBizImpl implements BookBiz {
@Override
@Override
public
PageBean
listBookClassify
(
PageParam
pageParam
,
Map
<
String
,
Object
>
paramMap
)
{
public
PageBean
listBookClassify
(
PageParam
pageParam
,
Map
<
String
,
Object
>
paramMap
)
{
LOGGER
.
info
(
"图书列表(平台端)<START>,paramMap="
+
paramMap
);
LOGGER
.
info
(
"图书列表(平台端)<START>,paramMap="
+
paramMap
);
Long
templeId
=
(
Long
)
paramMap
.
get
(
"templetId"
);
if
(
null
!=
templeId
){
List
<
Long
>
ids
=
assistTempletConsr
.
getChildIdListByParentId
(
templeId
);
if
(!
ListUtils
.
isEmpty
(
ids
)){
paramMap
.
put
(
"templeIds"
,
ids
);
}
}
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listBookClassify"
);
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listBookClassify"
);
if
(
pageBean
!=
null
)
{
if
(
pageBean
!=
null
)
{
// 设置编辑名称
// 设置编辑名称
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookTypeBizImpl.java
View file @
8eafa423
...
@@ -3,19 +3,18 @@
...
@@ -3,19 +3,18 @@
*/
*/
package
com
.
pcloud
.
book
.
book
.
biz
.
impl
;
package
com
.
pcloud
.
book
.
book
.
biz
.
impl
;
import
java.util.List
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.book.biz.BookTypeBiz
;
import
com.pcloud.book.book.biz.BookTypeBiz
;
import
com.pcloud.book.book.dao.BookTypeDao
;
import
com.pcloud.book.book.dao.BookTypeDao
;
import
com.pcloud.book.book.dto.BookTypeDto
;
import
com.pcloud.book.book.dto.BookTypeDto
;
import
com.pcloud.book.book.set.BookSet
;
import
com.pcloud.book.book.set.BookSet
;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.exceptions.BizException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* @描述:
* @描述:
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
8eafa423
...
@@ -702,9 +702,12 @@
...
@@ -702,9 +702,12 @@
AND
AND
B.ISBN LIKE CONCAT(#{isbn},'%')
B.ISBN LIKE CONCAT(#{isbn},'%')
</if>
</if>
<if
test=
"temple
tId
!=null"
>
<if
test=
"temple
Ids
!=null"
>
AND
AND
A.TEMPLET_ID = #{templetId}
A.TEMPLET_ID in
<foreach
collection=
"templeIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
</if>
<if
test=
"isFundSupport != null"
>
<if
test=
"isFundSupport != null"
>
AND
AND
...
@@ -853,8 +856,12 @@
...
@@ -853,8 +856,12 @@
<if
test=
"typeCode!=null"
>
<if
test=
"typeCode!=null"
>
AND b.TYPE_CODE = #{typeCode, jdbcType=VARCHAR}
AND b.TYPE_CODE = #{typeCode, jdbcType=VARCHAR}
</if>
</if>
<if
test=
"templetId!=null"
>
<if
test=
"templeIds!=null"
>
AND ba.TEMPLET_ID = #{templetId, jdbcType=BIGINT}
AND
ba.TEMPLET_ID in
<foreach
collection=
"templeIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
</if>
<if
test=
"startDate!=null"
>
<if
test=
"startDate!=null"
>
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment