huangjiajun 5 mesi fa
parent
commit
6c1c25ecc4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/implement/happy_orchard_task_db.go

+ 1
- 1
src/implement/happy_orchard_task_db.go Vedi File

@@ -16,7 +16,7 @@ func NewHappyOrchardTaskDb(engine *xorm.Engine) dao.HappyOrchardTaskDao {
}
func (h HappyOrchardTaskDb) GetHappyOrchardTaskByPid(types string, pid int) (mm *[]models.HappyOrchardTask, err error) {
var m []models.HappyOrchardTask
if err := h.Db.Where("type=? and is_use=? and pid =?", types, 1, pid).Find(&m); err != nil {
if err := h.Db.Where("type=? and pid =?", types, pid).Find(&m); err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
return &m, nil


Caricamento…
Annulla
Salva