lin
2024-03-15 adda3ce6f8b337dd7c6f238716d37bd520b8e7eb
src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml
@@ -10,7 +10,7 @@
        jpp.name,
        jpp.telephone,
        jpp.temp_address,
        (YEAR(CURDATE()) - YEAR(jpp.birthday))age,
        TRUNCATE( DATEDIFF( CURDATE(), jpp.birthday )/ 365.2422,0 ) age,
        jpp.gender,
        jpp.id_card,
        jpp.card_type,
@@ -75,7 +75,7 @@
            <if test="placePractitioner.ethnicity != null ">and jpp.ethnicity = #{placePractitioner.ethnicity}</if>
            <if test="placePractitioner.type == 1">
                and (YEAR(CURDATE()) - YEAR(jpp.birthday)) &lt; 18
                and (CURDATE() &lt; DATE_ADD( jpp.birthday, INTERVAL 18 YEAR )
                and jc.category_no in (180202,180201)
            </if>
            <if test="placePractitioner.type == 2">