补正系数、人工还是自动配料
This commit is contained in:
@@ -57,13 +57,20 @@ public class SampleAnalysisController implements BusinessControllerMarker {
|
||||
return success("成功");
|
||||
}
|
||||
|
||||
//下发配料
|
||||
//下发配料(自动火试金配料)
|
||||
@PostMapping("/issuedIngredients")
|
||||
public CommonResult<?> issuedIngredients(Long businessAssayTaskId) {
|
||||
sampleAnalysisService.issuedIngredients(businessAssayTaskId);
|
||||
return success("成功");
|
||||
}
|
||||
|
||||
//人工配料
|
||||
@PostMapping("/manualIngredients")
|
||||
public CommonResult<?> manualIngredients(Long businessAssayTaskId) {
|
||||
sampleAnalysisService.manualIngredients(businessAssayTaskId);
|
||||
return success("成功");
|
||||
}
|
||||
|
||||
@PostMapping("/submitSampleAnalysisByTaskId")
|
||||
public CommonResult<?> submitSampleAnalysisByTaskId(Long businessAssayTaskId) {
|
||||
sampleAnalysisService.submitSampleAnalysisByTaskId(businessAssayTaskId);
|
||||
|
||||
@@ -5,6 +5,8 @@ import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
@@ -31,6 +33,15 @@ public class BusinessAssayProjectDataPageReqVO extends PageParam {
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "补正系数ID", example = "1008")
|
||||
private Long configAssayMethodProjectCoefficientId;
|
||||
|
||||
@Schema(description = "补正系数")
|
||||
private BigDecimal coefficient;
|
||||
|
||||
@Schema(description = "补正后的值")
|
||||
private String valueAfter;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", example = "2")
|
||||
private String dataType;
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
@@ -37,6 +39,15 @@ public class BusinessAssayProjectDataReqVO {
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "补正系数ID", example = "1008")
|
||||
private Long configAssayMethodProjectCoefficientId;
|
||||
|
||||
@Schema(description = "补正系数")
|
||||
private BigDecimal coefficient;
|
||||
|
||||
@Schema(description = "补正后的值")
|
||||
private String valueAfter;
|
||||
|
||||
@Schema(description = "数据类型,【字典】【jy_sample_data_type】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", example = "1")
|
||||
private String dataType;
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@@ -38,6 +40,15 @@ public class BusinessAssayProjectDataRespVO {
|
||||
@ExcelProperty("值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "补正系数ID", example = "1008")
|
||||
private Long configAssayMethodProjectCoefficientId;
|
||||
|
||||
@Schema(description = "补正系数")
|
||||
private BigDecimal coefficient;
|
||||
|
||||
@Schema(description = "补正后的值")
|
||||
private String valueAfter;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@ExcelProperty("数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间")
|
||||
private String dataType;
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@@ -27,6 +29,15 @@ public class BusinessAssayProjectDataSaveReqVO {
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "补正系数ID", example = "1008")
|
||||
private Long configAssayMethodProjectCoefficientId;
|
||||
|
||||
@Schema(description = "补正系数")
|
||||
private BigDecimal coefficient;
|
||||
|
||||
@Schema(description = "补正后的值")
|
||||
private String valueAfter;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotEmpty(message = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间不能为空")
|
||||
private String dataType;
|
||||
|
||||
@@ -51,6 +51,9 @@ public class BusinessAssayTaskPageReqVO extends PageParam {
|
||||
@Schema(description = "是否配料,1-是,0-否")
|
||||
private Integer isIngredients;
|
||||
|
||||
@Schema(description = "配料方式,初始状态-initial、自动配料-automatic、人工配料-manual")
|
||||
private String ingredientsWay;
|
||||
|
||||
@Schema(description = "配料状态,初始状态-initial、等待配料-in_progress、可提交-allow_submit", example = "2")
|
||||
private String ingredientsStatus;
|
||||
|
||||
|
||||
@@ -50,6 +50,9 @@ public class BusinessAssayTaskReqVO {
|
||||
@Schema(description = "是否配料,1-是,0-否")
|
||||
private Integer isIngredients;
|
||||
|
||||
@Schema(description = "配料方式,初始状态-initial、自动配料-automatic、人工配料-manual")
|
||||
private String ingredientsWay;
|
||||
|
||||
@Schema(description = "配料状态,初始状态-initial、等待配料-in_progress、可提交-allow_submit", example = "2")
|
||||
private String ingredientsStatus;
|
||||
|
||||
|
||||
@@ -62,6 +62,9 @@ public class BusinessAssayTaskRespVO {
|
||||
@Schema(description = "是否配料,1-是,0-否")
|
||||
private Integer isIngredients;
|
||||
|
||||
@Schema(description = "配料方式,初始状态-initial、自动配料-automatic、人工配料-manual")
|
||||
private String ingredientsWay;
|
||||
|
||||
@Schema(description = "配料状态,初始状态-initial、等待配料-in_progress、可提交-allow_submit", example = "2")
|
||||
private String ingredientsStatus;
|
||||
|
||||
|
||||
@@ -60,6 +60,9 @@ public class BusinessAssayTaskSaveReqVO {
|
||||
@Schema(description = "是否配料,1-是,0-否")
|
||||
private Integer isIngredients;
|
||||
|
||||
@Schema(description = "配料方式,初始状态-initial、自动配料-automatic、人工配料-manual")
|
||||
private String ingredientsWay;
|
||||
|
||||
@Schema(description = "配料状态,初始状态-initial、等待配料-in_progress、可提交-allow_submit", example = "2")
|
||||
private String ingredientsStatus;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package com.zt.plat.module.qms.business.bus.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
@@ -62,6 +62,21 @@ public class BusinessAssayProjectDataDO extends BusinessBaseDO {
|
||||
@TableField(value = "VAL", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private String value;
|
||||
/**
|
||||
* 补正系数ID
|
||||
*/
|
||||
@TableField(value = "CFG_ASY_MTHD_PRJ_COEF_ID", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Long configAssayMethodProjectCoefficientId;
|
||||
/**
|
||||
* 补正系数
|
||||
*/
|
||||
@TableField(value = "COEF", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private BigDecimal coefficient;
|
||||
/**
|
||||
* 补正后的值
|
||||
*/
|
||||
@TableField(value = "VAL_AFT", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private String valueAfter;
|
||||
/**
|
||||
* 数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
|
||||
@@ -90,6 +90,11 @@ public class BusinessAssayTaskDO extends BusinessBaseDO {
|
||||
@TableField("IS_IGDT")
|
||||
private Integer isIngredients;
|
||||
/**
|
||||
* 配料方式,初始状态-initial、自动配料-automatic、人工配料-manual
|
||||
*/
|
||||
@TableField("IGDT_WY")
|
||||
private String ingredientsWay;
|
||||
/**
|
||||
* 配料状态,初始状态-initial、等待配料-in_progress、可提交-allow_submit
|
||||
*/
|
||||
@TableField("IGDT_STS")
|
||||
|
||||
@@ -56,6 +56,9 @@ public interface BusinessAssayProjectDataMapper extends BaseMapperX<BusinessAssa
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getUsage, reqVO.getUsage())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getSymbol, reqVO.getSymbol())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getValue, reqVO.getValue())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getConfigAssayMethodProjectCoefficientId, reqVO.getConfigAssayMethodProjectCoefficientId())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getCoefficient, reqVO.getCoefficient())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getValueAfter, reqVO.getValueAfter())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getIsNotAssessment, reqVO.getIsNotAssessment())
|
||||
@@ -75,6 +78,9 @@ public interface BusinessAssayProjectDataMapper extends BaseMapperX<BusinessAssa
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getUsage, reqVO.getUsage())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getSymbol, reqVO.getSymbol())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getValue, reqVO.getValue())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getConfigAssayMethodProjectCoefficientId, reqVO.getConfigAssayMethodProjectCoefficientId())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getCoefficient, reqVO.getCoefficient())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getValueAfter, reqVO.getValueAfter())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(BusinessAssayProjectDataDO::getIsNotAssessment, reqVO.getIsNotAssessment())
|
||||
|
||||
@@ -42,6 +42,7 @@ public interface BusinessAssayTaskMapper extends BaseMapperX<BusinessAssayTaskDO
|
||||
.eqIfPresent(BusinessAssayTaskDO::getTaskAssignStatus, reqVO.getTaskAssignStatus())
|
||||
.betweenIfPresent(BusinessAssayTaskDO::getTaskAssignSubmitTime, reqVO.getTaskAssignSubmitTime())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIsIngredients, reqVO.getIsIngredients())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIngredientsWay, reqVO.getIngredientsWay())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIngredientsStatus, reqVO.getIngredientsStatus())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getAssayOperatorId, reqVO.getAssayOperatorId())
|
||||
@@ -89,6 +90,7 @@ public interface BusinessAssayTaskMapper extends BaseMapperX<BusinessAssayTaskDO
|
||||
.eqIfPresent(BusinessAssayTaskDO::getTaskAssignStatus, reqVO.getTaskAssignStatus())
|
||||
.betweenIfPresent(BusinessAssayTaskDO::getTaskAssignSubmitTime, reqVO.getTaskAssignSubmitTime())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIsIngredients, reqVO.getIsIngredients())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIngredientsWay, reqVO.getIngredientsWay())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getIngredientsStatus, reqVO.getIngredientsStatus())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.eqIfPresent(BusinessAssayTaskDO::getAssayOperatorId, reqVO.getAssayOperatorId())
|
||||
|
||||
@@ -30,11 +30,17 @@ public interface SampleAnalysisService {
|
||||
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId);
|
||||
|
||||
/**
|
||||
* 下发配料
|
||||
* 下发配料(自动火试金配料)
|
||||
* @param businessAssayTaskId
|
||||
*/
|
||||
void issuedIngredients(Long businessAssayTaskId);
|
||||
|
||||
/**
|
||||
* 人工配料
|
||||
* @param businessAssayTaskId
|
||||
*/
|
||||
void manualIngredients(Long businessAssayTaskId);
|
||||
|
||||
/**
|
||||
* 根据任务单id提交分析数据
|
||||
* @param businessAssayTaskId 任务单id
|
||||
@@ -57,4 +63,5 @@ public interface SampleAnalysisService {
|
||||
void rollbackAnalysisSample(BusinessAssayTaskBackSampleReqVO req);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1433,8 +1433,18 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
|
||||
}
|
||||
}
|
||||
businessAssayTaskDO.setIngredientsWay(QmsCommonConstant.AUTOMATIC);//自动火试金配料
|
||||
businessAssayTaskDO.setIngredientsStatus(QmsCommonConstant.IN_PROGRESS);
|
||||
businessAssayTaskMapper.updateById(businessAssayTaskDO);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void manualIngredients(Long businessAssayTaskId) {
|
||||
BusinessAssayTaskDO businessAssayTaskDO = businessAssayTaskMapper.selectById(businessAssayTaskId);
|
||||
businessAssayTaskDO.setIngredientsWay(QmsCommonConstant.MANUAL);//人工配料
|
||||
businessAssayTaskDO.setIngredientsStatus(QmsCommonConstant.IN_PROGRESS);//表示为允许提交
|
||||
businessAssayTaskMapper.updateById(businessAssayTaskDO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user