|
@@ -12,6 +12,8 @@ import com.fs.medical.param.ReportIndicatorResultQueryDto;
|
|
|
import com.fs.medical.service.ReportIndicatorResultService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Propagation;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
@@ -80,4 +82,13 @@ public class ReportIndicatorResultServiceImpl implements ReportIndicatorResultSe
|
|
|
}
|
|
|
return allIndicatorByReportId;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED)
|
|
|
+ public boolean updateBatch(List<ReportIndicatorResult> resultList) {
|
|
|
+ for (ReportIndicatorResult reportIndicatorResult : resultList) {
|
|
|
+ this.update(reportIndicatorResult);
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|