| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.oa.OAProcess; |
| | | import com.ruoyi.inspect.dto.PushOADto; |
| | |
| | | } |
| | | |
| | | |
| | | @Anonymous |
| | | @ApiOperation(value = "不合格处理OA回调") |
| | | @RequestMapping(value = "/callback", produces = "text/plain") |
| | | public String unqualifiedHandlerOACallback(String data){ |
| | | String msg = OAProcess.oaReturnMsg(0, "success"); |
| | | JSONObject json = JSONObject.parseObject(data); |
| | | System.out.println("========>" + json); |
| | | log.info("oa回调参数========>" + json); |
| | | try { |
| | | Long oaWorkId = json.getLong(REQUESTID); |
| | | String checkResult = json.getString(CHECKRESULT); |
| | |
| | | JSONArray objects = JSONArray.parseArray(JSONObject.toJSONString(o)); |
| | | unqualifiedHandlerService.unqualifiedHandlerOACallback(oaWorkId, checkResult,objects); |
| | | } catch (Exception e) { |
| | | System.out.println(e.getMessage()); |
| | | log.error("oa回调失败: " + e.getMessage()); |
| | | msg = OAProcess.oaReturnMsg(1, "oa回调失败: " + e.getMessage()); |
| | | } |
| | | System.out.println("oa回调返回结果========>" + msg); |
| | | log.info("oa回调返回结果========>" + msg); |
| | | return msg; |
| | | } |
| | | |
| | |
| | | return Result.success(unqualifiedHandlerService.deleteUnqualifiedHandler(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "下载附件") |
| | | @GetMapping("/downFile") |
| | | public Result<?> oaDownFile(Integer id) { |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出不合格处理记录") |
| | | @GetMapping("/exportUnqualifiedHandler") |
| | | public void exportUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto,HttpServletResponse response) { |
| | | unqualifiedHandlerService.exportUnqualifiedHandler(unqualifiedHandlerDto,response); |
| | | } |
| | | |
| | | |
| | | } |