Commit 6af211cb authored by 蔡镇泽's avatar 蔡镇泽

失能申请审核通过插入失能人员及失能评定数据

parent 6db2146c
package com.hungraim.ism.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.eval.ChAprTask;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 失能评定Mapper
*
* @author czz
*/
@Mapper
@Repository
public interface AprTaskMapper extends BaseMapper<ChAprTask> {
}
package com.hungraim.ism.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 失能人员信息Mapper
*
* @author czz
*/
@Mapper
@Repository
public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
}
package com.hungraim.ism.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
......@@ -9,6 +10,7 @@ import com.hungraim.ism.pojo.vo.disable.DisableVO;
import com.hungraim.ism.pojo.vo.disable.ExamineRecord;
import com.hungraim.ism.service.DisableService;
import com.hungraim.ltc.pojo.entity.disable.*;
import com.hungraim.ltc.pojo.entity.eval.ChAprTask;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -38,6 +40,10 @@ public class DisableServiceImpl implements DisableService {
private FndDiseaseTypeMapper fndDiseaseTypeMapper;
@Autowired
private DisableApplyHisMapper disableApplyHisMapper;
@Autowired
private DisableInfoMapper disableInfoMapper;
@Autowired
private AprTaskMapper aprTaskMapper;
/**
* 获取机构ids
......@@ -105,6 +111,17 @@ public class DisableServiceImpl implements DisableService {
chDisableApply.setCheckRemark(checkRemark);
chDisableApply.setCheckTime(date);
disableApplyMapper.updateById(chDisableApply);
//添加失能人员信息
ChDisableInfo chDisableInfo = new ChDisableInfo();
BeanUtil.copyProperties(chDisableApply, chDisableInfo);
disableInfoMapper.insert(chDisableInfo);
//添加失能评定信息
ChAprTask chAprTask = new ChAprTask();
BeanUtil.copyProperties(chDisableApply, chAprTask);
aprTaskMapper.insert(chAprTask);
}
disableApplyHisMapper.insert(chDisableApplyHis);
}
......
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.io.Serializable;
@Data
@TableName("CH_DISABLE_INFO")
@KeySequence(value = "SEQ_CH_DISABLE_INFO")
public class ChDisableInfo implements Serializable {
@TableId(value = "DISAB_INFO_ID", type = IdType.INPUT)
private Integer disabInfoId;
private String agentLatitude;
private String acptRoadDetail;
private java.util.Date checkTime;
private String certiCode;
private String registAddress;
private String diseaseDesc;
private String operDistrictCode;
private String registCity;
private Integer endEmg;
private String operName;
private String medicalHistory;
private String operAddress;
private String adressDistrictCity;
private Integer acptRoadType;
private String acptProvincial;
private Integer leftHandGrip;
private String operRoadDetail;
private String acptSrvAddress;
private Integer weight;
private java.util.Date birthday;
private String medicalHistory2;
private String medicalHistory3;
private Integer defineEmg;
private String adressDetail;
private String registArea;
private String medicalHistory1;
private String doctorName;
private java.util.Date fcd;
private String addressNumberDetail;
private String fixedTel;
private String addressLongitude;
private String acptNumberDetail;
private String adressDistrictProvincial;
private Integer treatmentType;
private Integer dataFrom;
private String organId;
private String addressLatitude;
private String disease;
private Integer fcu;
private Integer acptSrvNumberType;
private Integer bodyIncomplete;
private Integer aprTotalScore;
private String checkName;
private String doctorNumber;
private String acptSrvNumberDetail;
private Integer diseTypeF;
private Integer diseTypeS;
private String districtArea;
private String operTel;
private Integer applyId;
private Integer operRoadType;
private Integer cfgModeId;
private String operFixedTel;
private Integer addressType;
private String street;
private String acptAddress;
private String acptSrvProvincial;
private String acptSrvLongitude;
private String acptLatitude;
private String acptArea;
private String operNumberDetail;
private String checkRemark;
private java.util.Date effTime;
private String operDistrictCity;
private Integer addressRoadType;
private String acptLongitude;
private String operCertiCode;
private String acptSrvRoadDetail;
private Integer srvOrganIntent;
private Integer acptSrvType;
private String agentLongitude;
private Integer rightHandGrip;
private String registLatitude;
private java.util.Date endTime;
private String acptCity;
private Integer acptNumberType;
private String adressDistrictCode;
private String medicalCard;
private Integer acptSrvRoadType;
private String reason;
private Integer hearingObstacle;
private Integer lastTaskId;
private java.util.Date lCD;
private String realName;
private Integer regist;
private Integer operNumberType;
private Integer visionObstacle;
private String acptSrvStreet;
private String addressRoadDetail;
private String districtCity;
private String operDistrictProvincial;
private Integer lcu;
private Integer crossDistrict;
private String districtProvincial;
private Integer medicalType;
private Integer aplOrganId;
private Integer acptType;
private String acptSrvLatitude;
private String registStreet;
private Integer operRelation;
private Integer aprConfY;
private String acptSrvCity;
private String gender;
private Integer addressNumberType;
private String acptStreet;
private String operStreet;
private Integer srvModeId;
private Integer height;
private String registProvincial;
private String registLongitude;
private Integer applyStatus;
private String tel;
private String acptSrvArea;
}
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