Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -47,7 +47,7 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode CONFIG_SUB_SAMPLE_PARENT_NOT_EXISTS = new ErrorCode(1_032_050_000, "分样配置不存在");
|
||||
ErrorCode CONFIG_SUB_SAMPLE_PARENT_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "分样与检测方法配置不存在");
|
||||
//ErrorCode CONFIG_SUB_SAMPLE_PARENT_RECHECK_NOT_EXISTS = new ErrorCode(1_032_050_000, "分样与复检配置不存在");
|
||||
ErrorCode CONFIG_SUB_SAMPLE_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "子样与检测方法配置不存在");
|
||||
ErrorCode CONFIG_SUB_SAMPLE_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "子样与分样检测方法配置表不存在");
|
||||
ErrorCode CONFIG_SUB_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "子样配置不存在");
|
||||
ErrorCode CONFIG_SAMPLE_REPORT_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品报表关系不存在");
|
||||
ErrorCode CONFIG_SAMPLE_FLOW_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品流程配置不存在");
|
||||
|
||||
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
@@ -20,6 +21,8 @@ import com.zt.plat.module.qms.business.bus.liteflow.param.SampleTaskAssignMethod
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.param.SampleTaskAssignSampleParam;
|
||||
import com.zt.plat.module.qms.business.bus.service.SampleTaskAssignService;
|
||||
import com.zt.plat.module.system.api.user.dto.AdminUserRespDTO;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
@@ -53,11 +56,20 @@ public class SampleTaskAssignController implements BusinessControllerMarker {
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
@GetMapping("/getAssayMethodList")
|
||||
public CommonResult<?> getAssayMethodList(Long businessSubSampleId, Long configAssayMethodId) {
|
||||
List<Object> list = sampleTaskAssignService.getAssayMethodList(businessSubSampleId, configAssayMethodId);
|
||||
return success(list);
|
||||
}
|
||||
**/
|
||||
|
||||
@GetMapping("/getAssayMethodProjectList")
|
||||
public CommonResult<?> getAssayMethodProjectList(String businessSubSampleIds, Long configAssayMethodId) {
|
||||
List<Long> businessSubSampleIdList = Arrays.asList(businessSubSampleIds.split(",")).stream().map(Long::parseLong).toList();
|
||||
List<AssayMethodProjectRespVO> list = sampleTaskAssignService.getAssayMethodProjectList(businessSubSampleIdList, configAssayMethodId);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
@PostMapping("/changeMethod")
|
||||
public CommonResult<?> changeMethod(@RequestBody ChangeAssayMethodReqVO req) {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectExtendRespVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AssayMethodProjectRespVO {
|
||||
|
||||
private Long dictionaryProjectId;
|
||||
|
||||
private String dictionaryProjectName;
|
||||
|
||||
private String dictionaryProjectSimpleName;
|
||||
|
||||
private String dictionaryProjectShowName;
|
||||
|
||||
private Long configAssayMethodId;
|
||||
|
||||
private String configAssayMethodName;
|
||||
|
||||
@Schema(description = "检测方法配置名称及类别")
|
||||
private String configAssayMethodNameAndCategory;
|
||||
|
||||
private List<ConfigAssayMethodProjectExtendRespVO> methodList;
|
||||
}
|
||||
@@ -118,6 +118,9 @@ public class BusinessAssayTaskDataReqVO {
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "分析编号")
|
||||
private String sampleAssayCode;
|
||||
|
||||
|
||||
@@ -6,6 +6,12 @@ import lombok.Data;
|
||||
@Data
|
||||
public class BusinessSubParentSampleAssessmentExtendRespVO extends BusinessSubParentSampleAssessmentRespVO {
|
||||
|
||||
@Schema(description = "主样id")
|
||||
private Long businessBaseSampleId;
|
||||
|
||||
@Schema(description = "分样配置id")
|
||||
private Long configSubSampleParentId;
|
||||
|
||||
@Schema(description = "检测项目key")
|
||||
private String dictionaryProjectKey;
|
||||
|
||||
|
||||
@@ -47,6 +47,9 @@ public class BusinessXRFDataPageReqVO extends PageParam {
|
||||
@Schema(description = "检测任务ID", example = "16505")
|
||||
private Long businessAssayTaskDataId;
|
||||
|
||||
@Schema(description = "检测任务ID", example = "940")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测数据")
|
||||
private String assayData;
|
||||
|
||||
|
||||
@@ -50,6 +50,9 @@ public class BusinessXRFDataReqVO {
|
||||
@Schema(description = "检测任务ID", example = "16505")
|
||||
private Long businessAssayTaskDataId;
|
||||
|
||||
@Schema(description = "检测任务ID", example = "940")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测数据")
|
||||
private String assayData;
|
||||
|
||||
|
||||
@@ -59,6 +59,9 @@ public class BusinessXRFDataRespVO {
|
||||
@Schema(description = "检测任务ID", example = "16505")
|
||||
private Long businessAssayTaskDataId;
|
||||
|
||||
@Schema(description = "检测任务ID", example = "940")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测数据", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("检测数据")
|
||||
private String assayData;
|
||||
|
||||
@@ -52,6 +52,9 @@ public class BusinessXRFDataSaveReqVO {
|
||||
@Schema(description = "检测任务ID", example = "16505")
|
||||
private Long businessAssayTaskDataId;
|
||||
|
||||
@Schema(description = "检测任务ID", example = "940")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测数据", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "检测数据不能为空")
|
||||
private String assayData;
|
||||
|
||||
@@ -7,10 +7,10 @@ import lombok.Data;
|
||||
@Data
|
||||
public class ChangeAssayMethodReqVO {
|
||||
|
||||
private Long businessSubSampleId;
|
||||
private List<Long> businessSubSampleIdList;
|
||||
|
||||
private Long configAssayMethodId;
|
||||
|
||||
private List<Long> changeConfigAssayMethodIdList;
|
||||
private List<AssayMethodProjectRespVO> changeConfigAssayMethodProjectList;
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user