单点登录公用文件

This commit is contained in:
yuqh 2024-06-27 12:35:09 +08:00
parent d0206cb1c4
commit f6a9f58b2b
1 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.hzya.frame.webapp.entrance.controler;
import com.hzya.frame.bip.v3.v2207.service.IBipSsoService;
import com.hzya.frame.sysnew.application.service.ISysApplicationService;
import com.hzya.frame.sys.entity.EsbReturnEntity;
import com.hzya.frame.sys.file.download.entity.FileDownloadEntity;
@ -29,6 +30,8 @@ import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@ -43,7 +46,8 @@ import java.nio.charset.StandardCharsets;
@RequestMapping("/entranceController")
public class EntranceController {
private final Logger logger = LoggerFactory.getLogger(EntranceController.class);
@Autowired
protected IBipSsoService bipSsoService;
@Autowired
@Qualifier(value = "entranceServiceImpl")
private IEntranceService entranceService;
@ -169,4 +173,11 @@ public class EntranceController {
public JsonResultEntity externalCallInterfaceToESB(ServletRequest servletRequest, ServletResponse servletResponse) throws Exception {
return sysApplicationService.externalCallInterfaceToESB(servletRequest,servletResponse);
}
@RequestMapping(value = "/erpSso")
@ResponseBody
public String erpSso(HttpServletRequest request, HttpServletResponse response, String ticket) throws Exception {
response.sendRedirect(bipSsoService.erpSso(request,ticket));
return null;
}
}