判定结果上报

This commit is contained in:
2025-10-15 16:41:18 +08:00
parent 7603f8c6c3
commit 09fd13af72
45 changed files with 1052 additions and 158 deletions

View File

@@ -32,6 +32,9 @@ public interface QmsCommonConstant {
/** 正常 **/ /** 正常 **/
String NORMAL = "normal"; String NORMAL = "normal";
/** 超差 **/
String EXCEEDS_TOLERANCE = "exceeds_tolerance";
/** 隔离 **/ /** 隔离 **/
String ISOLATION = "isolation"; String ISOLATION = "isolation";
@@ -74,6 +77,15 @@ public interface QmsCommonConstant {
/** 已完成 **/ /** 已完成 **/
String COMPLETED = "completed"; String COMPLETED = "completed";
/** 固定字段 **/
String FIELD_FIXED = "field_fixed";
/** 动态字段 **/
String FIELD_DYNAMIC = "field_dynamic";
/** 计算字段 **/
String FIELD_CALCULATED = "field_calculated";
/** 委托登记 **/ /** 委托登记 **/
String ENTRUST_REGISTRATION = "entrust_registration"; String ENTRUST_REGISTRATION = "entrust_registration";

View File

@@ -1,10 +1,12 @@
package com.zt.plat.module.qms.business.bus.controller.admin; package com.zt.plat.module.qms.business.bus.controller.admin;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson2.JSONObject;
import com.zt.plat.framework.common.pojo.CommonResult; import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisAuditService; import com.zt.plat.module.qms.business.bus.service.SampleAnalysisAuditService;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
@@ -33,4 +35,45 @@ public class SampleAnalysisAuditController {
sampleAnalysisAuditService.crossAuditByByTaskId(businessAssayTaskId, auditStatus); sampleAnalysisAuditService.crossAuditByByTaskId(businessAssayTaskId, auditStatus);
return success("成功"); return success("成功");
} }
@GetMapping("/getSampleResultAssessmentList")
public CommonResult<JSONObject> getSampleResultAssessmentList(Long configAssayMethodId) {
JSONObject result = sampleAnalysisAuditService.getSampleResultAssessmentList(configAssayMethodId);
return success(result);
}
@GetMapping("/getResultAssessment")
public CommonResult<?> getResultAssessment(String assayType, Long sampleId, Long configAssayMethodId) {
JSONObject result = null;
if ("平行".equals(assayType)) {
result = sampleAnalysisAuditService.getParallelResultAssessment(sampleId, configAssayMethodId);
} else if ("双杯".equals(assayType)) {
result = sampleAnalysisAuditService.getDoubleCupResultAssessment(sampleId, configAssayMethodId);
}
return success(result);
}
//平行分析结果判定
@GetMapping("/getParallelResultAssessment")
public CommonResult<?> getParallelResultAssessment(Long businessSubSampleId, Long configAssayMethodId) {
JSONObject result = sampleAnalysisAuditService.getParallelResultAssessment(businessSubSampleId, configAssayMethodId);
return success(result);
}
//双杯分析结果判定
@GetMapping("/getDoubleCupResultAssessment")
public CommonResult<?> getDoubleCupResultAssessment(Long businessSubParentSampleId, Long configAssayMethodId) {
JSONObject result = sampleAnalysisAuditService.getDoubleCupResultAssessment(businessSubParentSampleId, configAssayMethodId);
return success(result);
}
//判定数据上报
@PostMapping("/assessmentDataReporting")
public CommonResult<?> assessmentDataReporting(Long businessSubSampleId, Long configAssayMethodId) {
sampleAnalysisAuditService.assessmentDataReporting(businessSubSampleId, configAssayMethodId);
return success("成功");
}
} }

View File

@@ -62,4 +62,7 @@ public class BatchSampleAnalysisColumnRespVO implements Serializable {
@Schema(description = "单位") @Schema(description = "单位")
private String unit; private String unit;
@Schema(description = "填写方式")
private String fillingWay;
} }

