|
|
@@ -26,9 +26,9 @@ namespace CallCenterApi.DAL
|
|
26
|
26
|
{
|
|
27
|
27
|
StringBuilder strSql = new StringBuilder();
|
|
28
|
28
|
strSql.Append("insert into T_Call_OutAnswersWX(");
|
|
29
|
|
- strSql.Append("F_PagerID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByName,F_OptOn,F_Expand1,F_Expand2,F_Expand3)");
|
|
|
29
|
+ strSql.Append("F_PagerID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByOpenid,F_OptOn,F_Expand1,F_Expand2,F_Expand3)");
|
|
30
|
30
|
strSql.Append(" values (");
|
|
31
|
|
- strSql.Append("@F_PagerID,@F_QID,@F_QIID,@F_Answer,@F_CusTelID,@F_CusID,@F_OptBy,@F_OptByName,@F_OptOn,@F_Expand1,@F_Expand2,@F_Expand3)");
|
|
|
31
|
+ strSql.Append("@F_PagerID,@F_QID,@F_QIID,@F_Answer,@F_CusTelID,@F_CusID,@F_OptBy,@F_OptByOpenid,@F_OptOn,@F_Expand1,@F_Expand2,@F_Expand3)");
|
|
32
|
32
|
strSql.Append(";select @@IDENTITY");
|
|
33
|
33
|
SqlParameter[] parameters = {
|
|
34
|
34
|
new SqlParameter("@F_PagerID", SqlDbType.Int,4),
|
|
|
@@ -37,8 +37,8 @@ namespace CallCenterApi.DAL
|
|
37
|
37
|
new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
|
|
38
|
38
|
new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
|
|
39
|
39
|
new SqlParameter("@F_CusID", SqlDbType.Int,4),
|
|
40
|
|
- new SqlParameter("@F_OptBy", SqlDbType.Int,4),
|
|
41
|
|
- new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
|
|
|
40
|
+ new SqlParameter("@F_OptBy", SqlDbType.BigInt,8),
|
|
|
41
|
+ new SqlParameter("@F_OptByOpenid", SqlDbType.NVarChar,50),
|
|
42
|
42
|
new SqlParameter("@F_OptOn", SqlDbType.DateTime),
|
|
43
|
43
|
new SqlParameter("@F_Expand1", SqlDbType.NVarChar,500),
|
|
44
|
44
|
new SqlParameter("@F_Expand2", SqlDbType.NVarChar,500),
|
|
|
@@ -50,7 +50,7 @@ namespace CallCenterApi.DAL
|
|
50
|
50
|
parameters[4].Value = model.F_CusTelID;
|
|
51
|
51
|
parameters[5].Value = model.F_CusID;
|
|
52
|
52
|
parameters[6].Value = model.F_OptBy;
|
|
53
|
|
- parameters[7].Value = model.F_OptByName;
|
|
|
53
|
+ parameters[7].Value = model.F_OptByOpenid;
|
|
54
|
54
|
parameters[8].Value = model.F_OptOn;
|
|
55
|
55
|
parameters[9].Value = model.F_Expand1;
|
|
56
|
56
|
parameters[10].Value = model.F_Expand2;
|
|
|
@@ -80,7 +80,7 @@ namespace CallCenterApi.DAL
|
|
80
|
80
|
strSql.Append("F_CusTelID=@F_CusTelID,");
|
|
81
|
81
|
strSql.Append("F_CusID=@F_CusID,");
|
|
82
|
82
|
strSql.Append("F_OptBy=@F_OptBy,");
|
|
83
|
|
- strSql.Append("F_OptByName=@F_OptByName,");
|
|
|
83
|
+ strSql.Append("F_OptByOpenid=@F_OptByOpenid,");
|
|
84
|
84
|
strSql.Append("F_OptOn=@F_OptOn,");
|
|
85
|
85
|
strSql.Append("F_Expand1=@F_Expand1,");
|
|
86
|
86
|
strSql.Append("F_Expand2=@F_Expand2,");
|
|
|
@@ -93,8 +93,8 @@ namespace CallCenterApi.DAL
|
|
93
|
93
|
new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
|
|
94
|
94
|
new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
|
|
95
|
95
|
new SqlParameter("@F_CusID", SqlDbType.Int,4),
|
|
96
|
|
- new SqlParameter("@F_OptBy", SqlDbType.Int,4),
|
|
97
|
|
- new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
|
|
|
96
|
+ new SqlParameter("@F_OptBy", SqlDbType.BigInt,8),
|
|
|
97
|
+ new SqlParameter("@F_OptByOpenid", SqlDbType.NVarChar,50),
|
|
98
|
98
|
new SqlParameter("@F_OptOn", SqlDbType.DateTime),
|
|
99
|
99
|
new SqlParameter("@F_Expand1", SqlDbType.NVarChar,500),
|
|
100
|
100
|
new SqlParameter("@F_Expand2", SqlDbType.NVarChar,500),
|
|
|
@@ -107,7 +107,7 @@ namespace CallCenterApi.DAL
|
|
107
|
107
|
parameters[4].Value = model.F_CusTelID;
|
|
108
|
108
|
parameters[5].Value = model.F_CusID;
|
|
109
|
109
|
parameters[6].Value = model.F_OptBy;
|
|
110
|
|
- parameters[7].Value = model.F_OptByName;
|
|
|
110
|
+ parameters[7].Value = model.F_OptByOpenid;
|
|
111
|
111
|
parameters[8].Value = model.F_OptOn;
|
|
112
|
112
|
parameters[9].Value = model.F_Expand1;
|
|
113
|
113
|
parameters[10].Value = model.F_Expand2;
|
|
|
@@ -234,11 +234,11 @@ namespace CallCenterApi.DAL
|
|
234
|
234
|
}
|
|
235
|
235
|
if (row["F_OptBy"] != null && row["F_OptBy"].ToString() != "")
|
|
236
|
236
|
{
|
|
237
|
|
- model.F_OptBy = int.Parse(row["F_OptBy"].ToString());
|
|
|
237
|
+ model.F_OptBy = long.Parse(row["F_OptBy"].ToString());
|
|
238
|
238
|
}
|
|
239
|
|
- if (row["F_OptByName"] != null)
|
|
|
239
|
+ if (row["F_OptByOpenid"] != null)
|
|
240
|
240
|
{
|
|
241
|
|
- model.F_OptByName = row["F_OptByName"].ToString();
|
|
|
241
|
+ model.F_OptByOpenid = row["F_OptByOpenid"].ToString();
|
|
242
|
242
|
}
|
|
243
|
243
|
if (row["F_OptOn"] != null && row["F_OptOn"].ToString() != "")
|
|
244
|
244
|
{
|