duhongyu лет назад: 6
Родитель
Сommit
6b224012af

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_List.cs

@@ -287,7 +287,7 @@ namespace CallCenterApi.DAL
287 287
         public DataSet GetList(string strWhere)
288 288
         {
289 289
             StringBuilder strSql = new StringBuilder();
290
-            strSql.Append("select ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,Detail,MBID,MID,MName,CreateDate,BatchNo ");
290
+            strSql.Append("select ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,F_IsDelete,Detail,MBID,MID,MName,CreateDate,BatchNo ");
291 291
             strSql.Append(" FROM T_SMS_List ");
292 292
             if (strWhere.Trim() != "")
293 293
             {

+ 10 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderNew.cs

@@ -102,9 +102,15 @@ namespace CallCenterApi.DAL
102 102
             parameters[33].Value = model.DelTime;
103 103
             parameters[34].Value = model.TypeClass;
104 104
             parameters[35].Value = model.DealBy;
105
-            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
106
-            return rows;
107
-           
105
+            object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
106
+            if (obj == null)
107
+            {
108
+                return 0;
109
+            }
110
+            else
111
+            {
112
+                return Convert.ToInt32(obj);
113
+            }
108 114
         }
109 115
         /// <summary>
110 116
         /// 更新一条数据
@@ -473,7 +479,7 @@ namespace CallCenterApi.DAL
473 479
         public DataSet GetList(string strWhere)
474 480
         {
475 481
             StringBuilder strSql = new StringBuilder();
476
-            strSql.Append("select ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,TypeClass ");
482
+            strSql.Append("select ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,DealBy,TypeClass ");
477 483
             strSql.Append(" FROM T_Wo_WorkOrderNew ");
478 484
             if (strWhere.Trim() != "")
479 485
             {