Commit f2a97230 authored by 高建强's avatar 高建强

场站地图数据接口更新

parent 5a5bd2d2
...@@ -3,9 +3,11 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto; ...@@ -3,9 +3,11 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import javax.ws.rs.DefaultValue;
import java.util.List; import java.util.List;
/** /**
...@@ -29,13 +31,13 @@ public class StationInfoDto { ...@@ -29,13 +31,13 @@ public class StationInfoDto {
@ApiModelProperty(value = "设备管控指标") @ApiModelProperty(value = "设备管控指标")
private String deviceControlIndicators; private String deviceControlIndicators = "0";
@ApiModelProperty(value = "人员管控指标") @ApiModelProperty(value = "人员管控指标")
private String personControlIndicators; private String personControlIndicators = "0";
@ApiModelProperty(value = "任务管控指标") @ApiModelProperty(value = "任务管控指标")
private String taskControlIndicators; private String taskControlIndicators = "0";
@ApiModelProperty(value = "经度") @ApiModelProperty(value = "经度")
private String longitude; private String longitude;
......
...@@ -38,7 +38,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> { ...@@ -38,7 +38,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
@Param("orgCode")String orgCode); @Param("orgCode")String orgCode);
//获取场站列表信息 //获取场站列表信息
List<StationInfoDto> getStationList(@Param("orgCode")String orgCode); List<StationInfoDto> getStationList(@Param("areaCode")String areaCode);
} }
...@@ -114,11 +114,9 @@ ...@@ -114,11 +114,9 @@
left join station_coordinate left join station_coordinate
on station_basic.sequence_nbr = station_coordinate.station_id on station_basic.sequence_nbr = station_coordinate.station_id
WHERE station_coordinate.is_main_coordinate = 0 LIMIT 1 WHERE station_coordinate.is_main_coordinate = 0 LIMIT 1
<where> <if test="areaCode != null and areaCode != ''">
<if test="orgCode != null and orgCode != ''"> AND station_basic.area_code like concat('%',#{areaCode},'%')
AND station_basic.project_org_code like concat('%',#{orgCode},'%') </if>
</if>
</where>
</select> </select>
......
...@@ -161,7 +161,7 @@ public class StationBasicController extends BaseController { ...@@ -161,7 +161,7 @@ public class StationBasicController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@ApiOperation(httpMethod = "GET",value = "场站地图数据", notes = "场站地图数据") @ApiOperation(httpMethod = "GET",value = "场站地图数据", notes = "场站地图数据")
@GetMapping(value = "/listforMap") @GetMapping(value = "/listforMap")
public ResponseModel<List<StationInfoDto>> getStationList( @RequestParam(value = "orgCode",required = false)String orgCode) { public ResponseModel<List<StationInfoDto>> getStationList( @RequestParam(value = "areaCode",required = false)String areaCode) {
return ResponseHelper.buildResponse(stationBasicServiceImpl.getStationList(orgCode)); return ResponseHelper.buildResponse(stationBasicServiceImpl.getStationList(areaCode));
} }
} }
...@@ -248,8 +248,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station ...@@ -248,8 +248,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
} }
public List<StationInfoDto> getStationList(String orgCode){ public List<StationInfoDto> getStationList(String areaCode){
return stationBasicMapper.getStationList(orgCode); return stationBasicMapper.getStationList(areaCode);
} }
} }
\ No newline at end of file
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