diff --git a/contact-center/app/src/main/resources/WEB-INF/data/mdx/coment.xml b/contact-center/app/src/main/resources/WEB-INF/data/mdx/coment.xml
index 38a05dbb..f0d1305d 100644
--- a/contact-center/app/src/main/resources/WEB-INF/data/mdx/coment.xml
+++ b/contact-center/app/src/main/resources/WEB-INF/data/mdx/coment.xml
@@ -4,7 +4,7 @@
AND agentskill = '${skill!''}'#if> <#if agent?? && agent!=""> AND agentno = '${agent!''}'#if> <#if orgi?? && orgi!=""> AND orgi = '${orgi!''}'#if> <#if begin?? && begin!=""> AND satistime >= str_to_date('${begin!''}', '%Y-%m-%d %H:%i:%s')#if> <#if end?? && end!=""> AND satistime <= str_to_date('${end!''} 23:59:59', '%Y-%m-%d %H:%i:%s')#if>
+ select * from uk_agentservice where 1 = 1 <#if skill?? && skill!=""> AND agentskill = '${skill!''}'#if> <#if agent?? && agent!=""> AND agentno = '${agent!''}'#if> <#if orgi?? && orgi!=""> AND orgi = '${orgi!''}'#if> <#if begin?? && begin!=""> AND satistime >= str_to_date('${begin!''}', '%Y-%m-%d %H:%i:%s')#if> <#if end?? && end!=""> AND satistime <= str_to_date('${end!''} 23:59:59', '%Y-%m-%d %H:%i:%s')#if>
]]>
@@ -25,9 +25,9 @@
- date_format(agentservice.createtime,'%Y-%m-%d')
- date_format(agentservice.createtime,'%Y-%m-%d')
- TO_DATE(agentservice.createtime,'YYYY-MM-DD')
+ date_format(agentservice.satistime,'%Y-%m-%d')
+ date_format(agentservice.satistime,'%Y-%m-%d')
+ TO_DATE(agentservice.satistime,'YYYY-MM-DD')
diff --git a/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xls b/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xls
deleted file mode 100644
index 3201ed19..00000000
Binary files a/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xls and /dev/null differ
diff --git a/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xlsx b/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xlsx
new file mode 100644
index 00000000..5a63071c
Binary files /dev/null and b/contact-center/app/src/main/resources/WEB-INF/data/templates/contacts_template.xlsx differ
diff --git a/contact-center/app/src/main/resources/templates/apps/business/contacts/detail.html b/contact-center/app/src/main/resources/templates/apps/business/contacts/detail.html
index 94716653..ce54ccc4 100644
--- a/contact-center/app/src/main/resources/templates/apps/business/contacts/detail.html
+++ b/contact-center/app/src/main/resources/templates/apps/business/contacts/detail.html
@@ -84,7 +84,7 @@