Files
nanguangszwlback/sql/20260803_alter_table_lease_add_status.sql
T
rcx 6a84abf6dd feat(system模块lease): 租赁管理增加停用功能,停用后不参与出租率计算
- LEASE 表新增 status 字段(1=启用,0=停用)
- Lease/LeasePO/LeaseDO/LeaseDTO 新增 status 字段
- LeaseMapper.xml 增加 status 查询字段与过滤条件
- 新增 LeaseApi.updateStatus 接口(PUT /updateStatus/{leaseIds}/{status})
- 出租率计算(shipperLeaseDetails)过滤 status=1,停用租赁不再生成出租率数据
一个SQL文件,增加了一个字段,在测试和生产环境都需要执行
对应需求:仓库出租率 - 租赁管理增加停用功能
2026-08-11 18:03:09 +08:00

17 lines
696 B
SQL
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.
-- ============================================================
-- 功能:租赁表新增 status 状态字段(启用/停用)
-- 数据库:达梦(Dameng192.168.0.49:5236
-- 模式:NGWL_TEST_SYSTEM
-- 表名:LEASE
-- 日期:2026-08-03
-- 说明:status 字段用于控制租赁的启用/停用
-- 1=启用(参与仓库出租率计算)
-- 0=停用(不参与仓库出租率计算)
-- ============================================================
-- 1. 添加字段
ALTER TABLE NGWL_TEST_SYSTEM.LEASE ADD status TINYINT DEFAULT 1;
-- 2. 添加注释(达梦必须单独写)
COMMENT ON COLUMN NGWL_TEST_SYSTEM.LEASE.status IS '状态:1=启用,0=停用';