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