作者 tangxuhui

错误修正

@@ -24,7 +24,7 @@ func (controller *CooperationContractController) UpdateCooperationContract() { @@ -24,7 +24,7 @@ func (controller *CooperationContractController) UpdateCooperationContract() {
24 updateCooperationContractCommand := &command.UpdateCooperationContractCommand{} 24 updateCooperationContractCommand := &command.UpdateCooperationContractCommand{}
25 controller.Unmarshal(updateCooperationContractCommand) 25 controller.Unmarshal(updateCooperationContractCommand)
26 contractId, _ := controller.GetInt(":contractId") 26 contractId, _ := controller.GetInt(":contractId")
27 - updateCooperationContractCommand.CooperationContractId = contractId 27 + updateCooperationContractCommand.CooperationContract.CooperationContractId = contractId
28 data, err := cooperationContractService.UpdateCooperationContract(updateCooperationContractCommand) 28 data, err := cooperationContractService.UpdateCooperationContract(updateCooperationContractCommand)
29 controller.Response(data, err) 29 controller.Response(data, err)
30 } 30 }