diff --git a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUp.java b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUp.java index 5702aba..0d8476f 100644 --- a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUp.java +++ b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUp.java @@ -102,6 +102,10 @@ public class BabyPatientExtendEarFollowUp extends AbstracUuidEntity{ */ private String ifcloseStr; /** + * 结案结论 + */ + private String verdict; + /** * 医院ID */ private String hospitalId; @@ -135,6 +139,14 @@ public class BabyPatientExtendEarFollowUp extends AbstracUuidEntity{ return isAudiphone; } + public String getVerdict() { + return verdict; + } + + public void setVerdict(String verdict) { + this.verdict = verdict; + } + public void setIsAudiphone(Integer isAudiphone) { this.isAudiphone = isAudiphone; } diff --git a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUpQuery.java b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUpQuery.java index 8384543..e7c6d2f 100644 --- a/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUpQuery.java +++ b/platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarFollowUpQuery.java @@ -92,6 +92,10 @@ public class BabyPatientExtendEarFollowUpQuery extends BaseQuery { */ private Integer ifclose; /** + * 结案结论 + */ + private String verdict; + /** * 医院ID */ private String hospitalId; @@ -151,6 +155,14 @@ public class BabyPatientExtendEarFollowUpQuery extends BaseQuery { this.isOperation = isOperation; } + public String getVerdict() { + return verdict; + } + + public void setVerdict(String verdict) { + this.verdict = verdict; + } + public Integer getIsArtifiCochlea() { return isArtifiCochlea; } diff --git a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarBaby.xml b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarBaby.xml index 3a3089e..baaf434 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarBaby.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarBaby.xml @@ -126,7 +126,7 @@ select id,name,sex,cardNo,birth,mname,mcert_type_id,mcert_no,mphone,vc_card_no,b and ( name LIKE concat("%",#{queryNo,jdbcType=VARCHAR},"%") or - mcertNo LIKE concat("%",#{queryNo,jdbcType=VARCHAR},"%") + mcert_no LIKE concat("%",#{queryNo,jdbcType=VARCHAR},"%") or mphone LIKE concat(#{queryNo,jdbcType=VARCHAR},"%") or diff --git a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarFollowUp.xml b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarFollowUp.xml index b0bff74..5d380d5 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarFollowUp.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEarFollowUp.xml @@ -25,6 +25,7 @@ + @@ -36,7 +37,7 @@ - insert into baby_patient_extend_ear_follow_up (id,baby_id,follow_time,follow_addr,mark_time,mark_result,mark_detail,follow_info,audiphone,operation,artifi_cochlea,is_audiphone,is_operation,is_artifi_cochlea,guide_opinion,follow_doctor_name,follow_doctor_id,next_time,month_age,ifdel,ifclose,hospital_id,modify_time,modify_id,create_time,create_id,enalble) values (#{id},#{babyId},#{followTime},#{followAddr},#{markTime},#{markResult},#{markDetail},#{followInfo},#{audiphone},#{operation},#{artifiCochlea},#{isAudiphone},#{isOperation},#{isArtifiCochlea},#{guideOpinion},#{followDoctorName},#{followDoctorId},#{nextTime},#{monthAge},#{ifdel},#{ifclose},#{hospitalId},#{modifyTime},#{modifyId},#{createTime},#{createId},#{enalble}) + insert into baby_patient_extend_ear_follow_up (id,baby_id,follow_time,follow_addr,mark_time,mark_result,mark_detail,follow_info,audiphone,operation,artifi_cochlea,is_audiphone,is_operation,is_artifi_cochlea,guide_opinion,follow_doctor_name,follow_doctor_id,next_time,month_age,ifdel,ifclose,verdict,hospital_id,modify_time,modify_id,create_time,create_id,enalble) values (#{id},#{babyId},#{followTime},#{followAddr},#{markTime},#{markResult},#{markDetail},#{followInfo},#{audiphone},#{operation},#{artifiCochlea},#{isAudiphone},#{isOperation},#{isArtifiCochlea},#{guideOpinion},#{followDoctorName},#{followDoctorId},#{nextTime},#{monthAge},#{ifdel},#{ifclose},#{verdict},#{hospitalId},#{modifyTime},#{modifyId},#{createTime},#{createId},#{enalble}) @@ -104,6 +105,9 @@ ifclose = #{ifclose,jdbcType=INTEGER}, + + verdict = #{verdict,jdbcType=VARCHAR}, + hospital_id = #{hospitalId,jdbcType=VARCHAR}, @@ -134,7 +138,7 @@ @@ -184,7 +188,7 @@ select id,baby_id,follow_time,follow_addr,mark_time,mark_result,mark_detail,foll and mark_time = #{markTime,jdbcType=TIMESTAMP} - and mark_result like concat("%,",#{markResult},",%") + and mark_result = #{markResult,jdbcType=VARCHAR} and mark_detail = #{markDetail,jdbcType=VARCHAR} @@ -227,10 +231,13 @@ select id,baby_id,follow_time,follow_addr,mark_time,mark_result,mark_detail,foll and ifclose = #{ifclose,jdbcType=INTEGER} + + and verdict = #{verdict,jdbcType=VARCHAR} + and hospital_id = #{hospitalId,jdbcType=VARCHAR} - + and hospital_id in #{item} @@ -258,7 +265,7 @@ select id,baby_id,follow_time,follow_addr,mark_time,mark_result,mark_detail,foll - select count(1) from ( - select * from baby_patient_extend_ear_follow_up + select count(1) from baby_patient_extend_ear_follow_up - GROUP BY baby_id - ) bpef