| | |
| | | role.`ID` AS ROLE_ID, role.`CODE` AS ROLE_CODE, role.`NAME` AS ROLE_NAME, |
| | | create_user.ID CREATE_USER_ID, create_user.`USERNAME` CREATE_USER_NAME, |
| | | update_user.ID UPDETE_USER_ID, update_user.`USERNAME` UPDATE_USER_NAME |
| | | FROM SYSTEM_DATA_PERMISSION sdp |
| | | INNER JOIN `SYSTEM_ROLE` role ON role.ID = sdp.ROLE_ID |
| | | LEFT JOIN `SYSTEM_USER` create_user ON create_user.ID = sdp.CREATE_USER |
| | | LEFT JOIN `SYSTEM_USER` update_user ON update_user.ID = sdp.UPDATE_USER |
| | | FROM system_data_permission sdp |
| | | INNER JOIN `system_role` role ON role.ID = sdp.ROLE_ID |
| | | LEFT JOIN `system_user` create_user ON create_user.ID = sdp.CREATE_USER |
| | | LEFT JOIN `system_user` update_user ON update_user.ID = sdp.UPDATE_USER |
| | | <where> |
| | | sdp.DELETED = 0 |
| | | <if test="dto.businessCode != null and dto.businessCode != ''"> |