fix(fee):修正未能正确获得要更新的维护费ID的问题。
This commit is contained in:
parent
50c9195797
commit
b09b3f4f2d
|
@ -110,6 +110,7 @@ func modifyMaintenanceFeeRecord(c *gin.Context) {
|
||||||
}
|
}
|
||||||
newFeeState := new(model.MaintenanceFee)
|
newFeeState := new(model.MaintenanceFee)
|
||||||
copier.Copy(newFeeState, formData)
|
copier.Copy(newFeeState, formData)
|
||||||
|
newFeeState.Id = requestFee
|
||||||
err := service.MaintenanceFeeService.ModifyMaintenanceFee(*newFeeState)
|
err := service.MaintenanceFeeService.ModifyMaintenanceFee(*newFeeState)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Error(http.StatusInternalServerError, err.Error())
|
result.Error(http.StatusInternalServerError, err.Error())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user