|
@@ -16,6 +16,9 @@ import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Example;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -62,7 +65,10 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Hand
|
|
|
}
|
|
|
}else if("update".equals(req.getSyncType())){
|
|
|
ExamStudentInfo examStudent = ExamStudentBeanConvert.of(req);
|
|
|
- examStudentService.syncExamStudentAllData(Lists.newArrayList(examStudent));
|
|
|
+ List<Long> examStudentIdList = examStudentService.saveExamStudentList(Lists.newArrayList(examStudent));
|
|
|
+ for (Long cur : examStudentIdList) {
|
|
|
+ examStudentCache.refresh(cur);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
SyncExamStudentResp resp = new SyncExamStudentResp();
|