| | |
| | | select system_file_name |
| | | from cnas_person_post_authorization_record |
| | | where user_id = #{userId} |
| | | and system_file_name is not null |
| | | and system_file_name != '' |
| | | order by create_time desc |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="selectLatestAuthorization" resultType="com.ruoyi.process.pojo.ProcessMethodVerifyWorkFile"> |
| | | select p.system_file_name as file_url, |
| | | u.id as user_id, |
| | | u.name as user_name |
| | | from cnas_person_post_authorization_record p |
| | | join user u on u.id = p.user_id |
| | | where p.user_id = #{userId} |
| | | order by p.create_time desc, p.id desc |
| | | limit 1 |
| | | </select> |
| | | </mapper> |