...
|
...
|
@@ -38,6 +38,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
|
"cooperation_mode_number",
|
|
|
"status",
|
|
|
"org",
|
|
|
"incentives_type",
|
|
|
"company",
|
|
|
"operator",
|
|
|
"operate_time",
|
...
|
...
|
@@ -70,6 +71,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
|
|
&cooperationContract.Status,
|
|
|
&cooperationContract.Org,
|
|
|
&cooperationContract.IncentivesType,
|
|
|
&cooperationContract.Company,
|
|
|
&cooperationContract.Operator,
|
|
|
&cooperationContract.OperateTime,
|
...
|
...
|
@@ -88,6 +90,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
|
|
cooperationContract.Status,
|
|
|
cooperationContract.Org,
|
|
|
cooperationContract.IncentivesType,
|
|
|
cooperationContract.Company,
|
|
|
cooperationContract.Operator,
|
|
|
cooperationContract.OperateTime,
|
...
|
...
|
@@ -213,6 +216,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
|
|
&cooperationContract.Status,
|
|
|
&cooperationContract.Org,
|
|
|
&cooperationContract.IncentivesType,
|
|
|
&cooperationContract.Company,
|
|
|
&cooperationContract.Operator,
|
|
|
&cooperationContract.OperateTime,
|
...
|
...
|
@@ -231,6 +235,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
|
|
cooperationContract.Status,
|
|
|
cooperationContract.Org,
|
|
|
cooperationContract.IncentivesType,
|
|
|
cooperationContract.Company,
|
|
|
cooperationContract.Operator,
|
|
|
cooperationContract.OperateTime,
|
...
|
...
|
@@ -840,6 +845,9 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
|
|
query.Where("org->>'orgId' = '?'", orgId)
|
|
|
}
|
|
|
if incentivesType, ok := queryOptions["incentivesType"]; ok && incentivesType.(int32) != 0 {
|
|
|
query.Where("incentives_type = ?", incentivesType)
|
|
|
}
|
|
|
offsetLimitFlag := true
|
|
|
if offsetLimit, ok := queryOptions["offsetLimit"]; ok {
|
|
|
offsetLimitFlag = offsetLimit.(bool)
|
...
|
...
|
|