| | |
| | | |
| | | //审核 |
| | | @Override |
| | | public String check(String name, Integer id, String result) { |
| | | public String check(String name, Integer id, Integer result) { |
| | | Report report = new Report(); |
| | | report.setId(id); |
| | | report.setApprover(name); |
| | | report.setCheckTime(new Date()); |
| | | if (result.equals("通过")){ |
| | | report.setStatus(2); |
| | | }else if (result.equals("不通过")){ |
| | | report.setStatus(3); |
| | | } |
| | | report.setStatus(result); |
| | | reportMapper.updateById(report); |
| | | return "审核成功!"; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public Map<String, Object> getReportContext(String code) { |
| | | return reportMapper.getReportContext(code); |
| | | Map<String, Object> reportContext = reportMapper.getReportContext(code); |
| | | System.out.println("========================"); |
| | | System.out.println(reportContext); |
| | | return reportContext; |
| | | } |
| | | |
| | | @Override |