Commit a4340b23 authored by 蔡镇泽's avatar 蔡镇泽

生成分组历史

parent 15f850b1
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.assessment.ChAprTaskPushHis;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @author czz
*/
@Mapper
@Repository
public interface TaskPushHisMapper extends BaseMapper<ChAprTaskPushHis> {
}
...@@ -11,6 +11,7 @@ import com.hungraim.ltc.pojo.vo.assessment.*; ...@@ -11,6 +11,7 @@ import com.hungraim.ltc.pojo.vo.assessment.*;
import com.hungraim.ltc.service.TaskService; import com.hungraim.ltc.service.TaskService;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltc.util.SerialNumberUtils; import com.hungraim.ltc.util.SerialNumberUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -37,6 +38,8 @@ public class TaskServiceImpl implements TaskService { ...@@ -37,6 +38,8 @@ public class TaskServiceImpl implements TaskService {
@Autowired @Autowired
private TaskPushMapper taskPushMapper; private TaskPushMapper taskPushMapper;
@Autowired @Autowired
private TaskPushHisMapper taskPushHisMapper;
@Autowired
private CfgSrvDisableLevelMapper cfgSrvDisableLevelMapper; private CfgSrvDisableLevelMapper cfgSrvDisableLevelMapper;
@Override @Override
...@@ -180,7 +183,12 @@ public class TaskServiceImpl implements TaskService { ...@@ -180,7 +183,12 @@ public class TaskServiceImpl implements TaskService {
taskPush.setEmpId(Long.parseLong(empId)); taskPush.setEmpId(Long.parseLong(empId));
taskPush.setStatus((short) 1); taskPush.setStatus((short) 1);
taskPush.setIsManual((short) 1); taskPush.setIsManual((short) 1);
//生成分组历史
ChAprTaskPushHis pushHis = new ChAprTaskPushHis();
BeanUtils.copyProperties(taskPush, pushHis);
//插入分组数据
taskPushMapper.insert(taskPush); taskPushMapper.insert(taskPush);
taskPushHisMapper.insert(pushHis);
} }
return Result.success(); return Result.success();
} }
......
...@@ -21,7 +21,7 @@ public class ChAprTaskPushHis implements Serializable { ...@@ -21,7 +21,7 @@ public class ChAprTaskPushHis implements Serializable {
/** /**
* 任务推送ID(年月日+串码6) * 任务推送ID(年月日+串码6)
*/ */
@TableId(type = IdType.INPUT) @TableId(value = "his_task_push_id", type = IdType.INPUT)
private Long hisTaskPushId; private Long hisTaskPushId;
/** /**
......
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