|
@@ -38,6 +38,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
@@ -38,6 +38,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
38
|
"cooperation_mode_number",
|
38
|
"cooperation_mode_number",
|
|
39
|
"status",
|
39
|
"status",
|
|
40
|
"org",
|
40
|
"org",
|
|
|
|
41
|
+ "incentives_type",
|
|
41
|
"company",
|
42
|
"company",
|
|
42
|
"operator",
|
43
|
"operator",
|
|
43
|
"operate_time",
|
44
|
"operate_time",
|
|
@@ -70,6 +71,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
@@ -70,6 +71,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
70
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
71
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
|
71
|
&cooperationContract.Status,
|
72
|
&cooperationContract.Status,
|
|
72
|
&cooperationContract.Org,
|
73
|
&cooperationContract.Org,
|
|
|
|
74
|
+ &cooperationContract.IncentivesType,
|
|
73
|
&cooperationContract.Company,
|
75
|
&cooperationContract.Company,
|
|
74
|
&cooperationContract.Operator,
|
76
|
&cooperationContract.Operator,
|
|
75
|
&cooperationContract.OperateTime,
|
77
|
&cooperationContract.OperateTime,
|
|
@@ -88,6 +90,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
@@ -88,6 +90,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
88
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
90
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
|
89
|
cooperationContract.Status,
|
91
|
cooperationContract.Status,
|
|
90
|
cooperationContract.Org,
|
92
|
cooperationContract.Org,
|
|
|
|
93
|
+ cooperationContract.IncentivesType,
|
|
91
|
cooperationContract.Company,
|
94
|
cooperationContract.Company,
|
|
92
|
cooperationContract.Operator,
|
95
|
cooperationContract.Operator,
|
|
93
|
cooperationContract.OperateTime,
|
96
|
cooperationContract.OperateTime,
|
|
@@ -213,6 +216,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
@@ -213,6 +216,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
213
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
216
|
&cooperationContract.CooperationMode.CooperationModeNumber,
|
|
214
|
&cooperationContract.Status,
|
217
|
&cooperationContract.Status,
|
|
215
|
&cooperationContract.Org,
|
218
|
&cooperationContract.Org,
|
|
|
|
219
|
+ &cooperationContract.IncentivesType,
|
|
216
|
&cooperationContract.Company,
|
220
|
&cooperationContract.Company,
|
|
217
|
&cooperationContract.Operator,
|
221
|
&cooperationContract.Operator,
|
|
218
|
&cooperationContract.OperateTime,
|
222
|
&cooperationContract.OperateTime,
|
|
@@ -231,6 +235,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
@@ -231,6 +235,7 @@ func (repository *CooperationContractRepository) Save(cooperationContract *domai |
|
231
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
235
|
cooperationContract.CooperationMode.CooperationModeNumber,
|
|
232
|
cooperationContract.Status,
|
236
|
cooperationContract.Status,
|
|
233
|
cooperationContract.Org,
|
237
|
cooperationContract.Org,
|
|
|
|
238
|
+ cooperationContract.IncentivesType,
|
|
234
|
cooperationContract.Company,
|
239
|
cooperationContract.Company,
|
|
235
|
cooperationContract.Operator,
|
240
|
cooperationContract.Operator,
|
|
236
|
cooperationContract.OperateTime,
|
241
|
cooperationContract.OperateTime,
|
|
@@ -840,6 +845,9 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
@@ -840,6 +845,9 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
840
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
845
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
|
841
|
query.Where("org->>'orgId' = '?'", orgId)
|
846
|
query.Where("org->>'orgId' = '?'", orgId)
|
|
842
|
}
|
847
|
}
|
|
|
|
848
|
+ if incentivesType, ok := queryOptions["incentivesType"]; ok && incentivesType.(int32) != 0 {
|
|
|
|
849
|
+ query.Where("incentives_type = ?", incentivesType)
|
|
|
|
850
|
+ }
|
|
843
|
offsetLimitFlag := true
|
851
|
offsetLimitFlag := true
|
|
844
|
if offsetLimit, ok := queryOptions["offsetLimit"]; ok {
|
852
|
if offsetLimit, ok := queryOptions["offsetLimit"]; ok {
|
|
845
|
offsetLimitFlag = offsetLimit.(bool)
|
853
|
offsetLimitFlag = offsetLimit.(bool)
|