Commit 50abed8d authored by zhangwanglin's avatar zhangwanglin

失能人员退出

parent 5ecde08d
......@@ -38,6 +38,7 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
int updateSrvSendById(ChSrvSend chSrvSend);
ChSrvSend selectSrvSend(Integer disableInfoId);
int insertSrvSend(Integer disableInfoId);
}
......@@ -624,17 +624,9 @@ public class DisableServiceImpl implements DisableService {
}else {
chSrvSend.setStatus((short)3);
disableInfoMapper.updateSrvSendById(chSrvSend);
ChSrvSend chSrvSend1 = disableInfoMapper.selectSrvSend(disableInfoId);
if(chSrvSend1!=null){
chSrvSend1.setStatus((short)0);
chSrvSend1.setFcd(new Date());
chSrvSendInfoMapper.insert(chSrvSend1);
}
disableInfoMapper.insertSrvSend(disableInfoId);
}
}
// 解除护理机构分配
// delete from CH_SRV_SEND where DISAB_INFO_ID = '327'
......
......@@ -70,11 +70,10 @@
update CH_SRV_SEND s set s.STATUS ='3',s.end_time = #{endTime} where
s.DISAB_INFO_ID = #{disabInfoId}
</update>
<select id="selectSrvSend" resultType="com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend">
select * from CH_SRV_SEND s where s.DISAB_INFO_ID = #{disabInfoId} and ROWNUM =1 order by fcd desc
</select>
<insert id="insertSrvSend" parameterType="com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend">
<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>
</mapper>
\ No newline at end of file
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