ApiAttributeService.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.kmall.api.service;
  2. import com.kmall.api.dao.ApiAttributeMapper;
  3. import com.kmall.api.entity.AttributeVo;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import java.util.List;
  7. import java.util.Map;
  8. @Service
  9. public class ApiAttributeService {
  10. @Autowired
  11. private ApiAttributeMapper attributeMapper;
  12. public AttributeVo queryObject(Integer id) {
  13. return attributeMapper.queryObject(id);
  14. }
  15. public List<AttributeVo> queryList(Map<String, Object> map) {
  16. return attributeMapper.queryList(map);
  17. }
  18. public int queryTotal(Map<String, Object> map) {
  19. return attributeMapper.queryTotal(map);
  20. }
  21. public void save(AttributeVo goods) {
  22. attributeMapper.save(goods);
  23. }
  24. public void update(AttributeVo goods) {
  25. attributeMapper.update(goods);
  26. }
  27. public void delete(Integer id) {
  28. attributeMapper.delete(id);
  29. }
  30. public void deleteBatch(Integer[] ids) {
  31. attributeMapper.deleteBatch(ids);
  32. }
  33. }