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
920eef38
Commit
920eef38
authored
Mar 11, 2020
by
阮思源
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-1002558' into 'master'
【1002558】定制服务新增个人号分类和标题模板 See merge request rays/pcloud-book!541
parents
3c41e6fe
69c2fdd9
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
9 deletions
+56
-9
CustomPlan.java
...c/main/java/com/pcloud/book/custom/entity/CustomPlan.java
+9
-0
CustomPlanModule.java
.../java/com/pcloud/book/custom/entity/CustomPlanModule.java
+5
-0
PlanModuleTypeEnum.java
...java/com/pcloud/book/custom/enums/PlanModuleTypeEnum.java
+9
-1
CustomPlanModuleVO.java
...in/java/com/pcloud/book/custom/vo/CustomPlanModuleVO.java
+5
-0
PcloudRobotClassifyResponseVO.java
...eyword/facade/response/PcloudRobotClassifyResponseVO.java
+4
-0
CustomPlanMapper.xml
...ook/src/main/resources/mapper/custom/CustomPlanMapper.xml
+10
-4
CustomPlanModuleMapper.xml
...c/main/resources/mapper/custom/CustomPlanModuleMapper.xml
+11
-3
PcloudRobotClassify.Mapper.xml
...urces/mapper/pcloudkeyword/PcloudRobotClassify.Mapper.xml
+3
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/custom/entity/CustomPlan.java
View file @
920eef38
...
@@ -2,6 +2,8 @@ package com.pcloud.book.custom.entity;
...
@@ -2,6 +2,8 @@ package com.pcloud.book.custom.entity;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -43,4 +45,10 @@ public class CustomPlan {
...
@@ -43,4 +45,10 @@ public class CustomPlan {
private
Integer
suggestionCount
;
private
Integer
suggestionCount
;
private
String
confirmFeedbackReply
;
private
String
confirmFeedbackReply
;
@ApiModelProperty
(
"个人号类型"
)
private
Integer
robotType
;
@ApiModelProperty
(
"个人号类型名称"
)
private
String
robotTypeName
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/custom/entity/CustomPlanModule.java
View file @
920eef38
...
@@ -46,4 +46,8 @@ public class CustomPlanModule {
...
@@ -46,4 +46,8 @@ public class CustomPlanModule {
private
Date
updateTime
;
private
Date
updateTime
;
private
Integer
openFeedback
;
private
Integer
openFeedback
;
private
String
bookName
;
private
Integer
readType
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/custom/enums/PlanModuleTypeEnum.java
View file @
920eef38
...
@@ -21,7 +21,15 @@ public enum PlanModuleTypeEnum {
...
@@ -21,7 +21,15 @@ public enum PlanModuleTypeEnum {
/**
/**
* 应用作品模块
* 应用作品模块
*/
*/
APP
(
5
);
APP
(
5
),
/**
* 顶部模块
*/
TOP
(
6
),
/**
* 底部模块
*/
BOTTOM
(
7
);
public
final
Integer
value
;
public
final
Integer
value
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/custom/vo/CustomPlanModuleVO.java
View file @
920eef38
...
@@ -44,4 +44,8 @@ public class CustomPlanModuleVO {
...
@@ -44,4 +44,8 @@ public class CustomPlanModuleVO {
private
List
<
CustomPlanModuleVO
>
customPlanModuleVOList
;
private
List
<
CustomPlanModuleVO
>
customPlanModuleVOList
;
private
Integer
openFeedback
;
private
Integer
openFeedback
;
private
String
bookName
;
private
Integer
readType
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/pcloudkeyword/facade/response/PcloudRobotClassifyResponseVO.java
View file @
920eef38
...
@@ -22,4 +22,8 @@ public class PcloudRobotClassifyResponseVO {
...
@@ -22,4 +22,8 @@ public class PcloudRobotClassifyResponseVO {
private
Integer
seqNum
;
private
Integer
seqNum
;
private
String
miniAppQr
;
private
String
miniAppQr
;
private
String
planTopPic
;
private
String
planBottomPic
;
}
}
pcloud-service-book/src/main/resources/mapper/custom/CustomPlanMapper.xml
View file @
920eef38
...
@@ -19,12 +19,13 @@
...
@@ -19,12 +19,13 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"suggestion_count"
jdbcType=
"INTEGER"
property=
"suggestionCount"
/>
<result
column=
"suggestion_count"
jdbcType=
"INTEGER"
property=
"suggestionCount"
/>
<result
column=
"confirm_feedback_reply"
jdbcType=
"VARCHAR"
property=
"confirmFeedbackReply"
/>
<result
column=
"confirm_feedback_reply"
jdbcType=
"VARCHAR"
property=
"confirmFeedbackReply"
/>
<result
column=
"robot_type"
jdbcType=
"TINYINT"
property=
"robotType"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, plan_number, plan_name, create_user_name, description, open_feedback, paper_id,
id, plan_number, plan_name, create_user_name, description, open_feedback, paper_id,
paper_title, paper_desc, use_state, pdf_url, h5_url, preview_qrcode_url, create_time,
paper_title, paper_desc, use_state, pdf_url, h5_url, preview_qrcode_url, create_time,
update_time, confirm_feedback_reply
update_time, confirm_feedback_reply
,robot_type
</sql>
</sql>
<insert
id=
"insert"
parameterType=
"CustomPlan"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insert"
parameterType=
"CustomPlan"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
...
@@ -32,12 +33,12 @@
...
@@ -32,12 +33,12 @@
description, open_feedback, paper_id,
description, open_feedback, paper_id,
paper_title, paper_desc, use_state,
paper_title, paper_desc, use_state,
pdf_url, h5_url, preview_qrcode_url,
pdf_url, h5_url, preview_qrcode_url,
create_time, update_time, confirm_feedback_reply)
create_time, update_time, confirm_feedback_reply
,robot_type
)
values (#{planNumber,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, #{createUserName,jdbcType=VARCHAR},
values (#{planNumber,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, #{createUserName,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{openFeedback,jdbcType=INTEGER}, #{paperId,jdbcType=INTEGER},
#{description,jdbcType=VARCHAR}, #{openFeedback,jdbcType=INTEGER}, #{paperId,jdbcType=INTEGER},
#{paperTitle,jdbcType=VARCHAR}, #{paperDesc,jdbcType=VARCHAR}, #{useState,jdbcType=INTEGER},
#{paperTitle,jdbcType=VARCHAR}, #{paperDesc,jdbcType=VARCHAR}, #{useState,jdbcType=INTEGER},
#{pdfUrl,jdbcType=VARCHAR}, #{h5Url,jdbcType=VARCHAR}, #{previewQrcodeUrl,jdbcType=VARCHAR},
#{pdfUrl,jdbcType=VARCHAR}, #{h5Url,jdbcType=VARCHAR}, #{previewQrcodeUrl,jdbcType=VARCHAR},
NOW(), NOW(), #{confirmFeedbackReply})
NOW(), NOW(), #{confirmFeedbackReply}
,#{robotType}
)
</insert>
</insert>
<update
id=
"update"
parameterType=
"CustomPlan"
>
<update
id=
"update"
parameterType=
"CustomPlan"
>
...
@@ -79,6 +80,9 @@
...
@@ -79,6 +80,9 @@
<if
test=
"previewQrcodeUrl != null"
>
<if
test=
"previewQrcodeUrl != null"
>
preview_qrcode_url = #{previewQrcodeUrl,jdbcType=VARCHAR},
preview_qrcode_url = #{previewQrcodeUrl,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"robotType != null"
>
robot_type = #{robotType},
</if>
update_time = NOW(),confirm_feedback_reply = #{confirmFeedbackReply}
update_time = NOW(),confirm_feedback_reply = #{confirmFeedbackReply}
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
...
@@ -117,9 +121,11 @@
...
@@ -117,9 +121,11 @@
<select
id=
"listCustomPlanByPage"
resultMap=
"BaseResultMap"
>
<select
id=
"listCustomPlanByPage"
resultMap=
"BaseResultMap"
>
select
select
a.id, plan_number, plan_name, create_user_name, description, a.open_feedback,
a.id, plan_number, plan_name, create_user_name, description, a.open_feedback,
use_state, pdf_url, h5_url, preview_qrcode_url, a.create_time, COUNT(DISTINCT b.batch_id) suggestion_count
use_state, pdf_url, h5_url, preview_qrcode_url, a.create_time, COUNT(DISTINCT b.batch_id) suggestion_count,
a.robot_type,t.classify_name robotTypeName
from custom_plan a left join custom_plan_module_suggestion b
from custom_plan a left join custom_plan_module_suggestion b
on a.id = b.plan_id
on a.id = b.plan_id
left join pcloud_robot_classify t on a.robot_type = t.id
where 1= 1
where 1= 1
<if
test=
"content != null"
>
<if
test=
"content != null"
>
and (plan_number like concat('%', #{content}, '%')
and (plan_number like concat('%', #{content}, '%')
...
...
pcloud-service-book/src/main/resources/mapper/custom/CustomPlanModuleMapper.xml
View file @
920eef38
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.pcloud.book.custom.mapper.CustomPlanModuleMapper"
>
<mapper
namespace=
"com.pcloud.book.custom.mapper.CustomPlanModuleMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"CustomPlanModuleVO"
>
<resultMap
id=
"BaseResultMap"
type=
"
com.pcloud.book.custom.vo.
CustomPlanModuleVO"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"plan_id"
jdbcType=
"INTEGER"
property=
"planId"
/>
<result
column=
"plan_id"
jdbcType=
"INTEGER"
property=
"planId"
/>
<result
column=
"parent_id"
jdbcType=
"INTEGER"
property=
"parentId"
/>
<result
column=
"parent_id"
jdbcType=
"INTEGER"
property=
"parentId"
/>
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
<result
column=
"product_unique_number"
jdbcType=
"VARCHAR"
property=
"productUniqueNumber"
/>
<result
column=
"product_unique_number"
jdbcType=
"VARCHAR"
property=
"productUniqueNumber"
/>
<result
column=
"link_url"
jdbcType=
"VARCHAR"
property=
"linkUrl"
/>
<result
column=
"link_url"
jdbcType=
"VARCHAR"
property=
"linkUrl"
/>
<result
column=
"open_feedback"
jdbcType=
"INTEGER"
property=
"openFeedback"
/>
<result
column=
"open_feedback"
jdbcType=
"INTEGER"
property=
"openFeedback"
/>
<result
column=
"book_name"
jdbcType=
"VARCHAR"
property=
"bookName"
/>
<result
column=
"read_type"
jdbcType=
"INTEGER"
property=
"readType"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -31,12 +33,12 @@
...
@@ -31,12 +33,12 @@
type_name, title, content,
type_name, title, content,
skill_id, skill_cover, app_id, agent_name,
skill_id, skill_cover, app_id, agent_name,
product_id, merchant_name, product_unique_number, link_url, create_time,
product_id, merchant_name, product_unique_number, link_url, create_time,
update_time, open_feedback)
update_time, open_feedback
, book_name, read_type
)
values (#{planId,jdbcType=INTEGER}, #{parentId,jdbcType=INTEGER}, #{moduleType,jdbcType=INTEGER}, #{picUrl,jdbcType=VARCHAR},
values (#{planId,jdbcType=INTEGER}, #{parentId,jdbcType=INTEGER}, #{moduleType,jdbcType=INTEGER}, #{picUrl,jdbcType=VARCHAR},
#{typeName,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{typeName,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{skillId,jdbcType=INTEGER}, #{skillCover,jdbcType=VARCHAR}, #{appId,jdbcType=BIGINT}, #{agentName,jdbcType=VARCHAR},
#{skillId,jdbcType=INTEGER}, #{skillCover,jdbcType=VARCHAR}, #{appId,jdbcType=BIGINT}, #{agentName,jdbcType=VARCHAR},
#{productId,jdbcType=BIGINT}, #{merchantName,jdbcType=VARCHAR}, #{productUniqueNumber,jdbcType=VARCHAR}, #{linkUrl,jdbcType=VARCHAR},
#{productId,jdbcType=BIGINT}, #{merchantName,jdbcType=VARCHAR}, #{productUniqueNumber,jdbcType=VARCHAR}, #{linkUrl,jdbcType=VARCHAR},
NOW(), NOW(), #{openFeedback})
NOW(), NOW(), #{openFeedback}
, #{bookName}, #{readType}
)
</insert>
</insert>
<update
id=
"update"
parameterType=
"CustomPlanModule"
>
<update
id=
"update"
parameterType=
"CustomPlanModule"
>
...
@@ -75,6 +77,12 @@
...
@@ -75,6 +77,12 @@
<if
test=
"linkUrl != null"
>
<if
test=
"linkUrl != null"
>
link_url = #{linkUrl,jdbcType=VARCHAR},
link_url = #{linkUrl,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"bookName != null"
>
book_name = #{bookName,jdbcType=VARCHAR},
</if>
<if
test=
"readType != null"
>
read_type = #{readType,jdbcType=INTEGER},
</if>
update_time = NOW(),
update_time = NOW(),
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
...
...
pcloud-service-book/src/main/resources/mapper/pcloudkeyword/PcloudRobotClassify.Mapper.xml
View file @
920eef38
...
@@ -64,7 +64,9 @@
...
@@ -64,7 +64,9 @@
<select
id=
"listAllRobotClassify"
resultType=
"com.pcloud.book.pcloudkeyword.facade.response.PcloudRobotClassifyResponseVO"
>
<select
id=
"listAllRobotClassify"
resultType=
"com.pcloud.book.pcloudkeyword.facade.response.PcloudRobotClassifyResponseVO"
>
select
select
id, classify_name as classifyName
id, classify_name as classifyName,
plan_top_pic planTopPic,
plan_bottom_pic planBottomPic
from pcloud_robot_classify where is_delete = 0
from pcloud_robot_classify where is_delete = 0
order by seq_num
order by seq_num
</select>
</select>
...
...
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