| | |
| | | package com.xzx.gc.shop.service; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.convert.Convert; |
| | | import cn.hutool.core.date.DateUnit; |
| | |
| | | public void updateGoods(UpdateGoodsDto model) { |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
| | | ScoreGoods scoreGoods = objectMapper.convertValue(model, ScoreGoods.class); |
| | | // ScoreGoods scoreGoods = objectMapper.convertValue(model, ScoreGoods.class); |
| | | ScoreGoods scoreGoods = BeanUtil.copyProperties(model, ScoreGoods.class); |
| | | scoreGoodsMapper.updateByPrimaryKey(scoreGoods); |
| | | |
| | | //轮播图 |