Commit 32647967 authored by 李尚科's avatar 李尚科

Fix

parent f1ce987d
Pipeline #14668 passed with stage
in 33 seconds
......@@ -21,12 +21,20 @@ module.exports = app => {
allowNull: false,
},
silence_begin_time: {
type: INTEGER,
allowNull: false,
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('silence_begin_time');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
silence_end_time: {
type: INTEGER,
allowNull: false,
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('silence_end_time');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
// is_deleted: {
// type: INTEGER,
......@@ -49,9 +57,9 @@ module.exports = app => {
// },
// }
}, {
timestamps: false,
tableName: 'credit_callrisk_silence_cycle',
});
timestamps: false,
tableName: 'credit_callrisk_silence_cycle',
});
CreditCallriskSilenceCycle.one = async (data) => {
const attributes = data.attributes ? data.attributes : {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment