shuzhan 9 meses atrás
pai
commit
e8bfe48abb

+ 2 - 0
web/src/main/java/com/jpsoft/campus/config/WebMvcConfig.java

@@ -65,6 +65,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
 				.excludePathPatterns("/mobile/personInfoApi/updateUploadStatus")
 				.excludePathPatterns("/mobile/personInfoApi/dwonProvincialUserMessage")
 				.excludePathPatterns("/mobile/personInfoApi/updateProvincialStatus")
+				.excludePathPatterns("/uias/externalRecback")
+
 		;
 	}
 }

+ 65 - 0
web/src/main/java/com/jpsoft/campus/modules/mobile/controller/UiasApiController.java

@@ -0,0 +1,65 @@
+package com.jpsoft.campus.modules.mobile.controller;
+
+import com.jpsoft.campus.modules.base.entity.ApplicationPrimary;
+import com.jpsoft.campus.modules.base.entity.Collect;
+import com.jpsoft.campus.modules.base.entity.PersonInfo;
+import com.jpsoft.campus.modules.base.entity.StudentInfo;
+import com.jpsoft.campus.modules.base.service.*;
+import com.jpsoft.campus.modules.common.dto.MessageResult;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.*;
+
+/**
+ * 问卷保存
+ *
+ */
+@Slf4j
+@Controller
+@RequestMapping("/uias")
+public class UiasApiController {
+
+    @Autowired
+    private CollectService collectService;
+    @Autowired
+    private ApplicationPrimaryService applicationPrimaryService;
+    @Autowired
+    private StudentInfoService studentInfoService;
+    @Autowired
+    private PersonInfoService personInfoService;
+    @Autowired
+    private PersonStudentService personStudentService;
+
+
+    @RequestMapping(value = "/externalRecback", method = {RequestMethod.POST, RequestMethod.GET})
+    @ResponseBody
+    public String externalRecback(HttpServletRequest request, HttpServletResponse response){
+        String url = "http://wsbm.xiaoxinda.com/#/external/index";
+        MessageResult<Map> messageResult = new MessageResult<>();
+        try {
+            String code = (String)request.getParameter("code");
+            String appCode = (String)request.getParameter("appCode");
+            String gotoUrl = (String)request.getParameter("gotoUrl");
+            System.out.println(code);
+            System.out.println(appCode);
+            System.out.println(gotoUrl);
+            response.setContentType("application/json;charset=utf-8");
+            response.sendRedirect(url);
+        } catch (Exception ex){
+            log.error(ex.getMessage(),ex);
+
+            messageResult.setCode(500);
+            messageResult.setResult(false);
+            messageResult.setMessage(ex.getMessage());
+        }
+        return null;
+    }
+
+}