| | |
| | | import org.dromara.demo.service.IRsIndicatorInfoService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 指标取值Service业务层处理 |
| | |
| | | } |
| | | return baseMapper.deleteBatchIds(ids) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Long> status() { |
| | | List<RsIndicatorInfo> list = baseMapper.selectList(new LambdaQueryWrapper<RsIndicatorInfo>().orderByDesc(RsIndicatorInfo::getCreateTime)); |
| | | Map<String, Long> map = new HashMap<>(); |
| | | for (RsIndicatorInfo info : list) { |
| | | map.put(info.getIndicatorKey(), info.getStatus()); |
| | | } |
| | | return map; |
| | | } |
| | | } |