|
@@ -9,6 +9,7 @@ import ( |
|
|
"applet/app/enum" |
|
|
"applet/app/enum" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils" |
|
|
"errors" |
|
|
"errors" |
|
|
|
|
|
"fmt" |
|
|
"time" |
|
|
"time" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@@ -213,7 +214,8 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder |
|
|
} |
|
|
} |
|
|
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditComplete |
|
|
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditComplete |
|
|
returnDay.RefundDate = time.Now().Format("2006-01-02 15:04:05") |
|
|
returnDay.RefundDate = time.Now().Format("2006-01-02 15:04:05") |
|
|
updateAck2, err7 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") |
|
|
|
|
|
|
|
|
updateAck2, err7 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state", "refund_date") |
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>>>>updateAck2<<<<<<<<<<<<<<", updateAck2) |
|
|
if err7 != nil { |
|
|
if err7 != nil { |
|
|
_ = session.Rollback() |
|
|
_ = session.Rollback() |
|
|
return err7 |
|
|
return err7 |
|
|