@RequiresUser
@At("/queryqianrendan") //结算签认单查询
public Object queryqianrendan(@Param("monthstr")String monthstr,@Param("baoshenxuhao")String baoshenxuhao,@Param("shenbaoleixing")String shenbaoleixing,@Param("..")Pager pager) {
Cnd cnd = Cnd.where("1", "=", "1");//.and("RSTATU","=","0").and("jsqrid","=","0");
/* if(!Strings.isBlank(monthstr)&&monthstr.length()>4){
cnd.and("monthstr", "=", monthstr);
}
if(!Strings.isBlank(monthstr)&&monthstr.length()==4){
cnd.and("niandu", "=", monthstr);
}*/
if(!Strings.isBlank(baoshenxuhao)){
cnd.and("hetongxuhao", "=", baoshenxuhao);
}
String zoneg = 1000;
cnd.and(new Static("1=1 order by danweicode desc"));
QueryResult qr = new QueryResult();
List fetchLinks = dao.fetchLinks(dao.query(Jiesuanqianren.class, cnd, pager),null);
qr.setList(fetchLinks);
pager.setRecordCount(dao.count(Jiesuanqianren.class,cnd));
qr.setPager(pager);
return qr;//默认分页是第1页,每页20条
}
如以代码 ,我想把zoneg 这个参数传到前台使用,如何传,高手看下
10 回复
@RequiresUser
@At("/queryqianrendan") //结算签认单查询
public Object queryqianrendan(@Param("monthstr")String monthstr,@Param("baoshenxuhao")String baoshenxuhao,@Param("shenbaoleixing")String shenbaoleixing,@Param("..")Pager pager) {
Cnd cnd = Cnd.where("1", "=", "1");//.and("RSTATU","=","0").and("jsqrid","=","0");
/* if(!Strings.isBlank(monthstr)&&monthstr.length()>4){
cnd.and("monthstr", "=", monthstr);
}
if(!Strings.isBlank(monthstr)&&monthstr.length()==4){
cnd.and("niandu", "=", monthstr);
}*/
if(!Strings.isBlank(baoshenxuhao)){
cnd.and("hetongxuhao", "=", baoshenxuhao);
}
String zoneg = 1000;
cnd.and(new Static("1=1 order by danweicode desc"));
QueryResult qr = new QueryResult();
List fetchLinks = dao.fetchLinks(dao.query(Jiesuanqianren.class, cnd, pager),null);
qr.setList(fetchLinks);
pager.setRecordCount(dao.count(Jiesuanqianren.class,cnd));
qr.setPager(pager);
return qr;//默认分页是第1页,每页20条
}
如以代码 ,我想把zoneg 这个参数传到前台使用,如何传,高手看下
function data_reload() {
$.ajax({
url : base + "/jiesuanqianren/queryqianrendan",
data : $("#dt_query_form").serialize(),
dataType : "json",
success : function(data) {
$("#dttable tbody").html("");
//var zong = 0;
for (var i=0;i<data.list.length;i++) {
返加之后data.list.length;这个会报错,这个么情况,看起也没什么问题,那里出问题了
添加回复
请先登陆