8 changed files with 113 additions and 2 deletions
@ -0,0 +1,10 @@ |
|||||
|
package com.epmet.plugin.power.dto.axis.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class PowerAxisServiceStationFormDTO { |
||||
|
private String axisStructId; |
||||
|
private int limit; |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
package com.epmet.plugin.power.dto.axis.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class PowerAxisServiceStationResultDTO { |
||||
|
private String stationId; |
||||
|
private String longitude; |
||||
|
private String latitude; |
||||
|
private String address; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.plugin.power.modules.axis.ViewController; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.GBaseDialect; |
||||
|
import com.epmet.plugin.power.dto.axis.ResultDTO; |
||||
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisServiceStationFormDTO; |
||||
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisServiceStationResultDTO; |
||||
|
import com.epmet.plugin.power.modules.axis.service.PowerServiceStationService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.xml.transform.Result; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/data/serviceStation") |
||||
|
public class PowerViewServiceStationController { |
||||
|
|
||||
|
@Autowired |
||||
|
private PowerServiceStationService powerServiceStationService; |
||||
|
|
||||
|
@PostMapping("/listPosition") |
||||
|
public ResultDTO getListPostition(@RequestBody PowerAxisServiceStationFormDTO form){ |
||||
|
List<PowerAxisServiceStationResultDTO> list = powerServiceStationService.getListPosition(form); |
||||
|
return ResultDTO.success("成功",list,powerServiceStationService.queryTotal(form)); |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue