|
|
@@ -135,7 +135,7 @@ namespace RMYY_CallCenter_Api.Controllers.System
|
|
135
|
135
|
/// <param name="sort"></param>
|
|
136
|
136
|
/// <returns></returns>
|
|
137
|
137
|
[HttpPost]
|
|
138
|
|
- public ActionResult Insert(int pid, string code, string name, int sort)
|
|
|
138
|
+ public ActionResult Insert(int pid, string code, string name, int sort,int hosid)
|
|
139
|
139
|
{
|
|
140
|
140
|
if (departmentBLL.Exists(code))
|
|
141
|
141
|
{
|
|
|
@@ -151,6 +151,7 @@ namespace RMYY_CallCenter_Api.Controllers.System
|
|
151
|
151
|
dModel.F_State = 1;
|
|
152
|
152
|
dModel.F_CreateTime = DateTime.Now;
|
|
153
|
153
|
dModel.F_CreateUser = User.F_UserCode;
|
|
|
154
|
+ dModel.T_Woid = hosid;
|
|
154
|
155
|
|
|
155
|
156
|
int n = departmentBLL.Add(dModel);
|
|
156
|
157
|
if (n > 0)
|
|
|
@@ -174,7 +175,7 @@ namespace RMYY_CallCenter_Api.Controllers.System
|
|
174
|
175
|
/// <param name="sort"></param>
|
|
175
|
176
|
/// <returns></returns>
|
|
176
|
177
|
[HttpPost]
|
|
177
|
|
- public ActionResult Update(int id, int pid, string code, string name, int sort)
|
|
|
178
|
+ public ActionResult Update(int id, int pid, string code, string name, int sort,int hosid)
|
|
178
|
179
|
{
|
|
179
|
180
|
Model.T_Sys_Department dModel = departmentBLL.GetModel(id);
|
|
180
|
181
|
if (dModel != null)
|
|
|
@@ -191,7 +192,8 @@ namespace RMYY_CallCenter_Api.Controllers.System
|
|
191
|
192
|
dModel.F_DeptCode = code;
|
|
192
|
193
|
dModel.F_DeptName = name;
|
|
193
|
194
|
dModel.F_State = 1;
|
|
194
|
|
-
|
|
|
195
|
+ dModel.T_Woid = hosid;
|
|
|
196
|
+
|
|
195
|
197
|
if (departmentBLL.Update(dModel))
|
|
196
|
198
|
{
|
|
197
|
199
|
return Success("修改成功");
|