台站数据接口添加筛选条件
This commit is contained in:
parent
b1d3a0a09d
commit
1f22a04d5c
|
|
@ -215,7 +215,7 @@ public interface GardsSampleStatAnalysisMapper extends BaseMapper<GardsSampleDat
|
||||||
|
|
||||||
//endregion
|
//endregion
|
||||||
//region 查询台站信息
|
//region 查询台站信息
|
||||||
List<GardsStations> findStationListByMenuName();
|
List<GardsStations> findStationListByMenuName(@Param("systemType")String systemType);
|
||||||
//endregion
|
//endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -530,5 +530,15 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="findStationListByMenuName" resultType="org.jeecg.entity.GardsStations">
|
<select id="findStationListByMenuName" resultType="org.jeecg.entity.GardsStations">
|
||||||
SELECT * FROM CONFIGURATION.GARDS_STATIONS
|
SELECT * FROM CONFIGURATION.GARDS_STATIONS
|
||||||
|
<where>
|
||||||
|
TYPE IN
|
||||||
|
<if test='systemType == "P"'>
|
||||||
|
('Manual', 'CINDER', 'RASA', 'LAB')
|
||||||
|
</if>
|
||||||
|
<if test='systemType == "B"'>
|
||||||
|
('SAUNA', 'ARIX-4', 'ARIX-2', 'SPALAX')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -439,7 +439,7 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
|
||||||
public List<GardsStations> findStationListByMenuName(String systemType) {
|
public List<GardsStations> findStationListByMenuName(String systemType) {
|
||||||
List<GardsStations> gardsStations = new LinkedList<>();
|
List<GardsStations> gardsStations = new LinkedList<>();
|
||||||
//获取台站信息
|
//获取台站信息
|
||||||
gardsStations = this.baseMapper.findStationListByMenuName();
|
gardsStations = this.baseMapper.findStationListByMenuName(systemType);
|
||||||
return gardsStations;
|
return gardsStations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user