Skip to content

Commit

Permalink
v3.0.4
Browse files Browse the repository at this point in the history
+ 修复工单无法撤销的问题
+ 修复首页文案错误
+ 修复工单申请搜索异常的问题
+ 修复语句执行失败文档异常的问题
+ 修复工单无法生成回滚语句的问题
  • Loading branch information
cookieY committed Jul 20, 2022
1 parent b1a002f commit 35b07da
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file modified Juno
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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数据审核平台"
Expand Down
2 changes: 1 addition & 1 deletion src/handler/order/audit/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions src/handler/personal/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/service/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit 35b07da

Please sign in to comment.