刘光辉
3 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package jnpf.elnController;
 
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jnpf.base.ActionResult;
import jnpf.elnEntity.runtime.ElnRecordVos;
import jnpf.elnService.ElnRecordQueryService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@Tag(name = "ELN电子记录查询")
@RestController
@RequestMapping("/records")
@RequiredArgsConstructor
public class ElnRecordQueryController {
 
    private final ElnRecordQueryService recordQueryService;
 
    @Operation(summary = "按检验项查看当前电子记录")
    @GetMapping("/byTestWorkItem/{testWorkItemId}")
    public ActionResult<ElnRecordVos.Created> getByTestWorkItem(
            @PathVariable("testWorkItemId") String testWorkItemId) {
        return ActionResult.success(recordQueryService.getByTestWorkItem(testWorkItemId));
    }
}