feat: 完善小组绩效与有效端统计并修复审查问题
This commit is contained in:
@@ -161,6 +161,11 @@ func (r *accountRepo) Create(ctx context.Context, a *business.Account) error {
|
||||
if err := tx.Create(&po).Error; err != nil {
|
||||
return business.ErrStorage
|
||||
}
|
||||
if a.HireDate != "" {
|
||||
if err := tx.Create(&businessMemberProfilePO{UserID: po.ID, HireDate: a.HireDate, Employment: "employed"}).Error; err != nil {
|
||||
return business.ErrStorage
|
||||
}
|
||||
}
|
||||
if err := tx.Table("sys_user_authority").Create(map[string]any{"sys_user_id": po.ID, "sys_authority_authority_id": po.AuthorityID}).Error; err != nil {
|
||||
return business.ErrStorage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user