Commit cafedbdb by 田超

Merge branch 'feature/1003786' into 'master'

feature: [1003786]图书监控

See merge request rays/pcloud-book!1065
parents c6c83a52 061d0a18
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<parent> <parent>
<groupId>com.pcloud.common</groupId> <groupId>com.pcloud.common</groupId>
<artifactId>pcloud-book-parent</artifactId> <artifactId>pcloud-book-parent</artifactId>
<version>2.1.0-RELEASE</version> <version>2.1.0-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.pcloud.facade</groupId> <groupId>com.pcloud.facade</groupId>
<artifactId>pcloud-facade-book</artifactId> <artifactId>pcloud-facade-book</artifactId>
<version>2.1.0-RELEASE</version> <version>2.1.0-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>pcloud-facade-book</name> <name>pcloud-facade-book</name>
......
...@@ -746,6 +746,7 @@ public class BookDto extends BaseDto { ...@@ -746,6 +746,7 @@ public class BookDto extends BaseDto {
@ApiModelProperty("答案订阅状态") @ApiModelProperty("答案订阅状态")
private Boolean subscribeState; private Boolean subscribeState;
<<<<<<< HEAD
@ApiModelProperty("版次") @ApiModelProperty("版次")
private String edition; private String edition;
...@@ -757,6 +758,18 @@ public class BookDto extends BaseDto { ...@@ -757,6 +758,18 @@ public class BookDto extends BaseDto {
this.edition = edition; this.edition = edition;
} }
=======
>>>>>>> d6624c2c31b9ef3ce5d6f2d09aa9106dde275d5f
private BookAdviserDto bookAdviserDto;
public BookAdviserDto getBookAdviserDto() {
return bookAdviserDto;
}
public void setBookAdviserDto(BookAdviserDto bookAdviserDto) {
this.bookAdviserDto = bookAdviserDto;
}
public Boolean getSubscribeState() { public Boolean getSubscribeState() {
return subscribeState; return subscribeState;
} }
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<parent> <parent>
<groupId>com.pcloud.common</groupId> <groupId>com.pcloud.common</groupId>
<artifactId>pcloud-book-parent</artifactId> <artifactId>pcloud-book-parent</artifactId>
<version>2.1.0-RELEASE</version> <version>2.1.0-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.pcloud.service</groupId> <groupId>com.pcloud.service</groupId>
<artifactId>pcloud-service-book</artifactId> <artifactId>pcloud-service-book</artifactId>
<version>2.1.0-RELEASE</version> <version>2.1.0-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>pcloud-service-book</name> <name>pcloud-service-book</name>
......
...@@ -623,9 +623,13 @@ public class BookBizImpl implements BookBiz { ...@@ -623,9 +623,13 @@ public class BookBizImpl implements BookBiz {
bookDto = bookDao.getBaseById(bookId); bookDto = bookDao.getBaseById(bookId);
BookAdviserDto bookAdviserDto = bookAdviserBiz.getOneMainBook(bookId); BookAdviserDto bookAdviserDto = bookAdviserBiz.getOneMainBook(bookId);
if (null != bookDto && null != bookAdviserDto) { if (null != bookDto && null != bookAdviserDto) {
bookDto.setBookAdviserDto(bookAdviserDto);
bookDto.setTempletId(bookAdviserDto.getTempletId()); bookDto.setTempletId(bookAdviserDto.getTempletId());
bookSet.setFirstTemplateName(bookDto); bookSet.setFirstTemplateName(bookDto);
adviserId = bookAdviserDto.getAdviserId(); adviserId = bookAdviserDto.getAdviserId();
if(bookAdviserDto.getGraLabelId()!=null){
bookDto.setGraLabelId(bookAdviserDto.getGraLabelId());
}
} }
if (Objects.nonNull(bookDto)){ if (Objects.nonNull(bookDto)){
bookDto.setIsLibraryBook(checkIsLibraryBook(adviserId, bookId) ? 1 : 0); bookDto.setIsLibraryBook(checkIsLibraryBook(adviserId, bookId) ? 1 : 0);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<groupId>com.pcloud.common</groupId> <groupId>com.pcloud.common</groupId>
<artifactId>pcloud-book-parent</artifactId> <artifactId>pcloud-book-parent</artifactId>
<version>2.1.0-RELEASE</version> <version>2.1.0-SNAPSHOT</version>
<modules> <modules>
<module>pcloud-facade-book</module> <module>pcloud-facade-book</module>
<module>pcloud-service-book</module> <module>pcloud-service-book</module>
......
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