Pārlūkot izejas kodu

班管家 2021-12-3 11:19

sjw 4 gadi atpakaļ
vecāks
revīzija
efaddc3fce

+ 5 - 2
src/rest/openapi/restcontroller/housekeeper/workorder/SQL/服务预约单统计.sql

@@ -1,6 +1,8 @@
-DECLARE @siteid nvarchar(20)=$siteid$,@fagentnum nvarchar(20)=$fagentnum$,@allcount int=0,@pending int =0,@processing int =0,@closed int=0
+DECLARE @siteid nvarchar(20)=$siteid$,@fagentnum nvarchar(20)=$fagentnum$,@allcount int=0,@pending int =0,@processing int =0,@closed int=0,@created int =0
 select @allcount=isnull(sum(1),0) from Serviceform t
 where t.siteid=@siteid and t.fagentnum=@fagentnum
+select @created=isnull(sum(1),0) from Serviceform t
+where t.siteid=@siteid and t.fstatus='´ýÖ¸ÅÉ' and t.fagentnum=@fagentnum
 select @pending=isnull(sum(1),0) from Serviceform t
 where t.siteid=@siteid and t.fstatus='´ý´¦Àí' and t.fagentnum=@fagentnum
 select @processing=isnull(sum(1),0) from Serviceform t
@@ -8,4 +10,5 @@ where t.siteid=@siteid and t.fstatus='
 select @closed=isnull(sum(1),0) from Serviceform t
 where t.siteid=@siteid and t.fstatus='ÒÑÍê³É' and t.fagentnum=@fagentnum
 
-select @allcount allcount,@pending pending,@processing processing,@closed closed
+select @allcount allcount,@created created,@pending pending,@processing processing,@closed closed
+

+ 26 - 0
src/rest/openapi/restcontroller/housekeeper/workorder/Serviceform.java

@@ -379,5 +379,31 @@ public class Serviceform extends Controller {
         return getReturnObject_suc(rows,false).toString();
     }
 
+    /**服务预约单状态**/
+    public String getServiceformType(){
+        Rows rows=new Rows();
+        Row row=new Row();
+        row.put("label","全部");
+        row.put("value","");
+        Row row2=new Row();
+        row2.put("label","待指派");
+        row2.put("value","待指派");
+        Row row3=new Row();
+        row3.put("label","待处理");
+        row3.put("value","待处理");
+        Row row4=new Row();
+        row4.put("label","进行中");
+        row4.put("value","进行中");
+        Row row5=new Row();
+        row5.put("label","已完成");
+        row5.put("value","已完成");
+        rows.add(row);
+        rows.add(row2);
+        rows.add(row3);
+        rows.add(row4);
+        rows.add(row5);
+        return getReturnObject_suc(rows,true).toString();
+    }
+
 
 }