Esempio n. 1
0
 public void recover(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.WAIT);
   goodsDao.edit(entity);
 }
Esempio n. 2
0
 public void trash(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.ERROR);
   goodsDao.edit(entity);
 }
Esempio n. 3
0
 @SuppressWarnings("unchecked")
 public List<Goods> findTrash() {
   final Goods model = new Goods();
   model.setStatus(GoodsStatus.ERROR);
   return goodsDao.find(model);
 }
Esempio n. 4
0
 public void process(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.SUCCESS);
   goodsDao.edit(entity);
 }
Esempio n. 5
0
 @SuppressWarnings("unchecked")
 public List<Goods> findUnProcess() {
   final Goods model = new Goods();
   model.setStatus(GoodsStatus.WAIT);
   return goodsDao.find(model);
 }