View File

@@ -57,5 +57,7 @@ public class BusinessAssayProjectAndParameterRespVO implements Serializable {
/** 类型1元素2参数 **/ /** 类型1元素2参数 **/
@Schema(description = "类型project元素2参数") @Schema(description = "类型project元素2参数")
private String type; private String type;
@Schema(description = "填写方式")
private String fillingWay;
} }

View File

@@ -0,0 +1,35 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class BusinessAssayProjectDataExtendRespVO extends BusinessAssayProjectDataRespVO {
@Schema(description = "样品名称", example = "张三")
private String sampleName;
@Schema(description = "样品编号")
private String sampleCode;
@Schema(description = "分析编号")
private String sampleAssayCode;
@Schema(description = "归库编号")
private String sampleReturnCode;
@Schema(description = "分析人员")
private String assayOperator;
@Schema(description = "检测项目key")
private String dictionaryProjectKey;
@Schema(description = "检测项目缩写")
private String simpleName;
@Schema(description = "显示名称")
private String showName;
@Schema(description = "单位")
private String dictionaryProjectUnit;
}

View File

@@ -13,6 +13,12 @@ import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH
@Data @Data
public class BusinessAssayProjectDataReqVO { public class BusinessAssayProjectDataReqVO {
@Schema(description = "分样子样ID", example = "20464")
private Long businessSubSampleId;
@Schema(description = "检测方法配置ID", example = "9130")
private Long configAssayMethodId;
@Schema(description = "检测任务ID", example = "16505") @Schema(description = "检测任务ID", example = "16505")
private Long businessAssayTaskDataId; private Long businessAssayTaskDataId;

View File

@@ -1,10 +1,18 @@
package com.zt.plat.module.qms.business.bus.controller.vo; package com.zt.plat.module.qms.business.bus.controller.vo;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
@Data @Data
public class BusinessAssayTaskDataExtendRespVO extends BusinessAssayTaskDataRespVO { public class BusinessAssayTaskDataExtendRespVO extends BusinessAssayTaskDataRespVO {
@Schema(description = "收样人")
private String sampleReceiver;
@Schema(description = "收样时间")
private LocalDateTime sampleReceiveTime;
/** 分析方法名称 **/ /** 分析方法名称 **/
@Schema(description = "分析方法名称") @Schema(description = "分析方法名称")

View File

@@ -0,0 +1,17 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class BusinessSubSampleAssessmentExtendRespVO extends BusinessSubSampleAssessmentRespVO {
@Schema(description = "检测项目key")
private String dictionaryProjectKey;
@Schema(description = "检测项目缩写")
private String simpleName;
@Schema(description = "显示名称")
private String showName;
}

View File

@@ -0,0 +1,31 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class ReportFieldValueData implements Serializable {
private static final long serialVersionUID = 4301653225442965919L;
@Schema(description = "字段名称")
private String fieldName;
@Schema(description = "")
private String fieldValue;
@Schema(description = "数据类型,【字典】【jy_sample_data_type】string-字符串int-整数decimal-小数,date-日期datetime-时间", example = "1")
private String dataType;
@Schema(description = "小数位")
private Integer decimalPosition;
@Schema(description = "单位")
private String unit;
@Schema(description = "符号")
private String mathSymbol;
}

View File

@@ -0,0 +1,37 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 样品分析结果判定
*/
@Data
public class SampleAssayResultAssessmentRespVO implements Serializable {
private static final long serialVersionUID = 5216179630941802338L;
@Schema(description = "样品名称")
private String sampleName;
@Schema(description = "样品编号")
private String sampleCode;
@Schema(description = "分析编号")
private String sampleAssayCode;
@Schema(description = "收样人")
private String sampleReceiver;
@Schema(description = "收样时间")
private LocalDateTime sampleReceiveTime;
@Schema(description = "分析人")
private String assayOperator;
@Schema(description = "上报时间")
private LocalDateTime reportTime;
}

Some files were not shown because too many files have changed in this diff Show More