|
@@ -1,9 +1,12 @@
|
|
|
package com.rtrh.projects.modules.account.service.impl;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.rtrh.projects.modules.account.mapper.CommUserMapper;
|
|
|
+import com.rtrh.projects.util.HttpClientUtil;
|
|
|
import com.rtrh.projects.util.TargetDataSource;
|
|
|
import org.hibernate.criterion.Order;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -45,12 +48,16 @@ public class CommUserServiceImpl implements CommUserService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TargetDataSource(value="secondary")
|
|
|
+ //@TargetDataSource(value="secondary")
|
|
|
public CommUser findCommUserByFgwLoginName(String loginname) {
|
|
|
if(StringUtil.isEmpty(loginname)){
|
|
|
return null;
|
|
|
}
|
|
|
- CommUser commUser = commUserMapper.findCommUserByFgwLoginName(loginname);
|
|
|
+ Object o = HttpClientUtil.fgwGetRequest("/outApi/remote/findCommUserByLoginName", new HashMap<String,String>(){{
|
|
|
+ put("loginname", loginname);
|
|
|
+ }});
|
|
|
+ CommUser commUser = JSON.parseObject(o.toString(), CommUser.class);
|
|
|
+ //CommUser commUser = commUserMapper.findCommUserByFgwLoginName(loginname);
|
|
|
return commUser;
|
|
|
}
|
|
|
|