|
@@ -544,7 +544,7 @@ public class TrialDetectionController extends BladeController {
|
|
|
@GetMapping("/self/getBaseInfo")
|
|
|
@ApiOperationSupport(order = 30)
|
|
|
@ApiOperation(value = "获取试验自检基础信息", notes = "传入节点pKeyId")
|
|
|
- public R<TrialSeleInspectionRecordInfoDTO> getBaseInfo(@RequestParam Long projectId, @RequestParam Long contractId, @RequestParam Long nodeId, @RequestParam(required = false) Long id) {
|
|
|
+ public R<TrialSeleInspectionRecordInfoDTO> getBaseInfo(@RequestParam Long projectId, @RequestParam Long contractId, @RequestParam Long nodeId, @RequestParam(required = false) Long id, @RequestParam(required = false) Boolean isReacquire) {
|
|
|
ProjectInfo projectInfo = jdbcTemplate.query("select * from m_project_info where id = " + projectId, new BeanPropertyRowMapper<>(ProjectInfo.class)).stream().findAny().orElse(null);
|
|
|
if (projectInfo == null) {
|
|
|
return R.fail("未获取到项目信息");
|
|
@@ -571,7 +571,7 @@ public class TrialDetectionController extends BladeController {
|
|
|
vo.setSupervisionUnit(contractInfo.getSupervisionUnitName());
|
|
|
vo.setLabName(contractInfo.getLaboratoryName());
|
|
|
vo.setContractName(contractInfo.getContractName());
|
|
|
- if (id != null) {
|
|
|
+ if (id != null && isReacquire) {
|
|
|
TrialSelfInspectionRecord record = jdbcTemplate.query("select * from u_trial_self_inspection_record where id = " + id, new BeanPropertyRowMapper<>(TrialSelfInspectionRecord.class)).stream().findAny().orElse(null);
|
|
|
if (record != null) {
|
|
|
String baseInfo = record.getBaseInfo();
|