20], [['create_date'], 'string', 'max' => 10], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'order_title_id' => 'Order Title ID', 'order_main_id' => 'Order Main ID', 'order_type' => 'Order Type', 'cancel_flag' => 'Cancel Flag', 'create_time' => 'Create Time', 'update_time' => 'Update Time', 'create_user_id' => 'Create User ID', 'create_date' => 'Create Date', ]; } /** * Function Description:查询所有子订单通过组合订单号 * Function Name: getSonOrderId * @param $title_id * * @return array|ActiveRecord[] * * @author 娄梦宁 */ public function getSonOrderId($title_id){ $result=self::find()->select('order_type,order_main_id') ->from(self::tableName()) ->where(['and',['=','order_title_id',$title_id],['=','cancel_flag',0]]) ->asArray() ->all(); return $result; } }