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
7461c1ba
Commit
7461c1ba
authored
Feb 12, 2020
by
章春雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-1002341' into 'master'
消息配置支持同一天 See merge request rays/pcloud-book!398
parents
2166835e
37c61b7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
TaskBizImpl.java
...ava/com/pcloud/book/timecontrol/biz/impl/TaskBizImpl.java
+5
-5
TimeControlTaskItemMapper.xml
...esources/mapper/timecontrol/TimeControlTaskItemMapper.xml
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/timecontrol/biz/impl/TaskBizImpl.java
View file @
7461c1ba
...
@@ -165,10 +165,10 @@ public class TaskBizImpl implements TaskBiz {
...
@@ -165,10 +165,10 @@ public class TaskBizImpl implements TaskBiz {
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条任务提醒"
);
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条任务提醒"
);
}
}
//检验是否存在当天定时任务
//检验是否存在当天定时任务
TimeControlTaskItem
item
=
taskItemMapper
.
getByTaskIdAndDay
(
taskId
,
startDay
);
/*
TimeControlTaskItem item = taskItemMapper.getByTaskIdAndDay(taskId, startDay);
if (null != item) {
if (null != item) {
throw new WechatGroupBizException(WechatGroupBizException.ERROR, "已配置过当天消息!");
throw new WechatGroupBizException(WechatGroupBizException.ERROR, "已配置过当天消息!");
}
}
*/
List
<
CreateReplyMessageDto
>
completedReplyMessageList
=
createTaskItemDto
.
getCompletedReplyMessageList
();
List
<
CreateReplyMessageDto
>
completedReplyMessageList
=
createTaskItemDto
.
getCompletedReplyMessageList
();
if
(
null
!=
createTaskItemDto
.
getFinishConfirm
()
&&
createTaskItemDto
.
getFinishConfirm
()==
1
){
if
(
null
!=
createTaskItemDto
.
getFinishConfirm
()
&&
createTaskItemDto
.
getFinishConfirm
()==
1
){
if
(
StringUtil
.
isEmpty
(
createTaskItemDto
.
getFinishLinkIntroduce
()))
{
if
(
StringUtil
.
isEmpty
(
createTaskItemDto
.
getFinishLinkIntroduce
()))
{
...
@@ -184,7 +184,7 @@ public class TaskBizImpl implements TaskBiz {
...
@@ -184,7 +184,7 @@ public class TaskBizImpl implements TaskBiz {
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条完成任务提醒"
);
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条完成任务提醒"
);
}
}
}
}
item
=
new
TimeControlTaskItem
();
TimeControlTaskItem
item
=
new
TimeControlTaskItem
();
BeanUtils
.
copyProperties
(
createTaskItemDto
,
item
);
BeanUtils
.
copyProperties
(
createTaskItemDto
,
item
);
if
(
null
==
item
.
getFinishConfirm
())
{
if
(
null
==
item
.
getFinishConfirm
())
{
item
.
setFinishConfirm
(
0
);
item
.
setFinishConfirm
(
0
);
...
@@ -253,10 +253,10 @@ public class TaskBizImpl implements TaskBiz {
...
@@ -253,10 +253,10 @@ public class TaskBizImpl implements TaskBiz {
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条任务提醒"
);
throw
new
WechatGroupBizException
(
WechatGroupBizException
.
ERROR
,
"至多填写3条任务提醒"
);
}
}
//检验是否存在当天定时任务
//检验是否存在当天定时任务
TimeControlTaskItem
item
=
taskItemMapper
.
getByTaskIdAndDay
(
taskId
,
startDay
);
/*
TimeControlTaskItem item = taskItemMapper.getByTaskIdAndDay(taskId, startDay);
if (null != item && !item.getId().equals(taskItemId)) {
if (null != item && !item.getId().equals(taskItemId)) {
throw new WechatGroupBizException(WechatGroupBizException.ERROR, "已配置过当天消息!");
throw new WechatGroupBizException(WechatGroupBizException.ERROR, "已配置过当天消息!");
}
}
*/
List
<
CreateReplyMessageDto
>
completedReplyMessageList
=
updateTaskItemDto
.
getCompletedReplyMessageList
();
List
<
CreateReplyMessageDto
>
completedReplyMessageList
=
updateTaskItemDto
.
getCompletedReplyMessageList
();
if
(
null
!=
updateTaskItemDto
.
getFinishConfirm
()
&&
updateTaskItemDto
.
getFinishConfirm
()==
1
){
if
(
null
!=
updateTaskItemDto
.
getFinishConfirm
()
&&
updateTaskItemDto
.
getFinishConfirm
()==
1
){
if
(
StringUtil
.
isEmpty
(
updateTaskItemDto
.
getFinishLinkIntroduce
()))
{
if
(
StringUtil
.
isEmpty
(
updateTaskItemDto
.
getFinishLinkIntroduce
()))
{
...
...
pcloud-service-book/src/main/resources/mapper/timecontrol/TimeControlTaskItemMapper.xml
View file @
7461c1ba
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<select
id=
"listTaskItemDay"
resultType=
"com.pcloud.book.timecontrol.dto.ReplyMessageBaseDto"
>
<select
id=
"listTaskItemDay"
resultType=
"com.pcloud.book.timecontrol.dto.ReplyMessageBaseDto"
>
select id, task_id taskId, start_day startDay
select id, task_id taskId, start_day startDay
from time_control_task_item where task_id = #{taskId}
from time_control_task_item where task_id = #{taskId}
order by startDay asc
order by startDay asc
, send_hour asc
</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