Commit 42b53c6d by 郑永强

feat: [1005314] 编辑运营需求(版权保护支付、应用有效期)

parent df59b9f6
...@@ -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;
} }
...@@ -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{" +
......
...@@ -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;
} }
...@@ -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{" +
......
...@@ -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;
} }
...@@ -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}
......
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