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