溪鸭夏 2 years ago
parent
commit
bb3ff387eb

+ 68 - 65
.idea/workspace.xml

@@ -2,9 +2,8 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="981dbcd1-a700-4015-8567-2ccff8e76f0a" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/template/controller/SmartDepartmentController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/template/controller/SmartDepartmentController.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/template/model/vo/seewoBatchStudentVo.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/target/mybatis_plus-0.0.1-SNAPSHOT.jar.original" beforeDir="false" afterPath="$PROJECT_DIR$/target/mybatis_plus-0.0.1-SNAPSHOT.jar.original" afterDir="false" />
     </list>
     <ignored path="$PROJECT_DIR$/classes/" />
     <ignored path="$PROJECT_DIR$/target/" />
@@ -32,11 +31,28 @@
       <file pinned="false" current-in-tab="true">
         <entry file="file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="588">
-              <caret line="2621" column="51" selection-start-line="2621" selection-start-column="51" selection-end-line="2621" selection-end-column="51" />
+            <state relative-caret-position="552">
+              <caret line="312" column="78" selection-start-line="312" selection-start-column="78" selection-end-line="312" selection-end-column="78" />
+              <folding>
+                <element signature="imports" expanded="true" />
+                <element signature="e#18791#22877#0" />
+                <element signature="e#22883#38605#0" />
+                <element signature="e#38611#54332#0" />
+                <element signature="e#54338#58897#0" />
+                <element signature="e#58904#66884#0" />
+                <element signature="e#66890#87487#0" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/seewoBatchStudentVo.java">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="414">
+              <caret line="18" column="71" selection-start-line="18" selection-start-column="12" selection-end-line="18" selection-end-column="71" />
               <folding>
                 <element signature="imports" expanded="true" />
-                <element signature="e#65095#85680#0" />
               </folding>
             </state>
           </provider>
@@ -55,7 +71,6 @@
   </component>
   <component name="FindInProjectRecents">
     <findStrings>
-      <find>if (oGrade != null &amp;&amp; oGrade.isPresent())</find>
       <find>importExcelUsers</find>
       <find>删除</find>
       <find>希沃</find>
@@ -85,6 +100,7 @@
       <find>SeewoInsertStudent</find>
       <find>导入</find>
       <find>queryPageSmartUser</find>
+      <find>students</find>
     </findStrings>
     <replaceStrings>
       <replace />
@@ -117,6 +133,7 @@
         <option value="$PROJECT_DIR$/src/main/java/com/template/services/SmartDepartmentService.java" />
         <option value="$PROJECT_DIR$/src/main/java/com/template/services/impl/SmartDepartmentServiceImpl.java" />
         <option value="$PROJECT_DIR$/src/main/java/com/template/controller/SmartDepartmentController.java" />
+        <option value="$PROJECT_DIR$/src/main/java/com/template/model/vo/seewoBatchStudentVo.java" />
         <option value="$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java" />
       </list>
     </option>
@@ -151,7 +168,7 @@
   </component>
   <component name="ProjectFrameBounds">
     <option name="x" value="-7" />
-    <option name="width" value="958" />
+    <option name="width" value="974" />
     <option name="height" value="1039" />
   </component>
   <component name="ProjectView">
@@ -237,7 +254,8 @@
               <item name="main" type="462c0819:PsiDirectoryNode" />
               <item name="java" type="462c0819:PsiDirectoryNode" />
               <item name="template" type="462c0819:PsiDirectoryNode" />
-              <item name="services" type="462c0819:PsiDirectoryNode" />
+              <item name="model" type="462c0819:PsiDirectoryNode" />
+              <item name="vo" type="462c0819:PsiDirectoryNode" />
             </path>
             <path>
               <item name="mybatis_plus" type="b2602c69:ProjectViewProjectNode" />
@@ -247,7 +265,6 @@
               <item name="java" type="462c0819:PsiDirectoryNode" />
               <item name="template" type="462c0819:PsiDirectoryNode" />
               <item name="services" type="462c0819:PsiDirectoryNode" />
