|
|
@@ -8,7 +8,9 @@ import ( |
|
|
|
"applet/app/db/model" |
|
|
|
"applet/app/e" |
|
|
|
enum2 "applet/app/enum" |
|
|
|
md2 "applet/app/md" |
|
|
|
"applet/app/utils" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
@@ -2439,6 +2441,19 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho |
|
|
|
|
|
|
|
// JudgePackageOrdOrdState 判断订单状态 |
|
|
|
func JudgePackageOrdOrdState(outTradeNo string) (err error) { |
|
|
|
rabbitMqCh, err := rabbit.Cfg.Pool.GetChannel() |
|
|
|
if err != nil { |
|
|
|
fmt.Println("err:::::11111:::::HoneyCollectContribution", err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
rabbitMqCh.Publish(md2.OrdExchange, md2.JudgePackageOrdOrdState{ |
|
|
|
OrdNo: outTradeNo, |
|
|
|
}, md2.OrdRoutKeyForJudgePackageOrdOrdState) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// DealJudgePackageOrdOrdState 判断订单状态 |
|
|
|
func DealJudgePackageOrdOrdState(outTradeNo string) (err error) { |
|
|
|
centralKitchenForSchoolPackageOrd := db.CentralKitchenForSchoolPackageOrd{} |
|
|
|
centralKitchenForSchoolPackageOrd.Set(outTradeNo) |
|
|
|
ord, err := centralKitchenForSchoolPackageOrd.GetCentralKitchenForSchoolPackageOrd() |
|
|
|