Commit e861b783 by dong

fix20230404

parent 24343541
......@@ -1717,7 +1717,7 @@ class CustomerConsultation(db.Model):
linkman = db.Column(db.String(20), comment='联系人')
link_mobile = db.Column(db.String(20), comment='联系方式')
consultation_time = db.Column(db.DateTime, default='', comment='咨询/回复时间')
# reply_time = db.Column(db.DateTime, default='', comment='回复时间')
reply_time = db.Column(db.DateTime, default='', comment='回复时间')
flag = db.Column(db.Integer, comment='是否已回复 0否1是')
is_sync = db.Column(db.Integer, comment='是否同步到平台 0否1是')
......
......@@ -533,7 +533,7 @@ def consultation_list():
"consultation_time": cons_obj.consultation_time,
# "reply_time": cons_obj.reply_time,
} for cons_obj in cons_obj_list]
data = sorted(data, key=lambda x: x['consultation_time'], reverse=True)
except Exception as e:
current_app.logger.error(e)
return jsonify(code=RET.SESSIONERR, msg="Query error!")
......
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