质控样业务数据
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.controller.admin;
|
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||||
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSamplePageReqVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleRespVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleSaveReqVO;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -92,6 +89,12 @@ public class BusinessStandardSampleController implements BusinessControllerMarke
|
|||||||
return success(BeanUtils.toBean(pageResult, BusinessStandardSampleRespVO.class));
|
return success(BeanUtils.toBean(pageResult, BusinessStandardSampleRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getBusinessStandardSampleByConfigQCSampleMethodId")
|
||||||
|
public CommonResult<?> getBusinessStandardSampleByConfigQCSampleMethodId(@RequestParam("configQCSampleMethodId") Long configQCSampleMethodId) {
|
||||||
|
List<BusinessStandardSampleExtendRespVO> list = businessStandardSampleService.getBusinessStandardSampleByConfigQCSampleMethodId(configQCSampleMethodId);
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出标准样业务 Excel")
|
@Operation(summary = "导出标准样业务 Excel")
|
||||||
//@PreAuthorize("@ss.hasPermission('qms:business-standard-sample:export')")
|
//@PreAuthorize("@ss.hasPermission('qms:business-standard-sample:export')")
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessStandardSampleProjectDO;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class BusinessStandardSampleExtendRespVO extends BusinessStandardSampleRespVO {
|
||||||
|
|
||||||
|
private Long configQCSampleMethodId;
|
||||||
|
|
||||||
|
private String standardSampleProjects;
|
||||||
|
|
||||||
|
public String getStandardSampleProjects() {
|
||||||
|
if (CollUtil.isNotEmpty(this.standardSampleProjectList)) {
|
||||||
|
return this.standardSampleProjectList.stream().map(m -> m.getDictionaryProjectName() + "(" + m.getDictionaryProjectUnit() + "):" + m.getStandardValue()).collect(Collectors.joining(","));
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<BusinessStandardSampleProjectDO> standardSampleProjectList;
|
||||||
|
}
|
||||||
@@ -9,18 +9,21 @@ import java.time.LocalDateTime;
|
|||||||
|
|
||||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样业务分页 Request VO")
|
@Schema(description = "管理后台 - 定值样业务分页 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BusinessStandardSamplePageReqVO extends PageParam {
|
public class BusinessStandardSamplePageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "标准样类型ID", example = "12799")
|
@Schema(description = "ID路径")
|
||||||
private Long configStandardSampleTypeId;
|
private String idPath;
|
||||||
|
|
||||||
@Schema(description = "标准样类型名称", example = "李四")
|
@Schema(description = "上级ID", example = "9719")
|
||||||
private String configStandardSampleTypeName;
|
private Long parentId;
|
||||||
|
|
||||||
@Schema(description = "标准样编号")
|
@Schema(description = "名称,一级:管理样、标准样、标样;二级:具体定值样", example = "赵六")
|
||||||
private String standardSampleCode;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "编号")
|
||||||
|
private String code;
|
||||||
|
|
||||||
@Schema(description = "是否启用,1-启用,0-不启用")
|
@Schema(description = "是否启用,1-启用,0-不启用")
|
||||||
private Integer isUse;
|
private Integer isUse;
|
||||||
|
|||||||
@@ -9,17 +9,17 @@ import java.time.LocalDateTime;
|
|||||||
|
|
||||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样检测项目业务分页 Request VO")
|
@Schema(description = "管理后台 - 定值样检测项目业务分页 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BusinessStandardSampleProjectPageReqVO extends PageParam {
|
public class BusinessStandardSampleProjectPageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "标准样ID", example = "10572")
|
@Schema(description = "定值样ID", example = "17499")
|
||||||
private Long businessStandardSampleId;
|
private Long businessStandardSampleId;
|
||||||
|
|
||||||
@Schema(description = "标准样元素配置ID", example = "17543")
|
@Schema(description = "定值样元素配置ID", example = "10892")
|
||||||
private Long configStandardSampleProjectId;
|
private Long configStandardSampleProjectId;
|
||||||
|
|
||||||
@Schema(description = "检测项目ID", example = "19425")
|
@Schema(description = "检测项目ID", example = "7881")
|
||||||
private Long dictionaryProjectId;
|
private Long dictionaryProjectId;
|
||||||
|
|
||||||
@Schema(description = "检测项目名称", example = "张三")
|
@Schema(description = "检测项目名称", example = "张三")
|
||||||
|
|||||||
@@ -7,24 +7,24 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import com.alibaba.excel.annotation.*;
|
import com.alibaba.excel.annotation.*;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样检测项目业务 Response VO")
|
@Schema(description = "管理后台 - 定值样检测项目业务 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class BusinessStandardSampleProjectRespVO {
|
public class BusinessStandardSampleProjectRespVO {
|
||||||
|
|
||||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8746")
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30840")
|
||||||
@ExcelProperty("ID")
|
@ExcelProperty("ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "标准样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10572")
|
@Schema(description = "定值样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17499")
|
||||||
@ExcelProperty("标准样ID")
|
@ExcelProperty("定值样ID")
|
||||||
private Long businessStandardSampleId;
|
private Long businessStandardSampleId;
|
||||||
|
|
||||||
@Schema(description = "标准样元素配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17543")
|
@Schema(description = "定值样元素配置ID", example = "10892")
|
||||||
@ExcelProperty("标准样元素配置ID")
|
@ExcelProperty("定值样元素配置ID")
|
||||||
private Long configStandardSampleProjectId;
|
private Long configStandardSampleProjectId;
|
||||||
|
|
||||||
@Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19425")
|
@Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7881")
|
||||||
@ExcelProperty("检测项目ID")
|
@ExcelProperty("检测项目ID")
|
||||||
private Long dictionaryProjectId;
|
private Long dictionaryProjectId;
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ public class BusinessStandardSampleProjectRespVO {
|
|||||||
@ExcelProperty("排序号")
|
@ExcelProperty("排序号")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
|
|
||||||
@Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "所属部门")
|
||||||
@ExcelProperty("所属部门")
|
@ExcelProperty("所属部门")
|
||||||
private String systemDepartmentCode;
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
|||||||
@@ -5,22 +5,21 @@ import lombok.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import jakarta.validation.constraints.*;
|
import jakarta.validation.constraints.*;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样检测项目业务新增/修改 Request VO")
|
@Schema(description = "管理后台 - 定值样检测项目业务新增/修改 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BusinessStandardSampleProjectSaveReqVO {
|
public class BusinessStandardSampleProjectSaveReqVO {
|
||||||
|
|
||||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8746")
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30840")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "标准样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10572")
|
@Schema(description = "定值样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17499")
|
||||||
@NotNull(message = "标准样ID不能为空")
|
@NotNull(message = "定值样ID不能为空")
|
||||||
private Long businessStandardSampleId;
|
private Long businessStandardSampleId;
|
||||||
|
|
||||||
@Schema(description = "标准样元素配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17543")
|
@Schema(description = "定值样元素配置ID", example = "10892")
|
||||||
@NotNull(message = "标准样元素配置ID不能为空")
|
|
||||||
private Long configStandardSampleProjectId;
|
private Long configStandardSampleProjectId;
|
||||||
|
|
||||||
@Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19425")
|
@Schema(description = "检测项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7881")
|
||||||
@NotNull(message = "检测项目ID不能为空")
|
@NotNull(message = "检测项目ID不能为空")
|
||||||
private Long dictionaryProjectId;
|
private Long dictionaryProjectId;
|
||||||
|
|
||||||
@@ -44,7 +43,7 @@ public class BusinessStandardSampleProjectSaveReqVO {
|
|||||||
@Schema(description = "排序号")
|
@Schema(description = "排序号")
|
||||||
private Integer sortNo;
|
private Integer sortNo;
|
||||||
|
|
||||||
@Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "所属部门")
|
||||||
private String systemDepartmentCode;
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
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 BusinessStandardSampleReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "ID路径")
|
||||||
|
private String idPath;
|
||||||
|
|
||||||
|
@Schema(description = "上级ID", example = "9719")
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
@Schema(description = "名称,一级:管理样、标准样、标样;二级:具体定值样", example = "赵六")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "编号")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@Schema(description = "是否启用,1-启用,0-不启用")
|
||||||
|
private Integer isUse;
|
||||||
|
|
||||||
|
@Schema(description = "是否发布,1-是,0-否")
|
||||||
|
private Integer isPublish;
|
||||||
|
|
||||||
|
@Schema(description = "所属部门")
|
||||||
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -7,26 +7,30 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import com.alibaba.excel.annotation.*;
|
import com.alibaba.excel.annotation.*;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样业务 Response VO")
|
@Schema(description = "管理后台 - 定值样业务 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class BusinessStandardSampleRespVO {
|
public class BusinessStandardSampleRespVO {
|
||||||
|
|
||||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28533")
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22309")
|
||||||
@ExcelProperty("ID")
|
@ExcelProperty("ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "标准样类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12799")
|
@Schema(description = "ID路径")
|
||||||
@ExcelProperty("标准样类型ID")
|
@ExcelProperty("ID路径")
|
||||||
private Long configStandardSampleTypeId;
|
private String idPath;
|
||||||
|
|
||||||
@Schema(description = "标准样类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
@Schema(description = "上级ID", example = "9719")
|
||||||
@ExcelProperty("标准样类型名称")
|
@ExcelProperty("上级ID")
|
||||||
private String configStandardSampleTypeName;
|
private Long parentId;
|
||||||
|
|
||||||
@Schema(description = "标准样编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "名称,一级:管理样、标准样、标样;二级:具体定值样", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||||
@ExcelProperty("标准样编号")
|
@ExcelProperty("名称,一级:管理样、标准样、标样;二级:具体定值样")
|
||||||
private String standardSampleCode;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("编号")
|
||||||
|
private String code;
|
||||||
|
|
||||||
@Schema(description = "是否启用,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "是否启用,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@ExcelProperty("是否启用,1-启用,0-不启用")
|
@ExcelProperty("是否启用,1-启用,0-不启用")
|
||||||
@@ -36,7 +40,7 @@ public class BusinessStandardSampleRespVO {
|
|||||||
@ExcelProperty("是否发布,1-是,0-否")
|
@ExcelProperty("是否发布,1-是,0-否")
|
||||||
private Integer isPublish;
|
private Integer isPublish;
|
||||||
|
|
||||||
@Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "所属部门")
|
||||||
@ExcelProperty("所属部门")
|
@ExcelProperty("所属部门")
|
||||||
private String systemDepartmentCode;
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
|||||||
@@ -5,24 +5,26 @@ import lombok.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import jakarta.validation.constraints.*;
|
import jakarta.validation.constraints.*;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 标准样业务新增/修改 Request VO")
|
@Schema(description = "管理后台 - 定值样业务新增/修改 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BusinessStandardSampleSaveReqVO {
|
public class BusinessStandardSampleSaveReqVO {
|
||||||
|
|
||||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28533")
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22309")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "标准样类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12799")
|
@Schema(description = "ID路径")
|
||||||
@NotNull(message = "标准样类型ID不能为空")
|
private String idPath;
|
||||||
private Long configStandardSampleTypeId;
|
|
||||||
|
|
||||||
@Schema(description = "标准样类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
@Schema(description = "上级ID", example = "9719")
|
||||||
@NotEmpty(message = "标准样类型名称不能为空")
|
private Long parentId;
|
||||||
private String configStandardSampleTypeName;
|
|
||||||
|
|
||||||
@Schema(description = "标准样编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "名称,一级:管理样、标准样、标样;二级:具体定值样", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||||
@NotEmpty(message = "标准样编号不能为空")
|
@NotEmpty(message = "名称,一级:管理样、标准样、标样;二级:具体定值样不能为空")
|
||||||
private String standardSampleCode;
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "编号不能为空")
|
||||||
|
private String code;
|
||||||
|
|
||||||
@Schema(description = "是否启用,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "是否启用,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "是否启用,1-启用,0-不启用不能为空")
|
@NotNull(message = "是否启用,1-启用,0-不启用不能为空")
|
||||||
@@ -32,7 +34,7 @@ public class BusinessStandardSampleSaveReqVO {
|
|||||||
@NotNull(message = "是否发布,1-是,0-否不能为空")
|
@NotNull(message = "是否发布,1-是,0-否不能为空")
|
||||||
private Integer isPublish;
|
private Integer isPublish;
|
||||||
|
|
||||||
@Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "所属部门")
|
||||||
private String systemDepartmentCode;
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ public class CreateQcSampleReqVO {
|
|||||||
@Schema(description = "样品名称", example = "张三")
|
@Schema(description = "样品名称", example = "张三")
|
||||||
private String sampleName;
|
private String sampleName;
|
||||||
|
|
||||||
|
@Schema(description = "样品编号", example = "张三")
|
||||||
|
private String sampleCode;
|
||||||
|
|
||||||
@Schema(description = "指派单ID", example = "29117")
|
@Schema(description = "指派单ID", example = "29117")
|
||||||
private Long businessAssayTaskId;
|
private Long businessAssayTaskId;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import java.util.*;
|
|||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
/**
|
/**
|
||||||
* 标准样业务 DO
|
* 定值样业务 DO
|
||||||
*
|
*
|
||||||
* @author 后台管理
|
* @author 后台管理
|
||||||
*/
|
*/
|
||||||
@@ -32,20 +32,25 @@ public class BusinessStandardSampleDO extends BusinessBaseDO {
|
|||||||
@TableId(type = IdType.ASSIGN_ID)
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 标准样类型ID
|
* ID路径
|
||||||
*/
|
*/
|
||||||
@TableField("CFG_STD_SMP_TP_ID")
|
@TableField("ID_PATH")
|
||||||
private Long configStandardSampleTypeId;
|
private String idPath;
|
||||||
/**
|
/**
|
||||||
* 标准样类型名称
|
* 上级ID
|
||||||
*/
|
*/
|
||||||
@TableField("CFG_STD_SMP_TP_NAME")
|
@TableField("PRN_ID")
|
||||||
private String configStandardSampleTypeName;
|
private Long parentId;
|
||||||
/**
|
/**
|
||||||
* 标准样编号
|
* 名称,一级:管理样、标准样、标样;二级:具体定值样
|
||||||
*/
|
*/
|
||||||
@TableField("STD_SMP_CD")
|
@TableField("NAME")
|
||||||
private String standardSampleCode;
|
private String name;
|
||||||
|
/**
|
||||||
|
* 编号
|
||||||
|
*/
|
||||||
|
@TableField("CD")
|
||||||
|
private String code;
|
||||||
/**
|
/**
|
||||||
* 是否启用,1-启用,0-不启用
|
* 是否启用,1-启用,0-不启用
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import java.util.*;
|
|||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
/**
|
/**
|
||||||
* 标准样检测项目业务 DO
|
* 定值样检测项目业务 DO
|
||||||
*
|
*
|
||||||
* @author 后台管理
|
* @author 后台管理
|
||||||
*/
|
*/
|
||||||
@@ -32,12 +32,12 @@ public class BusinessStandardSampleProjectDO extends BusinessBaseDO {
|
|||||||
@TableId(type = IdType.ASSIGN_ID)
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 标准样ID
|
* 定值样ID
|
||||||
*/
|
*/
|
||||||
@TableField("BSN_STD_SMP_ID")
|
@TableField("BSN_STD_SMP_ID")
|
||||||
private Long businessStandardSampleId;
|
private Long businessStandardSampleId;
|
||||||
/**
|
/**
|
||||||
* 标准样元素配置ID
|
* 定值样元素配置ID
|
||||||
*/
|
*/
|
||||||
@TableField("CFG_STD_SMP_PRJ_ID")
|
@TableField("CFG_STD_SMP_PRJ_ID")
|
||||||
private Long configStandardSampleProjectId;
|
private Long configStandardSampleProjectId;
|
||||||
|
|||||||
@@ -2,14 +2,21 @@ package com.zt.plat.module.qms.business.bus.dal.mapper;
|
|||||||
|
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
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.LambdaQueryWrapperX;
|
||||||
|
import com.zt.plat.framework.mybatis.core.query.MPJLambdaWrapperX;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
import com.zt.plat.module.qms.business.bus.controller.vo.*;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSamplePageReqVO;
|
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSamplePageReqVO;
|
||||||
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessStandardSampleDO;
|
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessStandardSampleDO;
|
||||||
|
import com.zt.plat.module.qms.business.bus.dal.dataobject.BusinessStandardSampleProjectDO;
|
||||||
|
import com.zt.plat.module.qms.business.config.dal.dataobject.ConfigQCStandardSampleDO;
|
||||||
|
import com.zt.plat.module.qms.enums.QmsCommonConstant;
|
||||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标准样业务 Mapper
|
* 定值样业务 Mapper
|
||||||
*
|
*
|
||||||
* @author 后台管理
|
* @author 后台管理
|
||||||
*/
|
*/
|
||||||
@@ -18,9 +25,10 @@ public interface BusinessStandardSampleMapper extends BaseMapperX<BusinessStanda
|
|||||||
|
|
||||||
default PageResult<BusinessStandardSampleDO> selectPage(BusinessStandardSamplePageReqVO reqVO) {
|
default PageResult<BusinessStandardSampleDO> selectPage(BusinessStandardSamplePageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessStandardSampleDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<BusinessStandardSampleDO>()
|
||||||
.eqIfPresent(BusinessStandardSampleDO::getConfigStandardSampleTypeId, reqVO.getConfigStandardSampleTypeId())
|
.eqIfPresent(BusinessStandardSampleDO::getIdPath, reqVO.getIdPath())
|
||||||
.likeIfPresent(BusinessStandardSampleDO::getConfigStandardSampleTypeName, reqVO.getConfigStandardSampleTypeName())
|
.eqIfPresent(BusinessStandardSampleDO::getParentId, reqVO.getParentId())
|
||||||
.eqIfPresent(BusinessStandardSampleDO::getStandardSampleCode, reqVO.getStandardSampleCode())
|
.likeIfPresent(BusinessStandardSampleDO::getName, reqVO.getName())
|
||||||
|
.eqIfPresent(BusinessStandardSampleDO::getCode, reqVO.getCode())
|
||||||
.eqIfPresent(BusinessStandardSampleDO::getIsUse, reqVO.getIsUse())
|
.eqIfPresent(BusinessStandardSampleDO::getIsUse, reqVO.getIsUse())
|
||||||
.eqIfPresent(BusinessStandardSampleDO::getIsPublish, reqVO.getIsPublish())
|
.eqIfPresent(BusinessStandardSampleDO::getIsPublish, reqVO.getIsPublish())
|
||||||
.eqIfPresent(BusinessStandardSampleDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
.eqIfPresent(BusinessStandardSampleDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||||
@@ -29,4 +37,16 @@ public interface BusinessStandardSampleMapper extends BaseMapperX<BusinessStanda
|
|||||||
.orderByDesc(BusinessStandardSampleDO::getId));
|
.orderByDesc(BusinessStandardSampleDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
default List<BusinessStandardSampleExtendRespVO> selectByConfigQCSampleMethodId(Long configQCSampleMethodId) {
|
||||||
|
return selectJoinList(BusinessStandardSampleExtendRespVO.class, new MPJLambdaWrapperX<BusinessStandardSampleDO>()
|
||||||
|
.rightJoin(ConfigQCStandardSampleDO.class, ConfigQCStandardSampleDO::getBusinessStandardSampleId, BusinessStandardSampleDO::getId)
|
||||||
|
.selectAll(BusinessStandardSampleDO.class)
|
||||||
|
.selectAs(ConfigQCStandardSampleDO::getConfigQCSampleMethodId, BusinessStandardSampleExtendRespVO::getConfigQCSampleMethodId)
|
||||||
|
.selectCollection(BusinessStandardSampleProjectDO.class, BusinessStandardSampleExtendRespVO::getStandardSampleProjectList)
|
||||||
|
.leftJoin(BusinessStandardSampleProjectDO.class, BusinessStandardSampleProjectDO::getBusinessStandardSampleId, BusinessStandardSampleDO::getId)
|
||||||
|
.eq(ConfigQCStandardSampleDO::getConfigQCSampleMethodId, configQCSampleMethodId)
|
||||||
|
.eq(BusinessStandardSampleDO::getIsPublish, QmsCommonConstant.YES)
|
||||||
|
.eq(BusinessStandardSampleDO::getIsUse, QmsCommonConstant.YES));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -2,9 +2,6 @@ package com.zt.plat.module.qms.business.bus.service;
|
|||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSamplePageReqVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleRespVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleSaveReqVO;
|
|
||||||
import jakarta.validation.*;
|
import jakarta.validation.*;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
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.controller.vo.*;
|
||||||
@@ -63,4 +60,6 @@ public interface BusinessStandardSampleService {
|
|||||||
*/
|
*/
|
||||||
PageResult<BusinessStandardSampleDO> getBusinessStandardSamplePage(BusinessStandardSamplePageReqVO pageReqVO);
|
PageResult<BusinessStandardSampleDO> getBusinessStandardSamplePage(BusinessStandardSamplePageReqVO pageReqVO);
|
||||||
|
|
||||||
|
List<BusinessStandardSampleExtendRespVO> getBusinessStandardSampleByConfigQCSampleMethodId(Long configQCSampleMethodId);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.service;
|
package com.zt.plat.module.qms.business.bus.service;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSamplePageReqVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleRespVO;
|
|
||||||
import com.zt.plat.module.qms.business.bus.controller.vo.BusinessStandardSampleSaveReqVO;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -90,4 +88,9 @@ public class BusinessStandardSampleServiceImpl implements BusinessStandardSample
|
|||||||
return businessStandardSampleMapper.selectPage(pageReqVO);
|
return businessStandardSampleMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BusinessStandardSampleExtendRespVO> getBusinessStandardSampleByConfigQCSampleMethodId(Long configQCSampleMethodId) {
|
||||||
|
return businessStandardSampleMapper.selectByConfigQCSampleMethodId(configQCSampleMethodId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -478,6 +478,9 @@ public class SampleTaskAssignServiceImpl implements SampleTaskAssignService {
|
|||||||
// String codeSample = sequenceUtil.genCode(configQCSampleMethodExtendRespVO.getCodeRule());
|
// String codeSample = sequenceUtil.genCode(configQCSampleMethodExtendRespVO.getCodeRule());
|
||||||
// businessQCDataDO.setSampleCode(codeSample);
|
// businessQCDataDO.setSampleCode(codeSample);
|
||||||
// }
|
// }
|
||||||
|
if (StringUtils.isNotBlank(req.getSampleCode())) {
|
||||||
|
businessQCDataDO.setSampleCode(req.getSampleCode());
|
||||||
|
}
|
||||||
businessQCDataDO.setBusinessStandardSampleId(req.getBusinessStandardSampleId());
|
businessQCDataDO.setBusinessStandardSampleId(req.getBusinessStandardSampleId());
|
||||||
businessQCDataDO.setDictionaryBusinessId(req.getDictionaryBusinessId());
|
businessQCDataDO.setDictionaryBusinessId(req.getDictionaryBusinessId());
|
||||||
businessQCDataDO.setDictionaryBusinessKey(req.getDictionaryBusinessKey());
|
businessQCDataDO.setDictionaryBusinessKey(req.getDictionaryBusinessKey());
|
||||||
|
|||||||
Reference in New Issue
Block a user