Browse Source

1.新增出入库模块

2.档案盒新增出入库状态
master
xia 3 years ago
parent
commit
c0f6e2b954
  1. 29
      archives/src/main/java/com/storeroom/modules/archives/controller/StorageController.java
  2. 4
      archives/src/main/java/com/storeroom/modules/archives/domain/ArchivesCase.java
  3. 1
      archives/src/main/java/com/storeroom/modules/archives/service/impl/ArchivesCaseServiceImpl.java

29
archives/src/main/java/com/storeroom/modules/archives/controller/StorageController.java

@ -0,0 +1,29 @@
package com.storeroom.modules.archives.controller;
import com.storeroom.modules.archives.service.ArchivesCaseService;
import com.storeroom.utils.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
@Api(tags = "出入库管理")
@RequestMapping("/api/storage")
public class StorageController {
private final ArchivesCaseService caseService;
@ApiOperation("入库列表")
@GetMapping("/readyInto")
public ApiResponse<Object> readyInto(
String tid, String caseName,String barcode, Pageable page
){
return ApiResponse.success(caseService.initCaseList(tid,caseName,barcode,page));
}
}

4
archives/src/main/java/com/storeroom/modules/archives/domain/ArchivesCase.java

@ -49,4 +49,8 @@ public class ArchivesCase extends BaseEntity implements Serializable {
@ApiModelProperty(value = "存放数量")
private Integer depositNum;
@Column(name = "storage_type")
@ApiModelProperty(value = "入库状态 0.未入 1.待入 2.已入")
private Integer storageType;
}

1
archives/src/main/java/com/storeroom/modules/archives/service/impl/ArchivesCaseServiceImpl.java

@ -97,6 +97,7 @@ public class ArchivesCaseServiceImpl implements ArchivesCaseService {
archivesCase.setId(NanoIdUtils.randomNanoId());
archivesCase.setCaseType(0);
archivesCase.setDepositNum(0);
archivesCase.setStorageType(0);
}
archivesCase.setCaseName(dto.getCaseName());
archivesCase.setBarcode(dto.getBarcode());

Loading…
Cancel
Save