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
222d1e92
Commit
222d1e92
authored
Feb 26, 2020
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1002449时间管理模板中消息配置较多配置项,可优化向下拷贝上次已配置的内容
parent
2426e6cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletions
+34
-1
TaskBiz.java
...rc/main/java/com/pcloud/book/timecontrol/biz/TaskBiz.java
+2
-0
TaskBizImpl.java
...ava/com/pcloud/book/timecontrol/biz/impl/TaskBizImpl.java
+20
-0
TimeControlTaskFacadeImpl.java
...ok/timecontrol/facade/impl/TimeControlTaskFacadeImpl.java
+8
-0
TimeControlReplyMessageMapper.xml
...rces/mapper/timecontrol/TimeControlReplyMessageMapper.xml
+4
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/biz/TaskBiz.java
View file @
222d1e92
...
@@ -62,4 +62,6 @@ public interface TaskBiz {
...
@@ -62,4 +62,6 @@ public interface TaskBiz {
TaskDto
getTaskByIdAndWxUserId
(
Integer
relSkillId
,
String
wxUserId
);
TaskDto
getTaskByIdAndWxUserId
(
Integer
relSkillId
,
String
wxUserId
);
void
sendReplyMessage
(
List
<
TimeControlReplyMessage
>
replyMessages
,
String
wxUserId
,
String
robotWxId
,
String
ip
);
void
sendReplyMessage
(
List
<
TimeControlReplyMessage
>
replyMessages
,
String
wxUserId
,
String
robotWxId
,
String
ip
);
Integer
copyTaskItem
(
Integer
taskItemId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/biz/impl/TaskBizImpl.java
View file @
222d1e92
...
@@ -763,4 +763,24 @@ public class TaskBizImpl implements TaskBiz {
...
@@ -763,4 +763,24 @@ public class TaskBizImpl implements TaskBiz {
}
}
}
}
@Override
public
Integer
copyTaskItem
(
Integer
taskItemId
)
{
TimeControlTaskItem
timeControlTaskItem
=
taskItemMapper
.
selectByPrimaryKey
(
taskItemId
);
if
(
null
!=
timeControlTaskItem
)
{
timeControlTaskItem
.
setId
(
null
);
timeControlTaskItem
.
setStartDay
(
timeControlTaskItem
.
getStartDay
()
+
1
);
taskItemMapper
.
insert
(
timeControlTaskItem
);
Integer
newItemId
=
timeControlTaskItem
.
getId
();
List
<
TimeControlReplyMessage
>
list
=
replyMessageMapper
.
list4TaskItem
(
taskItemId
,
null
);
if
(!
ListUtils
.
isEmpty
(
list
))
{
list
.
forEach
(
replyMessage
->
{
replyMessage
.
setTaskItemId
(
newItemId
);
});
replyMessageMapper
.
batchInsert
(
list
);
}
return
newItemId
;
}
return
null
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/facade/impl/TimeControlTaskFacadeImpl.java
View file @
222d1e92
...
@@ -161,4 +161,11 @@ public class TimeControlTaskFacadeImpl {
...
@@ -161,4 +161,11 @@ public class TimeControlTaskFacadeImpl {
taskBiz
.
finishTaskSend
(
taskSendId
);
taskBiz
.
finishTaskSend
(
taskSendId
);
return
new
ResponseDto
<>();
return
new
ResponseDto
<>();
}
}
@ApiOperation
(
value
=
"复制消息配置"
,
httpMethod
=
"GET"
)
@GetMapping
(
"copyTaskItem"
)
ResponseDto
<?>
copyTaskItem
(
@RequestHeader
String
token
,
@RequestParam
Integer
taskItemId
){
Integer
id
=
taskBiz
.
copyTaskItem
(
taskItemId
);
return
new
ResponseDto
<>(
id
);
}
}
}
\ No newline at end of file
pcloud-service-book/src/main/resources/mapper/timecontrol/TimeControlReplyMessageMapper.xml
View file @
222d1e92
...
@@ -32,7 +32,10 @@
...
@@ -32,7 +32,10 @@
select task_id, task_item_id, type, reply_type, serve_id, resource_id, pic_url, serve_type,
select task_id, task_item_id, type, reply_type, serve_id, resource_id, pic_url, serve_type,
description, create_time, content, link_url
description, create_time, content, link_url
from time_control_reply_message
from time_control_reply_message
where task_item_id = #{taskItemId} and type = #{type}
where task_item_id = #{taskItemId}
<if
test=
"type != null"
>
and type = #{type}
</if>
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
...
...
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