-              <item name="impl" type="462c0819:PsiDirectoryNode" />
             </path>
             <path>
               <item name="mybatis_plus" type="b2602c69:ProjectViewProjectNode" />
@@ -343,12 +360,12 @@
       <option name="number" value="Default" />
       <option name="presentableId" value="Default" />
       <updated>1712903307839</updated>
-      <workItem from="1712903309092" duration="56943000" />
+      <workItem from="1712903309092" duration="59038000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="56943000" />
+    <option name="totallyTimeSpent" value="59038000" />
   </component>
   <component name="ToolWindowManager">
     <frame x="-8" y="-8" width="1936" height="1048" extended-state="6" />
@@ -361,7 +378,7 @@
       <window_info id="Favorites" side_tool="true" />
       <window_info id="Designer" />
       <window_info id="Web" side_tool="true" />
-      <window_info content_ui="combo" id="Project" order="0" weight="0.13219616" />
+      <window_info content_ui="combo" id="Project" order="0" weight="0.15511727" />
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
       <window_info anchor="bottom" id="Spring" weight="0.32932165" />
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
@@ -376,7 +393,7 @@
       <window_info anchor="bottom" id="Message" order="0" />
       <window_info anchor="bottom" id="Find" order="1" weight="0.32932165" />
       <window_info anchor="bottom" id="Run" order="2" weight="0.45185995" />
-      <window_info active="true" anchor="bottom" id="Debug" order="3" visible="true" weight="0.09190372" />
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.09190372" />
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
       <window_info anchor="bottom" id="TODO" order="6" />
@@ -425,13 +442,13 @@
         </line-breakpoint>
         <line-breakpoint enabled="true" type="java-line">
           <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>1131</line>
+          <line>1173</line>
           <properties />
           <option name="timeStamp" value="14" />
         </line-breakpoint>
         <line-breakpoint enabled="true" type="java-line">
           <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2935</line>
+          <line>3032</line>
           <properties />
           <option name="timeStamp" value="31" />
         </line-breakpoint>
@@ -443,45 +460,14 @@
         </line-breakpoint>
         <line-breakpoint enabled="true" type="java-line">
           <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2410</line>
+          <line>2504</line>
           <properties />
           <option name="timeStamp" value="66" />
         </line-breakpoint>
-        <line-breakpoint enabled="true" type="java-line">
-          <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2626</line>
-          <properties />
-          <option name="timeStamp" value="70" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" type="java-line">
-          <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2613</line>
-          <properties />
-          <option name="timeStamp" value="71" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" type="java-line">
-          <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2622</line>
-          <properties />
-          <option name="timeStamp" value="72" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" type="java-line">
-          <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java</url>
-          <line>2616</line>
-          <properties />
-          <option name="timeStamp" value="73" />
-        </line-breakpoint>
       </breakpoints>
     </breakpoint-manager>
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/BsDeviceNoVo.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="253">
-          <caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/BsDeviceVo.java">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="253">
@@ -800,23 +786,27 @@
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/seewo/StudentServiceBatchSaveClassStudentsResult.java">
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/services/SmartDepartmentService.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="80">
-          <caret line="75" column="24" selection-start-line="75" selection-start-column="24" selection-end-line="75" selection-end-column="24" />
-          <folding>
-            <element signature="e#568#569#0" expanded="true" />
-            <element signature="e#608#609#0" expanded="true" />
-            <element signature="e#1360#1361#0" expanded="true" />
-            <element signature="e#1400#1401#0" expanded="true" />
-          </folding>
+        <state relative-caret-position="667">
+          <caret line="34" column="23" selection-start-line="34" selection-start-column="8" selection-end-line="34" selection-end-column="23" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/services/SmartDepartmentService.java">
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/UserVo.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="667">
-          <caret line="34" column="23" selection-start-line="34" selection-start-column="8" selection-end-line="34" selection-end-column="23" />
+        <state relative-caret-position="152">
+          <caret line="113" column="19" selection-start-line="113" selection-start-column="19" selection-end-line="113" selection-end-column="19" />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/seewoBatchStudentVo.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="414">
+          <caret line="18" column="71" selection-start-line="18" selection-start-column="12" selection-end-line="18" selection-end-column="71" />
+          <folding>
+            <element signature="imports" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
@@ -827,20 +817,33 @@
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/vo/UserVo.java">
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/template/model/seewo/StudentServiceBatchSaveClassStudentsResult.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="152">
-          <caret line="113" column="19" selection-start-line="113" selection-start-column="19" selection-end-line="113" selection-end-column="19" />
+        <state relative-caret-position="310">
+          <caret line="87" column="34" selection-start-line="87" selection-start-column="23" selection-end-line="87" selection-end-column="34" />
+          <folding>
+            <element signature="e#568#569#0" expanded="true" />
+            <element signature="e#608#609#0" expanded="true" />
+            <element signature="e#1360#1361#0" expanded="true" />
+            <element signature="e#1400#1401#0" expanded="true" />
+            <element signature="e#3021#3022#0" expanded="true" />
+            <element signature="e#3063#3064#0" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
     <entry file="file://$PROJECT_DIR$/src/main/java/com/template/controller/SmartUserController.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="588">
