diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.java new file mode 100644 index 0000000..71012db --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.java @@ -0,0 +1,20 @@ +package com.lyms.hospital.dao.woman; + +import com.lyms.hospital.entity.woman.WomanFetationRecord; +import com.baomidou.mybatisplus.mapper.BaseMapper; +import org.springframework.stereotype.Repository; +import java.io.Serializable; +/** + *

+ * Mapper接口 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@Repository +public interface WomanFetationRecordMapper extends BaseMapper { + + public Integer deleteLogicById(Serializable id); + +} \ No newline at end of file diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.xml b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.xml new file mode 100644 index 0000000..e8f90bf --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanFetationRecordMapper.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ID AS id, BASE_WOMAN_NAME AS baseWomanName, BASE_PAPERS_TYPE AS basePapersType, BASE_PAPERS_NUMBER AS basePapersNumber, BASE_WOMAN_COUNTRY AS baseWomanCountry, BASE_WOMAN_NATION AS baseWomanNation, BASE_WOMAN_BIRTH AS baseWomanBirth, BASE_REGISTER_TYPE AS baseRegisterType, BASE_DWELL_TYPE AS baseDwellType, BASE_OCCUPATION_TYPE AS baseOccupationType, BASE_WOMAN_CULTURE AS baseWomanCulture, BASE_FAMILY_INCOME AS baseFamilyIncome, CONTACT_WOMAN_WAY AS contactWomanWay, CONTACT_WORK_ADDRESS AS contactWorkAddress, CONTACT_DWELL_PROVINCE AS contactDwellProvince, CONTACT_DWELL_CITY AS contactDwellCity, CONTACT_DWELL_AREA AS contactDwellArea, CONTACT_DWELL_STREET AS contactDwellStreet, CONTACT_DWELL_DETAIL AS contactDwellDetail, CONTACT_REGISTER_PROVINCE AS contactRegisterProvince, CONTACT_REGISTER_CITY AS contactRegisterCity, CONTACT_REGISTER_AREA AS contactRegisterArea, CONTACT_REGISTER_STREET AS contactRegisterStreet, CONTACT_REGISTER_DETAIL AS contactRegisterDetail, CONTACT_POSTPARTUM_PROVINCE AS contactPostpartumProvince, CONTACT_POSTPARTUM_CITY AS contactPostpartumCity, CONTACT_POSTPARTUM_AREA AS contactPostpartumArea, CONTACT_POSTPARTUM_STREET AS contactPostpartumStreet, CONTACT_POSTPARTUM_DETAIL AS contactPostpartumDetail, HOSPITAL_LAST_MENSTRUATION AS hospitalLastMenstruation, HOSPITAL_CORRECT_LAST_MENSTRUATION AS hospitalCorrectLastMenstruation, HOSPITAL_EXPECTED_DATE AS hospitalExpectedDate, HOSPITAL_PATIENT_CARD AS hospitalPatientCard, HOSPITAL_BARCODE AS hospitalBarcode, HOSPITAL_RECORD_NUMBER AS hospitalRecordNumber, HOSPITAL_SERVICE_TYPE AS hospitalServiceType, HOSPITAL_SERVICE_STATUS AS hospitalServiceStatus, HOSPITAL_MEMBER AS hospitalMember, HOSPITAL_RECORD_DOCTOR AS hospitalRecordDoctor, HOSPITAL_RECORD_DATE AS hospitalRecordDate, HOSPITAL_RECORD_REMARK AS hospitalRecordRemark, HOSPITAL_MEMBER_DATE AS hospitalMemberDate, BUILD_DATE AS buildDate, HOSTPITAL_ID AS hostpitalId, BUILD_TYPE AS buildType, CREATE_ID AS createId, CREATE_TIME AS createTime, MODIFY_ID AS modifyId, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENALBLE AS enalble + + diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.java new file mode 100644 index 0000000..b476af6 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.java @@ -0,0 +1,20 @@ +package com.lyms.hospital.dao.woman; + +import com.lyms.hospital.entity.woman.WomanHusband; +import com.baomidou.mybatisplus.mapper.BaseMapper; +import org.springframework.stereotype.Repository; +import java.io.Serializable; +/** + *

+ * Mapper接口 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@Repository +public interface WomanHusbandMapper extends BaseMapper { + + public Integer deleteLogicById(Serializable id); + +} \ No newline at end of file diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.xml b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.xml new file mode 100644 index 0000000..37a1efa --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanHusbandMapper.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ID AS id, HUSBAND_NAME AS husbandName, HUSBAND_PAPERS_TYPE AS husbandPapersType, HUSBAND_PAPERS_NUMBER AS husbandPapersNumber, HUSBAND_COUNTRY AS husbandCountry, HUSBAND_NATION AS husbandNation, HUSBAND_BIRTH AS husbandBirth, HUSBAND_OCCUPATION_TYPE AS husbandOccupationType, HUSBAND_CULTURE AS husbandCulture, HUSBAND_WAY AS husbandWay, HUSBAND_WORK_ADDRESS AS husbandWorkAddress, HUSBAND_REGISTER_PROVINCE AS husbandRegisterProvince, HUSBAND_REGISTER_CITY AS husbandRegisterCity, HUSBAND_REGISTER_AREA AS husbandRegisterArea, HUSBAND_REGISTER_STREET AS husbandRegisterStreet, HUSBAND_REGISTER_DETAIL AS husbandRegisterDetail, WOMAN_RECORD_ID AS womanRecordId, CREATE_DATE AS createDate + + diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.java new file mode 100644 index 0000000..9dee6f9 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.java @@ -0,0 +1,20 @@ +package com.lyms.hospital.dao.woman; + +import com.lyms.hospital.entity.woman.WomanPerson; +import com.baomidou.mybatisplus.mapper.BaseMapper; +import org.springframework.stereotype.Repository; +import java.io.Serializable; +/** + *

+ * Mapper接口 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@Repository +public interface WomanPersonMapper extends BaseMapper { + + public Integer deleteLogicById(Serializable id); + +} \ No newline at end of file diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.xml b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.xml new file mode 100644 index 0000000..cba6708 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanPersonMapper.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ID AS id, BASE_WOMAN_NAME AS baseWomanName, BASE_PAPERS_TYPE AS basePapersType, BASE_PAPERS_NUMBER AS basePapersNumber, BASE_WOMAN_COUNTRY AS baseWomanCountry, BASE_WOMAN_NATION AS baseWomanNation, BASE_WOMAN_BIRTH AS baseWomanBirth, BASE_REGISTER_TYPE AS baseRegisterType, BASE_DWELL_TYPE AS baseDwellType, CONTACT_WOMAN_WAY AS contactWomanWay, CONTACT_WORK_ADDRESS AS contactWorkAddress, CONTACT_DWELL_PROVINCE AS contactDwellProvince, CONTACT_DWELL_CITY AS contactDwellCity, CONTACT_DWELL_AREA AS contactDwellArea, CONTACT_DWELL_STREET AS contactDwellStreet, CONTACT_DWELL_DETAIL AS contactDwellDetail, CONTACT_REGISTER_PROVINCE AS contactRegisterProvince, CONTACT_REGISTER_CITY AS contactRegisterCity, CONTACT_REGISTER_AREA AS contactRegisterArea, CONTACT_REGISTER_STREET AS contactRegisterStreet, CONTACT_REGISTER_DETAIL AS contactRegisterDetail, CONTACT_POSTPARTUM_PROVINCE AS contactPostpartumProvince, CONTACT_POSTPARTUM_CITY AS contactPostpartumCity, CONTACT_POSTPARTUM_AREA AS contactPostpartumArea, CONTACT_POSTPARTUM_STREET AS contactPostpartumStreet, CONTACT_POSTPARTUM_DETAIL AS contactPostpartumDetail + + diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.java new file mode 100644 index 0000000..2051118 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.java @@ -0,0 +1,20 @@ +package com.lyms.hospital.dao.woman; + +import com.lyms.hospital.entity.woman.WomanRecord; +import com.baomidou.mybatisplus.mapper.BaseMapper; +import org.springframework.stereotype.Repository; +import java.io.Serializable; +/** + *

+ * Mapper接口 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@Repository +public interface WomanRecordMapper extends BaseMapper { + + public Integer deleteLogicById(Serializable id); + +} \ No newline at end of file diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.xml b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.xml new file mode 100644 index 0000000..3e85581 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/WomanRecordMapper.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ID AS id, BASE_WOMAN_NAME AS baseWomanName, BASE_PAPERS_TYPE AS basePapersType, BASE_PAPERS_NUMBER AS basePapersNumber, BASE_WOMAN_COUNTRY AS baseWomanCountry, BASE_WOMAN_NATION AS baseWomanNation, BASE_WOMAN_BIRTH AS baseWomanBirth, BASE_REGISTER_TYPE AS baseRegisterType, BASE_DWELL_TYPE AS baseDwellType, BASE_OCCUPATION_TYPE AS baseOccupationType, BASE_WOMAN_CULTURE AS baseWomanCulture, BASE_FAMILY_INCOME AS baseFamilyIncome, CONTACT_WOMAN_WAY AS contactWomanWay, CONTACT_WORK_ADDRESS AS contactWorkAddress, CONTACT_DWELL_PROVINCE AS contactDwellProvince, CONTACT_DWELL_CITY AS contactDwellCity, CONTACT_DWELL_AREA AS contactDwellArea, CONTACT_DWELL_STREET AS contactDwellStreet, CONTACT_DWELL_DETAIL AS contactDwellDetail, CONTACT_REGISTER_PROVINCE AS contactRegisterProvince, CONTACT_REGISTER_CITY AS contactRegisterCity, CONTACT_REGISTER_AREA AS contactRegisterArea, CONTACT_REGISTER_STREET AS contactRegisterStreet, CONTACT_REGISTER_DETAIL AS contactRegisterDetail, CONTACT_POSTPARTUM_PROVINCE AS contactPostpartumProvince, CONTACT_POSTPARTUM_CITY AS contactPostpartumCity, CONTACT_POSTPARTUM_AREA AS contactPostpartumArea, CONTACT_POSTPARTUM_STREET AS contactPostpartumStreet, CONTACT_POSTPARTUM_DETAIL AS contactPostpartumDetail, HOSPITAL_PATIENT_CARD AS hospitalPatientCard, HOSPITAL_BARCODE AS hospitalBarcode, HOSPITAL_RECORD_NUMBER AS hospitalRecordNumber, HOSPITAL_RECORD_DOCTOR AS hospitalRecordDoctor, HOSPITAL_RECORD_DATE AS hospitalRecordDate, HOSPITAL_RECORD_REMARK AS hospitalRecordRemark, HOSPITAL_MEMBER_DATE AS hospitalMemberDate, BUILD_DATE AS buildDate, HOSPITAL_ID AS hospitalId, BUILD_TYPE AS buildType, CREATE_ID AS createId, CREATE_TIME AS createTime, MODIFY_ID AS modifyId, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENALBLE AS enalble + + diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java new file mode 100644 index 0000000..8c8b19b --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java @@ -0,0 +1,687 @@ +package com.lyms.hospital.entity.woman; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import java.io.Serializable; +import java.util.Date; + +/** + *

+ * 妇女档案 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@TableName("WOMAN_FETATION_RECORD") +public class WomanFetationRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + @TableId(value="ID") + private String id; + /** + * 孕妇姓名 + */ + @TableField(value="BASE_WOMAN_NAME") + private String baseWomanName; + /** + * 证件类型 + */ + @TableField(value="BASE_PAPERS_TYPE") + private String basePapersType; + /** + * 证件编号 + */ + @TableField(value="BASE_PAPERS_NUMBER") + private String basePapersNumber; + /** + * 孕妇国家 + */ + @TableField(value="BASE_WOMAN_COUNTRY") + private String baseWomanCountry; + /** + * 民族 + */ + @TableField(value="BASE_WOMAN_NATION") + private String baseWomanNation; + /** + * 孕妇出生 + */ + @TableField(value="BASE_WOMAN_BIRTH") + private Date baseWomanBirth; + /** + * 户籍类型 + */ + @TableField(value="BASE_REGISTER_TYPE") + private String baseRegisterType; + /** + * 居住类别 + */ + @TableField(value="BASE_DWELL_TYPE") + private String baseDwellType; + /** + * 职业类别 + */ + @TableField(value="BASE_OCCUPATION_TYPE") + private String baseOccupationType; + /** + * 文化程度 + */ + @TableField(value="BASE_WOMAN_CULTURE") + private String baseWomanCulture; + /** + * 家庭收入 + */ + @TableField(value="BASE_FAMILY_INCOME") + private String baseFamilyIncome; + /** + * 联系方式 + */ + @TableField(value="CONTACT_WOMAN_WAY") + private String contactWomanWay; + /** + * 工作地址 + */ + @TableField(value="CONTACT_WORK_ADDRESS") + private String contactWorkAddress; + /** + * 省 + */ + @TableField(value="CONTACT_DWELL_PROVINCE") + private String contactDwellProvince; + /** + * 市 + */ + @TableField(value="CONTACT_DWELL_CITY") + private String contactDwellCity; + /** + * 区 + */ + @TableField(value="CONTACT_DWELL_AREA") + private String contactDwellArea; + /** + * 乡/镇/街道 + */ + @TableField(value="CONTACT_DWELL_STREET") + private String contactDwellStreet; + /** + * 详细地址 + */ + @TableField(value="CONTACT_DWELL_DETAIL") + private String contactDwellDetail; + /** + * 户籍地址省 + */ + @TableField(value="CONTACT_REGISTER_PROVINCE") + private String contactRegisterProvince; + /** + * 户籍地址市 + */ + @TableField(value="CONTACT_REGISTER_CITY") + private String contactRegisterCity; + /** + * 户籍地址区 + */ + @TableField(value="CONTACT_REGISTER_AREA") + private String contactRegisterArea; + /** + * 户籍地址乡/镇/街道 + */ + @TableField(value="CONTACT_REGISTER_STREET") + private String contactRegisterStreet; + /** + * 户籍地址详情 + */ + @TableField(value="CONTACT_REGISTER_DETAIL") + private String contactRegisterDetail; + /** + * 产后休养省 + */ + @TableField(value="CONTACT_POSTPARTUM_PROVINCE") + private String contactPostpartumProvince; + /** + * 产后休养市 + */ + @TableField(value="CONTACT_POSTPARTUM_CITY") + private String contactPostpartumCity; + /** + * 产后休养区 + */ + @TableField(value="CONTACT_POSTPARTUM_AREA") + private String contactPostpartumArea; + /** + * 产后休养街道 + */ + @TableField(value="CONTACT_POSTPARTUM_STREET") + private String contactPostpartumStreet; + /** + * 产后休养详细地址 + */ + @TableField(value="CONTACT_POSTPARTUM_DETAIL") + private String contactPostpartumDetail; + /** + * 末次月经 + */ + @TableField(value="HOSPITAL_LAST_MENSTRUATION") + private String hospitalLastMenstruation; + /** + * 纠正末次月经 + */ + @TableField(value="HOSPITAL_CORRECT_LAST_MENSTRUATION") + private String hospitalCorrectLastMenstruation; + /** + * 预产期 + */ + @TableField(value="HOSPITAL_EXPECTED_DATE") + private Date hospitalExpectedDate; + /** + * 就诊卡 + */ + @TableField(value="HOSPITAL_PATIENT_CARD") + private String hospitalPatientCard; + /** + * 条码 + */ + @TableField(value="HOSPITAL_BARCODE") + private String hospitalBarcode; + /** + * 档案编号 + */ + @TableField(value="HOSPITAL_RECORD_NUMBER") + private String hospitalRecordNumber; + /** + * 服务类型 + */ + @TableField(value="HOSPITAL_SERVICE_TYPE") + private String hospitalServiceType; + /** + * 服务状态 + */ + @TableField(value="HOSPITAL_SERVICE_STATUS") + private String hospitalServiceStatus; + /** + * 会员预约时间 + */ + @TableField(value="HOSPITAL_MEMBER") + private String hospitalMember; + /** + * 建档医生 + */ + @TableField(value="HOSPITAL_RECORD_DOCTOR") + private String hospitalRecordDoctor; + /** + * 建档日期 + */ + @TableField(value="HOSPITAL_RECORD_DATE") + private Date hospitalRecordDate; + /** + * 档案备注 + */ + @TableField(value="HOSPITAL_RECORD_REMARK") + private String hospitalRecordRemark; + /** + * 体验到期时间 + */ + @TableField(value="HOSPITAL_MEMBER_DATE") + private Date hospitalMemberDate; + /** + * 建档时间 + */ + @TableField(value="BUILD_DATE") + private Date buildDate; + /** + * 建档医院 + */ + @TableField(value="HOSTPITAL_ID") + private String hostpitalId; + /** + * 建档来源 + */ + @TableField(value="BUILD_TYPE") + private Integer buildType; + /** + * + */ + @TableField(value="CREATE_ID") + private String createId; + /** + * + */ + @TableField(value="CREATE_TIME") + private Date createTime; + /** + * + */ + @TableField(value="MODIFY_ID") + private String modifyId; + /** + * + */ + @TableField(value="MODIFY_TIME") + private Date modifyTime; + /** + * + */ + @TableField(value="IFDEL") + private Integer ifdel; + /** + * + */ + @TableField(value="ENALBLE") + private Integer enalble; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getBaseWomanName() { + return baseWomanName; + } + + public void setBaseWomanName(String baseWomanName) { + this.baseWomanName = baseWomanName; + } + + public String getBasePapersType() { + return basePapersType; + } + + public void setBasePapersType(String basePapersType) { + this.basePapersType = basePapersType; + } + + public String getBasePapersNumber() { + return basePapersNumber; + } + + public void setBasePapersNumber(String basePapersNumber) { + this.basePapersNumber = basePapersNumber; + } + + public String getBaseWomanCountry() { + return baseWomanCountry; + } + + public void setBaseWomanCountry(String baseWomanCountry) { + this.baseWomanCountry = baseWomanCountry; + } + + public String getBaseWomanNation() { + return baseWomanNation; + } + + public void setBaseWomanNation(String baseWomanNation) { + this.baseWomanNation = baseWomanNation; + } + + public Date getBaseWomanBirth() { + return baseWomanBirth; + } + + public void setBaseWomanBirth(Date baseWomanBirth) { + this.baseWomanBirth = baseWomanBirth; + } + + public String getBaseRegisterType() { + return baseRegisterType; + } + + public void setBaseRegisterType(String baseRegisterType) { + this.baseRegisterType = baseRegisterType; + } + + public String getBaseDwellType() { + return baseDwellType; + } + + public void setBaseDwellType(String baseDwellType) { + this.baseDwellType = baseDwellType; + } + + public String getBaseOccupationType() { + return baseOccupationType; + } + + public void setBaseOccupationType(String baseOccupationType) { + this.baseOccupationType = baseOccupationType; + } + + public String getBaseWomanCulture() { + return baseWomanCulture; + } + + public void setBaseWomanCulture(String baseWomanCulture) { + this.baseWomanCulture = baseWomanCulture; + } + + public String getBaseFamilyIncome() { + return baseFamilyIncome; + } + + public void setBaseFamilyIncome(String baseFamilyIncome) { + this.baseFamilyIncome = baseFamilyIncome; + } + + public String getContactWomanWay() { + return contactWomanWay; + } + + public void setContactWomanWay(String contactWomanWay) { + this.contactWomanWay = contactWomanWay; + } + + public String getContactWorkAddress() { + return contactWorkAddress; + } + + public void setContactWorkAddress(String contactWorkAddress) { + this.contactWorkAddress = contactWorkAddress; + } + + public String getContactDwellProvince() { + return contactDwellProvince; + } + + public void setContactDwellProvince(String contactDwellProvince) { + this.contactDwellProvince = contactDwellProvince; + } + + public String getContactDwellCity() { + return contactDwellCity; + } + + public void setContactDwellCity(String contactDwellCity) { + this.contactDwellCity = contactDwellCity; + } + + public String getContactDwellArea() { + return contactDwellArea; + } + + public void setContactDwellArea(String contactDwellArea) { + this.contactDwellArea = contactDwellArea; + } + + public String getContactDwellStreet() { + return contactDwellStreet; + } + + public void setContactDwellStreet(String contactDwellStreet) { + this.contactDwellStreet = contactDwellStreet; + } + + public String getContactDwellDetail() { + return contactDwellDetail; + } + + public void setContactDwellDetail(String contactDwellDetail) { + this.contactDwellDetail = contactDwellDetail; + } + + public String getContactRegisterProvince() { + return contactRegisterProvince; + } + + public void setContactRegisterProvince(String contactRegisterProvince) { + this.contactRegisterProvince = contactRegisterProvince; + } + + public String getContactRegisterCity() { + return contactRegisterCity; + } + + public void setContactRegisterCity(String contactRegisterCity) { + this.contactRegisterCity = contactRegisterCity; + } + + public String getContactRegisterArea() { + return contactRegisterArea; + } + + public void setContactRegisterArea(String contactRegisterArea) { + this.contactRegisterArea = contactRegisterArea; + } + + public String getContactRegisterStreet() { + return contactRegisterStreet; + } + + public void setContactRegisterStreet(String contactRegisterStreet) { + this.contactRegisterStreet = contactRegisterStreet; + } + + public String getContactRegisterDetail() { + return contactRegisterDetail; + } + + public void setContactRegisterDetail(String contactRegisterDetail) { + this.contactRegisterDetail = contactRegisterDetail; + } + + public String getContactPostpartumProvince() { + return contactPostpartumProvince; + } + + public void setContactPostpartumProvince(String contactPostpartumProvince) { + this.contactPostpartumProvince = contactPostpartumProvince; + } + + public String getContactPostpartumCity() { + return contactPostpartumCity; + } + + public void setContactPostpartumCity(String contactPostpartumCity) { + this.contactPostpartumCity = contactPostpartumCity; + } + + public String getContactPostpartumArea() { + return contactPostpartumArea; + } + + public void setContactPostpartumArea(String contactPostpartumArea) { + this.contactPostpartumArea = contactPostpartumArea; + } + + public String getContactPostpartumStreet() { + return contactPostpartumStreet; + } + + public void setContactPostpartumStreet(String contactPostpartumStreet) { + this.contactPostpartumStreet = contactPostpartumStreet; + } + + public String getContactPostpartumDetail() { + return contactPostpartumDetail; + } + + public void setContactPostpartumDetail(String contactPostpartumDetail) { + this.contactPostpartumDetail = contactPostpartumDetail; + } + + public String getHospitalLastMenstruation() { + return hospitalLastMenstruation; + } + + public void setHospitalLastMenstruation(String hospitalLastMenstruation) { + this.hospitalLastMenstruation = hospitalLastMenstruation; + } + + public String getHospitalCorrectLastMenstruation() { + return hospitalCorrectLastMenstruation; + } + + public void setHospitalCorrectLastMenstruation(String hospitalCorrectLastMenstruation) { + this.hospitalCorrectLastMenstruation = hospitalCorrectLastMenstruation; + } + + public Date getHospitalExpectedDate() { + return hospitalExpectedDate; + } + + public void setHospitalExpectedDate(Date hospitalExpectedDate) { + this.hospitalExpectedDate = hospitalExpectedDate; + } + + public String getHospitalPatientCard() { + return hospitalPatientCard; + } + + public void setHospitalPatientCard(String hospitalPatientCard) { + this.hospitalPatientCard = hospitalPatientCard; + } + + public String getHospitalBarcode() { + return hospitalBarcode; + } + + public void setHospitalBarcode(String hospitalBarcode) { + this.hospitalBarcode = hospitalBarcode; + } + + public String getHospitalRecordNumber() { + return hospitalRecordNumber; + } + + public void setHospitalRecordNumber(String hospitalRecordNumber) { + this.hospitalRecordNumber = hospitalRecordNumber; + } + + public String getHospitalServiceType() { + return hospitalServiceType; + } + + public void setHospitalServiceType(String hospitalServiceType) { + this.hospitalServiceType = hospitalServiceType; + } + + public String getHospitalServiceStatus() { + return hospitalServiceStatus; + } + + public void setHospitalServiceStatus(String hospitalServiceStatus) { + this.hospitalServiceStatus = hospitalServiceStatus; + } + + public String getHospitalMember() { + return hospitalMember; + } + + public void setHospitalMember(String hospitalMember) { + this.hospitalMember = hospitalMember; + } + + public String getHospitalRecordDoctor() { + return hospitalRecordDoctor; + } + + public void setHospitalRecordDoctor(String hospitalRecordDoctor) { + this.hospitalRecordDoctor = hospitalRecordDoctor; + } + + public Date getHospitalRecordDate() { + return hospitalRecordDate; + } + + public void setHospitalRecordDate(Date hospitalRecordDate) { + this.hospitalRecordDate = hospitalRecordDate; + } + + public String getHospitalRecordRemark() { + return hospitalRecordRemark; + } + + public void setHospitalRecordRemark(String hospitalRecordRemark) { + this.hospitalRecordRemark = hospitalRecordRemark; + } + + public Date getHospitalMemberDate() { + return hospitalMemberDate; + } + + public void setHospitalMemberDate(Date hospitalMemberDate) { + this.hospitalMemberDate = hospitalMemberDate; + } + + public Date getBuildDate() { + return buildDate; + } + + public void setBuildDate(Date buildDate) { + this.buildDate = buildDate; + } + + public String getHostpitalId() { + return hostpitalId; + } + + public void setHostpitalId(String hostpitalId) { + this.hostpitalId = hostpitalId; + } + + public Integer getBuildType() { + return buildType; + } + + public void setBuildType(Integer buildType) { + this.buildType = buildType; + } + + public String getCreateId() { + return createId; + } + + public void setCreateId(String createId) { + this.createId = createId; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getModifyId() { + return modifyId; + } + + public void setModifyId(String modifyId) { + this.modifyId = modifyId; + } + + public Date getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Date modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getIfdel() { + return ifdel; + } + + public void setIfdel(Integer ifdel) { + this.ifdel = ifdel; + } + + public Integer getEnalble() { + return enalble; + } + + public void setEnalble(Integer enalble) { + this.enalble = enalble; + } + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanHusband.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanHusband.java new file mode 100644 index 0000000..f8ec71d --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanHusband.java @@ -0,0 +1,258 @@ +package com.lyms.hospital.entity.woman; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import java.io.Serializable; +import java.util.Date; + +/** + *

+ * 丈夫信息表 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@TableName("WOMAN_HUSBAND") +public class WomanHusband implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + @TableId(value="ID") + private String id; + /** + * 丈夫姓名 + */ + @TableField(value="HUSBAND_NAME") + private String husbandName; + /** + * 丈夫证件类型 + */ + @TableField(value="HUSBAND_PAPERS_TYPE") + private String husbandPapersType; + /** + * 丈夫证件号码 + */ + @TableField(value="HUSBAND_PAPERS_NUMBER") + private String husbandPapersNumber; + /** + * 丈夫国籍 + */ + @TableField(value="HUSBAND_COUNTRY") + private String husbandCountry; + /** + * 丈夫民族 + */ + @TableField(value="HUSBAND_NATION") + private String husbandNation; + /** + * 丈夫出生日期 + */ + @TableField(value="HUSBAND_BIRTH") + private Date husbandBirth; + /** + * 丈夫职业类型 + */ + @TableField(value="HUSBAND_OCCUPATION_TYPE") + private String husbandOccupationType; + /** + * 丈夫文化程度 + */ + @TableField(value="HUSBAND_CULTURE") + private String husbandCulture; + /** + * 丈夫联系方式 + */ + @TableField(value="HUSBAND_WAY") + private String husbandWay; + /** + * 丈夫工作地址 + */ + @TableField(value="HUSBAND_WORK_ADDRESS") + private String husbandWorkAddress; + /** + * + */ + @TableField(value="HUSBAND_REGISTER_PROVINCE") + private String husbandRegisterProvince; + /** + * + */ + @TableField(value="HUSBAND_REGISTER_CITY") + private String husbandRegisterCity; + /** + * + */ + @TableField(value="HUSBAND_REGISTER_AREA") + private String husbandRegisterArea; + /** + * + */ + @TableField(value="HUSBAND_REGISTER_STREET") + private String husbandRegisterStreet; + /** + * + */ + @TableField(value="HUSBAND_REGISTER_DETAIL") + private String husbandRegisterDetail; + /** + * + */ + @TableField(value="WOMAN_RECORD_ID") + private String womanRecordId; + /** + * 建档时间 + */ + @TableField(value="CREATE_DATE") + private Date createDate; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getHusbandName() { + return husbandName; + } + + public void setHusbandName(String husbandName) { + this.husbandName = husbandName; + } + + public String getHusbandPapersType() { + return husbandPapersType; + } + + public void setHusbandPapersType(String husbandPapersType) { + this.husbandPapersType = husbandPapersType; + } + + public String getHusbandPapersNumber() { + return husbandPapersNumber; + } + + public void setHusbandPapersNumber(String husbandPapersNumber) { + this.husbandPapersNumber = husbandPapersNumber; + } + + public String getHusbandCountry() { + return husbandCountry; + } + + public void setHusbandCountry(String husbandCountry) { + this.husbandCountry = husbandCountry; + } + + public String getHusbandNation() { + return husbandNation; + } + + public void setHusbandNation(String husbandNation) { + this.husbandNation = husbandNation; + } + + public Date getHusbandBirth() { + return husbandBirth; + } + + public void setHusbandBirth(Date husbandBirth) { + this.husbandBirth = husbandBirth; + } + + public String getHusbandOccupationType() { + return husbandOccupationType; + } + + public void setHusbandOccupationType(String husbandOccupationType) { + this.husbandOccupationType = husbandOccupationType; + } + + public String getHusbandCulture() { + return husbandCulture; + } + + public void setHusbandCulture(String husbandCulture) { + this.husbandCulture = husbandCulture; + } + + public String getHusbandWay() { + return husbandWay; + } + + public void setHusbandWay(String husbandWay) { + this.husbandWay = husbandWay; + } + + public String getHusbandWorkAddress() { + return husbandWorkAddress; + } + + public void setHusbandWorkAddress(String husbandWorkAddress) { + this.husbandWorkAddress = husbandWorkAddress; + } + + public String getHusbandRegisterProvince() { + return husbandRegisterProvince; + } + + public void setHusbandRegisterProvince(String husbandRegisterProvince) { + this.husbandRegisterProvince = husbandRegisterProvince; + } + + public String getHusbandRegisterCity() { + return husbandRegisterCity; + } + + public void setHusbandRegisterCity(String husbandRegisterCity) { + this.husbandRegisterCity = husbandRegisterCity; + } + + public String getHusbandRegisterArea() { + return husbandRegisterArea; + } + + public void setHusbandRegisterArea(String husbandRegisterArea) { + this.husbandRegisterArea = husbandRegisterArea; + } + + public String getHusbandRegisterStreet() { + return husbandRegisterStreet; + } + + public void setHusbandRegisterStreet(String husbandRegisterStreet) { + this.husbandRegisterStreet = husbandRegisterStreet; + } + + public String getHusbandRegisterDetail() { + return husbandRegisterDetail; + } + + public void setHusbandRegisterDetail(String husbandRegisterDetail) { + this.husbandRegisterDetail = husbandRegisterDetail; + } + + public String getWomanRecordId() { + return womanRecordId; + } + + public void setWomanRecordId(String womanRecordId) { + this.womanRecordId = womanRecordId; + } + + public Date getCreateDate() { + return createDate; + } + + public void setCreateDate(Date createDate) { + this.createDate = createDate; + } + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanPerson.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanPerson.java new file mode 100644 index 0000000..6a5ca02 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanPerson.java @@ -0,0 +1,362 @@ +package com.lyms.hospital.entity.woman; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import java.io.Serializable; +import java.util.Date; + +/** + *

+ * 女性居民表 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@TableName("WOMAN_PERSON") +public class WomanPerson implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + @TableId(value="ID") + private String id; + /** + * 孕妇姓名 + */ + @TableField(value="BASE_WOMAN_NAME") + private String baseWomanName; + /** + * 证件类型 + */ + @TableField(value="BASE_PAPERS_TYPE") + private String basePapersType; + /** + * 证件编号 + */ + @TableField(value="BASE_PAPERS_NUMBER") + private String basePapersNumber; + /** + * 孕妇国家 + */ + @TableField(value="BASE_WOMAN_COUNTRY") + private String baseWomanCountry; + /** + * 民族 + */ + @TableField(value="BASE_WOMAN_NATION") + private String baseWomanNation; + /** + * 孕妇出生 + */ + @TableField(value="BASE_WOMAN_BIRTH") + private Date baseWomanBirth; + /** + * 户籍类型 + */ + @TableField(value="BASE_REGISTER_TYPE") + private String baseRegisterType; + /** + * 居住类别 + */ + @TableField(value="BASE_DWELL_TYPE") + private String baseDwellType; + /** + * 联系方式 + */ + @TableField(value="CONTACT_WOMAN_WAY") + private String contactWomanWay; + /** + * 工作地址 + */ + @TableField(value="CONTACT_WORK_ADDRESS") + private String contactWorkAddress; + /** + * 省 + */ + @TableField(value="CONTACT_DWELL_PROVINCE") + private String contactDwellProvince; + /** + * 市 + */ + @TableField(value="CONTACT_DWELL_CITY") + private String contactDwellCity; + /** + * 区 + */ + @TableField(value="CONTACT_DWELL_AREA") + private String contactDwellArea; + /** + * 乡/镇/街道 + */ + @TableField(value="CONTACT_DWELL_STREET") + private String contactDwellStreet; + /** + * 详细地址 + */ + @TableField(value="CONTACT_DWELL_DETAIL") + private String contactDwellDetail; + /** + * 户籍地址省 + */ + @TableField(value="CONTACT_REGISTER_PROVINCE") + private String contactRegisterProvince; + /** + * 户籍地址市 + */ + @TableField(value="CONTACT_REGISTER_CITY") + private String contactRegisterCity; + /** + * 户籍地址区 + */ + @TableField(value="CONTACT_REGISTER_AREA") + private String contactRegisterArea; + /** + * 户籍地址乡/镇/街道 + */ + @TableField(value="CONTACT_REGISTER_STREET") + private String contactRegisterStreet; + /** + * 户籍地址详情 + */ + @TableField(value="CONTACT_REGISTER_DETAIL") + private String contactRegisterDetail; + /** + * 产后休养省 + */ + @TableField(value="CONTACT_POSTPARTUM_PROVINCE") + private String contactPostpartumProvince; + /** + * 产后休养市 + */ + @TableField(value="CONTACT_POSTPARTUM_CITY") + private String contactPostpartumCity; + /** + * 产后休养区 + */ + @TableField(value="CONTACT_POSTPARTUM_AREA") + private String contactPostpartumArea; + /** + * 产后休养街道 + */ + @TableField(value="CONTACT_POSTPARTUM_STREET") + private String contactPostpartumStreet; + /** + * 产后休养详细地址 + */ + @TableField(value="CONTACT_POSTPARTUM_DETAIL") + private String contactPostpartumDetail; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getBaseWomanName() { + return baseWomanName; + } + + public void setBaseWomanName(String baseWomanName) { + this.baseWomanName = baseWomanName; + } + + public String getBasePapersType() { + return basePapersType; + } + + public void setBasePapersType(String basePapersType) { + this.basePapersType = basePapersType; + } + + public String getBasePapersNumber() { + return basePapersNumber; + } + + public void setBasePapersNumber(String basePapersNumber) { + this.basePapersNumber = basePapersNumber; + } + + public String getBaseWomanCountry() { + return baseWomanCountry; + } + + public void setBaseWomanCountry(String baseWomanCountry) { + this.baseWomanCountry = baseWomanCountry; + } + + public String getBaseWomanNation() { + return baseWomanNation; + } + + public void setBaseWomanNation(String baseWomanNation) { + this.baseWomanNation = baseWomanNation; + } + + public Date getBaseWomanBirth() { + return baseWomanBirth; + } + + public void setBaseWomanBirth(Date baseWomanBirth) { + this.baseWomanBirth = baseWomanBirth; + } + + public String getBaseRegisterType() { + return baseRegisterType; + } + + public void setBaseRegisterType(String baseRegisterType) { + this.baseRegisterType = baseRegisterType; + } + + public String getBaseDwellType() { + return baseDwellType; + } + + public void setBaseDwellType(String baseDwellType) { + this.baseDwellType = baseDwellType; + } + + public String getContactWomanWay() { + return contactWomanWay; + } + + public void setContactWomanWay(String contactWomanWay) { + this.contactWomanWay = contactWomanWay; + } + + public String getContactWorkAddress() { + return contactWorkAddress; + } + + public void setContactWorkAddress(String contactWorkAddress) { + this.contactWorkAddress = contactWorkAddress; + } + + public String getContactDwellProvince() { + return contactDwellProvince; + } + + public void setContactDwellProvince(String contactDwellProvince) { + this.contactDwellProvince = contactDwellProvince; + } + + public String getContactDwellCity() { + return contactDwellCity; + } + + public void setContactDwellCity(String contactDwellCity) { + this.contactDwellCity = contactDwellCity; + } + + public String getContactDwellArea() { + return contactDwellArea; + } + + public void setContactDwellArea(String contactDwellArea) { + this.contactDwellArea = contactDwellArea; + } + + public String getContactDwellStreet() { + return contactDwellStreet; + } + + public void setContactDwellStreet(String contactDwellStreet) { + this.contactDwellStreet = contactDwellStreet; + } + + public String getContactDwellDetail() { + return contactDwellDetail; + } + + public void setContactDwellDetail(String contactDwellDetail) { + this.contactDwellDetail = contactDwellDetail; + } + + public String getContactRegisterProvince() { + return contactRegisterProvince; + } + + public void setContactRegisterProvince(String contactRegisterProvince) { + this.contactRegisterProvince = contactRegisterProvince; + } + + public String getContactRegisterCity() { + return contactRegisterCity; + } + + public void setContactRegisterCity(String contactRegisterCity) { + this.contactRegisterCity = contactRegisterCity; + } + + public String getContactRegisterArea() { + return contactRegisterArea; + } + + public void setContactRegisterArea(String contactRegisterArea) { + this.contactRegisterArea = contactRegisterArea; + } + + public String getContactRegisterStreet() { + return contactRegisterStreet; + } + + public void setContactRegisterStreet(String contactRegisterStreet) { + this.contactRegisterStreet = contactRegisterStreet; + } + + public String getContactRegisterDetail() { + return contactRegisterDetail; + } + + public void setContactRegisterDetail(String contactRegisterDetail) { + this.contactRegisterDetail = contactRegisterDetail; + } + + public String getContactPostpartumProvince() { + return contactPostpartumProvince; + } + + public void setContactPostpartumProvince(String contactPostpartumProvince) { + this.contactPostpartumProvince = contactPostpartumProvince; + } + + public String getContactPostpartumCity() { + return contactPostpartumCity; + } + + public void setContactPostpartumCity(String contactPostpartumCity) { + this.contactPostpartumCity = contactPostpartumCity; + } + + public String getContactPostpartumArea() { + return contactPostpartumArea; + } + + public void setContactPostpartumArea(String contactPostpartumArea) { + this.contactPostpartumArea = contactPostpartumArea; + } + + public String getContactPostpartumStreet() { + return contactPostpartumStreet; + } + + public void setContactPostpartumStreet(String contactPostpartumStreet) { + this.contactPostpartumStreet = contactPostpartumStreet; + } + + public String getContactPostpartumDetail() { + return contactPostpartumDetail; + } + + public void setContactPostpartumDetail(String contactPostpartumDetail) { + this.contactPostpartumDetail = contactPostpartumDetail; + } + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanRecord.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanRecord.java new file mode 100644 index 0000000..5bfe58e --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanRecord.java @@ -0,0 +1,609 @@ +package com.lyms.hospital.entity.woman; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import java.io.Serializable; +import java.util.Date; + +/** + *

+ * 妇女档案 + *

+ * + * @author fangcheng + * @since 2017-03-31 + */ +@TableName("WOMAN_RECORD") +public class WomanRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + @TableId(value="ID") + private String id; + /** + * 孕妇姓名 + */ + @TableField(value="BASE_WOMAN_NAME") + private String baseWomanName; + /** + * 证件类型 + */ + @TableField(value="BASE_PAPERS_TYPE") + private String basePapersType; + /** + * 证件编号 + */ + @TableField(value="BASE_PAPERS_NUMBER") + private String basePapersNumber; + /** + * 孕妇国家 + */ + @TableField(value="BASE_WOMAN_COUNTRY") + private String baseWomanCountry; + /** + * 民族 + */ + @TableField(value="BASE_WOMAN_NATION") + private String baseWomanNation; + /** + * 孕妇出生 + */ + @TableField(value="BASE_WOMAN_BIRTH") + private Date baseWomanBirth; + /** + * 户籍类型 + */ + @TableField(value="BASE_REGISTER_TYPE") + private String baseRegisterType; + /** + * 居住类别 + */ + @TableField(value="BASE_DWELL_TYPE") + private String baseDwellType; + /** + * 职业类别 + */ + @TableField(value="BASE_OCCUPATION_TYPE") + private String baseOccupationType; + /** + * 文化程度 + */ + @TableField(value="BASE_WOMAN_CULTURE") + private String baseWomanCulture; + /** + * 家庭收入 + */ + @TableField(value="BASE_FAMILY_INCOME") + private String baseFamilyIncome; + /** + * 联系方式 + */ + @TableField(value="CONTACT_WOMAN_WAY") + private String contactWomanWay; + /** + * 工作地址 + */ + @TableField(value="CONTACT_WORK_ADDRESS") + private String contactWorkAddress; + /** + * 省 + */ + @TableField(value="CONTACT_DWELL_PROVINCE") + private String contactDwellProvince; + /** + * 市 + */ + @TableField(value="CONTACT_DWELL_CITY") + private String contactDwellCity; + /** + * 区 + */ + @TableField(value="CONTACT_DWELL_AREA") + private String contactDwellArea; + /** + * 乡/镇/街道 + */ + @TableField(value="CONTACT_DWELL_STREET") + private String contactDwellStreet; + /** + * 详细地址 + */ + @TableField(value="CONTACT_DWELL_DETAIL") + private String contactDwellDetail; + /** + * 户籍地址省 + */ + @TableField(value="CONTACT_REGISTER_PROVINCE") + private String contactRegisterProvince; + /** + * 户籍地址市 + */ + @TableField(value="CONTACT_REGISTER_CITY") + private String contactRegisterCity; + /** + * 户籍地址区 + */ + @TableField(value="CONTACT_REGISTER_AREA") + private String contactRegisterArea; + /** + * 户籍地址乡/镇/街道 + */ + @TableField(value="CONTACT_REGISTER_STREET") + private String contactRegisterStreet; + /** + * 户籍地址详情 + */ + @TableField(value="CONTACT_REGISTER_DETAIL") + private String contactRegisterDetail; + /** + * 产后休养省 + */ + @TableField(value="CONTACT_POSTPARTUM_PROVINCE") + private String contactPostpartumProvince; + /** + * 产后休养市 + */ + @TableField(value="CONTACT_POSTPARTUM_CITY") + private String contactPostpartumCity; + /** + * 产后休养区 + */ + @TableField(value="CONTACT_POSTPARTUM_AREA") + private String contactPostpartumArea; + /** + * 产后休养街道 + */ + @TableField(value="CONTACT_POSTPARTUM_STREET") + private String contactPostpartumStreet; + /** + * 产后休养详细地址 + */ + @TableField(value="CONTACT_POSTPARTUM_DETAIL") + private String contactPostpartumDetail; + /** + * 就诊卡 + */ + @TableField(value="HOSPITAL_PATIENT_CARD") + private String hospitalPatientCard; + /** + * 条码 + */ + @TableField(value="HOSPITAL_BARCODE") + private String hospitalBarcode; + /** + * 档案编号 + */ + @TableField(value="HOSPITAL_RECORD_NUMBER") + private String hospitalRecordNumber; + /** + * 建档医生 + */ + @TableField(value="HOSPITAL_RECORD_DOCTOR") + private String hospitalRecordDoctor; + /** + * 建档日期 + */ + @TableField(value="HOSPITAL_RECORD_DATE") + private Date hospitalRecordDate; + /** + * 档案备注 + */ + @TableField(value="HOSPITAL_RECORD_REMARK") + private String hospitalRecordRemark; + /** + * 体验到期时间 + */ + @TableField(value="HOSPITAL_MEMBER_DATE") + private Date hospitalMemberDate; + /** + * 建档时间 + */ + @TableField(value="BUILD_DATE") + private Date buildDate; + /** + * 建档医院 + */ + @TableField(value="HOSPITAL_ID") + private String hospitalId; + /** + * 建档来源 + */ + @TableField(value="BUILD_TYPE") + private Integer buildType; + /** + * + */ + @TableField(value="CREATE_ID") + private String createId; + /** + * + */ + @TableField(value="CREATE_TIME") + private Date createTime; + /** + * + */ + @TableField(value="MODIFY_ID") + private String modifyId; + /** + * + */ + @TableField(value="MODIFY_TIME") + private Date modifyTime; + /** + * + */ + @TableField(value="IFDEL") + private Integer ifdel; + /** + * + */ + @TableField(value="ENALBLE") + private Integer enalble; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getBaseWomanName() { + return baseWomanName; + } + + public void setBaseWomanName(String baseWomanName) { + this.baseWomanName = baseWomanName; + } + + public String getBasePapersType() { + return basePapersType; + } + + public void setBasePapersType(String basePapersType) { + this.basePapersType = basePapersType; + } + + public String getBasePapersNumber() { + return basePapersNumber; + } + + public void setBasePapersNumber(String basePapersNumber) { + this.basePapersNumber = basePapersNumber; + } + + public String getBaseWomanCountry() { + return baseWomanCountry; + } + + public void setBaseWomanCountry(String baseWomanCountry) { + this.baseWomanCountry = baseWomanCountry; + } + + public String getBaseWomanNation() { + return baseWomanNation; + } + + public void setBaseWomanNation(String baseWomanNation) { + this.baseWomanNation = baseWomanNation; + } + + public Date getBaseWomanBirth() { + return baseWomanBirth; + } + + public void setBaseWomanBirth(Date baseWomanBirth) { + this.baseWomanBirth = baseWomanBirth; + } + + public String getBaseRegisterType() { + return baseRegisterType; + } + + public void setBaseRegisterType(String baseRegisterType) { + this.baseRegisterType = baseRegisterType; + } + + public String getBaseDwellType() { + return baseDwellType; + } + + public void setBaseDwellType(String baseDwellType) { + this.baseDwellType = baseDwellType; + } + + public String getBaseOccupationType() { + return baseOccupationType; + } + + public void setBaseOccupationType(String baseOccupationType) { + this.baseOccupationType = baseOccupationType; + } + + public String getBaseWomanCulture() { + return baseWomanCulture; + } + + public void setBaseWomanCulture(String baseWomanCulture) { + this.baseWomanCulture = baseWomanCulture; + } + + public String getBaseFamilyIncome() { + return baseFamilyIncome; + } + + public void setBaseFamilyIncome(String baseFamilyIncome) { + this.baseFamilyIncome = baseFamilyIncome; + } + + public String getContactWomanWay() { + return contactWomanWay; + } + + public void setContactWomanWay(String contactWomanWay) { + this.contactWomanWay = contactWomanWay; + } + + public String getContactWorkAddress() { + return contactWorkAddress; + } + + public void setContactWorkAddress(String contactWorkAddress) { + this.contactWorkAddress = contactWorkAddress; + } + + public String getContactDwellProvince() { + return contactDwellProvince; + } + + public void setContactDwellProvince(String contactDwellProvince) { + this.contactDwellProvince = contactDwellProvince; + } + + public String getContactDwellCity() { + return contactDwellCity; + } + + public void setContactDwellCity(String contactDwellCity) { + this.contactDwellCity = contactDwellCity; + } + + public String getContactDwellArea() { + return contactDwellArea; + } + + public void setContactDwellArea(String contactDwellArea) { + this.contactDwellArea = contactDwellArea; + } + + public String getContactDwellStreet() { + return contactDwellStreet; + } + + public void setContactDwellStreet(String contactDwellStreet) { + this.contactDwellStreet = contactDwellStreet; + } + + public String getContactDwellDetail() { + return contactDwellDetail; + } + + public void setContactDwellDetail(String contactDwellDetail) { + this.contactDwellDetail = contactDwellDetail; + } + + public String getContactRegisterProvince() { + return contactRegisterProvince; + } + + public void setContactRegisterProvince(String contactRegisterProvince) { + this.contactRegisterProvince = contactRegisterProvince; + } + + public String getContactRegisterCity() { + return contactRegisterCity; + } + + public void setContactRegisterCity(String contactRegisterCity) { + this.contactRegisterCity = contactRegisterCity; + } + + public String getContactRegisterArea() { + return contactRegisterArea; + } + + public void setContactRegisterArea(String contactRegisterArea) { + this.contactRegisterArea = contactRegisterArea; + } + + public String getContactRegisterStreet() { + return contactRegisterStreet; + } + + public void setContactRegisterStreet(String contactRegisterStreet) { + this.contactRegisterStreet = contactRegisterStreet; + } + + public String getContactRegisterDetail() { + return contactRegisterDetail; + } + + public void setContactRegisterDetail(String contactRegisterDetail) { + this.contactRegisterDetail = contactRegisterDetail; + } + + public String getContactPostpartumProvince() { + return contactPostpartumProvince; + } + + public void setContactPostpartumProvince(String contactPostpartumProvince) { + this.contactPostpartumProvince = contactPostpartumProvince; + } + + public String getContactPostpartumCity() { + return contactPostpartumCity; + } + + public void setContactPostpartumCity(String contactPostpartumCity) { + this.contactPostpartumCity = contactPostpartumCity; + } + + public String getContactPostpartumArea() { + return contactPostpartumArea; + } + + public void setContactPostpartumArea(String contactPostpartumArea) { + this.contactPostpartumArea = contactPostpartumArea; + } + + public String getContactPostpartumStreet() { + return contactPostpartumStreet; + } + + public void setContactPostpartumStreet(String contactPostpartumStreet) { + this.contactPostpartumStreet = contactPostpartumStreet; + } + + public String getContactPostpartumDetail() { + return contactPostpartumDetail; + } + + public void setContactPostpartumDetail(String contactPostpartumDetail) { + this.contactPostpartumDetail = contactPostpartumDetail; + } + + public String getHospitalPatientCard() { + return hospitalPatientCard; + } + + public void setHospitalPatientCard(String hospitalPatientCard) { + this.hospitalPatientCard = hospitalPatientCard; + } + + public String getHospitalBarcode() { + return hospitalBarcode; + } + + public void setHospitalBarcode(String hospitalBarcode) { + this.hospitalBarcode = hospitalBarcode; + } + + public String getHospitalRecordNumber() { + return hospitalRecordNumber; + } + + public void setHospitalRecordNumber(String hospitalRecordNumber) { + this.hospitalRecordNumber = hospitalRecordNumber; + } + + public String getHospitalRecordDoctor() { + return hospitalRecordDoctor; + } + + public void setHospitalRecordDoctor(String hospitalRecordDoctor) { + this.hospitalRecordDoctor = hospitalRecordDoctor; + } + + public Date getHospitalRecordDate() { + return hospitalRecordDate; + } + + public void setHospitalRecordDate(Date hospitalRecordDate) { + this.hospitalRecordDate = hospitalRecordDate; + } + + public String getHospitalRecordRemark() { + return hospitalRecordRemark; + } + + public void setHospitalRecordRemark(String hospitalRecordRemark) { + this.hospitalRecordRemark = hospitalRecordRemark; + } + + public Date getHospitalMemberDate() { + return hospitalMemberDate; + } + + public void setHospitalMemberDate(Date hospitalMemberDate) { + this.hospitalMemberDate = hospitalMemberDate; + } + + public Date getBuildDate() { + return buildDate; + } + + public void setBuildDate(Date buildDate) { + this.buildDate = buildDate; + } + + public String getHospitalId() { + return hospitalId; + } + + public void setHospitalId(String hospitalId) { + this.hospitalId = hospitalId; + } + + public Integer getBuildType() { + return buildType; + } + + public void setBuildType(Integer buildType) { + this.buildType = buildType; + } + + public String getCreateId() { + return createId; + } + + public void setCreateId(String createId) { + this.createId = createId; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getModifyId() { + return modifyId; + } + + public void setModifyId(String modifyId) { + this.modifyId = modifyId; + } + + public Date getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Date modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getIfdel() { + return ifdel; + } + + public void setIfdel(Integer ifdel) { + this.ifdel = ifdel; + } + + public Integer getEnalble() { + return enalble; + } + + public void setEnalble(Integer enalble) { + this.enalble = enalble; + } + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/HistoryMapsService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/HistoryMapsService.java index f44dfbc..f3df0a4 100644 --- a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/HistoryMapsService.java +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/HistoryMapsService.java @@ -3,6 +3,7 @@ package com.lyms.hospital.service.history; import com.lyms.hospital.entity.history.HistoryMaps; import com.lyms.web.service.BaseService; import java.io.Serializable; +import java.util.List; /** *

@@ -14,11 +15,22 @@ import java.io.Serializable; */ public interface HistoryMapsService extends BaseService { - /** + /** *

  • @Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 *
  • @param id 删除主键id *
  • @return 大于0修改成功,否则为失败 */ - public Integer deleteLogicById(Serializable id); - + public Integer deleteLogicById(Serializable id); + + /** + *
  • @Description:插入病史信息 + *
  • @param womanid + *
  • @param list + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public void insertHistoryMapsList(Serializable womanid,List list); + } diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/impl/HistoryMapsServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/impl/HistoryMapsServiceImpl.java index 9bbb132..2c86dbd 100644 --- a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/impl/HistoryMapsServiceImpl.java +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/impl/HistoryMapsServiceImpl.java @@ -3,9 +3,13 @@ package com.lyms.hospital.service.history.impl; import com.lyms.hospital.entity.history.HistoryMaps; import com.lyms.hospital.dao.history.HistoryMapsMapper; import com.lyms.hospital.service.history.HistoryMapsService; +import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.service.impl.ServiceImpl; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + import java.io.Serializable; +import java.util.List; /** *

    @@ -21,4 +25,11 @@ public class HistoryMapsServiceImpl extends ServiceImpl list) { + delete(new EntityWrapper().where("woman_id={0}", womanid)); + insertBatch(list); + } } diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanFetationRecordService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanFetationRecordService.java new file mode 100644 index 0000000..9387f9a --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanFetationRecordService.java @@ -0,0 +1,64 @@ +package com.lyms.hospital.service.woman; + +import java.io.Serializable; + +import com.lyms.hospital.entity.woman.WomanFetationRecord; +import com.lyms.hospital.entity.woman.WomanHusband; +import com.lyms.web.service.BaseService; + +/** + *

    + * 服务类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +public interface WomanFetationRecordService extends BaseService { + + /** + *
  • @Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 + *
  • @param id 删除主键id + *
  • @return 大于0修改成功,否则为失败 + */ + public Integer deleteLogicById(Serializable id); + + /** + *
  • @Description:添加孕妇建档 + *
  • @param womanRecord + *
  • @param womanHusband + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public boolean insertbuildRecord(WomanFetationRecord womanFetationRecord, WomanHusband womanHusband); + + /** + *
  • @Description:修改孕妇建档 + *
  • @param womanRecord + *
  • @param womanHusband + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public boolean updatebuildRecord(WomanFetationRecord womanFetationRecord, WomanHusband womanHusband); + + /** + *
  • @Description:根据【证件类型和号码】【就诊卡和机构id】获取孕妇档案信息 + *
  • @param cardType 证件类型 + *
  • @param cardNum 证件编号 + *
  • @param patientNum 就诊卡号 + *
  • @param orgid 机构id + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public WomanFetationRecord findByCard(String cardType, String cardNum,String patientNum,String orgid); + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanHusbandService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanHusbandService.java new file mode 100644 index 0000000..c4900fd --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanHusbandService.java @@ -0,0 +1,26 @@ +package com.lyms.hospital.service.woman; + +import com.lyms.hospital.entity.woman.WomanHusband; +import com.lyms.web.service.BaseService; +import java.io.Serializable; + +/** + *

    + * 服务类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +public interface WomanHusbandService extends BaseService { + + /** + *
  • @Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 + *
  • @param id 删除主键id + *
  • @return 大于0修改成功,否则为失败 + */ + public Integer deleteLogicById(Serializable id); + + public boolean insertHusband(WomanHusband womanHusband); + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanPersonService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanPersonService.java new file mode 100644 index 0000000..87713c8 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanPersonService.java @@ -0,0 +1,30 @@ +package com.lyms.hospital.service.woman; + +import com.lyms.hospital.entity.woman.WomanFetationRecord; +import com.lyms.hospital.entity.woman.WomanPerson; +import com.lyms.hospital.entity.woman.WomanRecord; +import com.lyms.web.service.BaseService; +import java.io.Serializable; + +/** + *

    + * 服务类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +public interface WomanPersonService extends BaseService { + + /** + *
  • @Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 + *
  • @param id 删除主键id + *
  • @return 大于0修改成功,否则为失败 + */ + public Integer deleteLogicById(Serializable id); + + public Integer insertOrUpdate(WomanRecord womanRecord); + + public Integer insertOrUpdate(WomanFetationRecord womanFetationRecord); + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanRecordService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanRecordService.java new file mode 100644 index 0000000..f2e2aa6 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanRecordService.java @@ -0,0 +1,66 @@ +package com.lyms.hospital.service.woman; + +import com.lyms.hospital.entity.history.HistoryMaps; +import com.lyms.hospital.entity.woman.WomanRecord; +import com.lyms.web.service.BaseService; +import java.io.Serializable; +import java.util.List; + +/** + *

    + * 服务类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +public interface WomanRecordService extends BaseService { + + /** + *
  • @Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 + *
  • @param id 删除主键id + *
  • @return 大于0修改成功,否则为失败 + */ + public Integer deleteLogicById(Serializable id); + + /** + *
  • @Description:添加女性建档 + *
  • @param womanRecord + *
  • @param HistoryMapsList 病史 + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public boolean insertbuildRecord(WomanRecord womanRecord, List HistoryMapsList); + + + /** + *
  • @Description:修改女性建档 + *
  • @param womanRecord + *
  • @param HistoryMapsList 病史 + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public boolean updatebuildRecord(WomanRecord womanRecord, List HistoryMapsList); + + /** + *
  • @Description:根据【证件类型和号码】【就诊卡和机构id】获取妇女档案信息 + *
  • @param cardType 证件类型 + *
  • @param cardNum 证件编号 + *
  • @param patientNum 就诊卡号 + *
  • @param orgid 机构id + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + public WomanRecord findByCard(String cardType, String cardNum,String patientNum,String orgid); + + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanFetationRecordServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanFetationRecordServiceImpl.java new file mode 100644 index 0000000..0e1d5bb --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanFetationRecordServiceImpl.java @@ -0,0 +1,70 @@ +package com.lyms.hospital.service.woman.impl; + +import java.io.Serializable; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import com.baomidou.mybatisplus.mapper.EntityWrapper; +import com.baomidou.mybatisplus.service.impl.ServiceImpl; +import com.lyms.hospital.dao.woman.WomanFetationRecordMapper; +import com.lyms.hospital.entity.woman.WomanFetationRecord; +import com.lyms.hospital.entity.woman.WomanHusband; +import com.lyms.hospital.service.woman.WomanFetationRecordService; +import com.lyms.hospital.service.woman.WomanHusbandService; +import com.lyms.hospital.service.woman.WomanPersonService; +import com.lyms.util.CollectionUtils; +import com.lyms.util.StrUtils; + +/** + *

    + * 妇女档案 服务实现类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +@Service +public class WomanFetationRecordServiceImpl extends ServiceImpl implements WomanFetationRecordService { + + @Autowired + private WomanPersonService womanPersonService; + + @Autowired + private WomanHusbandService womanHusbandService; + + public Integer deleteLogicById(Serializable id){ + return baseMapper.deleteLogicById(id); + } + + @Override + @Transactional + public boolean insertbuildRecord(WomanFetationRecord womanFetationRecord, WomanHusband womanHusband) { + womanPersonService.insertOrUpdate(womanFetationRecord); + womanHusbandService.insert(womanHusband); + return insert(womanFetationRecord); + } + + @Override + public WomanFetationRecord findByCard(String cardType, String cardNum,String patientNum,String orgid) { + EntityWrapper ew = new EntityWrapper(); + ew.where("1=1"); + if(StrUtils.isNotEmpty(cardType) && StrUtils.isNotEmpty(cardNum)){ + ew.and("BASE_PAPERS_TYPE={0}", cardType).and("BASE_PAPERS_NUMBER={0}", cardNum); + } + if(StrUtils.isNotEmpty(patientNum) && StrUtils.isNotEmpty(orgid)){ + ew.and("HOSPITAL_PATIENT_CARD={0}", patientNum).and("hospitalId={0}", orgid); + } + List dataList = baseMapper.selectList(ew); + return CollectionUtils.isNotEmpty(dataList) ? dataList.get(0) : null; + } + + @Override + public boolean updatebuildRecord(WomanFetationRecord womanFetationRecord, WomanHusband womanHusband) { + womanPersonService.insertOrUpdate(womanFetationRecord); + womanHusbandService.insertHusband(womanHusband); + return updateById(womanFetationRecord); + } +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanHusbandServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanHusbandServiceImpl.java new file mode 100644 index 0000000..8ce3a17 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanHusbandServiceImpl.java @@ -0,0 +1,36 @@ +package com.lyms.hospital.service.woman.impl; + +import com.lyms.hospital.entity.woman.WomanHusband; +import com.lyms.hospital.dao.woman.WomanHusbandMapper; +import com.lyms.hospital.service.woman.WomanHusbandService; +import com.baomidou.mybatisplus.mapper.EntityWrapper; +import com.baomidou.mybatisplus.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.io.Serializable; + +/** + *

    + * 丈夫信息表 服务实现类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +@Service +public class WomanHusbandServiceImpl extends ServiceImpl implements WomanHusbandService { + + public Integer deleteLogicById(Serializable id){ + return baseMapper.deleteLogicById(id); + } + + @Override + @Transactional + public boolean insertHusband(WomanHusband womanHusband) { + EntityWrapper ew = new EntityWrapper(); + ew.where("WOMAN_RECORD_ID={0}", womanHusband.getWomanRecordId()); + delete(ew); + return insert(womanHusband); + } +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanPersonServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanPersonServiceImpl.java new file mode 100644 index 0000000..3052933 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanPersonServiceImpl.java @@ -0,0 +1,194 @@ +package com.lyms.hospital.service.woman.impl; + +import java.io.Serializable; +import java.util.List; + +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.mapper.EntityWrapper; +import com.baomidou.mybatisplus.service.impl.ServiceImpl; +import com.lyms.hospital.dao.woman.WomanPersonMapper; +import com.lyms.hospital.entity.woman.WomanFetationRecord; +import com.lyms.hospital.entity.woman.WomanPerson; +import com.lyms.hospital.entity.woman.WomanRecord; +import com.lyms.hospital.service.woman.WomanPersonService; +import com.lyms.util.CollectionUtils; +import com.lyms.util.StrUtils; + +/** + *

    + * 女性居民表 服务实现类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +@Service +public class WomanPersonServiceImpl extends ServiceImpl implements WomanPersonService { + + public Integer deleteLogicById(Serializable id) { + return baseMapper.deleteLogicById(id); + } + + @Override + public Integer insertOrUpdate(WomanRecord womanRecord) { + WomanPerson wp = findByCard(womanRecord.getBasePapersType(), womanRecord.getBasePapersNumber()); + Integer result = 0; + if (null == wp) { // 插入 + result = insert(womanRecord); + } else { + result = update(wp, womanRecord); + } + return result; + } + + @Override + public Integer insertOrUpdate(WomanFetationRecord womanFetationRecord) { + WomanPerson wp = findByCard(womanFetationRecord.getBasePapersType(), womanFetationRecord.getBasePapersNumber()); + Integer result = 0; + if (null == wp) { // 插入 + result = insert(womanFetationRecord); + } else { + result = update(wp, womanFetationRecord); + } + return result; + } + + private Integer insert(WomanRecord wr) { + WomanPerson wp = new WomanPerson(); + wp.setId(StrUtils.uuid()); + wp.setBaseDwellType(wr.getBaseDwellType()); + wp.setBasePapersNumber(wr.getBasePapersNumber()); + wp.setBasePapersType(wr.getBasePapersType()); + wp.setBaseRegisterType(wr.getBaseRegisterType()); + wp.setBaseWomanBirth(wr.getBaseWomanBirth()); + wp.setBaseWomanCountry(wr.getBaseWomanCountry()); + wp.setBaseWomanName(wr.getBaseWomanName()); + wp.setBaseWomanNation(wr.getBaseWomanNation()); + wp.setContactDwellArea(wr.getContactDwellArea()); + wp.setContactDwellCity(wr.getContactDwellCity()); + wp.setContactDwellDetail(wr.getContactDwellDetail()); + wp.setContactDwellProvince(wr.getContactDwellProvince()); + wp.setContactDwellStreet(wr.getContactDwellStreet()); + // wp.setContactPostpartumArea(wr.getContactPostpartumArea()); + // wp.setContactPostpartumCity(wr.getContactPostpartumCity()); + // wp.setContactPostpartumDetail(wr.getContactPostpartumDetail()); + // wp.setContactPostpartumProvince(wr.getContactPostpartumProvince()); + // wp.setContactPostpartumStreet(wr.getContactPostpartumStreet()); + wp.setContactRegisterArea(wr.getContactRegisterArea()); + wp.setContactRegisterCity(wr.getContactRegisterCity()); + wp.setContactRegisterDetail(wr.getContactRegisterDetail()); + wp.setContactRegisterProvince(wr.getContactRegisterProvince()); + wp.setContactRegisterStreet(wr.getContactRegisterStreet()); + wp.setContactWomanWay(wr.getContactWomanWay()); + wp.setContactWorkAddress(wr.getContactWorkAddress()); + + return baseMapper.insert(wp); + } + + private Integer insert(WomanFetationRecord wr) { + WomanPerson wp = new WomanPerson(); + wp.setId(StrUtils.uuid()); + wp.setBaseDwellType(wr.getBaseDwellType()); + wp.setBasePapersNumber(wr.getBasePapersNumber()); + wp.setBasePapersType(wr.getBasePapersType()); + wp.setBaseRegisterType(wr.getBaseRegisterType()); + wp.setBaseWomanBirth(wr.getBaseWomanBirth()); + wp.setBaseWomanCountry(wr.getBaseWomanCountry()); + wp.setBaseWomanName(wr.getBaseWomanName()); + wp.setBaseWomanNation(wr.getBaseWomanNation()); + wp.setContactDwellArea(wr.getContactDwellArea()); + wp.setContactDwellCity(wr.getContactDwellCity()); + wp.setContactDwellDetail(wr.getContactDwellDetail()); + wp.setContactDwellProvince(wr.getContactDwellProvince()); + wp.setContactDwellStreet(wr.getContactDwellStreet()); + wp.setContactPostpartumArea(wr.getContactPostpartumArea()); + wp.setContactPostpartumCity(wr.getContactPostpartumCity()); + wp.setContactPostpartumDetail(wr.getContactPostpartumDetail()); + wp.setContactPostpartumProvince(wr.getContactPostpartumProvince()); + wp.setContactPostpartumStreet(wr.getContactPostpartumStreet()); + wp.setContactRegisterArea(wr.getContactRegisterArea()); + wp.setContactRegisterCity(wr.getContactRegisterCity()); + wp.setContactRegisterDetail(wr.getContactRegisterDetail()); + wp.setContactRegisterProvince(wr.getContactRegisterProvince()); + wp.setContactRegisterStreet(wr.getContactRegisterStreet()); + wp.setContactWomanWay(wr.getContactWomanWay()); + wp.setContactWorkAddress(wr.getContactWorkAddress()); + return baseMapper.insert(wp); + } + + private Integer update(WomanPerson wp, WomanRecord wr) { + wp.setBaseDwellType(wr.getBaseDwellType()); + wp.setBasePapersNumber(wr.getBasePapersNumber()); + wp.setBasePapersType(wr.getBasePapersType()); + wp.setBaseRegisterType(wr.getBaseRegisterType()); + wp.setBaseWomanBirth(wr.getBaseWomanBirth()); + wp.setBaseWomanCountry(wr.getBaseWomanCountry()); + wp.setBaseWomanName(wr.getBaseWomanName()); + wp.setBaseWomanNation(wr.getBaseWomanNation()); + wp.setContactDwellArea(wr.getContactDwellArea()); + wp.setContactDwellCity(wr.getContactDwellCity()); + wp.setContactDwellDetail(wr.getContactDwellDetail()); + wp.setContactDwellProvince(wr.getContactDwellProvince()); + wp.setContactDwellStreet(wr.getContactDwellStreet()); + // wp.setContactPostpartumArea(wr.getContactPostpartumArea()); + // wp.setContactPostpartumCity(wr.getContactPostpartumCity()); + // wp.setContactPostpartumDetail(wr.getContactPostpartumDetail()); + // wp.setContactPostpartumProvince(wr.getContactPostpartumProvince()); + // wp.setContactPostpartumStreet(wr.getContactPostpartumStreet()); + wp.setContactRegisterArea(wr.getContactRegisterArea()); + wp.setContactRegisterCity(wr.getContactRegisterCity()); + wp.setContactRegisterDetail(wr.getContactRegisterDetail()); + wp.setContactRegisterProvince(wr.getContactRegisterProvince()); + wp.setContactRegisterStreet(wr.getContactRegisterStreet()); + wp.setContactWomanWay(wr.getContactWomanWay()); + wp.setContactWorkAddress(wr.getContactWorkAddress()); + return baseMapper.updateById(wp); + } + + private Integer update(WomanPerson wp, WomanFetationRecord wr) { + wp.setBaseDwellType(wr.getBaseDwellType()); + wp.setBasePapersNumber(wr.getBasePapersNumber()); + wp.setBasePapersType(wr.getBasePapersType()); + wp.setBaseRegisterType(wr.getBaseRegisterType()); + wp.setBaseWomanBirth(wr.getBaseWomanBirth()); + wp.setBaseWomanCountry(wr.getBaseWomanCountry()); + wp.setBaseWomanName(wr.getBaseWomanName()); + wp.setBaseWomanNation(wr.getBaseWomanNation()); + wp.setContactDwellArea(wr.getContactDwellArea()); + wp.setContactDwellCity(wr.getContactDwellCity()); + wp.setContactDwellDetail(wr.getContactDwellDetail()); + wp.setContactDwellProvince(wr.getContactDwellProvince()); + wp.setContactDwellStreet(wr.getContactDwellStreet()); + wp.setContactPostpartumArea(wr.getContactPostpartumArea()); + wp.setContactPostpartumCity(wr.getContactPostpartumCity()); + wp.setContactPostpartumDetail(wr.getContactPostpartumDetail()); + wp.setContactPostpartumProvince(wr.getContactPostpartumProvince()); + wp.setContactPostpartumStreet(wr.getContactPostpartumStreet()); + wp.setContactRegisterArea(wr.getContactRegisterArea()); + wp.setContactRegisterCity(wr.getContactRegisterCity()); + wp.setContactRegisterDetail(wr.getContactRegisterDetail()); + wp.setContactRegisterProvince(wr.getContactRegisterProvince()); + wp.setContactRegisterStreet(wr.getContactRegisterStreet()); + wp.setContactWomanWay(wr.getContactWomanWay()); + wp.setContactWorkAddress(wr.getContactWorkAddress()); + return baseMapper.updateById(wp); + } + + /** + *
  • @Description:根据证件类型和证件号码获取 + *
  • @param cardType 证件类型 + *
  • @param cardNum 证件编号 + *
  • @return + *
  • 创建人:方承 + *
  • 创建时间:2017年3月31日 + *
  • 修改人: + *
  • 修改时间: + */ + private WomanPerson findByCard(String cardType, String cardNum) { + EntityWrapper ew = new EntityWrapper(); + ew.where("BASE_PAPERS_TYPE={0}", cardType).and("BASE_PAPERS_NUMBER={0}", cardNum); + List dataList = baseMapper.selectList(ew); + return CollectionUtils.isNotEmpty(dataList) ? dataList.get(0) : null; + } +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanRecordServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanRecordServiceImpl.java new file mode 100644 index 0000000..bc4558a --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanRecordServiceImpl.java @@ -0,0 +1,70 @@ +package com.lyms.hospital.service.woman.impl; + +import java.io.Serializable; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import com.baomidou.mybatisplus.mapper.EntityWrapper; +import com.baomidou.mybatisplus.service.impl.ServiceImpl; +import com.lyms.hospital.dao.woman.WomanRecordMapper; +import com.lyms.hospital.entity.history.HistoryMaps; +import com.lyms.hospital.entity.woman.WomanRecord; +import com.lyms.hospital.service.history.HistoryMapsService; +import com.lyms.hospital.service.woman.WomanPersonService; +import com.lyms.hospital.service.woman.WomanRecordService; +import com.lyms.util.CollectionUtils; +import com.lyms.util.StrUtils; + +/** + *

    + * 妇女档案 服务实现类 + *

    + * + * @author fangcheng + * @since 2017-03-31 + */ +@Service +public class WomanRecordServiceImpl extends ServiceImpl implements WomanRecordService { + + @Autowired + private WomanPersonService womanPersonService; + @Autowired + private HistoryMapsService historyMapsService; + + public Integer deleteLogicById(Serializable id){ + return baseMapper.deleteLogicById(id); + } + + @Override + @Transactional + public boolean insertbuildRecord(WomanRecord womanRecord,List HistoryMapsList) { + womanPersonService.insertOrUpdate(womanRecord); + historyMapsService.insertBatch(HistoryMapsList); + return insert(womanRecord); + } + + @Override + public WomanRecord findByCard(String cardType, String cardNum,String patientNum,String orgid) { + EntityWrapper ew = new EntityWrapper(); + if(StrUtils.isNotEmpty(cardType) && StrUtils.isNotEmpty(cardNum)){ + ew.where("BASE_PAPERS_TYPE={0}", cardType).and("BASE_PAPERS_NUMBER={0}", cardNum); + } + if(StrUtils.isNotEmpty(patientNum) && StrUtils.isNotEmpty(orgid)){ + ew.where("HOSPITAL_PATIENT_CARD={0}", patientNum).and("hospitalId={0}", orgid); + } + List dataList = baseMapper.selectList(ew); + return CollectionUtils.isNotEmpty(dataList) ? dataList.get(0) : null; + } + + @Override + @Transactional + public boolean updatebuildRecord(WomanRecord womanRecord, List HistoryMapsList) { + womanPersonService.insertOrUpdate(womanRecord); + historyMapsService.insertHistoryMapsList(womanRecord.getId(), HistoryMapsList); + return updateById(womanRecord); + } + +}