| | |
| | | <if test="residen.minors!=null and residen.minors ==1"> |
| | | and TIMESTAMPDIFF(year, substring(jtrpa.id_card, 7, 8), now()) >= 18 |
| | | </if> |
| | | <if test="residen.communityCode != null and residen.communityCode != ''"> and jg.community_code = #{residen.communityCode}</if> |
| | | |
| | | <if test="residen.id != null ">and jtrpa.id = #{residen.id}</if> |
| | | <if test="residen.name != null and residen.name != ''">and jtrpa.name like CONCAT('%',#{residen.name},'%')</if> |
| | | <if test="residen.phone != null and residen.phone != ''">and jtrpa.phone like CONCAT('%',#{residen.phone},'%')</if> |
| | |
| | | |
| | | </if> |
| | | </if> |
| | | order by jtrpa.create_time desc |
| | | </where> |
| | | order by jtrpa.create_time desc |
| | | </select> |
| | | |
| | | |
| | |
| | | <where> |
| | | and jtrpa.is_deleted = 0 |
| | | <if test="neiCode != null and neiCode != ''"> and jg.community_code = #{neiCode}</if> |
| | | <if test="status != null and status != ''"> and jtrpa.confirm_flag = #{status}</if> |
| | | |
| | | <if test="isAdministrator==2"> |
| | | <!-- <if test="residen.roleType ==null ">--> |