...
|
...
|
@@ -24,7 +24,7 @@ func NewOrderBestshopDao(transactionContext *transaction.TransactionContext) (*O |
|
|
func (dao OrderBestshopDao) OrderExist(orderCode string) (bool, error) {
|
|
|
tx := dao.transactionContext.GetDB()
|
|
|
m := models.OrderBestshop{}
|
|
|
query := tx.Model(m).Where("order_code=?", orderCode)
|
|
|
query := tx.Model(&m).Where("order_code=?", orderCode)
|
|
|
ok, err := query.Exists()
|
|
|
return ok, err
|
|
|
} |
...
|
...
|
|