明树Git Lab

Commit 65966db4 authored by zfp1's avatar zfp1

update

parent 3e3472ea
Pipeline #108296 passed with stage
in 3 seconds
...@@ -12,7 +12,7 @@ const RcCgqyglTzfh = sequelize.define('RcCgqyglTzfh', { ...@@ -12,7 +12,7 @@ const RcCgqyglTzfh = sequelize.define('RcCgqyglTzfh', {
fhsj: { fhsj: {
type: DataTypes.DATE, type: DataTypes.DATE,
defaultValue: Date.now, // defaultValue: Date.now,
get() { get() {
const rawValue = this.getDataValue('fhsj'); const rawValue = this.getDataValue('fhsj');
return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : ''; return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : '';
......
...@@ -16,7 +16,7 @@ const RcCgqyglWtyy = sequelize.define('RcCgqyglWtyy', { ...@@ -16,7 +16,7 @@ const RcCgqyglWtyy = sequelize.define('RcCgqyglWtyy', {
}, },
fwsj: { fwsj: {
type: DataTypes.DATE, type: DataTypes.DATE,
defaultValue: Date.now, // defaultValue: Date.now,
get() { get() {
const rawValue = this.getDataValue('fwsj'); const rawValue = this.getDataValue('fwsj');
return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : ''; return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : '';
......
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