-          <caret line="2621" column="51" selection-start-line="2621" selection-start-column="51" selection-end-line="2621" selection-end-column="51" />
+        <state relative-caret-position="552">
+          <caret line="312" column="78" selection-start-line="312" selection-start-column="78" selection-end-line="312" selection-end-column="78" />
           <folding>
             <element signature="imports" expanded="true" />
-            <element signature="e#65095#85680#0" />
+            <element signature="e#18791#22877#0" />
+            <element signature="e#22883#38605#0" />
+            <element signature="e#38611#54332#0" />
+            <element signature="e#54338#58897#0" />
+            <element signature="e#58904#66884#0" />
+            <element signature="e#66890#87487#0" />
           </folding>
         </state>
       </provider>

+ 115 - 18
src/main/java/com/template/controller/SmartUserController.java

@@ -220,6 +220,7 @@ public class SmartUserController implements SmartUserControllerAPI {
             return CommonResult.fail("年级数据无效,新增失败");
         }
 
+        HashMap<String, List<StudentServiceBatchSaveClassStudentsParam.StudentInfo>> seewoDatas = new HashMap<>();
         for (SmartUser student : studentDatas) {
 
             //region 学生参数必填判断:年级、班级
@@ -245,19 +246,36 @@ public class SmartUserController implements SmartUserControllerAPI {
             SmartClass classData = oClassData.get();
             SmartGrade gradeData = oGradeData.get();
 
-            //region 希沃新增学生信息
+            //region 凑希沃参数
             if (useXw == 1) {
-                //初始化客户端
-                SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
-                CommonResult<String> insertStudent = SeewoInsertStudent(seewoClient, student.getName(), student.getCardNo(), student.getSexId(), student.getPhone(), classData.getClassUid());
-                if (!insertStudent.isSuccess()) {
-                    return CommonResult.fail(insertStudent.getMessage());
+                if (!seewoDatas.containsKey(classData.getClassUid())) {
+                    seewoDatas.put(classData.getClassUid(), new ArrayList<>());
                 }
 
-                student.setXwStudentUid(insertStudent.getData());
+                StudentServiceBatchSaveClassStudentsParam.StudentInfo studentSeewo = StudentServiceBatchSaveClassStudentsParam.StudentInfo.builder()
+                        .studentName(student.getName())
+                        .studentCode(student.getCardNo())
+                        .gender(student.getSexId())
+                        .phone(student.getPhone() == null ? "" : student.getPhone())
+                        .build();
+
+                seewoDatas.get(classData.getClassUid()).add(studentSeewo);
             }
             //endregion
 
+            //region 希沃新增学生信息
+//            if (useXw == 1) {
+//                //初始化客户端
+//                SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
+//                CommonResult<String> insertStudent = SeewoInsertStudent(seewoClient, student.getName(), student.getCardNo(), student.getSexId(), student.getPhone(), classData.getClassUid());
+//                if (!insertStudent.isSuccess()) {
+//                    return CommonResult.fail(insertStudent.getMessage());
+//                }
+//
+//                student.setXwStudentUid(insertStudent.getData());
+//            }
+            //endregion
+
             //region 百胜新增学生信息
             if (useBs == 1) {
                 /**
@@ -275,6 +293,30 @@ public class SmartUserController implements SmartUserControllerAPI {
 
         }
 
+        if (useXw == 1) {
+            //初始化客户端
+            SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
+
+            List<StudentServiceBatchSaveClassStudentsResult.StudentInfoDto> seewoResultDatas = new ArrayList<>();
+            for (Map.Entry<String, List<StudentServiceBatchSaveClassStudentsParam.StudentInfo>> entry : seewoDatas.entrySet()) {
+                String classUid = entry.getKey();
+                CommonResult<List<StudentServiceBatchSaveClassStudentsResult.StudentInfoDto>> insertStudents = SeewoInsertBatchStudent(seewoClient, entry.getValue(), classUid);
+                if (!insertStudents.isSuccess()) {
+                    return CommonResult.fail(insertStudents.getMessage());
+                }
+                seewoResultDatas.addAll(insertStudents.getData());
+            }
+
+            for (SmartUser student : studentDatas) {
+                Optional<StudentServiceBatchSaveClassStudentsResult.StudentInfoDto> seewoResultData = seewoResultDatas.stream().filter(e -> e.getStudentCode().equals(student.getCardNo())).findFirst();
+                if(seewoResultData != null && seewoResultData.isPresent()){
+                    student.setXwStudentUid(seewoResultData.get().getUserUid());
+                }
+            }
+
+        }
+
+
         if (studentDatas != null && studentDatas.size() > 0) {
             //批量存储学生信息
             boolean resultBool = smartUserService.saveBatch(studentDatas);
@@ -1384,7 +1426,8 @@ public class SmartUserController implements SmartUserControllerAPI {
      */
     @Override
     @DESRespondSecret(validated = true)
-    public CommonResult updateSmartUserById(updateSmartUserRequest usur, BindingResult bindingResult) throws Exception {
+    public CommonResult updateSmartUserById(updateSmartUserRequest usur, BindingResult bindingResult) throws
+            Exception {
         if (bindingResult.hasErrors()) {
             String st = paramUtils.getParamError(bindingResult);
             return CommonResult.fail(st);
@@ -1828,8 +1871,53 @@ public class SmartUserController implements SmartUserControllerAPI {
 
     //region 希沃增删改查方法
 
+    //region 希沃批量新增学生信息
+    public CommonResult<List<StudentServiceBatchSaveClassStudentsResult.StudentInfoDto>> SeewoInsertBatchStudent
+    (SeewoClient seewoClient, List<StudentServiceBatchSaveClassStudentsParam.StudentInfo> students, String
+            classUid) {
+        //region 希沃新增学生信息
+        //初始化客户端
+        //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
+        StudentServiceBatchSaveClassStudentsParam param = new StudentServiceBatchSaveClassStudentsParam();
+        //请求体,MimeType为 application/json
+        StudentServiceBatchSaveClassStudentsParam.JSONRequestBody requestBody = StudentServiceBatchSaveClassStudentsParam.JSONRequestBody.builder()
+                .build();
+        param.setRequestBody(requestBody);
+        //查询条件
+        StudentServiceBatchSaveClassStudentsParam.StudentSaveQuery query = StudentServiceBatchSaveClassStudentsParam.StudentSaveQuery.builder()
+                .appId(seewoConfig.getAppId())
+                .schoolUid(seewoConfig.getSchoolId())
+                .classUid(classUid)
+                .build();
+        requestBody.setQuery(query);
+        // 学生列表
+        query.setStudents(students);
+        query.setInPlaceOld(false);// 是否删除旧学生再保存
+        param.setRequestBody(requestBody);
+        StudentServiceBatchSaveClassStudentsRequest request = new StudentServiceBatchSaveClassStudentsRequest(param);
+        System.out.println("入参:" + request);
+        //如果想要调用沙箱环境,请通过设置 request 对象的 serverUrl 属性,如:
+        //request.setServerUrl("https://openapi.test.seewo.com")
+        //执行请求,如果想获取到com.seewo.open.sdk.HttpResponse对象,请调用 seewoClient.execute 方法
+        StudentServiceBatchSaveClassStudentsResult result = seewoClient.invoke(request);
+        System.out.println("出参:" + result);
+
+        if (result == null) {
+            return CommonResult.fail("希沃学生数据新增失败!");
+        }
+
+        if (!result.getResponseBody().getCode().equals("000000")) {
+            return CommonResult.fail(result.getResponseBody().getMessage());
+        }
+
+        return CommonResult.ok("200", "添加成功", result.getResponseBody().getData());
+        //endregion
+    }
+    //endregion
+
     //region 希沃新增学生信息
-    public CommonResult<String> SeewoInsertStudent(SeewoClient seewoClient, String name, String cardNo, Integer sexId, String Phone, String classUid) {
+    public CommonResult<String> SeewoInsertStudent(SeewoClient seewoClient, String name, String cardNo, Integer
+            sexId, String Phone, String classUid) {
         //region 希沃新增学生信息
         //初始化客户端
         //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
@@ -1958,7 +2046,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //region 希沃添加老师数据
     //老师数据会根据手机号判断新增不新增
     //手机号相同的情况下更新不新增
-    public CommonResult<String> SeewoInsertTeacher(SeewoClient seewoClient, String phone, String name, String headImage) {
+    public CommonResult<String> SeewoInsertTeacher(SeewoClient seewoClient, String phone, String name, String
+            headImage) {
         //region 希沃添加教师数据
         //初始化客户端
         //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
@@ -2010,7 +2099,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 希沃更新教师
-    public CommonResult<String> SeewoUpdateTeacher(SeewoClient seewoClient, String phone, String name, String headImage) {
+    public CommonResult<String> SeewoUpdateTeacher(SeewoClient seewoClient, String phone, String name, String
+            headImage) {
         //region 希沃更新教师数据
         //初始化客户端
         //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
@@ -2184,7 +2274,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 希沃新增编辑学生家长信息
-    public CommonResult insertOrUpdateStudentParent(SeewoClient seewoClient, List<SmartUser> studentDatas, String name, String phone) {
+    public CommonResult insertOrUpdateStudentParent(SeewoClient
+                                                            seewoClient, List<SmartUser> studentDatas, String name, String phone) {
         //region 希沃新增编辑学生家长信息
         //学生与家长列表,最大100条
         List<ParentServiceBatchSaveOrUpdateParentsParam.StudentParentsItem> studentParents = new ArrayList<>();
@@ -2241,7 +2332,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 希沃删除学生原有的家长关系
-    public CommonResult deleteOldStudentParentShip(SeewoClient seewoClient, String cardNo, List<String> phones) throws JsonProcessingException {
+    public CommonResult deleteOldStudentParentShip(SeewoClient seewoClient, String cardNo, List<String> phones) throws
+            JsonProcessingException {
         //region 删除原有的家长关系
         //初始化客户端
         //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
@@ -2290,7 +2382,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 希沃删除原有的家长关系
-    public CommonResult deleteOldParentShip(SeewoClient seewoClient, List<SmartUser> studentDatas, String phone) throws JsonProcessingException {
+    public CommonResult deleteOldParentShip(SeewoClient seewoClient, List<SmartUser> studentDatas, String phone) throws
+            JsonProcessingException {
         //region 删除原有的家长关系
         //初始化客户端
         //SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
@@ -2382,7 +2475,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 百胜新增学生
-    public CommonResult<String> bsInsertStudent(String name, String cardNo, Integer sexId, String headImage, Integer timeGroupId, String bsClassNo, String startDate, String endDate) throws Exception {
+    public CommonResult<String> bsInsertStudent(String name, String cardNo, Integer sexId, String
+            headImage, Integer timeGroupId, String bsClassNo, String startDate, String endDate) throws Exception {
         //region 百胜新增学生信息
         String appId = controlConfig.getAppId();
         String schoolno = controlConfig.getSchoolCode();
@@ -2462,7 +2556,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 百胜添加教师
-    public CommonResult<String> bsInsertTeacher(SmartUser su, String departmentNo, String startDate, String endDate) throws Exception {
+    public CommonResult<String> bsInsertTeacher(SmartUser su, String departmentNo, String startDate, String endDate) throws
+            Exception {
         //region 百胜添加教师数据
         String appId = controlConfig.getAppId();
         String schoolno = controlConfig.getSchoolCode();
@@ -2506,7 +2601,8 @@ public class SmartUserController implements SmartUserControllerAPI {
     //endregion
 
     //region 百胜更新教师
-    public CommonResult<String> updateBsTeacher(SmartUser su, String departmentNo, String startDate, String endDate) throws Exception {
+    public CommonResult<String> updateBsTeacher(SmartUser su, String departmentNo, String startDate, String endDate) throws
+            Exception {
         //region 百胜更新教师数据
         String appId = controlConfig.getAppId();
         String schoolno = controlConfig.getSchoolCode();
@@ -2800,7 +2896,8 @@ public class SmartUserController implements SmartUserControllerAPI {
      * @param lists    数据集合
      * @return
      */
-    private List<DepartmentTreeVo> QueryDepartmentTreeRecords(Integer parentID, List<SmartDepartment> lists, List<Integer> departmentIds) {
+    private List<DepartmentTreeVo> QueryDepartmentTreeRecords(Integer
+                                                                      parentID, List<SmartDepartment> lists, List<Integer> departmentIds) {
         List<DepartmentTreeVo> newTrees = new ArrayList<>();
 
         List<SmartDepartment> datas = lists.stream().filter(e -> e.getParentId().equals(parentID)).collect(Collectors.toList());

+ 21 - 0
src/main/java/com/template/model/vo/seewoBatchStudentVo.java

@@ -0,0 +1,21 @@
+package com.template.model.vo;
+
+import com.template.model.seewo.StudentServiceBatchSaveClassStudentsParam;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @Author: binguo
+ * @Date: 2024/1/5 星期五 14:53
+ * @Description: com.template.model.vo
+ * @Version: 1.0
+ */
+@Data
+public class seewoBatchStudentVo {
+
+    private String classUid;
+
+    private List<StudentServiceBatchSaveClassStudentsParam.StudentInfo> students;
+
+}

+ 1 - 0
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -753,6 +753,7 @@ com\template\model\seewo\AttendanceRuleListEventByClazzResult$EventsItem.class
 com\template\model\seewo\AttendanceRuleListSchoolAttendRuleParam$RequestBody$RequestBodyBuilder.class
 com\template\api\RepairAdminControllerAPI.class
 com\template\mapper\SmartMeterDetailMapper.class
+com\template\model\vo\seewoBatchStudentVo.class
 com\template\common\utils\AccessToken.class
 com\template\model\seewo\TeacherServiceBatchSetClassMastersParam.class
 com\template\core\SwaggerConfiguration.class

+ 1 - 0
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@@ -156,6 +156,7 @@ D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\templa
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\controller\SmartMenuController.java
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\mapper\SmartFreezeRecordMapper.java
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\api\SmartDataClassControllerAPI.java
+D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\model\vo\seewoBatchStudentVo.java
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\api\OutdoorScreenControllerAPI.java
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\model\request\changePasswordRequest.java
 D:\Bingo\Desktop\工作内容\万载三中\backend_code\src\main\java\com\template\model\vo\BsTimeGroupVo.java

BIN
target/mybatis_plus-0.0.1-SNAPSHOT.jar.original