package com.kmall.api.service; import com.kmall.api.dao.ApiRelatedGoodsMapper; import com.kmall.api.entity.RelatedGoodsVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; @Service public class ApiRelatedGoodsService { @Autowired private ApiRelatedGoodsMapper relatedGoodsDao; public RelatedGoodsVo queryObject(Integer id) { return relatedGoodsDao.queryObject(id); } public List queryList(Map map) { return relatedGoodsDao.queryList(map); } public int queryTotal(Map map) { return relatedGoodsDao.queryTotal(map); } public int queryhasPicTotal(Map map) { return relatedGoodsDao.queryTotal(map); } public int save(RelatedGoodsVo comment) { return relatedGoodsDao.save(comment); } public void update(RelatedGoodsVo comment) { relatedGoodsDao.update(comment); } public void delete(Integer id) { relatedGoodsDao.delete(id); } public void deleteBatch(Integer[] ids) { relatedGoodsDao.deleteBatch(ids); } }