分析班组添加是否送样标识
This commit is contained in:
@@ -31,6 +31,9 @@ public class BusinessSubSampleAnalysisGroupPageReqVO extends PageParam {
|
|||||||
@Schema(description = "样品状态", example = "1")
|
@Schema(description = "样品状态", example = "1")
|
||||||
private String sampleStatus;
|
private String sampleStatus;
|
||||||
|
|
||||||
|
@Schema(description = "是否送样")
|
||||||
|
private Integer isSend;
|
||||||
|
|
||||||
@Schema(description = "收样人")
|
@Schema(description = "收样人")
|
||||||
private String sampleReceiver;
|
private String sampleReceiver;
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class BusinessSubSampleAnalysisGroupRespVO {
|
|||||||
@ExcelProperty("样品状态")
|
@ExcelProperty("样品状态")
|
||||||
private String sampleStatus;
|
private String sampleStatus;
|
||||||
|
|
||||||
|
@Schema(description = "是否送样")
|
||||||
|
private Integer isSend;
|
||||||
|
|
||||||
@Schema(description = "收样人")
|
@Schema(description = "收样人")
|
||||||
@ExcelProperty("收样人")
|
@ExcelProperty("收样人")
|
||||||
private String sampleReceiver;
|
private String sampleReceiver;
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ public class BusinessSubSampleAnalysisGroupSaveReqVO {
|
|||||||
@NotEmpty(message = "样品状态不能为空")
|
@NotEmpty(message = "样品状态不能为空")
|
||||||
private String sampleStatus;
|
private String sampleStatus;
|
||||||
|
|
||||||
|
@Schema(description = "是否送样")
|
||||||
|
private Integer isSend;
|
||||||
|
|
||||||
@Schema(description = "收样人")
|
@Schema(description = "收样人")
|
||||||
private String sampleReceiver;
|
private String sampleReceiver;
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ public class BusinessSubSampleExtendRespVO extends BusinessSubSampleRespVO {
|
|||||||
|
|
||||||
@Schema(description = "分析部门名称")
|
@Schema(description = "分析部门名称")
|
||||||
private String assayDepartmentName;
|
private String assayDepartmentName;
|
||||||
|
|
||||||
|
@Schema(description = "是否已送样")
|
||||||
|
private Integer isSendSample;
|
||||||
|
|
||||||
@Schema(description = "是否打印")
|
@Schema(description = "是否打印")
|
||||||
private Integer isPrint;
|
private Integer isPrint;
|
||||||
|
|||||||
@@ -145,6 +145,9 @@ public class BusinessSubSamplePageReqVO extends PageParam {
|
|||||||
@Schema(description = "分析部门状态")
|
@Schema(description = "分析部门状态")
|
||||||
private String assayDepartmentStatus;
|
private String assayDepartmentStatus;
|
||||||
|
|
||||||
|
@Schema(description = "是否已送样")
|
||||||
|
private Integer isSendSample;
|
||||||
|
|
||||||
@Schema(description = "样品流程节点KEY列表")
|
@Schema(description = "样品流程节点KEY列表")
|
||||||
private List<String> sampleFlowNodeKeyList;
|
private List<String> sampleFlowNodeKeyList;
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,11 @@ public class BusinessSubSampleAnalysisGroupDO extends BusinessBaseDO {
|
|||||||
@TableField("SMP_STS")
|
@TableField("SMP_STS")
|
||||||
private String sampleStatus;
|
private String sampleStatus;
|
||||||
/**
|
/**
|
||||||
|
* 是否送样
|
||||||
|
*/
|
||||||
|
@TableField("IS_SND")
|
||||||
|
private Integer isSend;
|
||||||
|
/**
|
||||||
* 收样人
|
* 收样人
|
||||||
*/
|
*/
|
||||||
@TableField("SMP_RCVR")
|
@TableField("SMP_RCVR")
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ public interface BusinessSubSampleAnalysisGroupMapper extends BaseMapperX<Busine
|
|||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||||
.likeIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
.likeIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleStatus, reqVO.getSampleStatus())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleStatus, reqVO.getSampleStatus())
|
||||||
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getIsSend, reqVO.getIsSend())
|
||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleReceiver, reqVO.getSampleReceiver())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleReceiver, reqVO.getSampleReceiver())
|
||||||
.betweenIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleReceiveTime, reqVO.getSampleReceiveTime())
|
.betweenIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleReceiveTime, reqVO.getSampleReceiveTime())
|
||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ public interface BusinessSubSampleMapper extends BaseMapperX<BusinessSubSampleDO
|
|||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||||
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleStatus, reqVO.getAssayDepartmentStatus())
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getSampleStatus, reqVO.getAssayDepartmentStatus())
|
||||||
|
.eqIfPresent(BusinessSubSampleAnalysisGroupDO::getIsSend, reqVO.getIsSendSample())
|
||||||
.orderByDesc(BusinessSubSampleDO::getSampleFlowNodeTime).orderByAsc(BusinessSubSampleDO::getSampleCode));
|
.orderByDesc(BusinessSubSampleDO::getSampleFlowNodeTime).orderByAsc(BusinessSubSampleDO::getSampleCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,16 @@ public class SampleSubProcessUpdateCmp extends NodeComponent {
|
|||||||
}
|
}
|
||||||
sampleFlowContext.setBusinessSubSampleAnalysisGroupList(curDeptSubSampleAnalysisGroupDOList);
|
sampleFlowContext.setBusinessSubSampleAnalysisGroupList(curDeptSubSampleAnalysisGroupDOList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//如果是班组送样,需要更新分析班组表
|
||||||
|
if (QmsCommonConstant.FLOW_NODE_ANALYSIS_SEND.equals(currentSampleFlowKey)) {
|
||||||
|
List<BusinessSubSampleAnalysisGroupDO> curDeptSubSampleAnalysisGroupDOList = businessSubSampleAnalysisGroupDOList.stream().filter(f -> f.getAssayDepartmentId().equals(loginUser.getVisitDeptId())).collect(Collectors.toList());
|
||||||
|
for (BusinessSubSampleAnalysisGroupDO businessSubSampleAnalysisGroupDO : curDeptSubSampleAnalysisGroupDOList) {
|
||||||
|
businessSubSampleAnalysisGroupDO.setIsSend(QmsCommonConstant.YES);
|
||||||
|
}
|
||||||
|
sampleFlowContext.setBusinessSubSampleAnalysisGroupList(curDeptSubSampleAnalysisGroupDOList);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user