Browse Source

新增关闭接口

tuoling805 2 years ago
parent
commit
8de9bba74b

+ 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:"修改时间"`
 }