|
|
@@ -448,7 +448,7 @@ namespace CallCenterApi.DAL
|
|
448
|
448
|
{
|
|
449
|
449
|
|
|
450
|
450
|
StringBuilder strSql = new StringBuilder();
|
|
451
|
|
- strSql.Append("select top 1 * from T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
451
|
+ strSql.Append("select top 1 * from T_Call_CallRecords WITH(NOLOCK)");
|
|
452
|
452
|
strSql.Append(" where CallRecordsId=@CallRecordsId");
|
|
453
|
453
|
SqlParameter[] parameters = {
|
|
454
|
454
|
new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
|
|
|
@@ -734,7 +734,7 @@ namespace CallCenterApi.DAL
|
|
734
|
734
|
{
|
|
735
|
735
|
StringBuilder strSql = new StringBuilder();
|
|
736
|
736
|
strSql.Append("select * ");
|
|
737
|
|
- strSql.Append(" FROM T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
737
|
+ strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK)");
|
|
738
|
738
|
if (strWhere.Trim() != "")
|
|
739
|
739
|
{
|
|
740
|
740
|
strSql.Append(" where " + strWhere);
|
|
|
@@ -754,7 +754,7 @@ namespace CallCenterApi.DAL
|
|
754
|
754
|
strSql.Append(" top " + Top.ToString());
|
|
755
|
755
|
}
|
|
756
|
756
|
strSql.Append(" * ");
|
|
757
|
|
- strSql.Append(" FROM T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
757
|
+ strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK)");
|
|
758
|
758
|
if (strWhere.Trim() != "")
|
|
759
|
759
|
{
|
|
760
|
760
|
strSql.Append(" where " + strWhere);
|
|
|
@@ -769,7 +769,7 @@ namespace CallCenterApi.DAL
|
|
769
|
769
|
public int GetRecordCount(string strWhere)
|
|
770
|
770
|
{
|
|
771
|
771
|
StringBuilder strSql = new StringBuilder();
|
|
772
|
|
- strSql.Append("select count(1) FROM T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
772
|
+ strSql.Append("select count(1) FROM T_Call_CallRecords WITH(NOLOCK)");
|
|
773
|
773
|
if (strWhere.Trim() != "")
|
|
774
|
774
|
{
|
|
775
|
775
|
strSql.Append(" where " + strWhere);
|
|
|
@@ -976,7 +976,7 @@ namespace CallCenterApi.DAL
|
|
976
|
976
|
public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
|
|
977
|
977
|
{
|
|
978
|
978
|
StringBuilder strSql = new StringBuilder();
|
|
979
|
|
- strSql.Append("select top 1 * from T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
979
|
+ strSql.Append("select top 1 * from T_Call_CallRecords WITH(NOLOCK)");
|
|
980
|
980
|
strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
|
|
981
|
981
|
SqlParameter[] parameters = {
|
|
982
|
982
|
new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
|
|
|
@@ -1000,7 +1000,7 @@ namespace CallCenterApi.DAL
|
|
1000
|
1000
|
public Model.T_Call_CallRecords GetModelByCallId(string CallId)
|
|
1001
|
1001
|
{
|
|
1002
|
1002
|
StringBuilder strSql = new StringBuilder();
|
|
1003
|
|
- strSql.Append("select top 1 * from T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
1003
|
+ strSql.Append("select top 1 * from T_Call_CallRecords WITH(NOLOCK)");
|
|
1004
|
1004
|
//strSql.Append(" where CallId=@CallId order by BeginTime desc");
|
|
1005
|
1005
|
strSql.Append(" where CallId=@CallId order by BeginTime asc");//三方通话
|
|
1006
|
1006
|
SqlParameter[] parameters = {
|
|
|
@@ -1022,7 +1022,7 @@ namespace CallCenterApi.DAL
|
|
1022
|
1022
|
public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
|
|
1023
|
1023
|
{
|
|
1024
|
1024
|
StringBuilder strSql = new StringBuilder();
|
|
1025
|
|
- strSql.Append("select top 1 * from T_Call_CallRecords WHTH(NOLOCK)");
|
|
|
1025
|
+ strSql.Append("select top 1 * from T_Call_CallRecords WITH(NOLOCK)");
|
|
1026
|
1026
|
strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
|
|
1027
|
1027
|
SqlParameter[] parameters = {
|
|
1028
|
1028
|
new SqlParameter("@CallRecordsId", SqlDbType.Int)
|