| | |
| | | ceae.sex, |
| | | ceae.birthday, |
| | | ceae.personnel_category, |
| | | ceae.address, |
| | | cear.address, |
| | | ceae.is_alive, |
| | | cear.auth_method, |
| | | cear.auth_period, |
| | |
| | | ceae.sex, |
| | | ceae.birthday, |
| | | ceae.personnel_category, |
| | | ceae.address, |
| | | cear.address, |
| | | ceae.is_alive, |
| | | cear.auth_method, |
| | | cear.auth_period, |
| | |
| | | WHEN 3 THEN |
| | | '100周岁(含)以上' |
| | | END personnelCategory, |
| | | ceae.address, |
| | | cear.address, |
| | | CASE |
| | | ceae.is_alive |
| | | WHEN 1 THEN |
| | |
| | | WHEN 3 THEN |
| | | '100周岁(含)以上' |
| | | END personnelCategory, |
| | | ceae.address, |
| | | cear.address, |
| | | CASE |
| | | ceae.is_alive |
| | | WHEN 1 THEN |
| | |
| | | com_elders_auth_history_record ceahr |
| | | LEFT JOIN com_elder_auth_elderlies ceae ON ceahr.elderlies_id = ceae.id |
| | | LEFT JOIN sys_user su ON ceahr.submit_user_id = su.user_id |
| | | LEFT JOIN com_elder_auth_records as cear on cear.id = ceahr.auth_id |
| | | WHERE |
| | | ceahr.community_id = #{pageElderAuthRecordsDTO.communityId} |
| | | <if test="pageElderAuthRecordsDTO.authPeriod != null and pageElderAuthRecordsDTO.authPeriod !=''"> |
| | |
| | | </select> |
| | | |
| | | <select id="getNextIds" resultType="String"> |
| | | select id from com_elder_auth_records where approval_status = 1 and community_id = #{communityId} and id != #{authRecordId} |
| | | select id from com_elder_auth_records where approval_status = 1 and community_id = #{communityId} |
| | | </select> |
| | | |
| | | <select id="queryRecordWithPage" resultType="com.panzhihua.common.model.vos.community.IdentityAuthRecordDetailVO"> |