Browse Source

更新企业档案与面谈接口修改

anderx 9 months ago
parent
commit
8a27b8c120

+ 27 - 0
src/main/java/com/goafanti/customer/bo/UserArchivesDetails.java

@@ -17,6 +17,33 @@ public class UserArchivesDetails extends UserArchives {
     private Integer newChannel;
     private Integer channelType;
     private Integer signBills;
+    private Integer LocationProvince;
+    private Integer LocationCity;
+    private Integer LocationArea;
+
+    public Integer getLocationProvince() {
+        return LocationProvince;
+    }
+
+    public void setLocationProvince(Integer locationProvince) {
+        LocationProvince = locationProvince;
+    }
+
+    public Integer getLocationCity() {
+        return LocationCity;
+    }
+
+    public void setLocationCity(Integer locationCity) {
+        LocationCity = locationCity;
+    }
+
+    public Integer getLocationArea() {
+        return LocationArea;
+    }
+
+    public void setLocationArea(Integer locationArea) {
+        LocationArea = locationArea;
+    }
 
     private List<UserArchivesInterview> interviewList;
 

+ 6 - 0
src/main/java/com/goafanti/customer/service/impl/UserArchivesServiceImpl.java

@@ -45,6 +45,8 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
     private UserDataLogMapper userDataLogMapper;
     @Resource
     private UserFirstInterviewMapper userFirstInterviewMapper;
+    @Resource
+    private OrganizationIdentityMapper organizationIdentityMapper;
 
 
 
@@ -72,6 +74,10 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
     public Object queryByUidAll(String id) {
         UserArchivesDetails user = customerService.selectUserByUid(id);
         User u = userMapper.queryById(id);
+        OrganizationIdentity ori = organizationIdentityMapper.selectOrgIdentityByUserId(id);
+        user.setLocationProvince(ori.getLocationProvince());
+        user.setLocationCity(ori.getLocationCity());
+        user.setLocationArea(ori.getLocationArea());
         if (u.getAid().equals(TokenManager.getAdminId())){
             user.setMyUser(1);
         }else {