闸阀详情带附件
parent
137ede4342
commit
960db23b4a
|
|
@ -106,6 +106,16 @@ public class AttGateValveController extends AbstractCommonFileController{
|
|||
return R.ok(service.getById(valveCode));
|
||||
}
|
||||
|
||||
@Operation(summary = "查看详情")
|
||||
@GetMapping("/get/{id}")
|
||||
public R<AttGateValve> getDetail(@PathVariable("id") Serializable id) {
|
||||
AttGateValve data = service.getById(id);
|
||||
if (Objects.nonNull(data)){
|
||||
data.setFiles(fileService.getFiles(getGroupId(),data.getValveCode()));
|
||||
}
|
||||
return R.ok(data);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getGroupId() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue