1
0

ApiGoodsCrashService.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.kmall.api.service;
  2. import com.kmall.api.dao.ApiGoodsCrashMapper;
  3. import com.kmall.api.entity.GoodsCrashVo;
  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 ApiGoodsCrashService {
  10. @Autowired
  11. private ApiGoodsCrashMapper apiGoodsCrashMapper;
  12. public GoodsCrashVo queryObject(Integer id) {
  13. return apiGoodsCrashMapper.queryObject(id);
  14. }
  15. public List<GoodsCrashVo> queryList(Map<String, Object> map) {
  16. return apiGoodsCrashMapper.queryList(map);
  17. }
  18. public int queryTotal(Map<String, Object> map) {
  19. return apiGoodsCrashMapper.queryTotal(map);
  20. }
  21. public void save(GoodsCrashVo brand) {
  22. apiGoodsCrashMapper.save(brand);
  23. }
  24. public void update(GoodsCrashVo brand) {
  25. apiGoodsCrashMapper.update(brand);
  26. }
  27. public void delete(Integer id) {
  28. apiGoodsCrashMapper.delete(id);
  29. }
  30. public void deleteBatch(Integer[] ids) {
  31. apiGoodsCrashMapper.deleteBatch(ids);
  32. }
  33. }