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
39 lines
1.0 KiB
package com.example.demo.serviceImpl.cash;
|
|
|
|
import com.example.demo.domain.vo.coin.Messages;
|
|
import com.example.demo.service.cash.MessageService;
|
|
import com.example.demo.mapper.cash.MessageMapper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @program: GOLD
|
|
* @ClassName MessageServiceImpl
|
|
* @description:
|
|
* @author: huangqizhen
|
|
* @create: 2025−11-14 22:23
|
|
* @Version 1.0
|
|
**/
|
|
@Service
|
|
@Transactional
|
|
public class MessageServiceImpl implements MessageService {
|
|
@Autowired
|
|
private MessageMapper messageMapper;
|
|
@Override
|
|
public List<Messages> getMessage(List<String> markets) {
|
|
return messageMapper.getMessage(markets) ;
|
|
}
|
|
|
|
@Override
|
|
public void update(Integer id) throws Exception {
|
|
try {
|
|
messageMapper.update(id);
|
|
}
|
|
catch (Exception e){
|
|
throw new Exception("更新失败");
|
|
}
|
|
}
|
|
}
|