Merge remote-tracking branch 'origin/dev' into dev

yun-zuoyi
crish 6 years ago
commit ff2fb39e0a

@ -47,8 +47,8 @@ public class DdlPreparedPack {
endDate += " 23:59:59"; endDate += " 23:59:59";
} }
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, startDate); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, startDate);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, endDate); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, endDate);
} }
/** /**
@ -71,7 +71,7 @@ public class DdlPreparedPack {
String[] time = date.split(","); String[] time = date.split(",");
if (time.length == 1) { if (time.length == 1) {
//只有开始日期,没有结束日期 //只有开始日期,没有结束日期
packBean.addColumnQuery(columnName,"and model." + columnName + " like :m_" + columnName, "%" + time[0] + "%"); packBean.addColumnQuery(columnName," and model." + columnName + " like :m_" + columnName, "%" + time[0] + "%");
} else if (time.length == 2 && ((time[0] != null && time[0].trim().length() > 0) } else if (time.length == 2 && ((time[0] != null && time[0].trim().length() > 0)
|| (time[1] != null & time[1].trim().length() > 0))) { || (time[1] != null & time[1].trim().length() > 0))) {
if (time[0] == null || time[0].trim().length() == 0) { if (time[0] == null || time[0].trim().length() == 0) {
@ -90,16 +90,16 @@ public class DdlPreparedPack {
if (isShowTime && time[1].trim().length() <= 11) { if (isShowTime && time[1].trim().length() <= 11) {
time[1] += " 23:59:59"; time[1] += " 23:59:59";
} }
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, time[0]); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, time[0]);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, time[1]); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, time[1]);
} else { } else {
if (showTaday) { if (showTaday) {
if (isShowTime) { if (isShowTime) {
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, today + " 00:00:00"); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, today + " 00:00:00");
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, today + " 23:59:59"); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, today + " 23:59:59");
} else { } else {
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, today); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, today);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, today); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, today);
} }
} }
} }

Loading…
Cancel
Save