修改多选
parent
543cfd6452
commit
a3542ab479
Binary file not shown.
|
@ -10,15 +10,15 @@
|
||||||
<input widget="edit" name="phone" label="来电号码"/>
|
<input widget="edit" name="phone" label="来电号码"/>
|
||||||
<input widget="edit" name="custname" label="客户名称"/>
|
<input widget="edit" name="custname" label="客户名称"/>
|
||||||
<input widget="edit" name="empno" 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"
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||||
showNullItem="true" />
|
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"
|
emptyText="请选择" textField="text" valueField="text" allowInput="false"
|
||||||
showNullItem="true" />
|
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"
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||||
showNullItem="true" />
|
showNullItem="true" />
|
||||||
<input name="callstate" widget=combox allowinput="f" style="width: 200px;" 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"
|
<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="呼叫类型">
|
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="满意度">
|
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-search" onclick="search()">查询</a>
|
||||||
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
||||||
|
|
Binary file not shown.
|
@ -1,3 +1,3 @@
|
||||||
#save ini
|
#save ini
|
||||||
#Tue Nov 14 23:19:56 CST 2023
|
#Wed Nov 22 00:59:05 CST 2023
|
||||||
deploystamp=1612237236000
|
deploystamp=1612237236000
|
||||||
|
|
|
@ -10,15 +10,15 @@
|
||||||
<input widget="edit" name="phone" label="来电号码"/>
|
<input widget="edit" name="phone" label="来电号码"/>
|
||||||
<input widget="edit" name="custname" label="客户名称"/>
|
<input widget="edit" name="custname" label="客户名称"/>
|
||||||
<input widget="edit" name="empno" 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"
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||||
showNullItem="true" />
|
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"
|
emptyText="请选择" textField="text" valueField="text" allowInput="false"
|
||||||
showNullItem="true" />
|
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"
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||||||
showNullItem="true" />
|
showNullItem="true" />
|
||||||
<input name="callstate" widget=combox allowinput="f" style="width: 200px;" 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"
|
<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="呼叫类型">
|
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="满意度">
|
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-search" onclick="search()">查询</a>
|
||||||
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
||||||
|
|
|
@ -41,11 +41,15 @@ public class BureauAction {
|
||||||
String typeSql = "";
|
String typeSql = "";
|
||||||
String phoneSql = "";
|
String phoneSql = "";
|
||||||
String empnoSql = "";
|
String empnoSql = "";
|
||||||
String manyiSql = "";
|
//String manyiSql = "";
|
||||||
String companySql = "";
|
StringBuffer manyiSql = new StringBuffer();
|
||||||
|
// String companySql = "";
|
||||||
|
StringBuffer companySql = new StringBuffer();
|
||||||
String custnameSql="";
|
String custnameSql="";
|
||||||
String diquSql="";
|
StringBuffer diquSql = new StringBuffer();
|
||||||
String problemSql="";
|
//String diquSql="";
|
||||||
|
StringBuffer problemSql = new StringBuffer();
|
||||||
|
//String problemSql="";
|
||||||
String callstateSql="";
|
String callstateSql="";
|
||||||
String pinjie="";
|
String pinjie="";
|
||||||
String noRight=" CRM_SM_TEL_RECORD s ";
|
String noRight=" CRM_SM_TEL_RECORD s ";
|
||||||
|
@ -155,16 +159,55 @@ public class BureauAction {
|
||||||
empnoSql = " and c.AGENTID like '%" + empno + "%'";
|
empnoSql = " and c.AGENTID like '%" + empno + "%'";
|
||||||
}
|
}
|
||||||
if (manyi != null) {
|
if (manyi != null) {
|
||||||
if (manyi.equals("4")) {
|
String[] manyiArrray = manyi.split(",");
|
||||||
manyiSql = " and c.satisfaction is null ";
|
if(manyi.contains("4")){
|
||||||
} else {
|
if(manyiArrray.length==1) {
|
||||||
manyiSql = " and c.satisfaction = '" + manyi + "'";
|
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) {
|
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) {
|
if (custname != null) {
|
||||||
|
@ -176,15 +219,34 @@ public class BureauAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diqu != null) {
|
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) {
|
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");
|
List<Map> records = (List<Map>) map.get("records");
|
||||||
for (Map m : records) {
|
for (Map m : records) {
|
||||||
m.put("path", "http://10.1.1.54:8082" + m.get("path"));
|
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);
|
List<Map> returns = DbHelper.getDbService().queryMapListById("orgname.getOrgListByUser", params);
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
StringBuffer sj = new StringBuffer();
|
// StringBuffer sj = new StringBuffer();
|
||||||
if (returns.size() != 0) {
|
if (returns.size() != 0) {
|
||||||
sb.append("(s.ORGID in (");
|
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++) {
|
for (int i = 0; i < returns.size(); i++) {
|
||||||
sb.append("'" + returns.get(i).get("text") + "'");
|
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) {
|
if (i < returns.size() - 1) {
|
||||||
sb.append(",");
|
sb.append(",");
|
||||||
sj.append(",");
|
// sj.append(",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.append(") or s.ORGNAME is null ) ");
|
sb.append(") or s.ORGNAME is null ) ");
|
||||||
sj.append(") ");
|
// sj.append(") ");
|
||||||
} else {
|
} else {
|
||||||
sb.append("1=2");
|
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.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 " +
|
"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 " +
|
"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 timeSql = "";
|
||||||
String typeSql = "";
|
String typeSql = "";
|
||||||
|
@ -295,6 +357,7 @@ public class BureauAction {
|
||||||
|
|
||||||
}
|
}
|
||||||
Map map = DbHelper.getDbService().queryPageMapList(sql + timeSql + typeSql + phoneSql + empnoSql + companySql + manyiSql+diquSql, params);
|
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");
|
List<Map> records = (List<Map>) map.get("records");
|
||||||
for (Map m : records) {
|
for (Map m : records) {
|
||||||
m.put("path", "http://10.1.1.54:8082" + m.get("path"));
|
m.put("path", "http://10.1.1.54:8082" + m.get("path"));
|
||||||
|
|
Loading…
Reference in New Issue