浏览代码

解决 Web端驾驶舱 查询介绍信失败的问题

zhulu 1 年之前
父节点
当前提交
bfe8147d9c
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      soc-modules/soc-modules-core/src/main/resources/mapper/board/CockpitMapper.xml

+ 4 - 4
soc-modules/soc-modules-core/src/main/resources/mapper/board/CockpitMapper.xml

@@ -189,11 +189,11 @@
     </select>
     <select id="currentMonthVisitInfo" resultType="com.xunmei.core.board.vo.web.VisitInfoVo">
         SELECT COUNT(*)        as total,
-               sum(l.type = 1) as electronicCount,
-               sum(l.type = 2) as paperCount,
-               sum(l.type = 3) as urgencyCount
+               sum(l.letter_type = 1) as electronicCount,
+               sum(l.letter_type = 2) as paperCount,
+               sum(l.letter_type = 3) as urgencyCount
         FROM core_out_in_record r
-                 INNER JOIN core_introduce_letter l ON r.letter_id = l.id
+                 INNER JOIN core_introduce_letter_out_in_request l ON r.out_in_request_id = l.id
                  INNER JOIN sys_org o ON r.org_id = o.id
         where arrival_time >= #{startDate}
           and o.path LIKE CONCAT(#{orgPath}, '%')