|
|
@ -1,7 +1,9 @@ |
|
|
|
package digital.laboratory.platform.inspection.controller; |
|
|
|
package digital.laboratory.platform.inspection.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
import digital.laboratory.platform.common.core.util.R; |
|
|
|
import digital.laboratory.platform.common.core.util.R; |
|
|
|
import digital.laboratory.platform.inspection.service.IdentifyBookDataService; |
|
|
|
import digital.laboratory.platform.inspection.service.IdentifyBookDataService; |
|
|
|
|
|
|
|
import digital.laboratory.platform.inspetion.api.entity.IdentificationBookDTO; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -25,8 +27,13 @@ public class IdentifyBookController { |
|
|
|
//对文书系统提供获取实验数据
|
|
|
|
//对文书系统提供获取实验数据
|
|
|
|
@GetMapping("/getIdentifyBookDataByBusinessId") |
|
|
|
@GetMapping("/getIdentifyBookDataByBusinessId") |
|
|
|
@ApiOperation(value = "获取检验数据") |
|
|
|
@ApiOperation(value = "获取检验数据") |
|
|
|
public R getIdentifyBookDataByBusinessId(String businessId){ |
|
|
|
public R<IdentificationBookDTO> getIdentifyBookDataByBusinessId(String businessId){ |
|
|
|
return identifyBookDataService.getIdentifyBookDataByBusinessId(businessId); |
|
|
|
try { |
|
|
|
|
|
|
|
return R.ok(identifyBookDataService.getIdentifyBookDataByBusinessId(businessId),"构建数据成功"); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
return R.failed("获取检验数据失败!"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@PostMapping("/getTestFinishBusinessData") |
|
|
|
@PostMapping("/getTestFinishBusinessData") |
|
|
|
@ApiOperation(value = "获取待制作文书列表") |
|
|
|
@ApiOperation(value = "获取待制作文书列表") |
|
|
|