|
|
@@ -2589,12 +2589,20 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2589
|
2589
|
else
|
|
2590
|
2590
|
{
|
|
2591
|
2591
|
|
|
2592
|
|
- sql += "and a.F_ToBereply=" + tobereply;
|
|
|
2592
|
+ if (smspy == 3)
|
|
|
2593
|
+ {
|
|
|
2594
|
+ if (smspy == -1)
|
|
|
2595
|
+ sql += "and a.F_ToBereply=" + tobereply;
|
|
|
2596
|
+ }
|
|
|
2597
|
+ else
|
|
|
2598
|
+ {
|
|
|
2599
|
+ sql += "and a.F_ToBereply=" + tobereply;
|
|
2593
|
2600
|
|
|
2594
|
|
- sql += " and a.F_WorkState =0 ";
|
|
|
2601
|
+ sql += " and a.F_WorkState =0 ";
|
|
2595
|
2602
|
|
|
2596
|
|
- if (User.F_RoleCode != "GLY")
|
|
2597
|
|
- sql += " and a.F_CreateUser='" + User.F_UserCode + "'";
|
|
|
2603
|
+ if (User.F_RoleCode != "GLY")
|
|
|
2604
|
+ sql += " and a.F_CreateUser='" + User.F_UserCode + "'";
|
|
|
2605
|
+ }
|
|
2598
|
2606
|
|
|
2599
|
2607
|
}
|
|
2600
|
2608
|
order = "order by a.F_Id desc";
|