WMS_MAIN/database/migrations/20260724100000-add-is-enabled-to-wms-express-interface.js
liufumingren 972c912e53 feat(express): 快递接口支持启用/停用,过滤取消状态订单
- express_interface 新增 is_enabled 字段(1=启用, 0=停用)

- expressInterface service 支持 is_enabled 筛选与编辑

- express 运单分配跳过停用接口 + 取消状态订单过滤

- 迁移: 20260724100000-add-is-enabled-to-wms-express-interface
2026-07-27 03:47:27 +08:00

18 lines
458 B
JavaScript
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.

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('wms_express_interface', 'is_enabled', {
type: Sequelize.TINYINT(1),
allowNull: true,
defaultValue: 1,
comment: '是否启用(1=启用,0=停用)',
after: 'is_hide_goods',
});
},
async down(queryInterface, Sequelize) {
await queryInterface.removeColumn('wms_express_interface', 'is_enabled');
},
};