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