CaiWuXiTong/app/Models/Business/ShopInfoFlow.php
renshen 885961084e 流程统计:接入店铺申请流程(开店/变更/关店)共享镜像
数据源:jiansun.dbo.fys_shopInfo_flow(申请单明细,4572 行,含店铺/平台/负责人/利润中心/商标/变更原因/关店原因等)
+ 中台库 dbo.flow_flow(按 flowId 关联审批状态与当前审批人),两个数据集已登记并完成首次全量。

- 新增 ShopInfoFlowMirrorRepository:左连接两套镜像,支持单据编号/申请人/申请日期/当前审批人/
  ERP店铺名称/店铺运营负责人/利润中心/商标号等文本筛选,流程类型、审批状态、平台为可搜索多选。
- 审批状态文案取自 OA 前端字典:0暂存/1流程中/2拒绝/3完成/4撤回/5待签署/6已签署/7待审批;
  流程类型:8店铺开店/9店铺变更/10店铺关店/12主体注销自动流程。
- 页面按目录表渲染(查询条件、筛选字段、导出),列与外部店铺申请页对齐。
- TableRegistry 登记为只读上游页,镜像未就绪时页面给提示而不是报错。
2026-10-08 14:38:16 +08:00

39 lines
937 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;
/**
* 财务经营风险管控 › 流程统计:店铺申请流程(开店 / 变更 / 关店)。
*
* 页面只读共享业务镜像(jiansun.dbo.fys_shopInfo_flow + 中台库 dbo.flow_flow),
* 这个模型只用于声明页面列,不承载本地表数据。
*/
class ShopInfoFlow extends Model
{
protected $table = 'shop_info_flow_rows';
protected $fillable = [
'flow_id',
'flow_type',
'approval_status',
'current_approver',
'shop_name',
'platform',
'shop_head',
'customer_manager',
'responsible_department',
'erp_shop_name',
'apply_user',
'apply_time',
'trademark_number',
'change_reason',
'close_reason',
'expected_closing_time',
'refund_type',
'refund_amount',
'change_successful',
];
}