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.

42 lines
1.1 KiB

3 days ago
  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, List<Integer> status) {
  24. if(status== null|| status.size()==0){
  25. status.add(99);
  26. }
  27. return messageMapper.getMessage(markets, status) ;
  28. }
  29. @Override
  30. public void update(Integer id) throws Exception {
  31. try {
  32. messageMapper.update(id);
  33. }
  34. catch (Exception e){
  35. throw new Exception("更新失败");
  36. }
  37. }
  38. }