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
4e21f323
Commit
4e21f323
authored
Mar 08, 2020
by
章春雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug-1002503' into 'master'
1002503需求修改bug See merge request rays/pcloud-book!529
parents
c1654609
316fe781
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
22 deletions
+23
-22
CustomPlanBizImpl.java
...va/com/pcloud/book/custom/biz/impl/CustomPlanBizImpl.java
+2
-1
CustomPlanModuleSuggestion.java
...pcloud/book/custom/entity/CustomPlanModuleSuggestion.java
+5
-0
AddSuggestionListVO.java
...n/java/com/pcloud/book/custom/vo/AddSuggestionListVO.java
+4
-0
CustomPlanMapper.xml
...ook/src/main/resources/mapper/custom/CustomPlanMapper.xml
+1
-1
CustomPlanModuleSuggestionMapper.xml
...ources/mapper/custom/CustomPlanModuleSuggestionMapper.xml
+11
-20
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/custom/biz/impl/CustomPlanBizImpl.java
View file @
4e21f323
...
@@ -332,7 +332,8 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
...
@@ -332,7 +332,8 @@ public class CustomPlanBizImpl implements CustomPlanBiz {
}
}
CustomPlanModuleSuggestion
suggestion
=
CustomPlanModuleSuggestion
.
builder
().
wxId
(
wxId
).
planId
(
planId
)
CustomPlanModuleSuggestion
suggestion
=
CustomPlanModuleSuggestion
.
builder
().
wxId
(
wxId
).
planId
(
planId
)
.
suggestionLevel
(
addSuggestionListVO
.
getSuggestionLevel
()).
suggestion
(
addSuggestionListVO
.
getSuggestion
())
.
suggestionLevel
(
addSuggestionListVO
.
getSuggestionLevel
()).
suggestion
(
addSuggestionListVO
.
getSuggestion
())
.
batchId
(
maxBatchId
+
1
).
moduleId
(
addSuggestionListVO
.
getModuleId
()).
build
();
.
batchId
(
maxBatchId
+
1
).
moduleId
(
addSuggestionListVO
.
getModuleId
()).
moduleType
(
addSuggestionListVO
.
getModuleType
())
.
openFeedback
(
addSuggestionListVO
.
getOpenFeedback
()).
build
();
list
.
add
(
suggestion
);
list
.
add
(
suggestion
);
});
});
customPlanModuleSuggestionMapper
.
batchInsert
(
list
);
customPlanModuleSuggestionMapper
.
batchInsert
(
list
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/custom/entity/CustomPlanModuleSuggestion.java
View file @
4e21f323
...
@@ -25,4 +25,8 @@ public class CustomPlanModuleSuggestion {
...
@@ -25,4 +25,8 @@ public class CustomPlanModuleSuggestion {
private
Date
createTime
;
private
Date
createTime
;
private
Integer
openFeedback
;
private
Integer
moduleType
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/custom/vo/AddSuggestionListVO.java
View file @
4e21f323
...
@@ -10,4 +10,8 @@ public class AddSuggestionListVO {
...
@@ -10,4 +10,8 @@ public class AddSuggestionListVO {
private
Integer
suggestionLevel
;
private
Integer
suggestionLevel
;
private
String
suggestion
;
private
String
suggestion
;
private
Integer
openFeedback
;
private
Integer
moduleType
;
}
}
pcloud-service-book/src/main/resources/mapper/custom/CustomPlanMapper.xml
View file @
4e21f323
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<select
id=
"listCustomPlanByPage"
resultMap=
"BaseResultMap"
>
<select
id=
"listCustomPlanByPage"
resultMap=
"BaseResultMap"
>
select
select
a.id, plan_number, plan_name, create_user_name, description, 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
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
...
...
pcloud-service-book/src/main/resources/mapper/custom/CustomPlanModuleSuggestionMapper.xml
View file @
4e21f323
...
@@ -61,26 +61,15 @@
...
@@ -61,26 +61,15 @@
<select
id=
"getSuggestionInfo"
resultType=
"com.pcloud.book.custom.vo.ModuleSuggestionVO"
>
<select
id=
"getSuggestionInfo"
resultType=
"com.pcloud.book.custom.vo.ModuleSuggestionVO"
>
SELECT
SELECT
e.id moduleId
,
module_type moduleType
,
e.module_type moduleType
,
module_id moduleId
,
e.
open_feedback openFeedback,
open_feedback openFeedback,
s
.s
uggestion_level suggestionLevel,
suggestion_level suggestionLevel,
s
.s
uggestion
suggestion
FROM
FROM
custom_plan_module e
custom_plan_module_suggestion
LEFT JOIN (
SELECT
a.id,
suggestion_level,
suggestion
FROM
custom_plan_module a
LEFT JOIN custom_plan_module_suggestion b ON a.id = b.module_id
WHERE
batch_id = #{batchId}
) s ON e.id = s.id
WHERE
WHERE
e.plan_id = #{plan
Id}
batch_id = #{batch
Id}
</select>
</select>
<select
id=
"getMaxBatchId"
resultType=
"Integer"
>
<select
id=
"getMaxBatchId"
resultType=
"Integer"
>
...
@@ -88,10 +77,12 @@
...
@@ -88,10 +77,12 @@
</select>
</select>
<insert
id=
"batchInsert"
parameterType=
"com.pcloud.book.custom.entity.CustomPlanModuleSuggestion"
>
<insert
id=
"batchInsert"
parameterType=
"com.pcloud.book.custom.entity.CustomPlanModuleSuggestion"
>
insert into custom_plan_module_suggestion(batch_id, wx_id, plan_id, module_Id, suggestion_Level, suggestion, create_time)
insert into custom_plan_module_suggestion(batch_id, wx_id, plan_id, module_Id, suggestion_Level, suggestion, create_time,
module_type, open_feedback)
values
values
<foreach
collection=
"list"
separator=
","
item=
"item"
>
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(#{item.batchId}, #{item.wxId}, #{item.planId}, #{item.moduleId}, #{item.suggestionLevel}, #{item.suggestion}, now())
(#{item.batchId}, #{item.wxId}, #{item.planId}, #{item.moduleId}, #{item.suggestionLevel}, #{item.suggestion}, now(),
#{item.moduleType}, #{item.openFeedback})
</foreach>
</foreach>
</insert>
</insert>
...
...
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