Commit 4804f134 authored by lisong's avatar lisong

更新

parent 8382f00b
......@@ -49,10 +49,11 @@ public class PipeController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增管段信息", notes = "新增管段信息")
public ResponseModel<List<PipeDto>> save(@RequestBody List<PipeDto> list) {
public ResponseModel<List<PipeDto>> save(@RequestBody List<PipeDto> list,
@RequestParam(value = "projectId") Long projectId) {
List<PipeDto> result = new ArrayList<>();
list.forEach(item -> {
item.setProjectId(1234567890L);
item.setProjectId(projectId);
PipeDto withModel = pipeService.createWithModel(item);
result.add(withModel);
});
......@@ -73,11 +74,11 @@ public class PipeController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/addPipeMessage")
@ApiOperation(httpMethod = "POST", value = "新增管段信息", notes = "新增管段信息")
@ApiOperation(httpMethod = "POST", value = "新增管段信息-json", notes = "新增管段信息-json")
public ResponseModel<Object> save(@RequestParam(value = "json") String json,
@RequestParam(value = "projectId") Long projectId) {
pipeService1.addPipeMessage(json, projectId);
return ResponseHelper.buildResponse("s");
return ResponseHelper.buildResponse(json);
}
......
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