|
|
@ -3,6 +3,7 @@ package com.hnac.hzinfo.inspect.obj.feign; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ContentDTO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ContentDTO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ProjectDTO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ProjectDTO; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.inspect.obj.request.ProjectContentRequest; |
|
|
|
import com.hnac.hzinfo.inspect.obj.services.ProjectService; |
|
|
|
import com.hnac.hzinfo.inspect.obj.services.ProjectService; |
|
|
|
import com.hnac.hzinfo.inspect.obj.vo.ProjectVO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.vo.ProjectVO; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
@ -41,9 +42,12 @@ public class ProjectClient extends BladeController implements IProjectClient { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@GetMapping(GET_PROJECT_AND_CONTENT_BY_EM_CODE) |
|
|
|
@PostMapping(GET_PROJECT_AND_CONTENT_BY_EM_CODE) |
|
|
|
public R<ProjectVO> getProjectAndContentByEmCode(@NotNull @Valid String emCode, ContentDTO content, Query query) { |
|
|
|
public R<ProjectVO> getProjectAndContentByEmCode(@RequestBody ProjectContentRequest request) { |
|
|
|
return R.data(projectService.getProjectAndContentByEmCode(emCode,content,query)); |
|
|
|
Query query = new Query(); |
|
|
|
|
|
|
|
query.setSize(request.getSize()); |
|
|
|
|
|
|
|
query.setCurrent(request.getCurrent()); |
|
|
|
|
|
|
|
return R.data(projectService.getProjectAndContentByEmCode(request.getEmCode(), request.getContentDTO(), query)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|