Explorar el Código

新增权限区分

zhaozhiqiang %!s(int64=4) %!d(string=hace) años
padre
commit
4adcc199fc
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      RMYY_CallCenter_Api/Controllers/WorepairController.cs

+ 12 - 2
RMYY_CallCenter_Api/Controllers/WorepairController.cs

@@ -6,6 +6,7 @@ using System;
6 6
 using System.Collections.Generic;
7 7
 using System.Data;
8 8
 using System.IO;
9
+using System.Linq;
9 10
 using System.Web;
10 11
 using System.Web.Mvc;
11 12
 
@@ -13,6 +14,7 @@ namespace RMYY_CallCenter_Api.Controllers
13 14
 {
14 15
     public class WorepairController : BaseController
15 16
     {
17
+        private Bll.T_Sys_UserAccount userbll = new Bll.T_Sys_UserAccount();
16 18
         /// <summary>
17 19
         /// 报修工单
18 20
         /// </summary>
@@ -716,8 +718,9 @@ namespace RMYY_CallCenter_Api.Controllers
716 718
         /// 分页获取数据信息
717 719
         /// </summary>
718 720
         /// <returns></returns>
719
-        public ActionResult GetListRepairlist(string T_Worepairman,string T_Worepairmanphone,int state,string stime,string etime,int T_Wowocodetype=0,int T_Worepairdeptid=0,   int pageindex=1, int pagesise=10)
721
+        public ActionResult GetListRepairlist(string T_Worepairman,string T_Worepairmanphone,int state,string stime,string etime,string createusercode,string tousercode ,int T_Wowocodetype=0,int T_Worepairdeptid=0,   int pageindex=1, int pagesise=10)
720 722
         {
723
+            
721 724
             DataTable date = new DataTable();
722 725
             string where = "";
723 726
             int recordCount = 0;
@@ -741,7 +744,14 @@ namespace RMYY_CallCenter_Api.Controllers
741 744
             {
742 745
                 where += " and T_Wowocodestate =" + state;
743 746
             }
744
-            
747
+            if (!string.IsNullOrWhiteSpace(createusercode))
748
+            {
749
+                where += " and T_Worepairman='" + createusercode + "'";
750
+            }
751
+            if (!string.IsNullOrWhiteSpace(tousercode))
752
+            {
753
+                where += " and T_Wotousercode='" + tousercode + "'";
754
+            }
745 755
             if (!string.IsNullOrEmpty(stime)&& !string.IsNullOrEmpty(etime))
746 756
             {
747 757
                 stime += " 00:00:00";