|
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|
|
import com.cxfws.userLogin.service.ILoginService;
|
|
|
import com.cxfws.userLogin.service.entity.UserJson;
|
|
|
import com.xt.jygl.common.BaseWebCtl;
|
|
|
+import com.xt.jygl.common.GlobalData;
|
|
|
import com.xtframe.sec.role.entity.RoleEntity;
|
|
|
import com.xtframe.sec.user.dao.UserDao;
|
|
|
import com.xtframe.sec.user.entity.UserEntity;
|
|
@@ -28,7 +29,7 @@ public class LoginService extends BaseWebCtl implements ILoginService{
|
|
|
if (!this.checkUser()){
|
|
|
return BaseWebCtl.NOLOGIN;
|
|
|
}
|
|
|
- UserEntity user = userService.findByUname(username);
|
|
|
+ UserEntity user = userService.findByUnameszd(username,GlobalData.CITY_CODE);
|
|
|
UserJson userJson = new UserJson();
|
|
|
if(user!=null){
|
|
|
user.setSsglryzw(user.getSsglry()!=null?user.getSsglry().getXm(): "");
|