|
|
@@ -6,7 +6,6 @@ import ( |
|
|
|
"applet/app/db/model" |
|
|
|
enum2 "applet/app/enum" |
|
|
|
"applet/app/utils" |
|
|
|
"applet/app/utils/logx" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"strings" |
|
|
@@ -1261,12 +1260,15 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1340,10 +1342,10 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch |
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
logx.Error(err2) |
|
|
|
println("<<<<JudgePackageOrdOrdState>>>>>Error:::", err2.Error()) |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
@@ -1418,12 +1420,15 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err1 := JudgePackageOrdOrdState(vv) |
|
|
|
if err1 != nil { |
|
|
|
return err1 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1539,12 +1544,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1616,12 +1624,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1693,12 +1704,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1803,12 +1817,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1880,12 +1897,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
@@ -1957,12 +1977,15 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho |
|
|
|
} |
|
|
|
|
|
|
|
//4、处理 `central_kitchen_for_school_package_ord` 的 订单状态 (ord_state) |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err2 := JudgePackageOrdOrdState(vv) |
|
|
|
if err2 != nil { |
|
|
|
return err2 |
|
|
|
go func() { |
|
|
|
for _, vv := range dealOutTradeNo { |
|
|
|
err11 := JudgePackageOrdOrdState(vv) |
|
|
|
if err11 != nil { |
|
|
|
fmt.Println("batchAskForLeaveJudgePackageOrdOrdStateErr>>>>>>>>>>>>>>>>>>>>>", err11.Error()) |
|
|
|
utils.FilePutContents("batchAskForLeaveJudgePackageOrdOrdStateErr", err11.Error()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
//5、新增 `central_kitchen_for_school_user_refund_day` 数据 |
|
|
|
centralKitchenForSchoolUserRefundDayDb := db.CentralKitchenForSchoolUserRefundDayDb{} |
|
|
|