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
005dbed3
Commit
005dbed3
authored
Nov 20, 2020
by
郑永强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [1026461] 解决版权保护码用户显示问题
parent
8d06ef8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
BookAuthCodeDTO.java
...n/java/com/pcloud/book/copyright/dto/BookAuthCodeDTO.java
+5
-0
BookAuthUser.Mapper.xml
...c/main/resources/mapper/copyright/BookAuthUser.Mapper.xml
+2
-2
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/copyright/dto/BookAuthCodeDTO.java
View file @
005dbed3
package
com
.
pcloud
.
book
.
copyright
.
dto
;
package
com
.
pcloud
.
book
.
copyright
.
dto
;
import
com.google.common.collect.Lists
;
import
com.pcloud.common.dto.BaseDto
;
import
com.pcloud.common.dto.BaseDto
;
import
com.pcloud.common.entity.BaseEntity
;
import
com.pcloud.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.springframework.util.CollectionUtils
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -171,6 +173,9 @@ public class BookAuthCodeDTO extends BaseDto {
...
@@ -171,6 +173,9 @@ public class BookAuthCodeDTO extends BaseDto {
}
}
public
List
<
BookAuthUserDTO
>
getBookAuthUserList
()
{
public
List
<
BookAuthUserDTO
>
getBookAuthUserList
()
{
if
(
CollectionUtils
.
isEmpty
(
this
.
bookAuthUserList
)){
return
Lists
.
newArrayList
();
}
return
bookAuthUserList
;
return
bookAuthUserList
;
}
}
...
...
pcloud-service-book/src/main/resources/mapper/copyright/BookAuthUser.Mapper.xml
View file @
005dbed3
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<insert
id=
"insert"
useGeneratedKeys=
"true"
parameterType=
"bookAuthUser"
>
<insert
id=
"insert"
useGeneratedKeys=
"true"
parameterType=
"bookAuthUser"
>
INSERT INTO BOOK_AUTH_USER(
INSERT INTO BOOK_AUTH_USER(
BOOK_ID, CHANNEL_ID,ADVISER_ID,WECHAT_USER_ID,MONTHS,province,city,IS_AUTH_CODE, CREATED_DATE,CREATED_USER, CREATED_TIME, is_paper_book, is_group_book)
BOOK_ID, CHANNEL_ID,ADVISER_ID,WECHAT_USER_ID,MONTHS,province,city,IS_AUTH_CODE, CREATED_DATE,CREATED_USER, CREATED_TIME, is_paper_book, is_group_book
, book_auth_code_id
)
VALUES
VALUES
(#{bookId,jdbcType=BIGINT}, #{channelId,jdbcType=BIGINT}, #{adviserId,jdbcType=BIGINT},
(#{bookId,jdbcType=BIGINT}, #{channelId,jdbcType=BIGINT}, #{adviserId,jdbcType=BIGINT},
#{wechatUserId}, #{months}, #{province}, #{city}, #{isAuthCode},NOW(), #{adviserId}, NOW(), #{isPaperBook}, #{isGroupBook})
#{wechatUserId}, #{months}, #{province}, #{city}, #{isAuthCode},NOW(), #{adviserId}, NOW(), #{isPaperBook}, #{isGroupBook}
, #{bookAuthCodeId}
)
</insert>
</insert>
<select
id=
"getAuthUserCount"
resultType=
"bookAuthCodeUserVO"
parameterType=
"map"
>
<select
id=
"getAuthUserCount"
resultType=
"bookAuthCodeUserVO"
parameterType=
"map"
>
...
...
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