diff --git a/build/classes/db/companyauth_sql.xml b/build/classes/db/companyauth_sql.xml index 358a8b4..9af607e 100644 --- a/build/classes/db/companyauth_sql.xml +++ b/build/classes/db/companyauth_sql.xml @@ -146,6 +146,45 @@ WHERE a.CUSERTYPE IN ( SELECT cguid FROM RUSH_AUTH d LEFT JOIN AOS_RMS_USERTYPE_CFG e ON d.NAME = e.CNAME WHERE d.TYPE = 'rush_sharer_type' ) ]]> - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/db/org_sql.xml b/build/classes/db/org_sql.xml index eea67ef..465cf1f 100644 --- a/build/classes/db/org_sql.xml +++ b/build/classes/db/org_sql.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/build/classes/db/orgname_sql.xml b/build/classes/db/orgname_sql.xml new file mode 100644 index 0000000..e35a926 --- /dev/null +++ b/build/classes/db/orgname_sql.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/html/bureau/companyadd.html b/build/classes/html/bureau/companyadd.html new file mode 100644 index 0000000..e89c596 --- /dev/null +++ b/build/classes/html/bureau/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/build/classes/html/bureau/companyauth.html b/build/classes/html/bureau/companyauth.html new file mode 100644 index 0000000..3bd1804 --- /dev/null +++ b/build/classes/html/bureau/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/build/classes/html/bureau/companyedit.html b/build/classes/html/bureau/companyedit.html new file mode 100644 index 0000000..1748b43 --- /dev/null +++ b/build/classes/html/bureau/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/build/classes/html/bureau/recording.html b/build/classes/html/bureau/recording.html index 448b2ea..7c94e51 100644 --- a/build/classes/html/bureau/recording.html +++ b/build/classes/html/bureau/recording.html @@ -5,12 +5,18 @@
- + - + + + + 查询 导出
@@ -22,18 +28,19 @@
-
+
-
+
-
+
+
@@ -65,6 +72,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue() }; @@ -81,6 +90,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue()}; grid.load(params); @@ -93,7 +104,7 @@ var row=e.row; var value=row.play; if(value=='播放'){ - return ""+value+""; + return ""+value+""; }else{ return value; } @@ -116,6 +127,23 @@ } + function manyi(e){ + var row=e.row; + var value=row.manyidu; + if(value=='3'){ + return '

不满意

'; + } + if(value=='1'){ + return '

非常满意

'; + } + if(value=='2'){ + return '

满意

'; + } + else{ + return '

暂未评价

'; + } + } + function downRender(e){ var row=e.row; var value=row.down; @@ -154,7 +182,7 @@ function exportExl(){ var base = document.getElementsByTagName("base")[0].href; - window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue())); + window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue())); } diff --git a/build/classes/html/bureau/shuijurecording.html b/build/classes/html/bureau/shuijurecording.html new file mode 100644 index 0000000..d3a7d97 --- /dev/null +++ b/build/classes/html/bureau/shuijurecording.html @@ -0,0 +1,148 @@ + + + +录音操作 + + +
+ + + + + + 查询 + +
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+ + + + + +
+
+
+ + + + \ No newline at end of file diff --git a/build/classes/html/orgname/companyadd.html b/build/classes/html/orgname/companyadd.html new file mode 100644 index 0000000..222f614 --- /dev/null +++ b/build/classes/html/orgname/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/build/classes/html/orgname/companyauth.html b/build/classes/html/orgname/companyauth.html new file mode 100644 index 0000000..64437b1 --- /dev/null +++ b/build/classes/html/orgname/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/build/classes/html/orgname/companyedit.html b/build/classes/html/orgname/companyedit.html new file mode 100644 index 0000000..0c9b60f --- /dev/null +++ b/build/classes/html/orgname/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/build/classes/rush/BureauAction.class b/build/classes/rush/BureauAction.class index 3684ad8..95796d0 100644 Binary files a/build/classes/rush/BureauAction.class and b/build/classes/rush/BureauAction.class differ diff --git a/build/classes/rush/OrgAction.class b/build/classes/rush/OrgAction.class index 5af88cd..1e15a05 100644 Binary files a/build/classes/rush/OrgAction.class and b/build/classes/rush/OrgAction.class differ diff --git a/build/classes/rush/OrgNameAction.class b/build/classes/rush/OrgNameAction.class new file mode 100644 index 0000000..7d83f57 Binary files /dev/null and b/build/classes/rush/OrgNameAction.class differ diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/companyauth_sql.xml b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/companyauth_sql.xml index 358a8b4..9af607e 100644 --- a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/companyauth_sql.xml +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/companyauth_sql.xml @@ -146,6 +146,45 @@ WHERE a.CUSERTYPE IN ( SELECT cguid FROM RUSH_AUTH d LEFT JOIN AOS_RMS_USERTYPE_CFG e ON d.NAME = e.CNAME WHERE d.TYPE = 'rush_sharer_type' ) ]]> - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/org_sql.xml b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/org_sql.xml index eea67ef..465cf1f 100644 --- a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/org_sql.xml +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/org_sql.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/orgname_sql.xml b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/orgname_sql.xml new file mode 100644 index 0000000..e35a926 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/db/orgname_sql.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyadd.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyadd.html new file mode 100644 index 0000000..e89c596 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyauth.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyauth.html new file mode 100644 index 0000000..3bd1804 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyedit.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyedit.html new file mode 100644 index 0000000..1748b43 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/recording.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/recording.html index 448b2ea..7c94e51 100644 --- a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/recording.html +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/recording.html @@ -5,12 +5,18 @@
- + - + + + + 查询 导出
@@ -22,18 +28,19 @@
-
+
-
+
-
+
+
@@ -65,6 +72,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue() }; @@ -81,6 +90,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue()}; grid.load(params); @@ -93,7 +104,7 @@ var row=e.row; var value=row.play; if(value=='播放'){ - return ""+value+""; + return ""+value+""; }else{ return value; } @@ -116,6 +127,23 @@ } + function manyi(e){ + var row=e.row; + var value=row.manyidu; + if(value=='3'){ + return '

不满意

'; + } + if(value=='1'){ + return '

非常满意

'; + } + if(value=='2'){ + return '

满意

'; + } + else{ + return '

暂未评价

'; + } + } + function downRender(e){ var row=e.row; var value=row.down; @@ -154,7 +182,7 @@ function exportExl(){ var base = document.getElementsByTagName("base")[0].href; - window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue())); + window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue())); } diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/shuijurecording.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/shuijurecording.html new file mode 100644 index 0000000..d3a7d97 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/bureau/shuijurecording.html @@ -0,0 +1,148 @@ + + + +录音操作 + + +
+ + + + + + 查询 + +
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+ + + + + +
+
+
+ + + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyadd.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyadd.html new file mode 100644 index 0000000..222f614 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyauth.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyauth.html new file mode 100644 index 0000000..64437b1 --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyedit.html b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyedit.html new file mode 100644 index 0000000..0c9b60f --- /dev/null +++ b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/html/orgname/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/BureauAction.class b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/BureauAction.class index 3684ad8..95796d0 100644 Binary files a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/BureauAction.class and b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/BureauAction.class differ diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgAction.class b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgAction.class index 5af88cd..1e15a05 100644 Binary files a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgAction.class and b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgAction.class differ diff --git a/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgNameAction.class b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgNameAction.class new file mode 100644 index 0000000..7d83f57 Binary files /dev/null and b/classes/artifacts/rushfee_Web_exploded/WEB-INF/classes/rush/OrgNameAction.class differ diff --git a/classes/artifacts/rushfee_Web_exploded/ptrun.ini b/classes/artifacts/rushfee_Web_exploded/ptrun.ini index 4381b3c..02a70e8 100644 --- a/classes/artifacts/rushfee_Web_exploded/ptrun.ini +++ b/classes/artifacts/rushfee_Web_exploded/ptrun.ini @@ -1,3 +1,3 @@ #save ini -#Fri Aug 04 11:27:47 CST 2023 +#Thu Aug 31 20:01:58 CST 2023 deploystamp=1612237236000 diff --git a/resource/db/companyauth_sql.xml b/resource/db/companyauth_sql.xml index 358a8b4..9af607e 100644 --- a/resource/db/companyauth_sql.xml +++ b/resource/db/companyauth_sql.xml @@ -146,6 +146,45 @@ WHERE a.CUSERTYPE IN ( SELECT cguid FROM RUSH_AUTH d LEFT JOIN AOS_RMS_USERTYPE_CFG e ON d.NAME = e.CNAME WHERE d.TYPE = 'rush_sharer_type' ) ]]> - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resource/db/org_sql.xml b/resource/db/org_sql.xml index eea67ef..465cf1f 100644 --- a/resource/db/org_sql.xml +++ b/resource/db/org_sql.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/resource/db/orgname_sql.xml b/resource/db/orgname_sql.xml new file mode 100644 index 0000000..e35a926 --- /dev/null +++ b/resource/db/orgname_sql.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resource/html/bureau/companyadd.html b/resource/html/bureau/companyadd.html new file mode 100644 index 0000000..e89c596 --- /dev/null +++ b/resource/html/bureau/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/resource/html/bureau/companyauth.html b/resource/html/bureau/companyauth.html new file mode 100644 index 0000000..3bd1804 --- /dev/null +++ b/resource/html/bureau/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/resource/html/bureau/companyedit.html b/resource/html/bureau/companyedit.html new file mode 100644 index 0000000..1748b43 --- /dev/null +++ b/resource/html/bureau/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/resource/html/bureau/recording.html b/resource/html/bureau/recording.html index 448b2ea..7c94e51 100644 --- a/resource/html/bureau/recording.html +++ b/resource/html/bureau/recording.html @@ -5,12 +5,18 @@
- + - + + + + 查询 导出
@@ -22,18 +28,19 @@
-
+
-
+
-
+
+
@@ -65,6 +72,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue() }; @@ -81,6 +90,8 @@ searchenddate:enddate, phone:aos.get('phone').getValue(), empno:aos.get('empno').getValue(), + manyi:aos.get('manyidu').getValue(), + company:aos.get('company').getValue(), calltype:aos.get('calltype').getValue()}; grid.load(params); @@ -93,7 +104,7 @@ var row=e.row; var value=row.play; if(value=='播放'){ - return ""+value+""; + return ""+value+""; }else{ return value; } @@ -116,6 +127,23 @@ } + function manyi(e){ + var row=e.row; + var value=row.manyidu; + if(value=='3'){ + return '

不满意

'; + } + if(value=='1'){ + return '

非常满意

'; + } + if(value=='2'){ + return '

满意

'; + } + else{ + return '

暂未评价

'; + } + } + function downRender(e){ var row=e.row; var value=row.down; @@ -154,7 +182,7 @@ function exportExl(){ var base = document.getElementsByTagName("base")[0].href; - window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue())); + window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue())); } diff --git a/resource/html/bureau/shuijurecording.html b/resource/html/bureau/shuijurecording.html new file mode 100644 index 0000000..d3a7d97 --- /dev/null +++ b/resource/html/bureau/shuijurecording.html @@ -0,0 +1,148 @@ + + + +录音操作 + + +
+ + + + + + 查询 + +
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+ + + + + +
+
+
+ + + + \ No newline at end of file diff --git a/resource/html/orgname/companyadd.html b/resource/html/orgname/companyadd.html new file mode 100644 index 0000000..222f614 --- /dev/null +++ b/resource/html/orgname/companyadd.html @@ -0,0 +1,80 @@ + + + 权限分配 + + +
+ + 查询 + 保存 + 退出 +
+
+
+
+
>
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/resource/html/orgname/companyauth.html b/resource/html/orgname/companyauth.html new file mode 100644 index 0000000..64437b1 --- /dev/null +++ b/resource/html/orgname/companyauth.html @@ -0,0 +1,86 @@ + + + 权限分配 + + +
+ + 查询 + 新增 + 删除 + 权限授权 +
+
+
+
+
>
+
+
+
+ + +
+ + + \ No newline at end of file diff --git a/resource/html/orgname/companyedit.html b/resource/html/orgname/companyedit.html new file mode 100644 index 0000000..0c9b60f --- /dev/null +++ b/resource/html/orgname/companyedit.html @@ -0,0 +1,60 @@ + + + 权限分配 + + +
+ + + 保存 + 退出 +
+
+
+ +
+ + + \ No newline at end of file diff --git a/src/rush/BureauAction.java b/src/rush/BureauAction.java index 2ef2411..144ed03 100644 --- a/src/rush/BureauAction.java +++ b/src/rush/BureauAction.java @@ -6,6 +6,7 @@ import com.aisino.aosplus.core.mvc.DataContext; import com.aisino.aosplus.core.mvc.annotation.Action; import com.aisino.aosplus.core.mvc.annotation.Request; import com.aisino.aosplus.core.mvc.bean.Params; +import com.aisino.aosplus.session.SessionHelper; import com.aisino.hangxin.common.POIExcelMapExportUtil; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; @@ -13,6 +14,7 @@ import org.apache.log4j.Logger; import javax.servlet.http.HttpServletResponse; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -24,29 +26,47 @@ public class BureauAction { @Request.Post("getlist") - public Map getCustomerById(Params params) { + public Map getlist(Params params) { String searchbegindate=params.getString("searchbegindate"); String searchenddate=params.getString("searchenddate"); String phone=params.getString("phone"); String empno=params.getString("empno"); String calltype=params.getString("calltype"); - - // String sql=" select id,emp_no,create_time,phone_num,start_time,end_time,record_duration," + - // "call_type,record_url path,caller_phone, area_name ,'播放' AS play ,'下载' as down from area_call_record where 1=1 "; + String manyi=params.getString("manyi"); + String company=params.getString("company"); + String userId = SessionHelper.getCurrentUserId(); + params.put("userId",userId); + List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgListByUser", params); + StringBuffer sb = new StringBuffer(); + if(returns.size()!=0) { + sb.append("d.city_name in ("); + for (int i = 0; i < returns.size(); i++) { + sb.append("'" + returns.get(i).get("text") + "'"); + if (i < returns.size() - 1) { + sb.append(","); + } + } + sb.append(")"); + } + else{ + sb.append("1=2"); + } String sql=" SELECT c.CALLID, c.CALLEENO,c.CALLERNO phone_num ,c.AGENTID emp_no,c.BEGINTIME start_time,c.ENDTIME end_time,to_char(c.BEGINTIME,'yyyy-mm-dd') create_time, " + "c.SECONDS record_duration ,REGEXP_REPLACE( REGEXP_REPLACE(c.FILENAME,'Z:\\\\1',''),'\\\\','/') path ,c.CALLTYPE call_type,c.NAME,s.TEL_RECORD_ID,s.RECODER_ID," + - "s.ENTRY_DATE,s.ORGID,s.ORGNAME area_name,s.PRODUCTNAME,s.CUSTOMER_ID,s.QUESTION_ID," + + "s.ENTRY_DATE,s.ORGID,s.ORGNAME,d.city_name area_name,c.satisfaction manyidu,s.PRODUCTNAME,s.CUSTOMER_ID,s.QUESTION_ID," + "s.QUESTION_ANSWER,s.CUSTOMER_NAME,s.CUSTOMER_TAX_ID,s.tel ,s.MOBILE caller_phone,s.PERSON_TEL, s.question_content," + "s.CONTACT,s.TEL_DATE ,s.TEL_PERSON,s.ENTRY_PERSON ,'播放' AS play ,'下载' as down FROM " + - "CALLSYS_TRECORDFAILINFO c " + - "LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where 1=1 "; + "CALLSYS_TRECORDFAILINFO c left join tel_dic_city d on c.calleeno=d.callee_no " + + "LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where "+sb.toString(); String timeSql=""; String typeSql=""; String phoneSql=""; String empnoSql=""; + String manyiSql=""; + String companySql=""; if(searchbegindate!=null&&searchenddate!=null){ timeSql=" and to_char(c.BEGINTIME,'yyyy-mm-dd')>='"+searchbegindate +"' and to_char(c.BEGINTIME,'yyyy-mm-dd')<='"+searchenddate+"'" ; } @@ -54,17 +74,30 @@ public class BureauAction { typeSql=" and c.CALLTYPE='"+calltype+"'"; } if(phone!=null){ - phoneSql=" and s.MOBILE like '%"+phone+"%'" ; + phoneSql=" and (s.MOBILE like '%"+phone+"%' or c.CALLERNO='"+phone+"')" ; } if(empno!=null){ empnoSql=" and c.AGENTID like '%"+empno+"%'" ; } + if(manyi!=null){ + if(manyi.equals("4")){ + manyiSql=" and c.satisfaction is null " ; + } + else{ + manyiSql=" and c.satisfaction = '"+manyi+"'" ; + } + + } + + if(company!=null){ + companySql=" and d.city_name='"+company+"'"; + + } - - Map map = DbHelper.getDbService().queryPageMapList(sql+timeSql+typeSql+phoneSql+empnoSql, params); + Map map = DbHelper.getDbService().queryPageMapList(sql+timeSql+typeSql+phoneSql+empnoSql+manyiSql+companySql, params); List records = (List) map.get("records"); for(Map m : records){ m.put("path","http://10.1.1.54:8082"+m.get("path")); @@ -80,7 +113,109 @@ public class BureauAction { } + @Request.Post("getlistBysj") + public Map getlistBysj(Params params) { + String searchbegindate=params.getString("searchbegindate"); + String searchenddate=params.getString("searchenddate"); + String phone=params.getString("phone"); + String empno=params.getString("empno"); + String calltype=params.getString("calltype"); + String company=params.getString("company"); + String manyi=params.getString("manyi"); + String userId = SessionHelper.getCurrentUserId(); + params.put("userId",userId); + /* + 这一部分是限制税局授权 现在先不要 换成分公司授权 + List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgListByUser", params); + StringBuffer sb = new StringBuffer(); + if(returns.size()!=0) { + sb.append("d.city_name in ("); + for (int i = 0; i < returns.size(); i++) { + sb.append("'" + returns.get(i).get("text") + "'"); + if (i < returns.size() - 1) { + sb.append(","); + } + } + sb.append(")"); + } + else{ + sb.append("1=2"); + }*/ + List returns = DbHelper.getDbService().queryMapListById("orgname.getOrgListByUser", params); + StringBuffer sb = new StringBuffer(); + if(returns.size()!=0) { + sb.append("(s.ORGID in ("); + for (int i = 0; i < returns.size(); i++) { + sb.append("'" + returns.get(i).get("text") + "'"); + if (i < returns.size() - 1) { + sb.append(","); + } + } + sb.append(") or s.ORGNAME is null) "); + } + else{ + sb.append("1=2"); + } + + String sql=" SELECT c.CALLID, c.CALLEENO,c.CALLERNO phone_num ,c.AGENTID emp_no,c.BEGINTIME start_time,c.ENDTIME end_time,to_char(c.BEGINTIME,'yyyy-mm-dd') create_time, " + + "c.SECONDS record_duration ,REGEXP_REPLACE( REGEXP_REPLACE(c.FILENAME,'Z:\\\\1',''),'\\\\','/') path ,c.CALLTYPE call_type,c.NAME,s.TEL_RECORD_ID,s.RECODER_ID," + + "s.ENTRY_DATE,s.ORGID,s.ORGNAME org_name,d.city_name area_name,s.PRODUCTNAME,s.CUSTOMER_ID,s.QUESTION_ID," + + "s.QUESTION_ANSWER,s.CUSTOMER_NAME,s.CUSTOMER_TAX_ID,s.tel ,s.MOBILE caller_phone,s.PERSON_TEL, s.question_content," + + "s.CONTACT,s.TEL_DATE ,s.TEL_PERSON,s.ENTRY_PERSON ,'播放' AS play ,'下载' as down FROM " + + "CALLSYS_TRECORDFAILINFO c left join tel_dic_city d on c.calleeno=d.callee_no " + + "LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where c.CALLERNO='12366' and "+ sb.toString(); + + String timeSql=""; + String typeSql=""; + String phoneSql=""; + String empnoSql=""; + String companySql=""; + String manyiSql=""; + if(searchbegindate!=null&&searchenddate!=null){ + timeSql=" and to_char(c.BEGINTIME,'yyyy-mm-dd')>='"+searchbegindate +"' and to_char(c.BEGINTIME,'yyyy-mm-dd')<='"+searchenddate+"'" ; + } + if(calltype!=null){ + typeSql=" and c.CALLTYPE='"+calltype+"'"; + } + if(phone!=null){ + phoneSql=" and s.MOBILE like '%"+phone+"%'" ; + } + if(empno!=null){ + empnoSql=" and c.AGENTID like '%"+empno+"%'" ; + } + if(company!=null){ + companySql=" and d.city_name='"+company+"'"; + + } + if(manyi!=null){ + if(manyi.equals("4")){ + manyiSql=" and c.satisfaction is null " ; + } + else{ + manyiSql=" and c.satisfaction = '"+manyi+"'" ; + } + + } + + + + + Map map = DbHelper.getDbService().queryPageMapList(sql+timeSql+typeSql+phoneSql+empnoSql+companySql+manyiSql, params); + List records = (List) map.get("records"); + for(Map m : records){ + m.put("path","http://10.1.1.54:8082"+m.get("path")); + if(m.get("path")==null){ + m.put("play","无录音"); + m.put("path",""); + } + + } + + + return map; + + } @@ -91,23 +226,42 @@ public class BureauAction { String phone=params.getString("phone"); String empno=params.getString("empno"); String calltype=params.getString("calltype"); - + String manyi=params.getString("manyi"); + String company=params.getString("company"); // String sql=" select id,emp_no,create_time,phone_num,start_time,end_time,record_duration," + // "call_type,record_url path,caller_phone, area_name ,'播放' AS play ,'下载' as down from area_call_record where 1=1 "; - + String userId = SessionHelper.getCurrentUserId(); + params.put("userId",userId); + List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgListByUser", params); + StringBuffer sb = new StringBuffer(); + if(returns.size()!=0) { + sb.append("d.city_name in ("); + for (int i = 0; i < returns.size(); i++) { + sb.append("'" + returns.get(i).get("text") + "'"); + if (i < returns.size() - 1) { + sb.append(","); + } + } + sb.append(")"); + } + else{ + sb.append("1=2"); + } String sql=" SELECT c.CALLID, c.CALLEENO,c.CALLERNO phone_num ,c.AGENTID emp_no,c.BEGINTIME start_time,c.ENDTIME end_time,to_char(c.BEGINTIME,'yyyy-mm-dd') create_time, " + "c.SECONDS record_duration ,decode(c.CALLTYPE,'0','呼入','1','呼出') call_type,c.NAME,s.TEL_RECORD_ID,s.RECODER_ID," + - "s.ENTRY_DATE,s.ORGID,s.ORGNAME area_name,s.PRODUCTNAME,s.CUSTOMER_ID,s.QUESTION_ID," + + "s.ENTRY_DATE,s.ORGID,s.ORGNAME,d.city_name area_name,decode(c.satisfaction,'1','非常满意','2','满意','3','不满意','暂未评价') manyidu,s.PRODUCTNAME,s.CUSTOMER_ID,s.QUESTION_ID," + "s.QUESTION_ANSWER,s.CUSTOMER_NAME,s.CUSTOMER_TAX_ID,s.tel ,s.MOBILE caller_phone,s.PERSON_TEL, s.question_content," + "s.CONTACT,s.TEL_DATE ,s.TEL_PERSON,s.ENTRY_PERSON FROM " + - "CALLSYS_TRECORDFAILINFO c " + - "LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where 1=1 "; + "CALLSYS_TRECORDFAILINFO c left join tel_dic_city d on c.calleeno=d.callee_no " + + "LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where "+ sb.toString(); String timeSql=""; String typeSql=""; String phoneSql=""; String empnoSql=""; + String manyiSql=""; + String companySql=""; if(searchbegindate!=null&&searchenddate!=null){ timeSql=" and to_char(c.BEGINTIME,'yyyy-mm-dd')>='"+searchbegindate +"' and to_char(c.BEGINTIME,'yyyy-mm-dd')<='"+searchenddate+"'" ; } @@ -122,11 +276,19 @@ public class BureauAction { } + if(manyi!=null){ + if(manyi.equals("4")){ + manyiSql=" and c.satisfaction is null " ; + } + else{ + manyiSql=" and c.satisfaction = '"+manyi+"'" ; + } + + } - - List resultMap = DbHelper.getDbService().queryMapList(sql+timeSql+typeSql+phoneSql+empnoSql, params); + List resultMap = DbHelper.getDbService().queryMapList(sql+timeSql+typeSql+phoneSql+empnoSql+manyiSql, params); HttpServletResponse response = DataContext.getResponse(); @@ -136,15 +298,98 @@ public class BureauAction { fileName, sheetName); // Map Key属性 - String titleColumn1[] = {"emp_no","name", "create_time", "phone_num", "start_time", "end_time", "record_duration","call_type","caller_phone","customer_name","question_content","question_answer","productname","area_name"}; + String titleColumn1[] = {"emp_no","name", "create_time", "phone_num", "start_time", "end_time", "record_duration","call_type","caller_phone","customer_name","question_content","question_answer","productname","area_name","manyidu"}; // Excel列名 - String titleName1[] = {"工号", "姓名","日期","电话号码", "开始时间", "结束时间", "录音时长(秒)", "呼叫类型","来电人电话号码", "公司名称", "咨询内容","解决办法","问题类型","所属地区"}; + String titleName1[] = {"工号", "姓名","日期","电话号码", "开始时间", "结束时间", "录音时长(秒)", "呼叫类型","来电人电话号码", "公司名称", "咨询内容","解决办法","问题类型","所属地区","满意度"}; // Excel 列宽 - int titleSize[] = {30, 30, 30, 30, 30, 30,30, 30,30, 30, 30,30, 30,30}; + int titleSize[] = {30, 30, 30, 30, 30, 30,30, 30,30, 30, 30,30, 30,30,30}; // 内容书写,返回输出流 pee.wirteListMapExcel(titleColumn1, titleName1, titleSize, resultMap); } + + + @Request.Get("getcompanybyshuiju") + @Request.Post("getcompanybyshuiju") + public List getListtree(Params params){ + return DbHelper.getDbService().queryMapListById("companyauth.getcompanybyshuiju", params); + + } + + + @Request.Get("addCompany") + @Request.Post("addCompany") + public void addcompany(Params params){ + DbHelper.getDbService().update("delete from SHUIJU_QUYU_USER t where t.user_id = ?", params.getString("cguid")); + String id = params.getString("id"); + String[] str = id.split(","); + for (int i = 0; i < str.length; i++) { + String cguid = params.getString("cguid"); + DbHelper.getDbService().update("insert into SHUIJU_QUYU_USER (user_id,org_name) values(?,?)",cguid,str[i]); + } + + } + + + @Request.Post("getbureauList") + @Request.Get("getbureauList") + public Map getbureauList(Params params){ + return DbHelper.getDbService().queryPageMapListById("companyauth.getbureauList", params); + + } + + @Request.Post("deleteAuth") + public void delete(Params params){ + + DbHelper.getDbService().update("delete from SHUIJU_QUYU_USER t where t.user_id = ?", params.getString("cguid")); + } + + + @Request.Get("getinfobyid") + @Request.Post("getinfobyid") + public Map loadInfo(Params params){ + + Map returns= DbHelper.getDbService().queryMap("SELECT a.cguid, a.cname, \n" + + " REPLACE ( wm_concat (ORG_NAME), ',', ',' ) AS id \n" + + " FROM ( \n" + + " SELECT\n" + + " Z.CGUID,\n" + + " Z.CNAME,\n" + + " T.ORG_NAME\n" + + " FROM\n" + + " SHUIJU_QUYU_USER t,\n" + + " aos_rms_user z \n" + + " WHERE\n" + + " z.cguid = t.USER_ID \n" + + " AND t.USER_ID = ? \n" + + " ) a \n" + + " GROUP BY\n" + + " cguid,\n" + + " cname", params.getString("cguid")); + String string=(String) returns.get("id"); + Map map = new HashMap(); + map.put("id", string); + return map; + } + + + + + @Request.Post("getallList") + @Request.Get("getallList") + public Map getallList(Params params){ + return DbHelper.getDbService().queryPageMapListById("companyauth.getallListshuiju", params); + + } + + @Request.Get("getOrgListByUser") + public List getOrgListByUser(Params params){ + String userId = SessionHelper.getCurrentUserId(); + params.put("userId",userId); + List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgListByUser", params); + return returns; + } + } diff --git a/src/rush/OrgAction.java b/src/rush/OrgAction.java index ed44b27..3a44867 100644 --- a/src/rush/OrgAction.java +++ b/src/rush/OrgAction.java @@ -19,6 +19,15 @@ public class OrgAction { List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgList", params); return returns; } + + + @Request.Get("getOrgListByUser") + public List getOrgListByUser(Params params){ + String userId = SessionHelper.getCurrentUserId(); + params.put("userId",userId); + List returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgListByUser", params); + return returns; + } //根据账号权限获得对应组织信息 @SuppressWarnings("rawtypes") diff --git a/src/rush/OrgNameAction.java b/src/rush/OrgNameAction.java new file mode 100644 index 0000000..854dbbf --- /dev/null +++ b/src/rush/OrgNameAction.java @@ -0,0 +1,89 @@ +package rush; + + +import com.aisino.aosplus.core.dao.DbHelper; +import com.aisino.aosplus.core.mvc.annotation.Action; +import com.aisino.aosplus.core.mvc.annotation.Request; +import com.aisino.aosplus.core.mvc.bean.Params; +import org.apache.log4j.Logger; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Action("rush/orgname") +public class OrgNameAction { + // 日志记录 + private static Logger logger = Logger.getLogger(OrgNameAction.class); + + @Request.Post("getList") + @Request.Get("getList") + public Map getList(Params params){ + return DbHelper.getDbService().queryPageMapListById("orgname.getList", params); + + } + + + @Request.Post("getallList") + @Request.Get("getallList") + public Map getallList(Params params){ + return DbHelper.getDbService().queryPageMapListById("orgname.getallList", params); + + } + + @Request.Post("deleteAuth") + public void delete(Params params){ + + DbHelper.getDbService().update("delete from RUSH_CRMCOMP_TO_USER_ORGNAME t where t.rush_userid = ?", params.getString("cguid")); + } + + + @Request.Get("getcompanyTreeData") + @Request.Post("getcompanyTreeData") + public List getListtree(Params params){ + return DbHelper.getDbService().queryMapListById("orgname.getcompany", params); + + } + + @Request.Get("getinfobyid") + @Request.Post("getinfobyid") + public Map loadInfo(Params params){ + + Map returns= DbHelper.getDbService().queryMap("SELECT a.cguid, a.cname, " + +" REPLACE ( wm_concat (CRMCOMPANYID), ',', ',' ) AS id " + +" FROM ( " + +" SELECT" + +" Z.CGUID," + +" Z.CNAME," + +" T.CRMCOMPANYID" + +" FROM" + +" RUSH_CRMCOMP_TO_USER_ORGNAME t," + +" aos_rms_user z " + +" WHERE" + +" z.cguid = t.RUSH_USERID " + +" AND t.RUSH_USERID = ? " + +" ) a " + +" GROUP BY" + +" cguid," + +" cname", params.getString("cguid")); + String string=(String) returns.get("id"); + Map map = new HashMap(); + map.put("id", string); + return map; + } + + + @Request.Get("addCompany") + @Request.Post("addCompany") + public void addcompany(Params params){ + DbHelper.getDbService().update("delete from RUSH_CRMCOMP_TO_USER_ORGNAME t where t.rush_userid = ?", params.getString("cguid")); + String id = params.getString("id"); + String[] str = id.split(","); + for (int i = 0; i < str.length; i++) { + String cguid = params.getString("cguid"); + DbHelper.getDbService().update("insert into RUSH_CRMCOMP_TO_USER_ORGNAME (rush_userid,crmcompanyid) values(?,?)",cguid,str[i]); + } + + } + +}