Commit 389ffd87 authored by zhangwanglin's avatar zhangwanglin

失能人员退出历史记录

parent 7c5d5687
...@@ -500,7 +500,6 @@ public class DisableController { ...@@ -500,7 +500,6 @@ public class DisableController {
/** /**
* 失能人员信息退出列表 * 失能人员信息退出列表
* *
* @param pageNum 当前页 * @param pageNum 当前页
* @param pageSize 每页几条数据 * @param pageSize 每页几条数据
* @return 失能人员信息列表 * @return 失能人员信息列表
......
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.disable.ChDisableExit;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.vo.disable.DisableInfoListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* 失能人员退出Mapper
*
* @author
*/
@Mapper
@Repository
public interface DisableExitMapper extends BaseMapper<ChDisableExit> {
}
...@@ -58,11 +58,15 @@ public class DisableServiceImpl implements DisableService { ...@@ -58,11 +58,15 @@ public class DisableServiceImpl implements DisableService {
private final AttachFeignService attachFeignService; private final AttachFeignService attachFeignService;
private final ChDisableInfoChangeMapper chDisableInfoChangeMapper; private final ChDisableInfoChangeMapper chDisableInfoChangeMapper;
private final DisableInfoHisMapper disableInfoHisMapper; private final DisableInfoHisMapper disableInfoHisMapper;
private final DisableExitMapper disableExitMapper;
private final OrganService organService; private final OrganService organService;
@Autowired @Autowired
private ChDisableRiskLevelMapper chDisableRiskLevelMapper; private ChDisableRiskLevelMapper chDisableRiskLevelMapper;
/** /**
* 获取机构ids * 获取机构ids
* *
...@@ -594,13 +598,27 @@ public class DisableServiceImpl implements DisableService { ...@@ -594,13 +598,27 @@ public class DisableServiceImpl implements DisableService {
chDisableInfo.setExitSrvOrganId(srvOrganId); chDisableInfo.setExitSrvOrganId(srvOrganId);
int result = disableInfoMapper.updateById(chDisableInfo); int result = disableInfoMapper.updateById(chDisableInfo);
/**
* 1, 死亡
* 2, "复评未通过" },//需要重新首次录入-->评估
* 3, 退保
* 4, 转入医保
* 5, 异地
* 6, 更换其他机构
* 7, 其他
**/
if(exitReasonId == 3 || exitReasonId == 4 || exitReasonId == 5 || exitReasonId == 6 || exitReasonId == 7){ if(exitReasonId == 3 || exitReasonId == 4 || exitReasonId == 5 || exitReasonId == 6 || exitReasonId == 7){
// 解除护理机构分配 // 解除护理机构分配
// delete from CH_SRV_SEND where DISAB_INFO_ID = '327' // delete from CH_SRV_SEND where DISAB_INFO_ID = '327'
disableInfoMapper.deleteSrvSend(disableInfoId,exitTime); // disableInfoMapper.deleteSrvSend(disableInfoId,exitTime);
} }
ChDisableExit chDisableExit = new ChDisableExit();
chDisableExit.setDisabInfoId(disableInfoId);
chDisableExit.setExitReasonId(exitReasonId);
chDisableExit.setExitTime(date);
chDisableExit.setSrvOrganId(srvOrganId);
disableExitMapper.insert(chDisableExit);
return result; return result;
} }
......
package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @author zwl
* @ClassName ChDisableExit
* @description
* @date 2023/3/10 16:20
**/
@Data
@TableName("CH_DISABLE_EXIT")
@KeySequence(value = "SEQ_CH_DISABLE_EXIT")
public class ChDisableExit {
@TableId(value = "DISAB_EXIT_ID", type = IdType.INPUT)
private Integer disabExitId;
private Integer disabInfoId;
private Integer srvOrganId;
private Integer exitReasonId;
private Date exitTime;
}
...@@ -130,6 +130,15 @@ public class ChDisableInfo extends PageInfo implements Serializable { ...@@ -130,6 +130,15 @@ public class ChDisableInfo extends PageInfo implements Serializable {
private String tel; private String tel;
private String acptSrvArea; private String acptSrvArea;
private Integer exitFlag; private Integer exitFlag;
/**
* 1, 死亡
* 2, "复评未通过" },//需要重新首次录入-->评估
* 3, 退保
* 4, 转入医保
* 5, 异地
* 6, 更换其他机构
* 7, 其他
**/
private Integer exitReasonId; private Integer exitReasonId;
private Integer exitSrvOrganId; private Integer exitSrvOrganId;
private java.util.Date exitTime; private java.util.Date exitTime;
......
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