feat: 完善小组绩效与有效端统计并修复审查问题

This commit is contained in:
Yvan
2026-11-05 01:10:03 +08:00
parent ca9ce99b66
commit dc97690eb1
75 changed files with 5033 additions and 296 deletions
+5
View File
@@ -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
}