修改任务单任务详情-相似图片列表

pull/1/head
sunchenliang 1 year ago
parent 5b9a213668
commit 92444d64b7

@ -17,6 +17,7 @@ import cn.jyjz.xiaoyao.ocr.service.OcrPictureService;
import cn.jyjz.xiaoyao.ocr.service.OcrTaskchildPictureService; import cn.jyjz.xiaoyao.ocr.service.OcrTaskchildPictureService;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beust.jcommander.Parameter; import com.beust.jcommander.Parameter;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
@ -24,7 +25,9 @@ import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -40,155 +43,165 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
@RestController @RestController
@RequestMapping("/backstage/jifen/ocrtaskchildpicture") @RequestMapping("/backstage/jifen/ocrtaskchildpicture")
public class OcrTaskchildPictureController extends BaseController{ public class OcrTaskchildPictureController extends BaseController {
private Logger log = LoggerFactory.getLogger(this.getClass()); private Logger log = LoggerFactory.getLogger(this.getClass());
@Resource @Resource
private OcrTaskchildPictureService ocrTaskchildPictureService; private OcrTaskchildPictureService ocrTaskchildPictureService;
@Resource @Resource
private OcrPictureService ocrPictureService; private OcrPictureService ocrPictureService;
@Resource @Resource
private UserTokenService userTokenService; private UserTokenService userTokenService;
@Resource @Resource
private UserService userService; private UserService userService;
/**
*jsondto /**
*mail.zhangyong@gmail.com * jsondto
*2024-01-14 10:27:01 * mail.zhangyong@gmail.com
**/ * 2024-01-14 10:27:01
@GetMapping("/list") **/
public ResultVo<IPage<OcrTaskchildPicture>> listOcrTaskchildPicture(ParamterPage paramterPage, HttpServletRequest request, HttpServletResponse response) throws IOException{ @GetMapping("/list")
SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_"); public ResultVo<IPage<OcrTaskchildPicture>> listOcrTaskchildPicture(ParamterPage paramterPage, HttpServletRequest request, HttpServletResponse response) throws IOException {
SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_");
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture();
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture();
QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery,ocrtaskchildpicture);
IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage,queryWrapper);; QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery, ocrtaskchildpicture);
return ResultVoUtil.success(page); IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage, queryWrapper);
} ;
return ResultVoUtil.success(page);
/** }
*jsondto
*mail.zhangyong@gmail.com /**
*2024-01-14 10:27:01 * jsondto
**/ * mail.zhangyong@gmail.com
@ApiOperation(value="ocr_任务包下的任务集合", notes="ocr_任务包下的任务集合") * 2024-01-14 10:27:01
@ApiImplicitParams({ **/
@ApiImplicitParam(paramType = "header", name = "X-Tenant-Id", value = "租户主键,用户登录时的信息“tenantList”中获得。", dataType = "String", required = true), @ApiOperation(value = "ocr_任务包下的任务集合", notes = "ocr_任务包下的任务集合")
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键", required = true) @ApiImplicitParams({
}) @ApiImplicitParam(paramType = "header", name = "X-Tenant-Id", value = "租户主键,用户登录时的信息“tenantList”中获得。", dataType = "String", required = true),
@GetMapping("/listbypackageid/{packageid}") @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键", required = true)
public ResultVo<IPage<OcrTaskchildPicture>> listbypackageid(ParamterPage paramterPage, })
HttpServletRequest request, @GetMapping("/listbypackageid/{packageid}")
HttpServletResponse response, public ResultVo<IPage<OcrTaskchildPicture>> listbypackageid(ParamterPage paramterPage,
@PathVariable("packageid") String packageid) throws IOException{ HttpServletRequest request,
HttpServletResponse response,
//租户主键,由前端页面传送 @PathVariable("packageid") String packageid) throws IOException {
String tenantId = request.getHeader("X-Tenant-Id");
if(StringUtils.isBlank(tenantId)){ //租户主键,由前端页面传送
return ResultVoUtil.error("租户主键不能为空"); String tenantId = request.getHeader("X-Tenant-Id");
} if (StringUtils.isBlank(tenantId)) {
return ResultVoUtil.error("租户主键不能为空");
SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_"); }
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture(); SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_");
QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery,ocrtaskchildpicture);
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture();
queryWrapper.eq("TENANTID",tenantId); QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery, ocrtaskchildpicture);
if(StringUtils.isNotBlank(packageid)){
queryWrapper.eq("PACKAGEID",packageid); queryWrapper.eq("TENANTID", tenantId);
} if (StringUtils.isNotBlank(packageid)) {
IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage,queryWrapper); queryWrapper.eq("PACKAGEID", packageid);
}
QueryWrapper<OcrTaskchildPicture> queryWrapperNex = SearchQueryFormat.queryStringFormat(searchQuery,ocrtaskchildpicture); IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage, queryWrapper);
if(!page.getRecords().isEmpty()){ QueryWrapper<OcrTaskchildPicture> queryWrapperNex = SearchQueryFormat.queryStringFormat(searchQuery, ocrtaskchildpicture);
OcrTaskchildPicture ocrTaskchildPicture = page.getRecords().get(0);
queryWrapperNex.eq("TENANTID",tenantId); if (!page.getRecords().isEmpty()) {
queryWrapperNex.in("PICTUREID",ocrTaskchildPicture.getOcpictureid().split(",")); OcrTaskchildPicture ocrTaskchildPicture = page.getRecords().get(0);
queryWrapperNex.eq("TENANTID", tenantId);
page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage,queryWrapperNex); queryWrapperNex.in("PICTUREID", ocrTaskchildPicture.getOcpictureid().split(","));
}
page = this.ocrTaskchildPictureService.selectSearchListPage(paramterPage, queryWrapperNex);
return ResultVoUtil.success(page); }
}
return ResultVoUtil.success(page);
@ApiOperation(value="ocr_任务包下的当前图片比对的集合列表", notes="ocr_任务包下的当前图片比对的集合列表") }
@ApiImplicitParams({
@ApiImplicitParam(paramType = "header", name = "X-Tenant-Id", value = "租户主键,用户登录时的信息“tenantList”中获得。", dataType = "String", required = true), @ApiOperation(value = "ocr_任务包下的当前图片比对的集合列表", notes = "ocr_任务包下的当前图片比对的集合列表")
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键"), @ApiImplicitParams({
@ApiImplicitParam(paramType = "path",name = "taskchildpictureid", value = "当前选中的任务主键", required = true) @ApiImplicitParam(paramType = "header", name = "X-Tenant-Id", value = "租户主键,用户登录时的信息“tenantList”中获得。", dataType = "String", required = true),
}) @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键"),
@GetMapping("/listbypictureid/{packageid}/{taskchildpictureid}") @ApiImplicitParam(paramType = "path", name = "taskchildpictureid", value = "当前选中的任务主键", required = true)
public ResultVo<IPage<OcrTaskchildPicture>> listbypackageidlistbypictureid(ParamterPage paramterPage, })
HttpServletRequest request, @GetMapping("/listbypictureid/{packageid}/{taskchildpictureid}")
HttpServletResponse response, public ResultVo<IPage<OcrTaskchildPicture>> listbypackageidlistbypictureid(ParamterPage paramterPage,
@PathVariable("packageid") String packageid, HttpServletRequest request,
@PathVariable("taskchildpictureid") String taskchildpictureid) throws IOException{ HttpServletResponse response,
@PathVariable("packageid") String packageid,
//租户主键,由前端页面传送 @PathVariable("taskchildpictureid") String taskchildpictureid) throws IOException {
String tenantId = request.getHeader("X-Tenant-Id");
if(StringUtils.isBlank(tenantId)){ //租户主键,由前端页面传送
return ResultVoUtil.error("租户主键不能为空"); String tenantId = request.getHeader("X-Tenant-Id");
} if (StringUtils.isBlank(tenantId)) {
return ResultVoUtil.error("租户主键不能为空");
//排序方式 }
String orderbyname = request.getParameter("orderbyname");
//排序字段 //排序方式
String orderbyvalue = request.getParameter("orderbyvalue"); String orderbyname = request.getParameter("orderbyname");
//排序字段
SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_"); String orderbyvalue = request.getParameter("orderbyvalue");
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture(); SearchQuery searchQuery = this.getParametersStartingWithToSearchJson(request, "search_");
QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery,ocrtaskchildpicture);
OcrTaskchildPicture ocrtaskchildpicture = new OcrTaskchildPicture();
//queryWrapper.eq("TENANTID",tenantId); QueryWrapper<OcrTaskchildPicture> queryWrapper = SearchQueryFormat.queryStringFormat(searchQuery, ocrtaskchildpicture);
//queryWrapper.eq("PACKAGEID",packageid);
//queryWrapper.eq("TENANTID",tenantId);
IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.listByPackageId(taskchildpictureid,paramterPage,queryWrapper,orderbyname,orderbyvalue, packageid,tenantId); //queryWrapper.eq("PACKAGEID",packageid);
List collect = page.getRecords().stream().map(p -> JSON.parseObject(JSON.toJSONString(p), Map.class)).collect(Collectors.toList());
page.setRecords(collect); IPage<OcrTaskchildPicture> page = this.ocrTaskchildPictureService.listByPackageId(taskchildpictureid, paramterPage, queryWrapper, orderbyname, orderbyvalue, packageid, tenantId);
return ResultVoUtil.success(page); List<JSONObject> collect = page.getRecords().stream().map(p -> {
} JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(p));
jsonObject.put("id", jsonObject.getOrDefault("id", null).toString());
/** jsonObject.put("tenantid", jsonObject.getOrDefault("tenantid", null).toString());
* jsonObject.put("packageid", jsonObject.getOrDefault("packageid", null).toString());
* return jsonObject;
* @param req }).collect(Collectors.toList());
* @return IPage<JSONObject> objects = new Page<>();
*/ BeanUtils.copyProperties(page, objects);
@ApiOperation(value="任务主图真假标记", notes="任务主图真假标记") objects.setRecords(collect);
@ApiImplicitParams({ return ResultVoUtil.success(objects);
@ApiImplicitParam(paramType = "path",name = "taskchildpictureid", value = "任务主键", required = true), }
@ApiImplicitParam(paramType = "path",name = "izTrueorfalse", value = "主图片真假0:假1真", required = true),
@ApiImplicitParam(paramType = "path",name = "judgeid", value = "主图判真假原因id,从字典表中获得", required = true), /**
@ApiImplicitParam(paramType = "path",name = "judgedesc", value = "真假其他原因", required = false), *
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键", required = true) *
}) * @param req
@PostMapping(value = "/ordertrueorfalse") * @return
public ResultVo ordertrueorfalse(@RequestParam(name="taskchildpictureids",required=true) String taskchildpictureids, */
@RequestParam(name="iztrueorfalse",required=true) String iztrueorfalse, @ApiOperation(value = "任务主图真假标记", notes = "任务主图真假标记")
@RequestParam(name="judgeid",required=true) String judgeid, @ApiImplicitParams({
@RequestParam(name="judgedesc",required=false) String judgedesc, @ApiImplicitParam(paramType = "path", name = "taskchildpictureid", value = "任务主键", required = true),
@RequestParam(name="packageid",required=true) String packageid, @ApiImplicitParam(paramType = "path", name = "izTrueorfalse", value = "主图片真假0:假1真", required = true),
HttpServletRequest req) { @ApiImplicitParam(paramType = "path", name = "judgeid", value = "主图判真假原因id,从字典表中获得", required = true),
//如果是历史图片,不允许进行设置 @ApiImplicitParam(paramType = "path", name = "judgedesc", value = "真假其他原因", required = false),
//如果是已经审批完成的图片不允许是指 @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键", required = true)
})
OcrTaskchildPicture ocrTaskchildPicture = new OcrTaskchildPicture(); @PostMapping(value = "/ordertrueorfalse")
public ResultVo ordertrueorfalse(@RequestParam(name = "taskchildpictureids", required = true) String taskchildpictureids,
ocrTaskchildPicture.setPackageid(Long.parseLong(packageid)); @RequestParam(name = "iztrueorfalse", required = true) String iztrueorfalse,
@RequestParam(name = "judgeid", required = true) String judgeid,
return ocrTaskchildPictureService.trueorfalse(taskchildpictureids,packageid,iztrueorfalse,judgeid,judgedesc); @RequestParam(name = "judgedesc", required = false) String judgedesc,
} @RequestParam(name = "packageid", required = true) String packageid,
HttpServletRequest req) {
/** //如果是历史图片,不允许进行设置
* //如果是已经审批完成的图片不允许是指
*
* @param req OcrTaskchildPicture ocrTaskchildPicture = new OcrTaskchildPicture();
* @return
*/ ocrTaskchildPicture.setPackageid(Long.parseLong(packageid));
return ocrTaskchildPictureService.trueorfalse(taskchildpictureids, packageid, iztrueorfalse, judgeid, judgedesc);
}
/**
*
*
* @param req
* @return
*/
// @ApiOperation(value="任务清除标记", notes="任务清除标记") // @ApiOperation(value="任务清除标记", notes="任务清除标记")
// @ApiImplicitParams({ // @ApiImplicitParams({
// @ApiImplicitParam(paramType = "path",name = "taskchildpictureid", value = "任务主键", required = true), // @ApiImplicitParam(paramType = "path",name = "taskchildpictureid", value = "任务主键", required = true),
@ -207,135 +220,133 @@ public class OcrTaskchildPictureController extends BaseController{
// //
// return ocrTaskchildPictureService.clearmark(taskchildpictureid,packageid); // return ocrTaskchildPictureService.clearmark(taskchildpictureid,packageid);
// } // }
@ApiOperation(value = "任务清除标记", notes = "任务清除标记")
@ApiImplicitParams({
@ApiOperation(value="任务清除标记", notes="任务清除标记") @ApiImplicitParam(paramType = "path", name = "taskchildpictureid", value = "任务主键", required = true),
@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键", required = true)
@ApiImplicitParam(paramType = "path",name = "taskchildpictureid", value = "任务主键", required = true), })
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键", required = true) @PostMapping(value = "/clearmark")
}) public ResultVo clearmark(@RequestParam(name = "taskchildpictureid", required = true) String taskchildpictureid,
@PostMapping(value = "/clearmark") @RequestParam(name = "packageid", required = true) String packageid,
public ResultVo clearmark(@RequestParam(name="taskchildpictureid",required=true) String taskchildpictureid, HttpServletRequest request) {
@RequestParam(name="packageid",required=true) String packageid, //租户主键,由前端页面传送
HttpServletRequest request) { String tenantId = request.getHeader("X-Tenant-Id");
//租户主键,由前端页面传送 if (StringUtils.isBlank(tenantId)) {
String tenantId = request.getHeader("X-Tenant-Id"); return ResultVoUtil.error("租户主键不能为空");
if(StringUtils.isBlank(tenantId)){ }
return ResultVoUtil.error("租户主键不能为空");
}
return ocrTaskchildPictureService.clearmark(tenantId, taskchildpictureid, packageid);
}
return ocrTaskchildPictureService.clearmark(tenantId,taskchildpictureid,packageid);
} /**
*
/** *
* * @param req
* * @return
* @param req */
* @return @ApiOperation(value = "当前任务包智能识别", notes = "当前任务包智能识别")
*/ @ApiImplicitParams({
@ApiOperation(value="当前任务包智能识别", notes="当前任务包智能识别") @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键", required = true)
@ApiImplicitParams({ })
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键", required = true) @PostMapping(value = "/markpoint")
}) public ResultVo markpoint(@RequestParam(name = "packageid", required = true) String packageid,
@PostMapping(value = "/markpoint") HttpServletRequest req) {
public ResultVo markpoint(@RequestParam(name="packageid",required=true) String packageid, //如果是历史图片,不允许进行设置
HttpServletRequest req) { //如果是已经审批完成的图片不允许是指
//如果是历史图片,不允许进行设置
//如果是已经审批完成的图片不允许是指 OcrTaskchildPicture ocrTaskchildPicture = new OcrTaskchildPicture();
OcrTaskchildPicture ocrTaskchildPicture = new OcrTaskchildPicture(); ocrTaskchildPicture.setPackageid(Long.parseLong(packageid));
ocrTaskchildPicture.setPackageid(Long.parseLong(packageid)); List<OcrTaskchildPicture> list = ocrTaskchildPictureService.markpoint(packageid);
if (null != list && !list.isEmpty()) {
List<OcrTaskchildPicture> list = ocrTaskchildPictureService.markpoint(packageid); return ResultVoUtil.success(list);
if(null != list && !list.isEmpty()){ }
return ResultVoUtil.success(list); return ResultVoUtil.error();
} }
return ResultVoUtil.error();
} /**
*
/** * mail.zhangyong@gmail.com
* * 2024-01-14 10:27:01
*mail.zhangyong@gmail.com **/
*2024-01-14 10:27:01 @ApiOperation(value = "ocr_任务包下的当前展示的任务对象", notes = "ocr_任务包下的当前展示的任务对象")
**/ @ApiImplicitParams({
@ApiOperation(value="ocr_任务包下的当前展示的任务对象", notes="ocr_任务包下的当前展示的任务对象") @ApiImplicitParam(paramType = "path", name = "id", value = "当前选中的任务主键", required = true),
@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", name = "packageid", value = "任务包主键注意不是当前任务关联的packageid而是当前选中的任务包主键")
@ApiImplicitParam(paramType = "path",name = "id", value = "当前选中的任务主键", required = true), })
@ApiImplicitParam(paramType = "path",name = "packageid", value = "任务包主键注意不是当前任务关联的packageid而是当前选中的任务包主键") @GetMapping("/getdata/{id}/{packageid}")
}) @ResponseBody
@GetMapping("/getdata/{id}/{packageid}") public ResultVo getdateOcrTaskchildPicture(HttpServletResponse response, HttpServletRequest request,
@ResponseBody @PathVariable("packageid") Long packageid,
public ResultVo getdateOcrTaskchildPicture(HttpServletResponse response,HttpServletRequest request, @PathVariable("id") Long id) throws IOException {
@PathVariable("packageid") Long packageid, OcrTaskchildPicture dto = this.ocrTaskchildPictureService.listPicturePackageId(id.toString(), packageid);
@PathVariable("id") Long id) throws IOException{ if (null != dto) {
OcrTaskchildPicture dto = this.ocrTaskchildPictureService.listPicturePackageId(id.toString(),packageid); return ResultVoUtil.success(dto);
if(null != dto){ } else {
return ResultVoUtil.success(dto); return ResultVoUtil.error();
}else{ }
return ResultVoUtil.error(); }
}
} /**
*
/** * mail.zhangyong@gmail.com
* * 2024-01-14 10:27:01
*mail.zhangyong@gmail.com **/
*2024-01-14 10:27:01 @PostMapping("/save")
**/ public ResultVo saveOcrTaskchildPicture(HttpServletResponse response, HttpServletRequest request, OcrTaskchildPicture tab) throws IOException {
@PostMapping("/save") UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
public ResultVo saveOcrTaskchildPicture(HttpServletResponse response,HttpServletRequest request,OcrTaskchildPicture tab) throws IOException{
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request)); this.ocrTaskchildPictureService.save(tab);
return ResultVoUtil.success();
this.ocrTaskchildPictureService.save(tab); }
return ResultVoUtil.success();
} /**
* form
/** * mail.zhangyong@gmail.com
*form * 2024-01-14 10:27:01
*mail.zhangyong@gmail.com **/
*2024-01-14 10:27:01 @PostMapping("/edit")
**/ public ResultVo editOcrTaskchildPicture(HttpServletResponse response, HttpServletRequest request, OcrTaskchildPicture tab) throws IOException {
@PostMapping("/edit") UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
public ResultVo editOcrTaskchildPicture(HttpServletResponse response,HttpServletRequest request,OcrTaskchildPicture tab) throws IOException{ this.ocrTaskchildPictureService.updateById(tab);
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request)); return ResultVoUtil.success();
this.ocrTaskchildPictureService.updateById(tab); }
return ResultVoUtil.success();
}
/**
*
/** * mail.zhangyong@gmail.com
* * 2024-01-14 10:27:01
*mail.zhangyong@gmail.com **/
*2024-01-14 10:27:01 @ApiOperation(value = "根据任务或者工单主键查询图片对象", notes = "根据任务或者工单主键查询图片对象")
**/ @ApiImplicitParams({
@ApiOperation(value="根据任务或者工单主键查询图片对象", notes="根据任务或者工单主键查询图片对象") @ApiImplicitParam(paramType = "path", name = "id", value = "任务审批中的formid或者id", required = true)
@ApiImplicitParams({ })
@ApiImplicitParam(paramType = "path",name = "id", value = "任务审批中的formid或者id", required = true) @GetMapping("/pictureinfo")
}) @ResponseBody
@GetMapping("/pictureinfo") public ResultVo pictureinfo(HttpServletResponse response, HttpServletRequest request) throws IOException {
@ResponseBody String id = request.getParameter("id");
public ResultVo pictureinfo(HttpServletResponse response,HttpServletRequest request) throws IOException{ OcrPicture dto = this.ocrTaskchildPictureService.findOcrPictureByTaskchildid(id);
String id = request.getParameter("id"); if (null != dto) {
OcrPicture dto = this.ocrTaskchildPictureService.findOcrPictureByTaskchildid(id); return ResultVoUtil.success(dto);
if(null != dto){ } else {
return ResultVoUtil.success(dto); return ResultVoUtil.error();
}else{ }
return ResultVoUtil.error(); }
}
} /**
* id1,2,3
/** * mail.zhangyong@gmail.com
*id1,2,3 * 2024-01-14 10:27:01
*mail.zhangyong@gmail.com **/
*2024-01-14 10:27:01 @GetMapping("/delmore")
**/ @ResponseBody
@GetMapping("/delmore") public ResultVo delMoreOcrTaskchildPicture(HttpServletResponse response, HttpServletRequest request) throws IOException {
@ResponseBody String ids = request.getParameter("id");
public ResultVo delMoreOcrTaskchildPicture(HttpServletResponse response,HttpServletRequest request) throws IOException{ this.ocrTaskchildPictureService.deleteByIdMore(ids);
String ids = request.getParameter("id"); return ResultVoUtil.success();
this.ocrTaskchildPictureService.deleteByIdMore(ids); }
return ResultVoUtil.success();
}
} }

Loading…
Cancel
Save