12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.fdkankan.fusion.service.impl;
- import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
- import com.fdkankan.fusion.entity.MqSendLog;
- import com.fdkankan.fusion.mapper.IMqSendLogMapper;
- import com.fdkankan.fusion.service.IMqSendLogService;
- import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
- import org.springframework.stereotype.Service;
- import java.util.HashMap;
- import java.util.List;
- /**
- * <p>
- * 服务实现类
- * </p>
- *
- * @author
- * @since 2024-08-07
- */
- @Service
- public class MqSendLogServiceImpl extends ServiceImpl<IMqSendLogMapper, MqSendLog> implements IMqSendLogService {
- @Override
- public HashMap<String, Boolean> getMapByNumList(List<String> numList) {
- HashMap<String, Boolean> map = new HashMap<>();
- if(numList == null || numList.isEmpty()){
- return map;
- }
- LambdaQueryWrapper<MqSendLog> wrapper = new LambdaQueryWrapper<>();
- wrapper.in(MqSendLog::getNum,numList);
- List<MqSendLog> list = this.list(wrapper);
- for (MqSendLog mqSendLog : list) {
- map.put(mqSendLog.getNum(), mqSendLog.getStatus() == 1);
- }
- return map;
- }
- }
|