Commit 5a6a91b367c72820f088de0c4fc269b714e64fc0
1 parent
5af43d8deb
Exists in
master
and in
4 other branches
孤独症诊断
Showing 1 changed file with 120 additions and 25 deletions
platform-biz-service/src/main/resources/mainOrm/master/BabyAutismDiagnosisMapper.xml
View file @
5a6a91b
... | ... | @@ -37,7 +37,6 @@ |
37 | 37 | <result property="checkHospital" column="check_hospital" jdbcType="VARCHAR"/> |
38 | 38 | <result property="displayState" column="display_state" jdbcType="VARCHAR"/> |
39 | 39 | <result property="errormsg" column="errormsg" jdbcType="VARCHAR"/> |
40 | - <result property="checkDoctor" column="check_doctor" jdbcType="VARCHAR"/> | |
41 | 40 | <result property="medicalHistoryInquiry" column="medical_history_inquiry" jdbcType="VARCHAR"/> |
42 | 41 | <result property="behavioralObservation" column="behavioral_observation" jdbcType="VARCHAR"/> |
43 | 42 | <result property="physicalExamination" column="physical_examination" jdbcType="VARCHAR"/> |
... | ... | @@ -53,8 +52,51 @@ |
53 | 52 | |
54 | 53 | <!--查询单个--> |
55 | 54 | <select id="queryById" resultMap="BabyAutismDiagnosisMap"> |
56 | - select | |
57 | - id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res | |
55 | + select id, | |
56 | + created, | |
57 | + created_str, | |
58 | + modified, | |
59 | + modified_str, | |
60 | + yn, | |
61 | + operater_id, | |
62 | + hospital_id, | |
63 | + baby_id, | |
64 | + baby_build_date, | |
65 | + baby_build_date_str, | |
66 | + baby_name, | |
67 | + baby_sex, | |
68 | + baby_m_name, | |
69 | + baby_f_name, | |
70 | + baby_m_phone, | |
71 | + baby_f_phone, | |
72 | + baby_m_cert_no, | |
73 | + baby_f_cert_no, | |
74 | + pid, | |
75 | + check_month_age, | |
76 | + check_month_id, | |
77 | + birth, | |
78 | + birth_str, | |
79 | + check_time, | |
80 | + check_time_str, | |
81 | + next_check_time, | |
82 | + next_check_time_str, | |
83 | + doctor, | |
84 | + doctor_sign, | |
85 | + patient_sign, | |
86 | + check_hospital, | |
87 | + display_state, | |
88 | + errormsg, | |
89 | + medical_history_inquiry, | |
90 | + behavioral_observation, | |
91 | + physical_examination, | |
92 | + c_a_r_s_scale, | |
93 | + other_scales, | |
94 | + auxiliary_inspection, | |
95 | + diagnostic_result, | |
96 | + comorbid_disease, | |
97 | + comorbid_disease_res, | |
98 | + rehabilitation_advice, | |
99 | + rehabilitation_advice_res | |
58 | 100 | from baby_autism_diagnosis |
59 | 101 | where id = #{id} |
60 | 102 | </select> |
... | ... | @@ -62,7 +104,13 @@ |
62 | 104 | <!--查询指定行数据--> |
63 | 105 | <select id="queryAllByLimit" resultMap="BabyAutismDiagnosisMap"> |
64 | 106 | select |
65 | - id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res | |
107 | + id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, | |
108 | + baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, | |
109 | + baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, | |
110 | + next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, | |
111 | + errormsg, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, | |
112 | + auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, | |
113 | + rehabilitation_advice_res | |
66 | 114 | from baby_autism_diagnosis |
67 | 115 | <where> |
68 | 116 | <if test="diagnosis.id != null and diagnosis.id != ''"> |
... | ... | @@ -167,9 +215,6 @@ |
167 | 215 | <if test="diagnosis.errormsg != null and diagnosis.errormsg != ''"> |
168 | 216 | and errormsg = #{diagnosis.errormsg} |
169 | 217 | </if> |
170 | - <if test="diagnosis.checkDoctor != null and diagnosis.checkDoctor != ''"> | |
171 | - and check_doctor = #{diagnosis.checkDoctor} | |
172 | - </if> | |
173 | 218 | <if test="diagnosis.medicalHistoryInquiry != null and diagnosis.medicalHistoryInquiry != ''"> |
174 | 219 | and medical_history_inquiry = #{diagnosis.medicalHistoryInquiry} |
175 | 220 | </if> |
... | ... | @@ -314,9 +359,6 @@ |
314 | 359 | <if test="diagnosis.errormsg != null and diagnosis.errormsg != ''"> |
315 | 360 | and errormsg = #{diagnosis.errormsg} |
316 | 361 | </if> |
317 | - <if test="diagnosis.checkDoctor != null and diagnosis.checkDoctor != ''"> | |
318 | - and check_doctor = #{diagnosis.checkDoctor} | |
319 | - </if> | |
320 | 362 | <if test="diagnosis.medicalHistoryInquiry != null and diagnosis.medicalHistoryInquiry != ''"> |
321 | 363 | and medical_history_inquiry = #{diagnosis.medicalHistoryInquiry} |
322 | 364 | </if> |
... | ... | @@ -354,7 +396,13 @@ |
354 | 396 | </select> |
355 | 397 | <select id="queryListByBabyId" resultMap="BabyAutismDiagnosisMap"> |
356 | 398 | select |
357 | - id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res | |
399 | + id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, | |
400 | + baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, | |
401 | + baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, | |
402 | + next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, | |
403 | + errormsg, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, | |
404 | + auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, | |
405 | + rehabilitation_advice_res | |
358 | 406 | from baby_autism_diagnosis |
359 | 407 | <where> |
360 | 408 | and baby_id = #{id} |
361 | 409 | |
362 | 410 | |
363 | 411 | |
364 | 412 | |
... | ... | @@ -362,24 +410,72 @@ |
362 | 410 | </select> |
363 | 411 | |
364 | 412 | <!--新增所有列--> |
365 | - <insert id="insert" > | |
366 | - insert into baby_autism_diagnosis(id,created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res) | |
367 | - values (#{id},#{created}, #{createdStr}, #{modified}, #{modifiedStr}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyBuildDateStr}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{birthStr}, #{checkTime}, #{checkTimeStr}, #{nextCheckTime}, #{nextCheckTimeStr}, #{doctor}, #{doctorSign}, #{patientSign}, #{checkHospital}, #{displayState}, #{errormsg}, #{checkDoctor}, #{medicalHistoryInquiry}, #{behavioralObservation}, #{physicalExamination}, #{cARSScale}, #{otherScales}, #{auxiliaryInspection}, #{diagnosticResult}, #{comorbidDisease}, #{comorbidDiseaseRes}, #{rehabilitationAdvice}, #{rehabilitationAdviceRes}) | |
413 | + <insert id="insert"> | |
414 | + insert into baby_autism_diagnosis(id, created, created_str, modified, modified_str, yn, operater_id, | |
415 | + hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, | |
416 | + baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, | |
417 | + baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, | |
418 | + birth_str, check_time, check_time_str, next_check_time, next_check_time_str, | |
419 | + doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, | |
420 | + medical_history_inquiry, behavioral_observation, physical_examination, | |
421 | + c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, | |
422 | + comorbid_disease, comorbid_disease_res, rehabilitation_advice, | |
423 | + rehabilitation_advice_res) | |
424 | + values (#{id}, #{created}, #{createdStr}, #{modified}, #{modifiedStr}, #{yn}, #{operaterId}, #{hospitalId}, | |
425 | + #{babyId}, #{babyBuildDate}, #{babyBuildDateStr}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, | |
426 | + #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, | |
427 | + #{birth}, #{birthStr}, #{checkTime}, #{checkTimeStr}, #{nextCheckTime}, #{nextCheckTimeStr}, #{doctor}, | |
428 | + #{doctorSign}, #{patientSign}, #{checkHospital}, #{displayState}, #{errormsg}, | |
429 | + #{medicalHistoryInquiry}, #{behavioralObservation}, #{physicalExamination}, #{cARSScale}, | |
430 | + #{otherScales}, #{auxiliaryInspection}, #{diagnosticResult}, #{comorbidDisease}, #{comorbidDiseaseRes}, | |
431 | + #{rehabilitationAdvice}, #{rehabilitationAdviceRes}) | |
368 | 432 | </insert> |
369 | 433 | |
370 | - <insert id="insertBatch" > | |
371 | - insert into baby_autism_diagnosis(id,created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res) | |
434 | + <insert id="insertBatch"> | |
435 | + insert into baby_autism_diagnosis(id,created, created_str, modified, modified_str, yn, operater_id, hospital_id, | |
436 | + baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, | |
437 | + baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, | |
438 | + check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, | |
439 | + check_hospital, display_state, errormsg, medical_history_inquiry, behavioral_observation, physical_examination, | |
440 | + c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, | |
441 | + rehabilitation_advice, rehabilitation_advice_res) | |
372 | 442 | values |
373 | 443 | <foreach collection="entities" item="entity" separator=","> |
374 | - (#{entity.id},#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, #{entity.errormsg}, #{entity.checkDoctor}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes}) | |
444 | + (#{entity.id},#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, | |
445 | + #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, | |
446 | + #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, | |
447 | + #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, | |
448 | + #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, | |
449 | + #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, | |
450 | + #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, | |
451 | + #{entity.errormsg}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, | |
452 | + #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, | |
453 | + #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, | |
454 | + #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes}) | |
375 | 455 | </foreach> |
376 | 456 | </insert> |
377 | 457 | |
378 | - <insert id="insertOrUpdateBatch" > | |
379 | - insert into baby_autism_diagnosis(id,created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res) | |
458 | + <insert id="insertOrUpdateBatch"> | |
459 | + insert into baby_autism_diagnosis(id,created, created_str, modified, modified_str, yn, operater_id, hospital_id, | |
460 | + baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, | |
461 | + baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, | |
462 | + check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, | |
463 | + check_hospital, display_state, errormsg, medical_history_inquiry, behavioral_observation, | |
464 | + physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, | |
465 | + comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res) | |
380 | 466 | values |
381 | 467 | <foreach collection="entities" item="entity" separator=","> |
382 | - (#{entity.id},#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, #{entity.errormsg}, #{entity.checkDoctor}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes}) | |
468 | + (#{entity.id},#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, | |
469 | + #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, | |
470 | + #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, | |
471 | + #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, | |
472 | + #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, | |
473 | + #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, | |
474 | + #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, | |
475 | + #{entity.errormsg}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, | |
476 | + #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, | |
477 | + #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, | |
478 | + #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes}) | |
383 | 479 | </foreach> |
384 | 480 | on duplicate key update |
385 | 481 | created = values(created), |
... | ... | @@ -415,7 +511,6 @@ |
415 | 511 | check_hospital = values(check_hospital), |
416 | 512 | display_state = values(display_state), |
417 | 513 | errormsg = values(errormsg), |
418 | - check_doctor = values(check_doctor), | |
419 | 514 | medical_history_inquiry = values(medical_history_inquiry), |
420 | 515 | behavioral_observation = values(behavioral_observation), |
421 | 516 | physical_examination = values(physical_examination), |
... | ... | @@ -532,9 +627,7 @@ |
532 | 627 | <if test="errormsg != null and errormsg != ''"> |
533 | 628 | errormsg = #{errormsg}, |
534 | 629 | </if> |
535 | - <if test="checkDoctor != null and checkDoctor != ''"> | |
536 | - check_doctor = #{checkDoctor}, | |
537 | - </if> | |
630 | + | |
538 | 631 | <if test="medicalHistoryInquiry != null and medicalHistoryInquiry != ''"> |
539 | 632 | medical_history_inquiry = #{medicalHistoryInquiry}, |
540 | 633 | </if> |
... | ... | @@ -574,7 +667,9 @@ |
574 | 667 | |
575 | 668 | <!--通过主键删除--> |
576 | 669 | <delete id="deleteById"> |
577 | - delete from baby_autism_diagnosis where id = #{id} | |
670 | + delete | |
671 | + from baby_autism_diagnosis | |
672 | + where id = #{id} | |
578 | 673 | </delete> |
579 | 674 | |
580 | 675 | </mapper> |