作者 tangxuhui

修复bug

... ... @@ -9,7 +9,6 @@ type CooperationContractItem struct {
CooperationContractId int `json:"cooperationContractId,string,"`
CooperationContractNumber string `json:"cooperationContractNumber"` //合约编号
CooperationProjectNumber string `json:"cooperationProjectNumber"` //项目编号
CooperationProjectId string `json:"cooperationProjectId"` //项目编号
CooperationContractName string `json:"cooperationContractName"` //合约名称
Status int `json:"status"` //合约状态
CreateTime int `json:"createTime"`
... ... @@ -35,7 +34,6 @@ func ToCooperationContractItem(param *allied_creation_cooperation.CooperationCon
CooperationContractDescription: param.CooperationContractDescription,
CooperationContractId: param.CooperationContractId,
CooperationProjectNumber: param.CooperationProjectNumber,
CooperationProjectId: param.CooperationProjectNumber,
CooperationContractName: param.CooperationContractName,
CooperationContractNumber: param.CooperationContractNumber,
Status: param.Status,
... ... @@ -181,6 +179,7 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon
UsersName: v.UserInfo.UserName,
UsersId: v.UserId,
Phone: v.UserInfo.UserPhone,
UserCode: v.UserInfo.UserCode,
},
}
u.SalesmanUser.UserId = v.Salesman.UserId
... ...
... ... @@ -63,6 +63,7 @@ type CooperationContract struct {
UserName string `json:"userName"` // 共创人员姓名
UserPhone string `json:"userPhone"` // 用户手机号
UserAccount string `json:"userAccount"` // 用户账号,区别于手机号,冗余字段
UserCode string `json:"userCode"`
} `json:"userInfo"`
Department struct {
DepartmentId int64 `json:"departmentId,string,"` // 部门ID
... ...
... ... @@ -74,6 +74,7 @@ func (controller *CooperationContractController) EnableCooperationContract() {
controller.Response(nil, err)
return
}
enableCooperationContractCommand.Operator = controller.GetOperator()
data, err := cooperationContractService.EnableCooperationContract(enableCooperationContractCommand)
controller.Response(data, err)
}
... ... @@ -101,6 +102,7 @@ func (controller *CooperationContractController) RemoveCooperationContract() {
controller.Response(nil, err)
return
}
removeCooperationContractCommand.Operator = controller.GetOperator()
data, err := cooperationContractService.RemoveCooperationContract(removeCooperationContractCommand)
controller.Response(data, err)
}
... ...