Commit f069d405 authored by zhangwanglin's avatar zhangwanglin

修改定期复评插入分配记录

parent c2453662
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @author jiaguokai
*
*/
@Mapper
@Repository
public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
}
...@@ -77,7 +77,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -77,7 +77,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
Page<TaskGroupInfoByPageVO> taskGroupInfoListByPage(String aprEmpId, String appointStartTime, String appointEndTime, String queryBeginDate, String queryEndDate, String groupNo, Integer pageNo, Integer pageSize); Page<TaskGroupInfoByPageVO> taskGroupInfoListByPage(String aprEmpId, String appointStartTime, String appointEndTime, String queryBeginDate, String queryEndDate, String groupNo, Integer pageNo, Integer pageSize);
int insertSrvSend(Integer disableInfoId);
ChDisableInfo selectDisableBycertiCode(@Param("certiCode") String certiCode); ChDisableInfo selectDisableBycertiCode(@Param("certiCode") String certiCode);
......
...@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach; ...@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import com.hungraim.ltc.pojo.entity.assessment.*; import com.hungraim.ltc.pojo.entity.assessment.*;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel; import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.ReportUpdateVO; import com.hungraim.ltc.pojo.vo.ReportUpdateVO;
import com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp; import com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp;
import com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp; import com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp;
...@@ -68,6 +69,9 @@ public class TaskServiceImpl implements TaskService { ...@@ -68,6 +69,9 @@ public class TaskServiceImpl implements TaskService {
private final ChAssessAccountsDetailMapper chAssessDetailAccountsMapper; private final ChAssessAccountsDetailMapper chAssessDetailAccountsMapper;
private final SrvSendMapper srvSendMapper;
...@@ -216,7 +220,11 @@ public class TaskServiceImpl implements TaskService { ...@@ -216,7 +220,11 @@ public class TaskServiceImpl implements TaskService {
if(2 == reportDetailVO.getEvaluateType()){ if(2 == reportDetailVO.getEvaluateType()){
ChAprTask chAprTask = taskMapper.selectById(reportDetailVO.getTaskId()); ChAprTask chAprTask = taskMapper.selectById(reportDetailVO.getTaskId());
Integer disableInfoId = chAprTask.getDisableInfoId(); Integer disableInfoId = chAprTask.getDisableInfoId();
taskMapper.insertSrvSend(disableInfoId); ChSrvSend chSrvSend = new ChSrvSend();
chSrvSend.setStatus((short) 0);
chSrvSend.setDisabInfoId(Long.valueOf(disableInfoId));
chSrvSend.setFcd(new Date());
srvSendMapper.insert(chSrvSend);
} }
return Result.success(); return Result.success();
} }
...@@ -384,7 +392,11 @@ public class TaskServiceImpl implements TaskService { ...@@ -384,7 +392,11 @@ public class TaskServiceImpl implements TaskService {
if(2 == vo.getEvaluateType()){ if(2 == vo.getEvaluateType()){
ChAprTask chAprTask = taskMapper.selectById(chAprReport.getTaskId()); ChAprTask chAprTask = taskMapper.selectById(chAprReport.getTaskId());
Integer disableInfoId = chAprTask.getDisableInfoId(); Integer disableInfoId = chAprTask.getDisableInfoId();
taskMapper.insertSrvSend(disableInfoId); ChSrvSend chSrvSend = new ChSrvSend();
chSrvSend.setStatus((short) 0);
chSrvSend.setDisabInfoId(Long.valueOf(disableInfoId));
chSrvSend.setFcd(new Date());
srvSendMapper.insert(chSrvSend);
} }
//附件上传 //附件上传
......
...@@ -494,10 +494,6 @@ ...@@ -494,10 +494,6 @@
<insert id="insertSrvSend">
insert INTO ch_srv_send(SRV_SEND_ID,DISAB_INFO_ID,FCD,STATUS) values
((SELECT max(srv_send_id)+1 id from CH_SRV_SEND),#{disableInfoId},SYSDATE,0)
</insert>
<select id="selectDisableBycertiCode" resultType="com.hungraim.ltc.pojo.entity.disable.ChDisableInfo"> <select id="selectDisableBycertiCode" resultType="com.hungraim.ltc.pojo.entity.disable.ChDisableInfo">
......
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