NutzCN Logo
问答 wrap怎么传参数
发布于 3182天前 作者 milixiang 2013 次浏览 复制 上一个帖子 下一个帖子
标签:
Cnd.wrap("user_id = @userId and TIMESTAMPDIFF(DAY,dead_line,NOW()) < 7 and TIMESTAMPDIFF(DAY,dead_line,NOW()) >0 and submit_time is null",new HashMap(){{put("userId", getCurrentUser().getId());}}));

这样好像不行

2 回复
Condition cnd = Cnd.wrap("user_id = ${userId} and TIMESTAMPDIFF(DAY,dead_line,NOW()) < 7 and TIMESTAMPDIFF(DAY,dead_line,NOW()) >0 and submit_time is null", new NutMap().setv("userId", 1));
	    System.out.println(cnd);

添加回复
请先登陆
回到顶部