ocr入库
This commit is contained in:
@@ -16,7 +16,9 @@ import com.czg.validator.group.DefaultGroup;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -32,6 +34,17 @@ import java.util.List;
|
||||
public class ConsStockFlowController {
|
||||
private final ConsStockFlowService consStockFlowService;
|
||||
|
||||
/**
|
||||
* 入库单识别
|
||||
* @param file 文件
|
||||
* @return
|
||||
* @throws IOException
|
||||
*/
|
||||
@PostMapping("/ocr")
|
||||
public CzgResult<ConsInOutStockHeadParam> ocr(@RequestParam MultipartFile file) throws IOException {
|
||||
return CzgResult.success(consStockFlowService.ocr(file.getOriginalFilename(), file.getInputStream()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 耗材入库
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user