BabyPatientExtendEarHearingDiagnose.xml 59.5 KB
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.lyms.platform.permission.dao.master.BabyPatientExtendEarHearingDiagnoseMapper">

<resultMap id="BabyPatientExtendEarHearingDiagnoseResultMap"
type="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
<id column="id" property="id" jdbcType="VARCHAR"/>
<result column="baby_id" property="babyId" jdbcType="VARCHAR"/>
<result column="hospital_id" property="hospitalId" jdbcType="VARCHAR"/>
<result column="diagnose_time" property="diagnoseTime" jdbcType="TIMESTAMP"/>
<result column="high_factor" property="highFactor" jdbcType="VARCHAR"/>
<result column="abr_left_dbnhl" property="abrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="abr_left_l_wave" property="abrLeftLWave" jdbcType="VARCHAR"/>
<result column="abr_left_lll_wave" property="abrLeftLllWave" jdbcType="VARCHAR"/>
<result column="abr_left_V_wave" property="abrLeftVWave" jdbcType="VARCHAR"/>
<result column="abr_left_shield" property="abrLeftShield" jdbcType="VARCHAR"/>
<result column="abr_right_dbnhl" property="abrRightDbnhl" jdbcType="VARCHAR"/>
<result column="abr_right_l_wave" property="abrRightLWave" jdbcType="VARCHAR"/>
<result column="abr_right_lll_wave" property="abrRightLllWave" jdbcType="VARCHAR"/>
<result column="abr_right_V_wave" property="abrRightVWave" jdbcType="VARCHAR"/>
<result column="abr_right_shield" property="abrRightShield" jdbcType="VARCHAR"/>
<result column="abr_thr_left_dbnhl" property="abrThrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_left_ms" property="abrThrLeftMs" jdbcType="VARCHAR"/>
<result column="abr_thr_left_shield_dbnhl" property="abrThrLeftShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_right_dbnhl" property="abrThrRightDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_right_ms" property="abrThrRightMs" jdbcType="VARCHAR"/>
<result column="abr_thr_right_shield_dbnhl" property="abrThrRightShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_dbnhl" property="abrBcLeftThrDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_ms" property="abrBcLeftThrMs" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_shield_dbnhl" property="abrBcLeftThrShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_dbnhl" property="abrBcRightThrDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_ms" property="abrBcRightThrMs" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_shield_dbnhl" property="abrBcRightThrShieldDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_left_dbnhl" property="reactionThrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_left_shield_dbnhl" property="reactionThrLeftShieldDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_right_dbnhl" property="reactionThrRightDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_right_shield_dbnhl" property="reactionThrRightShieldDbnhl" jdbcType="VARCHAR"/>
<result column="oae_left_750" property="oaeLeft750" jdbcType="VARCHAR"/>
<result column="oae_left_1k" property="oaeLeft1k" jdbcType="VARCHAR"/>
<result column="oae_left_2k" property="oaeLeft2k" jdbcType="VARCHAR"/>
<result column="oae_left_3k" property="oaeLeft3k" jdbcType="VARCHAR"/>
<result column="oae_left_4k" property="oaeLeft4k" jdbcType="VARCHAR"/>
<result column="oae_left_6k" property="oaeLeft6k" jdbcType="VARCHAR"/>
<result column="oae_left_8k" property="oaeLeft8k" jdbcType="VARCHAR"/>
<result column="oae_left_10k" property="oaeLeft10k" jdbcType="VARCHAR"/>
<result column="oae_right_750" property="oaeRight750" jdbcType="VARCHAR"/>
<result column="oae_right_1k" property="oaeRight1k" jdbcType="VARCHAR"/>
<result column="oae_right_2k" property="oaeRight2k" jdbcType="VARCHAR"/>
<result column="oae_right_3k" property="oaeRight3k" jdbcType="VARCHAR"/>
<result column="oae_right_4k" property="oaeRight4k" jdbcType="VARCHAR"/>
<result column="oae_right_6k" property="oaeRight6k" jdbcType="VARCHAR"/>
<result column="oae_right_8k" property="oaeRight8k" jdbcType="VARCHAR"/>
<result column="oae_right_10k" property="oaeRight10k" jdbcType="VARCHAR"/>
<result column="acad_left_curve_type" property="acadLeftCurveType" jdbcType="VARCHAR"/>
<result column="acad_left_drum_cp" property="acadLeftDrumCp" jdbcType="VARCHAR"/>
<result column="acad_left_acco" property="acadLeftAcco" jdbcType="VARCHAR"/>
<result column="acad_left_secondo_volume" property="acadLeftSecondoVolume" jdbcType="VARCHAR"/>
<result column="acad_left_gradient" property="acadLeftGradient" jdbcType="VARCHAR"/>
<result column="acad_left_1K_reflect_thre" property="acadLeft1kReflectThre" jdbcType="VARCHAR"/>
<result column="acad_left_reflect_tts" property="acadLeftReflectTTS" jdbcType="VARCHAR"/>
<result column="acad_right_curve_type" property="acadRightCurveType" jdbcType="VARCHAR"/>
<result column="acad_right_drum_cp" property="acadRightDrumCp" jdbcType="VARCHAR"/>
<result column="acad_right_acco" property="acadRightAcco" jdbcType="VARCHAR"/>
<result column="acad_right_secondo_volume" property="acadRightSecondoVolume" jdbcType="VARCHAR"/>
<result column="acad_right_gradient" property="acadRightGradient" jdbcType="VARCHAR"/>
<result column="acad_right_1K_reflect_thre" property="acadRight1kReflectThre" jdbcType="VARCHAR"/>
<result column="acad_right_reflect_tts" property="acadRightReflectTTS" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_500" property="soundReflLeftIpsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_1k" property="soundReflLeftIpsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_2k" property="soundReflLeftIpsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_4k" property="soundReflLeftIpsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_500" property="soundReflLeftOffsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_1k" property="soundReflLeftOffsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_2k" property="soundReflLeftOffsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_4k" property="soundReflLeftOffsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_atten" property="soundReflLeftAtten" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_500" property="soundReflRightIpsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_1k" property="soundReflRightIpsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_2k" property="soundReflRightIpsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_4k" property="soundReflRightIpsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_500" property="soundReflRightOffsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_1k" property="soundReflRightOffsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_2k" property="soundReflRightOffsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_4k" property="soundReflRightOffsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_atten" property="soundReflRightAtten" jdbcType="VARCHAR"/>
<result column="aabr_left_if_pass" property="aabrLeftIfPass" jdbcType="INTEGER"/>
<result column="aabr_right_if_pass" property="aabrRightIfPass" jdbcType="INTEGER"/>
<result column="assr_left_500" property="assrLeft500" jdbcType="VARCHAR"/>
<result column="assr_left_1k" property="assrLeft1k" jdbcType="VARCHAR"/>
<result column="assr_left_2k" property="assrLeft2k" jdbcType="VARCHAR"/>
<result column="assr_left_4k" property="assrLeft4k" jdbcType="VARCHAR"/>
<result column="assr_right_500" property="assrRight500" jdbcType="VARCHAR"/>
<result column="assr_right_1k" property="assrRight1k" jdbcType="VARCHAR"/>
<result column="assr_right_2k" property="assrRight2k" jdbcType="VARCHAR"/>
<result column="assr_right_4k" property="assrRight4k" jdbcType="VARCHAR"/>
<result column="diagn_hand_sugge" property="diagnHandSugge" jdbcType="VARCHAR"/>
<result column="diagn_guide_sugge" property="diagnGuideSugge" jdbcType="VARCHAR"/>
<result column="diagn_doctor_id" property="diagnDoctorId" jdbcType="VARCHAR"/>
<result column="diagn_next_time" property="diagnNextTime" jdbcType="TIMESTAMP"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="create_id" property="createId" jdbcType="VARCHAR"/>
<result column="modify_id" property="modifyId" jdbcType="VARCHAR"/>
<result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP"/>
<result column="ifdel" property="ifdel" jdbcType="INTEGER"/>
<result column="enalble" property="enalble" jdbcType="INTEGER"/>
<result column="isconfirm" property="isconfirm" jdbcType="INTEGER"/>
<result column="diagn_result" property="diagnResult" jdbcType="VARCHAR"/>
<result column="confirm_result" property="confirmResult" jdbcType="VARCHAR"/>
<result column="confirm_time" property="confirmTime" jdbcType="TIMESTAMP"/>
<result column="pid" property="pid" jdbcType="VARCHAR"/>
</resultMap>


