123456789101112 |
- package district_service
-
- import (
- "SCRM/models"
- "SCRM/service"
- )
-
- func GetDistrictsByUpid(id int64) (dis []*models.District, err error) {
- err = service.UserReadDB().Model(&models.District{}).Where("upid=?", id).Find(&dis).Error
- return
- }
|