- express_interface 新增 is_enabled 字段(1=启用, 0=停用) - expressInterface service 支持 is_enabled 筛选与编辑 - express 运单分配跳过停用接口 + 取消状态订单过滤 - 迁移: 20260724100000-add-is-enabled-to-wms-express-interface
18 lines
458 B
JavaScript
18 lines
458 B
JavaScript
'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');
|
||
},
|
||
};
|