| | |
| | | PicDesc string `gorm:"column:picDesc" json:"picDesc" example:"照片标识"` |
| | | Reserved string `gorm:"column:reserved" json:"reserved" example:"其他"` |
| | | |
| | | CarNo string `gorm:"column:carNo" json:"carNo" example:"车牌号"` |
| | | CarPicUrls string `gorm:"column:carPicUrls" json:"carPicUrls" example:"车辆照片"` |
| | | CarType int `gorm:"column:carType" json:"carType" example:"车辆类型"` |
| | | CarBrand int `gorm:"column:carBrand" json:"carBrand" example:"车辆品牌"` |
| | | CarColor int `gorm:"column:carColor" json:"carColor" example:"车辆颜色"` |
| | | |
| | | FromServerId string `gorm:"column:fromServerId" json:"fromServerId,omitempty" example:"入库serverId"` |
| | | } |
| | | |
| | |
| | | |
| | | func (dbp *DbPersons) GetPersonsCompareCacheBase(from int, size int) (arr []*protomsg.Esinfo, err error) { |
| | | var persons []DbPersons |
| | | sql := "select id,faceFeature,tableId,enable,carNo from dbtablepersons where isDelete=0 and tableId in (select id from dbtables where isDelete=0)" |
| | | sql := "select id,faceFeature,tableId,enable from dbtablepersons where isDelete=0 and tableId in (select id from dbtables where isDelete=0)" |
| | | sql += " order by id asc limit " + strconv.Itoa(from) + "," + strconv.Itoa(size) |
| | | err = db.Raw(sql).Find(&persons).Error |
| | | if err != nil { |
| | |
| | | Tableid: p.TableId, |
| | | FaceFeature: p.FaceFeature, |
| | | Enable: int32(p.Enable), |
| | | CarNo: p.CarNo, |
| | | }) |
| | | } |
| | | } |