|
|
@@ -3130,8 +3130,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3130
|
3130
|
int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
3131
|
3131
|
// int userId = 751;
|
|
3132
|
3132
|
Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
3133
|
+ int isyq = RequestString.GetInt("isyq", -1);
|
|
3133
|
3134
|
//获取待办理工单数量
|
|
3134
|
|
- string sql = " select count(*) dblcount from T_Bus_WorkOrder where F_IsDelete=0 and F_WorkState in (2,4,8) and F_MainDeptId="+userModel.F_DeptId;
|
|
|
3135
|
+ string sql = " select count(*) dblcount from T_Bus_WorkOrder where F_IsDelete=0 and F_WorkState in (2,4,8) and F_WorkOrderId in (select F_WorkOrderId from T_Bus_AssignedInfo WITH(NOLOCK) where F_State=1 and F_IsDelete=0 and "
|
|
|
3136
|
+ + " ISNULL(F_FeedbackTime, '')='' and F_MainDeptId =" + userModel.F_DeptId + " and F_IsSure in (0,1)";
|
|
|
3137
|
+
|
|
|
3138
|
+ if (isyq != -1)
|
|
|
3139
|
+ {
|
|
|
3140
|
+ sql += " and dbo.GetOverState(F_WorkOrderId)=" + isyq;
|
|
|
3141
|
+ }
|
|
|
3142
|
+ else
|
|
|
3143
|
+ {
|
|
|
3144
|
+ sql += ")";
|
|
|
3145
|
+ }
|
|
3135
|
3146
|
//获取催办数量
|
|
3136
|
3147
|
string sql1 = " select count(*) dblcount from T_Bus_WorkOrder where F_IsDelete=0 and ReminderNum>0 and F_WorkOrderID in(select F_WorkOrderID from T_Bus_AssignedInfo WITH(NOLOCK) where F_State=1 and F_IsDelete=0 and F_IsSure in (0,1) and F_MainDeptId=" + userModel.F_DeptId + ") ";
|
|
3137
|
3148
|
//扫描件未上传数量
|