|
@@ -55,12 +55,12 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend |
|
@@ -55,12 +55,12 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend |
55
|
updateFieldsSnippet := sqlbuilder.SqlUpdateFieldsSnippet(updateFields)
|
55
|
updateFieldsSnippet := sqlbuilder.SqlUpdateFieldsSnippet(updateFields)
|
56
|
tx := repository.transactionContext.PgTx
|
56
|
tx := repository.transactionContext.PgTx
|
57
|
if dividendsOrder.Identify() == nil {
|
57
|
if dividendsOrder.Identify() == nil {
|
58
|
- dividendsOrderId, err := repository.nextIdentify()
|
|
|
59
|
- if err != nil {
|
|
|
60
|
- return dividendsOrder, err
|
|
|
61
|
- } else {
|
|
|
62
|
- dividendsOrder.DividendsOrderId = dividendsOrderId
|
|
|
63
|
- }
|
58
|
+ //dividendsOrderId, err := repository.nextIdentify()
|
|
|
59
|
+ //if err != nil {
|
|
|
60
|
+ // return dividendsOrder, err
|
|
|
61
|
+ //} else {
|
|
|
62
|
+ // dividendsOrder.DividendsOrderId = dividendsOrderId
|
|
|
63
|
+ //}
|
64
|
if _, err := tx.QueryOne(
|
64
|
if _, err := tx.QueryOne(
|
65
|
pg.Scan(
|
65
|
pg.Scan(
|
66
|
÷ndsOrder.DividendsOrderId,
|
66
|
÷ndsOrder.DividendsOrderId,
|