fix(fee):修正未能正确获得要更新的维护费ID的问题。

This commit is contained in:
徐涛 2022-08-30 10:27:36 +08:00
parent 50c9195797
commit b09b3f4f2d

View File

@ -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())