shish 6 лет назад
Родитель
Сommit
a55042155f

+ 20 - 0
biz/order/classes/OrderSendClass.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace biz\order\classes;
+
+use common\components\stringUtil;
+use common\services\xhOrderDayNumService;
+use common\services\xhOrderMonthNumService;
+use Yii;
+use biz\base\classes\BaseClass;
+
+class OrderSendClass extends BaseClass
+{
+
+	public static $baseFile = '\biz\order\models\OrderSend';
+
+	//流程id与名称
+	public static $actionId = ['order' => 1, 'print' => 2, 'deliver' => 3, 'reach' => 4, 'finish' => 5];
+	public static $actionName = [1 => '下单', 2 => '打单', 3 => '发货', 4 => '送达', 5 => '完成'];
+
+}

+ 10 - 0
biz/order/models/OrderSend.php

@@ -0,0 +1,10 @@
+<?php
+
+namespace biz\order\models;
+
+use biz\base\models\Base;
+
+class OrderSend extends Base
+{
+
+}

+ 22 - 0
biz/order/services/OrderSendService.php

@@ -0,0 +1,22 @@
+<?php
+
+namespace biz\order\services;
+
+use biz\base\services\BaseService;
+use biz\merchant\services\MerchantCapitalService;
+use biz\order\classes\OrderClass;
+use biz\order\models\Order;
+use biz\promote\services\CouponRightService;
+use biz\user\services\UserService;
+use common\components\error;
+use common\components\validate;
+use common\components\util;
+use Yii;
+use linslin\yii2\curl;
+
+class OrderSendService extends BaseService
+{
+	
+	public static $baseFile = '\biz\order\classes\OrderSendClass';
+	
+}

+ 11 - 0
sql.txt

@@ -1,3 +1,14 @@
+2019.12.13 23:02 shish
+DROP TABLE IF EXISTS `xhOrderSend`;
+CREATE TABLE IF NOT EXISTS `xhOrderSend`(
+id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
+`orderId` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '订单号',
+`actionId` TINYINT NOT NULL DEFAULT 0 COMMENT '动作id',
+`option` TINYINT NOT NULL DEFAULT 0 COMMENT '动作的选项',
+finishTime INT NOT NULL DEFAULT 0 COMMENT '完成时间',
+`addTime` INT NOT NULL DEFAULT 0 COMMENT '添加时间'
+)COMMENT='发货管理';
+
 2019.12.13 shish
 ALTER TABLE xhWxScene MODIFY `type` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '场景类型 0刮刮卡 1邀请有礼领券';
 ALTER TABLE xhShop ADD `openTime` VARCHAR(30) NOT NULL DEFAULT '' COMMENT '营业时间' AFTER `telephone`;