台站数据接口添加筛选条件

This commit is contained in:
duwenyuan 2025-10-17 19:39:23 +08:00
parent b1d3a0a09d
commit 1f22a04d5c
3 changed files with 12 additions and 2 deletions

View File

@ -215,7 +215,7 @@ public interface GardsSampleStatAnalysisMapper extends BaseMapper<GardsSampleDat
//endregion
//region 查询台站信息
List<GardsStations> findStationListByMenuName();
List<GardsStations> findStationListByMenuName(@Param("systemType")String systemType);
//endregion
}

View File

@ -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>

View File

@ -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;
}