Kaynağa Gözat

fix(检测看板):检测报告数量修正,排除状态为已取消的数据

ZZJ 1 yıl önce
ebeveyn
işleme
c3b75a3e70
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/views/system/jbdHome/board/checkBoard.vue

+ 1 - 1
src/views/system/jbdHome/board/checkBoard.vue

@@ -155,7 +155,7 @@
                 (select count(create_time_ like '${this.today}' or null) as today, count(create_time_ between '${week.start}' and '${week.end}' or null) as week, count(create_time_ between '${quarter.start}' and '${quarter.end}' or null) as quarter from t_lhwtsqb) wt2,
                 (select count(id_) as total, count(zhuang_tai_ = '已完成' or null) as finished from t_lhjczb where create_time_ LIKE '${this.month}%') jc,
                 (select count(id_) as task, count(zhuang_tai_ = '已完成' or null) as finished from t_lhrwfpb where create_time_ LIKE '${this.month}%') rw,
-                (select count(id_) as report, count(zhuang_tai_ = '报告待审核' or null) as process, count(zhuang_tai_ = '报告待审批' or null) as approval, count(zhuang_tai_ = '已完成' or zhuang_tai_ = '待发放' or null) as finished from t_lhjcbgb where create_time_ LIKE '${this.month}%') bg`
+                (select count(case when zhuang_tai_ != '已取消' then id_ end ) as report, count(zhuang_tai_ = '待审核' or null) as process, count(zhuang_tai_ = '待审批' or null) as approval, count(zhuang_tai_ = '已完成' or zhuang_tai_ = '待发放' or null) as finished from t_lhjcbgb where create_time_ LIKE '${this.month}%') bg`
                 // console.log(sql)
                 curdPost('sql', sql).then(res => {
                     const data = res.variables.data