|
|
@ -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)); |
|
|
|
} |
|
|
|
|
|
|
|
} |