diff --git a/zt-module-qms/zt-module-qms-api/src/main/java/com/zt/plat/module/qms/enums/ErrorCodeConstants.java b/zt-module-qms/zt-module-qms-api/src/main/java/com/zt/plat/module/qms/enums/ErrorCodeConstants.java
index 02cbff4..8bf9abe 100644
--- a/zt-module-qms/zt-module-qms-api/src/main/java/com/zt/plat/module/qms/enums/ErrorCodeConstants.java
+++ b/zt-module-qms/zt-module-qms-api/src/main/java/com/zt/plat/module/qms/enums/ErrorCodeConstants.java
@@ -167,6 +167,11 @@ public interface ErrorCodeConstants {
/*================================= office 办公 1_032_250_000 ~ 1_032_299_999 ==================================*/
+ ErrorCode SUPPLIER_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商不存在");
+ ErrorCode SUPPLIER_PROPERTIES_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商属性不存在");
+ ErrorCode SUPPLIER_EVALUATION_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商评价不存在");
+ ErrorCode SUPPLIER_EVALUATION_AT_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商评价关系不存在");
+
/*================================= dzj 大质检 1_032_300_000 ~ 1_032_349_999 ==================================*/
diff --git a/zt-module-qms/zt-module-qms-server/pom.xml b/zt-module-qms/zt-module-qms-server/pom.xml
index 09c96af..747c7ac 100644
--- a/zt-module-qms/zt-module-qms-server/pom.xml
+++ b/zt-module-qms/zt-module-qms-server/pom.xml
@@ -17,7 +17,7 @@
QMS模块。
- 3.9.1.v20251013-RELEASE
+ 3.9.1.v20251204-RELEASE
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/BusinessSampleEntrustRegistrationController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/BusinessSampleEntrustRegistrationController.java
index bfde1bc..dbbb2cc 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/BusinessSampleEntrustRegistrationController.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/BusinessSampleEntrustRegistrationController.java
@@ -110,6 +110,9 @@ public class BusinessSampleEntrustRegistrationController implements BusinessCont
@GetMapping("/queryWaitingDataForReport")
@Operation(summary = "查询待编制数据")
public CommonResult> queryWaitingDataForReport(@Valid BusinessSampleEntrustRegistrationPageReqVO pageReqVO) {
+ Long configReportTypeId = pageReqVO.getConfigReportTypeId();
+ if(configReportTypeId == null)
+ return CommonResult.error(0, "缺少configReportTypeId参数,请刷新后重试!");
PageResult result = businessSampleEntrustRegistrationService.queryWaitingDataForReport(pageReqVO);
return success(result);
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleAnalysisAuditController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleAnalysisAuditController.java
index ced06cc..c51e3be 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleAnalysisAuditController.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleAnalysisAuditController.java
@@ -42,8 +42,8 @@ public class SampleAnalysisAuditController implements BusinessControllerMarker {
}
@GetMapping("/getSampleResultAssessmentList")
- public CommonResult getSampleResultAssessmentList(Long configAssayMethodId, String asmtReportedStatus) {
- JSONObject result = sampleAnalysisAuditService.getSampleResultAssessmentList(configAssayMethodId, asmtReportedStatus);
+ public CommonResult getSampleResultAssessmentList(BusinessAssayTaskDataReqVO reqVO) {
+ JSONObject result = sampleAnalysisAuditService.getSampleResultAssessmentList(reqVO);
return success(result);
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleFlowController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleFlowController.java
index 1fb1698..c128dff 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleFlowController.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleFlowController.java
@@ -1,33 +1,24 @@
package com.zt.plat.module.qms.business.bus.controller.admin;
-import java.util.ArrayList;
-import java.util.List;
-
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
-import com.alibaba.fastjson2.JSON;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
import com.zt.plat.framework.common.pojo.CommonResult;
-import com.zt.plat.framework.common.util.object.BeanUtils;
-import com.zt.plat.framework.tenant.core.context.TenantContextHolder;
-import com.zt.plat.module.qms.business.bus.liteflow.param.SampleFlowInfo;
import com.zt.plat.module.qms.business.bus.liteflow.param.SampleFlowParam;
import com.zt.plat.module.qms.business.bus.liteflow.slot.SampleFlowContext;
import com.zt.plat.module.qms.business.bus.service.SampleFlowService;
-import com.zt.plat.module.qms.core.sampleflow.SampleFlowDefinition;
-import com.zt.plat.module.qms.core.sampleflow.SampleFlowNode;
+import com.zt.plat.module.qms.enums.QmsCommonConstant;
+
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
-import static com.zt.plat.framework.common.pojo.CommonResult.error;
@Tag(name = "管理后台 - 样品流转")
@RestController
@@ -45,138 +36,22 @@ public class SampleFlowController implements BusinessControllerMarker {
public CommonResult> sampleFlow(@Validated @RequestBody SampleFlowParam sampleFlowParam) {
LiteflowResponse response = sampleFlowService.sampleFlow(sampleFlowParam);
return success(response.getContextBean(SampleFlowContext.class));
- }
-
- @GetMapping("/test")
- public CommonResult> test() {
-
- SampleFlowDefinition sampleFlowDefinition = new SampleFlowDefinition();
- sampleFlowDefinition.setFlowKey("flw_sub_sample_process");
- sampleFlowDefinition.setFlowName("子样样品流转流程");
- List flowNodeList = new ArrayList<>();
-
- SampleFlowNode zxr = new SampleFlowNode();
- zxr.setNodeName("中心收样");
- zxr.setNodeKey("flw_center_receive");
- zxr.setSort(3100);
-
- SampleFlowNode zxs = new SampleFlowNode();
- zxs.setNodeName("中心送样");
- zxs.setNodeKey("flw_center_send");
- zxs.setSort(3200);
-
- SampleFlowNode bzr = new SampleFlowNode();
- bzr.setNodeName("班组收样");
- bzr.setNodeKey("flw_team_receive");
- bzr.setSort(3300);
-
- SampleFlowNode ypbm = new SampleFlowNode();
- ypbm.setNodeName("样品编密");
- ypbm.setNodeKey("flw_sample_encrypt");
- ypbm.setSort(3400);
-
-// SampleFlowNode fxr = new SampleFlowNode();
-// fxr.setNodeName("分析收样");
-// fxr.setNodeKey("flw_analysis_receive");
-// fxr.setSort(3500);
-//
- SampleFlowNode fx = new SampleFlowNode();
- fx.setNodeName("样品分析");
- fx.setNodeKey("flw_analysis");
- fx.setSort(3550);
-//
-// SampleFlowNode fxs = new SampleFlowNode();
-// fxs.setNodeName("分析送样");
-// fxs.setNodeKey("flw_analysis_send");
-// fxs.setSort(3600);
-
- SampleFlowNode bzs = new SampleFlowNode();
- bzs.setNodeName("班组送样");
- bzs.setNodeKey("flw_team_send");
- bzs.setSort(3700);
-
- SampleFlowNode ypgk = new SampleFlowNode();
- ypgk.setNodeName("样品归库");
- ypgk.setNodeKey("flw_sample_storage");
- ypgk.setSort(3800);
- ypgk.setNextFlowNodeList(null);
- flowNodeList.add(ypgk);
-
-
- zxr.setNextFlowNodeList(new ArrayList() {
- {
- add(BeanUtils.toBean(zxs,SampleFlowNode.class).setIsDefault(true));
- }
- });
- flowNodeList.add(zxr);
-
-
- zxs.setNextFlowNodeList(new ArrayList<>() {{
- add(BeanUtils.toBean(bzr,SampleFlowNode.class).setIsDefault(true));
- }});
- flowNodeList.add(zxs);
-
- bzr.setNextFlowNodeList(new ArrayList<>() {{
- add(BeanUtils.toBean(ypbm,SampleFlowNode.class).setCondition("subSampleEncrypt"));//样品需要编密并且没编密过
- add(BeanUtils.toBean(fx,SampleFlowNode.class).setCondition("subSampleNotEncrypt"));//样品无需编密或样品已编密过
- }});
- flowNodeList.add(bzr);
-
-
- ypbm.setNextFlowNodeList(new ArrayList<>() {{
- add(BeanUtils.toBean(fx,SampleFlowNode.class).setIsDefault(true));
- }});
- flowNodeList.add(ypbm);
-
-
-// fxr.setNextFlowNodeList(new ArrayList<>() {{
-// add(BeanUtils.toBean(fxs,SampleFlowNode.class).setIsDefault(true));
-// }});
-// flowNodeList.add(fxr);
-//
-//
-// fxs.setNextFlowNodeList(new ArrayList<>() {{
-// add(BeanUtils.toBean(bzs,SampleFlowNode.class).setIsDefault(true).setCondition("当前部门任务已全部分析完"));
-// }});
-// flowNodeList.add(fxs);
-
- fx.setNextFlowNodeList(new ArrayList<>() {{
- add(BeanUtils.toBean(bzs,SampleFlowNode.class).setIsDefault(true).setCondition("当前部门任务已全部分析完"));
- }});
- flowNodeList.add(fx);
-
- bzs.setNextFlowNodeList(new ArrayList<>() {{
-// add(BeanUtils.toBean(fx,SampleFlowNode.class).setCondition("样品当前分析班组结果超差,需要发起复检"));
- add(BeanUtils.toBean(bzr,SampleFlowNode.class).setCondition("subSampleSelfReportedOthersPending"));//当前部门数据已全部判断上报
- add(BeanUtils.toBean(ypgk,SampleFlowNode.class).setCondition("subSampleAlldeptAnalyzed"));//当前样品所有分析任务已全部上报完
- }});
- flowNodeList.add(bzs);
-
- sampleFlowDefinition.setFlowNodeList(flowNodeList);
-
- String jsonSampleFlowDefinition = JSON.toJSONString(sampleFlowDefinition);
-
- System.out.println(jsonSampleFlowDefinition);
-
- Long tenantId = TenantContextHolder.getRequiredTenantId();
-
- List sampleFlowInfoList = new ArrayList<>();
- sampleFlowInfoList.add(new SampleFlowInfo().setId(1967550576457330690L).setIsWeighing(0));
-
- SampleFlowParam sampleFlowParam = new SampleFlowParam();
- sampleFlowParam.setSampleSourceType(2);
- sampleFlowParam.setCurrentSampleFlowKey("P3000");
- sampleFlowParam.setSampleFlowInfoList(sampleFlowInfoList);
-
-
-
- LiteflowResponse response = flowExecutor.execute2Resp("sampleFlowChain" + tenantId, sampleFlowParam, SampleFlowContext.class);
- if (response.isSuccess()) {
- return success(response.getContextBean(SampleFlowContext.class));
- } else {
- return error(1_032_100_000, response.getMessage());
- }
- //return success(FlowBus.getNodeMap());
- }
+ }
+ /**
+ * 中心收样并送样
+ * @param sampleFlowParam
+ * @return
+ */
+ @PostMapping("/centerReceiveAndSend")
+ public CommonResult> centerReceiveAndSend(@Validated @RequestBody SampleFlowParam sampleFlowParam) {
+ //中心收样
+ sampleFlowParam.setCurrentSampleFlowKey(QmsCommonConstant.FLOW_NODE_CENTER_RECEIVE);
+ LiteflowResponse response = sampleFlowService.sampleFlow(sampleFlowParam);
+ //中心送样
+ sampleFlowParam.setCurrentSampleFlowKey(QmsCommonConstant.FLOW_NODE_CENTER_SEND);
+ sampleFlowParam.setSendSampleOper(null);
+ response = sampleFlowService.sampleFlow(sampleFlowParam);
+ return success(response.getContextBean(SampleFlowContext.class));
+ }
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleResultReportingController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleResultReportingController.java
index 19032a0..4e0db17 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleResultReportingController.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleResultReportingController.java
@@ -43,8 +43,8 @@ public class SampleResultReportingController implements BusinessControllerMarker
//获取方法对应的样品
@GetMapping("/getSampleResultReportingList")
- public CommonResult> getSampleResultReportingList(Long configAssayMethodId) {
- JSONObject result = sampleResultReportingService.getSampleResultReportingList(configAssayMethodId);
+ public CommonResult> getSampleResultReportingList(BusinessSubParentSampleAssessmentGroupReqVO reqVO) {
+ JSONObject result = sampleResultReportingService.getSampleResultReportingList(reqVO);
return success(result);
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleTaskAssignController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleTaskAssignController.java
index e1dac76..f47fc73 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleTaskAssignController.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/SampleTaskAssignController.java
@@ -39,6 +39,13 @@ public class SampleTaskAssignController implements BusinessControllerMarker {
List list = sampleTaskAssignService.getAssignUserList();
return success(list);
}
+
+ @Operation(description = "根据用户id获取用户信息")
+ @GetMapping("/getUserInfoById")
+ public CommonResult> getUserInfoById(Long userId) {
+ AdminUserRespDTO userRespDTO = sampleTaskAssignService.getUserInfoById(userId);
+ return success(userRespDTO);
+ }
@GetMapping("/getAssaySampleList")
public CommonResult> getAssaySampleList(BusinessAssayTaskDataReqVO reqVO) {
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/TestController.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/TestController.java
new file mode 100644
index 0000000..372c7f4
--- /dev/null
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/admin/TestController.java
@@ -0,0 +1,155 @@
+package com.zt.plat.module.qms.business.bus.controller.admin;
+
+import static com.zt.plat.framework.common.pojo.CommonResult.success;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.alibaba.fastjson2.JSON;
+import com.zt.plat.framework.common.pojo.CommonResult;
+import com.zt.plat.framework.common.util.object.BeanUtils;
+import com.zt.plat.module.qms.core.sampleflow.SampleFlowDefinition;
+import com.zt.plat.module.qms.core.sampleflow.SampleFlowNode;
+
+
+@RestController
+@RequestMapping("/qms/bus/test")
+public class TestController {
+
+
+ @GetMapping("/testSampleFlow")
+ public CommonResult> testSampleFlow() {
+
+ SampleFlowDefinition sampleFlowDefinition = new SampleFlowDefinition();
+ sampleFlowDefinition.setFlowKey("flw_sub_sample_process");
+ sampleFlowDefinition.setFlowName("子样样品流转流程");
+ List flowNodeList = new ArrayList<>();
+
+ SampleFlowNode zxr = new SampleFlowNode();
+ zxr.setNodeName("中心收样");
+ zxr.setNodeKey("flw_center_receive");
+ zxr.setSort(3100);
+
+ SampleFlowNode zxs = new SampleFlowNode();
+ zxs.setNodeName("中心送样");
+ zxs.setNodeKey("flw_center_send");
+ zxs.setSort(3200);
+
+ SampleFlowNode bzr = new SampleFlowNode();
+ bzr.setNodeName("班组收样");
+ bzr.setNodeKey("flw_team_receive");
+ bzr.setSort(3300);
+
+ SampleFlowNode ypbm = new SampleFlowNode();
+ ypbm.setNodeName("样品编密");
+ ypbm.setNodeKey("flw_sample_encrypt");
+ ypbm.setSort(3400);
+
+// SampleFlowNode fxr = new SampleFlowNode();
+// fxr.setNodeName("分析收样");
+// fxr.setNodeKey("flw_analysis_receive");
+// fxr.setSort(3500);
+//
+ SampleFlowNode fx = new SampleFlowNode();
+ fx.setNodeName("样品分析");
+ fx.setNodeKey("flw_analysis");
+ fx.setSort(3550);
+//
+// SampleFlowNode fxs = new SampleFlowNode();
+// fxs.setNodeName("分析送样");
+// fxs.setNodeKey("flw_analysis_send");
+// fxs.setSort(3600);
+
+ SampleFlowNode bzs = new SampleFlowNode();
+ bzs.setNodeName("班组送样");
+ bzs.setNodeKey("flw_team_send");
+ bzs.setSort(3700);
+
+ SampleFlowNode ypgk = new SampleFlowNode();
+ ypgk.setNodeName("样品归库");
+ ypgk.setNodeKey("flw_sample_storage");
+ ypgk.setSort(3800);
+ ypgk.setNextFlowNodeList(null);
+ flowNodeList.add(ypgk);
+
+
+ zxr.setNextFlowNodeList(new ArrayList() {
+ private static final long serialVersionUID = 6146393613606839512L;
+
+ {
+ add(BeanUtils.toBean(zxs,SampleFlowNode.class).setIsDefault(true));
+ }
+ });
+ flowNodeList.add(zxr);
+
+
+ zxs.setNextFlowNodeList(new ArrayList<>() {
+ private static final long serialVersionUID = 5357543125760924047L;
+
+ {
+ add(BeanUtils.toBean(bzr,SampleFlowNode.class).setIsDefault(true));
+ }});
+ flowNodeList.add(zxs);
+
+ bzr.setNextFlowNodeList(new ArrayList<>() {
+ private static final long serialVersionUID = 6376704859477839016L;
+
+ {
+ add(BeanUtils.toBean(ypbm,SampleFlowNode.class).setCondition("subSampleEncrypt"));//样品需要编密并且没编密过
+ add(BeanUtils.toBean(fx,SampleFlowNode.class).setCondition("subSampleNotEncrypt"));//样品无需编密或样品已编密过
+ }});
+ flowNodeList.add(bzr);
+
+
+ ypbm.setNextFlowNodeList(new ArrayList<>() {
+ private static final long serialVersionUID = 1014984817516902869L;
+
+ {
+ add(BeanUtils.toBean(fx,SampleFlowNode.class).setIsDefault(true));
+ }});
+ flowNodeList.add(ypbm);
+
+
+// fxr.setNextFlowNodeList(new ArrayList<>() {{
+// add(BeanUtils.toBean(fxs,SampleFlowNode.class).setIsDefault(true));
+// }});
+// flowNodeList.add(fxr);
+//
+//
+// fxs.setNextFlowNodeList(new ArrayList<>() {{
+// add(BeanUtils.toBean(bzs,SampleFlowNode.class).setIsDefault(true).setCondition("当前部门任务已全部分析完"));
+// }});
+// flowNodeList.add(fxs);
+
+ fx.setNextFlowNodeList(new ArrayList<>() {
+ private static final long serialVersionUID = -610440034210287957L;
+
+ {
+ add(BeanUtils.toBean(bzs,SampleFlowNode.class).setIsDefault(true).setCondition("当前部门任务已全部分析完"));
+ }});
+ flowNodeList.add(fx);
+
+ bzs.setNextFlowNodeList(new ArrayList<>() {
+ private static final long serialVersionUID = -5057434004685743838L;
+
+ {
+// add(BeanUtils.toBean(fx,SampleFlowNode.class).setCondition("样品当前分析班组结果超差,需要发起复检"));
+ add(BeanUtils.toBean(bzr,SampleFlowNode.class).setCondition("subSampleSelfReportedOthersPending"));//当前部门数据已全部判断上报
+ add(BeanUtils.toBean(ypgk,SampleFlowNode.class).setCondition("subSampleAlldeptAnalyzed"));//当前样品所有分析任务已全部上报完
+ }});
+ flowNodeList.add(bzs);
+
+ sampleFlowDefinition.setFlowNodeList(flowNodeList);
+
+ String jsonSampleFlowDefinition = JSON.toJSONString(sampleFlowDefinition);
+
+ System.out.println(jsonSampleFlowDefinition);
+
+ return success(jsonSampleFlowDefinition);
+ }
+
+}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskDataReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskDataReqVO.java
index 77b2d62..e503688 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskDataReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskDataReqVO.java
@@ -105,4 +105,19 @@ public class BusinessAssayTaskDataReqVO {
@Schema(description = "样品状态")
private String sampleStatus;
+ @Schema(description = "检测方法配置名称")
+ private String configAssayMethodName;
+
+ @Schema(description = "收样时间")
+ @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+ private LocalDateTime[] sampleReceiveTime;
+
+ @Schema(description = "样品编号")
+ private String sampleCode;
+
+ @Schema(description = "分析编号")
+ private String sampleAssayCode;
+
+ @Schema(description = "归库编号")
+ private String sampleReturnCode;
}
\ No newline at end of file
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskPageReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskPageReqVO.java
index cbdade7..6a2b069 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskPageReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskPageReqVO.java
@@ -100,10 +100,10 @@ public class BusinessAssayTaskPageReqVO extends PageParam {
@Schema(description = "签名信息")
private String documentSignature;
- @Schema(description = "完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "2")
+ @Schema(description = "完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "2")
private String finishStatus;
- @Schema(description = "流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "1")
+ @Schema(description = "流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "1")
private String flowStatus;
@Schema(description = "所属部门")
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskReqVO.java
index 3767ed4..0ae445f 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskReqVO.java
@@ -99,10 +99,10 @@ public class BusinessAssayTaskReqVO {
@Schema(description = "签名信息")
private String documentSignature;
- @Schema(description = "完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "2")
+ @Schema(description = "完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "2")
private String finishStatus;
- @Schema(description = "流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "1")
+ @Schema(description = "流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "1")
private String flowStatus;
@Schema(description = "所属部门")
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskRespVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskRespVO.java
index a31f6ed..a6c9999 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskRespVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskRespVO.java
@@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
+import com.zt.plat.module.qms.core.aspect.annotation.Dict;
@Schema(description = "管理后台 - 检测任务分配业务 Response VO")
@Data
@@ -116,12 +117,13 @@ public class BusinessAssayTaskRespVO {
@ExcelProperty("签名信息")
private String documentSignature;
- @Schema(description = "完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "2")
- @ExcelProperty("完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved")
+ @Schema(description = "完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "2")
+ @ExcelProperty("完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed")
private String finishStatus;
- @Schema(description = "流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "1")
- @ExcelProperty("流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved")
+ @Dict(dicCode = "flow_status")
+ @Schema(description = "流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "1")
+ @ExcelProperty("流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed")
private String flowStatus;
@Schema(description = "所属部门")
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskSaveReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskSaveReqVO.java
index fb95ba7..b00fc07 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskSaveReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessAssayTaskSaveReqVO.java
@@ -102,10 +102,10 @@ public class BusinessAssayTaskSaveReqVO {
@Schema(description = "签名信息")
private String documentSignature;
- @Schema(description = "完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "2")
+ @Schema(description = "完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "2")
private String finishStatus;
- @Schema(description = "流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved", example = "1")
+ @Schema(description = "流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed", example = "1")
private String flowStatus;
@Schema(description = "所属部门")
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessHandoverRecordSubPageReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessHandoverRecordSubPageReqVO.java
index 783c9a5..b73c46e 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessHandoverRecordSubPageReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessHandoverRecordSubPageReqVO.java
@@ -64,5 +64,16 @@ public class BusinessHandoverRecordSubPageReqVO extends PageParam {
@Schema(description = "备注")
private String remark;
+ //==============扩展字段================
+
private Long deptId;
+
+ @Schema(description = "分析编号")
+ private String sampleAssayCode;
+
+ @Schema(description = "归库编号")
+ private String sampleReturnCode;
+
+ @Schema(description = "样品名称")
+ private String sampleName;
}
\ No newline at end of file
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustDetailExtendRespVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustDetailExtendRespVO.java
index 18c741e..05eb841 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustDetailExtendRespVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustDetailExtendRespVO.java
@@ -17,6 +17,11 @@ import lombok.Data;
@Data
public class BusinessSampleEntrustDetailExtendRespVO extends BusinessSampleEntrustDetailRespVO {
+ /**
+ * 样品类型key
+ */
+ private String sampleTypeDictionaryBusinessKey;
+
/** 样品大类名称 **/
private String baseSampleName;
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationPageReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationPageReqVO.java
index 26e7757..a5dc088 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationPageReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationPageReqVO.java
@@ -156,4 +156,7 @@ public class BusinessSampleEntrustRegistrationPageReqVO extends PageParam {
//====================扩展字段======================
@Schema(description = "委托来源名称")
private String configEntrustSourceName;
+
+ @Schema(description = "报表配置id")
+ private Long configReportTypeId;
}
\ No newline at end of file
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationRespVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationRespVO.java
index 2d33f95..918b195 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationRespVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSampleEntrustRegistrationRespVO.java
@@ -6,6 +6,7 @@ import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
+import com.zt.plat.module.qms.core.aspect.annotation.Dict;
@Schema(description = "管理后台 - 委检登记业务 Response VO")
@Data
@@ -144,10 +145,12 @@ public class BusinessSampleEntrustRegistrationRespVO {
@ExcelProperty("数据校验状态,success-数据校验成功、fail-数据校验失败")
private String dataCheckStatus;
+ @Dict(dicCode = "entrust_assay_status")
@Schema(description = "检验状态,unchecked-未检验;checked-已检验", example = "2")
@ExcelProperty("检验状态,unchecked-未检验;checked-已检验")
private String assayStatus;
+ @Dict(dicCode = "entrust_data_status")
@Schema(description = "数据回报状态,unreturned-未回报;returned-已回报", example = "1")
@ExcelProperty("数据回报状态,unreturned-未回报;returned-已回报")
private String dataStatus;
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSubParentSampleAssessmentGroupReqVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSubParentSampleAssessmentGroupReqVO.java
index 8df8634..85cf363 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSubParentSampleAssessmentGroupReqVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/BusinessSubParentSampleAssessmentGroupReqVO.java
@@ -1,5 +1,11 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
+import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
+
+import java.time.LocalDateTime;
+
+import org.springframework.format.annotation.DateTimeFormat;
+
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@@ -17,4 +23,8 @@ public class BusinessSubParentSampleAssessmentGroupReqVO {
@Schema(description = "分析部门名称")
private String assayDepartmentName;
+
+ @Schema(description = "收样时间")
+ @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+ private LocalDateTime[] sampleReceiveTime;
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/NoReportSubParentSampleAssessmentRespVO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/NoReportSubParentSampleAssessmentRespVO.java
index 6726322..a6de020 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/NoReportSubParentSampleAssessmentRespVO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/controller/vo/NoReportSubParentSampleAssessmentRespVO.java
@@ -1,5 +1,7 @@
package com.zt.plat.module.qms.business.bus.controller.vo;
+import java.time.LocalDateTime;
+
import lombok.Data;
@Data
@@ -22,4 +24,7 @@ public class NoReportSubParentSampleAssessmentRespVO {
private String taskType;
private String assayType;
+
+
+ private LocalDateTime sampleReceiveTime;
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/dataobject/BusinessAssayTaskDO.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/dataobject/BusinessAssayTaskDO.java
index c88515e..94f1b1d 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/dataobject/BusinessAssayTaskDO.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/dataobject/BusinessAssayTaskDO.java
@@ -160,12 +160,12 @@ public class BusinessAssayTaskDO extends BusinessBaseDO {
@TableField("DOC_SIG")
private String documentSignature;
/**
- * 完成状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved
+ * 完成状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed
*/
@TableField("FIN_STS")
private String finishStatus;
/**
- * 流程状态,未开始-not_start、审核中-running、已退回-returned、已通过-approved
+ * 流程状态,未开始-not_start、审核中-in_progress、已退回-returned、已通过-completed
*/
@TableField("FLW_STS")
private String flowStatus;
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessAssayTaskDataMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessAssayTaskDataMapper.java
index 94ba9cf..b01848b 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessAssayTaskDataMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessAssayTaskDataMapper.java
@@ -136,7 +136,7 @@ public interface BusinessAssayTaskDataMapper extends BaseMapperX selectList(BusinessAssayTaskDetailReqVO reqVO) {
@@ -80,7 +80,7 @@ public interface BusinessAssayTaskDetailMapper extends BaseMapperX selectByBusinessAssayTaskId(Long businessAssayTaskId) {
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessHandoverRecordSubMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessHandoverRecordSubMapper.java
index 7749762..c73c4f2 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessHandoverRecordSubMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessHandoverRecordSubMapper.java
@@ -47,7 +47,10 @@ public interface BusinessHandoverRecordSubMapper extends BaseMapperX().eq(BusinessSampleEntrustDetailDO::getBusinessSampleEntrustRegistrationId, businessSampleEntrustRegistrationId));
}
+ default List selectExtendByBusinessSampleEntrustRegistrationId(Long businessSampleEntrustRegistrationId) {
+ return selectJoinList(BusinessSampleEntrustDetailExtendRespVO.class, new MPJLambdaWrapperX()
+ .leftJoin(BaseSampleDO.class, BaseSampleDO::getId, BusinessSampleEntrustDetailDO::getBaseSampleId)
+ .selectAll(BusinessSampleEntrustDetailDO.class)
+ .selectAs(BaseSampleDO::getDictionaryBusinessKey, BusinessSampleEntrustDetailExtendRespVO::getSampleTypeDictionaryBusinessKey)
+ .eq(BusinessSampleEntrustDetailDO::getBusinessSampleEntrustRegistrationId, businessSampleEntrustRegistrationId));
+ }
+
+ default List selectByBusinessSampleEntrustRegistrationIds(List businessSampleEntrustRegistrationIds) {
+ return selectList(new LambdaQueryWrapperX().in(BusinessSampleEntrustDetailDO::getBusinessSampleEntrustRegistrationId, businessSampleEntrustRegistrationIds));
+ }
+
default BusinessSampleEntrustDetailDO selectByBusinessBaseSampleId(Long businessBaseSampleId) {
return selectOne(new LambdaQueryWrapperX().eq(BusinessSampleEntrustDetailDO::getBusinessBaseSampleId, businessBaseSampleId));
}
+ default List selectByBusinessBaseSampleIds(List businessBaseSampleIds) {
+ return selectList(new LambdaQueryWrapperX().in(BusinessSampleEntrustDetailDO::getBusinessBaseSampleId, businessBaseSampleIds));
+ }
+
/**
* 查询当前批次的第一条数据
* @param businessBaseSampleId 任意一条的主样id
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentMapper.java
index 506d086..80a6dd6 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentMapper.java
@@ -36,6 +36,12 @@ public interface BusinessSubParentSampleAssessmentMapper extends BaseMapperX selectByBusinessSubParentSampleIds(List businessSubParentSampleIds) {
+ return selectJoinList(BusinessSubParentSampleAssessmentDO.class, new MPJLambdaWrapperX()
+ .leftJoin(ConfigAssayMethodDO.class, ConfigAssayMethodDO::getId, BusinessSubParentSampleAssessmentDO::getConfigAssayMethodId)
+ .in(BusinessSubParentSampleAssessmentDO::getBusinessSubParentSampleId, businessSubParentSampleIds));
+ }
default BusinessSubParentSampleAssessmentDO selectByBusinessSubParentSampleIdAndConfigAssayMethodId(Long businessSubParentSampleId, Long configAssayMethodId) {
return selectOne(new LambdaQueryWrapperX()
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentProjectMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentProjectMapper.java
index 09232ae..a85a58f 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentProjectMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleAssessmentProjectMapper.java
@@ -69,7 +69,7 @@ public interface BusinessSubParentSampleAssessmentProjectMapper extends BaseMapp
.eq(BusinessSubParentSampleAssessmentProjectDO::getConfigAssayMethodId, configAssayMethodId));
}
- List selectNoReportSubParentSampleAssessment(@Param("configAssayMethodId") Long configAssayMethodId);
+ List selectNoReportSubParentSampleAssessment(@Param("reqVO") BusinessSubParentSampleAssessmentGroupReqVO reqVO);
List getRecheckAssayMethodList(@Param("baseSampleId") Long baseSampleId, @Param("businessSubParentSampleId") Long businessSubParentSampleId, @Param("configAssayMethodId") Long configAssayMethodId);
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleMapper.java
index f551f90..39b3e77 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubParentSampleMapper.java
@@ -45,5 +45,10 @@ public interface BusinessSubParentSampleMapper extends BaseMapperX()
.eq(BusinessSubParentSampleDO::getBusinessBaseSampleId, businessBaseSampleId));
}
+
+ default List selectByBusinessBaseSampleIds(List businessBaseSampleIds) {
+ return selectList(new LambdaQueryWrapperX()
+ .in(BusinessSubParentSampleDO::getBusinessBaseSampleId, businessBaseSampleIds));
+ }
}
\ No newline at end of file
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubSampleMapper.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubSampleMapper.java
index 4799e20..b8b2a02 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubSampleMapper.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/dal/mapper/BusinessSubSampleMapper.java
@@ -144,8 +144,7 @@ public interface BusinessSubSampleMapper extends BaseMapperX selectList(@Valid BusinessSubSampleReqVO reqVO) {
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/entrust/SampleEntrustGenSampleDataCmp.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/entrust/SampleEntrustGenSampleDataCmp.java
index 77eaa50..9380874 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/entrust/SampleEntrustGenSampleDataCmp.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/entrust/SampleEntrustGenSampleDataCmp.java
@@ -407,7 +407,7 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
//子样对应的分析班组
BusinessSubSampleAnalysisGroupDO businessSubSampleAnalysisGroupDO = null;
-
+
for (Long configAssayMethodId : materialAssayStandardConfigAssayMethodIdList) {
//查询分析方法
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodList.stream().filter(f -> f.getId().equals(configAssayMethodId)).findFirst().orElse(null);
@@ -578,8 +578,10 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
}
}
-
- assayProjectBuilder.delete(assayProjectBuilder.length() - 1 , assayProjectBuilder.length());
+
+ if (assayProjectBuilder.length() > 1) {
+ assayProjectBuilder.delete(assayProjectBuilder.length() - 1 , assayProjectBuilder.length());
+ }
businessAssayTaskDataDO.setAssayProject(assayProjectBuilder.toString());
businessAssayTaskDataDOList.add(businessAssayTaskDataDO);
}
@@ -590,6 +592,7 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
sampleEntrustRegistration.setRegistrationStatus(QmsCommonConstant.SUBMITTED);
sampleEntrustRegistration.setAssayStatus(QmsCommonConstant.UNCHECKED);
sampleEntrustRegistration.setDataStatus(QmsCommonConstant.UNRETURNED);
+ sampleEntrustRegistration.setTaskQuantity(businessAssayTaskDataDOList.size());
sampleEntrustContext.setSampleFlowInfoList(sampleFlowInfoList);
@@ -622,7 +625,6 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
businessSubSampleAssessmentMapper.insertBatch(businessSubSampleAssessmentDOList);
}
if (CollUtil.isNotEmpty(businessAssayTaskDataDOList)) {
- sampleEntrustRegistration.setTaskQuantity(businessAssayTaskDataDOList.size());
businessAssayTaskDataMapper.insertBatch(businessAssayTaskDataDOList);
}
if (CollUtil.isNotEmpty(businessAssayProjectDataDOList)) {
@@ -758,8 +760,9 @@ public class SampleEntrustGenSampleDataCmp extends NodeComponent {
businessAssayParameterDataDOList.add(businessAssayParameterDataDO);
}
}
-
- assayProjectBuilder.delete(assayProjectBuilder.length() - 1 , assayProjectBuilder.length());
+ if (assayProjectBuilder.length() > 1) {
+ assayProjectBuilder.delete(assayProjectBuilder.length() - 1 , assayProjectBuilder.length());
+ }
businessAssayTaskDataDO.setAssayProject(assayProjectBuilder.toString());
businessAssayTaskDataDOList.add(businessAssayTaskDataDO);
}
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/flow/SampleSubProcessUpdateCmp.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/flow/SampleSubProcessUpdateCmp.java
index c578adf..ffc707a 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/flow/SampleSubProcessUpdateCmp.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/liteflow/sample/flow/SampleSubProcessUpdateCmp.java
@@ -92,7 +92,7 @@ public class SampleSubProcessUpdateCmp extends NodeComponent {
DefaultContext context = new DefaultContext<>();
ConfigSubSampleDO configSubSample = sampleFlowContext.getConfigSubSampleById(businessSubSample.getConfigSubSampleId());
Boolean hasSubSimpleCodeRule = configSubSample != null && StringUtils.isNotBlank(configSubSample.getSimpleCodeRule());
- Boolean hasSubSampleEncrypt = businessHandoverRecordSubDOList.stream().anyMatch(m -> QmsCommonConstant.FlOW_NODE_SAMPLE_ENCRYPT.equals(m.getSampleFlowNodeKey()));
+ Boolean hasSubSampleEncrypt = businessHandoverRecordSubDOList.stream().filter(f -> f.getBusinessSubSampleId().equals(businessSubSample.getId())).anyMatch(m -> QmsCommonConstant.FlOW_NODE_SAMPLE_ENCRYPT.equals(m.getSampleFlowNodeKey()));
if (CollUtil.isNotEmpty(businessSubSampleAnalysisGroupDOList)) {
List curSubSampleAnalysisGroupDOList = businessSubSampleAnalysisGroupDOList.stream().filter(f -> f.getBusinessSubSampleId().equals(businessSubSample.getId())).collect(Collectors.toList());
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/BusinessSubSampleServiceImpl.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/BusinessSubSampleServiceImpl.java
index 0a18ab0..7942a51 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/BusinessSubSampleServiceImpl.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/BusinessSubSampleServiceImpl.java
@@ -242,6 +242,9 @@ public class BusinessSubSampleServiceImpl implements BusinessSubSampleService {
BusinessSubSampleExtendRespVO subSample = null;
if (QmsCommonConstant.FLOW_NODE_TEAM_RECEIVE.equals(reqVO.getSampleFlowNodeKey())) {
subSample = businessSubSampleMapper.getBySampleCode(reqVO);
+ if (subSample == null) {
+ return subSample;
+ }
List businessSubSampleAnalysisGroupList = businessSubSampleAnalysisGroupMapper.selectByBusinessSubSampleId(subSample.getId());
BusinessSubSampleAnalysisGroupDO receiveSample = businessSubSampleAnalysisGroupList.stream().filter(f -> "已收样".equals(f.getSampleStatus()) && !f.getAssayDepartmentId().equals(loginUser.getVisitDeptId())).findFirst().orElse(null);
if (receiveSample != null) {
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditService.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditService.java
index 7e1e9e1..8d036fc 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditService.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditService.java
@@ -3,6 +3,7 @@ package com.zt.plat.module.qms.business.bus.service;
import java.util.List;
import com.alibaba.fastjson2.JSONObject;
+import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskDataReqVO;
/**
* SampleAnalysisAuditService
@@ -13,7 +14,7 @@ public interface SampleAnalysisAuditService {
void crossAuditByByTaskId(Long businessAssayTaskId, String auditStatus);
- JSONObject getSampleResultAssessmentList(Long configAssayMethodId, String asmtReportedStatus);
+ JSONObject getSampleResultAssessmentList(BusinessAssayTaskDataReqVO reqVO);
JSONObject getParallelResultAssessment(Long businessSubSampleId, Long configAssayMethodId);
diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditServiceImpl.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditServiceImpl.java
index 767e7b7..e6e26b7 100644
--- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditServiceImpl.java
+++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisAuditServiceImpl.java
@@ -152,7 +152,9 @@ public class SampleAnalysisAuditServiceImpl implements SampleAnalysisAuditServic
private ConfigSubSampleMethodMapper configSubSampleMethodMapper;
@Override
- public JSONObject getSampleResultAssessmentList(Long configAssayMethodId, String asmtReportedStatus) {
+ public JSONObject getSampleResultAssessmentList(BusinessAssayTaskDataReqVO reqVO) {
+ Long configAssayMethodId = reqVO.getConfigAssayMethodId();
+ String asmtReportedStatus = reqVO.getAsmtReportedStatus();
List configAssayMethodProjectDOList = configAssayMethodProjectMapper.selectByConfigAssayMethodId(configAssayMethodId);
List