liujiandao
2024-02-20 7779e07bd84d081a8f14ef976397dc4c19b0e994
cache/db.go
@@ -75,12 +75,6 @@
   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"`
}
@@ -114,7 +108,7 @@
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 {
@@ -127,7 +121,6 @@
            Tableid:     p.TableId,
            FaceFeature: p.FaceFeature,
            Enable:      int32(p.Enable),
            CarNo:       p.CarNo,
         })
      }
   }