Example #1
0
 @Transactional
 public void save(CellMenuList cellMenuList) {
   if (StringUtils.isEmpty(cellMenuList.getId())) {
     cellMenuList.setId(idGenerator.getNextId());
     // cellMenuList.setId(idGenerator.getNextId());
     // cellMenuList.setCreateDate(new Date());
     cellMenuListMapper.insertCellMenuList(cellMenuList);
   } else {
     CellMenuList model = this.getCellMenuList(cellMenuList.getId());
     if (model != null) {
       if (cellMenuList.getTopid() != null) {
         model.setTopid(cellMenuList.getTopid());
       }
       model.setIndexId(cellMenuList.getIndexId());
       cellMenuListMapper.updateCellMenuList(model);
     }
   }
 }
Example #2
0
 /**
  * 根据查询参数获取记录列表
  *
  * @return
  */
 public List<CellMenuList> getCellMenuLists(Map<String, Object> parameter) {
   return cellMenuListMapper.getCellMenuLists(parameter);
 }
Example #3
0
 public CellMenuList getCellMenuList(String id) {
   CellMenuList cellMenuList = cellMenuListMapper.getCellMenuListById(id);
   return cellMenuList;
 }
Example #4
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellMenuListCountByQueryCriteria(CellMenuListQuery query) {
   return cellMenuListMapper.getCellMenuListCountByQueryCriteria(query);
 }
Example #5
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellMenuListCount(Map<String, Object> parameter) {
   return cellMenuListMapper.getCellMenuListCount(parameter);
 }
Example #6
0
 public List<CellMenuList> list(CellMenuListQuery query) {
   query.ensureInitialized();
   List<CellMenuList> list = cellMenuListMapper.getCellMenuListsByQueryCriteria(query);
   return list;
 }
Example #7
0
 public int count(CellMenuListQuery query) {
   query.ensureInitialized();
   return cellMenuListMapper.getCellMenuListCountByQueryCriteria(query);
 }
Example #8
0
 @Transactional
 public void deleteById(String id) {
   cellMenuListMapper.deleteCellMenuListById(id);
 }