Пример #1
0
 public void trash(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.ERROR);
   goodsDao.edit(entity);
 }
Пример #2
0
 public void recover(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.WAIT);
   goodsDao.edit(entity);
 }
Пример #3
0
 public void process(Long id) {
   final Goods entity = goodsDao.find(id);
   entity.setStatus(GoodsStatus.SUCCESS);
   goodsDao.edit(entity);
 }
Пример #4
0
 @SuppressWarnings("unchecked")
 public List<Goods> findTrash() {
   final Goods model = new Goods();
   model.setStatus(GoodsStatus.ERROR);
   return goodsDao.find(model);
 }
Пример #5
0
 @SuppressWarnings("unchecked")
 public List<Goods> findUnProcess() {
   final Goods model = new Goods();
   model.setStatus(GoodsStatus.WAIT);
   return goodsDao.find(model);
 }
Пример #6
0
 public List<Goods> findValidate() {
   return goodsDao.findValidate();
 }
Пример #7
0
 public List<Goods> findAll() {
   return goodsDao.findAll();
 }