|
|
@ -1,9 +1,11 @@ |
|
|
|
package com.hnac.hzims.common.service; |
|
|
|
package com.hnac.hzims.common.service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.hnac.hzims.common.constant.CommonConstant; |
|
|
|
import com.hnac.hzims.common.logs.utils.StringUtils; |
|
|
|
import com.hnac.hzims.common.logs.utils.StringUtils; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
import org.springframework.http.HttpStatus; |
|
|
|
import org.springframework.http.HttpStatus; |
|
|
@ -22,6 +24,9 @@ public class UserAuthDataService { |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getUserAuthDataSQL(Long userId) { |
|
|
|
public String getUserAuthDataSQL(Long userId) { |
|
|
|
|
|
|
|
if(CommonConstant.SYSTEM_USER.equals(userId)) { |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
R<User> r = userClient.userInfoById(userId); |
|
|
|
R<User> r = userClient.userInfoById(userId); |
|
|
|
String sqlScript = null; |
|
|
|
String sqlScript = null; |
|
|
|
if(r.getCode() != HttpStatus.OK.value() || r.getData() == null) { |
|
|
|
if(r.getCode() != HttpStatus.OK.value() || r.getData() == null) { |
|
|
|