台站数据接口添加筛选条件
This commit is contained in:
parent
b1d3a0a09d
commit
1f22a04d5c
|
|
@ -215,7 +215,7 @@ public interface GardsSampleStatAnalysisMapper extends BaseMapper<GardsSampleDat
|
|||
|
||||
//endregion
|
||||
//region 查询台站信息
|
||||
List<GardsStations> findStationListByMenuName();
|
||||
List<GardsStations> findStationListByMenuName(@Param("systemType")String systemType);
|
||||
//endregion
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -530,5 +530,15 @@
|
|||
</select>
|
||||
<select id="findStationListByMenuName" resultType="org.jeecg.entity.GardsStations">
|
||||
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>
|
||||
</mapper>
|
||||
|
|
@ -439,7 +439,7 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
|
|||
public List<GardsStations> findStationListByMenuName(String systemType) {
|
||||
List<GardsStations> gardsStations = new LinkedList<>();
|
||||
//获取台站信息
|
||||
gardsStations = this.baseMapper.findStationListByMenuName();
|
||||
gardsStations = this.baseMapper.findStationListByMenuName(systemType);
|
||||
return gardsStations;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user