| | |
| | | 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, |
| | |
| | | <if test="placePractitioner.ethnicity != null ">and jpp.ethnicity = #{placePractitioner.ethnicity}</if> |
| | | |
| | | <if test="placePractitioner.type == 1"> |
| | | and (YEAR(CURDATE()) - YEAR(jpp.birthday)) < 18 |
| | | and (CURDATE() < DATE_ADD( jpp.birthday, INTERVAL 18 YEAR ) |
| | | and jc.category_no in (180202,180201) |
| | | </if> |
| | | <if test="placePractitioner.type == 2"> |