| | |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.utils.bean.BeanUtils; |
| | | import com.ruoyi.common.core.utils.uuid.IdUtils; |
| | | import com.ruoyi.common.security.utils.CodeFactoryUtil; |
| | | import com.ruoyi.goods.domain.dto.*; |
| | | import com.ruoyi.goods.domain.pojo.goods.GoodsTotal; |
| | | import com.ruoyi.goods.domain.vo.*; |
| | |
| | | import com.ruoyi.system.api.domain.poji.goods.Goods; |
| | | import com.ruoyi.system.api.domain.poji.goods.GoodsFile; |
| | | import com.ruoyi.system.api.domain.poji.goods.ShopGoods; |
| | | import com.ruoyi.system.api.domain.vo.MgtSelectGoodsPageVo; |
| | | import com.ruoyi.system.api.service.RemoteConfigService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | goodsId = IdUtils.simpleUUID(); |
| | | goods.setGoodsId(goodsId); |
| | | goods.setDelFlag(0); |
| | | goods.setGoodsNo(CodeFactoryUtil.getGoodsNo()); |
| | | goods.setCreateTime(new Date()); |
| | | goods.setCreateUserId(mgtGoodsEditDto.getUserId()); |
| | | newGoods = true; |
| | |
| | | public void deleteGoodsTag(String goodsTag){ |
| | | goodsMapper.deleteGoodsTag(goodsTag); |
| | | } |
| | | |
| | | /** |
| | | * @description 通过id获取商品列表 |
| | | * @author jqs |
| | | * @date 2023/6/13 15:55 |
| | | * @param goodsIds |
| | | * @return List<Goods> |
| | | */ |
| | | @Override |
| | | public List<Goods> listGoodsByGoodsId(String goodsIds){ |
| | | return goodsMapper.listGoodsByGoodsId(goodsIds); |
| | | } |
| | | |
| | | /** |
| | | * @description 分页获取商品选择列表 |
| | | * @author jqs |
| | | * @date 2023/6/13 16:33 |
| | | * @param page |
| | | * @param mgtSelectGoodsPageDto |
| | | * @return List<MgtSelectGoodsPageVo> |
| | | */ |
| | | @Override |
| | | public List<MgtSelectGoodsPageVo> pageMgtSelectGoods(Page page, MgtSelectGoodsPageDto mgtSelectGoodsPageDto){ |
| | | return goodsMapper.pageMgtSelectGoods(page, mgtSelectGoodsPageDto); |
| | | } |
| | | } |