|
@ -14,6 +14,7 @@ import com.epmet.plugin.power.modules.axis.service.PowerServiceStationService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
@ -129,7 +130,7 @@ public class PowerAxisDataVisualController { |
|
|
* @date 2022/4/23 10:20 |
|
|
* @date 2022/4/23 10:20 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("kernelHousehold/listPosition") |
|
|
@PostMapping("kernelHousehold/listPosition") |
|
|
public Result<List<PowerKernelListPostitionResultDTO>> getListPosition(@RequestBody PowerKernelListPostitionFormDTO form, @LoginUser TokenDto tokenDto) { |
|
|
public Result<List<PowerKernelListPostitionResultDTO>> getListPosition(@Valid @RequestBody PowerKernelListPostitionFormDTO form, @LoginUser TokenDto tokenDto) { |
|
|
ValidatorUtils.validateEntity(form); |
|
|
ValidatorUtils.validateEntity(form); |
|
|
form.setCustomerId(tokenDto.getCustomerId()); |
|
|
form.setCustomerId(tokenDto.getCustomerId()); |
|
|
return new Result().ok(powerKernelHouseholdService.getListPosition(form)); |
|
|
return new Result().ok(powerKernelHouseholdService.getListPosition(form)); |
|
|