haogh 8 месяцев назад
Родитель
Сommit
4e035d06c8
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      src/main/resources/mapper/AsyncTaskMapper.xml

+ 9 - 7
src/main/resources/mapper/AsyncTaskMapper.xml

@@ -11,14 +11,16 @@
         t.result,
         t.summary,
         t.import_file_path importFilePath,
-        t.export_file_path exportFilePath
+        t.export_file_path exportFilePath,
+        concat( u.NAME, '(', u.login_name, ')' ) operator
         FROM
-        t_async_task t
-        <where>
-            <if test="req.operateId != null">
-                and t.operate_id=#{req.operateId}
-            </if>
-        </where>
+        t_async_task t,
+        t_user u
+        WHERE
+        t.operate_id = u.id
+        <if test="req.operateId != null">
+            and t.operate_id=#{req.operateId}
+        </if>
         order by t.update_time desc
     </select>