|
@ -2,8 +2,12 @@ package com.epmet.plugin.power.modules.axis.ViewController; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisLeaderDetailFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisLeaderDetailFormDTO; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructStructTreeFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructViewFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructViewFormDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisLeaderDetailResultDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisLeaderDetailResultDTO; |
|
|
|
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisStructResultDTO; |
|
|
|
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisStructTreeResultDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisStructViewResultDTO; |
|
|
import com.epmet.plugin.power.dto.axis.result.PowerAxisStructViewResultDTO; |
|
|
import com.epmet.plugin.power.modules.axis.service.PowerAxisLeaderService; |
|
|
import com.epmet.plugin.power.modules.axis.service.PowerAxisLeaderService; |
|
|
import com.epmet.plugin.power.modules.axis.service.PowerAxisStructService; |
|
|
import com.epmet.plugin.power.modules.axis.service.PowerAxisStructService; |
|
@ -13,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("/data/axis") |
|
|
@RequestMapping("/data/axis") |
|
|
public class PowerAxisStructViewController { |
|
|
public class PowerAxisStructViewController { |
|
@ -40,4 +46,13 @@ public class PowerAxisStructViewController { |
|
|
PowerAxisLeaderDetailResultDTO dto = powerAxisLeaderService.getLeaderDetail(form); |
|
|
PowerAxisLeaderDetailResultDTO dto = powerAxisLeaderService.getLeaderDetail(form); |
|
|
return new Result().ok(dto); |
|
|
return new Result().ok(dto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
*动力主轴结构树 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("/structTree") |
|
|
|
|
|
public Result getStructTree(@RequestBody PowerAxisStructStructTreeFormDTO form){ |
|
|
|
|
|
List<PowerAxisStructTreeResultDTO> dto = powerAxisStructService.getStructTree(form); |
|
|
|
|
|
return new Result().ok(dto); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|