diff --git a/build/classes/html/bureau/recording.html b/build/classes/html/bureau/recording.html index 3feb1e3..9074086 100644 --- a/build/classes/html/bureau/recording.html +++ b/build/classes/html/bureau/recording.html @@ -10,15 +10,15 @@ - - - - 查询 导出 diff --git a/build/classes/rush/BureauAction.class b/build/classes/rush/BureauAction.class index 21914c8..8bc53bf 100644 Binary files a/build/classes/rush/BureauAction.class and b/build/classes/rush/BureauAction.class differ 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 21914c8..8bc53bf 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/ptrun.ini b/classes/artifacts/rushfee_Web_exploded/ptrun.ini index 9b86022..a06f0ba 100644 --- a/classes/artifacts/rushfee_Web_exploded/ptrun.ini +++ b/classes/artifacts/rushfee_Web_exploded/ptrun.ini @@ -1,3 +1,3 @@ #save ini -#Wed Nov 22 00:59:05 CST 2023 +#Mon Nov 27 22:36:20 CST 2023 deploystamp=1612237236000 diff --git a/resource/html/bureau/crmrecording.html b/resource/html/bureau/crmrecording.html new file mode 100644 index 0000000..440ce13 --- /dev/null +++ b/resource/html/bureau/crmrecording.html @@ -0,0 +1,216 @@ + + + +录音操作 + + +
+ + + + + + + + + + + + + + + 查询 + 导出 +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/src/rush/BureauAction.java b/src/rush/BureauAction.java index a9e62b8..a29a250 100644 --- a/src/rush/BureauAction.java +++ b/src/rush/BureauAction.java @@ -24,6 +24,216 @@ public class BureauAction { private static Logger logger = Logger.getLogger(BureauAction.class); + @Request.Post("getlistcrm") + public Map getlistcrm(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 manyi = params.getString("manyi"); + String company = params.getString("company"); + String custname = params.getString("custname"); + String diqu = params.getString("diqu"); + String callstate = params.getString("callstate"); + String problem = params.getString("problem"); + String timeSql = ""; + String typeSql = ""; + String phoneSql = ""; + String empnoSql = ""; + //String manyiSql = ""; + StringBuffer manyiSql = new StringBuffer(); + // String companySql = ""; + StringBuffer companySql = new StringBuffer(); + String custnameSql=""; + StringBuffer diquSql = new StringBuffer(); + //String diquSql=""; + StringBuffer problemSql = new StringBuffer(); + //String problemSql=""; + String callstateSql=""; + String pinjie=""; + String noRight=" CRM_SM_TEL_RECORD s "; + String right= + " ( select * from ( select CALLID ,PRODUCTNAME,CUSTOMER_ID,QUESTION_ID,\n" + + " QUESTION_ANSWER,CUSTOMER_NAME,CUSTOMER_TAX_ID,tel ,MOBILE ,PERSON_TEL, question_content,\n" + + " CONTACT,TEL_DATE ,TEL_PERSON,ENTRY_PERSON ,TEL_RECORD_ID,RECODER_ID,ENTRY_DATE,ORGID,ORGNAME,\n" + + " \n" + + " row_number() over ( PARTITION BY red.customer_id ORDER BY red.entry_date ) as rn from \n" + + " CRM_SM_TEL_RECORD red ) where rn=1 ) s "; + + String userId = SessionHelper.getCurrentUserId(); + params.put("userId", userId); + + //添加精准查询 + if (calltype != null) { + String[] callArrray = calltype.split(","); + + if (callArrray.length == 3) { + //分组查询 查全部 + pinjie=right; + } + if (callArrray.length == 2) { + if (calltype.contains("2")) { + if (calltype.contains("0")) { + typeSql = " and CALLERNO='12366'"; + } + if (calltype.contains("1")) { + typeSql = " and CALLERNO!='12366'"; + } + pinjie=right; + } else { + pinjie=noRight; + } + + } + + if (callArrray.length == 1) { + if (calltype.contains("2")) { + pinjie=right; + } + else{ + if (calltype.contains("0")) { + typeSql = " and CALLERNO='12366'"; + } + if (calltype.contains("1")) { + typeSql = " and CALLERNO!='12366'"; + } + pinjie=noRight; + } + } + + + + } + else{ + pinjie=noRight; + } + + 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 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 " +pinjie+ + "LEFT JOIN CALLSYS_TRECORDFAILINFO c ON c.CALLID = s.CALLID " + + " left join tel_dic_city d on c.calleeno=d.callee_no " + + " where 1=1 "; + + + 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 (phone != null) { + phoneSql = " and (s.MOBILE like '%" + phone + "%' or c.CALLERNO='" + phone + "')"; + } + if (empno != null) { + empnoSql = " and c.AGENTID like '%" + empno + "%'"; + } + if (manyi != null) { + String[] manyiArrray = manyi.split(","); + if(manyi.contains("4")){ + if(manyiArrray.length==1) { + manyiSql.append(" and c.satisfaction is null ") ; + } + if(manyiArrray.length>1&manyiArrray.length<4){ + manyiSql.append(" and ( c.satisfaction in ("); + for(int i=0;i 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; + } + + + @Request.Post("getlist") public Map getlist(Params params) { String searchbegindate = params.getString("searchbegindate");