|
|
@@ -8424,7 +8424,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8424
|
8424
|
using (TransactionScope trans = new TransactionScope())
|
|
8425
|
8425
|
{
|
|
8426
|
8426
|
#region 保存工单信息
|
|
8427
|
|
- if (!workorderBLL.Exists(relatedworkorder))
|
|
|
8427
|
+ if (!string.IsNullOrEmpty( relatedworkorder) && !workorderBLL.Exists(relatedworkorder))
|
|
8428
|
8428
|
{
|
|
8429
|
8429
|
return Error("关联提示函编号不存在");
|
|
8430
|
8430
|
}
|
|
|
@@ -17430,5 +17430,39 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17430
|
17430
|
|
|
17431
|
17431
|
return Success("发送消息完成");
|
|
17432
|
17432
|
}
|
|
|
17433
|
+
|
|
|
17434
|
+ /// <summary>
|
|
|
17435
|
+ ///
|
|
|
17436
|
+ /// </summary>
|
|
|
17437
|
+ /// <param name="stime">年月日</param>
|
|
|
17438
|
+ /// <returns></returns>
|
|
|
17439
|
+ public ActionResult DayReport(string stime)
|
|
|
17440
|
+ {
|
|
|
17441
|
+ if (string.IsNullOrEmpty(stime))
|
|
|
17442
|
+ {
|
|
|
17443
|
+ stime = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
17444
|
+ }
|
|
|
17445
|
+
|
|
|
17446
|
+ DateTime date = DateTime.Parse(stime+" 16:00:00");
|
|
|
17447
|
+
|
|
|
17448
|
+ DateTime lastdate = date.AddDays(-1);
|
|
|
17449
|
+ string sql= "select *,dbo.GetDeptNames(F_MainDeptId) maindeptname from T_Bus_WorkOrder where F_CreateTime>'"+lastdate+"' and F_CreateTime<='" + date + "'";
|
|
|
17450
|
+ var ordertable= DbHelperSQL.Query(sql).Tables[0];
|
|
|
17451
|
+
|
|
|
17452
|
+ string blsql = "select * from T_Bus_Feedback where F_Type=1 and F_CreateTime>'" + lastdate + "' and F_CreateTime<='" + date + "'";
|
|
|
17453
|
+ var bltable= DbHelperSQL.Query(blsql).Tables[0];
|
|
|
17454
|
+
|
|
|
17455
|
+
|
|
|
17456
|
+ var obj = new
|
|
|
17457
|
+ {
|
|
|
17458
|
+ state = "success",
|
|
|
17459
|
+ message = "成功",
|
|
|
17460
|
+ ordertable = ordertable,
|
|
|
17461
|
+ bltable = bltable
|
|
|
17462
|
+ };
|
|
|
17463
|
+ return Content(obj.ToJson());
|
|
|
17464
|
+
|
|
|
17465
|
+
|
|
|
17466
|
+ }
|
|
17433
|
17467
|
}
|
|
17434
|
17468
|
}
|