判定结果上报
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
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.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisAuditService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -33,4 +35,45 @@ public class SampleAnalysisAuditController {
|
||||
sampleAnalysisAuditService.crossAuditByByTaskId(businessAssayTaskId, auditStatus);
|
||||
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("成功");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -62,4 +62,7 @@ public class BatchSampleAnalysisColumnRespVO implements Serializable {
|
||||
|
||||
@Schema(description = "单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "填写方式")
|
||||
private String fillingWay;
|
||||
}
|
||||
|
||||
@@ -57,5 +57,7 @@ public class BusinessAssayProjectAndParameterRespVO implements Serializable {
|
||||
/** 类型(1:元素,2:参数) **/
|
||||
@Schema(description = "类型(project:元素,2:参数)")
|
||||
private String type;
|
||||
|
||||
|
||||
@Schema(description = "填写方式")
|
||||
private String fillingWay;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -13,6 +13,12 @@ import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH
|
||||
@Data
|
||||
public class BusinessAssayProjectDataReqVO {
|
||||
|
||||
@Schema(description = "分样子样ID", example = "20464")
|
||||
private Long businessSubSampleId;
|
||||
|
||||
@Schema(description = "检测方法配置ID", example = "9130")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "检测任务ID", example = "16505")
|
||||
private Long businessAssayTaskDataId;
|
||||
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class BusinessAssayTaskDataExtendRespVO extends BusinessAssayTaskDataRespVO {
|
||||
|
||||
@Schema(description = "收样人")
|
||||
private String sampleReceiver;
|
||||
|
||||
@Schema(description = "收样时间")
|
||||
private LocalDateTime sampleReceiveTime;
|
||||
|
||||
/** 分析方法名称 **/
|
||||
@Schema(description = "分析方法名称")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -32,6 +32,7 @@ public interface BusinessAssayParameterDataMapper extends BaseMapperX<BusinessAs
|
||||
.selectAs(DictionaryParameterDO::getKey, BusinessAssayProjectAndParameterRespVO::getDicKey)
|
||||
.selectAs(DictionaryParameterDO::getName, BusinessAssayProjectAndParameterRespVO::getName)
|
||||
.selectAs(DictionaryParameterDO::getName, BusinessAssayProjectAndParameterRespVO::getShowName)
|
||||
.selectAs(DictionaryParameterDO::getFillingWay, BusinessAssayProjectAndParameterRespVO::getFillingWay)
|
||||
.selectAs(BusinessAssayParameterDataDO::getDataType, BusinessAssayProjectAndParameterRespVO::getDataType)
|
||||
.selectAs(BusinessAssayParameterDataDO::getDecimalPosition, BusinessAssayProjectAndParameterRespVO::getDecimalPosition)
|
||||
.selectAs(BusinessAssayParameterDataDO::getValue, BusinessAssayProjectAndParameterRespVO::getValue)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user