// 如果report为空,则抛出运行时异常“找不到数据” if (report == null) throw new RuntimeException("找不到数据"); // 根据report的audirId获取TDAgrunitaudit对象 TDAgrunitaudit audit = agrunitauditMapper.selectTDAgrunitauditById(report.getAudirId()); // 根据report的agrunitauditId获取TDJpxldagrunitaudit对象 TDJpxldagrunitaudit jpxlAudit = jpxldagrunitauditMapper.selectTDJpxldagrunitauditById(report.getAgrunitauditId());

// 如果当前用户的地点与report的ownerid不同,则抛出运行时异常“非法操作” if (!user.getPlace().equals(report.getOwnerid())) throw new RuntimeException("非法操作");

// 如果report或audit为空,则抛出运行时异常“数据异常” if (report == null || audit == null) throw new RuntimeException("数据异常"); // 如果audit的状态为已提交,则抛出运行时异常“该填报已提交,请先退回” if (!checkJadStatus(audit.getStatus())) throw new RuntimeException("该填报已提交,请先退回");

// 根据item检查JPXL属性是否符合要求,如果不符合则抛出运行时异常,并返回提示信息 String msg = item.checkJPXLAttr(); if (!StringHelper.isEmpty(msg)) throw new RuntimeException(msg); // 将item赋值给report的attr属性 report.setAttr(item)


原文地址: https://www.cveoy.top/t/topic/feTr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录