This commit is contained in:
Junling Bu
2019-11-24 15:17:06 +08:00
parent ed9f946289
commit e211b61ded

View File

@@ -23,6 +23,7 @@ public class LitemallUserFormIdService {
LitemallUserFormidExample example = new LitemallUserFormidExample();
//符合找到该用户记录且可用次数大于1且还未过期
example.or().andOpenidEqualTo(openId).andExpireTimeGreaterThan(LocalDateTime.now());
example.setOrderByClause("add_time desc");
return formidMapper.selectOneByExample(example);
}