diff --git a/src/main/java/com/huoran/iasf/mapper/xml/SysColumnMapper.xml b/src/main/java/com/huoran/iasf/mapper/xml/SysColumnMapper.xml index bed1a19..25ae6b0 100644 --- a/src/main/java/com/huoran/iasf/mapper/xml/SysColumnMapper.xml +++ b/src/main/java/com/huoran/iasf/mapper/xml/SysColumnMapper.xml @@ -33,8 +33,8 @@ - SELECT (SELECT u.username FROM sys_user u WHERE u.id = c.founder_id) AS founderName, - (SELECT u.username FROM sys_user u WHERE u.id = c.editor_id) AS editorName, + SELECT (SELECT u.real_name FROM sys_user u WHERE u.id = c.founder_id) AS founderName, + (SELECT u.real_name FROM sys_user u WHERE u.id = c.editor_id) AS editorName, c.* FROM sys_column c WHERE deleted = 1 @@ -93,8 +93,8 @@ --> SELECT c.*, (SELECT sys_column.column_name FROM sys_column WHERE sys_column.id = c.column_id) AS columnName, - (SELECT u.username FROM sys_user u WHERE u.id = c.founder_id) AS founderName, - (SELECT u.username FROM sys_user u WHERE u.id = c.editor_id) AS editorName, + (SELECT u.real_name FROM sys_user u WHERE u.id = c.founder_id) AS founderName, + (SELECT u.real_name FROM sys_user u WHERE u.id = c.editor_id) AS editorName, (SELECT type_id from sys_column WHERE sys_column.id = c.column_id) as typeId FROM sys_content c WHERE c.deleted = 1 and site_id = #{req.siteId} @@ -22,13 +22,13 @@ and title LIKE CONCAT('%',#{req.title},'%') - AND ( SELECT u.username FROM sys_user u WHERE u.id = c.founder_id ) LIKE + AND ( SELECT u.real_name FROM sys_user u WHERE u.id = c.founder_id ) LIKE CONCAT('%',#{req.founder},'%') - AND ( SELECT u.username FROM sys_user u WHERE u.id = c.editor_id ) LIKE CONCAT('%',#{req.editor},'%') + AND ( SELECT u.real_name FROM sys_user u WHERE u.id = c.editor_id ) LIKE CONCAT('%',#{req.editor},'%')