where(['strHQCode' => MigrateData::BX, 'blnState' => 0, 'strPromoMode' => 'Coupon', 'strCouponTypeCode' => 1001, ])->order(['intPromoConfigID' => 'asc'])->select(); return HelperService::object2Arr($rs); } /** * 获取产品券 * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function getProductCoupon() { $rs = $this->where(['strHQCode' => MigrateData::BX, 'blnState' => 0, 'strPromoMode' => 'Coupon', 'strCouponTypeCode' => 1002, ])->order(['intPromoConfigID' => 'asc'])->select(); return HelperService::object2Arr($rs); } }