<insert id="addBabyPatientExtendEarHearingDiagnose"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
insert into baby_patient_extend_ear_hearing_diagnose (id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_right_reflect_tts,acad_left_1K_reflect_thre,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_left_reflect_tts,acad_right_1K_reflect_thre,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid) values (#{id},#{babyId},#{hospitalId},#{diagnoseTime},#{highFactor},#{abrLeftDbnhl},#{abrLeftLWave},#{abrLeftLllWave},#{abrLeftVWave},#{abrLeftShield},#{abrRightDbnhl},#{abrRightLWave},#{abrRightLllWave},#{abrRightVWave},#{abrRightShield},#{abrThrLeftDbnhl},#{abrThrLeftMs},#{abrThrLeftShieldDbnhl},#{abrThrRightDbnhl},#{abrThrRightMs},#{abrThrRightShieldDbnhl},#{abrBcLeftThrDbnhl},#{abrBcLeftThrMs},#{abrBcLeftThrShieldDbnhl},#{abrBcRightThrDbnhl},#{abrBcRightThrMs},#{abrBcRightThrShieldDbnhl},#{reactionThrLeftDbnhl},#{reactionThrLeftShieldDbnhl},#{reactionThrRightDbnhl},#{reactionThrRightShieldDbnhl},#{oaeLeft750},#{oaeLeft1k},#{oaeLeft2k},#{oaeLeft3k},#{oaeLeft4k},#{oaeLeft6k},#{oaeLeft8k},#{oaeLeft10k},#{oaeRight750},#{oaeRight1k},#{oaeRight2k},#{oaeRight3k},#{oaeRight4k},#{oaeRight6k},#{oaeRight8k},#{oaeRight10k},#{acadLeftCurveType},#{acadLeftDrumCp},#{acadLeftAcco},#{acadLeftSecondoVolume},#{acadLeftGradient},#{acadLeftReflectTTS},#{acadLeft1kReflectThre},#{acadRightCurveType},#{acadRightDrumCp},#{acadRightAcco},#{acadRightSecondoVolume},#{acadRightGradient},#{acadRightReflectTTS},#{acadRight1kReflectThre},#{soundReflLeftIpsi500},#{soundReflLeftIpsi1k},#{soundReflLeftIpsi2k},#{soundReflLeftIpsi4k},#{soundReflLeftOffsi500},#{soundReflLeftOffsi1k},#{soundReflLeftOffsi2k},#{soundReflLeftOffsi4k},#{soundReflLeftAtten},#{soundReflRightIpsi500},#{soundReflRightIpsi1k},#{soundReflRightIpsi2k},#{soundReflRightIpsi4k},#{soundReflRightOffsi500},#{soundReflRightOffsi1k},#{soundReflRightOffsi2k},#{soundReflRightOffsi4k},#{soundReflRightAtten},#{aabrLeftIfPass},#{aabrRightIfPass},#{assrLeft500},#{assrLeft1k},#{assrLeft2k},#{assrLeft4k},#{assrRight500},#{assrRight1k},#{assrRight2k},#{assrRight4k},#{diagnHandSugge},#{diagnGuideSugge},#{diagnDoctorId},#{diagnNextTime},#{createTime},#{createId},#{modifyId},#{modifyTime},#{ifdel},#{enalble},#{isconfirm},#{diagnResult},#{confirmResult},#{confirmTime},#{pid})
</insert>


<update id="updateBabyPatientExtendEarHearingDiagnose"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
update baby_patient_extend_ear_hearing_diagnose
<set>
<if test="babyId != null and babyId != ''">
baby_id = #{babyId,jdbcType=VARCHAR},
</if>
<if test="hospitalId != null and hospitalId != ''">
hospital_id = #{hospitalId,jdbcType=VARCHAR},
</if>
<if test="diagnoseTime != null">
diagnose_time = #{diagnoseTime,jdbcType=TIMESTAMP},
</if>

<if test="highFactor != null and highFactor != ''">
high_factor = #{highFactor,jdbcType=VARCHAR},
</if>
<if test="abrLeftDbnhl != null and abrLeftDbnhl != ''">
abr_left_dbnhl = #{abrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrLeftLWave != null and abrLeftLWave != ''">
abr_left_l_wave = #{abrLeftLWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftLllWave != null and abrLeftLllWave != ''">
abr_left_lll_wave = #{abrLeftLllWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftVWave != null and abrLeftVWave != ''">
abr_left_V_wave = #{abrLeftVWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftShield != null and abrLeftShield != ''">
abr_left_shield = #{abrLeftShield,jdbcType=VARCHAR},
</if>
<if test="abrRightDbnhl != null and abrRightDbnhl != ''">
abr_right_dbnhl = #{abrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrRightLWave != null and abrRightLWave != ''">
abr_right_l_wave = #{abrRightLWave,jdbcType=VARCHAR},
</if>
<if test="abrRightLllWave != null and abrRightLllWave != ''">
abr_right_lll_wave = #{abrRightLllWave,jdbcType=VARCHAR},
</if>
<if test="abrRightVWave != null and abrRightVWave != ''">
abr_right_V_wave = #{abrRightVWave,jdbcType=VARCHAR},
</if>
<if test="abrRightShield != null and abrRightShield != ''">
abr_right_shield = #{abrRightShield,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftDbnhl != null and abrThrLeftDbnhl != ''">
abr_thr_left_dbnhl = #{abrThrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftMs != null and abrThrLeftMs != ''">
abr_thr_left_ms = #{abrThrLeftMs,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftShieldDbnhl != null and abrThrLeftShieldDbnhl != ''">
abr_thr_left_shield_dbnhl = #{abrThrLeftShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrRightDbnhl != null and abrThrRightDbnhl != ''">
abr_thr_right_dbnhl = #{abrThrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrRightMs != null and abrThrRightMs != ''">
abr_thr_right_ms = #{abrThrRightMs,jdbcType=VARCHAR},
</if>
<if test="abrThrRightShieldDbnhl != null and abrThrRightShieldDbnhl != ''">
abr_thr_right_shield_dbnhl = #{abrThrRightShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrDbnhl != null and abrBcLeftThrDbnhl != ''">
abr_bc_left_thr_dbnhl = #{abrBcLeftThrDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrMs != null and abrBcLeftThrMs != ''">
abr_bc_left_thr_ms = #{abrBcLeftThrMs,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrShieldDbnhl != null and abrBcLeftThrShieldDbnhl != ''">
abr_bc_left_thr_shield_dbnhl = #{abrBcLeftThrShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrDbnhl != null and abrBcRightThrDbnhl != ''">
abr_bc_right_thr_dbnhl = #{abrBcRightThrDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrMs != null and abrBcRightThrMs != ''">
abr_bc_right_thr_ms = #{abrBcRightThrMs,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrShieldDbnhl != null and abrBcRightThrShieldDbnhl != ''">
abr_bc_right_thr_shield_dbnhl = #{abrBcRightThrShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrLeftDbnhl != null and reactionThrLeftDbnhl != ''">
reaction_thr_left_dbnhl = #{reactionThrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrLeftShieldDbnhl != null and reactionThrLeftShieldDbnhl != ''">
reaction_thr_left_shield_dbnhl = #{reactionThrLeftShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrRightDbnhl != null and reactionThrRightDbnhl != ''">
reaction_thr_right_dbnhl = #{reactionThrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrRightShieldDbnhl != null and reactionThrRightShieldDbnhl != ''">
reaction_thr_right_shield_dbnhl = #{reactionThrRightShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="oaeLeft750 != null and oaeLeft750 != ''">
oae_left_750 = #{oaeLeft750,jdbcType=VARCHAR},
</if>
<if test="oaeLeft1k != null and oaeLeft1k != ''">
oae_left_1k = #{oaeLeft1k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft2k != null and oaeLeft2k != ''">
oae_left_2k = #{oaeLeft2k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft3k != null and oaeLeft3k != ''">
oae_left_3k = #{oaeLeft3k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft4k != null and oaeLeft4k != ''">
oae_left_4k = #{oaeLeft4k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft6k != null and oaeLeft6k != ''">
oae_left_6k = #{oaeLeft6k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft8k != null and oaeLeft8k != ''">
oae_left_8k = #{oaeLeft8k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft10k != null and oaeLeft10k != ''">
oae_left_10k = #{oaeLeft10k,jdbcType=VARCHAR},
</if>
<if test="oaeRight750 != null and oaeRight750 != ''">
oae_right_750 = #{oaeRight750,jdbcType=VARCHAR},
</if>
<if test="oaeRight1k != null and oaeRight1k != ''">
oae_right_1k = #{oaeRight1k,jdbcType=VARCHAR},
</if>
<if test="oaeRight2k != null and oaeRight2k != ''">
oae_right_2k = #{oaeRight2k,jdbcType=VARCHAR},
</if>
<if test="oaeRight3k != null and oaeRight3k != ''">
oae_right_3k = #{oaeRight3k,jdbcType=VARCHAR},
</if>
<if test="oaeRight4k != null and oaeRight4k != ''">
oae_right_4k = #{oaeRight4k,jdbcType=VARCHAR},
</if>
<if test="oaeRight6k != null and oaeRight6k != ''">
oae_right_6k = #{oaeRight6k,jdbcType=VARCHAR},
</if>
<if test="oaeRight8k != null and oaeRight8k != ''">
oae_right_8k = #{oaeRight8k,jdbcType=VARCHAR},
</if>
<if test="oaeRight10k != null and oaeRight10k != ''">
oae_right_10k = #{oaeRight10k,jdbcType=VARCHAR},
</if>
<if test="acadLeftCurveType != null and acadLeftCurveType != ''">
acad_left_curve_type = #{acadLeftCurveType,jdbcType=VARCHAR},
</if>
<if test="acadLeftDrumCp != null and acadLeftDrumCp != ''">
acad_left_drum_cp = #{acadLeftDrumCp,jdbcType=VARCHAR},
</if>
<if test="acadLeftAcco != null and acadLeftAcco != ''">
acad_left_acco = #{acadLeftAcco,jdbcType=VARCHAR},
</if>
<if test="acadLeftSecondoVolume != null and acadLeftSecondoVolume != ''">
acad_left_secondo_volume = #{acadLeftSecondoVolume,jdbcType=VARCHAR},
</if>
<if test="acadLeftGradient != null and acadLeftGradient != ''">
acad_left_gradient = #{acadLeftGradient,jdbcType=VARCHAR},
</if>
<if test="acadLeft1kReflectThre != null and acadLeft1kReflectThre != ''">
acad_left_1K_reflect_thre = #{acadLeft1kReflectThre,jdbcType=VARCHAR},
</if>
<if test="acadLeftReflectTTS != null and acadLeftReflectTTS != ''">
acad_left_reflect_tts = #{acadLeftReflectTTS,jdbcType=VARCHAR},
</if>

<if test="acadRightCurveType != null and acadRightCurveType != ''">
acad_right_curve_type = #{acadRightCurveType,jdbcType=VARCHAR},
</if>
<if test="acadRightDrumCp != null and acadRightDrumCp != ''">
acad_right_drum_cp = #{acadRightDrumCp,jdbcType=VARCHAR},
</if>
<if test="acadRightAcco != null and acadRightAcco != ''">
acad_right_acco = #{acadRightAcco,jdbcType=VARCHAR},
</if>
<if test="acadRightSecondoVolume != null and acadRightSecondoVolume != ''">
acad_right_secondo_volume = #{acadRightSecondoVolume,jdbcType=VARCHAR},
</if>
<if test="acadRightGradient != null and acadRightGradient != ''">
acad_right_gradient = #{acadRightGradient,jdbcType=VARCHAR},
</if>
<if test="acadRight1kReflectThre != null and acadRight1kReflectThre != ''">
acad_right_1K_reflect_thre = #{acadRight1kReflectThre,jdbcType=VARCHAR},
</if>
<if test="acadRightReflectTTS != null and acadRightReflectTTS != ''">
acad_right_reflect_tts = #{acadRightReflectTTS,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi500 != null and soundReflLeftIpsi500 != ''">
sound_refl_left_ipsi_500 = #{soundReflLeftIpsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi1k != null and soundReflLeftIpsi1k != ''">
sound_refl_left_ipsi_1k = #{soundReflLeftIpsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi2k != null and soundReflLeftIpsi2k != ''">
sound_refl_left_ipsi_2k = #{soundReflLeftIpsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi4k != null and soundReflLeftIpsi4k != ''">
sound_refl_left_ipsi_4k = #{soundReflLeftIpsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi500 != null and soundReflLeftOffsi500 != ''">
sound_refl_left_offsi_500 = #{soundReflLeftOffsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi1k != null and soundReflLeftOffsi1k != ''">
sound_refl_left_offsi_1k = #{soundReflLeftOffsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi2k != null and soundReflLeftOffsi2k != ''">
sound_refl_left_offsi_2k = #{soundReflLeftOffsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi4k != null and soundReflLeftOffsi4k != ''">
sound_refl_left_offsi_4k = #{soundReflLeftOffsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftAtten != null and soundReflLeftAtten != ''">
sound_refl_left_atten = #{soundReflLeftAtten,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi500 != null and soundReflRightIpsi500 != ''">
sound_refl_right_ipsi_500 = #{soundReflRightIpsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi1k != null and soundReflRightIpsi1k != ''">
sound_refl_right_ipsi_1k = #{soundReflRightIpsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi2k != null and soundReflRightIpsi2k != ''">
sound_refl_right_ipsi_2k = #{soundReflRightIpsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi4k != null and soundReflRightIpsi4k != ''">
sound_refl_right_ipsi_4k = #{soundReflRightIpsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi500 != null and soundReflRightOffsi500 != ''">
sound_refl_right_offsi_500 = #{soundReflRightOffsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi1k != null and soundReflRightOffsi1k != ''">
sound_refl_right_offsi_1k = #{soundReflRightOffsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi2k != null and soundReflRightOffsi2k != ''">
sound_refl_right_offsi_2k = #{soundReflRightOffsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi4k != null and soundReflRightOffsi4k != ''">
sound_refl_right_offsi_4k = #{soundReflRightOffsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightAtten != null and soundReflRightAtten != ''">
sound_refl_right_atten = #{soundReflRightAtten,jdbcType=VARCHAR},
</if>
<if test="aabrLeftIfPass != null and aabrLeftIfPass >= 0">
aabr_left_if_pass = #{aabrLeftIfPass,jdbcType=INTEGER},
</if>
<if test="aabrRightIfPass != null and aabrRightIfPass >= 0">
aabr_right_if_pass = #{aabrRightIfPass,jdbcType=INTEGER},
</if>
<if test="assrLeft500 != null and assrLeft500 != ''">
assr_left_500 = #{assrLeft500,jdbcType=VARCHAR},
</if>
<if test="assrLeft1k != null and assrLeft1k != ''">
assr_left_1k = #{assrLeft1k,jdbcType=VARCHAR},
</if>
<if test="assrLeft2k != null and assrLeft2k != ''">
assr_left_2k = #{assrLeft2k,jdbcType=VARCHAR},
</if>
<if test="assrLeft4k != null and assrLeft4k != ''">
assr_left_4k = #{assrLeft4k,jdbcType=VARCHAR},
</if>
<if test="assrRight500 != null and assrRight500 != ''">
assr_right_500 = #{assrRight500,jdbcType=VARCHAR},
</if>
<if test="assrRight1k != null and assrRight1k != ''">
assr_right_1k = #{assrRight1k,jdbcType=VARCHAR},
</if>
<if test="assrRight2k != null and assrRight2k != ''">
assr_right_2k = #{assrRight2k,jdbcType=VARCHAR},
</if>
<if test="assrRight4k != null and assrRight4k != ''">
assr_right_4k = #{assrRight4k,jdbcType=VARCHAR},
</if>
<if test="diagnHandSugge != null and diagnHandSugge != ''">
diagn_hand_sugge = #{diagnHandSugge,jdbcType=VARCHAR},
</if>
<if test="diagnGuideSugge != null and diagnGuideSugge != ''">
diagn_guide_sugge = #{diagnGuideSugge,jdbcType=VARCHAR},
</if>
<if test="diagnDoctorId != null and diagnDoctorId != ''">
diagn_doctor_id = #{diagnDoctorId,jdbcType=VARCHAR},
</if>
<if test="diagnNextTime != null">
diagn_next_time = #{diagnNextTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createId != null and createId != ''">
create_id = #{createId,jdbcType=VARCHAR},
</if>
<if test="modifyId != null and modifyId != ''">
modify_id = #{modifyId,jdbcType=VARCHAR},
</if>
<if test="modifyTime != null">
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
</if>
<if test="ifdel != null and ifdel >= 0">
ifdel = #{ifdel,jdbcType=INTEGER},
</if>
<if test="enalble != null and enalble >= 0">
enalble = #{enalble,jdbcType=INTEGER},
</if>
<if test="isconfirm != null and isconfirm >= 0">
isconfirm = #{isconfirm,jdbcType=INTEGER},
</if>
<if test="diagnResult != null and diagnResult != ''">
diagn_result = #{diagnResult,jdbcType=VARCHAR},
</if>
<if test="confirmResult != null and confirmResult != ''">
confirm_result = #{confirmResult,jdbcType=VARCHAR},
</if>
<if test="pid != null and pid != ''">
pid = #{pid,jdbcType=VARCHAR},
</if>
<if test="confirmTime != null">
confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>


<delete id="deleteBabyPatientExtendEarHearingDiagnose" parameterType="java.lang.String">
delete from baby_patient_extend_ear_hearing_diagnose where id = #{id,jdbcType=VARCHAR}
</delete>


<select id="getBabyPatientExtendEarHearingDiagnose" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="java.lang.String">
select id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_left_1K_reflect_thre,acad_left_reflect_tts,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_right_1K_reflect_thre,acad_right_reflect_tts,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid
from baby_patient_extend_ear_hearing_diagnose where id = #{id,jdbcType=VARCHAR}
</select>


<sql id="orderAndLimit">
<if test="sort != null and sort != '' ">
order by ${sort}
<if test="need != null">
limit #{offset, jdbcType=INTEGER} , #{limit, jdbcType=INTEGER}
</if>
</if>
</sql>


<sql id="BabyPatientExtendEarHearingDiagnoseCondition">
<where>
1 = 1
<if test="id != null and id != ''">
and id = #{id,jdbcType=VARCHAR}
</if>
<if test="babyId != null and babyId != ''">
and baby_id = #{babyId,jdbcType=VARCHAR}
</if>
<if test="babyIds != null ">
and baby_id in
<foreach item="item" index="index" collection="babyIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId,jdbcType=VARCHAR}
</if>
<if test="checkHospitalIds != null and checkHospitalIds != ''">
and hospital_id in
<foreach item="item" index="index" collection="checkHospitalIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>

<if test="diagnoseTime != null">
and diagnose_time = #{diagnoseTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnoseStartTime != null">
and diagnose_time >= #{diagnoseStartTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnoseEndTime != null">
and diagnose_time <![CDATA[<]]>= #{diagnoseEndTime,jdbcType=TIMESTAMP}
</if>
<if test="highFactor != null and highFactor != ''">
and high_factor = #{highFactor,jdbcType=VARCHAR}
</if>
<if test="abrLeftDbnhl != null and abrLeftDbnhl != ''">
and abr_left_dbnhl = #{abrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrLeftLWave != null and abrLeftLWave != ''">
and abr_left_l_wave = #{abrLeftLWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftLllWave != null and abrLeftLllWave != ''">
and abr_left_lll_wave = #{abrLeftLllWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftVWave != null and abrLeftVWave != ''">
and abr_left_V_wave = #{abrLeftVWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftShield != null and abrLeftShield != ''">
and abr_left_shield = #{abrLeftShield,jdbcType=VARCHAR}
</if>
<if test="abrRightDbnhl != null and abrRightDbnhl != ''">
and abr_right_dbnhl = #{abrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrRightLWave != null and abrRightLWave != ''">
and abr_right_l_wave = #{abrRightLWave,jdbcType=VARCHAR}
</if>
<if test="abrRightLllWave != null and abrRightLllWave != ''">
and abr_right_lll_wave = #{abrRightLllWave,jdbcType=VARCHAR}
</if>
<if test="abrRightVWave != null and abrRightVWave != ''">
and abr_right_V_wave = #{abrRightVWave,jdbcType=VARCHAR}
</if>
<if test="abrRightShield != null and abrRightShield != ''">
and abr_right_shield = #{abrRightShield,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftDbnhl != null and abrThrLeftDbnhl != ''">
and abr_thr_left_dbnhl = #{abrThrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftMs != null and abrThrLeftMs != ''">
and abr_thr_left_ms = #{abrThrLeftMs,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftShieldDbnhl != null and abrThrLeftShieldDbnhl != ''">
and abr_thr_left_shield_dbnhl = #{abrThrLeftShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrRightDbnhl != null and abrThrRightDbnhl != ''">
and abr_thr_right_dbnhl = #{abrThrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrRightMs != null and abrThrRightMs != ''">
and abr_thr_right_ms = #{abrThrRightMs,jdbcType=VARCHAR}
</if>
<if test="abrThrRightShieldDbnhl != null and abrThrRightShieldDbnhl != ''">
and abr_thr_right_shield_dbnhl = #{abrThrRightShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrDbnhl != null and abrBcLeftThrDbnhl != ''">
and abr_bc_left_thr_dbnhl = #{abrBcLeftThrDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrMs != null and abrBcLeftThrMs != ''">
and abr_bc_left_thr_ms = #{abrBcLeftThrMs,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrShieldDbnhl != null and abrBcLeftThrShieldDbnhl != ''">
and abr_bc_left_thr_shield_dbnhl = #{abrBcLeftThrShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrDbnhl != null and abrBcRightThrDbnhl != ''">
and abr_bc_right_thr_dbnhl = #{abrBcRightThrDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrMs != null and abrBcRightThrMs != ''">
and abr_bc_right_thr_ms = #{abrBcRightThrMs,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrShieldDbnhl != null and abrBcRightThrShieldDbnhl != ''">
and abr_bc_right_thr_shield_dbnhl = #{abrBcRightThrShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrLeftDbnhl != null and reactionThrLeftDbnhl != ''">
and reaction_thr_left_dbnhl = #{reactionThrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrLeftShieldDbnhl != null and reactionThrLeftShieldDbnhl != ''">
and reaction_thr_left_shield_dbnhl = #{reactionThrLeftShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrRightDbnhl != null and reactionThrRightDbnhl != ''">
and reaction_thr_right_dbnhl = #{reactionThrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrRightShieldDbnhl != null and reactionThrRightShieldDbnhl != ''">
and reaction_thr_right_shield_dbnhl = #{reactionThrRightShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="oaeLeft750 != null and oaeLeft750 != ''">
and oae_left_750 = #{oaeLeft750,jdbcType=VARCHAR}
</if>
<if test="oaeLeft1k != null and oaeLeft1k != ''">
and oae_left_1k = #{oaeLeft1k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft2k != null and oaeLeft2k != ''">
and oae_left_2k = #{oaeLeft2k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft3k != null and oaeLeft3k != ''">
and oae_left_3k = #{oaeLeft3k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft4k != null and oaeLeft4k != ''">
and oae_left_4k = #{oaeLeft4k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft6k != null and oaeLeft6k != ''">
and oae_left_6k = #{oaeLeft6k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft8k != null and oaeLeft8k != ''">
and oae_left_8k = #{oaeLeft8k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft10k != null and oaeLeft10k != ''">
and oae_left_10k = #{oaeLeft10k,jdbcType=VARCHAR}
</if>
<if test="oaeRight750 != null and oaeRight750 != ''">
and oae_right_750 = #{oaeRight750,jdbcType=VARCHAR}
</if>
<if test="oaeRight1k != null and oaeRight1k != ''">
and oae_right_1k = #{oaeRight1k,jdbcType=VARCHAR}
</if>
<if test="oaeRight2k != null and oaeRight2k != ''">
and oae_right_2k = #{oaeRight2k,jdbcType=VARCHAR}
</if>
<if test="oaeRight3k != null and oaeRight3k != ''">
and oae_right_3k = #{oaeRight3k,jdbcType=VARCHAR}
</if>
<if test="oaeRight4k != null and oaeRight4k != ''">
and oae_right_4k = #{oaeRight4k,jdbcType=VARCHAR}
</if>
<if test="oaeRight6k != null and oaeRight6k != ''">
and oae_right_6k = #{oaeRight6k,jdbcType=VARCHAR}
</if>
<if test="oaeRight8k != null and oaeRight8k != ''">
and oae_right_8k = #{oaeRight8k,jdbcType=VARCHAR}
</if>
<if test="oaeRight10k != null and oaeRight10k != ''">
and oae_right_10k = #{oaeRight10k,jdbcType=VARCHAR}
</if>
<if test="acadLeftCurveType != null and acadLeftCurveType != ''">
and acad_left_curve_type = #{acadLeftCurveType,jdbcType=VARCHAR}
</if>
<if test="acadLeftDrumCp != null and acadLeftDrumCp != ''">
and acad_left_drum_cp = #{acadLeftDrumCp,jdbcType=VARCHAR}
</if>
<if test="acadLeftAcco != null and acadLeftAcco != ''">
and acad_left_acco = #{acadLeftAcco,jdbcType=VARCHAR}
</if>
<if test="acadLeftSecondoVolume != null and acadLeftSecondoVolume != ''">
and acad_left_secondo_volume = #{acadLeftSecondoVolume,jdbcType=VARCHAR}
</if>
<if test="acadLeftGradient != null and acadLeftGradient != ''">
and acad_left_gradient = #{acadLeftGradient,jdbcType=VARCHAR}
</if>
<if test="acadLeft1kReflectThre != null and acadLeft1kReflectThre != ''">
and acad_left_1K_reflect_thre = #{acadLeft1kReflectThre,jdbcType=VARCHAR}
</if>
<if test="acadRightCurveType != null and acadRightCurveType != ''">
and acad_right_curve_type = #{acadRightCurveType,jdbcType=VARCHAR}
</if>
<if test="acadRightDrumCp != null and acadRightDrumCp != ''">
and acad_right_drum_cp = #{acadRightDrumCp,jdbcType=VARCHAR}
</if>
<if test="acadRightAcco != null and acadRightAcco != ''">
and acad_right_acco = #{acadRightAcco,jdbcType=VARCHAR}
</if>
<if test="acadRightSecondoVolume != null and acadRightSecondoVolume != ''">
and acad_right_secondo_volume = #{acadRightSecondoVolume,jdbcType=VARCHAR}
</if>
<if test="acadRightGradient != null and acadRightGradient != ''">
and acad_right_gradient = #{acadRightGradient,jdbcType=VARCHAR}
</if>
<if test="acadRight1kReflectThre != null and acadRight1kReflectThre != ''">
and acad_right_1K_reflect_thre = #{acadRight1kReflectThre,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi500 != null and soundReflLeftIpsi500 != ''">
and sound_refl_left_ipsi_500 = #{soundReflLeftIpsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi1k != null and soundReflLeftIpsi1k != ''">
and sound_refl_left_ipsi_1k = #{soundReflLeftIpsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi2k != null and soundReflLeftIpsi2k != ''">
and sound_refl_left_ipsi_2k = #{soundReflLeftIpsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi4k != null and soundReflLeftIpsi4k != ''">
and sound_refl_left_ipsi_4k = #{soundReflLeftIpsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi500 != null and soundReflLeftOffsi500 != ''">
and sound_refl_left_offsi_500 = #{soundReflLeftOffsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi1k != null and soundReflLeftOffsi1k != ''">
and sound_refl_left_offsi_1k = #{soundReflLeftOffsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi2k != null and soundReflLeftOffsi2k != ''">
and sound_refl_left_offsi_2k = #{soundReflLeftOffsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi4k != null and soundReflLeftOffsi4k != ''">
and sound_refl_left_offsi_4k = #{soundReflLeftOffsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftAtten != null and soundReflLeftAtten != ''">
and sound_refl_left_atten = #{soundReflLeftAtten,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi500 != null and soundReflRightIpsi500 != ''">
and sound_refl_right_ipsi_500 = #{soundReflRightIpsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi1k != null and soundReflRightIpsi1k != ''">
and sound_refl_right_ipsi_1k = #{soundReflRightIpsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi2k != null and soundReflRightIpsi2k != ''">
and sound_refl_right_ipsi_2k = #{soundReflRightIpsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi4k != null and soundReflRightIpsi4k != ''">
and sound_refl_right_ipsi_4k = #{soundReflRightIpsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi500 != null and soundReflRightOffsi500 != ''">
and sound_refl_right_offsi_500 = #{soundReflRightOffsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi1k != null and soundReflRightOffsi1k != ''">
and sound_refl_right_offsi_1k = #{soundReflRightOffsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi2k != null and soundReflRightOffsi2k != ''">
and sound_refl_right_offsi_2k = #{soundReflRightOffsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi4k != null and soundReflRightOffsi4k != ''">
and sound_refl_right_offsi_4k = #{soundReflRightOffsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightAtten != null and soundReflRightAtten != ''">
and sound_refl_right_atten = #{soundReflRightAtten,jdbcType=VARCHAR}
</if>
<if test="aabrLeftIfPass != null and aabrLeftIfPass >= 0">
and aabr_left_if_pass = #{aabrLeftIfPass,jdbcType=INTEGER}
</if>
<if test="aabrRightIfPass != null and aabrRightIfPass >= 0">
and aabr_right_if_pass = #{aabrRightIfPass,jdbcType=INTEGER}
</if>
<if test="assrLeft500 != null and assrLeft500 != ''">
and assr_left_500 = #{assrLeft500,jdbcType=VARCHAR}
</if>
<if test="assrLeft1k != null and assrLeft1k != ''">
and assr_left_1k = #{assrLeft1k,jdbcType=VARCHAR}
</if>
<if test="assrLeft2k != null and assrLeft2k != ''">
and assr_left_2k = #{assrLeft2k,jdbcType=VARCHAR}
</if>
<if test="assrLeft4k != null and assrLeft4k != ''">
and assr_left_4k = #{assrLeft4k,jdbcType=VARCHAR}
</if>
<if test="assrRight500 != null and assrRight500 != ''">
and assr_right_500 = #{assrRight500,jdbcType=VARCHAR}
</if>
<if test="assrRight1k != null and assrRight1k != ''">
and assr_right_1k = #{assrRight1k,jdbcType=VARCHAR}
</if>
<if test="assrRight2k != null and assrRight2k != ''">
and assr_right_2k = #{assrRight2k,jdbcType=VARCHAR}
</if>
<if test="assrRight4k != null and assrRight4k != ''">
and assr_right_4k = #{assrRight4k,jdbcType=VARCHAR}
</if>
<if test="diagnHandSugge != null and diagnHandSugge != ''">
and diagn_hand_sugge = #{diagnHandSugge,jdbcType=VARCHAR}
</if>
<if test="diagnGuideSugge != null and diagnGuideSugge != ''">
and diagn_guide_sugge = #{diagnGuideSugge,jdbcType=VARCHAR}
</if>
<if test="diagnDoctorId != null and diagnDoctorId != ''">
and diagn_doctor_id = #{diagnDoctorId,jdbcType=VARCHAR}
</if>
<if test="diagnNextTime != null">
and diagn_next_time = #{diagnNextTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnNextStartTime != null">
and diagn_next_time >= #{diagnNextStartTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnNextEndTime != null">
and diagn_next_time <![CDATA[<]]>= #{diagnNextEndTime,jdbcType=TIMESTAMP}
</if>
<if test="createTime != null">
and create_time = #{createTime,jdbcType=TIMESTAMP}
</if>
<if test="createId != null and createId != ''">
and create_id = #{createId,jdbcType=VARCHAR}
</if>
<if test="modifyId != null and modifyId != ''">
and modify_id = #{modifyId,jdbcType=VARCHAR}
</if>
<if test="modifyTime != null">
and modify_time = #{modifyTime,jdbcType=TIMESTAMP}
</if>
<if test="ifdel != null and ifdel >= 0">
and ifdel = #{ifdel,jdbcType=INTEGER}
</if>
<if test="enalble != null and enalble >= 0">
and enalble = #{enalble,jdbcType=INTEGER}
</if>
<if test="isconfirm != null and isconfirm >= 0">
and isconfirm = #{isconfirm,jdbcType=INTEGER}
</if>
<if test="diagnResult != null and diagnResult != ''">
and diagn_result = #{diagnResult,jdbcType=VARCHAR}
</if>
<if test="confirmResult != null and confirmResult != ''">
and confirm_result LIKE concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>
<if test="pid != null and pid != ''">
and pid = #{pid,jdbcType=VARCHAR}
</if>
<if test="confirmTime != null">
and confirm_time = #{confirmTime,jdbcType=TIMESTAMP}
</if>
<if test="confirmStartTime != null">
and confirm_time >= #{confirmStartTime,jdbcType=TIMESTAMP}
</if>
<if test="confirmEndTime != null">
and confirm_time >= #{confirmEndTime,jdbcType=TIMESTAMP}
</if>

</where>
</sql>


<select id="queryBabyPatientExtendEarHearingDiagnose" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select
id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_left_1K_reflect_thre,acad_left_reflect_tts,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_right_1K_reflect_thre,acad_right_reflect_tts,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid
from baby_patient_extend_ear_hearing_diagnose
<include refid="BabyPatientExtendEarHearingDiagnoseCondition"/>
<include refid="orderAndLimit"/>
</select>

<select id="getBabyPatientExtendEarHearingDiagnoseIds" resultType="String">
select baby_id from baby_patient_extend_ear_hearing_diagnose
where hospital_id = #{hospitalId,jdbcType=VARCHAR}
</select>


<select id="queryBabyPatientExtendEarHearingDiagnoseCount" resultType="int"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select count(1) from baby_patient_extend_ear_hearing_diagnose
<include refid="BabyPatientExtendEarHearingDiagnoseCondition"/>
</select>

<select id="getHdAndScreenCount" resultType="int"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select count(1) from (
select hd.id,hd.baby_id,max(hd.diagnose_time) diagnose_time,hd.high_factor,hd.confirm_result,hd.diagn_doctor_id,diagn_result,isconfirm,diagn_hand_sugge
from baby_patient_extend_ear_hearing_diagnose hd
<where>
1 = 1
<if test="diagnoseStartTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnoseStartTime},hd.diagnose_time) <=0
]]>
</if>
<if test="diagnoseEndTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnoseEndTime},hd.diagnose_time) >=0
]]>
</if>
<if test="diagnDoctorId!=null">
and
hd.diagn_doctor_id = #{diagnDoctorId}
</if>
<if test="diagnNextStartTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnNextStartTime},hd.diagn_next_time)<=0
]]>
</if>
<if test="diagnNextEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnNextEndTime},hd.diagn_next_time) >=0
]]>
</if>
<if test="isconfirm!=null">
AND
hd.isconfirm = #{isconfirm}
</if>
<if test="confirmResult!=null">
and
hd.confirm_result like concat("%",#{confirmResult},"%")
</if>
<if test="confirmStartTime!=null">
and
<![CDATA[
DATEDIFF(#{confirmStartTime},hd.confirm_time)<=0
]]>
</if>
<if test="confirmEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{confirmEndTime},hd.confirm_time) >=0
]]>
</if>

