예제 #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();
 }