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

Fix

parent f1ce987d
Pipeline #14668 passed with stage
in 33 seconds
...@@ -21,12 +21,20 @@ module.exports = app => { ...@@ -21,12 +21,20 @@ module.exports = app => {
allowNull: false, allowNull: false,
}, },
silence_begin_time: { silence_begin_time: {
type: INTEGER, type: DATE,
allowNull: false, 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: { silence_end_time: {
type: INTEGER, type: DATE,
allowNull: false, allowNull: true,
get() {
const date = this.getDataValue('silence_end_time');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
}, },
// is_deleted: { // is_deleted: {
// type: INTEGER, // type: INTEGER,
...@@ -49,9 +57,9 @@ module.exports = app => { ...@@ -49,9 +57,9 @@ module.exports = app => {
// }, // },
// } // }
}, { }, {
timestamps: false, timestamps: false,
tableName: 'credit_callrisk_silence_cycle', tableName: 'credit_callrisk_silence_cycle',
}); });
CreditCallriskSilenceCycle.one = async (data) => { CreditCallriskSilenceCycle.one = async (data) => {
const attributes = data.attributes ? data.attributes : {}; 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