测值查询查不到数据问题#598
parent
23f4636aee
commit
269c5f15cc
|
|
@ -74,7 +74,7 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
|
|||
<if test = "obj.type == 2">
|
||||
t.q as value from public.osmotic_flow_r t
|
||||
</if>
|
||||
where to_char(t.tm, 'HH24:MI:SS') = '08:00:00' and t.station_code in
|
||||
where t.station_code in
|
||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||
#{code}
|
||||
</foreach>
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@ public class OsmoticPressRService extends ServiceImpl<OsmoticPressRMapper, Osmot
|
|||
* @return
|
||||
*/
|
||||
public List<OsmoticStationVo> queryValue(OsmoticQuerySo osmoticQuerySo,Integer year) {
|
||||
if(osmoticQuerySo.getType() == null) {
|
||||
osmoticQuerySo.setType(1);
|
||||
}
|
||||
List<OsmoticStationVo> resList = new ArrayList<>();
|
||||
if(CollectionUtils.isEmpty(osmoticQuerySo.getStationCodes())){
|
||||
return resList;
|
||||
|
|
|
|||
Loading…
Reference in New Issue