haogh 8 months ago
parent
commit
4e035d06c8
1 changed files with 9 additions and 7 deletions
  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>