|
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.huashe.common.domain.AjaxResult;
|
|
@@ -148,14 +149,19 @@ public class PileMachineInfoController extends BaseController {
|
|
|
return AjaxResult.success(pileMachineInfoVo);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/terminal/workSection")
|
|
|
- public AjaxResult machineWorkSection(@RequestBody MachineBiz machineBiz) {
|
|
|
- return AjaxResult.success(pileMachineInfoService.qryMachineAssignedUnit(machineBiz.getMachineId()));
|
|
|
+ @GetMapping("/terminal/workSection")
|
|
|
+ public AjaxResult machineWorkSection(@RequestParam String machineId) {
|
|
|
+ return AjaxResult.success(pileMachineInfoService.qryMachineAssignedUnit(machineId));
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/terminal/constructionTargetObject")
|
|
|
- public AjaxResult constructionTargetObject(@RequestBody MachineBiz machineBiz) {
|
|
|
- return AjaxResult.success(pileMachineInfoService.machineUnitPileHole(machineBiz));
|
|
|
+ @GetMapping("/terminal/constructionTargetObject")
|
|
|
+ public AjaxResult constructionTargetObject(@RequestParam String machineId, @RequestParam String designId) {
|
|
|
+ return AjaxResult.success(pileMachineInfoService.machineUnitPileHole(new MachineBiz() {
|
|
|
+ {
|
|
|
+ setDesignId(designId);
|
|
|
+ setMachineId(machineId);
|
|
|
+ }
|
|
|
+ }));
|
|
|
}
|
|
|
|
|
|
/**
|