zhongrj
2024-04-02 566e7986291e73051d30ee252b0ebf852b1577a7
src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml
@@ -72,15 +72,15 @@
            <if test="placePractitioner.type == 1">
                and TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18
                and jc.category_no in (180202,180201)
                and jc.category_no in (180202,180201,180200)
            </if>
            <if test="placePractitioner.type == 2">
                and jpp.ethnicity != 1
                and jc.category_no in (180202,180201)
                and jc.category_no in (180202,180201,180200)
            </if>
            <if test="placePractitioner.type == 3">
                and (TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18  or jpp.ethnicity != 1)
                and jc.category_no in (180202,180201)
                and jc.category_no in (180202,180201,180200)
            </if>
            and jpp.is_deleted = 0
            order by jpp.id desc
@@ -142,11 +142,11 @@
        <where>
            <if test="placePractitioner.type == 1">
                and TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18
                and jc.category_no in (180202,180201)
                and jc.category_no in (180202,180201,180200)
            </if>
            <if test="placePractitioner.type == 2">
                and jpp.ethnicity != 1
                and jc.category_no in (180202,180201)
                and jc.category_no in (180202,180201,180200)
            </if>
            <if test="placePractitioner.id != null ">and jpp.id = #{placePractitioner.id}</if>
            <if test="placePractitioner.placeId != null ">and jpp.place_id = #{placePractitioner.placeId}</if>