| | |
| | | PageHelper.startPage(model.getPage(), model.getLimit()); |
| | | |
| | | List<QueryGoodsListVo> maps = scoreGoodsMapper.queryGoodsList(name,delFlag); |
| | | if(CollUtil.isNotEmpty(maps)){ |
| | | for(QueryGoodsListVo queryGoodsListVo : maps){ |
| | | long id = queryGoodsListVo.getId(); |
| | | Integer stock = scoreGoodsSkuMapper.selectScoreGoodsSkuMapperByGoodId(id); |
| | | queryGoodsListVo.setStock(stock); |
| | | } |
| | | } |
| | | PageInfo pageInfo = new PageInfo(maps); |
| | | int count = Convert.toInt(pageInfo.getTotal()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
| | | // ScoreGoods scoreGoods = objectMapper.convertValue(model, ScoreGoods.class); |
| | | ScoreGoods scoreGoods = BeanUtil.copyProperties(model, ScoreGoods.class); |
| | | log.info("抢购时间:{}, {}", scoreGoods.getQgStartTime(), scoreGoods.getQgEndTime()); |
| | | scoreGoodsMapper.updateByPrimaryKey(scoreGoods); |
| | | |
| | | //轮播图 |