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