浏览代码

数据报表-经营利润中获取订单类型字段

lipf 2 月之前
父节点
当前提交
a59ef44a39
共有 1 个文件被更改,包括 8 次插入 和 0 次删除
  1. 8 0
      tenant/insurance/quotation-summary/src/main/resources/mapper/InsFeeAuditMapper.xml

+ 8 - 0
tenant/insurance/quotation-summary/src/main/resources/mapper/InsFeeAuditMapper.xml

@@ -343,6 +343,12 @@
             WHEN 2 THEN '审核驳回'
             ELSE ifa.audit_status
             END AS checkResult,
+            CASE io.entry_status
+            WHEN 1 THEN '车险出单'
+            WHEN 2 THEN '代客录单'
+            WHEN 3 THEN '补录订单'
+            ELSE ''
+            END AS order_type_name,
             ifa.audit_time - ifa.create_time  as checkDuration,
             ifa.audit_user as checkUserPhone
         from
@@ -351,6 +357,8 @@
         ifa.order_no = ioci.order_no
         and ifa.system_code = #{systemCode}
         and ifa.receive_user = #{userName}
+        left join ins_orders io on
+        io.id = ifa.order_no
         order by
         ifa.audit_time desc
     </select>