|
|
|
@ -212,16 +212,9 @@ public class OcrPictureController extends BaseController{
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<OcrPicture> queryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<OcrPicture> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
|
|
|
|
|
|
|
//是否查询历史记录
|
|
|
|
|
|
|
|
String search_history = req.getParameter("search_history");
|
|
|
|
|
|
|
|
//判断是否需要查询历史记录
|
|
|
|
|
|
|
|
if(search_history.equals("0")){
|
|
|
|
|
|
|
|
queryWrapper.eq("taskstatus", search_history);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String search_month = req.getParameter("search_month");
|
|
|
|
String search_month = req.getParameter("search_month");
|
|
|
|
if(StringUtils.isNotBlank(search_month) && Integer.parseInt(search_month) <= 12 && Integer.parseInt(search_month) > 0){
|
|
|
|
if(StringUtils.isNotBlank(search_month) && Integer.parseInt(search_month) <= 12 && Integer.parseInt(search_month) > 0){
|
|
|
|
queryWrapper.le("create_time",DataUtil.afterDateByMonth(Integer.parseInt(search_month)));
|
|
|
|
queryWrapper.ge("create_time",DataUtil.afterDateByMonth(Integer.parseInt(search_month)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//根据参数枚举,获取检索参数,并映射为数据库的字段的key-v map
|
|
|
|
//根据参数枚举,获取检索参数,并映射为数据库的字段的key-v map
|
|
|
|
|