Browse Source

修改出差审批人

genlong 1 năm trước cách đây
mục cha
commit
ed20897fc7
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      controllers/business_trip/business_apply.go

+ 6 - 2
controllers/business_trip/business_apply.go

@@ -20,6 +20,10 @@ type BusinessTrip struct {
 	controllers.BaseAuth
 }
 
+const (
+	ApproveUserId = 2 //施琪
+)
+
 // @Title 出差申请接口
 // @Description 出差申请接口
 // @Param	request	body business_trip.BusinessApplyReq true "type json string"
@@ -142,7 +146,7 @@ func (this *BusinessTrip) ApplyAdd() {
 		}
 	}
 
-	approveItem, err := admin.GetAdminById(66)
+	approveItem, err := admin.GetAdminById(ApproveUserId)
 	if err != nil {
 		this.FailWithMessage("获取审批人信息失败", "获取审批人信息失败,Err:"+err.Error())
 		return
@@ -443,7 +447,7 @@ func (this *BusinessTrip) ApplyEdit() {
 		}
 	}
 
-	approveItem, err := admin.GetAdminById(66)
+	approveItem, err := admin.GetAdminById(ApproveUserId)
 	if err != nil {
 		this.FailWithMessage("获取审批人信息失败!", "获取审批人信息失败,Err:"+err.Error())
 		return