作者 陈志颖

fix:修复共创合约部门信息

... ... @@ -287,7 +287,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC
}
cooperationMode, err := cooperationModeRepository.FindOne(map[string]interface{}{"cooperationModeNumber": createCooperationContractCommand.CooperationModeNumber})
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "共创模式不存在")
}
if cooperationMode == nil {
return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", createCooperationContractCommand.CooperationModeNumber))
... ...
... ... @@ -41,6 +41,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai
"org",
"incentives_type",
"company",
"department",
"operator",
"operate_time",
"created_at",
... ... @@ -74,6 +75,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai
&cooperationContract.Org,
&cooperationContract.IncentivesType,
&cooperationContract.Company,
&cooperationContract.Department,
&cooperationContract.Operator,
&cooperationContract.OperateTime,
&cooperationContract.CreatedAt,
... ... @@ -93,6 +95,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai
cooperationContract.Org,
cooperationContract.IncentivesType,
cooperationContract.Company,
cooperationContract.Department,
cooperationContract.Operator,
cooperationContract.OperateTime,
cooperationContract.CreatedAt,
... ... @@ -226,6 +229,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai
&cooperationContract.Org,
&cooperationContract.IncentivesType,
&cooperationContract.Company,
&cooperationContract.Department,
&cooperationContract.Operator,
&cooperationContract.OperateTime,
&cooperationContract.CreatedAt,
... ... @@ -245,6 +249,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai
cooperationContract.Org,
cooperationContract.IncentivesType,
cooperationContract.Company,
cooperationContract.Department,
cooperationContract.Operator,
cooperationContract.OperateTime,
cooperationContract.CreatedAt,
... ... @@ -670,6 +675,7 @@ func (repository *CooperationContractRepository) UpdateOne(cooperationContract *
Status: cooperationContract.Status,
Org: cooperationContract.Org,
Company: cooperationContract.Company,
Department: cooperationContract.Department,
Operator: cooperationContract.Operator,
OperateTime: cooperationContract.OperateTime,
CreatedAt: cooperationContract.CreatedAt,
... ... @@ -698,6 +704,7 @@ func (repository *CooperationContractRepository) UpdateMany(cooperationContracts
Status: cooperationContract.Status,
Org: cooperationContract.Org,
Company: cooperationContract.Company,
Department: cooperationContract.Department,
Operator: cooperationContract.Operator,
OperateTime: cooperationContract.OperateTime,
CreatedAt: cooperationContract.CreatedAt,
... ...