|
|
@@ -38,9 +38,9 @@ namespace CallCenterApi.DAL
|
|
38
|
38
|
{
|
|
39
|
39
|
StringBuilder strSql = new StringBuilder();
|
|
40
|
40
|
strSql.Append("insert into T_Bus_Feedback_Next(");
|
|
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_AuditPost,F_AuditContact)");
|
|
|
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_AuditPost,F_AuditContact,F_FeedbackReason)");
|
|
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_AuditPost,@F_AuditContact)");
|
|
|
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_AuditPost,@F_AuditContact,@F_FeedbackReason)");
|
|
44
|
44
|
strSql.Append(";select @@IDENTITY");
|
|
45
|
45
|
SqlParameter[] parameters = {
|
|
46
|
46
|
new SqlParameter("@F_AssignedId", SqlDbType.Int,4),
|
|
|
@@ -73,7 +73,10 @@ namespace CallCenterApi.DAL
|
|
73
|
73
|
new SqlParameter("@F_AuditPost", SqlDbType.NVarChar,100),
|
|
74
|
74
|
new SqlParameter("@F_AuditContact", SqlDbType.NVarChar,100),
|
|
75
|
75
|
|
|
76
|
|
- new SqlParameter("@F_Situation", SqlDbType.NVarChar)
|
|
|
76
|
+ new SqlParameter("@F_Situation", SqlDbType.NVarChar),
|
|
|
77
|
+ new SqlParameter("@F_FeedbackReason", SqlDbType.NVarChar,500),
|
|
|
78
|
+
|
|
|
79
|
+
|
|
77
|
80
|
};
|
|
78
|
81
|
parameters[0].Value = model.F_AssignedId;
|
|
79
|
82
|
parameters[1].Value = model.F_WorkOrderId;
|
|
|
@@ -105,8 +108,8 @@ namespace CallCenterApi.DAL
|
|
105
|
108
|
parameters[27].Value = model.F_AuditPost;
|
|
106
|
109
|
parameters[28].Value = model.F_AuditContact;
|
|
107
|
110
|
|
|
108
|
|
- parameters[29].Value = model.F_Situation;
|
|
109
|
|
-
|
|
|
111
|
+ parameters[29].Value = model.F_Situation;
|
|
|
112
|
+ parameters[30].Value = model.F_FeedbackReason;
|
|
110
|
113
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
|
|
111
|
114
|
if (obj == null)
|
|
112
|
115
|
{
|
|
|
@@ -154,7 +157,10 @@ namespace CallCenterApi.DAL
|
|
154
|
157
|
strSql.Append("F_AuditPost=@F_AuditPost,");
|
|
155
|
158
|
strSql.Append("F_AuditContact=@F_AuditContact,");
|
|
156
|
159
|
|
|
157
|
|
- strSql.Append("F_Situation=@F_Situation");
|
|
|
160
|
+ strSql.Append("F_Situation=@F_Situation,");
|
|
|
161
|
+ strSql.Append("F_FeedbackReason=@F_FeedbackReason");
|
|
|
162
|
+
|
|
|
163
|
+
|
|
158
|
164
|
strSql.Append(" where F_Id=@F_Id");
|
|
159
|
165
|
SqlParameter[] parameters = {
|
|
160
|
166
|
new SqlParameter("@F_AssignedId", SqlDbType.Int,4),
|
|
|
@@ -188,6 +194,10 @@ namespace CallCenterApi.DAL
|
|
188
|
194
|
new SqlParameter("@F_AuditContact", SqlDbType.NVarChar,100),
|
|
189
|
195
|
|
|
190
|
196
|
new SqlParameter("@F_Situation", SqlDbType.NVarChar),
|
|
|
197
|
+ new SqlParameter("@F_FeedbackReason", SqlDbType.NVarChar,500),
|
|
|
198
|
+
|
|
|
199
|
+
|
|
|
200
|
+
|
|
191
|
201
|
new SqlParameter("@F_Id", SqlDbType.Int,4)};
|
|
192
|
202
|
parameters[0].Value = model.F_AssignedId;
|
|
193
|
203
|
parameters[1].Value = model.F_WorkOrderId;
|
|
|
@@ -219,9 +229,11 @@ namespace CallCenterApi.DAL
|
|
219
|
229
|
parameters[27].Value = model.F_AuditPost;
|
|
220
|
230
|
parameters[28].Value = model.F_AuditContact;
|
|
221
|
231
|
|
|
222
|
|
- parameters[29].Value = model.F_Situation;
|
|
223
|
|
- parameters[30].Value = model.F_Id;
|
|
|
232
|
+ parameters[29].Value = model.F_Situation;
|
|
224
|
233
|
|
|
|
234
|
+
|
|
|
235
|
+ parameters[30].Value = model.F_FeedbackReason;
|
|
|
236
|
+ parameters[31].Value = model.F_Id;
|
|
225
|
237
|
int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
|
|
226
|
238
|
if (rows > 0)
|
|
227
|
239
|
{
|