新增 获取问诊订单列表-分页,修正取消问诊订单

This commit is contained in:
2023-08-22 11:57:54 +08:00
parent 64ffc02ba2
commit dc0217d191
7 changed files with 364 additions and 36 deletions
+4
View File
@@ -57,6 +57,10 @@ func (t *LocalTime) String() string {
return fmt.Sprintf("hhh:%s", time.Time(*t).String())
}
func (t *LocalTime) IsEmpty() bool {
return time.Time(*t).IsZero()
}
func (m *Model) BeforeUpdate(tx *gorm.DB) (err error) {
m.UpdatedAt = LocalTime(time.Now())
tx.Statement.SetColumn("UpdatedAt", m.UpdatedAt)