Compare commits
10 Commits
lims_dev
...
06be110e5d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06be110e5d | ||
|
|
ae0f0d79c5 | ||
| 93cf620376 | |||
| be89a965d8 | |||
|
|
8fa69a0906 | ||
|
|
3bb70a94f2 | ||
| 433ac9124b | |||
| 3285e6050a | |||
|
|
c68c7cfbf2 | ||
| 04596350b6 |
@@ -54,6 +54,7 @@ public interface ErrorCodeConstants {
|
|||||||
ErrorCode CONFIG_REPORT_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "报表类型配置不存在");
|
ErrorCode CONFIG_REPORT_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "报表类型配置不存在");
|
||||||
ErrorCode CONFIG_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测项目配置不存在");
|
ErrorCode CONFIG_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测项目配置不存在");
|
||||||
ErrorCode CONFIG_ENTRUST_SOURCE_NOT_EXISTS = new ErrorCode(1_032_050_000, "检验委托来源配置不存在");
|
ErrorCode CONFIG_ENTRUST_SOURCE_NOT_EXISTS = new ErrorCode(1_032_050_000, "检验委托来源配置不存在");
|
||||||
|
ErrorCode CONFIG_ENTRUST_SOURCE_SAMPLE_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "检验委托来源与样品类型配置不存在");
|
||||||
|
|
||||||
ErrorCode CONFIG_BASE_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "主样配置不存在");
|
ErrorCode CONFIG_BASE_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "主样配置不存在");
|
||||||
ErrorCode CONFIG_ASSAY_METHOD_PROJECT_PARAMETER_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测方法分析项目参数配置不存在");
|
ErrorCode CONFIG_ASSAY_METHOD_PROJECT_PARAMETER_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测方法分析项目参数配置不存在");
|
||||||
@@ -149,9 +150,15 @@ public interface ErrorCodeConstants {
|
|||||||
ErrorCode MATERIAL_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材不存在");
|
ErrorCode MATERIAL_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材不存在");
|
||||||
ErrorCode MATERIAL_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材大类不存在");
|
ErrorCode MATERIAL_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材大类不存在");
|
||||||
|
|
||||||
|
|
||||||
ErrorCode MATERIAL_LIFECYCLE_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程明细不存在");
|
ErrorCode MATERIAL_LIFECYCLE_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程明细不存在");
|
||||||
ErrorCode MATERIAL_LIFECYCLE_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程不存在");
|
ErrorCode MATERIAL_LIFECYCLE_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程不存在");
|
||||||
|
|
||||||
|
ErrorCode MATERIAL_BATCH_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料批次不存在");
|
||||||
|
ErrorCode MATERIAL_BATCH_ASSIGN_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料批次分发不存在");
|
||||||
|
ErrorCode MATERIAL_INVENTORY_INBOUND_NOT_EXISTS = new ErrorCode(1_032_150_000, "入库,出库不存在");
|
||||||
|
ErrorCode MATERIAL_INVENTORY_INBOUND_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "入库明细,出库明细等不存在");
|
||||||
|
|
||||||
|
|
||||||
/*================================= tx 1_032_200_000 ~ 1_032_249_999 ==================================*/
|
/*================================= tx 1_032_200_000 ~ 1_032_249_999 ==================================*/
|
||||||
|
|
||||||
@@ -159,6 +166,11 @@ public interface ErrorCodeConstants {
|
|||||||
|
|
||||||
|
|
||||||
/*================================= office 办公 1_032_250_000 ~ 1_032_299_999 ==================================*/
|
/*================================= office 办公 1_032_250_000 ~ 1_032_299_999 ==================================*/
|
||||||
|
ErrorCode SUPPLIER_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商不存在");
|
||||||
|
ErrorCode SUPPLIER_PROPERTIES_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商属性不存在");
|
||||||
|
ErrorCode SUPPLIER_EVALUATION_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商评价不存在");
|
||||||
|
ErrorCode SUPPLIER_EVALUATION_AT_NOT_EXISTS = new ErrorCode(1_032_250_000, "供应商评价关系不存在");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*================================= dzj 大质检 1_032_300_000 ~ 1_032_349_999 ==================================*/
|
/*================================= dzj 大质检 1_032_300_000 ~ 1_032_349_999 ==================================*/
|
||||||
|
|||||||
@@ -107,6 +107,15 @@ public interface QmsCommonConstant {
|
|||||||
/** 检验委托 **/
|
/** 检验委托 **/
|
||||||
String ENTRUST_INSPECTION = "entrust_inspection";
|
String ENTRUST_INSPECTION = "entrust_inspection";
|
||||||
|
|
||||||
|
/** 委托样品类型: 委检样 **/
|
||||||
|
String ENTRUST_COMMISSION_INSPECTION_SAMPLE = "commissionInspectionSample";
|
||||||
|
|
||||||
|
/** 委托样品类型: 商检分析样 **/
|
||||||
|
String ENTRUST_INSPECTION_ANALYSIS_SAMPLE = "inspectionAnalysisSample";
|
||||||
|
|
||||||
|
/** 委托样品类型: 商检综合 **/
|
||||||
|
String ENTRUST_COMPREHENSIVE_INSPECTION_SAMPLE = "comprehensiveInspectionSample";
|
||||||
|
|
||||||
/** 中心收样 **/
|
/** 中心收样 **/
|
||||||
String FLOW_NODE_CENTER_RECEIVE = "flw_center_receive";
|
String FLOW_NODE_CENTER_RECEIVE = "flw_center_receive";
|
||||||
|
|
||||||
@@ -179,6 +188,10 @@ public interface QmsCommonConstant {
|
|||||||
/** 检验完成状态-未完成 **/
|
/** 检验完成状态-未完成 **/
|
||||||
String UNCHECKED = "unchecked";
|
String UNCHECKED = "unchecked";
|
||||||
|
|
||||||
|
/** 数据回报状态 未回报 **/
|
||||||
|
String UNRETURNED = "unreturned";
|
||||||
|
|
||||||
|
|
||||||
/** 自动 **/
|
/** 自动 **/
|
||||||
String AUTOMATIC = "automatic";
|
String AUTOMATIC = "automatic";
|
||||||
|
|
||||||
@@ -194,4 +207,7 @@ public interface QmsCommonConstant {
|
|||||||
|
|
||||||
/** 允许提交 **/
|
/** 允许提交 **/
|
||||||
String ALLOW_SUBMIT = "allow_submit";
|
String ALLOW_SUBMIT = "allow_submit";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,12 +31,6 @@ public class SampleAnalysisAuditController implements BusinessControllerMarker {
|
|||||||
@Resource
|
@Resource
|
||||||
private SampleAnalysisAuditService sampleAnalysisAuditService;
|
private SampleAnalysisAuditService sampleAnalysisAuditService;
|
||||||
|
|
||||||
@GetMapping("/crossAuditByTaskId")
|
|
||||||
public CommonResult<?> crossAuditByTaskId(Long businessAssayTaskId) {
|
|
||||||
JSONObject result = sampleAnalysisAuditService.crossAuditByTaskId(businessAssayTaskId);
|
|
||||||
return success(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 交叉审核
|
* 交叉审核
|
||||||
* @return
|
* @return
|
||||||
|
|||||||
@@ -60,14 +60,6 @@ public class SampleEntrustController implements BusinessControllerMarker {
|
|||||||
return success(sampleEntrustRegistration);
|
return success(sampleEntrustRegistration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/reportDetail")
|
|
||||||
@Operation(summary = "委托单详情数据")
|
|
||||||
public CommonResult<?> reportDetail(@RequestParam("id") Long id) {
|
|
||||||
JSONObject jsonObject = sampleEntrustService.reportDetail(id);
|
|
||||||
return success(jsonObject);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
@Operation(summary = "修改委托登记")
|
@Operation(summary = "修改委托登记")
|
||||||
public CommonResult<?> update(@Valid @RequestBody SampleEntrustParam sampleEntrustParam) {
|
public CommonResult<?> update(@Valid @RequestBody SampleEntrustParam sampleEntrustParam) {
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
package com.zt.plat.module.qms.business.bus.controller.admin;
|
||||||
|
|
||||||
|
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
|
import com.zt.plat.module.qms.business.bus.service.SampleAnalysisAuditService;
|
||||||
|
import com.zt.plat.module.qms.business.bus.service.SampleEntrustService;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报表数据查询接口,不继承BusinessControllerMarker
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/qms/bus/sample/reporting-data-query")
|
||||||
|
public class SampleReportDataQueryController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SampleEntrustService sampleEntrustService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SampleAnalysisAuditService sampleAnalysisAuditService;
|
||||||
|
|
||||||
|
@GetMapping("/entrust-report-detail")
|
||||||
|
@Operation(summary = "委托单详情数据")
|
||||||
|
public CommonResult<?> reportDetail(@RequestParam("id") Long id) {
|
||||||
|
JSONObject jsonObject = sampleEntrustService.reportDetail(id);
|
||||||
|
return success(jsonObject);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "委托单详情数据")
|
||||||
|
@GetMapping("/crossAuditByTaskId")
|
||||||
|
public CommonResult<?> crossAuditByTaskId(Long businessAssayTaskId) {
|
||||||
|
JSONObject result = sampleAnalysisAuditService.crossAuditByTaskId(businessAssayTaskId);
|
||||||
|
return success(result);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,6 +40,13 @@ public class SampleTaskAssignController implements BusinessControllerMarker {
|
|||||||
return success(list);
|
return success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(description = "根据用户id获取用户信息")
|
||||||
|
@GetMapping("/getUserInfoById")
|
||||||
|
public CommonResult<?> getUserInfoById(Long userId) {
|
||||||
|
AdminUserRespDTO userRespDTO = sampleTaskAssignService.getUserInfoById(userId);
|
||||||
|
return success(userRespDTO);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/getAssaySampleList")
|
@GetMapping("/getAssaySampleList")
|
||||||
public CommonResult<?> getAssaySampleList(BusinessAssayTaskDataReqVO reqVO) {
|
public CommonResult<?> getAssaySampleList(BusinessAssayTaskDataReqVO reqVO) {
|
||||||
List<UnAssignTaskedSubSampleRespVO> list = sampleTaskAssignService.getAssaySampleList(reqVO);
|
List<UnAssignTaskedSubSampleRespVO> list = sampleTaskAssignService.getAssaySampleList(reqVO);
|
||||||
|
|||||||
@@ -105,4 +105,15 @@ public class BusinessAssayTaskDataReqVO {
|
|||||||
@Schema(description = "样品状态")
|
@Schema(description = "样品状态")
|
||||||
private String sampleStatus;
|
private String sampleStatus;
|
||||||
|
|
||||||
|
@Schema(description = "检测方法配置名称")
|
||||||
|
private String configAssayMethodName;
|
||||||
|
|
||||||
|
@Schema(description = "样品编号")
|
||||||
|
private String sampleCode;
|
||||||
|
|
||||||
|
@Schema(description = "分析编号")
|
||||||
|
private String sampleAssayCode;
|
||||||
|
|
||||||
|
@Schema(description = "归库编号")
|
||||||
|
private String sampleReturnCode;
|
||||||
}
|
}
|
||||||
@@ -64,5 +64,16 @@ public class BusinessHandoverRecordSubPageReqVO extends PageParam {
|
|||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
//==============扩展字段================
|
||||||
|
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
|
@Schema(description = "分析编号")
|
||||||
|
private String sampleAssayCode;
|
||||||
|
|
||||||
|
@Schema(description = "归库编号")
|
||||||
|
private String sampleReturnCode;
|
||||||
|
|
||||||
|
@Schema(description = "样品名称")
|
||||||
|
private String sampleName;
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@ import java.util.*;
|
|||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import com.alibaba.excel.annotation.*;
|
import com.alibaba.excel.annotation.*;
|
||||||
|
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 委检登记业务 Response VO")
|
@Schema(description = "管理后台 - 委检登记业务 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@@ -144,10 +145,12 @@ public class BusinessSampleEntrustRegistrationRespVO {
|
|||||||
@ExcelProperty("数据校验状态,success-数据校验成功、fail-数据校验失败")
|
@ExcelProperty("数据校验状态,success-数据校验成功、fail-数据校验失败")
|
||||||
private String dataCheckStatus;
|
private String dataCheckStatus;
|
||||||
|
|
||||||
|
@Dict(dicCode = "entrust_assay_status")
|
||||||
@Schema(description = "检验状态,unchecked-未检验;checked-已检验", example = "2")
|
@Schema(description = "检验状态,unchecked-未检验;checked-已检验", example = "2")
|
||||||
@ExcelProperty("检验状态,unchecked-未检验;checked-已检验")
|
@ExcelProperty("检验状态,unchecked-未检验;checked-已检验")
|
||||||
private String assayStatus;
|
private String assayStatus;
|
||||||
|
|
||||||
|
@Dict(dicCode = "entrust_data_status")
|
||||||
@Schema(description = "数据回报状态,unreturned-未回报;returned-已回报", example = "1")
|
@Schema(description = "数据回报状态,unreturned-未回报;returned-已回报", example = "1")
|
||||||
@ExcelProperty("数据回报状态,unreturned-未回报;returned-已回报")
|
@ExcelProperty("数据回报状态,unreturned-未回报;returned-已回报")
|
||||||
private String dataStatus;
|
private String dataStatus;
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ public interface BusinessHandoverRecordSubMapper extends BaseMapperX<BusinessHan
|
|||||||
.eqIfPresent(BusinessHandoverRecordSubDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
.eqIfPresent(BusinessHandoverRecordSubDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||||
.betweenIfPresent(BusinessHandoverRecordSubDO::getCreateTime, reqVO.getCreateTime())
|
.betweenIfPresent(BusinessHandoverRecordSubDO::getCreateTime, reqVO.getCreateTime())
|
||||||
.eqIfPresent(BusinessHandoverRecordSubDO::getRemark, reqVO.getRemark())
|
.eqIfPresent(BusinessHandoverRecordSubDO::getRemark, reqVO.getRemark())
|
||||||
|
.eqIfPresent(BusinessSubSampleDO::getSampleAssayCode, reqVO.getSampleAssayCode())
|
||||||
|
.eqIfPresent(BusinessSubSampleDO::getSampleReturnCode, reqVO.getSampleReturnCode())
|
||||||
|
.likeIfPresent(BusinessSubSampleDO::getSampleName, reqVO.getSampleName())
|
||||||
.eqIfPresent(BusinessHandoverRecordSubDO::getDeptId, reqVO.getDeptId())
|
.eqIfPresent(BusinessHandoverRecordSubDO::getDeptId, reqVO.getDeptId())
|
||||||
.orderByDesc(BusinessHandoverRecordSubDO::getCreateTime));
|
.orderByDesc(BusinessHandoverRecordSubDO::getCreateTime));
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user