|
@@ -2,6 +2,7 @@ package service
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
+ "time"
|
|
|
"youngee_b_api/app/dao"
|
|
|
"youngee_b_api/app/entity"
|
|
|
"youngee_b_api/app/vo"
|
|
@@ -24,7 +25,7 @@ func (s BillService) PaySelection(param *vo.PayParam) error {
|
|
|
if err2 != nil {
|
|
|
return err2
|
|
|
}
|
|
|
- err3 := dao.SelectionInfoDAO{}.UpdateSelectionInfo(entity.SelectionInfo{SelectionID: selectionId, SelectionStatus: 6})
|
|
|
+ err3 := dao.SelectionInfoDAO{}.UpdateSelectionInfo(entity.SelectionInfo{SelectionID: selectionId, SelectionStatus: 6, PayAt: time.Now()})
|
|
|
if err3 != nil {
|
|
|
return err3
|
|
|
}
|
|
@@ -47,7 +48,7 @@ func (s BillService) PayProject(param *vo.PayParam) error {
|
|
|
if err2 != nil {
|
|
|
return err2
|
|
|
}
|
|
|
- err3 := dao.ProjectDAO{}.UpdateProject(entity.Project{ProjectId: projectId, ProjectStatus: 8})
|
|
|
+ err3 := dao.ProjectDAO{}.UpdateProject(entity.Project{ProjectId: projectId, ProjectStatus: 8, PayAt: time.Now()})
|
|
|
if err3 != nil {
|
|
|
return err3
|
|
|
}
|
|
@@ -70,7 +71,7 @@ func (s BillService) PayLocalLife(param *vo.PayParam) error {
|
|
|
if err2 != nil {
|
|
|
return err2
|
|
|
}
|
|
|
- err3 := dao.LocalLifeDao{}.UpdateLocal(entity.LocalLifeInfo{LocalID: localId, TaskStatus: 8})
|
|
|
+ err3 := dao.LocalLifeDao{}.UpdateLocal(entity.LocalLifeInfo{LocalID: localId, TaskStatus: 8, PayAt: time.Now()})
|
|
|
if err3 != nil {
|
|
|
return err3
|
|
|
}
|