|
@@ -388,7 +388,7 @@ func PassLocalTaskCoop(ctx context.Context, req http_model.PasslocalTaskCoopRequ
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
projectinfo.RecruitNum += 1
|
|
projectinfo.RecruitNum += 1
|
|
- projectinfo.EstimatedCost += taskInfo.SupportFee
|
|
|
|
|
|
+ projectinfo.NeedPay += taskInfo.SupportFee
|
|
err = tx.Model(gorm_model.YounggeeLocalLifeInfo{}).Where("local_id = ? ", req.ProjectId).Updates(projectinfo).Error
|
|
err = tx.Model(gorm_model.YounggeeLocalLifeInfo{}).Where("local_id = ? ", req.ProjectId).Updates(projectinfo).Error
|
|
if err != nil {
|
|
if err != nil {
|
|
return err
|
|
return err
|
|
@@ -445,6 +445,7 @@ func PassLocalTaskCoop(ctx context.Context, req http_model.PasslocalTaskCoopRequ
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
projectinfo.RecruitNum += 1
|
|
projectinfo.RecruitNum += 1
|
|
|
|
+ projectinfo.NeedPay += taskInfo.SupportFee
|
|
err = tx.Model(gorm_model.YounggeeLocalLifeInfo{}).Where("local_id = ? ", req.ProjectId).Updates(projectinfo).Error
|
|
err = tx.Model(gorm_model.YounggeeLocalLifeInfo{}).Where("local_id = ? ", req.ProjectId).Updates(projectinfo).Error
|
|
if err != nil {
|
|
if err != nil {
|
|
return err
|
|
return err
|