瀏覽代碼

新增关闭接口

tuoling805 2 年之前
父節點
當前提交
8de9bba74b
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 3 0
      controllers/business_trip/business_apply.go
  2. 2 0
      models/tables/business_trip/business_apply.go

+ 3 - 0
controllers/business_trip/business_apply.go

@@ -709,6 +709,9 @@ func (this *BusinessTrip) Close() {
 		return
 	}
 
+	fmt.Println(req.BusinessApplyId)
+	fmt.Println(req.CloseReason)
+
 	whereParams := make(map[string]interface{})
 	updateParams := make(map[string]interface{})
 

+ 2 - 0
models/tables/business_trip/business_apply.go

@@ -24,6 +24,8 @@ type BusinessApply struct {
 	RefuseReason    string    `description:"拒绝理由"`
 	RefuseTime      time.Time `description:"拒绝时间"`
 	ApproveTime     time.Time `description:"审批时间"`
+	CloseReason     string
+	CloseTime       time.Time
 	CreateTime      time.Time `description:"创建时间"`
 	ModifyTime      time.Time `description:"修改时间"`
 }