Xingyu Xian 1 týždeň pred
rodič
commit
bc99acd77c
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 2 2
      db/locallife_task.go
  2. 1 1
      route/init.go

+ 2 - 2
db/locallife_task.go

@@ -1400,7 +1400,7 @@ func GetLocalTaskIdList(ctx context.Context, localId string) ([]string, int64, e
 	// Get count first
 	var total int64
 	if err := db.Model(gorm_model.YounggeeLocalLifeInfo{}).
-		Where("data_status = ? and local_id = ?", 5, localId).
+		Where("link_status = ? and local_id = ?", 5, localId).
 		Count(&total).
 		Error; err != nil {
 		logrus.WithContext(ctx).Errorf("[GetLocalTaskIdList] error counting task, err:%+v", err)
@@ -1411,7 +1411,7 @@ func GetLocalTaskIdList(ctx context.Context, localId string) ([]string, int64, e
 	var taskIds []string
 	err := db.Debug().
 		Model(gorm_model.YounggeeLocalLifeInfo{}).
-		Where("data_status = ? and local_id = ?", 5, localId).
+		Where("link_status = ? and local_id = ?", 5, localId).
 		Order("update_at desc").
 		Pluck("task_id", &taskIds).
 		Error

+ 1 - 1
route/init.go

@@ -46,7 +46,7 @@ func InitRoute(r *gin.Engine) {
 		job.POST("/delete", handler.WrapdeleteJobHandler) // 商家删除岗位
 	}
 
-	accountInfo := r.Group("/youngee/b")
+	accountInfo := r.Group("/youngee")
 	{
 		accountInfo.Use(middleware.LoginAuthMiddleware)
 		accountInfo.POST("/getUserInfo", handler.WrapGetUserInfoHandler)              // 商家用户信息