Commit 750669fe authored by maqing's avatar maqing

查看详情

parent 266f7e88
...@@ -146,7 +146,7 @@ public class TaskServiceImpl implements TaskService { ...@@ -146,7 +146,7 @@ public class TaskServiceImpl implements TaskService {
} }
//插入评定任报告 //插入评定任报告
ChAprReport report = new ChAprReport(); ChAprReport report = new ChAprReport();
//report.setTaskId(taskId); report.setTaskId(taskId);
report.setEffTime(new Date()); report.setEffTime(new Date());
report.setRemark(remark); report.setRemark(remark);
report.setDisableLevelId(disableLevelId); report.setDisableLevelId(disableLevelId);
...@@ -197,7 +197,7 @@ public class TaskServiceImpl implements TaskService { ...@@ -197,7 +197,7 @@ public class TaskServiceImpl implements TaskService {
@Override @Override
public TaskReportVO getReportById(String reportId) { public TaskReportVO getReportById(String reportId) {
TaskReportVO reportById = taskMapper.getReportById(reportId); TaskReportVO reportById = taskMapper.getReportById(reportId);
List<ChAprReportFraction> chAprReportFractions = chAprReportFractionMapper.selectList(new LambdaQueryWrapper<ChAprReportFraction>().eq(ChAprReportFraction::getReportId, 125)); List<ChAprReportFraction> chAprReportFractions = chAprReportFractionMapper.selectList(new LambdaQueryWrapper<ChAprReportFraction>().eq(ChAprReportFraction::getReportId, reportId));
if(chAprReportFractions.isEmpty()|| chAprReportFractions.size()==0){ if(chAprReportFractions.isEmpty()|| chAprReportFractions.size()==0){
return reportById; return reportById;
} }
...@@ -289,8 +289,14 @@ public class TaskServiceImpl implements TaskService { ...@@ -289,8 +289,14 @@ public class TaskServiceImpl implements TaskService {
} }
} }
if(!chAprReportFractions.isEmpty() && chAprReportFractions.size()>0){ if(!chAprReportFractions.isEmpty() && chAprReportFractions.size()>0){
chAprReportFractionService.updateChAprReportFraction(chAprReportFractions); for (ChAprReportFraction chAprReportFraction: chAprReportFractions) {
chAprReportFraction.setReportId(chAprReport.getReportId());
if(chAprReportFraction.getChAprReportFractionId()==null){
chAprReportFractionMapper.insert(chAprReportFraction);
}else {
chAprReportFractionMapper.updateById(chAprReportFraction);
}
}
} }
......
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