|
|
@ -52,9 +52,6 @@ public class LoginController {
|
|
|
|
@Value("${EMRMEDICALRECORD_PORT}")
|
|
|
|
@Value("${EMRMEDICALRECORD_PORT}")
|
|
|
|
private String port;
|
|
|
|
private String port;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${POWER_PORT}")
|
|
|
|
|
|
|
|
private String POWER_PORT;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "login",method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "login",method = RequestMethod.GET)
|
|
|
|
public String toLogin(Model model){
|
|
|
|
public String toLogin(Model model){
|
|
|
|
Power_Login_Set loginSet = powerLoginSetMapper.selectByPrimaryKey(sysFlag);
|
|
|
|
Power_Login_Set loginSet = powerLoginSetMapper.selectByPrimaryKey(sysFlag);
|
|
|
@ -134,6 +131,8 @@ public class LoginController {
|
|
|
|
if(sysFlag == 2){
|
|
|
|
if(sysFlag == 2){
|
|
|
|
url = EMRMEDICALRECORD_URLHEAD+"/login?token="+token+"&userName="+user.getUserName()+"&flag=1";
|
|
|
|
url = EMRMEDICALRECORD_URLHEAD+"/login?token="+token+"&userName="+user.getUserName()+"&flag=1";
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
//获取本地端口
|
|
|
|
|
|
|
|
int POWER_PORT = request.getLocalPort();
|
|
|
|
url = "http://"+ip+":"+POWER_PORT+"/power/gatewayPage";
|
|
|
|
url = "http://"+ip+":"+POWER_PORT+"/power/gatewayPage";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//request.getRequestDispatcher(url).forward(request, response);
|
|
|
|
//request.getRequestDispatcher(url).forward(request, response);
|
|
|
|