Browse Source

EPMET_USER库中,user表、staff_role表添加【客户Id】字段

dev_shibei_match
wangchao 5 years ago
parent
commit
52c220ec25
  1. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/StaffRoleDTO.java
  2. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/UserDTO.java
  3. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/StaffRoleEntity.java
  4. 5
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserEntity.java
  5. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserWechatEntity.java
  6. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java
  7. 1
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserServiceImpl.java

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/StaffRoleDTO.java

@ -83,4 +83,6 @@ public class StaffRoleDTO implements Serializable {
*/
private Date updatedTime;
private String customerId;
}

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/UserDTO.java

@ -63,4 +63,5 @@ public class UserDTO implements Serializable{
*/
private Date updatedTime;
private String customerId;
}

4
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/StaffRoleEntity.java

@ -53,4 +53,8 @@ public class StaffRoleEntity extends BaseEpmetEntity {
*/
private String orgId;
/**
* 客户Id
*/
private String customerId;
}

5
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserEntity.java

@ -29,6 +29,9 @@ public class UserEntity extends BaseEpmetEntity {
* */
private String fromClient;
/**
* 客户Id
*/
private String customerId;
}

2
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserWechatEntity.java

@ -74,5 +74,5 @@ public class UserWechatEntity extends BaseEpmetEntity {
*/
private String language;
private String customerId;
}

2
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

@ -303,6 +303,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
UserEntity userEntity = new UserEntity();
userEntity.setFromApp(fromDTO.getApp());
userEntity.setFromClient(fromDTO.getClient());
userEntity.setCustomerId(fromDTO.getCustomerId());
userService.insert(userEntity);
//Customer_Staff表插入数据
CustomerStaffEntity staffEntity = new CustomerStaffEntity();
@ -322,6 +323,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
staffRoleEntity.setStaffId(userEntity.getId());
staffRoleEntity.setRoleId(role);
staffRoleEntity.setOrgId(fromDTO.getAgencyId());
staffRoleEntity.setCustomerId(fromDTO.getCustomerId());
staffRoleService.insert(staffRoleEntity);
});

1
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserServiceImpl.java

@ -91,6 +91,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
UserEntity userEntity = new UserEntity();
userEntity.setFromApp(UserConstant.APP_RESI);
userEntity.setFromClient(UserConstant.CLIENT_WX);
userEntity.setCustomerId(userWechatDTO.getCustomerId());
baseDao.insert(userEntity);
userWechatEntity.setUserId(userEntity.getId());
userWechatDao.insert(userWechatEntity);

Loading…
Cancel
Save