<if test="babyIds!=null">
and baby_id in (
<foreach item="babyId" collection="babyIds" separator="," >
#{babyId}
</foreach>
)
</if>

<if test="confirmResult != null and confirmResult != ''">
and confirm_result like concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>

<if test="confirmResults!=null">
and (
<foreach item="cfrs" collection="confirmResults" separator=" or ">
confirm_result like concat("%",#{cfrs,jdbcType=VARCHAR},"%")
</foreach>
)
</if>
</where>
group by baby_id
)a
</select>


<select id="getHdAndScreen" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select hd.id,hd.baby_id,hd.diagnose_time,diagnose_time,hd.high_factor,hd.confirm_result,hd.diagn_doctor_id,diagn_result,isconfirm,diagn_hand_sugge
from baby_patient_extend_ear_hearing_diagnose hd
<where>
1=1
and ifdel = 0
<if test="diagnoseStartTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnoseStartTime},hd.diagnose_time) <=0
]]>
</if>
<if test="diagnoseEndTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnoseEndTime},hd.diagnose_time) >=0
]]>
</if>
<if test="diagnDoctorId!=null">
and
hd.diagn_doctor_id = #{diagnDoctorId}
</if>
<if test="diagnNextStartTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnNextStartTime},hd.diagn_next_time)<=0
]]>
</if>
<if test="diagnNextEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnNextEndTime},hd.diagn_next_time) >=0
]]>
</if>
<if test="isconfirm!=null">
AND
hd.isconfirm = #{isconfirm}
</if>
<if test="confirmResult!=null">
and
hd.confirm_result like concat("%",#{confirmResult},"%")
</if>
<if test="confirmStartTime!=null">
and
<![CDATA[
DATEDIFF(#{confirmStartTime},hd.confirm_time)<=0
]]>
</if>
<if test="confirmEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{confirmEndTime},hd.confirm_time) >=0
]]>
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId,jdbcType=VARCHAR}
</if>

<if test="pids != null">
and pid in
<foreach item="item" index="index" collection="pids" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="babyIds!=null">
and baby_id in (
<foreach item="babyId" collection="babyIds" separator="," >
#{babyId}
</foreach>
)
</if>

<if test="confirmResult != null and confirmResult != ''">
and confirm_result like concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>

<if test="confirmResults!=null">
and (
<foreach item="cfrs" collection="confirmResults" separator=" or ">
confirm_result like concat("%",#{cfrs,jdbcType=VARCHAR},"%")
</foreach>
)
</if>
</where>
<include refid="orderAndLimit"/>
</select>

</mapper>