修改多选
parent
543cfd6452
commit
a3542ab479
Binary file not shown.
|
@ -10,15 +10,15 @@
|
|||
<input widget="edit" name="phone" label="来电号码"/>
|
||||
<input widget="edit" name="custname" label="客户名称"/>
|
||||
<input widget="edit" name="empno" label="工号"/>
|
||||
<input widget="combox" name="company" label="税局" url="rush/bureau/getOrgListByUser"
|
||||
<input widget="combox" name="company" label="税局" url="rush/bureau/getOrgListByUser" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||
showNullItem="true" />
|
||||
|
||||
<input widget="combox" name="problem" label="问题分类" url="rush/bureau/getproblemList"
|
||||
<input widget="combox" name="problem" label="问题分类" url="rush/bureau/getproblemList" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="text" allowInput="false"
|
||||
showNullItem="true" />
|
||||
|
||||
<input widget="combox" name="diqu" label="地区" url="rush/bureau/getDiquListByUser"
|
||||
<input widget="combox" name="diqu" label="地区" url="rush/bureau/getDiquListByUser" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||
showNullItem="true" />
|
||||
<input name="callstate" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
||||
|
@ -26,7 +26,7 @@
|
|||
<input name="calltype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true" multiSelect="true"
|
||||
data="[{id:'0',text:'12366'},{id:'1',text:'95113'},{id:'2',text:'精准查询'}]" emptyText="请选择" label="呼叫类型">
|
||||
|
||||
<input name="manyidu" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
||||
<input name="manyidu" widget=combox allowinput="f" style="width: 200px;" showNullItem="true" multiSelect="true"
|
||||
data="[{id:'1',text:'非常满意'},{id:'2',text:'满意'},{id:'3',text:'不满意'},{id:'4',text:'暂未评价'}]" emptyText="请选择" label="满意度">
|
||||
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||||
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
||||
|
|
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
#save ini
|
||||
#Tue Nov 14 23:19:56 CST 2023
|
||||
#Wed Nov 22 00:59:05 CST 2023
|
||||
deploystamp=1612237236000
|
||||
|
|
|
@ -10,15 +10,15 @@
|
|||
<input widget="edit" name="phone" label="来电号码"/>
|
||||
<input widget="edit" name="custname" label="客户名称"/>
|
||||
<input widget="edit" name="empno" label="工号"/>
|
||||
<input widget="combox" name="company" label="税局" url="rush/bureau/getOrgListByUser"
|
||||
<input widget="combox" name="company" label="税局" url="rush/bureau/getOrgListByUser" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||
showNullItem="true" />
|
||||
|
||||
<input widget="combox" name="problem" label="问题分类" url="rush/bureau/getproblemList"
|
||||
<input widget="combox" name="problem" label="问题分类" url="rush/bureau/getproblemList" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="text" allowInput="false"
|
||||
showNullItem="true" />
|
||||
|
||||
<input widget="combox" name="diqu" label="地区" url="rush/bureau/getDiquListByUser"
|
||||
<input widget="combox" name="diqu" label="地区" url="rush/bureau/getDiquListByUser" multiSelect="true"
|
||||
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||
showNullItem="true" />
|
||||
<input name="callstate" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
||||
|
@ -26,7 +26,7 @@
|
|||
<input name="calltype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true" multiSelect="true"
|
||||
data="[{id:'0',text:'12366'},{id:'1',text:'95113'},{id:'2',text:'精准查询'}]" emptyText="请选择" label="呼叫类型">
|
||||
|
||||
<input name="manyidu" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
||||
<input name="manyidu" widget=combox allowinput="f" style="width: 200px;" showNullItem="true" multiSelect="true"
|
||||
data="[{id:'1',text:'非常满意'},{id:'2',text:'满意'},{id:'3',text:'不满意'},{id:'4',text:'暂未评价'}]" emptyText="请选择" label="满意度">
|
||||
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||||
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
||||
|
|
|
@ -41,11 +41,15 @@ public class BureauAction {
|
|||
String typeSql = "";
|
||||
String phoneSql = "";
|
||||
String empnoSql = "";
|
||||
String manyiSql = "";
|
||||
String companySql = "";
|
||||
//String manyiSql = "";
|
||||
StringBuffer manyiSql = new StringBuffer();
|
||||
// String companySql = "";
|
||||
StringBuffer companySql = new StringBuffer();
|
||||
String custnameSql="";
|
||||
String diquSql="";
|
||||
String problemSql="";
|
||||
StringBuffer diquSql = new StringBuffer();
|
||||
//String diquSql="";
|
||||
StringBuffer problemSql = new StringBuffer();
|
||||
//String problemSql="";
|
||||
String callstateSql="";
|
||||
String pinjie="";
|
||||
String noRight=" CRM_SM_TEL_RECORD s ";
|
||||
|
@ -155,16 +159,55 @@ public class BureauAction {
|
|||
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 + "'";
|
||||
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<manyiArrray.length;i++){
|
||||
manyiSql.append("'"+ manyiArrray[i]+"'");
|
||||
if (i < manyiArrray.length - 1) {
|
||||
manyiSql.append(",");
|
||||
}
|
||||
}
|
||||
manyiSql.append(") or c.satisfaction is null )");
|
||||
}
|
||||
if(manyiArrray.length==4){
|
||||
manyiSql.append("");
|
||||
}
|
||||
}
|
||||
else{
|
||||
manyiSql.append(" and c.satisfaction in (");
|
||||
for(int i=0;i<manyiArrray.length;i++){
|
||||
manyiSql.append("'"+ manyiArrray[i]+"'");
|
||||
if (i < manyiArrray.length - 1) {
|
||||
manyiSql.append(",");
|
||||
}
|
||||
}
|
||||
manyiSql.append(")");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (company != null) {
|
||||
companySql = " and d.city_name='" + company + "'";
|
||||
|
||||
companySql.append(" and d.city_name in (");
|
||||
String[] companyArrray = company.split(",");
|
||||
for(int i=0;i<companyArrray.length;i++){
|
||||
companySql.append("'"+ companyArrray[i]+"'");
|
||||
if (i < companyArrray.length - 1) {
|
||||
companySql.append(",");
|
||||
}
|
||||
}
|
||||
companySql.append(")");
|
||||
// companySql = " and d.city_name='" + company + "'";
|
||||
|
||||
}
|
||||
if (custname != null) {
|
||||
|
@ -176,15 +219,34 @@ public class BureauAction {
|
|||
}
|
||||
|
||||
if (diqu != null) {
|
||||
diquSql = " and s.ORGID='" + diqu + "'";
|
||||
diquSql.append(" and s.ORGID in (");
|
||||
String[] diquArrray = diqu.split(",");
|
||||
for(int i=0;i<diquArrray.length;i++){
|
||||
diquSql.append("'"+ diquArrray[i]+"'");
|
||||
if (i < diquArrray.length - 1) {
|
||||
diquSql.append(",");
|
||||
}
|
||||
}
|
||||
diquSql.append(")");
|
||||
|
||||
// diquSql = " and s.ORGID='" + diqu + "'";
|
||||
|
||||
}
|
||||
if (problem != null) {
|
||||
problemSql = " and s.PRODUCTNAME='" + problem + "'";
|
||||
problemSql.append(" and s.PRODUCTNAME in (");
|
||||
String[] problemArrray = problem.split(",");
|
||||
for(int i=0;i<problemArrray.length;i++){
|
||||
problemSql.append("'"+ problemArrray[i]+"'");
|
||||
if (i < problemArrray.length - 1) {
|
||||
problemSql.append(",");
|
||||
}
|
||||
}
|
||||
problemSql.append(")");
|
||||
// problemSql = " and s.PRODUCTNAME='" + problem + "'";
|
||||
|
||||
}
|
||||
|
||||
Map map = DbHelper.getDbService().queryPageMapList(sql + timeSql + typeSql + phoneSql + empnoSql + manyiSql + companySql+custnameSql+diquSql+problemSql+callstateSql, params);
|
||||
Map map = DbHelper.getDbService().queryPageMapList(sql + timeSql + typeSql + phoneSql + empnoSql + manyiSql + companySql+custnameSql+diquSql+problemSql+callstateSql+" order by c.BEGINTIME", params);
|
||||
List<Map> records = (List<Map>) map.get("records");
|
||||
for (Map m : records) {
|
||||
m.put("path", "http://10.1.1.54:8082" + m.get("path"));
|
||||
|
@ -232,20 +294,20 @@ public class BureauAction {
|
|||
|
||||
List<Map> returns = DbHelper.getDbService().queryMapListById("orgname.getOrgListByUser", params);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
StringBuffer sj = new StringBuffer();
|
||||
// StringBuffer sj = new StringBuffer();
|
||||
if (returns.size() != 0) {
|
||||
sb.append("(s.ORGID in (");
|
||||
sj.append(" or d.city_name in (");
|
||||
// sj.append(" or d.city_name in (");
|
||||
for (int i = 0; i < returns.size(); i++) {
|
||||
sb.append("'" + returns.get(i).get("text") + "'");
|
||||
sj.append("'" + returns.get(i).get("text") + "'");
|
||||
// sj.append("'" + returns.get(i).get("text") + "'");
|
||||
if (i < returns.size() - 1) {
|
||||
sb.append(",");
|
||||
sj.append(",");
|
||||
// sj.append(",");
|
||||
}
|
||||
}
|
||||
sb.append(") or s.ORGNAME is null ) ");
|
||||
sj.append(") ");
|
||||
// sj.append(") ");
|
||||
} else {
|
||||
sb.append("1=2");
|
||||
}
|
||||
|
@ -256,7 +318,7 @@ public class BureauAction {
|
|||
"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()+sj;
|
||||
"LEFT JOIN CRM_SM_TEL_RECORD s ON c.CALLID = s.CALLID where c.CALLERNO='12366' and " + sb.toString();
|
||||
|
||||
String timeSql = "";
|
||||
String typeSql = "";
|
||||
|
@ -295,6 +357,7 @@ public class BureauAction {
|
|||
|
||||
}
|
||||
Map map = DbHelper.getDbService().queryPageMapList(sql + timeSql + typeSql + phoneSql + empnoSql + companySql + manyiSql+diquSql, params);
|
||||
System.out.println(sql + timeSql + typeSql + phoneSql + empnoSql + companySql + manyiSql+diquSql);
|
||||
List<Map> records = (List<Map>) map.get("records");
|
||||
for (Map m : records) {
|
||||
m.put("path", "http://10.1.1.54:8082" + m.get("path"));
|
||||
|
|
Loading…
Reference in New Issue