fix
This commit is contained in:
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleProjectRespVO;
|
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||||
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisService;
|
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisService;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
@@ -39,6 +39,12 @@ public class SampleAnalysisController {
|
|||||||
return success("成功");
|
return success("成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/batchSampleAndQcAnalysisByTaskId")
|
||||||
|
public CommonResult<?> batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId) {
|
||||||
|
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO businessAssayTaskAnalysisSampleAndQcProject = sampleAnalysisService.batchSampleAndQcAnalysisByTaskId(businessAssayTaskId);
|
||||||
|
return success(businessAssayTaskAnalysisSampleAndQcProject);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/submitSampleAnalysisByTaskId")
|
@PostMapping("/submitSampleAnalysisByTaskId")
|
||||||
public CommonResult<?> submitSampleAnalysisByTaskId(Long businessAssayTaskId) {
|
public CommonResult<?> submitSampleAnalysisByTaskId(Long businessAssayTaskId) {
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分配任务单 分析样品及质控样品检测项目
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BusinessAssayTaskAnalysisSampleAndQcProjectRespVO {
|
||||||
|
|
||||||
|
/** 分配任务单id **/
|
||||||
|
private Long businessAssayTaskId;
|
||||||
|
|
||||||
|
/** 任务分配单编号 **/
|
||||||
|
private String businessAssayTasNo;
|
||||||
|
|
||||||
|
/** 任务分配单名称 **/
|
||||||
|
private String businessAssayTasName;
|
||||||
|
|
||||||
|
/** 分析人员 **/
|
||||||
|
private String assayOperator;
|
||||||
|
|
||||||
|
/** 分析时间 **/
|
||||||
|
private LocalDateTime assayTime;
|
||||||
|
|
||||||
|
/** 检测方法id **/
|
||||||
|
private Long configAssayMethodId;
|
||||||
|
|
||||||
|
/** 检测方法名称 **/
|
||||||
|
private String configAssayMethodName;
|
||||||
|
|
||||||
|
/** 数据集key **/
|
||||||
|
private String dataCollectionKey;
|
||||||
|
|
||||||
|
/** 数据集id **/
|
||||||
|
private Long dataCollectionId;
|
||||||
|
|
||||||
|
/** 动态表单值 **/
|
||||||
|
private String formValue;
|
||||||
|
|
||||||
|
/** 分配任务的分析数据 **/
|
||||||
|
private List<BusinessAssayTaskAnalysisDataRespVO> assayTaskAnalysisDataList;
|
||||||
|
|
||||||
|
/** 检测方法分析项目补正系数 **/
|
||||||
|
private List<ConfigAssayMethodProjectCoefficientRespVO> configAssayMethodProjectCoefficientList;
|
||||||
|
|
||||||
|
/** 检测方法范围 **/
|
||||||
|
private List<ConfigAssayMethodProjectRangeRespVO> configAssayMethodProjectRangeList;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectCoefficientRespVO;
|
||||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectRangeRespVO;
|
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectRangeRespVO;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -48,6 +49,9 @@ public class BusinessAssayTaskAnalysisSampleProjectRespVO {
|
|||||||
|
|
||||||
/** 分析的数据 **/
|
/** 分析的数据 **/
|
||||||
private List<Map<String, Object>> datas;
|
private List<Map<String, Object>> datas;
|
||||||
|
|
||||||
|
/** 检测方法分析项目补正系数 **/
|
||||||
|
private List<ConfigAssayMethodProjectCoefficientRespVO> configAssayMethodProjectCoefficientList;
|
||||||
|
|
||||||
/** 检测方法范围 **/
|
/** 检测方法范围 **/
|
||||||
private List<ConfigAssayMethodProjectRangeRespVO> configAssayMethodProjectRangeList;
|
private List<ConfigAssayMethodProjectRangeRespVO> configAssayMethodProjectRangeList;
|
||||||
|
|||||||
@@ -35,5 +35,10 @@ public interface BusinessQCProjectDataMapper extends BaseMapperX<BusinessQCProje
|
|||||||
.eqIfPresent(BusinessQCProjectDataDO::getRemark, reqVO.getRemark())
|
.eqIfPresent(BusinessQCProjectDataDO::getRemark, reqVO.getRemark())
|
||||||
.orderByDesc(BusinessQCProjectDataDO::getId));
|
.orderByDesc(BusinessQCProjectDataDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default List<BusinessQCProjectDataDO> selectByBusinessQCDataIds(List<Long> businessQCDataIds) {
|
||||||
|
return selectList(new LambdaQueryWrapperX<BusinessQCProjectDataDO>()
|
||||||
|
.in(BusinessQCProjectDataDO::getBusinessQCDataId, businessQCDataIds));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.service;
|
package com.zt.plat.module.qms.business.bus.service;
|
||||||
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleProjectRespVO;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <b>SampleAnalysisService</b>
|
* <b>SampleAnalysisService</b>
|
||||||
@@ -30,6 +29,13 @@ public interface SampleAnalysisService {
|
|||||||
*/
|
*/
|
||||||
void saveBatchSampleAnalysis(BusinessAssayTaskAnalysisSampleProjectRespVO vo);
|
void saveBatchSampleAnalysis(BusinessAssayTaskAnalysisSampleProjectRespVO vo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据分配任务id 获取任务分配单 分析样品项目及品控样品项目
|
||||||
|
* @param businessAssayTaskId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据任务单id提交分析数据
|
* 根据任务单id提交分析数据
|
||||||
* @param businessAssayTaskId 任务单id
|
* @param businessAssayTaskId 任务单id
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
|||||||
|
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.zt.plat.module.qms.business.bus.controller.vo.BatchSampleAnalysisColumnRespVO;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分析数据
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BusinessAssayTaskAnalysisDataRespVO {
|
||||||
|
|
||||||
|
/** 分析类型 **/
|
||||||
|
private String analysisType;
|
||||||
|
|
||||||
|
/** 排序号 **/
|
||||||
|
private Integer sortNo;
|
||||||
|
|
||||||
|
|
||||||
|
/** 分析的列 **/
|
||||||
|
private List<BatchSampleAnalysisColumnRespVO> columns;
|
||||||
|
|
||||||
|
/** 分析的数据 **/
|
||||||
|
private List<Map<String, Object>> datas;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user