From f8031a39e91e54c6e776fdd7ac11c3215b365554 Mon Sep 17 00:00:00 2001 From: ljl Date: Mon, 29 Jan 2024 16:44:48 +0800 Subject: [PATCH] yh --- app/libs/daos/OrderPrint/OpUserInvoiceTplDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/libs/daos/OrderPrint/OpUserInvoiceTplDao.php b/app/libs/daos/OrderPrint/OpUserInvoiceTplDao.php index 4a48361..5974c82 100644 --- a/app/libs/daos/OrderPrint/OpUserInvoiceTplDao.php +++ b/app/libs/daos/OrderPrint/OpUserInvoiceTplDao.php @@ -47,7 +47,7 @@ class OpUserInvoiceTplDao extends AbstractDao { } public function getAutoCodeByTplId($tplId, $mallId) { - return $this->queryFirstField("select auth_code from %b where mall_id = %s and op_seller_invoice_tpl_id = %i", $this->getTable(), $mallId, $tplId); + return $this->queryFirstField("select auth_code from %b where mall_id = %s and op_user_invoice_tpl_id = %i", $this->getTable(), $mallId, $tplId); } public function getByAuthCode($authCode) {