Merge remote-tracking branch 'origin/test' into test
# Conflicts: # zt-module-qms/zt-module-qms-api/src/main/java/com/zt/plat/module/qms/enums/ErrorCodeConstants.java
This commit is contained in:
@@ -79,6 +79,7 @@ public interface ErrorCodeConstants {
|
||||
|
||||
ErrorCode CONFIG_QC_SAMPLE_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "质控样与检测方法配置不存在");
|
||||
ErrorCode CONFIG_QC_STANDARD_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "质控与定值样关系不存在");
|
||||
ErrorCode CONFIG_QC_SAMPLE_METHOD_PARAMETER_NOT_EXISTS = new ErrorCode(1_032_050_000, "质控样检测方法参数配置不存在");
|
||||
ErrorCode CONFIG_PERMISSION_NOT_EXISTS = new ErrorCode(1_032_050_000, "权限配置不存在");
|
||||
ErrorCode CONFIG_WAREHOUSE_LOCATION_NOT_EXISTS = new ErrorCode(1_032_050_000, "存放位置不存在");
|
||||
|
||||
@@ -116,6 +117,13 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode BUSINESS_QC_PROJECT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测项目数据业务不存在");
|
||||
ErrorCode BUSINESS_QC_PARAMETER_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测参数数据业务不存在");
|
||||
|
||||
ErrorCode BUSINESS_QC_MANAGEMENT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控管理样检测任务数据,管理样、标准样不存在");
|
||||
ErrorCode BUSINESS_QC_MANAGEMENT_PROJECT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测项目数据业务不存在");
|
||||
ErrorCode BUSINESS_QC_MANAGEMENT_PARAMETER_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测参数数据业务不存在");
|
||||
ErrorCode BUSINESS_QC_COEFFICIENT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测系数任务数据,空白样、标样不存在");
|
||||
ErrorCode BUSINESS_QC_COEFFICIENT_PARAMETER_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "质控样检测系数参数业务不存在");
|
||||
|
||||
|
||||
//检测报告
|
||||
ErrorCode REPORT_DOCUMENT_MAIN_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测报告业务不存在");
|
||||
ErrorCode REPORT_DOCUMENT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测报告明细不存在");
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.service.BusinessQCCoefficientDataService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控样检测系数任务数据,空白样、标样")
|
||||
@RestController
|
||||
@RequestMapping("/qms/business-qc-coefficient-data")
|
||||
@Validated
|
||||
public class BusinessQCCoefficientDataController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientDataService businessQCCoefficientDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控样检测系数任务数据,空白样、标样")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:create')")
|
||||
public CommonResult<BusinessQCCoefficientDataRespVO> createBusinessQCCoefficientData(@Valid @RequestBody BusinessQCCoefficientDataSaveReqVO createReqVO) {
|
||||
return success(businessQCCoefficientDataService.createBusinessQCCoefficientData(createReqVO));
|
||||
}
|
||||
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "更新质控样检测系数任务数据,空白样、标样")
|
||||
// @PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:update')")
|
||||
public CommonResult<Boolean> updateBusinessQCCoefficientData(@Valid @RequestBody BusinessQCCoefficientDataSaveReqVO updateReqVO) {
|
||||
businessQCCoefficientDataService.updateBusinessQCCoefficientData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控样检测系数任务数据,空白样、标样")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCCoefficientData(@RequestParam("id") Long id) {
|
||||
businessQCCoefficientDataService.deleteBusinessQCCoefficientData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控样检测系数任务数据,空白样、标样")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCCoefficientDataList(@RequestBody BatchDeleteReqVO req) {
|
||||
businessQCCoefficientDataService.deleteBusinessQCCoefficientDataListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控样检测系数任务数据,空白样、标样")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:query')")
|
||||
public CommonResult<BusinessQCCoefficientDataRespVO> getBusinessQCCoefficientData(@RequestParam("id") Long id) {
|
||||
BusinessQCCoefficientDataDO businessQCCoefficientData = businessQCCoefficientDataService.getBusinessQCCoefficientData(id);
|
||||
return success(BeanUtils.toBean(businessQCCoefficientData, BusinessQCCoefficientDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控样检测系数任务数据,空白样、标样分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:query')")
|
||||
public CommonResult<PageResult<BusinessQCCoefficientDataRespVO>> getBusinessQCCoefficientDataPage(@Valid BusinessQCCoefficientDataPageReqVO pageReqVO) {
|
||||
PageResult<BusinessQCCoefficientDataDO> pageResult = businessQCCoefficientDataService.getBusinessQCCoefficientDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCCoefficientDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "获得质控样检测系数任务数据,空白样、标样分页")
|
||||
// @PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:query')")
|
||||
public CommonResult<List<BusinessQCCoefficientDataRespVO>> getBusinessQCCoefficientDataPage(@Valid BusinessQCCoefficientDataReqVO reqVO) {
|
||||
List<BusinessQCCoefficientDataDO> pageResult = businessQCCoefficientDataService.getBusinessQCCoefficientDataList(reqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCCoefficientDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控样检测系数任务数据,空白样、标样 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportBusinessQCCoefficientDataExcel(@Valid BusinessQCCoefficientDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<BusinessQCCoefficientDataDO> list = businessQCCoefficientDataService.getBusinessQCCoefficientDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控样检测系数任务数据,空白样、标样.xls", "数据", BusinessQCCoefficientDataRespVO.class,
|
||||
BeanUtils.toBean(list, BusinessQCCoefficientDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.service.BusinessQCCoefficientParameterDataService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控样检测系数参数业务")
|
||||
@RestController
|
||||
@RequestMapping("/qms/business-qc-coefficient-parameter-data")
|
||||
@Validated
|
||||
public class BusinessQCCoefficientParameterDataController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientParameterDataService businessQCCoefficientParameterDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控样检测系数参数业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:create')")
|
||||
public CommonResult<BusinessQCCoefficientParameterDataRespVO> createBusinessQCCoefficientParameterData(@Valid @RequestBody BusinessQCCoefficientParameterDataSaveReqVO createReqVO) {
|
||||
return success(businessQCCoefficientParameterDataService.createBusinessQCCoefficientParameterData(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新质控样检测系数参数业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:update')")
|
||||
public CommonResult<Boolean> updateBusinessQCCoefficientParameterData(@Valid @RequestBody BusinessQCCoefficientParameterDataSaveReqVO updateReqVO) {
|
||||
businessQCCoefficientParameterDataService.updateBusinessQCCoefficientParameterData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控样检测系数参数业务")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCCoefficientParameterData(@RequestParam("id") Long id) {
|
||||
businessQCCoefficientParameterDataService.deleteBusinessQCCoefficientParameterData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控样检测系数参数业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCCoefficientParameterDataList(@RequestBody BatchDeleteReqVO req) {
|
||||
businessQCCoefficientParameterDataService.deleteBusinessQCCoefficientParameterDataListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控样检测系数参数业务")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:query')")
|
||||
public CommonResult<BusinessQCCoefficientParameterDataRespVO> getBusinessQCCoefficientParameterData(@RequestParam("id") Long id) {
|
||||
BusinessQCCoefficientParameterDataDO businessQCCoefficientParameterData = businessQCCoefficientParameterDataService.getBusinessQCCoefficientParameterData(id);
|
||||
return success(BeanUtils.toBean(businessQCCoefficientParameterData, BusinessQCCoefficientParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控样检测系数参数业务分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:query')")
|
||||
public CommonResult<PageResult<BusinessQCCoefficientParameterDataRespVO>> getBusinessQCCoefficientParameterDataPage(@Valid BusinessQCCoefficientParameterDataPageReqVO pageReqVO) {
|
||||
PageResult<BusinessQCCoefficientParameterDataDO> pageResult = businessQCCoefficientParameterDataService.getBusinessQCCoefficientParameterDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCCoefficientParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控样检测系数参数业务 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-coefficient-parameter-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportBusinessQCCoefficientParameterDataExcel(@Valid BusinessQCCoefficientParameterDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<BusinessQCCoefficientParameterDataDO> list = businessQCCoefficientParameterDataService.getBusinessQCCoefficientParameterDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控样检测系数参数业务.xls", "数据", BusinessQCCoefficientParameterDataRespVO.class,
|
||||
BeanUtils.toBean(list, BusinessQCCoefficientParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.service.BusinessQCManagementDataService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控管理样检测任务数据,管理样、标准样")
|
||||
@RestController
|
||||
@RequestMapping("/qms/business-qc-management-data")
|
||||
@Validated
|
||||
public class BusinessQCManagementDataController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementDataService businessQCManagementDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控管理样检测任务数据,管理样、标准样")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:create')")
|
||||
public CommonResult<BusinessQCManagementDataRespVO> createBusinessQCManagementData(@Valid @RequestBody BusinessQCManagementDataSaveReqVO createReqVO) {
|
||||
return success(businessQCManagementDataService.createBusinessQCManagementData(createReqVO));
|
||||
}
|
||||
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "更新质控管理样检测任务数据,管理样、标准样")
|
||||
// @PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:update')")
|
||||
public CommonResult<Boolean> updateBusinessQCManagementData(@Valid @RequestBody BusinessQCManagementDataSaveReqVO updateReqVO) {
|
||||
businessQCManagementDataService.updateBusinessQCManagementData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控管理样检测任务数据,管理样、标准样")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementData(@RequestParam("id") Long id) {
|
||||
businessQCManagementDataService.deleteBusinessQCManagementData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控管理样检测任务数据,管理样、标准样")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementDataList(@RequestBody BatchDeleteReqVO req) {
|
||||
businessQCManagementDataService.deleteBusinessQCManagementDataListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控管理样检测任务数据,管理样、标准样")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:query')")
|
||||
public CommonResult<BusinessQCManagementDataRespVO> getBusinessQCManagementData(@RequestParam("id") Long id) {
|
||||
BusinessQCManagementDataDO businessQCManagementData = businessQCManagementDataService.getBusinessQCManagementData(id);
|
||||
return success(BeanUtils.toBean(businessQCManagementData, BusinessQCManagementDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控管理样检测任务数据,管理样、标准样分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:query')")
|
||||
public CommonResult<PageResult<BusinessQCManagementDataRespVO>> getBusinessQCManagementDataPage(@Valid BusinessQCManagementDataPageReqVO pageReqVO) {
|
||||
PageResult<BusinessQCManagementDataDO> pageResult = businessQCManagementDataService.getBusinessQCManagementDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCManagementDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "获得质控管理样检测任务数据,管理样、标准样列表")
|
||||
// @PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:query')")
|
||||
public CommonResult<List<BusinessQCManagementDataRespVO>> getBusinessQCManagementDataList(@Valid BusinessQCManagementDataReqVO reqVO) {
|
||||
List<BusinessQCManagementDataDO> pageResult = businessQCManagementDataService.getBusinessQCManagementDataList(reqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCManagementDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控管理样检测任务数据,管理样、标准样 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportBusinessQCManagementDataExcel(@Valid BusinessQCManagementDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<BusinessQCManagementDataDO> list = businessQCManagementDataService.getBusinessQCManagementDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控管理样检测任务数据,管理样、标准样.xls", "数据", BusinessQCManagementDataRespVO.class,
|
||||
BeanUtils.toBean(list, BusinessQCManagementDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.service.BusinessQCManagementParameterDataService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控样检测参数数据业务")
|
||||
@RestController
|
||||
@RequestMapping("/qms/business-qc-management-parameter-data")
|
||||
@Validated
|
||||
public class BusinessQCManagementParameterDataController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementParameterDataService businessQCManagementParameterDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控样检测参数数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:create')")
|
||||
public CommonResult<BusinessQCManagementParameterDataRespVO> createBusinessQCManagementParameterData(@Valid @RequestBody BusinessQCManagementParameterDataSaveReqVO createReqVO) {
|
||||
return success(businessQCManagementParameterDataService.createBusinessQCManagementParameterData(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新质控样检测参数数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:update')")
|
||||
public CommonResult<Boolean> updateBusinessQCManagementParameterData(@Valid @RequestBody BusinessQCManagementParameterDataSaveReqVO updateReqVO) {
|
||||
businessQCManagementParameterDataService.updateBusinessQCManagementParameterData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控样检测参数数据业务")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementParameterData(@RequestParam("id") Long id) {
|
||||
businessQCManagementParameterDataService.deleteBusinessQCManagementParameterData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控样检测参数数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementParameterDataList(@RequestBody BatchDeleteReqVO req) {
|
||||
businessQCManagementParameterDataService.deleteBusinessQCManagementParameterDataListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控样检测参数数据业务")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:query')")
|
||||
public CommonResult<BusinessQCManagementParameterDataRespVO> getBusinessQCManagementParameterData(@RequestParam("id") Long id) {
|
||||
BusinessQCManagementParameterDataDO businessQCManagementParameterData = businessQCManagementParameterDataService.getBusinessQCManagementParameterData(id);
|
||||
return success(BeanUtils.toBean(businessQCManagementParameterData, BusinessQCManagementParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控样检测参数数据业务分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:query')")
|
||||
public CommonResult<PageResult<BusinessQCManagementParameterDataRespVO>> getBusinessQCManagementParameterDataPage(@Valid BusinessQCManagementParameterDataPageReqVO pageReqVO) {
|
||||
PageResult<BusinessQCManagementParameterDataDO> pageResult = businessQCManagementParameterDataService.getBusinessQCManagementParameterDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCManagementParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控样检测参数数据业务 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-parameter-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportBusinessQCManagementParameterDataExcel(@Valid BusinessQCManagementParameterDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<BusinessQCManagementParameterDataDO> list = businessQCManagementParameterDataService.getBusinessQCManagementParameterDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控样检测参数数据业务.xls", "数据", BusinessQCManagementParameterDataRespVO.class,
|
||||
BeanUtils.toBean(list, BusinessQCManagementParameterDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.service.BusinessQCManagementProjectDataService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控样检测项目数据业务")
|
||||
@RestController
|
||||
@RequestMapping("/qms/business-qc-management-project-data")
|
||||
@Validated
|
||||
public class BusinessQCManagementProjectDataController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementProjectDataService businessQCManagementProjectDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控样检测项目数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:create')")
|
||||
public CommonResult<BusinessQCManagementProjectDataRespVO> createBusinessQCManagementProjectData(@Valid @RequestBody BusinessQCManagementProjectDataSaveReqVO createReqVO) {
|
||||
return success(businessQCManagementProjectDataService.createBusinessQCManagementProjectData(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新质控样检测项目数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:update')")
|
||||
public CommonResult<Boolean> updateBusinessQCManagementProjectData(@Valid @RequestBody BusinessQCManagementProjectDataSaveReqVO updateReqVO) {
|
||||
businessQCManagementProjectDataService.updateBusinessQCManagementProjectData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控样检测项目数据业务")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementProjectData(@RequestParam("id") Long id) {
|
||||
businessQCManagementProjectDataService.deleteBusinessQCManagementProjectData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控样检测项目数据业务")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:delete')")
|
||||
public CommonResult<Boolean> deleteBusinessQCManagementProjectDataList(@RequestBody BatchDeleteReqVO req) {
|
||||
businessQCManagementProjectDataService.deleteBusinessQCManagementProjectDataListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控样检测项目数据业务")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:query')")
|
||||
public CommonResult<BusinessQCManagementProjectDataRespVO> getBusinessQCManagementProjectData(@RequestParam("id") Long id) {
|
||||
BusinessQCManagementProjectDataDO businessQCManagementProjectData = businessQCManagementProjectDataService.getBusinessQCManagementProjectData(id);
|
||||
return success(BeanUtils.toBean(businessQCManagementProjectData, BusinessQCManagementProjectDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控样检测项目数据业务分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:query')")
|
||||
public CommonResult<PageResult<BusinessQCManagementProjectDataRespVO>> getBusinessQCManagementProjectDataPage(@Valid BusinessQCManagementProjectDataPageReqVO pageReqVO) {
|
||||
PageResult<BusinessQCManagementProjectDataDO> pageResult = businessQCManagementProjectDataService.getBusinessQCManagementProjectDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, BusinessQCManagementProjectDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控样检测项目数据业务 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:business-QC-management-project-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportBusinessQCManagementProjectDataExcel(@Valid BusinessQCManagementProjectDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<BusinessQCManagementProjectDataDO> list = businessQCManagementProjectDataService.getBusinessQCManagementProjectDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控样检测项目数据业务.xls", "数据", BusinessQCManagementProjectDataRespVO.class,
|
||||
BeanUtils.toBean(list, BusinessQCManagementProjectDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleProjectRespVO;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
@@ -39,6 +39,12 @@ public class SampleAnalysisController {
|
||||
return success("成功");
|
||||
}
|
||||
|
||||
@GetMapping("/batchSampleAndQcAnalysisByTaskId")
|
||||
public CommonResult<?> batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId) {
|
||||
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO businessAssayTaskAnalysisSampleAndQcProject = sampleAnalysisService.batchSampleAndQcAnalysisByTaskId(businessAssayTaskId);
|
||||
return success(businessAssayTaskAnalysisSampleAndQcProject);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/submitSampleAnalysisByTaskId")
|
||||
public CommonResult<?> submitSampleAnalysisByTaskId(Long businessAssayTaskId) {
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 分配任务单 分析样品及质控样品检测项目
|
||||
*/
|
||||
@Data
|
||||
public class BusinessAssayTaskAnalysisSampleAndQcProjectRespVO {
|
||||
|
||||
/** 分配任务单id **/
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
/** 任务分配单编号 **/
|
||||
private String businessAssayTasNo;
|
||||
|
||||
/** 任务分配单名称 **/
|
||||
private String businessAssayTasName;
|
||||
|
||||
/** 分析人员 **/
|
||||
private String assayOperator;
|
||||
|
||||
/** 分析时间 **/
|
||||
private LocalDateTime assayTime;
|
||||
|
||||
/** 检测方法id **/
|
||||
private Long configAssayMethodId;
|
||||
|
||||
/** 检测方法名称 **/
|
||||
private String configAssayMethodName;
|
||||
|
||||
/** 数据集key **/
|
||||
private String dataCollectionKey;
|
||||
|
||||
/** 数据集id **/
|
||||
private Long dataCollectionId;
|
||||
|
||||
/** 动态表单值 **/
|
||||
private String formValue;
|
||||
|
||||
/** 分配任务的分析数据 **/
|
||||
private List<BusinessAssayTaskAnalysisDataRespVO> assayTaskAnalysisDataList;
|
||||
|
||||
/** 检测方法分析项目补正系数 **/
|
||||
private List<ConfigAssayMethodProjectCoefficientRespVO> configAssayMethodProjectCoefficientList;
|
||||
|
||||
/** 检测方法范围 **/
|
||||
private List<ConfigAssayMethodProjectRangeRespVO> configAssayMethodProjectRangeList;
|
||||
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectCoefficientRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectRangeRespVO;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -49,6 +50,9 @@ public class BusinessAssayTaskAnalysisSampleProjectRespVO {
|
||||
/** 分析的数据 **/
|
||||
private List<Map<String, Object>> datas;
|
||||
|
||||
/** 检测方法分析项目补正系数 **/
|
||||
private List<ConfigAssayMethodProjectCoefficientRespVO> configAssayMethodProjectCoefficientList;
|
||||
|
||||
/** 检测方法范围 **/
|
||||
private List<ConfigAssayMethodProjectRangeRespVO> configAssayMethodProjectRangeList;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数任务数据,空白样、标样分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCCoefficientDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "赵六")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", example = "31198")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "28147")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "5300")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", example = "21660")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", example = "12186")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "芋艿")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "6160")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数任务数据,空白样、标样分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCCoefficientDataReqVO {
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "赵六")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", example = "31198")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "28147")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "5300")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", example = "21660")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", example = "12186")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "芋艿")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "6160")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数任务数据,空白样、标样 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class BusinessQCCoefficientDataRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19352")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
@ExcelProperty("样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "赵六")
|
||||
@ExcelProperty("样品名称")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31198")
|
||||
@ExcelProperty("检测方法配置ID")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "28147")
|
||||
@ExcelProperty("指派单ID")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "5300")
|
||||
@ExcelProperty("定值样业务ID")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", requiredMode = Schema.RequiredMode.REQUIRED, example = "21660")
|
||||
@ExcelProperty("质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
@ExcelProperty("质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12186")
|
||||
@ExcelProperty("分析部门ID")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "芋艿")
|
||||
@ExcelProperty("分析部门名称")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
@ExcelProperty("分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@ExcelProperty("分配任务时间")
|
||||
private LocalDateTime assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
@ExcelProperty("是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
@ExcelProperty("是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
@ExcelProperty("上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@ExcelProperty("上报时间")
|
||||
private LocalDateTime reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "6160")
|
||||
@ExcelProperty("乐观锁")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数任务数据,空白样、标样新增/修改 Request VO")
|
||||
@Data
|
||||
public class BusinessQCCoefficientDataSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19352")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "赵六")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31198")
|
||||
@NotNull(message = "检测方法配置ID不能为空")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "28147")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "5300")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", requiredMode = Schema.RequiredMode.REQUIRED, example = "21660")
|
||||
@NotNull(message = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样不能为空")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12186")
|
||||
@NotNull(message = "分析部门ID不能为空")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "芋艿")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
private LocalDateTime assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
private LocalDateTime reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "6160")
|
||||
@NotNull(message = "乐观锁不能为空")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数参数业务分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCCoefficientParameterDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检测项目业务ID", example = "23013")
|
||||
private Long businessQCCoefficientDataId;
|
||||
|
||||
@Schema(description = "质控样检测方法参数配置ID", example = "870")
|
||||
private Long configQCSampleMethodParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", example = "7977")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", example = "2")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "25016")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数参数业务 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class BusinessQCCoefficientParameterDataRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14408")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测项目业务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23013")
|
||||
@ExcelProperty("检测项目业务ID")
|
||||
private Long businessQCCoefficientDataId;
|
||||
|
||||
@Schema(description = "质控样检测方法参数配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "870")
|
||||
@ExcelProperty("质控样检测方法参数配置ID")
|
||||
private Long configQCSampleMethodParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "7977")
|
||||
@ExcelProperty("参数ID,字典表【T_DIC_PRM】")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
@ExcelProperty("值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
@ExcelProperty("小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "25016")
|
||||
@ExcelProperty("乐观锁")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测系数参数业务新增/修改 Request VO")
|
||||
@Data
|
||||
public class BusinessQCCoefficientParameterDataSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14408")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测项目业务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23013")
|
||||
@NotNull(message = "检测项目业务ID不能为空")
|
||||
private Long businessQCCoefficientDataId;
|
||||
|
||||
@Schema(description = "质控样检测方法参数配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "870")
|
||||
@NotNull(message = "质控样检测方法参数配置ID不能为空")
|
||||
private Long configQCSampleMethodParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "7977")
|
||||
@NotNull(message = "参数ID,字典表【T_DIC_PRM】不能为空")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "25016")
|
||||
@NotNull(message = "乐观锁不能为空")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控管理样检测任务数据,管理样、标准样分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "李四")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", example = "22240")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "12452")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "29446")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", example = "512")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", example = "21281")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "赵六")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "16695")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控管理样检测任务数据,管理样、标准样分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementDataReqVO {
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "李四")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", example = "22240")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "12452")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "29446")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", example = "512")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", example = "21281")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "赵六")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "16695")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控管理样检测任务数据,管理样、标准样 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class BusinessQCManagementDataRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31717")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
@ExcelProperty("样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "李四")
|
||||
@ExcelProperty("样品名称")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22240")
|
||||
@ExcelProperty("检测方法配置ID")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "12452")
|
||||
@ExcelProperty("指派单ID")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "29446")
|
||||
@ExcelProperty("定值样业务ID")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", requiredMode = Schema.RequiredMode.REQUIRED, example = "512")
|
||||
@ExcelProperty("质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
@ExcelProperty("质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("检测项目")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21281")
|
||||
@ExcelProperty("分析部门ID")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "赵六")
|
||||
@ExcelProperty("分析部门名称")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
@ExcelProperty("分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
@ExcelProperty("分配任务时间")
|
||||
private LocalDateTime assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
@ExcelProperty("是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
@ExcelProperty("是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
@ExcelProperty("上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
@ExcelProperty("上报时间")
|
||||
private LocalDateTime reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "16695")
|
||||
@ExcelProperty("乐观锁")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 质控管理样检测任务数据,管理样、标准样新增/修改 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementDataSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31717")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "样品编号")
|
||||
private String sampleCode;
|
||||
|
||||
@Schema(description = "样品名称", example = "李四")
|
||||
private String sampleName;
|
||||
|
||||
@Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22240")
|
||||
@NotNull(message = "检测方法配置ID不能为空")
|
||||
private Long configAssayMethodId;
|
||||
|
||||
@Schema(description = "指派单ID", example = "12452")
|
||||
private Long businessAssayTaskId;
|
||||
|
||||
@Schema(description = "定值样业务ID", example = "29446")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", requiredMode = Schema.RequiredMode.REQUIRED, example = "512")
|
||||
@NotNull(message = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样不能为空")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "检测项目", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "检测项目不能为空")
|
||||
private String assayProject;
|
||||
|
||||
@Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21281")
|
||||
@NotNull(message = "分析部门ID不能为空")
|
||||
private Long assayDepartmentId;
|
||||
|
||||
@Schema(description = "分析部门名称", example = "赵六")
|
||||
private String assayDepartmentName;
|
||||
|
||||
@Schema(description = "分析人")
|
||||
private String assayOperator;
|
||||
|
||||
@Schema(description = "分配任务时间")
|
||||
private LocalDateTime assignTaskTime;
|
||||
|
||||
@Schema(description = "是否已分配任务")
|
||||
private Integer isAssignTasked;
|
||||
|
||||
@Schema(description = "是否已上报")
|
||||
private Integer isReported;
|
||||
|
||||
@Schema(description = "上报人")
|
||||
private String reporter;
|
||||
|
||||
@Schema(description = "上报时间")
|
||||
private LocalDateTime reportTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "16695")
|
||||
@NotNull(message = "乐观锁不能为空")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测参数数据业务分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementParameterDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检测项目业务ID", example = "23428")
|
||||
private Long businessQCManagementProjectDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目参数配置表ID", example = "12018")
|
||||
private Long configAssayMethodProjectParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", example = "18162")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", example = "2")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "乐观锁", example = "18772")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测参数数据业务 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class BusinessQCManagementParameterDataRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23533")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测项目业务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23428")
|
||||
@ExcelProperty("检测项目业务ID")
|
||||
private Long businessQCManagementProjectDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目参数配置表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12018")
|
||||
@ExcelProperty("检测方法分析项目参数配置表ID")
|
||||
private Long configAssayMethodProjectParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "18162")
|
||||
@ExcelProperty("参数ID,字典表【T_DIC_PRM】")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
@ExcelProperty("值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
@ExcelProperty("小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "18772")
|
||||
@ExcelProperty("乐观锁")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测参数数据业务新增/修改 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementParameterDataSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23533")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测项目业务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23428")
|
||||
@NotNull(message = "检测项目业务ID不能为空")
|
||||
private Long businessQCManagementProjectDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目参数配置表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12018")
|
||||
@NotNull(message = "检测方法分析项目参数配置表ID不能为空")
|
||||
private Long configAssayMethodProjectParameterId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "18162")
|
||||
@NotNull(message = "参数ID,字典表【T_DIC_PRM】不能为空")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "18772")
|
||||
@NotNull(message = "乐观锁不能为空")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测项目数据业务分页 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementProjectDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检测任务ID", example = "940")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目配置ID", example = "413")
|
||||
private Long configAssayMethodProjectId;
|
||||
|
||||
@Schema(description = "检测项目字典ID,字典表【T_DIC_PRJ】", example = "3746")
|
||||
private Long dictionaryProjectId;
|
||||
|
||||
@Schema(description = "用途,ingredient-配料、report-报出、ingredient_report-配料及报出、quality_control-品质控制")
|
||||
private String usage;
|
||||
|
||||
@Schema(description = "符号,=、>、<、等")
|
||||
private String symbol;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间", example = "2")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "是否不参与超差判定")
|
||||
private Integer isNotAssessment;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private Integer isEnabled;
|
||||
|
||||
@Schema(description = "乐观锁", example = "10206")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测项目数据业务 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class BusinessQCManagementProjectDataRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6446")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "940")
|
||||
@ExcelProperty("检测任务ID")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "413")
|
||||
@ExcelProperty("检测方法分析项目配置ID")
|
||||
private Long configAssayMethodProjectId;
|
||||
|
||||
@Schema(description = "检测项目字典ID,字典表【T_DIC_PRJ】", requiredMode = Schema.RequiredMode.REQUIRED, example = "3746")
|
||||
@ExcelProperty("检测项目字典ID,字典表【T_DIC_PRJ】")
|
||||
private Long dictionaryProjectId;
|
||||
|
||||
@Schema(description = "用途,ingredient-配料、report-报出、ingredient_report-配料及报出、quality_control-品质控制")
|
||||
@ExcelProperty("用途,ingredient-配料、report-报出、ingredient_report-配料及报出、quality_control-品质控制")
|
||||
private String usage;
|
||||
|
||||
@Schema(description = "符号,=、>、<、等")
|
||||
@ExcelProperty("符号,=、>、<、等")
|
||||
private String symbol;
|
||||
|
||||
@Schema(description = "值")
|
||||
@ExcelProperty("值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
@ExcelProperty("小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "是否不参与超差判定", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否不参与超差判定")
|
||||
private Integer isNotAssessment;
|
||||
|
||||
@Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否启用")
|
||||
private Integer isEnabled;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "10206")
|
||||
@ExcelProperty("乐观锁")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测项目数据业务新增/修改 Request VO")
|
||||
@Data
|
||||
public class BusinessQCManagementProjectDataSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6446")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "940")
|
||||
@NotNull(message = "检测任务ID不能为空")
|
||||
private Long businessQCManagementDataId;
|
||||
|
||||
@Schema(description = "检测方法分析项目配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "413")
|
||||
@NotNull(message = "检测方法分析项目配置ID不能为空")
|
||||
private Long configAssayMethodProjectId;
|
||||
|
||||
@Schema(description = "检测项目字典ID,字典表【T_DIC_PRJ】", requiredMode = Schema.RequiredMode.REQUIRED, example = "3746")
|
||||
@NotNull(message = "检测项目字典ID,字典表【T_DIC_PRJ】不能为空")
|
||||
private Long dictionaryProjectId;
|
||||
|
||||
@Schema(description = "用途,ingredient-配料、report-报出、ingredient_report-配料及报出、quality_control-品质控制")
|
||||
private String usage;
|
||||
|
||||
@Schema(description = "符号,=、>、<、等")
|
||||
private String symbol;
|
||||
|
||||
@Schema(description = "值")
|
||||
private String value;
|
||||
|
||||
@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;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "是否不参与超差判定", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否不参与超差判定不能为空")
|
||||
private Integer isNotAssessment;
|
||||
|
||||
@Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否启用不能为空")
|
||||
private Integer isEnabled;
|
||||
|
||||
@Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "10206")
|
||||
@NotNull(message = "乐观锁不能为空")
|
||||
private Integer updateCount;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -18,8 +18,8 @@ public class CreateQcSampleReqVO {
|
||||
@Schema(description = "定值样业务ID", example = "24895")
|
||||
private Long businessStandardSampleId;
|
||||
|
||||
@Schema(description = "质控样分析方法id")
|
||||
private Long configQCAssayMethodId;
|
||||
@Schema(description = "质控样配置方法id")
|
||||
private Long configQCSampleMethodId;
|
||||
|
||||
@Schema(description = "质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样", example = "9549")
|
||||
private Long dictionaryBusinessId;
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
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.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控样检测系数任务数据,空白样、标样 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_bsn_qc_coef_dat")
|
||||
@KeySequence("t_bsn_qc_coef_dat_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class BusinessQCCoefficientDataDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 样品编号
|
||||
*/
|
||||
@TableField("SMP_CD")
|
||||
private String sampleCode;
|
||||
/**
|
||||
* 样品名称
|
||||
*/
|
||||
@TableField("SMP_NAME")
|
||||
private String sampleName;
|
||||
/**
|
||||
* 检测方法配置ID
|
||||
*/
|
||||
@TableField("CFG_ASY_MTHD_ID")
|
||||
private Long configAssayMethodId;
|
||||
/**
|
||||
* 指派单ID
|
||||
*/
|
||||
@TableField("BSN_ASY_TSK_ID")
|
||||
private Long businessAssayTaskId;
|
||||
/**
|
||||
* 定值样业务ID
|
||||
*/
|
||||
@TableField("BSN_STD_SMP_ID")
|
||||
private Long businessStandardSampleId;
|
||||
/**
|
||||
* 质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样
|
||||
*/
|
||||
@TableField("DIC_BSN_ID")
|
||||
private Long dictionaryBusinessId;
|
||||
/**
|
||||
* 质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样
|
||||
*/
|
||||
@TableField("DIC_BSN_KY")
|
||||
private String dictionaryBusinessKey;
|
||||
/**
|
||||
* 检测项目
|
||||
*/
|
||||
@TableField("ASY_PRJ")
|
||||
private String assayProject;
|
||||
/**
|
||||
* 分析部门ID
|
||||
*/
|
||||
@TableField("ASY_DEPT_ID")
|
||||
private Long assayDepartmentId;
|
||||
/**
|
||||
* 分析部门名称
|
||||
*/
|
||||
@TableField("ASY_DEPT_NAME")
|
||||
private String assayDepartmentName;
|
||||
/**
|
||||
* 分析人
|
||||
*/
|
||||
@TableField("ASY_OPTR")
|
||||
private String assayOperator;
|
||||
/**
|
||||
* 分配任务时间
|
||||
*/
|
||||
@TableField("ASN_TSK_TM")
|
||||
private LocalDateTime assignTaskTime;
|
||||
/**
|
||||
* 是否已分配任务
|
||||
*/
|
||||
@TableField("IS_ASN_TSKD")
|
||||
private Integer isAssignTasked;
|
||||
/**
|
||||
* 是否已上报
|
||||
*/
|
||||
@TableField("IS_RPOD")
|
||||
private Integer isReported;
|
||||
/**
|
||||
* 上报人
|
||||
*/
|
||||
@TableField("RPTR")
|
||||
private String reporter;
|
||||
/**
|
||||
* 上报时间
|
||||
*/
|
||||
@TableField("RPT_TM")
|
||||
private LocalDateTime reportTime;
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@TableField("UPD_CNT")
|
||||
private Integer updateCount;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控样检测系数参数业务 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_bsn_qc_coef_prm_dat")
|
||||
@KeySequence("t_bsn_qc_coef_prm_dat_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class BusinessQCCoefficientParameterDataDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 检测项目业务ID
|
||||
*/
|
||||
@TableField("BSN_QC_COEF_DAT_ID")
|
||||
private Long businessQCCoefficientDataId;
|
||||
/**
|
||||
* 质控样检测方法参数配置ID
|
||||
*/
|
||||
@TableField("CFG_QC_SMP_MTHD_PRM_ID")
|
||||
private Long configQCSampleMethodParameterId;
|
||||
/**
|
||||
* 参数ID,字典表【T_DIC_PRM】
|
||||
*/
|
||||
@TableField("DIC_PRM_ID")
|
||||
private Long dictionaryParameterId;
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@TableField("VAL")
|
||||
private String value;
|
||||
/**
|
||||
* 数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 小数位
|
||||
*/
|
||||
@TableField("DEC_POS")
|
||||
private Integer decimalPosition;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@TableField("UPD_CNT")
|
||||
private Integer updateCount;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
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.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控管理样检测任务数据,管理样、标准样 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_bsn_qc_mngt_dat")
|
||||
@KeySequence("t_bsn_qc_mngt_dat_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class BusinessQCManagementDataDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 样品编号
|
||||
*/
|
||||
@TableField("SMP_CD")
|
||||
private String sampleCode;
|
||||
/**
|
||||
* 样品名称
|
||||
*/
|
||||
@TableField("SMP_NAME")
|
||||
private String sampleName;
|
||||
/**
|
||||
* 检测方法配置ID
|
||||
*/
|
||||
@TableField("CFG_ASY_MTHD_ID")
|
||||
private Long configAssayMethodId;
|
||||
/**
|
||||
* 指派单ID
|
||||
*/
|
||||
@TableField("BSN_ASY_TSK_ID")
|
||||
private Long businessAssayTaskId;
|
||||
/**
|
||||
* 定值样业务ID
|
||||
*/
|
||||
@TableField("BSN_STD_SMP_ID")
|
||||
private Long businessStandardSampleId;
|
||||
/**
|
||||
* 质控类型_ID,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样
|
||||
*/
|
||||
@TableField("DIC_BSN_ID")
|
||||
private Long dictionaryBusinessId;
|
||||
/**
|
||||
* 质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样
|
||||
*/
|
||||
@TableField("DIC_BSN_KY")
|
||||
private String dictionaryBusinessKey;
|
||||
/**
|
||||
* 检测项目
|
||||
*/
|
||||
@TableField("ASY_PRJ")
|
||||
private String assayProject;
|
||||
/**
|
||||
* 分析部门ID
|
||||
*/
|
||||
@TableField("ASY_DEPT_ID")
|
||||
private Long assayDepartmentId;
|
||||
/**
|
||||
* 分析部门名称
|
||||
*/
|
||||
@TableField("ASY_DEPT_NAME")
|
||||
private String assayDepartmentName;
|
||||
/**
|
||||
* 分析人
|
||||
*/
|
||||
@TableField("ASY_OPTR")
|
||||
private String assayOperator;
|
||||
/**
|
||||
* 分配任务时间
|
||||
*/
|
||||
@TableField("ASN_TSK_TM")
|
||||
private LocalDateTime assignTaskTime;
|
||||
/**
|
||||
* 是否已分配任务
|
||||
*/
|
||||
@TableField("IS_ASN_TSKD")
|
||||
private Integer isAssignTasked;
|
||||
/**
|
||||
* 是否已上报
|
||||
*/
|
||||
@TableField("IS_RPOD")
|
||||
private Integer isReported;
|
||||
/**
|
||||
* 上报人
|
||||
*/
|
||||
@TableField("RPTR")
|
||||
private String reporter;
|
||||
/**
|
||||
* 上报时间
|
||||
*/
|
||||
@TableField("RPT_TM")
|
||||
private LocalDateTime reportTime;
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@TableField("UPD_CNT")
|
||||
private Integer updateCount;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控样检测参数数据业务 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_bsn_qc_mngt_prm_dat")
|
||||
@KeySequence("t_bsn_qc_mngt_prm_dat_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class BusinessQCManagementParameterDataDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 检测项目业务ID
|
||||
*/
|
||||
@TableField("BSN_QC_MNGT_PRJ_DAT_ID")
|
||||
private Long businessQCManagementProjectDataId;
|
||||
/**
|
||||
* 检测方法分析项目参数配置表ID
|
||||
*/
|
||||
@TableField("CFG_ASY_MTHD_PRJ_PRM_ID")
|
||||
private Long configAssayMethodProjectParameterId;
|
||||
/**
|
||||
* 参数ID,字典表【T_DIC_PRM】
|
||||
*/
|
||||
@TableField("DIC_PRM_ID")
|
||||
private Long dictionaryParameterId;
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@TableField("VAL")
|
||||
private String value;
|
||||
/**
|
||||
* 数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 小数位
|
||||
*/
|
||||
@TableField("DEC_POS")
|
||||
private Integer decimalPosition;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@TableField("UPD_CNT")
|
||||
private Integer updateCount;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控样检测项目数据业务 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_bsn_qc_mngt_prj_dat")
|
||||
@KeySequence("t_bsn_qc_mngt_prj_dat_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class BusinessQCManagementProjectDataDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 检测任务ID
|
||||
*/
|
||||
@TableField("BSN_QC_MNGT_DAT_ID")
|
||||
private Long businessQCManagementDataId;
|
||||
/**
|
||||
* 检测方法分析项目配置ID
|
||||
*/
|
||||
@TableField("CFG_ASY_MTHD_PRJ_ID")
|
||||
private Long configAssayMethodProjectId;
|
||||
/**
|
||||
* 检测项目字典ID,字典表【T_DIC_PRJ】
|
||||
*/
|
||||
@TableField("DIC_PRJ_ID")
|
||||
private Long dictionaryProjectId;
|
||||
/**
|
||||
* 用途,ingredient-配料、report-报出、ingredient_report-配料及报出、quality_control-品质控制
|
||||
*/
|
||||
@TableField("USG")
|
||||
private String usage;
|
||||
/**
|
||||
* 符号,=、>、<、等
|
||||
*/
|
||||
@TableField("SMB")
|
||||
private String symbol;
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@TableField("VAL")
|
||||
private String value;
|
||||
/**
|
||||
* 数据类型,字典表【T_DIC_BSN】string-字符串,int-整数,decimal-小数,date-日期,datetime-时间
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 小数位
|
||||
*/
|
||||
@TableField("DEC_POS")
|
||||
private Integer decimalPosition;
|
||||
/**
|
||||
* 是否不参与超差判定
|
||||
*/
|
||||
@TableField("IS_NT_ASMT")
|
||||
private Integer isNotAssessment;
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENBD")
|
||||
private Integer isEnabled;
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@TableField("UPD_CNT")
|
||||
private Integer updateCount;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控样检测系数任务数据,空白样、标样 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface BusinessQCCoefficientDataMapper extends BaseMapperX<BusinessQCCoefficientDataDO> {
|
||||
|
||||
default PageResult<BusinessQCCoefficientDataDO> selectPage(BusinessQCCoefficientDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessQCCoefficientDataDO>()
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getSampleCode, reqVO.getSampleCode())
|
||||
.likeIfPresent(BusinessQCCoefficientDataDO::getSampleName, reqVO.getSampleName())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getConfigAssayMethodId, reqVO.getConfigAssayMethodId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getBusinessAssayTaskId, reqVO.getBusinessAssayTaskId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getBusinessStandardSampleId, reqVO.getBusinessStandardSampleId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getDictionaryBusinessId, reqVO.getDictionaryBusinessId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getDictionaryBusinessKey, reqVO.getDictionaryBusinessKey())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayProject, reqVO.getAssayProject())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||
.likeIfPresent(BusinessQCCoefficientDataDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getAssignTaskTime, reqVO.getAssignTaskTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getIsAssignTasked, reqVO.getIsAssignTasked())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getIsReported, reqVO.getIsReported())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getReporter, reqVO.getReporter())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getReportTime, reqVO.getReportTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCCoefficientDataDO::getId));
|
||||
}
|
||||
|
||||
default List<BusinessQCCoefficientDataDO> selectList(BusinessQCCoefficientDataReqVO reqVO) {
|
||||
return selectList(new LambdaQueryWrapperX<BusinessQCCoefficientDataDO>()
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getSampleCode, reqVO.getSampleCode())
|
||||
.likeIfPresent(BusinessQCCoefficientDataDO::getSampleName, reqVO.getSampleName())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getConfigAssayMethodId, reqVO.getConfigAssayMethodId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getBusinessAssayTaskId, reqVO.getBusinessAssayTaskId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getBusinessStandardSampleId, reqVO.getBusinessStandardSampleId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getDictionaryBusinessId, reqVO.getDictionaryBusinessId())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getDictionaryBusinessKey, reqVO.getDictionaryBusinessKey())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayProject, reqVO.getAssayProject())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||
.likeIfPresent(BusinessQCCoefficientDataDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getAssignTaskTime, reqVO.getAssignTaskTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getIsAssignTasked, reqVO.getIsAssignTasked())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getIsReported, reqVO.getIsReported())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getReporter, reqVO.getReporter())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getReportTime, reqVO.getReportTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCCoefficientDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCCoefficientDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCCoefficientDataDO::getId));
|
||||
}
|
||||
|
||||
default List<BusinessQCCoefficientDataDO> selectByBusinessAssayTaskId(Long businessAssayTaskId) {
|
||||
return selectList(new LambdaQueryWrapperX<BusinessQCCoefficientDataDO>()
|
||||
.eq(BusinessQCCoefficientDataDO::getBusinessAssayTaskId, businessAssayTaskId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessQCCoefficientParameterDataPageReqVO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控样检测系数参数业务 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface BusinessQCCoefficientParameterDataMapper extends BaseMapperX<BusinessQCCoefficientParameterDataDO> {
|
||||
|
||||
default PageResult<BusinessQCCoefficientParameterDataDO> selectPage(BusinessQCCoefficientParameterDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessQCCoefficientParameterDataDO>()
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getBusinessQCCoefficientDataId, reqVO.getBusinessQCCoefficientDataId())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getConfigQCSampleMethodParameterId, reqVO.getConfigQCSampleMethodParameterId())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getDictionaryParameterId, reqVO.getDictionaryParameterId())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getValue, reqVO.getValue())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCCoefficientParameterDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCCoefficientParameterDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCCoefficientParameterDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementDataDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控管理样检测任务数据,管理样、标准样 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface BusinessQCManagementDataMapper extends BaseMapperX<BusinessQCManagementDataDO> {
|
||||
|
||||
default PageResult<BusinessQCManagementDataDO> selectPage(BusinessQCManagementDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessQCManagementDataDO>()
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getSampleCode, reqVO.getSampleCode())
|
||||
.likeIfPresent(BusinessQCManagementDataDO::getSampleName, reqVO.getSampleName())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getConfigAssayMethodId, reqVO.getConfigAssayMethodId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getBusinessAssayTaskId, reqVO.getBusinessAssayTaskId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getBusinessStandardSampleId, reqVO.getBusinessStandardSampleId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getDictionaryBusinessId, reqVO.getDictionaryBusinessId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getDictionaryBusinessKey, reqVO.getDictionaryBusinessKey())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayProject, reqVO.getAssayProject())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||
.likeIfPresent(BusinessQCManagementDataDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getAssignTaskTime, reqVO.getAssignTaskTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getIsAssignTasked, reqVO.getIsAssignTasked())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getIsReported, reqVO.getIsReported())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getReporter, reqVO.getReporter())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getReportTime, reqVO.getReportTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCManagementDataDO::getId));
|
||||
}
|
||||
|
||||
default List<BusinessQCManagementDataDO> selectList(BusinessQCManagementDataReqVO reqVO) {
|
||||
return selectList(new LambdaQueryWrapperX<BusinessQCManagementDataDO>()
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getSampleCode, reqVO.getSampleCode())
|
||||
.likeIfPresent(BusinessQCManagementDataDO::getSampleName, reqVO.getSampleName())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getConfigAssayMethodId, reqVO.getConfigAssayMethodId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getBusinessAssayTaskId, reqVO.getBusinessAssayTaskId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getBusinessStandardSampleId, reqVO.getBusinessStandardSampleId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getDictionaryBusinessId, reqVO.getDictionaryBusinessId())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getDictionaryBusinessKey, reqVO.getDictionaryBusinessKey())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayProject, reqVO.getAssayProject())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayDepartmentId, reqVO.getAssayDepartmentId())
|
||||
.likeIfPresent(BusinessQCManagementDataDO::getAssayDepartmentName, reqVO.getAssayDepartmentName())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getAssayOperator, reqVO.getAssayOperator())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getAssignTaskTime, reqVO.getAssignTaskTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getIsAssignTasked, reqVO.getIsAssignTasked())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getIsReported, reqVO.getIsReported())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getReporter, reqVO.getReporter())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getReportTime, reqVO.getReportTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCManagementDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCManagementDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCManagementDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementParameterDataDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控样检测参数数据业务 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface BusinessQCManagementParameterDataMapper extends BaseMapperX<BusinessQCManagementParameterDataDO> {
|
||||
|
||||
default PageResult<BusinessQCManagementParameterDataDO> selectPage(BusinessQCManagementParameterDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessQCManagementParameterDataDO>()
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getBusinessQCManagementProjectDataId, reqVO.getBusinessQCManagementProjectDataId())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getConfigAssayMethodProjectParameterId, reqVO.getConfigAssayMethodProjectParameterId())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getDictionaryParameterId, reqVO.getDictionaryParameterId())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getValue, reqVO.getValue())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCManagementParameterDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCManagementParameterDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCManagementParameterDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.qms.business.bus.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementProjectDataDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控样检测项目数据业务 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface BusinessQCManagementProjectDataMapper extends BaseMapperX<BusinessQCManagementProjectDataDO> {
|
||||
|
||||
default PageResult<BusinessQCManagementProjectDataDO> selectPage(BusinessQCManagementProjectDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessQCManagementProjectDataDO>()
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getBusinessQCManagementDataId, reqVO.getBusinessQCManagementDataId())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getConfigAssayMethodProjectId, reqVO.getConfigAssayMethodProjectId())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getDictionaryProjectId, reqVO.getDictionaryProjectId())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getUsage, reqVO.getUsage())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getSymbol, reqVO.getSymbol())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getValue, reqVO.getValue())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getIsNotAssessment, reqVO.getIsNotAssessment())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getIsEnabled, reqVO.getIsEnabled())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getUpdateCount, reqVO.getUpdateCount())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(BusinessQCManagementProjectDataDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(BusinessQCManagementProjectDataDO::getRemark, reqVO.getRemark())
|
||||
.orderByDesc(BusinessQCManagementProjectDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -36,4 +36,9 @@ public interface BusinessQCProjectDataMapper extends BaseMapperX<BusinessQCProje
|
||||
.orderByDesc(BusinessQCProjectDataDO::getId));
|
||||
}
|
||||
|
||||
default List<BusinessQCProjectDataDO> selectByBusinessQCDataIds(List<Long> businessQCDataIds) {
|
||||
return selectList(new LambdaQueryWrapperX<BusinessQCProjectDataDO>()
|
||||
.in(BusinessQCProjectDataDO::getBusinessQCDataId, businessQCDataIds));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,15 +9,13 @@ import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDetailDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDetailMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCProjectDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.slot.SampleTaskAssignContext;
|
||||
import jakarta.annotation.Resource;
|
||||
|
||||
@@ -34,13 +32,10 @@ public class SampleTaskAssignDataSaveOrUpdateCmp extends NodeComponent {
|
||||
private BusinessAssayTaskDataMapper businessAssayTaskDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCDataMapper businessQCDataMapper;
|
||||
private BusinessQCCoefficientDataMapper businessQCCoefficientDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCProjectDataMapper businessQCProjectDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCParameterDataMapper businessQCParameterDataMapper;
|
||||
private BusinessQCCoefficientParameterDataMapper businessQCCoefficientParameterDataMapper;
|
||||
|
||||
@Override
|
||||
public void process() throws Exception {
|
||||
@@ -54,11 +49,9 @@ public class SampleTaskAssignDataSaveOrUpdateCmp extends NodeComponent {
|
||||
|
||||
List<BusinessAssayTaskDataDO> businessAssayTaskDataList = sampleTaskAssignContext.getBusinessAssayTaskDataList();
|
||||
|
||||
List<BusinessQCDataDO> businessQCDataList = sampleTaskAssignContext.getBusinessQCDataList();
|
||||
List<BusinessQCCoefficientDataDO> businessQCCoefficientDataList = sampleTaskAssignContext.getBusinessQCCoefficientDataList();
|
||||
|
||||
List<BusinessQCProjectDataDO> businessQCProjectDataList = sampleTaskAssignContext.getBusinessQCProjectDataList();
|
||||
|
||||
List<BusinessQCParameterDataDO> businessQCParameterDataList = sampleTaskAssignContext.getBusinessQCParameterDataList();
|
||||
List<BusinessQCCoefficientParameterDataDO> businessQCCoefficientParameterDataList = sampleTaskAssignContext.getBusinessQCCoefficientParameterDataList();
|
||||
|
||||
if (CollUtil.isNotEmpty(savebusinessAssayTaskList)) {
|
||||
this.businessAssayTaskMapper.insertBatch(savebusinessAssayTaskList);
|
||||
@@ -76,16 +69,12 @@ public class SampleTaskAssignDataSaveOrUpdateCmp extends NodeComponent {
|
||||
this.businessAssayTaskDataMapper.updateBatch(businessAssayTaskDataList);
|
||||
}
|
||||
|
||||
if (CollUtil.isNotEmpty(businessQCDataList)) {
|
||||
this.businessQCDataMapper.insertBatch(businessQCDataList);
|
||||
if (CollUtil.isNotEmpty(businessQCCoefficientDataList)) {
|
||||
this.businessQCCoefficientDataMapper.insertBatch(businessQCCoefficientDataList);
|
||||
}
|
||||
|
||||
if (CollUtil.isNotEmpty(businessQCProjectDataList)) {
|
||||
this.businessQCProjectDataMapper.insertBatch(businessQCProjectDataList);
|
||||
}
|
||||
|
||||
if (CollUtil.isNotEmpty(businessQCParameterDataList)) {
|
||||
this.businessQCParameterDataMapper.insertBatch(businessQCParameterDataList);
|
||||
if (CollUtil.isNotEmpty(businessQCCoefficientParameterDataList)) {
|
||||
this.businessQCCoefficientParameterDataMapper.insertBatch(businessQCCoefficientParameterDataList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
package com.zt.plat.module.qms.business.bus.liteflow.sample.taskassign;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.slot.SampleTaskAssignContext;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigQCSampleMethodExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigQCSampleMethodParameterExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodProjectParameterDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectParameterMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodParameterMapper;
|
||||
import com.zt.plat.module.qms.core.code.SequenceUtil;
|
||||
import com.zt.plat.module.qms.enums.QmsCommonConstant;
|
||||
|
||||
@@ -42,6 +40,9 @@ public class SampleTaskAssignQCSampleCmp extends NodeComponent {
|
||||
@Resource
|
||||
private ConfigQCSampleMethodMapper configQCSampleMethodMapper;
|
||||
|
||||
@Resource
|
||||
private ConfigQCSampleMethodParameterMapper configQCSampleMethodParameterMapper;
|
||||
|
||||
@Resource
|
||||
private ConfigAssayMethodProjectMapper configAssayMethodProjectMapper;
|
||||
|
||||
@@ -49,15 +50,17 @@ public class SampleTaskAssignQCSampleCmp extends NodeComponent {
|
||||
private ConfigAssayMethodProjectParameterMapper configAssayMethodProjectParameterMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCDataMapper businessQCDataMapper;
|
||||
private BusinessQCCoefficientDataMapper businessQCCoefficientDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientParameterDataMapper businessQCCoefficientParameterDataMapper;
|
||||
|
||||
@Override
|
||||
public void process() throws Exception {
|
||||
SampleTaskAssignContext sampleTaskAssignContext = this.getContextBean(SampleTaskAssignContext.class);
|
||||
|
||||
List<BusinessQCDataDO> businessQCDataDOList = new ArrayList<>();
|
||||
List<BusinessQCProjectDataDO> businessQCProjectDataDOList = new ArrayList<>();
|
||||
List<BusinessQCParameterDataDO> businessQCParameterDataDOList = new ArrayList<>();
|
||||
List<BusinessQCCoefficientDataDO> businessQCCoefficientDataDOList = new ArrayList<>();
|
||||
List<BusinessQCCoefficientParameterDataDO> businessQCCoefficientParameterDataDOList = new ArrayList<>();
|
||||
|
||||
//分配任务
|
||||
List<BusinessAssayTaskDO> businessAssayTaskList = new ArrayList<>();
|
||||
@@ -73,90 +76,67 @@ public class SampleTaskAssignQCSampleCmp extends NodeComponent {
|
||||
|
||||
//获取分析方法对应的质控分析配置
|
||||
List<ConfigQCSampleMethodExtendRespVO> configQCSampleMethodList = configQCSampleMethodMapper.selectByConfigAssayMethodIds(configAssayMethodIdList);
|
||||
if (configQCSampleMethodList == null) {//如果未配置质控样品方法,则直接返回
|
||||
if (CollUtil.isEmpty(configQCSampleMethodList)) {//如果未配置质控样品方法,则直接返回
|
||||
return;
|
||||
}
|
||||
//获取质控分析方法id列表
|
||||
List<Long> configQCAssayMethodIdList = configQCSampleMethodList.stream().map(m -> m.getConfigQCAssayMethodId()).distinct().collect(Collectors.toList());
|
||||
//获取质控分析方法
|
||||
List<ConfigAssayMethodDO> configAssayMethodList = configAssayMethodMapper.selectByIds(configQCAssayMethodIdList);
|
||||
//获取质控分析方法检测项目
|
||||
List<ConfigAssayMethodProjectExtendRespVO> configAssayMethodProjectList = configAssayMethodProjectMapper.selectByConfigAssayMethodIds(configQCAssayMethodIdList);
|
||||
//获取质控分析方法检测项目参数
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterList = configAssayMethodProjectParameterMapper.selectByConfigAssayMethodIds(configQCAssayMethodIdList);
|
||||
//质控id
|
||||
List<Long> configQCSampleMethodIdList = configQCSampleMethodList.stream().map(m -> m.getId()).collect(Collectors.toList());
|
||||
//质控样分析参数
|
||||
List<ConfigQCSampleMethodParameterExtendRespVO> configQcSampleMethodParameterList = configQCSampleMethodParameterMapper.selectByConfigQCSampleMethodIds(configQCSampleMethodIdList);
|
||||
|
||||
//循环分配任务
|
||||
for (BusinessAssayTaskDO businessAssayTaskDO : businessAssayTaskList) {
|
||||
ConfigQCSampleMethodExtendRespVO configQCSampleMethodExtendRespVO = configQCSampleMethodList.stream().filter(f -> f.getConfigAssayMethodId().equals(businessAssayTaskDO.getConfigAssayMethodId()) && "kby".equals(f.getDictionaryBusinessKey())).findFirst().orElse(null);
|
||||
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodList.stream().filter(f -> f.getId().equals(configQCSampleMethodExtendRespVO.getConfigQCAssayMethodId())).findFirst().orElse(null);
|
||||
String assayProject = configAssayMethodProjectList.stream().filter(f -> f.getConfigAssayMethodId().equals(configAssayMethodDO.getId())).map(m -> m.getShowName()).collect(Collectors.joining(","));
|
||||
|
||||
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodMapper.selectById(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
|
||||
//查询下质控数据,如果存在则跳出循环
|
||||
List<BusinessQCDataDO> businessQCDataList = businessQCDataMapper.selectByBusinessAssayTaskId(businessAssayTaskDO.getId());
|
||||
List<BusinessQCCoefficientDataDO> businessQCCoefficientDataList = businessQCCoefficientDataMapper.selectByBusinessAssayTaskId(businessAssayTaskDO.getId());
|
||||
//如果存在则跳出循环
|
||||
if (CollUtil.isNotEmpty(businessQCDataList)) {
|
||||
if (CollUtil.isNotEmpty(businessQCCoefficientDataList)) {
|
||||
break;
|
||||
}
|
||||
|
||||
//根据默认配置的个数生成空白样
|
||||
for (int i = 0; i < configQCSampleMethodExtendRespVO.getDefaultCount(); i++) {
|
||||
|
||||
BusinessQCDataDO businessQCDataDO = new BusinessQCDataDO();
|
||||
businessQCDataDO.setId(IdWorker.getId());
|
||||
businessQCDataDO.setBusinessAssayTaskId(businessAssayTaskDO.getId());
|
||||
businessQCDataDO.setConfigAssayMethodId(configQCSampleMethodExtendRespVO.getConfigQCAssayMethodId());
|
||||
businessQCDataDO.setSampleName(configQCSampleMethodExtendRespVO.getDictionaryBusinessName());
|
||||
BusinessQCCoefficientDataDO businessQCCoefficientDataDO = new BusinessQCCoefficientDataDO();
|
||||
businessQCCoefficientDataDO.setId(IdWorker.getId());
|
||||
businessQCCoefficientDataDO.setBusinessAssayTaskId(businessAssayTaskDO.getId());
|
||||
businessQCCoefficientDataDO.setConfigAssayMethodId(configQCSampleMethodExtendRespVO.getConfigAssayMethodId());
|
||||
businessQCCoefficientDataDO.setSampleName(configQCSampleMethodExtendRespVO.getDictionaryBusinessName());
|
||||
if (StringUtils.isNotBlank(configQCSampleMethodExtendRespVO.getCodeRule())) {
|
||||
String codeSample = sequenceUtil.genCode(configQCSampleMethodExtendRespVO.getCodeRule());
|
||||
businessQCDataDO.setSampleCode(codeSample);
|
||||
businessQCCoefficientDataDO.setSampleCode(codeSample);
|
||||
}
|
||||
businessQCDataDO.setDictionaryBusinessId(configQCSampleMethodExtendRespVO.getDictionaryBusinessId());
|
||||
businessQCDataDO.setDictionaryBusinessKey(configQCSampleMethodExtendRespVO.getDictionaryBusinessKey());
|
||||
businessQCDataDO.setAssayDepartmentId(configAssayMethodDO.getAssayDepartmentId());
|
||||
businessQCDataDO.setAssayDepartmentName(configAssayMethodDO.getAssayDepartmentName());
|
||||
businessQCDataDO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessQCDataDO.setAssayProject(assayProject);
|
||||
businessQCDataDO.setAssignTaskTime(businessAssayTaskDO.getTaskAssignTime());
|
||||
businessQCDataDO.setIsAssignTasked(QmsCommonConstant.YES);
|
||||
businessQCDataDO.setIsReported(QmsCommonConstant.NO);
|
||||
businessQCCoefficientDataDO.setDictionaryBusinessId(configQCSampleMethodExtendRespVO.getDictionaryBusinessId());
|
||||
businessQCCoefficientDataDO.setDictionaryBusinessKey(configQCSampleMethodExtendRespVO.getDictionaryBusinessKey());
|
||||
businessQCCoefficientDataDO.setAssayDepartmentId(configAssayMethodDO.getAssayDepartmentId());
|
||||
businessQCCoefficientDataDO.setAssayDepartmentName(configAssayMethodDO.getAssayDepartmentName());
|
||||
businessQCCoefficientDataDO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessQCCoefficientDataDO.setAssayProject("");
|
||||
businessQCCoefficientDataDO.setAssignTaskTime(businessAssayTaskDO.getTaskAssignTime());
|
||||
businessQCCoefficientDataDO.setIsAssignTasked(QmsCommonConstant.YES);
|
||||
businessQCCoefficientDataDO.setIsReported(QmsCommonConstant.NO);
|
||||
|
||||
businessQCDataDOList.add(businessQCDataDO);
|
||||
businessQCCoefficientDataDOList.add(businessQCCoefficientDataDO);
|
||||
|
||||
List<ConfigAssayMethodProjectExtendRespVO> configAssayMethodProjectExtendRespList = configAssayMethodProjectList.stream().filter(f -> f.getConfigAssayMethodId().equals(configAssayMethodDO.getId())).collect(Collectors.toList());
|
||||
for (ConfigAssayMethodProjectExtendRespVO configAssayMethodProjectExtendRespVO : configAssayMethodProjectExtendRespList) {
|
||||
BusinessQCProjectDataDO businessQCProjectDataDO = new BusinessQCProjectDataDO();
|
||||
businessQCProjectDataDO.setId(IdWorker.getId());
|
||||
businessQCProjectDataDO.setBusinessQCDataId(businessQCDataDO.getId());
|
||||
businessQCProjectDataDO.setConfigAssayMethodProjectId(configAssayMethodProjectExtendRespVO.getId());
|
||||
businessQCProjectDataDO.setDictionaryProjectId(configAssayMethodProjectExtendRespVO.getDictionaryProjectId());
|
||||
businessQCProjectDataDO.setUsage(QmsCommonConstant.ASSAY_PROJECT_USAGE_QUALITY_CONTROL);
|
||||
businessQCProjectDataDO.setSymbol("=");
|
||||
businessQCProjectDataDO.setDataType(configAssayMethodProjectExtendRespVO.getDataType());
|
||||
businessQCProjectDataDO.setDecimalPosition(configAssayMethodProjectExtendRespVO.getDecimalPosition());
|
||||
businessQCProjectDataDO.setIsEnabled(configAssayMethodProjectExtendRespVO.getIsDefaultEnabled());
|
||||
|
||||
businessQCProjectDataDOList.add(businessQCProjectDataDO);
|
||||
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterDoList = configAssayMethodProjectParameterList.stream().filter(f -> f.getConfigAssayMethodProjectId().equals(configAssayMethodProjectExtendRespVO.getId())).collect(Collectors.toList());
|
||||
for (ConfigAssayMethodProjectParameterDO configAssayMethodProjectParameterDO : configAssayMethodProjectParameterDoList) {
|
||||
BusinessQCParameterDataDO businessQCParameterDataDO = new BusinessQCParameterDataDO();
|
||||
businessQCParameterDataDO.setBusinessQCProjectDataId(businessQCProjectDataDO.getId());
|
||||
businessQCParameterDataDO.setConfigAssayMethodProjectParameterId(configAssayMethodProjectParameterDO.getId());
|
||||
businessQCParameterDataDO.setDictionaryParameterId(configAssayMethodProjectParameterDO.getDictionaryParameterId());
|
||||
businessQCParameterDataDO.setDataType(configAssayMethodProjectParameterDO.getDataType());
|
||||
businessQCParameterDataDO.setDecimalPosition(configAssayMethodProjectParameterDO.getDecimalPosition());
|
||||
|
||||
businessQCParameterDataDOList.add(businessQCParameterDataDO);
|
||||
}
|
||||
List<ConfigQCSampleMethodParameterExtendRespVO> configQCSampleMethodParameterExtendRespVOs = configQcSampleMethodParameterList.stream().filter(f -> f.getConfigQCSampleMethodId().equals(configQCSampleMethodExtendRespVO.getId())).collect(Collectors.toList());
|
||||
for (ConfigQCSampleMethodParameterExtendRespVO configQCSampleMethodParameterExtendRespVO : configQCSampleMethodParameterExtendRespVOs) {
|
||||
BusinessQCCoefficientParameterDataDO businessQCCoefficientParameterDataDO = new BusinessQCCoefficientParameterDataDO();
|
||||
businessQCCoefficientParameterDataDO.setBusinessQCCoefficientDataId(businessQCCoefficientDataDO.getId());
|
||||
businessQCCoefficientParameterDataDO.setConfigQCSampleMethodParameterId(configQCSampleMethodParameterExtendRespVO.getId());
|
||||
businessQCCoefficientParameterDataDO.setDictionaryParameterId(configQCSampleMethodParameterExtendRespVO.getDictionaryParameterId());
|
||||
businessQCCoefficientParameterDataDO.setDataType(configQCSampleMethodParameterExtendRespVO.getDataType());
|
||||
businessQCCoefficientParameterDataDO.setDecimalPosition(configQCSampleMethodParameterExtendRespVO.getDecimalPosition());
|
||||
businessQCCoefficientParameterDataDO.setValue(configQCSampleMethodParameterExtendRespVO.getDefaultValue());
|
||||
|
||||
businessQCCoefficientParameterDataDOList.add(businessQCCoefficientParameterDataDO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
sampleTaskAssignContext.setBusinessQCDataList(businessQCDataDOList);
|
||||
sampleTaskAssignContext.setBusinessQCProjectDataList(businessQCProjectDataDOList);
|
||||
sampleTaskAssignContext.setBusinessQCParameterDataList(businessQCParameterDataDOList);
|
||||
sampleTaskAssignContext.setBusinessQCCoefficientDataList(businessQCCoefficientDataDOList);
|
||||
sampleTaskAssignContext.setBusinessQCCoefficientParameterDataList(businessQCCoefficientParameterDataDOList);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -8,9 +8,8 @@ import com.zt.plat.framework.security.core.LoginUser;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDetailDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessSubSampleDO;
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.param.AssignAssayUser;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodDO;
|
||||
@@ -85,13 +84,10 @@ public class SampleTaskAssignContext {
|
||||
/** 任务指派的明细列表 **/
|
||||
private List<BusinessAssayTaskDetailDO> businessAssayTaskDetailList;
|
||||
|
||||
/** 质控样品数据 **/
|
||||
private List<BusinessQCDataDO> businessQCDataList;
|
||||
/** 质控样-(空白、标准) **/
|
||||
private List<BusinessQCCoefficientDataDO> businessQCCoefficientDataList;
|
||||
|
||||
/** 质控样检测项目数据 **/
|
||||
private List<BusinessQCProjectDataDO> businessQCProjectDataList;
|
||||
|
||||
/** 质控样检测项目参数数据 **/
|
||||
private List<BusinessQCParameterDataDO> businessQCParameterDataList;
|
||||
/** 质控样-(空白、标准)检测参数数据 **/
|
||||
private List<BusinessQCCoefficientParameterDataDO> businessQCCoefficientParameterDataList;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控样检测系数任务数据,空白样、标样 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface BusinessQCCoefficientDataService {
|
||||
|
||||
/**
|
||||
* 创建质控样检测系数任务数据,空白样、标样
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
BusinessQCCoefficientDataRespVO createBusinessQCCoefficientData(@Valid BusinessQCCoefficientDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控样检测系数任务数据,空白样、标样
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateBusinessQCCoefficientData(@Valid BusinessQCCoefficientDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控样检测系数任务数据,空白样、标样
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteBusinessQCCoefficientData(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控样检测系数任务数据,空白样、标样
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteBusinessQCCoefficientDataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控样检测系数任务数据,空白样、标样
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控样检测系数任务数据,空白样、标样
|
||||
*/
|
||||
BusinessQCCoefficientDataDO getBusinessQCCoefficientData(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控样检测系数任务数据,空白样、标样分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控样检测系数任务数据,空白样、标样分页
|
||||
*/
|
||||
PageResult<BusinessQCCoefficientDataDO> getBusinessQCCoefficientDataPage(BusinessQCCoefficientDataPageReqVO pageReqVO);
|
||||
|
||||
List<BusinessQCCoefficientDataDO> getBusinessQCCoefficientDataList(BusinessQCCoefficientDataReqVO reqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientDataMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控样检测系数任务数据,空白样、标样 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class BusinessQCCoefficientDataServiceImpl implements BusinessQCCoefficientDataService {
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientDataMapper businessQCCoefficientDataMapper;
|
||||
|
||||
@Override
|
||||
public BusinessQCCoefficientDataRespVO createBusinessQCCoefficientData(BusinessQCCoefficientDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
BusinessQCCoefficientDataDO businessQCCoefficientData = BeanUtils.toBean(createReqVO, BusinessQCCoefficientDataDO.class);
|
||||
businessQCCoefficientDataMapper.insert(businessQCCoefficientData);
|
||||
// 返回
|
||||
return BeanUtils.toBean(businessQCCoefficientData, BusinessQCCoefficientDataRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBusinessQCCoefficientData(BusinessQCCoefficientDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
BusinessQCCoefficientDataDO updateObj = BeanUtils.toBean(updateReqVO, BusinessQCCoefficientDataDO.class);
|
||||
businessQCCoefficientDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCCoefficientData(Long id) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientDataExists(id);
|
||||
// 删除
|
||||
businessQCCoefficientDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCCoefficientDataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientDataExists(ids);
|
||||
// 删除
|
||||
businessQCCoefficientDataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateBusinessQCCoefficientDataExists(List<Long> ids) {
|
||||
List<BusinessQCCoefficientDataDO> list = businessQCCoefficientDataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(BUSINESS_QC_COEFFICIENT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateBusinessQCCoefficientDataExists(Long id) {
|
||||
if (businessQCCoefficientDataMapper.selectById(id) == null) {
|
||||
throw exception(BUSINESS_QC_COEFFICIENT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessQCCoefficientDataDO getBusinessQCCoefficientData(Long id) {
|
||||
return businessQCCoefficientDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<BusinessQCCoefficientDataDO> getBusinessQCCoefficientDataPage(BusinessQCCoefficientDataPageReqVO pageReqVO) {
|
||||
return businessQCCoefficientDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BusinessQCCoefficientDataDO> getBusinessQCCoefficientDataList(BusinessQCCoefficientDataReqVO reqVO) {
|
||||
return businessQCCoefficientDataMapper.selectList(reqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控样检测系数参数业务 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface BusinessQCCoefficientParameterDataService {
|
||||
|
||||
/**
|
||||
* 创建质控样检测系数参数业务
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
BusinessQCCoefficientParameterDataRespVO createBusinessQCCoefficientParameterData(@Valid BusinessQCCoefficientParameterDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控样检测系数参数业务
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateBusinessQCCoefficientParameterData(@Valid BusinessQCCoefficientParameterDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控样检测系数参数业务
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteBusinessQCCoefficientParameterData(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控样检测系数参数业务
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteBusinessQCCoefficientParameterDataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控样检测系数参数业务
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控样检测系数参数业务
|
||||
*/
|
||||
BusinessQCCoefficientParameterDataDO getBusinessQCCoefficientParameterData(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控样检测系数参数业务分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控样检测系数参数业务分页
|
||||
*/
|
||||
PageResult<BusinessQCCoefficientParameterDataDO> getBusinessQCCoefficientParameterDataPage(BusinessQCCoefficientParameterDataPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientParameterDataMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控样检测系数参数业务 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class BusinessQCCoefficientParameterDataServiceImpl implements BusinessQCCoefficientParameterDataService {
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientParameterDataMapper businessQCCoefficientParameterDataMapper;
|
||||
|
||||
@Override
|
||||
public BusinessQCCoefficientParameterDataRespVO createBusinessQCCoefficientParameterData(BusinessQCCoefficientParameterDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
BusinessQCCoefficientParameterDataDO businessQCCoefficientParameterData = BeanUtils.toBean(createReqVO, BusinessQCCoefficientParameterDataDO.class);
|
||||
businessQCCoefficientParameterDataMapper.insert(businessQCCoefficientParameterData);
|
||||
// 返回
|
||||
return BeanUtils.toBean(businessQCCoefficientParameterData, BusinessQCCoefficientParameterDataRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBusinessQCCoefficientParameterData(BusinessQCCoefficientParameterDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientParameterDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
BusinessQCCoefficientParameterDataDO updateObj = BeanUtils.toBean(updateReqVO, BusinessQCCoefficientParameterDataDO.class);
|
||||
businessQCCoefficientParameterDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCCoefficientParameterData(Long id) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientParameterDataExists(id);
|
||||
// 删除
|
||||
businessQCCoefficientParameterDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCCoefficientParameterDataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateBusinessQCCoefficientParameterDataExists(ids);
|
||||
// 删除
|
||||
businessQCCoefficientParameterDataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateBusinessQCCoefficientParameterDataExists(List<Long> ids) {
|
||||
List<BusinessQCCoefficientParameterDataDO> list = businessQCCoefficientParameterDataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(BUSINESS_QC_COEFFICIENT_PARAMETER_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateBusinessQCCoefficientParameterDataExists(Long id) {
|
||||
if (businessQCCoefficientParameterDataMapper.selectById(id) == null) {
|
||||
throw exception(BUSINESS_QC_COEFFICIENT_PARAMETER_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessQCCoefficientParameterDataDO getBusinessQCCoefficientParameterData(Long id) {
|
||||
return businessQCCoefficientParameterDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<BusinessQCCoefficientParameterDataDO> getBusinessQCCoefficientParameterDataPage(BusinessQCCoefficientParameterDataPageReqVO pageReqVO) {
|
||||
return businessQCCoefficientParameterDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementDataDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控管理样检测任务数据,管理样、标准样 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface BusinessQCManagementDataService {
|
||||
|
||||
/**
|
||||
* 创建质控管理样检测任务数据,管理样、标准样
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
BusinessQCManagementDataRespVO createBusinessQCManagementData(@Valid BusinessQCManagementDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控管理样检测任务数据,管理样、标准样
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateBusinessQCManagementData(@Valid BusinessQCManagementDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控管理样检测任务数据,管理样、标准样
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementData(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控管理样检测任务数据,管理样、标准样
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementDataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控管理样检测任务数据,管理样、标准样
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控管理样检测任务数据,管理样、标准样
|
||||
*/
|
||||
BusinessQCManagementDataDO getBusinessQCManagementData(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控管理样检测任务数据,管理样、标准样分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控管理样检测任务数据,管理样、标准样分页
|
||||
*/
|
||||
PageResult<BusinessQCManagementDataDO> getBusinessQCManagementDataPage(BusinessQCManagementDataPageReqVO pageReqVO);
|
||||
|
||||
List<BusinessQCManagementDataDO> getBusinessQCManagementDataList(BusinessQCManagementDataReqVO reqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementDataMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控管理样检测任务数据,管理样、标准样 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class BusinessQCManagementDataServiceImpl implements BusinessQCManagementDataService {
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementDataMapper businessQCManagementDataMapper;
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementDataRespVO createBusinessQCManagementData(BusinessQCManagementDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
BusinessQCManagementDataDO businessQCManagementData = BeanUtils.toBean(createReqVO, BusinessQCManagementDataDO.class);
|
||||
businessQCManagementDataMapper.insert(businessQCManagementData);
|
||||
// 返回
|
||||
return BeanUtils.toBean(businessQCManagementData, BusinessQCManagementDataRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBusinessQCManagementData(BusinessQCManagementDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
BusinessQCManagementDataDO updateObj = BeanUtils.toBean(updateReqVO, BusinessQCManagementDataDO.class);
|
||||
businessQCManagementDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementData(Long id) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementDataExists(id);
|
||||
// 删除
|
||||
businessQCManagementDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementDataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementDataExists(ids);
|
||||
// 删除
|
||||
businessQCManagementDataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementDataExists(List<Long> ids) {
|
||||
List<BusinessQCManagementDataDO> list = businessQCManagementDataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementDataExists(Long id) {
|
||||
if (businessQCManagementDataMapper.selectById(id) == null) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementDataDO getBusinessQCManagementData(Long id) {
|
||||
return businessQCManagementDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<BusinessQCManagementDataDO> getBusinessQCManagementDataPage(BusinessQCManagementDataPageReqVO pageReqVO) {
|
||||
return businessQCManagementDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BusinessQCManagementDataDO> getBusinessQCManagementDataList(BusinessQCManagementDataReqVO reqVO) {
|
||||
return businessQCManagementDataMapper.selectList(reqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementParameterDataDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控样检测参数数据业务 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface BusinessQCManagementParameterDataService {
|
||||
|
||||
/**
|
||||
* 创建质控样检测参数数据业务
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
BusinessQCManagementParameterDataRespVO createBusinessQCManagementParameterData(@Valid BusinessQCManagementParameterDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控样检测参数数据业务
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateBusinessQCManagementParameterData(@Valid BusinessQCManagementParameterDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控样检测参数数据业务
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementParameterData(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控样检测参数数据业务
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementParameterDataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控样检测参数数据业务
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控样检测参数数据业务
|
||||
*/
|
||||
BusinessQCManagementParameterDataDO getBusinessQCManagementParameterData(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控样检测参数数据业务分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控样检测参数数据业务分页
|
||||
*/
|
||||
PageResult<BusinessQCManagementParameterDataDO> getBusinessQCManagementParameterDataPage(BusinessQCManagementParameterDataPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementParameterDataMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控样检测参数数据业务 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class BusinessQCManagementParameterDataServiceImpl implements BusinessQCManagementParameterDataService {
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementParameterDataMapper businessQCManagementParameterDataMapper;
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementParameterDataRespVO createBusinessQCManagementParameterData(BusinessQCManagementParameterDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
BusinessQCManagementParameterDataDO businessQCManagementParameterData = BeanUtils.toBean(createReqVO, BusinessQCManagementParameterDataDO.class);
|
||||
businessQCManagementParameterDataMapper.insert(businessQCManagementParameterData);
|
||||
// 返回
|
||||
return BeanUtils.toBean(businessQCManagementParameterData, BusinessQCManagementParameterDataRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBusinessQCManagementParameterData(BusinessQCManagementParameterDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementParameterDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
BusinessQCManagementParameterDataDO updateObj = BeanUtils.toBean(updateReqVO, BusinessQCManagementParameterDataDO.class);
|
||||
businessQCManagementParameterDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementParameterData(Long id) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementParameterDataExists(id);
|
||||
// 删除
|
||||
businessQCManagementParameterDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementParameterDataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementParameterDataExists(ids);
|
||||
// 删除
|
||||
businessQCManagementParameterDataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementParameterDataExists(List<Long> ids) {
|
||||
List<BusinessQCManagementParameterDataDO> list = businessQCManagementParameterDataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_PARAMETER_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementParameterDataExists(Long id) {
|
||||
if (businessQCManagementParameterDataMapper.selectById(id) == null) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_PARAMETER_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementParameterDataDO getBusinessQCManagementParameterData(Long id) {
|
||||
return businessQCManagementParameterDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<BusinessQCManagementParameterDataDO> getBusinessQCManagementParameterDataPage(BusinessQCManagementParameterDataPageReqVO pageReqVO) {
|
||||
return businessQCManagementParameterDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementProjectDataDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控样检测项目数据业务 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface BusinessQCManagementProjectDataService {
|
||||
|
||||
/**
|
||||
* 创建质控样检测项目数据业务
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
BusinessQCManagementProjectDataRespVO createBusinessQCManagementProjectData(@Valid BusinessQCManagementProjectDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控样检测项目数据业务
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateBusinessQCManagementProjectData(@Valid BusinessQCManagementProjectDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控样检测项目数据业务
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementProjectData(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控样检测项目数据业务
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteBusinessQCManagementProjectDataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控样检测项目数据业务
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控样检测项目数据业务
|
||||
*/
|
||||
BusinessQCManagementProjectDataDO getBusinessQCManagementProjectData(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控样检测项目数据业务分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控样检测项目数据业务分页
|
||||
*/
|
||||
PageResult<BusinessQCManagementProjectDataDO> getBusinessQCManagementProjectDataPage(BusinessQCManagementProjectDataPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementProjectDataMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控样检测项目数据业务 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class BusinessQCManagementProjectDataServiceImpl implements BusinessQCManagementProjectDataService {
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementProjectDataMapper businessQCManagementProjectDataMapper;
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementProjectDataRespVO createBusinessQCManagementProjectData(BusinessQCManagementProjectDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
BusinessQCManagementProjectDataDO businessQCManagementProjectData = BeanUtils.toBean(createReqVO, BusinessQCManagementProjectDataDO.class);
|
||||
businessQCManagementProjectDataMapper.insert(businessQCManagementProjectData);
|
||||
// 返回
|
||||
return BeanUtils.toBean(businessQCManagementProjectData, BusinessQCManagementProjectDataRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBusinessQCManagementProjectData(BusinessQCManagementProjectDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementProjectDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
BusinessQCManagementProjectDataDO updateObj = BeanUtils.toBean(updateReqVO, BusinessQCManagementProjectDataDO.class);
|
||||
businessQCManagementProjectDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementProjectData(Long id) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementProjectDataExists(id);
|
||||
// 删除
|
||||
businessQCManagementProjectDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBusinessQCManagementProjectDataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateBusinessQCManagementProjectDataExists(ids);
|
||||
// 删除
|
||||
businessQCManagementProjectDataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementProjectDataExists(List<Long> ids) {
|
||||
List<BusinessQCManagementProjectDataDO> list = businessQCManagementProjectDataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_PROJECT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateBusinessQCManagementProjectDataExists(Long id) {
|
||||
if (businessQCManagementProjectDataMapper.selectById(id) == null) {
|
||||
throw exception(BUSINESS_QC_MANAGEMENT_PROJECT_DATA_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessQCManagementProjectDataDO getBusinessQCManagementProjectData(Long id) {
|
||||
return businessQCManagementProjectDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<BusinessQCManagementProjectDataDO> getBusinessQCManagementProjectDataPage(BusinessQCManagementProjectDataPageReqVO pageReqVO) {
|
||||
return businessQCManagementProjectDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.zt.plat.module.qms.business.bus.service;
|
||||
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleProjectRespVO;
|
||||
|
||||
/**
|
||||
* <b>SampleAnalysisService</b>
|
||||
@@ -30,6 +29,13 @@ public interface SampleAnalysisService {
|
||||
*/
|
||||
void saveBatchSampleAnalysis(BusinessAssayTaskAnalysisSampleProjectRespVO vo);
|
||||
|
||||
/**
|
||||
* 根据分配任务id 获取任务分配单 分析样品项目及品控样品项目
|
||||
* @param businessAssayTaskId
|
||||
* @return
|
||||
*/
|
||||
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId);
|
||||
|
||||
/**
|
||||
* 根据任务单id提交分析数据
|
||||
* @param businessAssayTaskId 任务单id
|
||||
|
||||
@@ -23,22 +23,33 @@ import com.zt.plat.module.qms.business.bus.controller.vo.BatchSampleAnalysisColu
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayParameterDataReqVO;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayProjectAndParameterRespVO;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayProjectDataReqVO;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleAndQcProjectRespVO;
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessAssayTaskAnalysisSampleProjectRespVO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDetailDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayProjectDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDetailMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCProjectDataMapper;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.BusinessAssayTaskAnalysisDataRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectCoefficientRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectRangeRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigQCSampleMethodExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodProjectCoefficientDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodProjectRangeDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectCoefficientMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectRangeMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodMapper;
|
||||
import com.zt.plat.module.qms.common.data.dal.dataobject.DataCollectionDO;
|
||||
import com.zt.plat.module.qms.common.data.service.DataCollectionService;
|
||||
import com.zt.plat.module.qms.enums.QmsCommonConstant;
|
||||
@@ -67,6 +78,9 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
@Resource
|
||||
private ConfigAssayMethodProjectRangeMapper configAssayMethodProjectRangeMapper;
|
||||
|
||||
@Resource
|
||||
private ConfigAssayMethodProjectCoefficientMapper configAssayMethodProjectCoefficientMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessAssayTaskMapper businessAssayTaskMapper;
|
||||
|
||||
@@ -82,6 +96,18 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
@Resource
|
||||
private BusinessAssayParameterDataMapper businessAssayParameterDataMapper;
|
||||
|
||||
@Resource
|
||||
private ConfigQCSampleMethodMapper configQCSampleMethodMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCDataMapper businessQCDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCProjectDataMapper businessQCProjectDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCParameterDataMapper businessQCParameterDataMapper;
|
||||
|
||||
@Resource
|
||||
private DataCollectionService dataCollectionService;
|
||||
|
||||
@@ -180,6 +206,10 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
List<ConfigAssayMethodProjectRangeDO> configAssayMethodProjectRangeDOList = configAssayMethodProjectRangeMapper.selectList(new LambdaQueryWrapperX<ConfigAssayMethodProjectRangeDO>().eq(ConfigAssayMethodProjectRangeDO::getConfigAssayMethodId, businessAssayTaskDO.getConfigAssayMethodId()));
|
||||
businessAssayTaskAnalysisSampleProjectRespVO.setConfigAssayMethodProjectRangeList(BeanUtils.toBean(configAssayMethodProjectRangeDOList, ConfigAssayMethodProjectRangeRespVO.class));
|
||||
|
||||
//查询补正系数
|
||||
List<ConfigAssayMethodProjectCoefficientDO> configAssayMethodProjectCoefficientDOList = configAssayMethodProjectCoefficientMapper.selectList(new LambdaQueryWrapperX<ConfigAssayMethodProjectCoefficientDO>().eq(ConfigAssayMethodProjectCoefficientDO::getConfigAssayMethodId, businessAssayTaskDO.getConfigAssayMethodId()));
|
||||
businessAssayTaskAnalysisSampleProjectRespVO.setConfigAssayMethodProjectCoefficientList(BeanUtils.toBean(configAssayMethodProjectCoefficientDOList, ConfigAssayMethodProjectCoefficientRespVO.class));
|
||||
|
||||
return businessAssayTaskAnalysisSampleProjectRespVO;
|
||||
}
|
||||
|
||||
@@ -304,6 +334,50 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BusinessAssayTaskAnalysisSampleAndQcProjectRespVO batchSampleAndQcAnalysisByTaskId(Long businessAssayTaskId) {
|
||||
BusinessAssayTaskAnalysisSampleAndQcProjectRespVO businessAssayTaskAnalysisSampleAndQcProjectRespVO = new BusinessAssayTaskAnalysisSampleAndQcProjectRespVO();
|
||||
BusinessAssayTaskDO businessAssayTaskDO = businessAssayTaskMapper.selectById(businessAssayTaskId);
|
||||
if (businessAssayTaskDO == null) {
|
||||
throw new ServiceException(1_032_100_000, "未找到任务分配单");
|
||||
}
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setBusinessAssayTaskId(businessAssayTaskId);
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setBusinessAssayTasNo(businessAssayTaskDO.getTaskNo());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setBusinessAssayTasName(businessAssayTaskDO.getTaskName());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setAssayTime(businessAssayTaskDO.getAssayTime());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setConfigAssayMethodId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setDataCollectionId(businessAssayTaskDO.getFormDataCollectionId());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setFormValue(businessAssayTaskDO.getFormValue());
|
||||
|
||||
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodMapper.selectById(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setConfigAssayMethodName(configAssayMethodDO.getName());
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setDataCollectionKey(configAssayMethodDO.getDataCollectionKey());
|
||||
|
||||
|
||||
|
||||
|
||||
//查询区间范围
|
||||
List<ConfigAssayMethodProjectRangeDO> configAssayMethodProjectRangeDOList = configAssayMethodProjectRangeMapper.selectList(new LambdaQueryWrapperX<ConfigAssayMethodProjectRangeDO>().eq(ConfigAssayMethodProjectRangeDO::getConfigAssayMethodId, businessAssayTaskDO.getConfigAssayMethodId()));
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setConfigAssayMethodProjectRangeList(BeanUtils.toBean(configAssayMethodProjectRangeDOList, ConfigAssayMethodProjectRangeRespVO.class));
|
||||
|
||||
//查询补正系数
|
||||
List<ConfigAssayMethodProjectCoefficientDO> configAssayMethodProjectCoefficientDOList = configAssayMethodProjectCoefficientMapper.selectList(new LambdaQueryWrapperX<ConfigAssayMethodProjectCoefficientDO>().eq(ConfigAssayMethodProjectCoefficientDO::getConfigAssayMethodId, businessAssayTaskDO.getConfigAssayMethodId()));
|
||||
businessAssayTaskAnalysisSampleAndQcProjectRespVO.setConfigAssayMethodProjectCoefficientList(BeanUtils.toBean(configAssayMethodProjectCoefficientDOList, ConfigAssayMethodProjectCoefficientRespVO.class));
|
||||
|
||||
return businessAssayTaskAnalysisSampleAndQcProjectRespVO;
|
||||
}
|
||||
|
||||
private List<BusinessAssayTaskAnalysisDataRespVO> getQcAnalysis(BusinessAssayTaskDO businessAssayTaskDO) {
|
||||
List<BusinessAssayTaskAnalysisDataRespVO> list = new ArrayList<>();
|
||||
List<ConfigQCSampleMethodExtendRespVO> configQCSampleMethodList = configQCSampleMethodMapper.selectByConfigAssayMethodId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
List<BusinessQCDataDO> businessQCDataDOList = businessQCDataMapper.selectByBusinessAssayTaskId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
//businessQCProjectDataMapper.selectby
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void submitSampleAnalysisByTaskId(Long businessAssayTaskId) {
|
||||
String loginUserNickname = SecurityFrameworkUtils.getLoginUserNickname();
|
||||
|
||||
@@ -31,7 +31,12 @@ import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayReportDat
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDetailDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCCoefficientParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCManagementProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCParameterDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessQCProjectDataDO;
|
||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessSubSampleDO;
|
||||
@@ -41,7 +46,12 @@ import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayReportDataMap
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskDetailMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessAssayTaskMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementProjectDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCParameterDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCProjectDataMapper;
|
||||
import com.zt.plat.module.qms.business.bus.dal.mapper.BusinessSubSampleMapper;
|
||||
@@ -50,6 +60,8 @@ import com.zt.plat.module.qms.business.bus.liteflow.param.SampleTaskAssignMethod
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.param.SampleTaskAssignSampleParam;
|
||||
import com.zt.plat.module.qms.business.bus.liteflow.slot.SampleTaskAssignContext;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigAssayMethodProjectExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigQCSampleMethodExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigQCSampleMethodParameterExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.ConfigSubSampleMethodExtendRespVO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodProjectDO;
|
||||
@@ -57,6 +69,8 @@ import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigAssayMethodPr
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigAssayMethodProjectParameterMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodParameterMapper;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigSubSampleMethodMapper;
|
||||
import com.zt.plat.module.qms.business.dic.dal.mapper.DictionaryProjectMapper;
|
||||
import com.zt.plat.module.qms.core.code.SequenceUtil;
|
||||
@@ -121,13 +135,25 @@ public class SampleTaskAssignServiceImpl implements SampleTaskAssignService {
|
||||
private DictionaryProjectMapper dictionaryProjectMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCDataMapper businessQCDataMapper;
|
||||
private ConfigQCSampleMethodMapper configQCSampleMethodMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCProjectDataMapper businessQCProjectDataMapper;
|
||||
private ConfigQCSampleMethodParameterMapper configQCSampleMethodParameterMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCParameterDataMapper businessQCParameterDataMapper;
|
||||
private BusinessQCCoefficientDataMapper businessQCCoefficientDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCCoefficientParameterDataMapper businessQCCoefficientParameterDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementDataMapper businessQCManagementDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementProjectDataMapper businessQCManagementProjectDataMapper;
|
||||
|
||||
@Resource
|
||||
private BusinessQCManagementParameterDataMapper businessQCManagementParameterDataMapper;
|
||||
|
||||
@Override
|
||||
public List<AdminUserRespDTO> getAssignUserList() {
|
||||
@@ -455,77 +481,137 @@ public class SampleTaskAssignServiceImpl implements SampleTaskAssignService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void createQcSample(CreateQcSampleReqVO req) {
|
||||
List<BusinessQCProjectDataDO> businessQCProjectDataDOList = new ArrayList<>();
|
||||
List<BusinessQCParameterDataDO> businessQCParameterDataDOList = new ArrayList<>();
|
||||
List<BusinessQCManagementDataDO> businessQCManagementDataDOList = new ArrayList<>();
|
||||
List<BusinessQCManagementProjectDataDO> businessQCManagementProjectDataDOList = new ArrayList<>();
|
||||
List<BusinessQCManagementParameterDataDO> businessQCManagementParameterDataDOList = new ArrayList<>();
|
||||
|
||||
List<BusinessQCCoefficientDataDO> businessQCCoefficientDataDOList = new ArrayList<>();
|
||||
List<BusinessQCCoefficientParameterDataDO> businessQCCoefficientParameterDataDOList = new ArrayList<>();
|
||||
|
||||
//分配任务
|
||||
BusinessAssayTaskDO businessAssayTaskDO = businessAssayTaskMapper.selectById(req.getBusinessAssayTaskId());
|
||||
|
||||
//分析方法
|
||||
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodMapper.selectById(req.getConfigQCAssayMethodId());
|
||||
//分析项目
|
||||
List<ConfigAssayMethodProjectExtendRespVO> configAssayMethodProjectExtendRespList = configAssayMethodProjectMapper.selectByConfigAssayMethodId(req.getConfigQCAssayMethodId());
|
||||
//分析项目参数
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterList = configAssayMethodProjectParameterMapper.selectByConfigAssayMethodProjectId(req.getConfigQCAssayMethodId());
|
||||
//分析项目
|
||||
String assayProject = configAssayMethodProjectExtendRespList.stream().map(m -> m.getShowName()).collect(Collectors.joining(","));
|
||||
ConfigAssayMethodDO configAssayMethodDO = configAssayMethodMapper.selectById(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
|
||||
BusinessQCDataDO businessQCDataDO = new BusinessQCDataDO();
|
||||
businessQCDataDO.setId(IdWorker.getId());
|
||||
businessQCDataDO.setBusinessAssayTaskId(req.getBusinessAssayTaskId());
|
||||
businessQCDataDO.setConfigAssayMethodId(req.getConfigQCAssayMethodId());
|
||||
businessQCDataDO.setSampleName(req.getSampleName());
|
||||
// if (StringUtils.isNotBlank(configQCSampleMethodExtendRespVO.getCodeRule())) {
|
||||
// String codeSample = sequenceUtil.genCode(configQCSampleMethodExtendRespVO.getCodeRule());
|
||||
// businessQCDataDO.setSampleCode(codeSample);
|
||||
// }
|
||||
if (StringUtils.isNotBlank(req.getSampleCode())) {
|
||||
businessQCDataDO.setSampleCode(req.getSampleCode());
|
||||
}
|
||||
businessQCDataDO.setBusinessStandardSampleId(req.getBusinessStandardSampleId());
|
||||
businessQCDataDO.setDictionaryBusinessId(req.getDictionaryBusinessId());
|
||||
businessQCDataDO.setDictionaryBusinessKey(req.getDictionaryBusinessKey());
|
||||
businessQCDataDO.setAssayDepartmentId(configAssayMethodDO.getAssayDepartmentId());
|
||||
businessQCDataDO.setAssayDepartmentName(configAssayMethodDO.getAssayDepartmentName());
|
||||
businessQCDataDO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessQCDataDO.setAssayProject(assayProject);
|
||||
businessQCDataDO.setAssignTaskTime(businessAssayTaskDO.getTaskAssignTime());
|
||||
businessQCDataDO.setIsAssignTasked(QmsCommonConstant.YES);
|
||||
businessQCDataDO.setIsReported(QmsCommonConstant.NO);
|
||||
ConfigQCSampleMethodExtendRespVO configQCSampleMethod = configQCSampleMethodMapper.selectByConfigAssayMethodIdAndDictionaryBusinessKey(businessAssayTaskDO.getConfigAssayMethodId(), req.getDictionaryBusinessKey());
|
||||
|
||||
for (ConfigAssayMethodProjectExtendRespVO configAssayMethodProjectExtendRespVO : configAssayMethodProjectExtendRespList) {
|
||||
BusinessQCProjectDataDO businessQCProjectDataDO = new BusinessQCProjectDataDO();
|
||||
businessQCProjectDataDO.setId(IdWorker.getId());
|
||||
businessQCProjectDataDO.setBusinessQCDataId(businessQCDataDO.getId());
|
||||
businessQCProjectDataDO.setConfigAssayMethodProjectId(configAssayMethodProjectExtendRespVO.getId());
|
||||
businessQCProjectDataDO.setDictionaryProjectId(configAssayMethodProjectExtendRespVO.getDictionaryProjectId());
|
||||
businessQCProjectDataDO.setUsage(QmsCommonConstant.ASSAY_PROJECT_USAGE_QUALITY_CONTROL);
|
||||
businessQCProjectDataDO.setSymbol("=");
|
||||
businessQCProjectDataDO.setDataType(configAssayMethodProjectExtendRespVO.getDataType());
|
||||
businessQCProjectDataDO.setDecimalPosition(configAssayMethodProjectExtendRespVO.getDecimalPosition());
|
||||
businessQCProjectDataDO.setIsEnabled(configAssayMethodProjectExtendRespVO.getIsDefaultEnabled());
|
||||
if ("kby".equals(req.getDictionaryBusinessKey()) || "by".equals(req.getDictionaryBusinessKey())) {//空白样和标样
|
||||
|
||||
businessQCProjectDataDOList.add(businessQCProjectDataDO);
|
||||
BusinessQCCoefficientDataDO businessQCCoefficientDataDO = new BusinessQCCoefficientDataDO();
|
||||
businessQCCoefficientDataDO.setId(IdWorker.getId());
|
||||
businessQCCoefficientDataDO.setBusinessAssayTaskId(businessAssayTaskDO.getId());
|
||||
businessQCCoefficientDataDO.setConfigAssayMethodId(configQCSampleMethod.getConfigAssayMethodId());
|
||||
businessQCCoefficientDataDO.setSampleName(configQCSampleMethod.getDictionaryBusinessName());
|
||||
if (StringUtils.isNotBlank(req.getSampleName())) {
|
||||
businessQCCoefficientDataDO.setSampleName(req.getSampleName());
|
||||
}
|
||||
if (StringUtils.isNotBlank(req.getSampleCode())) {
|
||||
businessQCCoefficientDataDO.setSampleCode(req.getSampleCode());
|
||||
} else {
|
||||
if (StringUtils.isNotBlank(configQCSampleMethod.getCodeRule())) {
|
||||
String codeSample = sequenceUtil.genCode(configQCSampleMethod.getCodeRule());
|
||||
businessQCCoefficientDataDO.setSampleCode(codeSample);
|
||||
}
|
||||
}
|
||||
businessQCCoefficientDataDO.setDictionaryBusinessId(configQCSampleMethod.getDictionaryBusinessId());
|
||||
businessQCCoefficientDataDO.setDictionaryBusinessKey(configQCSampleMethod.getDictionaryBusinessKey());
|
||||
businessQCCoefficientDataDO.setAssayDepartmentId(configAssayMethodDO.getAssayDepartmentId());
|
||||
businessQCCoefficientDataDO.setAssayDepartmentName(configAssayMethodDO.getAssayDepartmentName());
|
||||
businessQCCoefficientDataDO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessQCCoefficientDataDO.setAssayProject("");
|
||||
businessQCCoefficientDataDO.setAssignTaskTime(businessAssayTaskDO.getTaskAssignTime());
|
||||
businessQCCoefficientDataDO.setIsAssignTasked(QmsCommonConstant.YES);
|
||||
businessQCCoefficientDataDO.setIsReported(QmsCommonConstant.NO);
|
||||
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterDoList = configAssayMethodProjectParameterList.stream().filter(f -> f.getConfigAssayMethodProjectId().equals(configAssayMethodProjectExtendRespVO.getId())).collect(Collectors.toList());
|
||||
for (ConfigAssayMethodProjectParameterDO configAssayMethodProjectParameterDO : configAssayMethodProjectParameterDoList) {
|
||||
BusinessQCParameterDataDO businessQCParameterDataDO = new BusinessQCParameterDataDO();
|
||||
businessQCParameterDataDO.setBusinessQCProjectDataId(businessQCProjectDataDO.getId());
|
||||
businessQCParameterDataDO.setConfigAssayMethodProjectParameterId(configAssayMethodProjectParameterDO.getId());
|
||||
businessQCParameterDataDO.setDictionaryParameterId(configAssayMethodProjectParameterDO.getDictionaryParameterId());
|
||||
businessQCParameterDataDO.setDataType(configAssayMethodProjectParameterDO.getDataType());
|
||||
businessQCParameterDataDO.setDecimalPosition(configAssayMethodProjectParameterDO.getDecimalPosition());
|
||||
businessQCCoefficientDataDOList.add(businessQCCoefficientDataDO);
|
||||
|
||||
List<ConfigQCSampleMethodParameterExtendRespVO> configQCSampleMethodParameterExtendRespVOs = configQCSampleMethodParameterMapper.selectByConfigQCSampleMethodId(configQCSampleMethod.getId());
|
||||
for (ConfigQCSampleMethodParameterExtendRespVO configQCSampleMethodParameterExtendRespVO : configQCSampleMethodParameterExtendRespVOs) {
|
||||
BusinessQCCoefficientParameterDataDO businessQCCoefficientParameterDataDO = new BusinessQCCoefficientParameterDataDO();
|
||||
businessQCCoefficientParameterDataDO.setBusinessQCCoefficientDataId(businessQCCoefficientDataDO.getId());
|
||||
businessQCCoefficientParameterDataDO.setConfigQCSampleMethodParameterId(configQCSampleMethodParameterExtendRespVO.getId());
|
||||
businessQCCoefficientParameterDataDO.setDictionaryParameterId(configQCSampleMethodParameterExtendRespVO.getDictionaryParameterId());
|
||||
businessQCCoefficientParameterDataDO.setDataType(configQCSampleMethodParameterExtendRespVO.getDataType());
|
||||
businessQCCoefficientParameterDataDO.setDecimalPosition(configQCSampleMethodParameterExtendRespVO.getDecimalPosition());
|
||||
businessQCCoefficientParameterDataDO.setValue(configQCSampleMethodParameterExtendRespVO.getDefaultValue());
|
||||
|
||||
businessQCCoefficientParameterDataDOList.add(businessQCCoefficientParameterDataDO);
|
||||
}
|
||||
|
||||
} else {//管理样与标准样
|
||||
//分析项目
|
||||
List<ConfigAssayMethodProjectExtendRespVO> configAssayMethodProjectExtendRespList = configAssayMethodProjectMapper.selectByConfigAssayMethodId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
//分析项目参数
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterList = configAssayMethodProjectParameterMapper.selectByConfigAssayMethodProjectId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
//分析项目
|
||||
String assayProject = configAssayMethodProjectExtendRespList.stream().map(m -> m.getShowName()).collect(Collectors.joining(","));
|
||||
|
||||
BusinessQCManagementDataDO businessQCManagementDataDO = new BusinessQCManagementDataDO();
|
||||
businessQCManagementDataDO.setId(IdWorker.getId());
|
||||
businessQCManagementDataDO.setBusinessAssayTaskId(req.getBusinessAssayTaskId());
|
||||
businessQCManagementDataDO.setConfigAssayMethodId(businessAssayTaskDO.getConfigAssayMethodId());
|
||||
businessQCManagementDataDO.setSampleName(req.getSampleName());
|
||||
if (StringUtils.isNotBlank(req.getSampleCode())) {
|
||||
businessQCManagementDataDO.setSampleCode(req.getSampleCode());
|
||||
}
|
||||
businessQCManagementDataDO.setBusinessStandardSampleId(req.getBusinessStandardSampleId());
|
||||
businessQCManagementDataDO.setDictionaryBusinessId(req.getDictionaryBusinessId());
|
||||
businessQCManagementDataDO.setDictionaryBusinessKey(req.getDictionaryBusinessKey());
|
||||
businessQCManagementDataDO.setAssayDepartmentId(configAssayMethodDO.getAssayDepartmentId());
|
||||
businessQCManagementDataDO.setAssayDepartmentName(configAssayMethodDO.getAssayDepartmentName());
|
||||
businessQCManagementDataDO.setAssayOperator(businessAssayTaskDO.getAssayOperator());
|
||||
businessQCManagementDataDO.setAssayProject(assayProject);
|
||||
businessQCManagementDataDO.setAssignTaskTime(businessAssayTaskDO.getTaskAssignTime());
|
||||
businessQCManagementDataDO.setIsAssignTasked(QmsCommonConstant.YES);
|
||||
businessQCManagementDataDO.setIsReported(QmsCommonConstant.NO);
|
||||
|
||||
businessQCManagementDataDOList.add(businessQCManagementDataDO);
|
||||
|
||||
for (ConfigAssayMethodProjectExtendRespVO configAssayMethodProjectExtendRespVO : configAssayMethodProjectExtendRespList) {
|
||||
BusinessQCManagementProjectDataDO businessQCManagementProjectDataDO = new BusinessQCManagementProjectDataDO();
|
||||
businessQCManagementProjectDataDO.setId(IdWorker.getId());
|
||||
businessQCManagementProjectDataDO.setBusinessQCManagementDataId(businessQCManagementDataDO.getId());
|
||||
businessQCManagementProjectDataDO.setConfigAssayMethodProjectId(configAssayMethodProjectExtendRespVO.getId());
|
||||
businessQCManagementProjectDataDO.setDictionaryProjectId(configAssayMethodProjectExtendRespVO.getDictionaryProjectId());
|
||||
businessQCManagementProjectDataDO.setUsage(QmsCommonConstant.ASSAY_PROJECT_USAGE_QUALITY_CONTROL);
|
||||
businessQCManagementProjectDataDO.setSymbol("=");
|
||||
businessQCManagementProjectDataDO.setDataType(configAssayMethodProjectExtendRespVO.getDataType());
|
||||
businessQCManagementProjectDataDO.setDecimalPosition(configAssayMethodProjectExtendRespVO.getDecimalPosition());
|
||||
businessQCManagementProjectDataDO.setIsEnabled(configAssayMethodProjectExtendRespVO.getIsDefaultEnabled());
|
||||
|
||||
businessQCManagementProjectDataDOList.add(businessQCManagementProjectDataDO);
|
||||
|
||||
List<ConfigAssayMethodProjectParameterDO> configAssayMethodProjectParameterDoList = configAssayMethodProjectParameterList.stream().filter(f -> f.getConfigAssayMethodProjectId().equals(configAssayMethodProjectExtendRespVO.getId())).collect(Collectors.toList());
|
||||
for (ConfigAssayMethodProjectParameterDO configAssayMethodProjectParameterDO : configAssayMethodProjectParameterDoList) {
|
||||
BusinessQCManagementParameterDataDO businessQCManagementParameterDataDO = new BusinessQCManagementParameterDataDO();
|
||||
businessQCManagementParameterDataDO.setBusinessQCManagementProjectDataId(businessQCManagementProjectDataDO.getId());
|
||||
businessQCManagementParameterDataDO.setConfigAssayMethodProjectParameterId(configAssayMethodProjectParameterDO.getId());
|
||||
businessQCManagementParameterDataDO.setDictionaryParameterId(configAssayMethodProjectParameterDO.getDictionaryParameterId());
|
||||
businessQCManagementParameterDataDO.setDataType(configAssayMethodProjectParameterDO.getDataType());
|
||||
businessQCManagementParameterDataDO.setDecimalPosition(configAssayMethodProjectParameterDO.getDecimalPosition());
|
||||
|
||||
businessQCManagementParameterDataDOList.add(businessQCManagementParameterDataDO);
|
||||
}
|
||||
|
||||
businessQCParameterDataDOList.add(businessQCParameterDataDO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
businessQCDataMapper.insert(businessQCDataDO);
|
||||
if (CollUtil.isNotEmpty(businessQCProjectDataDOList)) {
|
||||
businessQCProjectDataMapper.insertBatch(businessQCProjectDataDOList);
|
||||
if (CollUtil.isNotEmpty(businessQCManagementDataDOList)) {
|
||||
businessQCManagementDataMapper.insertBatch(businessQCManagementDataDOList);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(businessQCParameterDataDOList)) {
|
||||
businessQCParameterDataMapper.insertBatch(businessQCParameterDataDOList);
|
||||
if (CollUtil.isNotEmpty(businessQCManagementProjectDataDOList)) {
|
||||
businessQCManagementProjectDataMapper.insertBatch(businessQCManagementProjectDataDOList);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(businessQCManagementParameterDataDOList)) {
|
||||
businessQCManagementParameterDataMapper.insertBatch(businessQCManagementParameterDataDOList);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(businessQCCoefficientDataDOList)) {
|
||||
businessQCCoefficientDataMapper.insertBatch(businessQCCoefficientDataDOList);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(businessQCCoefficientParameterDataDOList)) {
|
||||
businessQCCoefficientParameterDataMapper.insertBatch(businessQCCoefficientParameterDataDOList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigQCSampleMethodParameterDO;
|
||||
import com.zt.plat.module.qms.business.config.service.ConfigQCSampleMethodParameterService;
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - 质控样检测方法参数配置")
|
||||
@RestController
|
||||
@RequestMapping("/qms/config-QC-sample-method-parameter")
|
||||
@Validated
|
||||
public class ConfigQCSampleMethodParameterController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private ConfigQCSampleMethodParameterService configQCSampleMethodParameterService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建质控样检测方法参数配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:create')")
|
||||
public CommonResult<ConfigQCSampleMethodParameterRespVO> createConfigQCSampleMethodParameter(@Valid @RequestBody ConfigQCSampleMethodParameterSaveReqVO createReqVO) {
|
||||
return success(configQCSampleMethodParameterService.createConfigQCSampleMethodParameter(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新质控样检测方法参数配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:update')")
|
||||
public CommonResult<Boolean> updateConfigQCSampleMethodParameter(@Valid @RequestBody ConfigQCSampleMethodParameterSaveReqVO updateReqVO) {
|
||||
configQCSampleMethodParameterService.updateConfigQCSampleMethodParameter(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除质控样检测方法参数配置")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:delete')")
|
||||
public CommonResult<Boolean> deleteConfigQCSampleMethodParameter(@RequestParam("id") Long id) {
|
||||
configQCSampleMethodParameterService.deleteConfigQCSampleMethodParameter(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除质控样检测方法参数配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:delete')")
|
||||
public CommonResult<Boolean> deleteConfigQCSampleMethodParameterList(@RequestBody BatchDeleteReqVO req) {
|
||||
configQCSampleMethodParameterService.deleteConfigQCSampleMethodParameterListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得质控样检测方法参数配置")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:query')")
|
||||
public CommonResult<ConfigQCSampleMethodParameterRespVO> getConfigQCSampleMethodParameter(@RequestParam("id") Long id) {
|
||||
ConfigQCSampleMethodParameterDO configQCSampleMethodParameter = configQCSampleMethodParameterService.getConfigQCSampleMethodParameter(id);
|
||||
return success(BeanUtils.toBean(configQCSampleMethodParameter, ConfigQCSampleMethodParameterRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得质控样检测方法参数配置分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:query')")
|
||||
public CommonResult<PageResult<ConfigQCSampleMethodParameterRespVO>> getConfigQCSampleMethodParameterPage(@Valid ConfigQCSampleMethodParameterPageReqVO pageReqVO) {
|
||||
PageResult<ConfigQCSampleMethodParameterDO> pageResult = configQCSampleMethodParameterService.getConfigQCSampleMethodParameterPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ConfigQCSampleMethodParameterRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出质控样检测方法参数配置 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:config-QC-sample-method-parameter:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportConfigQCSampleMethodParameterExcel(@Valid ConfigQCSampleMethodParameterPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<ConfigQCSampleMethodParameterDO> list = configQCSampleMethodParameterService.getConfigQCSampleMethodParameterPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "质控样检测方法参数配置.xls", "数据", ConfigQCSampleMethodParameterRespVO.class,
|
||||
BeanUtils.toBean(list, ConfigQCSampleMethodParameterRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.zt.plat.module.qms.business.bus.controller.vo.BatchSampleAnalysisColumnRespVO;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 分析数据
|
||||
*/
|
||||
@Data
|
||||
public class BusinessAssayTaskAnalysisDataRespVO {
|
||||
|
||||
/** 分析类型 **/
|
||||
private String analysisType;
|
||||
|
||||
/** 排序号 **/
|
||||
private Integer sortNo;
|
||||
|
||||
|
||||
/** 分析的列 **/
|
||||
private List<BatchSampleAnalysisColumnRespVO> columns;
|
||||
|
||||
/** 分析的数据 **/
|
||||
private List<Map<String, Object>> datas;
|
||||
}
|
||||
@@ -8,6 +8,4 @@ public class ConfigQCSampleMethodExtendRespVO extends ConfigQCSampleMethodRespVO
|
||||
private String dictionaryBusinessName;
|
||||
|
||||
private String configAssayMethodName;
|
||||
|
||||
private String configQCAssayMethodName;
|
||||
}
|
||||
|
||||
@@ -22,9 +22,6 @@ public class ConfigQCSampleMethodPageReqVO extends PageParam {
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "质控样检测方法配置ID", example = "17090")
|
||||
private Long configQCAssayMethodId;
|
||||
|
||||
@Schema(description = "编码规则")
|
||||
private String codeRule;
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ConfigQCSampleMethodParameterExtendRespVO extends ConfigQCSampleMethodParameterRespVO {
|
||||
|
||||
@Schema(description = "参数序号")
|
||||
private Integer dictionaryParameterNo;
|
||||
|
||||
@Schema(description = "名称", example = "王五")
|
||||
private String dictionaryParameterName;
|
||||
|
||||
@Schema(description = "键值")
|
||||
private String dictionaryParameterKey;
|
||||
|
||||
@Schema(description = "检测单位ID,UNT表", example = "20894")
|
||||
private Long dictionaryParameterUnitId;
|
||||
|
||||
@Schema(description = "单位")
|
||||
private String dictionaryParameterUnit;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
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.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测方法参数配置分页 Request VO")
|
||||
@Data
|
||||
public class ConfigQCSampleMethodParameterPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检测方法与质控样类型配置ID", example = "28109")
|
||||
private Long configQCSampleMethodId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", example = "29135")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间", example = "1")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "默认值")
|
||||
private String defaultValue;
|
||||
|
||||
@Schema(description = "是否允许为空")
|
||||
private Integer isNull;
|
||||
|
||||
@Schema(description = "计算公式")
|
||||
private String formula;
|
||||
|
||||
@Schema(description = "pc界面是否显示")
|
||||
private Integer isShow;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "版本")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测方法参数配置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ConfigQCSampleMethodParameterRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26251")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测方法与质控样类型配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28109")
|
||||
@ExcelProperty("检测方法与质控样类型配置ID")
|
||||
private Long configQCSampleMethodId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "29135")
|
||||
@ExcelProperty("参数ID,字典表【T_DIC_PRM】")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
@ExcelProperty("小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "默认值")
|
||||
@ExcelProperty("默认值")
|
||||
private String defaultValue;
|
||||
|
||||
@Schema(description = "是否允许为空", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否允许为空")
|
||||
private Integer isNull;
|
||||
|
||||
@Schema(description = "计算公式")
|
||||
@ExcelProperty("计算公式")
|
||||
private String formula;
|
||||
|
||||
@Schema(description = "pc界面是否显示", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("pc界面是否显示")
|
||||
private Integer isShow;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
@ExcelProperty("排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("版本")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.zt.plat.module.qms.business.config.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 质控样检测方法参数配置新增/修改 Request VO")
|
||||
@Data
|
||||
public class ConfigQCSampleMethodParameterSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26251")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检测方法与质控样类型配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28109")
|
||||
@NotNull(message = "检测方法与质控样类型配置ID不能为空")
|
||||
private Long configQCSampleMethodId;
|
||||
|
||||
@Schema(description = "参数ID,字典表【T_DIC_PRM】", requiredMode = Schema.RequiredMode.REQUIRED, example = "29135")
|
||||
@NotNull(message = "参数ID,字典表【T_DIC_PRM】不能为空")
|
||||
private Long dictionaryParameterId;
|
||||
|
||||
@Schema(description = "数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotEmpty(message = "数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间不能为空")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "小数位")
|
||||
private Integer decimalPosition;
|
||||
|
||||
@Schema(description = "默认值")
|
||||
private String defaultValue;
|
||||
|
||||
@Schema(description = "是否允许为空", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否允许为空不能为空")
|
||||
private Integer isNull;
|
||||
|
||||
@Schema(description = "计算公式")
|
||||
private String formula;
|
||||
|
||||
@Schema(description = "pc界面是否显示", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "pc界面是否显示不能为空")
|
||||
private Integer isShow;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "版本不能为空")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -28,10 +28,6 @@ public class ConfigQCSampleMethodRespVO {
|
||||
@ExcelProperty("质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "质控样检测方法配置ID", example = "17090")
|
||||
@ExcelProperty("质控样检测方法配置ID")
|
||||
private Long configQCAssayMethodId;
|
||||
|
||||
@Schema(description = "编码规则", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("编码规则")
|
||||
private String codeRule;
|
||||
|
||||
@@ -23,9 +23,6 @@ public class ConfigQCSampleMethodSaveReqVO {
|
||||
@Schema(description = "质控类型_Key,字典表【T_DIC_BSN】质控类型:空白样、管理样、标准样、标样")
|
||||
private String dictionaryBusinessKey;
|
||||
|
||||
@Schema(description = "质控样检测方法配置ID", example = "17090")
|
||||
private Long configQCAssayMethodId;
|
||||
|
||||
@Schema(description = "编码规则", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "编码规则不能为空")
|
||||
private String codeRule;
|
||||
|
||||
@@ -47,11 +47,6 @@ public class ConfigQCSampleMethodDO extends BusinessBaseDO {
|
||||
@TableField("DIC_BSN_KY")
|
||||
private String dictionaryBusinessKey;
|
||||
/**
|
||||
* 质控样检测方法配置ID
|
||||
*/
|
||||
@TableField("CFG_QC_ASY_MTHD_ID")
|
||||
private Long configQCAssayMethodId;
|
||||
/**
|
||||
* 编码规则
|
||||
*/
|
||||
@TableField("CD_RUL")
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.zt.plat.module.qms.business.config.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 质控样检测方法参数配置 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("t_cfg_qc_smp_mthd_prm")
|
||||
@KeySequence("t_cfg_qc_smp_mthd_prm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class ConfigQCSampleMethodParameterDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 检测方法与质控样类型配置ID
|
||||
*/
|
||||
@TableField("CFG_QC_SMP_MTHD_ID")
|
||||
private Long configQCSampleMethodId;
|
||||
/**
|
||||
* 参数ID,字典表【T_DIC_PRM】
|
||||
*/
|
||||
@TableField("DIC_PRM_ID")
|
||||
private Long dictionaryParameterId;
|
||||
/**
|
||||
* 数据类型,【字典】【jy_sample_data_type】字符串,整数,小数,日期,时间
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 小数位
|
||||
*/
|
||||
@TableField("DEC_POS")
|
||||
private Integer decimalPosition;
|
||||
/**
|
||||
* 默认值
|
||||
*/
|
||||
@TableField("DFT_VAL")
|
||||
private String defaultValue;
|
||||
/**
|
||||
* 是否允许为空
|
||||
*/
|
||||
@TableField("IS_NLL")
|
||||
private Integer isNull;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
@TableField("FMU")
|
||||
private String formula;
|
||||
/**
|
||||
* pc界面是否显示
|
||||
*/
|
||||
@TableField("IS_SHW")
|
||||
private Integer isShow;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@TableField("SRT_NO")
|
||||
private Integer sortNo;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
@TableField("VER")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -26,7 +26,6 @@ public interface ConfigQCSampleMethodMapper extends BaseMapperX<ConfigQCSampleMe
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getConfigAssayMethodId, reqVO.getConfigAssayMethodId())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getDictionaryBusinessId, reqVO.getDictionaryBusinessId())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getDictionaryBusinessKey, reqVO.getDictionaryBusinessKey())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getConfigQCAssayMethodId, reqVO.getConfigQCAssayMethodId())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getCodeRule, reqVO.getCodeRule())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getDefaultCount, reqVO.getDefaultCount())
|
||||
.eqIfPresent(ConfigQCSampleMethodDO::getTaskMinimumCount, reqVO.getTaskMinimumCount())
|
||||
@@ -43,10 +42,8 @@ public interface ConfigQCSampleMethodMapper extends BaseMapperX<ConfigQCSampleMe
|
||||
default List<ConfigQCSampleMethodExtendRespVO> selectByConfigAssayMethodId(Long configAssayMethodId) {
|
||||
return selectJoinList(ConfigQCSampleMethodExtendRespVO.class, new MPJLambdaWrapperX<ConfigQCSampleMethodDO>()
|
||||
.leftJoin(DictionaryBusinessDO.class, DictionaryBusinessDO::getId, ConfigQCSampleMethodDO::getDictionaryBusinessId)
|
||||
.leftJoin(ConfigAssayMethodDO.class, ConfigAssayMethodDO::getId, ConfigQCSampleMethodDO::getConfigQCAssayMethodId)
|
||||
.selectAll(ConfigQCSampleMethodDO.class)
|
||||
.selectAs(DictionaryBusinessDO::getName, ConfigQCSampleMethodExtendRespVO::getDictionaryBusinessName)
|
||||
.selectAs(ConfigAssayMethodDO::getName, ConfigQCSampleMethodExtendRespVO::getConfigQCAssayMethodName)
|
||||
.eq(ConfigQCSampleMethodDO::getConfigAssayMethodId, configAssayMethodId));
|
||||
}
|
||||
|
||||
@@ -54,11 +51,18 @@ public interface ConfigQCSampleMethodMapper extends BaseMapperX<ConfigQCSampleMe
|
||||
default List<ConfigQCSampleMethodExtendRespVO> selectByConfigAssayMethodIds(List<Long> configAssayMethodIds) {
|
||||
return selectJoinList(ConfigQCSampleMethodExtendRespVO.class, new MPJLambdaWrapperX<ConfigQCSampleMethodDO>()
|
||||
.leftJoin(DictionaryBusinessDO.class, DictionaryBusinessDO::getId, ConfigQCSampleMethodDO::getDictionaryBusinessId)
|
||||
.leftJoin(ConfigAssayMethodDO.class, ConfigAssayMethodDO::getId, ConfigQCSampleMethodDO::getConfigQCAssayMethodId)
|
||||
.selectAll(ConfigQCSampleMethodDO.class)
|
||||
.selectAs(DictionaryBusinessDO::getName, ConfigQCSampleMethodExtendRespVO::getDictionaryBusinessName)
|
||||
.selectAs(ConfigAssayMethodDO::getName, ConfigQCSampleMethodExtendRespVO::getConfigQCAssayMethodName)
|
||||
.in(ConfigQCSampleMethodDO::getConfigAssayMethodId, configAssayMethodIds));
|
||||
}
|
||||
|
||||
default ConfigQCSampleMethodExtendRespVO selectByConfigAssayMethodIdAndDictionaryBusinessKey(Long configAssayMethodId, String dictionaryBusinessKey) {
|
||||
return selectJoinOne(ConfigQCSampleMethodExtendRespVO.class, new MPJLambdaWrapperX<ConfigQCSampleMethodDO>()
|
||||
.leftJoin(DictionaryBusinessDO.class, DictionaryBusinessDO::getId, ConfigQCSampleMethodDO::getDictionaryBusinessId)
|
||||
.selectAll(ConfigQCSampleMethodDO.class)
|
||||
.selectAs(DictionaryBusinessDO::getName, ConfigQCSampleMethodExtendRespVO::getDictionaryBusinessName)
|
||||
.eq(ConfigQCSampleMethodDO::getConfigAssayMethodId, configAssayMethodId)
|
||||
.eq(ConfigQCSampleMethodDO::getDictionaryBusinessKey, dictionaryBusinessKey));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.zt.plat.module.qms.business.config.dal.mapper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.query.MPJLambdaWrapperX;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigQCSampleMethodParameterDO;
|
||||
import com.zt.plat.module.qms.business.dic.dal.dataobject.DictionaryParameterDO;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 质控样检测方法参数配置 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface ConfigQCSampleMethodParameterMapper extends BaseMapperX<ConfigQCSampleMethodParameterDO> {
|
||||
|
||||
default PageResult<ConfigQCSampleMethodParameterDO> selectPage(ConfigQCSampleMethodParameterPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<ConfigQCSampleMethodParameterDO>()
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getConfigQCSampleMethodId, reqVO.getConfigQCSampleMethodId())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getDictionaryParameterId, reqVO.getDictionaryParameterId())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getDecimalPosition, reqVO.getDecimalPosition())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getDefaultValue, reqVO.getDefaultValue())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getIsNull, reqVO.getIsNull())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getFormula, reqVO.getFormula())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getIsShow, reqVO.getIsShow())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getSortNo, reqVO.getSortNo())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.betweenIfPresent(ConfigQCSampleMethodParameterDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getRemark, reqVO.getRemark())
|
||||
.eqIfPresent(ConfigQCSampleMethodParameterDO::getVersion, reqVO.getVersion())
|
||||
.orderByDesc(ConfigQCSampleMethodParameterDO::getId));
|
||||
}
|
||||
|
||||
default List<ConfigQCSampleMethodParameterExtendRespVO> selectByConfigQCSampleMethodId(Long configQCSampleMethodId) {
|
||||
return selectJoinList(ConfigQCSampleMethodParameterExtendRespVO.class, new MPJLambdaWrapperX<ConfigQCSampleMethodParameterDO>()
|
||||
.leftJoin(DictionaryParameterDO.class, DictionaryParameterDO::getId, ConfigQCSampleMethodParameterDO::getDictionaryParameterId)
|
||||
.selectAll(ConfigQCSampleMethodParameterDO.class)
|
||||
.selectAs(DictionaryParameterDO::getKey, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterKey)
|
||||
.selectAs(DictionaryParameterDO::getName, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterName)
|
||||
.selectAs(DictionaryParameterDO::getNo, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterNo)
|
||||
.selectAs(DictionaryParameterDO::getUnitId, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterUnitId)
|
||||
.selectAs(DictionaryParameterDO::getUnit, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterUnit)
|
||||
.eq(ConfigQCSampleMethodParameterDO::getConfigQCSampleMethodId, configQCSampleMethodId));
|
||||
}
|
||||
|
||||
default List<ConfigQCSampleMethodParameterExtendRespVO> selectByConfigQCSampleMethodIds(List<Long> configQCSampleMethodIds) {
|
||||
return selectJoinList(ConfigQCSampleMethodParameterExtendRespVO.class, new MPJLambdaWrapperX<ConfigQCSampleMethodParameterDO>()
|
||||
.leftJoin(DictionaryParameterDO.class, DictionaryParameterDO::getId, ConfigQCSampleMethodParameterDO::getDictionaryParameterId)
|
||||
.selectAll(ConfigQCSampleMethodParameterDO.class)
|
||||
.selectAs(DictionaryParameterDO::getKey, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterKey)
|
||||
.selectAs(DictionaryParameterDO::getName, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterName)
|
||||
.selectAs(DictionaryParameterDO::getNo, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterNo)
|
||||
.selectAs(DictionaryParameterDO::getUnitId, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterUnitId)
|
||||
.selectAs(DictionaryParameterDO::getUnit, ConfigQCSampleMethodParameterExtendRespVO::getDictionaryParameterUnit)
|
||||
.in(ConfigQCSampleMethodParameterDO::getConfigQCSampleMethodId, configQCSampleMethodIds));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.business.config.service;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigQCSampleMethodParameterDO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 质控样检测方法参数配置 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface ConfigQCSampleMethodParameterService {
|
||||
|
||||
/**
|
||||
* 创建质控样检测方法参数配置
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
ConfigQCSampleMethodParameterRespVO createConfigQCSampleMethodParameter(@Valid ConfigQCSampleMethodParameterSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新质控样检测方法参数配置
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateConfigQCSampleMethodParameter(@Valid ConfigQCSampleMethodParameterSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除质控样检测方法参数配置
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteConfigQCSampleMethodParameter(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除质控样检测方法参数配置
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteConfigQCSampleMethodParameterListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得质控样检测方法参数配置
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 质控样检测方法参数配置
|
||||
*/
|
||||
ConfigQCSampleMethodParameterDO getConfigQCSampleMethodParameter(Long id);
|
||||
|
||||
/**
|
||||
* 获得质控样检测方法参数配置分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 质控样检测方法参数配置分页
|
||||
*/
|
||||
PageResult<ConfigQCSampleMethodParameterDO> getConfigQCSampleMethodParameterPage(ConfigQCSampleMethodParameterPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.zt.plat.module.qms.business.config.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.qms.business.config.controller.vo.*;
|
||||
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigQCSampleMethodParameterDO;
|
||||
import com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodParameterMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 质控样检测方法参数配置 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class ConfigQCSampleMethodParameterServiceImpl implements ConfigQCSampleMethodParameterService {
|
||||
|
||||
@Resource
|
||||
private ConfigQCSampleMethodParameterMapper configQCSampleMethodParameterMapper;
|
||||
|
||||
@Override
|
||||
public ConfigQCSampleMethodParameterRespVO createConfigQCSampleMethodParameter(ConfigQCSampleMethodParameterSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
ConfigQCSampleMethodParameterDO configQCSampleMethodParameter = BeanUtils.toBean(createReqVO, ConfigQCSampleMethodParameterDO.class);
|
||||
configQCSampleMethodParameterMapper.insert(configQCSampleMethodParameter);
|
||||
// 返回
|
||||
return BeanUtils.toBean(configQCSampleMethodParameter, ConfigQCSampleMethodParameterRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateConfigQCSampleMethodParameter(ConfigQCSampleMethodParameterSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateConfigQCSampleMethodParameterExists(updateReqVO.getId());
|
||||
// 更新
|
||||
ConfigQCSampleMethodParameterDO updateObj = BeanUtils.toBean(updateReqVO, ConfigQCSampleMethodParameterDO.class);
|
||||
configQCSampleMethodParameterMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteConfigQCSampleMethodParameter(Long id) {
|
||||
// 校验存在
|
||||
validateConfigQCSampleMethodParameterExists(id);
|
||||
// 删除
|
||||
configQCSampleMethodParameterMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteConfigQCSampleMethodParameterListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateConfigQCSampleMethodParameterExists(ids);
|
||||
// 删除
|
||||
configQCSampleMethodParameterMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateConfigQCSampleMethodParameterExists(List<Long> ids) {
|
||||
List<ConfigQCSampleMethodParameterDO> list = configQCSampleMethodParameterMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(CONFIG_QC_SAMPLE_METHOD_PARAMETER_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateConfigQCSampleMethodParameterExists(Long id) {
|
||||
if (configQCSampleMethodParameterMapper.selectById(id) == null) {
|
||||
throw exception(CONFIG_QC_SAMPLE_METHOD_PARAMETER_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConfigQCSampleMethodParameterDO getConfigQCSampleMethodParameter(Long id) {
|
||||
return configQCSampleMethodParameterMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<ConfigQCSampleMethodParameterDO> getConfigQCSampleMethodParameterPage(ConfigQCSampleMethodParameterPageReqVO pageReqVO) {
|
||||
return configQCSampleMethodParameterMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCCoefficientParameterDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementParameterDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.bus.dal.mapper.BusinessQCManagementProjectDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.qms.business.config.dal.mapper.ConfigQCSampleMethodParameterMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user