首页 > 其他 > 详细

mybatis 查询

时间:2018-03-30 12:55:43      阅读:179      评论:0      收藏:0      [点我收藏+]

List<CustomerService> customerlist = customerService.selectByExample(customerexample); 
//如果在customer_service 表有用户的信息,则返回提示
System.out.println("cus:" + (null == customerlist));                      // 如果没有查出数据,customerlist 也不是 null, 可用 isEmpty() 函数判断,输出: cus:false
if (!customerlist.isEmpty()) {
return new JsonResult(false,"该手机号已经是客服号");
}

mybatis 查询

原文:https://www.cnblogs.com/z360519549/p/8675562.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!