|
@@ -78,6 +78,11 @@ func (this *BusinessTrip) ApplyAdd() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if req.Itinerary == "" {
|
|
|
|
+ br.Msg = "请填写行程说明"
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
startP, _ := time.ParseInLocation(utils.FormatDate, req.ArriveDate, time.Local)
|
|
startP, _ := time.ParseInLocation(utils.FormatDate, req.ArriveDate, time.Local)
|
|
endP, _ := time.ParseInLocation(utils.FormatDate, req.ReturnDate, time.Local)
|
|
endP, _ := time.ParseInLocation(utils.FormatDate, req.ReturnDate, time.Local)
|
|
nowDate, _ := time.ParseInLocation(utils.FormatDate, time.Now().Format(utils.FormatDate), time.Local)
|
|
nowDate, _ := time.ParseInLocation(utils.FormatDate, time.Now().Format(utils.FormatDate), time.Local)
|
|
@@ -188,6 +193,7 @@ func (this *BusinessTrip) ApplyAdd() {
|
|
item.ApproveName = approveItem.RealName
|
|
item.ApproveName = approveItem.RealName
|
|
item.CreateTime = time.Now()
|
|
item.CreateTime = time.Now()
|
|
item.ModifyTime = time.Now()
|
|
item.ModifyTime = time.Now()
|
|
|
|
+ item.Itinerary = req.Itinerary
|
|
applyId, err := business_trip.AddBusinessApply(item)
|
|
applyId, err := business_trip.AddBusinessApply(item)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "申请失败"
|
|
br.Msg = "申请失败"
|
|
@@ -332,6 +338,11 @@ func (this *BusinessTrip) ApplyEdit() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if req.Itinerary == "" {
|
|
|
|
+ br.Msg = "请填写行程说明"
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
startP, _ := time.ParseInLocation(utils.FormatDate, req.ArriveDate, time.Local)
|
|
startP, _ := time.ParseInLocation(utils.FormatDate, req.ArriveDate, time.Local)
|
|
endP, _ := time.ParseInLocation(utils.FormatDate, req.ReturnDate, time.Local)
|
|
endP, _ := time.ParseInLocation(utils.FormatDate, req.ReturnDate, time.Local)
|
|
nowDate, _ := time.ParseInLocation(utils.FormatDate, time.Now().Format(utils.FormatDate), time.Local)
|
|
nowDate, _ := time.ParseInLocation(utils.FormatDate, time.Now().Format(utils.FormatDate), time.Local)
|
|
@@ -459,6 +470,7 @@ func (this *BusinessTrip) ApplyEdit() {
|
|
updateParams["refuse_reason"] = ""
|
|
updateParams["refuse_reason"] = ""
|
|
updateParams["create_time"] = time.Now()
|
|
updateParams["create_time"] = time.Now()
|
|
updateParams["modify_time"] = time.Now()
|
|
updateParams["modify_time"] = time.Now()
|
|
|
|
+ updateParams["itinerary"] = req.Itinerary
|
|
|
|
|
|
err = business_trip.UpdateBusinessApply(whereParams, updateParams)
|
|
err = business_trip.UpdateBusinessApply(whereParams, updateParams)
|
|
if err != nil {
|
|
if err != nil {
|