作者 tangxvhui

日常保存

@@ -1271,7 +1271,19 @@ loop: @@ -1271,7 +1271,19 @@ loop:
1271 return chargeUserList, nil 1271 return chargeUserList, nil
1272 } 1272 }
1273 1273
1274 -func (srv StaffAssessServeice) recoverAssessCache(context application.TransactionContext, assessId int, dataArray []*domain.StaffAssessContent) { 1274 +// TODO
  1275 +func (srv *StaffAssessServeice) getStaffSuperV2(transactionContext application.TransactionContext, targetUser domain.User) ([]*domain.User, error) {
  1276 +
  1277 + userRepo := factory.CreateUserRepository(map[string]interface{}{
  1278 + "transactionContext": transactionContext,
  1279 + })
  1280 +
  1281 + userRepo.Find(map[string]interface{}{})
  1282 +
  1283 + return nil, nil
  1284 +}
  1285 +
  1286 +func (srv *StaffAssessServeice) recoverAssessCache(context application.TransactionContext, assessId int, dataArray []*domain.StaffAssessContent) {
1275 cacheRepository := factory.CreateStaffAssessCacheRepository(map[string]interface{}{"transactionContext": context}) 1287 cacheRepository := factory.CreateStaffAssessCacheRepository(map[string]interface{}{"transactionContext": context})
1276 _, caches, err := cacheRepository.Find(map[string]interface{}{"assessId": assessId, "limit": 1}) 1288 _, caches, err := cacheRepository.Find(map[string]interface{}{"assessId": assessId, "limit": 1})
1277 if err != nil || len(caches) == 0 { 1289 if err != nil || len(caches) == 0 {