Ocr部分bug 和工作组部分bug修复
This commit is contained in:
@@ -13,6 +13,7 @@ import com.adc.da.ocr.service.OCRRestfulService;
|
||||
import com.adc.da.ocr.service.OcrRecordEOService;
|
||||
import com.adc.da.ocr.util.MD5Util;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@@ -107,11 +108,13 @@ public class OCRRestfulController extends BaseController<OcrRecordEO> {
|
||||
page.setOrder("desc");
|
||||
}
|
||||
List<OcrRecordEO> rows = ocrRecordEOService.queryByPage(page);
|
||||
Integer integer = ocrRecordEOService.queryByPageCount(page);
|
||||
DecimalFormat df = new DecimalFormat("0.00");//设置保留位数
|
||||
for (OcrRecordEO ocrRecordEO : rows){
|
||||
ocrRecordEO.setDocRealFile(ocrDownPath+ocrRecordEO.getDocRealName());
|
||||
ocrRecordEO.setJsonRealFile(ocrDownPath+ocrRecordEO.getJsonRealName());
|
||||
}
|
||||
page.getPager().setRowCount(integer);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ public interface OcrRecordEODao extends BaseMapper<OcrRecordEO> {
|
||||
// int deleteByIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<OcrRecordEO> queryByPage(BasePage var1);
|
||||
Integer queryByPageCount(BasePage var1);
|
||||
|
||||
int insertSelective(OcrRecordEO ocrRecordEO);
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ public interface OcrRecordEOService {
|
||||
|
||||
List<OcrRecordEO> queryByPage(OcrRecordEOPage page);
|
||||
|
||||
Integer queryByPageCount(OcrRecordEOPage page);
|
||||
|
||||
int updateByPrimaryKeySelective(OcrRecordEO ocrRecordEO);
|
||||
|
||||
int deleteByIds(List<String> idList);
|
||||
|
||||
@@ -26,6 +26,11 @@ public class OcrRecordEOServiceImpl implements OcrRecordEOService {
|
||||
return ocrRecordEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer queryByPageCount(OcrRecordEOPage page) {
|
||||
return ocrRecordEODao.queryByPageCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(OcrRecordEO ocrRecordEO) {
|
||||
return ocrRecordEODao.updateByPrimaryKeySelective(ocrRecordEO);
|
||||
|
||||
Reference in New Issue
Block a user