Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -106,6 +106,14 @@ public class BusinessSubSampleController implements BusinessControllerMarker {
|
|||||||
return success(pageResult);
|
return success(pageResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page-analysis-group")
|
||||||
|
@Operation(summary = "获得子样分析部门分页")
|
||||||
|
//@PreAuthorize("@ss.hasPermission('qms:business-sub-sample:query')")
|
||||||
|
public CommonResult<PageResult<BusinessSubSampleExtendRespVO>> getAnalysisGroupPage(@Valid BusinessSubSamplePageReqVO pageReqVO) {
|
||||||
|
PageResult<BusinessSubSampleExtendRespVO> pageResult = businessSubSampleService.getAnalysisGroupPage(pageReqVO);
|
||||||
|
return success(pageResult);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/page-stock")
|
@GetMapping("/page-stock")
|
||||||
@Operation(summary = "查询样品库分页数据")
|
@Operation(summary = "查询样品库分页数据")
|
||||||
public CommonResult<PageResult<BusinessSubSampleExtendRespVO>> pageStock(@Valid BusinessSubSamplePageReqVO pageReqVO) {
|
public CommonResult<PageResult<BusinessSubSampleExtendRespVO>> pageStock(@Valid BusinessSubSamplePageReqVO pageReqVO) {
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ public class SampleTaskAssignController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getAssaySampleList")
|
@GetMapping("/getAssaySampleList")
|
||||||
public CommonResult<?> getAssaySampleList() {
|
public CommonResult<?> getAssaySampleList(BusinessAssayTaskDataReqVO reqVO) {
|
||||||
List<UnAssignTaskedSubSampleRespVO> list = sampleTaskAssignService.getAssaySampleList();
|
List<UnAssignTaskedSubSampleRespVO> list = sampleTaskAssignService.getAssaySampleList(reqVO);
|
||||||
return success(list);
|
return success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,4 +107,6 @@ public class BusinessAssayTaskPageReqVO extends PageParam {
|
|||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "部门id")
|
||||||
|
private Long deptId;
|
||||||
}
|
}
|
||||||
@@ -151,6 +151,8 @@ public class BusinessSampleEntrustRegistrationPageReqVO extends PageParam {
|
|||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "部门id")
|
||||||
|
private Long deptId;
|
||||||
//====================扩展字段======================
|
//====================扩展字段======================
|
||||||
@Schema(description = "委托来源名称")
|
@Schema(description = "委托来源名称")
|
||||||
private String configEntrustSourceName;
|
private String configEntrustSourceName;
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -17,6 +19,39 @@ public class BusinessSubSampleExtendRespVO extends BusinessSubSampleRespVO {
|
|||||||
|
|
||||||
@Schema(description = "子样检测方法")
|
@Schema(description = "子样检测方法")
|
||||||
private List<BusinessAssayTaskDataExtendRespVO> businessAssayTaskDataList;
|
private List<BusinessAssayTaskDataExtendRespVO> businessAssayTaskDataList;
|
||||||
|
|
||||||
|
@Schema(description = "分析班组")
|
||||||
|
private List<BusinessSubSampleAnalysisGroupRespVO> businessSubSampleAnalysisGroupList;
|
||||||
|
|
||||||
|
@Schema(description = "样品去向")
|
||||||
|
private String sampleDestination;
|
||||||
|
|
||||||
|
public String getSampleDestination() {
|
||||||
|
String _sampleDestination = null;
|
||||||
|
if (CollUtil.isNotEmpty(this.businessSubSampleAnalysisGroupList)) {
|
||||||
|
List<String> collect = this.businessSubSampleAnalysisGroupList.stream().filter(f -> f.getSampleStatus().equals("待收样")).map(m -> m.getAssayDepartmentName()).collect(Collectors.toList());
|
||||||
|
_sampleDestination = CollUtil.join(collect, ",");
|
||||||
|
}
|
||||||
|
return _sampleDestination;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Schema(description = "样品所在位置")
|
||||||
|
private String sampleLocation;
|
||||||
|
|
||||||
|
public String getSampleLocation() {
|
||||||
|
this.sampleLocation = null;
|
||||||
|
if (CollUtil.isNotEmpty(this.businessSubSampleAnalysisGroupList)) {
|
||||||
|
List<String> collect = this.businessSubSampleAnalysisGroupList.stream().filter(f -> f.getSampleStatus().equals("已收样")).map(m -> m.getAssayDepartmentName()).collect(Collectors.toList());
|
||||||
|
this.sampleLocation = CollUtil.join(collect, ",");
|
||||||
|
}
|
||||||
|
return this.sampleLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Schema(description = "分析部门id")
|
||||||
|
private Long assayDepartmentId;
|
||||||
|
|
||||||
|
@Schema(description = "分析部门名称")
|
||||||
|
private String assayDepartmentName;
|
||||||
|
|
||||||
@Schema(description = "是否打印")
|
@Schema(description = "是否打印")
|
||||||
private Integer isPrint;
|
private Integer isPrint;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.zt.plat.module.qms.business.bus.controller.vo;
|
package com.zt.plat.module.qms.business.bus.controller.vo;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import com.zt.plat.framework.common.pojo.PageParam;
|
import com.zt.plat.framework.common.pojo.PageParam;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@@ -48,6 +46,9 @@ public class BusinessSubSamplePageReqVO extends PageParam {
|
|||||||
@Schema(description = "归库编号")
|
@Schema(description = "归库编号")
|
||||||
private String sampleReturnCode;
|
private String sampleReturnCode;
|
||||||
|
|
||||||
|
@Schema(description = "是否已经生成归库编号,1-已生成,0-未生成")
|
||||||
|
private Integer isGenerateReturnCode;
|
||||||
|
|
||||||
@Schema(description = "是否称重,1-启用,0-不启用")
|
@Schema(description = "是否称重,1-启用,0-不启用")
|
||||||
private Integer isWeighing;
|
private Integer isWeighing;
|
||||||
|
|
||||||
@@ -132,6 +133,15 @@ public class BusinessSubSamplePageReqVO extends PageParam {
|
|||||||
@Schema(description = "备注")
|
@Schema(description = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "分析部门id")
|
||||||
|
private Long assayDepartmentId;
|
||||||
|
|
||||||
|
@Schema(description = "分析部门名称")
|
||||||
|
private String assayDepartmentName;
|
||||||
|
|
||||||
|
@Schema(description = "分析部门状态")
|
||||||
|
private String assayDepartmentStatus;
|
||||||
|
|
||||||
//扩展字段
|
//扩展字段
|
||||||
@Schema(description = "库位编码")
|
@Schema(description = "库位编码")
|
||||||
private String warehouseLocationCode;
|
private String warehouseLocationCode;
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ public class BusinessSubSampleReqVO {
|
|||||||
@Schema(description = "归库编号")
|
@Schema(description = "归库编号")
|
||||||
private String sampleReturnCode;
|
private String sampleReturnCode;
|
||||||
|
|
||||||
|
@Schema(description = "是否已经生成归库编号,1-已生成,0-未生成")
|
||||||
|
private Integer isGenerateReturnCode;
|
||||||
|
|
||||||
@Schema(description = "是否称重,1-启用,0-不启用")
|
@Schema(description = "是否称重,1-启用,0-不启用")
|
||||||
private Integer isWeighing;
|
private Integer isWeighing;
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ public class BusinessSubSampleRespVO {
|
|||||||
@ExcelProperty("归库编号")
|
@ExcelProperty("归库编号")
|
||||||
private String sampleReturnCode;
|
private String sampleReturnCode;
|
||||||
|
|
||||||
|
@Schema(description = "是否已经生成归库编号,1-已生成,0-未生成")
|
||||||
|
private Integer isGenerateReturnCode;
|
||||||
|
|
||||||
@Schema(description = "是否称重,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "是否称重,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@ExcelProperty("是否称重,1-启用,0-不启用")
|
@ExcelProperty("是否称重,1-启用,0-不启用")
|
||||||
private Integer isWeighing;
|
private Integer isWeighing;
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ public class BusinessSubSampleSaveReqVO {
|
|||||||
@Schema(description = "归库编号")
|
@Schema(description = "归库编号")
|
||||||
private String sampleReturnCode;
|
private String sampleReturnCode;
|
||||||
|
|
||||||
|
@Schema(description = "是否已经生成归库编号,1-已生成,0-未生成")
|
||||||
|
private Integer isGenerateReturnCode;
|
||||||
|
|
||||||
@Schema(description = "是否称重,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "是否称重,1-启用,0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
// @NotNull(message = "是否称重,1-启用,0-不启用不能为空")
|
// @NotNull(message = "是否称重,1-启用,0-不启用不能为空")
|
||||||
private Integer isWeighing;
|
private Integer isWeighing;
|
||||||
|
|||||||
@@ -93,6 +93,11 @@ public class BusinessSubSampleDO extends BusinessBaseDO {
|
|||||||
@TableField("SMP_RTN_CD")
|
@TableField("SMP_RTN_CD")
|
||||||
private String sampleReturnCode;
|
private String sampleReturnCode;
|
||||||
/**
|
/**
|
||||||
|
* 是否已经生成归库编号,1-已生成,0-未生成
|
||||||
|
*/
|
||||||
|
@TableField("IS_GEN_RTN_CD")
|
||||||
|
private Integer isGenerateReturnCode;
|
||||||
|
/**
|
||||||
* 是否称重,1-启用,0-不启用
|
* 是否称重,1-启用,0-不启用
|
||||||
*/
|
*/
|
||||||
@TableField("IS_WG")
|
@TableField("IS_WG")
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user