Commit 021e82a8 authored by 赵啸非's avatar 赵啸非

添加申报相关信息

parent 33c3a503
......@@ -25,6 +25,7 @@
<profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.filepath>/mortals/app/data</profiles.filepath>
<skipDeploy>true</skipDeploy>
<phpUrl>http://127.0.0.1:8076/zwfw/inter/user/list</phpUrl>
</properties>
......
......@@ -43,6 +43,7 @@ import com.mortals.xhx.module.company.model.CompanyEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
......@@ -71,10 +72,8 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
@Autowired
private RoleUserService roleUserService;
@Lazy
@Autowired
private IUserFeign userFeign;
@Value("${phpUrl:http://192.168.0.231:8076/zwfw_yx/inter/user/userlist}")
private String phpUrl;
@Override
protected String getExtKey(UserEntity data) {
return data.getLoginName();
......@@ -325,7 +324,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
@Override
public Rest<Void> refreshUser() {
//todo 请求php获取用户
String respJson = HttpUtil.get("http://192.168.0.231:8076/zwfw_yx/inter/user/userlist");
String respJson = HttpUtil.get(phpUrl);
ApiResp<List<UserResp>> rest = JSON.parseObject(respJson, new TypeReference<ApiResp<List<UserResp>>>() {
});
if (200 == rest.getCode()) {
......
......@@ -49,4 +49,4 @@ application:
unloginUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/resource/list,/api/asset/*,/api/*,/uploads/*,/project/file/*,/file/*
uncheckUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/resource/list,/api/asset/*,/api/*,/uploads/*,/project/file/*,/file/*
phpUrl: @profiles.phpUrl@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment