作者 yangfu

序列化修改

@@ -16,6 +16,8 @@ type CreateFeedbackCommand struct { @@ -16,6 +16,8 @@ type CreateFeedbackCommand struct {
16 FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"` 16 FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"`
17 // 共创合约编号 17 // 共创合约编号
18 CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"` 18 CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"`
  19 + // 共创合约Id
  20 + CooperationContractId int64 `cname:"共创合约编号" json:"cooperationContractId"`
19 } 21 }
20 22
21 func (cmd *CreateFeedbackCommand) Valid(validation *validation.Validation) { 23 func (cmd *CreateFeedbackCommand) Valid(validation *validation.Validation) {
@@ -36,6 +36,7 @@ func (srv UndertakerFeedbackService) CreateFeedback(cmd *command.CreateFeedbackC @@ -36,6 +36,7 @@ func (srv UndertakerFeedbackService) CreateFeedback(cmd *command.CreateFeedbackC
36 FeedbackContent: cmd.FeedbackContent, 36 FeedbackContent: cmd.FeedbackContent,
37 CooperationContractNumber: cmd.CooperationContractNumber, 37 CooperationContractNumber: cmd.CooperationContractNumber,
38 UnderTakerUid: cmd.Operator.UserId, 38 UnderTakerUid: cmd.Operator.UserId,
  39 + CooperationContractId: cmd.CooperationContractId,
39 }) 40 })
40 if err != nil { 41 if err != nil {
41 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 42 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
@@ -13,6 +13,8 @@ type ( @@ -13,6 +13,8 @@ type (
13 // 合约承接方反馈内容 13 // 合约承接方反馈内容
14 FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"` 14 FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"`
15 // 共创合约编号 15 // 共创合约编号
  16 + CooperationContractId int64 `cname:"共创合约编号" json:"cooperationContractId"`
  17 + // 共创合约编号
16 CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"` 18 CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"`
17 // 承接人uid 19 // 承接人uid
18 UnderTakerUid int64 `cname:"承接人uid" json:"underTakerUid,string,omitempty"` 20 UnderTakerUid int64 `cname:"承接人uid" json:"underTakerUid,string,omitempty"`