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
42b53c6d
Commit
42b53c6d
authored
Aug 25, 2021
by
郑永强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1005314] 编辑运营需求(版权保护支付、应用有效期)
parent
df59b9f6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
3 deletions
+36
-3
BookAuthInfo.java
...n/java/com/pcloud/book/copyright/entity/BookAuthInfo.java
+2
-0
BookAuthInfoAndServesVO.java
...com/pcloud/book/copyright/vo/BookAuthInfoAndServesVO.java
+10
-0
BookAuthInfoVO.java
...ain/java/com/pcloud/book/copyright/vo/BookAuthInfoVO.java
+3
-0
BookAuthInfoWechatVO.java
...va/com/pcloud/book/copyright/vo/BookAuthInfoWechatVO.java
+11
-0
SetAuthOpenParam.java
...n/java/com/pcloud/book/copyright/vo/SetAuthOpenParam.java
+3
-0
BookAuthInfo.Mapper.xml
...c/main/resources/mapper/copyright/BookAuthInfo.Mapper.xml
+7
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/copyright/entity/BookAuthInfo.java
View file @
42b53c6d
...
@@ -72,4 +72,6 @@ public class BookAuthInfo extends BaseEntity {
...
@@ -72,4 +72,6 @@ public class BookAuthInfo extends BaseEntity {
@ApiModelProperty
(
"授权后仍需付费"
)
@ApiModelProperty
(
"授权后仍需付费"
)
private
Integer
isAuthorizedPay
;
private
Integer
isAuthorizedPay
;
@ApiModelProperty
(
"打开支付功能;0:关闭;1:开启;"
)
private
Integer
openPay
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/copyright/vo/BookAuthInfoAndServesVO.java
View file @
42b53c6d
...
@@ -55,6 +55,8 @@ public class BookAuthInfoAndServesVO implements Serializable {
...
@@ -55,6 +55,8 @@ public class BookAuthInfoAndServesVO implements Serializable {
@ApiModelProperty
(
"授权后仍需付费"
)
@ApiModelProperty
(
"授权后仍需付费"
)
private
Integer
isAuthorizedPay
;
private
Integer
isAuthorizedPay
;
@ApiModelProperty
(
"打开支付功能;0:关闭;1:开启;"
)
private
Integer
openPay
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
...
@@ -160,6 +162,14 @@ public class BookAuthInfoAndServesVO implements Serializable {
...
@@ -160,6 +162,14 @@ public class BookAuthInfoAndServesVO implements Serializable {
this
.
isAuthorizedPay
=
isAuthorizedPay
;
this
.
isAuthorizedPay
=
isAuthorizedPay
;
}
}
public
Integer
getOpenPay
()
{
return
openPay
;
}
public
void
setOpenPay
(
Integer
openPay
)
{
this
.
openPay
=
openPay
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BookAuthInfoAndServesVO{"
+
return
"BookAuthInfoAndServesVO{"
+
...
...
pcloud-service-book/src/main/java/com/pcloud/book/copyright/vo/BookAuthInfoVO.java
View file @
42b53c6d
...
@@ -50,4 +50,7 @@ public class BookAuthInfoVO implements Serializable {
...
@@ -50,4 +50,7 @@ public class BookAuthInfoVO implements Serializable {
@ApiModelProperty
(
"授权后仍需付费"
)
@ApiModelProperty
(
"授权后仍需付费"
)
private
Integer
isAuthorizedPay
;
private
Integer
isAuthorizedPay
;
@ApiModelProperty
(
"打开支付功能;0:关闭;1:开启;"
)
private
Integer
openPay
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/copyright/vo/BookAuthInfoWechatVO.java
View file @
42b53c6d
...
@@ -51,6 +51,9 @@ public class BookAuthInfoWechatVO implements Serializable {
...
@@ -51,6 +51,9 @@ public class BookAuthInfoWechatVO implements Serializable {
@ApiModelProperty
(
"coverImg"
)
@ApiModelProperty
(
"coverImg"
)
private
String
coverImg
;
private
String
coverImg
;
@ApiModelProperty
(
"打开支付功能;0:关闭;1:开启;"
)
private
Integer
openPay
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
...
@@ -147,6 +150,14 @@ public class BookAuthInfoWechatVO implements Serializable {
...
@@ -147,6 +150,14 @@ public class BookAuthInfoWechatVO implements Serializable {
this
.
coverImg
=
coverImg
;
this
.
coverImg
=
coverImg
;
}
}
public
Integer
getOpenPay
()
{
return
openPay
;
}
public
void
setOpenPay
(
Integer
openPay
)
{
this
.
openPay
=
openPay
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BookAuthInfoWechatVO{"
+
return
"BookAuthInfoWechatVO{"
+
...
...
pcloud-service-book/src/main/java/com/pcloud/book/copyright/vo/SetAuthOpenParam.java
View file @
42b53c6d
...
@@ -54,4 +54,7 @@ public class SetAuthOpenParam implements Serializable {
...
@@ -54,4 +54,7 @@ public class SetAuthOpenParam implements Serializable {
@ApiModelProperty
(
"授权后仍需付费"
)
@ApiModelProperty
(
"授权后仍需付费"
)
private
Integer
isAuthorizedPay
;
private
Integer
isAuthorizedPay
;
@ApiModelProperty
(
"打开支付功能;0:关闭;1:开启;"
)
private
Integer
openPay
;
}
}
pcloud-service-book/src/main/resources/mapper/copyright/BookAuthInfo.Mapper.xml
View file @
42b53c6d
...
@@ -14,23 +14,24 @@
...
@@ -14,23 +14,24 @@
<result
column=
"BOOK_STATUS"
property=
"bookStatus"
jdbcType=
"TINYINT"
/>
<result
column=
"BOOK_STATUS"
property=
"bookStatus"
jdbcType=
"TINYINT"
/>
<result
column=
"check_type"
property=
"checkType"
jdbcType=
"TINYINT"
/>
<result
column=
"check_type"
property=
"checkType"
jdbcType=
"TINYINT"
/>
<result
column=
"is_authorized_pay"
property=
"isAuthorizedPay"
jdbcType=
"TINYINT"
/>
<result
column=
"is_authorized_pay"
property=
"isAuthorizedPay"
jdbcType=
"TINYINT"
/>
<result
column=
"open_pay"
property=
"openPay"
jdbcType=
"TINYINT"
/>
</resultMap>
</resultMap>
<insert
id=
"insert"
useGeneratedKeys=
"true"
parameterType=
"bookAuthInfo"
>
<insert
id=
"insert"
useGeneratedKeys=
"true"
parameterType=
"bookAuthInfo"
>
INSERT INTO BOOK_AUTH_INFO(
INSERT INTO BOOK_AUTH_INFO(
BOOK_ID, CHANNEL_ID,ADVISER_ID,PRICE,CODE_USE_COUNT,BUY_URL,CHECK_TYPE, CREATED_USER, CREATED_DATE,LAST_MODIFIED_DATE,OPEN_TIME,
BOOK_ID, CHANNEL_ID,ADVISER_ID,PRICE,CODE_USE_COUNT,BUY_URL,CHECK_TYPE, CREATED_USER, CREATED_DATE,LAST_MODIFIED_DATE,OPEN_TIME,
is_paper_book, is_group_book, is_authorized_pay
is_paper_book, is_group_book, is_authorized_pay
, open_pay
)
)
VALUES
VALUES
(#{bookId,jdbcType=BIGINT}, #{channelId,jdbcType=BIGINT}, #{adviserId,jdbcType=BIGINT},
(#{bookId,jdbcType=BIGINT}, #{channelId,jdbcType=BIGINT}, #{adviserId,jdbcType=BIGINT},
#{price}, #{codeUseCount,jdbcType=BIGINT}, #{buyUrl}, #{checkType},
#{price}, #{codeUseCount,jdbcType=BIGINT}, #{buyUrl}, #{checkType},
#{adviserId,jdbcType=BIGINT}, NOW(), NOW(), NOW(),
#{adviserId,jdbcType=BIGINT}, NOW(), NOW(), NOW(),
#{isPaperBook}, #{isGroupBook}, IFNULL(#{isAuthorizedPay},0))
#{isPaperBook}, #{isGroupBook}, IFNULL(#{isAuthorizedPay},0)
, IFNULL(#{openPay},1)
)
</insert>
</insert>
<select
id=
"getInfoByBook"
resultMap=
"BookAuthInfoMap"
parameterType=
"map"
>
<select
id=
"getInfoByBook"
resultMap=
"BookAuthInfoMap"
parameterType=
"map"
>
SELECT
SELECT
ID, BOOK_ID, CHANNEL_ID,ADVISER_ID,PRICE,CODE_USE_COUNT,BUY_URL,CHECK_TYPE,BOOK_STATUS,LOCATION_DESC, is_authorized_pay
ID, BOOK_ID, CHANNEL_ID,ADVISER_ID,PRICE,CODE_USE_COUNT,BUY_URL,CHECK_TYPE,BOOK_STATUS,LOCATION_DESC, is_authorized_pay
, open_pay
FROM
FROM
BOOK_AUTH_INFO
BOOK_AUTH_INFO
WHERE
WHERE
...
@@ -267,6 +268,9 @@
...
@@ -267,6 +268,9 @@
<if
test=
"isAuthorizedPay != null"
>
<if
test=
"isAuthorizedPay != null"
>
is_authorized_pay = #{isAuthorizedPay},
is_authorized_pay = #{isAuthorizedPay},
</if>
</if>
<if
test=
"openPay != null"
>
open_pay = #{openPay},
</if>
LAST_MODIFIED_DATE = NOW()
LAST_MODIFIED_DATE = NOW()
WHERE
WHERE
ID = #{id}
ID = #{id}
...
...
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