Example #1
0
 @Override
 public List<Tree> findAllItemTree() {
   List<Item> items = itemDao.findItemAll();
   List<Tree> trees = new ArrayList<Tree>();
   for (Item item : items) {
     Tree node = new Tree();
     node.setText(item.getItemName());
     node.setId(item.getItemId());
     node.setPid(item.getParentId());
     trees.add(node);
   }
   return trees;
 }
Example #2
0
 @Override
 public Item findItemById(String itemId) {
   Item item = itemDao.findItemById(itemId);
   return item;
 }
Example #3
0
 @Override
 public List<Item> findItemAll() {
   List<Item> items = itemDao.findItemAll();
   return items;
 }
Example #4
0
 @Override
 public int findCountByItemName(String itemName, String itemId) {
   int count = itemDao.findCountByItemName(itemName, itemId);
   return 0;
 }
Example #5
0
 // 是否含有下级项目
 @Override
 public int findCountItemByParentId(String itemId) {
   int count = itemDao.findCountItemByParentId(itemId);
   return count;
 }
Example #6
0
 // 是否含有附加项目
 @Override
 public int findCountAddtitionalByItemId(String itemId) {
   int count = itemDao.findCountAddtitionalByItemId(itemId);
   return count;
 }
Example #7
0
 @Override
 public void delete(Item item) {
   itemDao.delete(item);
 }
Example #8
0
 @Override
 public void update(Item item) {
   itemDao.update(item);
 }
Example #9
0
 @Override
 public void save(Item item) {
   itemDao.save(item);
 }
Example #10
0
 @Override
 public long findByConditionsCount(Item item) {
   long count = itemDao.findByConditionsCount(item);
   return count;
 }
Example #11
0
 @Override
 public List<Item> findByConditions(Item item, PageUtil page) {
   List<Item> lists = itemDao.findByConditions(item, page);
   return lists;
 }