|
@ -52,9 +52,9 @@ import com.yihu.jw.rm.base.BaseRequestMapping;
|
|
import com.yihu.jw.util.common.FileUtil;
|
|
import com.yihu.jw.util.common.FileUtil;
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
import com.yihu.jw.utils.StringUtil;
|
|
|
|
import com.yihu.jw.utils.hibernate.HibenateUtils;
|
|
import com.yihu.jw.utils.hibernate.HibenateUtils;
|
|
import com.yihu.jw.wechat.service.WxAccessTokenService;
|
|
import com.yihu.jw.wechat.service.WxAccessTokenService;
|
|
|
|
import com.ylzinfo.onepay.sdk.utils.StringUtil;
|
|
import org.apache.http.NameValuePair;
|
|
import org.apache.http.NameValuePair;
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@ -1631,7 +1631,7 @@ public class ImService {
|
|
* @param scoreContent
|
|
* @param scoreContent
|
|
* @param type
|
|
* @param type
|
|
*/
|
|
*/
|
|
public void evaluationByConsultCode(String consult, String scoreContent, Integer type) throws Exception{
|
|
|
|
|
|
public void evaluationByConsultCode(String consult, String scoreContent, Integer type,String pennantList) throws Exception{
|
|
JSONArray jsonArray = JSONArray.parseArray(scoreContent);
|
|
JSONArray jsonArray = JSONArray.parseArray(scoreContent);
|
|
|
|
|
|
Integer totalScore = 0;
|
|
Integer totalScore = 0;
|
|
@ -1971,7 +1971,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq >= str_to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
}
|
|
}
|
|
@ -1980,7 +1985,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq <= str_to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
}
|
|
}
|
|
@ -2042,7 +2052,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq >= str_to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
}
|
|
}
|
|
@ -2051,7 +2066,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq <= str_to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
}
|
|
}
|
|
@ -2354,7 +2374,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq >= str_to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
}
|
|
}
|
|
@ -2363,7 +2388,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq <= str_to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
}
|
|
}
|
|
@ -2428,7 +2458,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if(!StringUtils.isEmpty(start_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq >= str_to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
sql +=" and a.czrq >= '"+start_time+"'";
|
|
}
|
|
}
|
|
@ -2436,7 +2471,12 @@ public class ImService {
|
|
|
|
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if(!StringUtils.isEmpty(end_time)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and a.czrq <= str_to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
sql +=" and a.czrq <= '"+end_time+"'";
|
|
}
|
|
}
|
|
@ -2596,7 +2636,7 @@ public class ImService {
|
|
|
|
|
|
String scoreContent= "[{\"scoreType\":\"1\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"2\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"3\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"4\",\"score\":0,\"content\":\"五星好评!\"}]";
|
|
String scoreContent= "[{\"scoreType\":\"1\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"2\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"3\",\"score\":100,\"content\":\"\"},{\"scoreType\":\"4\",\"score\":0,\"content\":\"五星好评!\"}]";
|
|
|
|
|
|
this.evaluationByConsultCode(consult.getId(),scoreContent,2);
|
|
|
|
|
|
this.evaluationByConsultCode(consult.getId(),scoreContent,2,"");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -2737,7 +2777,12 @@ public class ImService {
|
|
//视频复诊
|
|
//视频复诊
|
|
sql =sql +"AND op.type=2 AND op.outpatient_type=1 ";
|
|
sql =sql +"AND op.type=2 AND op.outpatient_type=1 ";
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
sql +=" and op.register_date >= to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
|
|
if (flag){
|
|
|
|
sql +=" and op.register_date >= str_to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}else {
|
|
|
|
sql +=" and op.register_date >= to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')";
|
|
|
|
}
|
|
|
|
|
|
}else {
|
|
}else {
|
|
sql +=" AND op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' ";
|
|
sql +=" AND op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' ";
|
|
}
|
|
}
|