diff --git a/Juno b/Juno index 2d5d3dec..fc1689e7 100755 Binary files a/Juno and b/Juno differ diff --git a/cmd/cmd.go b/cmd/cmd.go index bc101379..e26de2a5 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -81,7 +81,7 @@ var RunServer = &gcli.Command{ func Command() { app := gcli.NewApp() - app.Version = "3.0.0 Uranus" + app.Version = "3.0.4 Uranus" app.Name = "Yearning" app.Logo = gcli.Logo{Text: LOGO, Style: "info"} app.Description = "Yearning Mysql数据审核平台" diff --git a/src/handler/order/audit/audit.go b/src/handler/order/audit/audit.go index ad503c51..07692c24 100644 --- a/src/handler/order/audit/audit.go +++ b/src/handler/order/audit/audit.go @@ -21,7 +21,7 @@ func AuditOrderState(c yee.Context) (err error) { switch u.Tp { case "undo": lib.MessagePush(u.WorkId, 6, "") - model.DB().Model(model.CoreQueryOrder{}).Where("work_id =?", u.WorkId).Delete(&model.CoreSqlOrder{}) + model.DB().Model(model.CoreSqlOrder{}).Where("work_id =?", u.WorkId).Updates(&model.CoreSqlOrder{Status: 6}) return c.JSON(http.StatusOK, common.SuccessPayLoadToMessage(common.ORDER_IS_UNDO)) case "agree": return c.JSON(http.StatusOK, MultiAuditOrder(u, user.Username)) diff --git a/src/handler/personal/post.go b/src/handler/personal/post.go index 3a9eedc1..b1c88183 100644 --- a/src/handler/personal/post.go +++ b/src/handler/personal/post.go @@ -47,6 +47,7 @@ func sqlOrderPost(c yee.Context) (err error) { if err != nil { return c.JSON(http.StatusOK, common.ERR_COMMON_MESSAGE(err)) } + u.ID = 0 model.DB().Create(u) model.DB().Create(&model.CoreWorkflowDetail{ WorkId: u.WorkId, diff --git a/src/service/migrate.go b/src/service/migrate.go index c5de5932..b10240ac 100644 --- a/src/service/migrate.go +++ b/src/service/migrate.go @@ -67,6 +67,7 @@ func Migrate() { _ = model.DB().AutoMigrate(&model.CoreDataSource{}) _ = model.DB().AutoMigrate(&model.CoreGlobalConfiguration{}) _ = model.DB().AutoMigrate(&model.CoreGrained{}) + _ = model.DB().AutoMigrate(&model.CoreOrderComment{}) _ = model.DB().AutoMigrate(&model.CoreSqlOrder{}) _ = model.DB().AutoMigrate(&model.CoreSqlRecord{}) _ = model.DB().AutoMigrate(&model.CoreRollback{})