Merge branch 'test' of https://git.will-way.cn/zgty/zt-qms into test
This commit is contained in:
@@ -71,12 +71,12 @@ public class BusinessSampleDispatchController implements BusinessControllerMarke
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PostMapping("/addBySampleCode")
|
||||
@Operation(summary = "增加或移除样品")
|
||||
public CommonResult<Boolean> addBySampleCode(@RequestBody JSONObject param) {
|
||||
@PostMapping("/addBySampleReturnCode")
|
||||
@Operation(summary = "按归库码增加样品")
|
||||
public CommonResult<Boolean> addBySampleReturnCode(@RequestBody JSONObject param) {
|
||||
String id = param.getString("id");
|
||||
String sampleCode = param.getString("sampleCode");
|
||||
BusinessSubSampleDO businessSubSampleDO = businessSubSampleService.getBySampleCode(sampleCode);
|
||||
String sampleReturnCode = param.getString("sampleReturnCode");
|
||||
BusinessSubSampleDO businessSubSampleDO = businessSubSampleService.getBySampleReturnCode(sampleReturnCode);
|
||||
if(businessSubSampleDO == null)
|
||||
return CommonResult.error(BUSINESS_SUB_SAMPLE_NOT_EXISTS.getCode(), "未查询到此样品!");
|
||||
//判断样品状态
|
||||
|
||||
@@ -50,11 +50,11 @@ public class BusinessSampleDispatchDetailController implements BusinessControlle
|
||||
@GetMapping("/searchBySampleCode")
|
||||
@Operation(summary = "扫码查询待归还样品")
|
||||
public CommonResult<BusinessSampleDispatchDetailExtendRespVO> searchBySampleCode(HttpServletRequest request) {
|
||||
String sampleCode = request.getParameter("sampleCode");
|
||||
if(ObjectUtils.isEmpty(sampleCode))
|
||||
String sampleReturnCode = request.getParameter("sampleReturnCode");
|
||||
if(ObjectUtils.isEmpty(sampleReturnCode))
|
||||
return CommonResult.error(BUSINESS_SAMPLE_DISPATCH_DETAIL_NOT_EXISTS.getCode(), "请输入样品编号!");
|
||||
BusinessSampleDispatchDetailPageReqVO reqVO = new BusinessSampleDispatchDetailPageReqVO();
|
||||
reqVO.setSampleCode(sampleCode);
|
||||
reqVO.setSampleReturnCode(sampleReturnCode);
|
||||
reqVO.setBorrowStatus("1");
|
||||
reqVO.setGivebackStatus("0");
|
||||
|
||||
|
||||
@@ -121,6 +121,13 @@ public class BusinessSubSampleController implements BusinessControllerMarker {
|
||||
return success(pageResult);
|
||||
}
|
||||
|
||||
@GetMapping("/selectPageForDispatch")
|
||||
@Operation(summary = "查询可申请调拨子样")
|
||||
public CommonResult<PageResult<BusinessSubSampleExtendRespVO>> selectPageForDispatch(@Valid BusinessSubSamplePageReqVO pageReqVO) {
|
||||
PageResult<BusinessSubSampleExtendRespVO> pageResult = businessSubSampleService.selectPageForDispatch(pageReqVO);
|
||||
return success(pageResult);
|
||||
}
|
||||
|
||||
@GetMapping("/page-task")
|
||||
@Operation(summary = "获得子样业务分页")
|
||||
//@PreAuthorize("@ss.hasPermission('qms:business-sub-sample:query')")
|
||||
|
||||
@@ -60,8 +60,8 @@ public class BusinessSampleDispatchDetailPageReqVO extends PageParam {
|
||||
|
||||
//================================扩展字段=============================================
|
||||
|
||||
@Schema(description = "样品号")
|
||||
private String sampleCode;
|
||||
@Schema(description = "样品归库码")
|
||||
private String sampleReturnCode;
|
||||
|
||||
@Schema(description = "idsList")
|
||||
private List<Long> idList;
|
||||
|
||||
@@ -64,6 +64,12 @@ public class BusinessSampleDispatchPageReqVO extends PageParam {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
private String warehouseCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@@ -83,6 +83,14 @@ public class BusinessSampleDispatchRespVO {
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "仓库名称")
|
||||
@ExcelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
@ExcelProperty("仓库编码")
|
||||
private String warehouseCode;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -64,6 +64,12 @@ public class BusinessSampleDispatchSaveReqVO {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
private String warehouseCode;
|
||||
|
||||
//=========================扩展字段=======================================
|
||||
@Schema(description = "新增子样id")
|
||||
List<Long> addSubSampleIds;
|
||||
|
||||
@@ -142,8 +142,15 @@ public class BusinessSubSamplePageReqVO extends PageParam {
|
||||
@Schema(description = "分析部门状态")
|
||||
private String assayDepartmentStatus;
|
||||
|
||||
//扩展字段
|
||||
//=======================================扩展字段=======================================
|
||||
@Schema(description = "库位编码")
|
||||
private String warehouseLocationCode;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
private String warehouseCode;
|
||||
|
||||
//是否过滤已申请调拨的数据: 1-是, 其他值:否
|
||||
@Schema(description = "是否过滤已申请调拨的数据")
|
||||
private String hideDispatchData;
|
||||
|
||||
}
|
||||
@@ -134,4 +134,6 @@ public class BusinessSubSampleReqVO {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -119,4 +119,11 @@ public class BusinessSampleDispatchDO extends BusinessBaseDO {
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
//仓库编码
|
||||
@TableField("WRH_CD")
|
||||
private String warehouseCode;
|
||||
|
||||
//仓库名称
|
||||
@TableField("WRH_NAME")
|
||||
private String warehouseName;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user