Commit 7461c1ba by 章春雨

Merge branch 'feat-1002341' into 'master'

消息配置支持同一天

See merge request rays/pcloud-book!398
parents 2166835e 37c61b7d
...@@ -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())) {
......
...@@ -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" >
......
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