duhongyu 4 lat temu
rodzic
commit
51ea20e6d8

+ 1 - 0
CallCenterApi/CallCenterApi.BLL/T_Wiki_Functions.cs

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
+using System.Data;
3
 using System.Linq;
4
 using System.Linq;
4
 using System.Text;
5
 using System.Text;
5
 using System.Threading.Tasks;
6
 using System.Threading.Tasks;

Plik diff jest za duży
+ 9 - 45
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/FunctionsController.cs


Plik diff jest za duży
+ 6 - 42
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/HotspotGlossaryController.cs


Plik diff jest za duży
+ 6 - 42
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/LawGuideController.cs


Plik diff jest za duży
+ 5 - 41
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/NounInterpretationController.cs


Plik diff jest za duży
+ 6 - 43
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/PolicyController.cs


+ 9 - 4
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/ProfessorController.cs

69
             {
69
             {
70
                 sql += " and (F_XingMing like '%" + keyvalue + "%' or F_ShouJi like '%" + keyvalue + "%' )";
70
                 sql += " and (F_XingMing like '%" + keyvalue + "%' or F_ShouJi like '%" + keyvalue + "%' )";
71
             }
71
             }
72
-
73
-            string cols = "*";
72
+ 
73
+         
74
 
74
 
75
             if (isdc > 0)
75
             if (isdc > 0)
76
             {
76
             {
77
+                string cols = "(case when a.F_Id <100 then RIGHT ('00'+CONVERT (varchar(10),a.F_Id),3)   else  CONVERT(varchar(10), a.F_Id) end) as 序号,F_HangYe as 所属行业 ,F_DanWei as 专家单位,F_XingMing as 专家姓名,F_KeShi as 科室,zhiwu as 职务,F_ShouJi as 手机号码,F_DianHua as 办公电话,F_FaBuShiJian as 发布日期,F_FaBuRen as 发布人,F_FaBuDanWei as 上报单位,F_BiaoShiBianMa as 标识编码";
77
                 var dtdc = DbHelperSQL.Query(" select " + cols + " from T_Wiki_Professor with(nolock) where 1=1 " + sql).Tables[0];
78
                 var dtdc = DbHelperSQL.Query(" select " + cols + " from T_Wiki_Professor with(nolock) where 1=1 " + sql).Tables[0];
78
                 var msg = new NPOIHelper().ExportToExcel("政策专家", dtdc);
79
                 var msg = new NPOIHelper().ExportToExcel("政策专家", dtdc);
79
                 if (msg == "")
80
                 if (msg == "")
90
             dt = BLL.PagerBLL.GetListPager(
91
             dt = BLL.PagerBLL.GetListPager(
91
                 "T_Wiki_Professor with(nolock)",
92
                 "T_Wiki_Professor with(nolock)",
92
                 "F_Id",
93
                 "F_Id",
93
-                cols,
94
+                "*",
94
                 sql,
95
                 sql,
95
                 "ORDER BY F_DianJiLiang,F_CreateTime DESC",
96
                 "ORDER BY F_DianJiLiang,F_CreateTime DESC",
96
                 pagesize,
97
                 pagesize,
162
                 }
163
                 }
163
                 else
164
                 else
164
                 {
165
                 {
166
+                   
165
                     dModel.F_XingMing = xingming;
167
                     dModel.F_XingMing = xingming;
166
                     dModel.F_DanWei = danwei;
168
                     dModel.F_DanWei = danwei;
167
                     dModel.F_KeShi = keshi;
169
                     dModel.F_KeShi = keshi;
184
 
186
 
185
                     dModel.F_FaBuRen = User .F_UserName ;
187
                     dModel.F_FaBuRen = User .F_UserName ;
186
                     dModel.F_FaBuDanWei = fabudanwei;
188
                     dModel.F_FaBuDanWei = fabudanwei;
187
-                    dModel.F_BiaoShiBianMa = biaoshibianma;
189
+              
188
                     dModel.F_TouXiang = touxiang;
190
                     dModel.F_TouXiang = touxiang;
189
                     dModel.F_ZhuanYeLingYuJianJie = zhuanyelingyujianjie;
191
                     dModel.F_ZhuanYeLingYuJianJie = zhuanyelingyujianjie;
190
                     dModel.F_DianJiLiang = 0;
192
                     dModel.F_DianJiLiang = 0;
193
                     dModel.F_CreateTime = DateTime.Now;
195
                     dModel.F_CreateTime = DateTime.Now;
194
                     int n = new BLL.T_Wiki_Professor().Add(dModel);
196
                     int n = new BLL.T_Wiki_Professor().Add(dModel);
195
                     if (n > 0)
197
                     if (n > 0)
198
+                    {
199
+                        DB.DbHelperSQL.ExecuteSql("update T_Wiki_Professor  set F_BiaoShiBianMa  =right('00000'+'" + User.F_DeptId + "'  ,5)+right('0000000'+'" + n + "'  ,8) where F_Id=" + n);
196
                         return Success("添加成功", n);
200
                         return Success("添加成功", n);
201
+                    }
197
                     else
202
                     else
198
                         return Error("添加失败");
203
                         return Error("添加失败");
199
                 }
204
                 }