|
|
@@ -38,9 +38,9 @@ namespace CallCenterApi.DAL
|
|
38
|
38
|
{
|
|
39
|
39
|
StringBuilder strSql = new StringBuilder();
|
|
40
|
40
|
strSql.Append("insert into T_Bus_Feedback(");
|
|
41
|
|
- strSql.Append("F_AssignedId,F_WorkOrderId,F_Result,F_CreateTime,F_CreateUser,F_CreateDeptId,F_IsFeedEnd,F_File,F_Type,F_State,F_IsAudit,F_AuditUser,F_AuditTime,F_IsDelete,F_DeleteUser,F_DeleteTime,F_DealUser,F_AuditReason,F_IsProResult,F_ProSituation,F_IsProtect,F_DealUserContact,F_ConnectTime,F_ConnectMode,F_ReplyContent,F_IsSatisfied,F_Duties,F_Situation,F_Unsuccessful)");
|
|
|
41
|
+ strSql.Append("F_AssignedId,F_WorkOrderId,F_Result,F_CreateTime,F_CreateUser,F_CreateDeptId,F_IsFeedEnd,F_File,F_Type,F_State,F_IsAudit,F_AuditUser,F_AuditTime,F_IsDelete,F_DeleteUser,F_DeleteTime,F_DealUser,F_AuditReason,F_IsProResult,F_ProSituation,F_IsProtect,F_DealUserContact,F_ConnectTime,F_ConnectMode,F_ReplyContent,F_IsSatisfied,F_Duties,F_Situation,F_Unsuccessful,F_AuditPost)");
|
|
42
|
42
|
strSql.Append(" values (");
|
|
43
|
|
- strSql.Append("@F_AssignedId,@F_WorkOrderId,@F_Result,@F_CreateTime,@F_CreateUser,@F_CreateDeptId,@F_IsFeedEnd,@F_File,@F_Type,@F_State,@F_IsAudit,@F_AuditUser,@F_AuditTime,@F_IsDelete,@F_DeleteUser,@F_DeleteTime,@F_DealUser,@F_AuditReason,@F_IsProResult,@F_ProSituation,@F_IsProtect,@F_DealUserContact,@F_ConnectTime,@F_ConnectMode,@F_ReplyContent,@F_IsSatisfied,@F_Duties,@F_Situation,@F_Unsuccessful)");
|
|
|
43
|
+ strSql.Append("@F_AssignedId,@F_WorkOrderId,@F_Result,@F_CreateTime,@F_CreateUser,@F_CreateDeptId,@F_IsFeedEnd,@F_File,@F_Type,@F_State,@F_IsAudit,@F_AuditUser,@F_AuditTime,@F_IsDelete,@F_DeleteUser,@F_DeleteTime,@F_DealUser,@F_AuditReason,@F_IsProResult,@F_ProSituation,@F_IsProtect,@F_DealUserContact,@F_ConnectTime,@F_ConnectMode,@F_ReplyContent,@F_IsSatisfied,@F_Duties,@F_Situation,@F_Unsuccessful,@F_AuditPost)");
|
|
44
|
44
|
strSql.Append(";select @@IDENTITY");
|
|
45
|
45
|
SqlParameter[] parameters = {
|
|
46
|
46
|
new SqlParameter("@F_AssignedId", SqlDbType.Int,4),
|
|
|
@@ -71,6 +71,8 @@ namespace CallCenterApi.DAL
|
|
71
|
71
|
new SqlParameter("@F_IsSatisfied", SqlDbType.Int,4),
|
|
72
|
72
|
new SqlParameter("@F_Duties", SqlDbType.NVarChar,200),
|
|
73
|
73
|
new SqlParameter("@F_Unsuccessful", SqlDbType.NVarChar,-1),
|
|
|
74
|
+ new SqlParameter("@F_AuditPost", SqlDbType.NVarChar,100),
|
|
|
75
|
+
|
|
74
|
76
|
new SqlParameter("@F_Situation", SqlDbType.NVarChar)
|
|
75
|
77
|
};
|
|
76
|
78
|
parameters[0].Value = model.F_AssignedId;
|
|
|
@@ -101,7 +103,8 @@ namespace CallCenterApi.DAL
|
|
101
|
103
|
parameters[25].Value = model.F_IsSatisfied;
|
|
102
|
104
|
parameters[26].Value = model.F_Duties;
|
|
103
|
105
|
parameters[27].Value = model.F_Unsuccessful;
|
|
104
|
|
- parameters[28].Value = model.F_Situation;
|
|
|
106
|
+ parameters[28].Value = model.F_AuditPost;
|
|
|
107
|
+ parameters[29].Value = model.F_Situation;
|
|
105
|
108
|
|
|
106
|
109
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
|
|
107
|
110
|
if (obj == null)
|
|
|
@@ -149,6 +152,7 @@ namespace CallCenterApi.DAL
|
|
149
|
152
|
strSql.Append("F_Duties=@F_Duties,");
|
|
150
|
153
|
strSql.Append("F_Unsuccessful=@F_Unsuccessful,");
|
|
151
|
154
|
strSql.Append("F_Files=@F_Files,");
|
|
|
155
|
+ strSql.Append("F_AuditPost=@F_AuditPost,");
|
|
152
|
156
|
|
|
153
|
157
|
strSql.Append("F_Situation=@F_Situation");
|
|
154
|
158
|
strSql.Append(" where F_Id=@F_Id");
|
|
|
@@ -182,6 +186,7 @@ namespace CallCenterApi.DAL
|
|
182
|
186
|
new SqlParameter("@F_Duties", SqlDbType.NVarChar,200),
|
|
183
|
187
|
new SqlParameter("@F_Unsuccessful", SqlDbType.NVarChar,-1),
|
|
184
|
188
|
new SqlParameter("@F_Files", SqlDbType.VarChar,500),
|
|
|
189
|
+ new SqlParameter("@F_AuditPost", SqlDbType.VarChar,100),
|
|
185
|
190
|
|
|
186
|
191
|
new SqlParameter("@F_Situation", SqlDbType.NVarChar),
|
|
187
|
192
|
new SqlParameter("@F_Id", SqlDbType.Int,4)};
|
|
|
@@ -214,8 +219,10 @@ namespace CallCenterApi.DAL
|
|
214
|
219
|
parameters[26].Value = model.F_Duties;
|
|
215
|
220
|
parameters[27].Value = model.F_Unsuccessful;
|
|
216
|
221
|
parameters[28].Value = model.F_Files;
|
|
217
|
|
- parameters[29].Value = model.F_Situation;
|
|
218
|
|
- parameters[30].Value = model.F_Id;
|
|
|
222
|
+ parameters[29].Value = model.F_AuditPost;
|
|
|
223
|
+
|
|
|
224
|
+ parameters[30].Value = model.F_Situation;
|
|
|
225
|
+ parameters[31].Value = model.F_Id;
|
|
219
|
226
|
|
|
220
|
227
|
int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
|
|
221
|
228
|
if (rows > 0)
|
|
|
@@ -431,6 +438,10 @@ namespace CallCenterApi.DAL
|
|
431
|
438
|
{
|
|
432
|
439
|
model.F_Files = row["F_Files"].ToString();
|
|
433
|
440
|
}
|
|
|
441
|
+ if (row["F_AuditPost"] != null)
|
|
|
442
|
+ {
|
|
|
443
|
+ model.F_AuditPost = row["F_AuditPost"].ToString();
|
|
|
444
|
+ }
|
|
434
|
445
|
|
|
435
|
446
|
}
|
|
436
|
447
|
return model;
|