sec_task_info_dao.go 295 B

1234567891011
  1. package dao
  2. import "youngee_b_api/app/entity"
  3. type SecTaskInfoDao struct{}
  4. func (s SecTaskInfoDao) CountBySelectionId(selectionId string) (int64, error) {
  5. var count int64
  6. err := Db.Model(&entity.SecTaskInfo{}).Where("selection_id = ?", selectionId).Count(&count).Error
  7. return count, err
  8. }