Пример #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);
     }
   }
 }
Пример #2
0
 /**
  * 根据查询参数获取记录列表
  *
  * @return
  */
 public List<CellMenuList> getCellMenuLists(Map<String, Object> parameter) {
   return cellMenuListMapper.getCellMenuLists(parameter);
 }
Пример #3
0
 public CellMenuList getCellMenuList(String id) {
   CellMenuList cellMenuList = cellMenuListMapper.getCellMenuListById(id);
   return cellMenuList;
 }
Пример #4
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellMenuListCountByQueryCriteria(CellMenuListQuery query) {
   return cellMenuListMapper.getCellMenuListCountByQueryCriteria(query);
 }
Пример #5
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellMenuListCount(Map<String, Object> parameter) {
   return cellMenuListMapper.getCellMenuListCount(parameter);
 }
Пример #6
0
 public List<CellMenuList> list(CellMenuListQuery query) {
   query.ensureInitialized();
   List<CellMenuList> list = cellMenuListMapper.getCellMenuListsByQueryCriteria(query);
   return list;
 }
Пример #7
0
 public int count(CellMenuListQuery query) {
   query.ensureInitialized();
   return cellMenuListMapper.getCellMenuListCountByQueryCriteria(query);
 }
Пример #8
0
 @Transactional
 public void deleteById(String id) {
   cellMenuListMapper.deleteCellMenuListById(id);
 }