From 2c9d475a45f4765c4872db007315c7ff7ad6d1dd Mon Sep 17 00:00:00 2001 From: zhoupengwei Date: Wed, 18 May 2022 17:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=85=B3=E8=81=94salesman=E5=85=B3=E8=81=94=E5=85=B3?= =?UTF-8?q?=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/vip_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/app/vip_order.go b/example/app/vip_order.go index 76e3ae8..a0d02fa 100644 --- a/example/app/vip_order.go +++ b/example/app/vip_order.go @@ -196,11 +196,11 @@ var VipOrderCtr = Ctr{ // " ON usr.id = vo.user_id\nLEFT JOIN company cp ON cp.id = vo.company_id\nWHERE" + // " vo.`status` = 1 AND vo.create_time >= ? \nORDER BY vo.create_time",buy_date) - data := that.Db.Select("vip_order", Map{"[>]salesman": "salesman.id=vip_order.id", + data := that.Db.Select("vip_order", Map{"[>]salesman": "salesman.id=vip_order.salesman_id", "[>]provider": "provider.id = vip_order.provider_id", "[>]user": "user.id = vip_order.user_id", "[>]company": "company.id = vip_order.company_id", - }, "vip_order.sn 订单号, vip_order.`name` 订单名, vip_order.user_id 购买用户ID,user.`name` 购买用户名, user.phone 购买用户电话, company.id 企业ID, company.`name` 企业名,\nvip_order.expiration_time 过期时间, vip_order.old_expiration_time 订购前到期时间, vip_order.amount `订单金额_单位(分)`,\nvip_order.salesman_id 业务员ID,salesman.`name` 业务员名, salesman.phone 业务员电话, provider.`name` 服务商名", + }, "vip_order.sn 订单号, vip_order.`name` 订单名, vip_order.user_id 购买用户ID,user.`name` 购买用户名, user.phone 购买用户电话, company.id 企业ID, company.`name` 企业名,\nvip_order.expiration_time 过期时间, vip_order.amount `订单金额_单位(分)`,\nvip_order.salesman_id 业务员ID,salesman.`name` 业务员名, salesman.phone 业务员电话, provider.`name` 服务商名", Map{"AND": Map{"vip_order.status": 1, "vip_order.create_time[>=]": buy_date}, "ORDER": "vip_order.create_time DESC"}) if len(data) == 0 {