|
|
@@ -1034,7 +1034,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1034
|
1034
|
sql += "and F_ToBereply=" + tobereply;
|
|
1035
|
1035
|
sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
1036
|
1036
|
}
|
|
1037
|
|
-
|
|
|
1037
|
+ if (strstate.Trim() == ((int)EnumWorkState.dealed).ToString())
|
|
|
1038
|
+ {
|
|
|
1039
|
+ sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
|
|
|
1040
|
+ }
|
|
1038
|
1041
|
//sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
1039
|
1042
|
}
|
|
1040
|
1043
|
else
|
|
|
@@ -1587,6 +1590,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1587
|
1590
|
order = "order by a.F_Level desc, a.F_CreateTime desc";
|
|
1588
|
1591
|
sql += " and (F_IsRelease !='" + 3 + "' or " +
|
|
1589
|
1592
|
"F_IsRelease is null) ";
|
|
|
1593
|
+ sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
|
|
1590
|
1594
|
if (strstate.Trim() != "" && strstate != "undefined")
|
|
1591
|
1595
|
{
|
|
1592
|
1596
|
if (strstate.Trim() == ((int)EnumWorkState.neworder).ToString())
|
|
|
@@ -1845,6 +1849,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1845
|
1849
|
sql += " and (F_IsRelease !='" + 3 + "' or " +
|
|
1846
|
1850
|
"F_IsRelease is null) ";
|
|
1847
|
1851
|
sql += " and F_WorkState=" + (int)EnumWorkState.submit;
|
|
|
1852
|
+ sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
|
|
1848
|
1853
|
sql += "and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback b WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1 and F_Id in (select MAX(F_Id) from T_Bus_Feedback WITH(NOLOCK) where F_WorkOrderId in (select F_WorkOrderId from T_Bus_Feedback WITH(NOLOCK) where F_WorkOrderId = b.F_WorkOrderId group by F_WorkOrderId ) ) ) ";
|
|
1849
|
1854
|
if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "MTDD")
|
|
1850
|
1855
|
{
|
|
|
@@ -6586,6 +6591,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
6586
|
6591
|
{
|
|
6587
|
6592
|
case "0"://督办-待办
|
|
6588
|
6593
|
sql += " and F_WorkOrderID in(" + sqlsup + " and F_State =0 )";
|
|
|
6594
|
+ sql += "and F_WorkState !='9'";
|
|
6589
|
6595
|
break;
|
|
6590
|
6596
|
case "1"://督办-办理中
|
|
6591
|
6597
|
sql += " and F_WorkOrderID in(" + sqlsup + " and F_State =1 ) and F_WorkState !='9' ";
|
|
|
@@ -10232,7 +10238,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
10232
|
10238
|
// modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;// 1;//提交领导
|
|
10233
|
10239
|
//}
|
|
10234
|
10240
|
#endregion
|
|
10235
|
|
- modelT_Bus_WorkOrder.F_CreateUser = User.F_UserCode;
|
|
|
10241
|
+ // modelT_Bus_WorkOrder.F_CreateUser = User.F_UserCode;
|
|
10236
|
10242
|
modelT_Bus_WorkOrder.F_IsEnabled = 1;
|
|
10237
|
10243
|
modelT_Bus_WorkOrder.F_EnableTime = DateTime.Now;
|
|
10238
|
10244
|
modelT_Bus_WorkOrder.F_IsDelete = 0;
|