CaiWuXiTong/app/Models/Business/JstOrderLabelPlantingRule.php
qiuxiang b3b4846c6e 聚水潭订单标签明细:新增「是否种菜订单」列(按下单时间后面的位置)
- 新表 jst_order_label_planting_rules(公司 + 标签 → 是/否)+ 模型 + 缓存服务 JstOrderLabelPlantingRules
- 新增导入命令 jst-order-labels:import-planting-rules,读取财务「判断种菜单.xlsx」(表头:标签 / 是否种菜订单),按 --company 导入并清缓存
- 页面:下单时间后面新增「是否种菜订单」列,逐行用(公司 + 标签)匹配映射表,命中为是、未命中为否
- 导出:CSV 同步新增该列(页面/导出同口径)
- 本地:build-frontend.ps1 通过;6 个改动/新增 PHP 文件 php -l 通过
2026-10-07 11:13:53 +08:00

20 lines
377 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Models\Business;
use App\Abstracts\Model;
/**
* 聚水潭订单标签明细 › 「是否种菜订单」映射规则(标签 → 是/否)。
*/
class JstOrderLabelPlantingRule extends Model
{
protected $table = 'jst_order_label_planting_rules';
protected $fillable = [
'company_id',
'label',
'is_planting',
];
}