示例#1
0
 @Override
 public void deleteGoodsAreaById(long id) {
   GoodsArea ga = new GoodsArea();
   ga.setIsDel(127);
   ga.setId(id);
   goodsAreaMapper.updateByPrimaryKeySelective(ga);
 }
示例#2
0
 public Pager<List<GoodsArea>> selectAreaPager(long goodsId) {
   GoodsAreaExample e = new GoodsAreaExample();
   e.createCriteria().andGoodsIdEqualTo(goodsId).andIsDelEqualTo(1);
   List<GoodsArea> list = goodsAreaMapper.selectByExample(e);
   return new Pager<List<GoodsArea>>(list, (long) list.size());
 }