ソースを参照

试验系统获取基础信息返回委托单id

lvy 1 ヶ月 前
コミット
23ea72bd9e

+ 3 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/dto/TrialSeleInspectionRecordBaseInfoDTO.java

@@ -56,6 +56,9 @@ public class TrialSeleInspectionRecordBaseInfoDTO implements Serializable {
 	@ApiModelProperty("工程部位/用途")
 	private String projectPosition;
 
+	@ApiModelProperty("委托单id")
+	private Long entrustId;
+
 	@ApiModelProperty("委托单编号")
 	private String entrustNo;
 

+ 1 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/TrialDetectionController.java

@@ -575,6 +575,7 @@ public class TrialDetectionController extends BladeController {
                     EntrustInfo entrustInfo = jdbcTemplate.query("select * from u_entrust_info where id = " + entrustId, new BeanPropertyRowMapper<>(EntrustInfo.class)).stream().findAny().orElse(null);
                     if (entrustInfo != null) {
                         vo.setEntrustNo(entrustInfo.getEntrustNo());
+                        vo.setEntrustId(entrustInfo.getId());
                     }
                 }
                 List<TrialSelfSample> selfSampleList = jdbcTemplate.query("select * from u_trial_self_sample where self_id = " + id, new BeanPropertyRowMapper<>(TrialSelfSample.class));