Commit 47a5cccb authored by tangwei's avatar tangwei

查询场站增加参数

parent f08f6ac4
...@@ -23,6 +23,6 @@ public interface JpStationMapper extends BaseMapper<JpStation> { ...@@ -23,6 +23,6 @@ public interface JpStationMapper extends BaseMapper<JpStation> {
List<Map<String,Double>> getPowerqx(String dateType); List<Map<String,Double>> getPowerqx(String dateType);
@UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in","in"} ,relationship="and") @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in","in"} ,relationship="and")
List<JpStation> getJpStation(); List<JpStation> getJpStation(@Param("dto") JpStationDto reviewDto);
} }
...@@ -158,7 +158,35 @@ ...@@ -158,7 +158,35 @@
`sequence_nbr` sequenceNbr, `sequence_nbr` sequenceNbr,
third_station_id thirdStationId third_station_id thirdStationId
from hygf_jp_station from hygf_jp_station
where is_delete=0
<where>
is_delete=0
<if test="dto.name!=null">
and hygf_jp_station.name like concat(concat("%",#{dto.name}),"%")
</if>
<if test="dto.userName!=null">
and hygf_jp_station.user_name like concat(concat("%",#{dto.userName}),"%")
</if>
<if test="dto.address!=null">
and hygf_jp_station.address like concat(concat("%",#{dto.address}),"%")
</if>
<if test="dto.area!=null">
and hygf_jp_station.area like concat(concat("%",#{dto.area}),"%")
</if>
<if test="dto.statioId!=null">
and hygf_jp_station.third_station_id in
<foreach collection="dto.statioId" item="item" index="index" open="(" separator="," close=")">
#{item.stationId}
</foreach>
</if>
<if test="dto.regionalCompaniesCode!=null">
and hygf_jp_station.regional_companies_code =#{dto.regionalCompaniesCode}
</if>
<if test="dto.amosCompanyCode!=null">
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}
</if>
</where>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment