作者 tangxuhui

数据结构调整

@@ -59,7 +59,7 @@ type CreateCooperationContractCommand struct { @@ -59,7 +59,7 @@ type CreateCooperationContractCommand struct {
59 Attachment []domain.Attachment `json:"attachment"` 59 Attachment []domain.Attachment `json:"attachment"`
60 } `json:"undertakers"` 60 } `json:"undertakers"`
61 //关联业务员 61 //关联业务员
62 - RelevantIds []string `json:"relevantIds"` 62 + RelationUser []string `json:"relationUser"`
63 } 63 }
64 64
65 func (createCooperationContractCommand *CreateCooperationContractCommand) Valid(validation *validation.Validation) { 65 func (createCooperationContractCommand *CreateCooperationContractCommand) Valid(validation *validation.Validation) {
@@ -75,7 +75,7 @@ type UpdateCooperationContractCommand struct { @@ -75,7 +75,7 @@ type UpdateCooperationContractCommand struct {
75 Attachment []domain.Attachment `json:"attachment"` 75 Attachment []domain.Attachment `json:"attachment"`
76 } `json:"undertakers"` 76 } `json:"undertakers"`
77 //关联业务员 77 //关联业务员
78 - RelevantIds []string `json:"relevantIds"` 78 + RelationUser []string `json:"relationUser"`
79 } 79 }
80 80
81 func (updateCooperationContractCommand *UpdateCooperationContractCommand) Valid(validation *validation.Validation) { 81 func (updateCooperationContractCommand *UpdateCooperationContractCommand) Valid(validation *validation.Validation) {
@@ -63,7 +63,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC @@ -63,7 +63,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC
63 MoneyIncentivesRules: rules2, 63 MoneyIncentivesRules: rules2,
64 DividendsIncentivesRules: rules1, 64 DividendsIncentivesRules: rules1,
65 Undertakers: underTakers, 65 Undertakers: underTakers,
66 - RelevantIds: createCooperationContractCommand.RelevantIds, 66 + RelevantIds: createCooperationContractCommand.RelationUser,
67 CooperationContractDescription: createCooperationContractCommand.CooperationContract.CooperationContractDescription, 67 CooperationContractDescription: createCooperationContractCommand.CooperationContract.CooperationContractDescription,
68 CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber, 68 CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber,
69 DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId, 69 DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId,
@@ -187,7 +187,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC @@ -187,7 +187,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC
187 MoneyIncentivesRules: rules2, 187 MoneyIncentivesRules: rules2,
188 DividendsIncentivesRules: rules1, 188 DividendsIncentivesRules: rules1,
189 Undertakers: underTakers, 189 Undertakers: underTakers,
190 - RelevantIds: updateCooperationContractCommand.RelevantIds, 190 + RelevantIds: updateCooperationContractCommand.RelationUser,
191 CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription, 191 CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription,
192 CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber, 192 CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber,
193 CooperationProjectNumber: updateCooperationContractCommand.CooperationContract.CooperationProjectNumber, 193 CooperationProjectNumber: updateCooperationContractCommand.CooperationContract.CooperationProjectNumber,