正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论