OtherStationInfoServiceImpl.java 728 B

12345678910111213141516171819202122232425262728
  1. package com.jiayue.biz.service.impl;
  2. import com.jiayue.biz.domain.OtherStationInfo;
  3. import com.jiayue.biz.service.OtherStationInfoService;
  4. import lombok.AllArgsConstructor;
  5. import org.springframework.data.mongodb.core.MongoTemplate;
  6. import org.springframework.data.mongodb.core.query.Query;
  7. import org.springframework.stereotype.Service;
  8. import java.util.List;
  9. @Service
  10. @AllArgsConstructor
  11. public class OtherStationInfoServiceImpl implements OtherStationInfoService {
  12. private final MongoTemplate mongoTemplate;
  13. //查询全省其他场站基本信息
  14. public List<OtherStationInfo> selectOtherStationInfo(){
  15. return mongoTemplate.find(new Query(),OtherStationInfo.class,"other_station_info");
  16. }
  17. }