Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
62d73621de
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/customer/svc/order/svc_central_kitchen_for_school_order.go

+ 3
- 1
app/customer/svc/order/svc_central_kitchen_for_school_order.go View File

@@ -34,7 +34,9 @@ func OrderList(req md.CentralKitchenForSchoolOrderListReq, platform string) (m [
}

func OrderStatistic(req md.CentralKitchenForSchoolOrderListReq, platform string) (total float64, err error) {
var sql string
var sql = fmt.Sprintf("SELECT SUM(total_price) AS sum_total FROM central_kitchen_for_school_package_ord where "+
"user_identity_id = '%d' and create_at >= '%s' And create_at <= '%s' and ord_state = '%d'", req.UserIdentityId, req.StartDate, req.EndDate, req.OrdState)

if req.OrdState == enum.CentralKitchenForSchoolPackageOrdOrdStateForWait {
if platform == "alipay_applet" {
sql = fmt.Sprintf("SELECT SUM(total_price) AS sum_total FROM central_kitchen_for_school_package_ord where "+


Loading…
Cancel
Save