dengbiao 6 months ago
parent
commit
46e6e10343
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/implement/happy_orchard_task_db.go

+ 1
- 1
src/implement/happy_orchard_task_db.go View 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


Loading…
Cancel
Save