查询工地事件接口添加分页
This commit is contained in:
parent
1be0013a07
commit
7ddc950e89
|
@ -93,8 +93,8 @@ public class BuildingController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("selectRaise")
|
@GetMapping("selectRaise")
|
||||||
@ApiOperation("查询工地扬尘事件")
|
@ApiOperation("查询工地扬尘事件")
|
||||||
public Result selectRaise(){
|
public Result selectRaise(Integer page,Integer pageSize){
|
||||||
List<BuildingRecordsDto> recordsDtos = buildingRecordsMapper.selectRaise();
|
List<BuildingRecordsDto> recordsDtos = buildingRecordsMapper.selectRaise(page,pageSize);
|
||||||
Result success = Result.success(recordsDtos);
|
Result success = Result.success(recordsDtos);
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,7 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
||||||
" where DATE_SUB(CURDATE(), INTERVAL 30 DAY) < date(br.push_time)")
|
" where DATE_SUB(CURDATE(), INTERVAL 30 DAY) < date(br.push_time)")
|
||||||
List<BuildingRecordsDto> selectMonthPmAndNoice();
|
List<BuildingRecordsDto> selectMonthPmAndNoice();
|
||||||
|
|
||||||
@Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc where br.pm10 > 200")
|
List<BuildingRecordsDto> selectRaise(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
|
||||||
List<BuildingRecordsDto> selectRaise();
|
|
||||||
|
|
||||||
@Select("select br.*,bs.sgwz,bs.jd,bs.wd,bs.ssdq,bs.yjsg from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc" +
|
@Select("select br.*,bs.sgwz,bs.jd,bs.wd,bs.ssdq,bs.yjsg from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc" +
|
||||||
" where br.project_name like concat('%',#{projectName},'%')")
|
" where br.project_name like concat('%',#{projectName},'%')")
|
||||||
|
|
|
@ -30,4 +30,11 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<select id="selectRaise" resultType="com.hisense.monitormanage.dto.BuildingRecordsDto">
|
||||||
|
select * from t_building_records br JOIN t_building_new_site bs
|
||||||
|
ON br.project_name = bs.gdmc where br.pm10 > 150
|
||||||
|
<bind name="page" value="(page-1)*pageSize"/>
|
||||||
|
limit #{page},#{pageSize}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue