标签:end ISE int mic status search use sql sina
前台框架:
layui.use([‘layer‘,‘laydate‘], function(){
var layer = layui.layer;
var laydate = layui.laydate;
laydate.render({
elem: ‘#keywords‘,
type: ‘datetime‘,
range: true
});
});
如何数据传入后台
public PageTableResponse ListNew2(PageTableRequest strCon) {
PublicWhere where = new PublicWhere(strCon);
String key[] = new String[50];
if(!where.getKeywords().isEmpty()) {
String keywords = where.getKeywords();
StringBuilder year = new StringBuilder(keywords);
year.replace(20,21,"~");
String s = year.toString();
key = s.split("~",2);
where.setKeywords(key[0]);
where.setKeywords1(key[1]);
}
将值传入后台通过sql查询
and t.annsetwarryanty_begintime >= #{keywords} and t.annsetwarryanty_endtime <= #{keywords1}
and t.status in
#{item}
and t.status != #{notStatus}
标签:end ISE int mic status search use sql sina
原文地址:https://www.cnblogs.com/pdxt666/p/14083465.html