You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. package com.example.demo.serviceImpl.cash;
  2. import com.example.demo.domain.vo.coin.Messages;
  3. import com.example.demo.service.cash.MessageService;
  4. import com.example.demo.mapper.cash.MessageMapper;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import org.springframework.transaction.annotation.Transactional;
  8. import java.util.List;
  9. /**
  10. * @program: GOLD
  11. * @ClassName MessageServiceImpl
  12. * @description:
  13. * @author: huangqizhen
  14. * @create: 202511-14 22:23
  15. * @Version 1.0
  16. **/
  17. @Service
  18. @Transactional
  19. public class MessageServiceImpl implements MessageService {
  20. @Autowired
  21. private MessageMapper messageMapper;
  22. @Override
  23. public List<Messages> getMessage(List<String> markets) {
  24. return messageMapper.getMessage(markets) ;
  25. }
  26. @Override
  27. public void update(Integer id) throws Exception {
  28. try {
  29. messageMapper.update(id);
  30. }
  31. catch (Exception e){
  32. throw new Exception("更新失败");
  33. }
  34. }
  35. }