Package com.eatle.persistent.pojo.merchant

Examples of com.eatle.persistent.pojo.merchant.SchoolRestaurantCriteria.createCriteria()


  @Override
  public Pagination findPagination(Map<String, Object> queryMap, int currentPage, int pageSize)
  {
    SchoolRestaurantCriteria schoolRestaurantCriteria = new SchoolRestaurantCriteria();
    Criteria criteria = schoolRestaurantCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap.containsKey("restaurantId"))
      {
View Full Code Here


      json.put(DwzAjaxJsonUtil.KEY_MESSAGE, "操作失败!");
    }
    else
    {
      SchoolRestaurantCriteria src = new SchoolRestaurantCriteria();
      com.eatle.persistent.pojo.merchant.SchoolRestaurantCriteria.Criteria criteria = src.createCriteria();
      criteria.andSchoolIdEqualTo(schoolRestaurant.getSchoolId());
      criteria.andRestaurantIdEqualTo(schoolRestaurant.getRestaurantId());
      if(schoolRestaurantService.findByCriteria(src).size() < 1)
      {
        schoolRestaurantService.add(schoolRestaurant);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.