| | |
| | | and jpp.ethnicity != 1 |
| | | </if> |
| | | <if test="placePractitioner.type == 3"> |
| | | and (((YEAR(CURDATE()) - YEAR(jpp.birthday)) < 18) or ( jpp.ethnicity != 1)) |
| | | and (CURDATE() < DATE_ADD( birthday, INTERVAL 18 YEAR ) or ( jpp.ethnicity != 1)) |
| | | and jc.category_no in (180202,180201) |
| | | </if> |
| | | and jpp.is_deleted = 0 |
| | |
| | | jczz_place_practitioner |
| | | <where> |
| | | <if test="type == 1"> |
| | | and (YEAR(CURDATE()) - YEAR(birthday)) < 18 |
| | | and CURDATE() < DATE_ADD( birthday, INTERVAL 18 YEAR ) |
| | | </if> |
| | | <if test="type == 2"> |
| | | and ethnicity != 1 |