|
|
@@ -77,9 +77,9 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
|
|
77
|
77
|
|
|
78
|
78
|
//已接收非本部门的数据不可看到
|
|
79
|
79
|
sql += @" and (isnull((
|
|
80
|
|
-select F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 ),0)=0 or
|
|
|
80
|
+select top 1 F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 order by F_Id desc),0)=0 or
|
|
81
|
81
|
isnull((
|
|
82
|
|
-select F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 ),0)=
|
|
|
82
|
+select top 1 F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 order by F_Id desc ),0)=
|
|
83
|
83
|
" + CurrentUser.UserData.F_DeptId + ")";
|
|
84
|
84
|
|
|
85
|
85
|
|
|
|
@@ -88,9 +88,9 @@ select F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_
|
|
88
|
88
|
|
|
89
|
89
|
//已接收非本部门的数据不可看到
|
|
90
|
90
|
sql += @" and (isnull((
|
|
91
|
|
-select F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 ),0)=0 or
|
|
|
91
|
+select top 1 F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 order by F_Id desc ),0)=0 or
|
|
92
|
92
|
isnull((
|
|
93
|
|
-select F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 ),0)=
|
|
|
93
|
+select top 1 F_Bdeptid from T_Sys_ATheChangeLog where F_CustomerId=T_Rec_RegRecords.F_Id and F_type=1 order by F_Id desc ),0)=
|
|
94
|
94
|
" + CurrentUser.UserData.F_DeptId + ")";
|
|
95
|
95
|
if (Zsz != "")
|
|
96
|
96
|
{
|