ocr识别
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.czg.controller.admin;
|
||||
|
||||
import com.czg.annotation.SaStaffCheckPermission;
|
||||
import com.czg.log.annotation.OperationLog;
|
||||
import com.czg.product.dto.ConsStockFlowDTO;
|
||||
import com.czg.product.param.ConsCheckStockParam;
|
||||
@@ -41,10 +40,21 @@ public class ConsStockFlowController {
|
||||
* @throws IOException
|
||||
*/
|
||||
@PostMapping("/ocr")
|
||||
public CzgResult<ConsInOutStockHeadParam> ocr(@RequestParam MultipartFile file) throws IOException {
|
||||
public CzgResult<Integer> ocr(@RequestParam MultipartFile file) throws IOException {
|
||||
return CzgResult.success(consStockFlowService.ocr(file.getOriginalFilename(), file.getInputStream()));
|
||||
}
|
||||
|
||||
/**
|
||||
* ocr识别结果
|
||||
* @param id ocrId
|
||||
* @return 识别结果
|
||||
*/
|
||||
@GetMapping("/ocrResult")
|
||||
public CzgResult<ConsInOutStockHeadParam> ocrResult(@RequestParam Long id) {
|
||||
return CzgResult.success(consStockFlowService.ocrDetail(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 耗材入库
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user