Commit dd7acf9a authored by 蔡镇泽's avatar 蔡镇泽

评定报告修改

parent 17d2d250
...@@ -86,4 +86,13 @@ public class TaskController { ...@@ -86,4 +86,13 @@ public class TaskController {
return Result.success(); return Result.success();
} }
/**
* 评定报告修改
*/
@RequestMapping("/updateReport")
public Result updateReport(String reportId, Integer disableLevelId, String polNo, String remark) {
taskService.updateReport(reportId, disableLevelId, polNo, remark);
return Result.success();
}
} }
...@@ -48,4 +48,6 @@ public interface TaskService { ...@@ -48,4 +48,6 @@ public interface TaskService {
List<ChAprEmp> aprEmpList(); List<ChAprEmp> aprEmpList();
void addReport(ChAprReport chAprReport); void addReport(ChAprReport chAprReport);
void updateReport(String reportId, Integer disableLevelId, String polNo, String remark);
} }
...@@ -58,4 +58,13 @@ public class TaskServiceImpl implements TaskService { ...@@ -58,4 +58,13 @@ public class TaskServiceImpl implements TaskService {
public void addReport(ChAprReport chAprReport) { public void addReport(ChAprReport chAprReport) {
aprReportMapper.insert(chAprReport); aprReportMapper.insert(chAprReport);
} }
@Override
public void updateReport(String reportId, Integer disableLevelId, String polNo, String remark) {
ChAprReport chAprReport = aprReportMapper.selectById(reportId);
chAprReport.setDisableLevelId(disableLevelId);
chAprReport.setPolNo(polNo);
chAprReport.setRemark(remark);
aprReportMapper.updateById(chAprReport);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment