Merge pull request 'feat: 添加拉取图像日志' (#161) from feature/pullPictureLog into test
Reviewed-on: #161feat/addPrevailCloudLog
commit
486e992d43
@ -0,0 +1,47 @@
|
|||||||
|
package cn.jyjz.xiaoyao.ocr.controller;
|
||||||
|
|
||||||
|
import cn.jyjz.xiaoyao.common.base.param.ParamterPage;
|
||||||
|
import cn.jyjz.xiaoyao.common.base.vo.ResultVo;
|
||||||
|
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPrevailCloudLog;
|
||||||
|
import cn.jyjz.xiaoyao.ocr.service.OcrPrevailCloudLogService;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/ocr/prevailCloudLog")
|
||||||
|
public class OcrPrevailCloudLogController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private OcrPrevailCloudLogService ocrPrevailCloudLogService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自定义筛选字段列表查询
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "根据评审类型查询字段列表", notes = "根据评审类型查询字段列表")
|
||||||
|
@GetMapping(value = "/page")
|
||||||
|
public ResultVo<IPage<OcrPrevailCloudLog>> list(@RequestParam(name = "start", defaultValue = "1") Integer start,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
@RequestParam(name = "status", required = false) String status,
|
||||||
|
HttpServletRequest request) {
|
||||||
|
QueryWrapper<OcrPrevailCloudLog> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("status", status);
|
||||||
|
ResultVo<IPage<OcrPrevailCloudLog>> resultVo = new ResultVo<>();
|
||||||
|
ParamterPage paramterPage = new ParamterPage();
|
||||||
|
paramterPage.setPagesize(pageSize);
|
||||||
|
paramterPage.setStart(start);
|
||||||
|
IPage<OcrPrevailCloudLog> ocrPictureLogIPage = ocrPrevailCloudLogService.selectSearchListPage(paramterPage, queryWrapper);
|
||||||
|
resultVo.setData(ocrPictureLogIPage);
|
||||||
|
resultVo.addOK("查询成功");
|
||||||
|
return resultVo;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package cn.jyjz.xiaoyao.ocr.controller;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/backstage/oa/prevailcloudlog")
|
||||||
|
public class OcrPrevailCloudLogHtmlController {
|
||||||
|
|
||||||
|
@GetMapping("/list")
|
||||||
|
public String toListOcrConfiguration(HttpServletResponse response, HttpServletRequest request) {
|
||||||
|
String resourceid = request.getParameter("resourceid");
|
||||||
|
request.setAttribute("resourceid", resourceid);
|
||||||
|
return "/backstage/oa/ocr/prevailcloudlog/list";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue