diff --git a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarMother.java b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarMother.java index 880de67..8a50554 100644 --- a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarMother.java +++ b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarMother.java @@ -1,6 +1,7 @@ package com.lyms.platform.permission.model; import java.util.Date; +import java.util.Map; /** * 儿童建档的母亲壬辰详情 @@ -16,351 +17,140 @@ public class BabyPatientExtendEarMother extends AbstracUuidEntity { /** * 是否有流产史 1=有 -1=无 */ - private Integer abortionHistoryType; - - /** - * 流产时间 - */ - private Date abortionDate; - - /** - * 流产原因 - */ - private String abortionCause; - - /** - * 流产方式 1=药物流产 - */ - private Integer abortionType; + private String abortionHistoryType; + /** * 妊娠期病毒感染史 */ - private Integer viralInfectionHistoryType; - - /** - * 妊娠期病毒感染史类型:风疹 巨细胞病毒 疱疹 弓形虫 其他产考字典表 - */ - private String viralInfectionTypeId; - - /** - * 妊娠期病毒感染史其他类型的 描述信息 - */ - private String viralInfectionOtherDesc; - - /** - * 妊娠期病毒感染史的孕周数 - */ - private Integer viralInfectionDate; - + private String viralInfectionHistoryType; + + /** * 妊娠期外生殖器感染史 1=有 -1=无 */ - private Integer genitalInfectionHistoryType; - - /** - * 妊娠期外生殖器感染史类型 1=淋病 2=梅毒 3=尖锐湿疹 4=其他 - */ - private String genitalInfectionTypeId; - - /** - * 妊娠期外生殖器感染史其他类型的描述信息 - */ - private String genitalInfectionOtherDesc; - - /** - * 妊娠期外生殖器感染史孕周数 - */ - private Integer genitalInfectionDate; + private String genitalInfectionHistoryType; + /** * 妊娠期放射性物质接触史 */ - private Integer radiationType; - - /** - * 妊娠期放射性物质接触孕周 - */ - private Date radiationDate; + private String radiationHistoryType; + /** * 妊娠期药物应用史 */ - private Integer drugAppType; - - /** - * 药物名称 - */ - private String drugAppName; - - /** - * 用药时间 - */ - private Date drugAppUseDate; + private String drugAppType; /** * 有害物接触史 */ - private Integer harmfulSubstanceType; - - /** - * 有害物的名称 - */ - private String harmfulSubstanceName; + private String harmfulSubstanceType; - /** - * 接触有害物的时间 - */ - private Date harmfulSubstanceDate; + /** * 妊娠期不良生活习惯史 */ - private Integer badLifeHistoryType; - - /** - * 妊娠期不良生活的类型 1=吸烟 2=饮酒 3=吸毒 - */ - private String badLifeTypeId; - - /** - * 是否有妊娠期病史 - */ - private Integer medicalHistoryType; - - /** - * 妊娠期病史病史类型 1=糖尿病 2=肾炎 3=甲状腺功能减退 4=败血症 5=其他 - */ - private Integer medicalTypeId; - - /** - * 妊娠期病史其他病史类型的描述 - */ - private String medicalOtherTypeDesc; - + private String badLifeHistoryType; + + /** * 是否有异常妊娠 */ - private Integer bnormalPregnancyHistoryType; - - /** - * 异常类型总和 1=妊高症 2=胎儿宫发育迟缓 3=母婴血型不和 4=其他 - */ - private String bnormalPregnancyTypeId; - + private String bnormalPregnancyHistoryType; + /** - * 其他类型的描述 + * 是否有妊娠期病史 */ - private String bnormalPregnancyOtherDesc; - + private String medicalHistoryType; + /** * 儿童建档的主键 */ private String babyPatientId; - public Integer getGestationAge() { - return gestationAge; + public String getBnormalPregnancyHistoryType() { + return bnormalPregnancyHistoryType; } - public void setGestationAge(Integer gestationAge) { - this.gestationAge = gestationAge; - } - public Integer getAbortionHistoryType() { - return abortionHistoryType; + public void setBnormalPregnancyHistoryType(String bnormalPregnancyHistoryType) { + this.bnormalPregnancyHistoryType = bnormalPregnancyHistoryType; } - public void setAbortionHistoryType(Integer abortionHistoryType) { - this.abortionHistoryType = abortionHistoryType; - } - public Date getAbortionDate() { - return abortionDate; + public String getMedicalHistoryType() { + return medicalHistoryType; } - public void setAbortionDate(Date abortionDate) { - this.abortionDate = abortionDate; - } - public String getAbortionCause() { - return abortionCause; + public void setMedicalHistoryType(String medicalHistoryType) { + this.medicalHistoryType = medicalHistoryType; } - public void setAbortionCause(String abortionCause) { - this.abortionCause = abortionCause; - } - public Integer getAbortionType() { - return abortionType; + public Integer getGestationAge() { + return gestationAge; } - public void setAbortionType(Integer abortionType) { - this.abortionType = abortionType; - } - public Integer getViralInfectionHistoryType() { - return viralInfectionHistoryType; + public void setGestationAge(Integer gestationAge) { + this.gestationAge = gestationAge; } - public void setViralInfectionHistoryType(Integer viralInfectionHistoryType) { - this.viralInfectionHistoryType = viralInfectionHistoryType; - } - public String getViralInfectionTypeId() { - return viralInfectionTypeId; + public String getAbortionHistoryType() { + return abortionHistoryType; } - public void setViralInfectionTypeId(String viralInfectionTypeId) { - this.viralInfectionTypeId = viralInfectionTypeId; - } - public String getViralInfectionOtherDesc() { - return viralInfectionOtherDesc; + public void setAbortionHistoryType(String abortionHistoryType) { + this.abortionHistoryType = abortionHistoryType; } - public void setViralInfectionOtherDesc(String viralInfectionOtherDesc) { - this.viralInfectionOtherDesc = viralInfectionOtherDesc; - } - public Integer getViralInfectionDate() { - return viralInfectionDate; + public String getViralInfectionHistoryType() { + return viralInfectionHistoryType; } - public void setViralInfectionDate(Integer viralInfectionDate) { - this.viralInfectionDate = viralInfectionDate; + public void setViralInfectionHistoryType(String viralInfectionHistoryType) { + this.viralInfectionHistoryType = viralInfectionHistoryType; } - public Integer getGenitalInfectionHistoryType() { + + public String getGenitalInfectionHistoryType() { return genitalInfectionHistoryType; } - public void setGenitalInfectionHistoryType(Integer genitalInfectionHistoryType) { + public void setGenitalInfectionHistoryType(String genitalInfectionHistoryType) { this.genitalInfectionHistoryType = genitalInfectionHistoryType; } - public String getGenitalInfectionTypeId() { - return genitalInfectionTypeId; - } - - public void setGenitalInfectionTypeId(String genitalInfectionTypeId) { - this.genitalInfectionTypeId = genitalInfectionTypeId; - } - public String getGenitalInfectionOtherDesc() { - return genitalInfectionOtherDesc; - } - public void setGenitalInfectionOtherDesc(String genitalInfectionOtherDesc) { - this.genitalInfectionOtherDesc = genitalInfectionOtherDesc; - } - public Integer getGenitalInfectionDate() { - return genitalInfectionDate; + public String getRadiationHistoryType() { + return radiationHistoryType; } - public void setGenitalInfectionDate(Integer genitalInfectionDate) { - this.genitalInfectionDate = genitalInfectionDate; - } - public Integer getRadiationType() { - return radiationType; + public void setRadiationHistoryType(String radiationHistoryType) { + this.radiationHistoryType = radiationHistoryType; } - public void setRadiationType(Integer radiationType) { - this.radiationType = radiationType; - } - public Date getRadiationDate() { - return radiationDate; - } - - public void setRadiationDate(Date radiationDate) { - this.radiationDate = radiationDate; - } - public Integer getDrugAppType() { + public String getDrugAppType() { return drugAppType; } - public void setDrugAppType(Integer drugAppType) { + public void setDrugAppType(String drugAppType) { this.drugAppType = drugAppType; } - public String getDrugAppName() { - return drugAppName; - } - public void setDrugAppName(String drugAppName) { - this.drugAppName = drugAppName; - } - public Date getDrugAppUseDate() { - return drugAppUseDate; - } - - public void setDrugAppUseDate(Date drugAppUseDate) { - this.drugAppUseDate = drugAppUseDate; - } - public Integer getHarmfulSubstanceType() { + public String getHarmfulSubstanceType() { return harmfulSubstanceType; } - public void setHarmfulSubstanceType(Integer harmfulSubstanceType) { + public void setHarmfulSubstanceType(String harmfulSubstanceType) { this.harmfulSubstanceType = harmfulSubstanceType; } - public String getHarmfulSubstanceName() { - return harmfulSubstanceName; - } - public void setHarmfulSubstanceName(String harmfulSubstanceName) { - this.harmfulSubstanceName = harmfulSubstanceName; - } - public Date getHarmfulSubstanceDate() { - return harmfulSubstanceDate; - } - - public void setHarmfulSubstanceDate(Date harmfulSubstanceDate) { - this.harmfulSubstanceDate = harmfulSubstanceDate; - } - public Integer getBadLifeHistoryType() { + public String getBadLifeHistoryType() { return badLifeHistoryType; } - public void setBadLifeHistoryType(Integer badLifeHistoryType) { + public void setBadLifeHistoryType(String badLifeHistoryType) { this.badLifeHistoryType = badLifeHistoryType; } - public String getBadLifeTypeId() { - return badLifeTypeId; - } - public void setBadLifeTypeId(String badLifeTypeId) { - this.badLifeTypeId = badLifeTypeId; - } - public Integer getMedicalHistoryType() { - return medicalHistoryType; - } - - public void setMedicalHistoryType(Integer medicalHistoryType) { - this.medicalHistoryType = medicalHistoryType; - } - public Integer getMedicalTypeId() { - return medicalTypeId; - } - - public void setMedicalTypeId(Integer medicalTypeId) { - this.medicalTypeId = medicalTypeId; - } - public String getMedicalOtherTypeDesc() { - return medicalOtherTypeDesc; - } - - public void setMedicalOtherTypeDesc(String medicalOtherTypeDesc) { - this.medicalOtherTypeDesc = medicalOtherTypeDesc; - } - public Integer getBnormalPregnancyHistoryType() { - return bnormalPregnancyHistoryType; - } - - public void setBnormalPregnancyHistoryType(Integer bnormalPregnancyHistoryType) { - this.bnormalPregnancyHistoryType = bnormalPregnancyHistoryType; - } - public String getBnormalPregnancyTypeId() { - return bnormalPregnancyTypeId; - } - - public void setBnormalPregnancyTypeId(String bnormalPregnancyTypeId) { - this.bnormalPregnancyTypeId = bnormalPregnancyTypeId; - } - public String getBnormalPregnancyOtherDesc() { - return bnormalPregnancyOtherDesc; - } - - public void setBnormalPregnancyOtherDesc(String bnormalPregnancyOtherDesc) { - this.bnormalPregnancyOtherDesc = bnormalPregnancyOtherDesc; - } public String getBabyPatientId() { return babyPatientId; } @@ -368,45 +158,4 @@ public class BabyPatientExtendEarMother extends AbstracUuidEntity { public void setBabyPatientId(String babyPatientId) { this.babyPatientId = babyPatientId; } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("BabyPatientExtendEarMother [ "); - sb.append("id=" + id + ","); - sb.append("gestationAge=" + gestationAge + ","); - sb.append("abortionHistoryType=" + abortionHistoryType + ","); - sb.append("abortionDate=" + abortionDate + ","); - sb.append("abortionCause=" + abortionCause + ","); - sb.append("abortionType=" + abortionType + ","); - sb.append("viralInfectionHistoryType=" + viralInfectionHistoryType + ","); - sb.append("viralInfectionTypeId=" + viralInfectionTypeId + ","); - sb.append("viralInfectionOtherDesc=" + viralInfectionOtherDesc + ","); - sb.append("viralInfectionDate=" + viralInfectionDate + ","); - sb.append("genitalInfectionHistoryType=" + genitalInfectionHistoryType + ","); - sb.append("genitalInfectionTypeId=" + genitalInfectionTypeId + ","); - sb.append("genitalInfectionOtherDesc=" + genitalInfectionOtherDesc + ","); - sb.append("genitalInfectionDate=" + genitalInfectionDate + ","); - sb.append("radiationType=" + radiationType + ","); - sb.append("radiationDate=" + radiationDate + ","); - sb.append("drugAppType=" + drugAppType + ","); - sb.append("drugAppName=" + drugAppName + ","); - sb.append("drugAppUseDate=" + drugAppUseDate + ","); - sb.append("harmfulSubstanceType=" + harmfulSubstanceType + ","); - sb.append("harmfulSubstanceName=" + harmfulSubstanceName + ","); - sb.append("harmfulSubstanceDate=" + harmfulSubstanceDate + ","); - sb.append("badLifeHistoryType=" + badLifeHistoryType + ","); - sb.append("badLifeTypeId=" + badLifeTypeId + ","); - sb.append("medicalHistoryType=" + medicalHistoryType + ","); - sb.append("medicalTypeId=" + medicalTypeId + ","); - sb.append("medicalOtherTypeDesc=" + medicalOtherTypeDesc + ","); - sb.append("bnormalPregnancyHistoryType=" + bnormalPregnancyHistoryType + ","); - sb.append("bnormalPregnancyTypeId=" + bnormalPregnancyTypeId + ","); - sb.append("bnormalPregnancyOtherDesc=" + bnormalPregnancyOtherDesc + ","); - sb.append("babyPatientId=" + babyPatientId + ","); - sb.replace(sb.length()-1, sb.length(), " ]"); - return sb.toString(); - } - - } diff --git a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarMother.xml b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarMother.xml index 4f99cef..fc61edb 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarMother.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarMother.xml @@ -1,154 +1,81 @@ - + - - - - - - - - - - - - - - - + + + + - - - - - - - - + -insert into baby_patient_extend_ear_mother (id,gestation_age,abortion_history_type,abortion_date,abortion_cause,abortion_type,viral_infection_history_type,viral_infection_type_id,viral_infection_other_desc,viral_infection_date,genital_infection_history_type,genital_infection_type_id,genital_infection_other_desc,genital_infection_date,radiation_type,radiation_date,drug_app_type,drug_app_name,drug_app_use_date,harmful_substance_type,harmful_substance_name,harmful_substance_date,bad_life_history_type,bad_life_type_id,medical_history_type,medical_type_id,medical_other_type_desc,bnormal_pregnancy_history_type,bnormal_pregnancy_type_id,bnormal_pregnancy_other_desc,baby_patient_id) values (#{id},#{gestationAge},#{abortionHistoryType},#{abortionDate},#{abortionCause},#{abortionType},#{viralInfectionHistoryType},#{viralInfectionTypeId},#{viralInfectionOtherDesc},#{viralInfectionDate},#{genitalInfectionHistoryType},#{genitalInfectionTypeId},#{genitalInfectionOtherDesc},#{genitalInfectionDate},#{radiationType},#{radiationDate},#{drugAppType},#{drugAppName},#{drugAppUseDate},#{harmfulSubstanceType},#{harmfulSubstanceName},#{harmfulSubstanceDate},#{badLifeHistoryType},#{badLifeTypeId},#{medicalHistoryType},#{medicalTypeId},#{medicalOtherTypeDesc},#{bnormalPregnancyHistoryType},#{bnormalPregnancyTypeId},#{bnormalPregnancyOtherDesc},#{babyPatientId}) +insert into baby_patient_extend_ear_mother (id,gestation_age,abortion_history_type,viral_infection_history_type,genital_infection_history_type,radiation_history_type,drug_app_name,harmful_substance_type,bad_life_history_type,medical_history_type,bnormal_pregnancy_history_type,baby_patient_id,baby_ear_id) values (#{id},#{gestationAge},#{abortionHistoryType},#{viralInfectionHistoryType},#{genitalInfectionHistoryType},#{radiationHistoryType},#{drugAppName},#{harmfulSubstanceType},#{badLifeHistoryType},#{medicalHistoryType},#{bnormalPregnancyHistoryType},#{babyPatientId},#{babyEarId}) -update baby_patient_extend_ear_mother - +update baby_patient_extend_ear_mother gestation_age = #{gestationAge,jdbcType=INTEGER}, - -abortion_history_type = #{abortionHistoryType,jdbcType=INTEGER}, + +abortion_history_type = #{abortionHistoryType,jdbcType=VARCHAR}, - -abortion_date = #{abortionDate,jdbcType=TIMESTAMP}, + +viral_infection_history_type = #{viralInfectionHistoryType,jdbcType=VARCHAR}, - -abortion_cause = #{abortionCause,jdbcType=VARCHAR}, + +genital_infection_history_type = #{genitalInfectionHistoryType,jdbcType=VARCHAR}, - -abortion_type = #{abortionType,jdbcType=INTEGER}, - - -viral_infection_history_type = #{viralInfectionHistoryType,jdbcType=INTEGER}, - - -viral_infection_type_id = #{viralInfectionTypeId,jdbcType=VARCHAR}, - - -viral_infection_other_desc = #{viralInfectionOtherDesc,jdbcType=VARCHAR}, - - -viral_infection_date = #{viralInfectionDate,jdbcType=INTEGER}, - - -genital_infection_history_type = #{genitalInfectionHistoryType,jdbcType=INTEGER}, - - -genital_infection_type_id = #{genitalInfectionTypeId,jdbcType=VARCHAR}, - - -genital_infection_other_desc = #{genitalInfectionOtherDesc,jdbcType=VARCHAR}, - - -genital_infection_date = #{genitalInfectionDate,jdbcType=INTEGER}, - - -radiation_type = #{radiationType,jdbcType=INTEGER}, - - -radiation_date = #{radiationDate,jdbcType=TIMESTAMP}, - - -drug_app_type = #{drugAppType,jdbcType=INTEGER}, + +radiation_history_type = #{radiationHistoryType,jdbcType=INTEGER}, drug_app_name = #{drugAppName,jdbcType=VARCHAR}, - -drug_app_use_date = #{drugAppUseDate,jdbcType=TIMESTAMP}, - harmful_substance_type = #{harmfulSubstanceType,jdbcType=INTEGER}, - -harmful_substance_name = #{harmfulSubstanceName,jdbcType=VARCHAR}, - - -harmful_substance_date = #{harmfulSubstanceDate,jdbcType=TIMESTAMP}, - bad_life_history_type = #{badLifeHistoryType,jdbcType=INTEGER}, - -bad_life_type_id = #{badLifeTypeId,jdbcType=VARCHAR}, - medical_history_type = #{medicalHistoryType,jdbcType=INTEGER}, - -medical_type_id = #{medicalTypeId,jdbcType=INTEGER}, - - -medical_other_type_desc = #{medicalOtherTypeDesc,jdbcType=VARCHAR}, - bnormal_pregnancy_history_type = #{bnormalPregnancyHistoryType,jdbcType=INTEGER}, - -bnormal_pregnancy_type_id = #{bnormalPregnancyTypeId,jdbcType=VARCHAR}, - - -bnormal_pregnancy_other_desc = #{bnormalPregnancyOtherDesc,jdbcType=VARCHAR}, - baby_patient_id = #{babyPatientId,jdbcType=VARCHAR}, + +baby_ear_id = #{babyEarId,jdbcType=VARCHAR}, + where id = #{id,jdbcType=VARCHAR} - + delete from baby_patient_extend_ear_mother where id = #{id,jdbcType=VARCHAR} - +select id,gestation_age,abortion_history_type,viral_infection_history_type,genital_infection_history_type,radiation_history_type,drug_app_name,harmful_substance_type,bad_life_history_type,medical_history_type,bnormal_pregnancy_history_type,baby_patient_id,baby_ear_id from baby_patient_extend_ear_mother where id = #{id,jdbcType=VARCHAR} @@ -173,100 +100,46 @@ and id = #{id,jdbcType=VARCHAR} and gestation_age = #{gestationAge,jdbcType=INTEGER} - -and abortion_history_type = #{abortionHistoryType,jdbcType=INTEGER} + +and abortion_history_type = #{abortionHistoryType,jdbcType=VARCHAR} - -and abortion_date = #{abortionDate,jdbcType=TIMESTAMP} + +and viral_infection_history_type = #{viralInfectionHistoryType,jdbcType=VARCHAR} - -and abortion_cause = #{abortionCause,jdbcType=VARCHAR} + +and genital_infection_history_type = #{genitalInfectionHistoryType,jdbcType=VARCHAR} - -and abortion_type = #{abortionType,jdbcType=INTEGER} - - -and viral_infection_history_type = #{viralInfectionHistoryType,jdbcType=INTEGER} - - -and viral_infection_type_id = #{viralInfectionTypeId,jdbcType=VARCHAR} - - -and viral_infection_other_desc = #{viralInfectionOtherDesc,jdbcType=VARCHAR} - - -and viral_infection_date = #{viralInfectionDate,jdbcType=INTEGER} - - -and genital_infection_history_type = #{genitalInfectionHistoryType,jdbcType=INTEGER} - - -and genital_infection_type_id = #{genitalInfectionTypeId,jdbcType=VARCHAR} - - -and genital_infection_other_desc = #{genitalInfectionOtherDesc,jdbcType=VARCHAR} - - -and genital_infection_date = #{genitalInfectionDate,jdbcType=INTEGER} - - -and radiation_type = #{radiationType,jdbcType=INTEGER} - - -and radiation_date = #{radiationDate,jdbcType=TIMESTAMP} - - -and drug_app_type = #{drugAppType,jdbcType=INTEGER} + +and radiation_history_type = #{radiationHistoryType,jdbcType=INTEGER} and drug_app_name = #{drugAppName,jdbcType=VARCHAR} - -and drug_app_use_date = #{drugAppUseDate,jdbcType=TIMESTAMP} - and harmful_substance_type = #{harmfulSubstanceType,jdbcType=INTEGER} - -and harmful_substance_name = #{harmfulSubstanceName,jdbcType=VARCHAR} - - -and harmful_substance_date = #{harmfulSubstanceDate,jdbcType=TIMESTAMP} - and bad_life_history_type = #{badLifeHistoryType,jdbcType=INTEGER} - -and bad_life_type_id = #{badLifeTypeId,jdbcType=VARCHAR} - and medical_history_type = #{medicalHistoryType,jdbcType=INTEGER} - -and medical_type_id = #{medicalTypeId,jdbcType=INTEGER} - - -and medical_other_type_desc = #{medicalOtherTypeDesc,jdbcType=VARCHAR} - and bnormal_pregnancy_history_type = #{bnormalPregnancyHistoryType,jdbcType=INTEGER} - -and bnormal_pregnancy_type_id = #{bnormalPregnancyTypeId,jdbcType=VARCHAR} - - -and bnormal_pregnancy_other_desc = #{bnormalPregnancyOtherDesc,jdbcType=VARCHAR} - and baby_patient_id = #{babyPatientId,jdbcType=VARCHAR} + +and baby_ear_id = #{babyEarId,jdbcType=VARCHAR} +