2545307760@qq.com пре 8 месеци
родитељ
комит
b1938d0eb9

+ 0 - 1
server/api/v1/devices/captureVehicles.go

@@ -20,7 +20,6 @@ func (cva *CaptureVehiclesApi) QueryCaptureVehiclesList(c *gin.Context) {
 	}
 	fmt.Println(info)
 	list, total, err := captureVehiclesService.QueryCaptureVehiclesList(info)
-	fmt.Println(list)
 	if err != nil {
 		global.GVA_LOG.Error("查询失败", zap.Error(err))
 		response.FailWithMessage(" 查询失败", c)

+ 4 - 2
server/dao/capture_vehicles.go

@@ -1,6 +1,8 @@
 package dao
 
-import "server/global"
+import (
+	"server/global"
+)
 
 type CaptureVehicles struct {
 	global.GVA_MODEL
@@ -22,7 +24,7 @@ func QueryCaptureVehiclesList(limit, offset, vehicleType int, sLicense string) (
 	}
 
 	if sLicense != "" {
-		db = db.Where("sLicense = ?", sLicense)
+		db = db.Where("s_license like ?", "%"+sLicense+"%")
 	}
 
 	err = db.Count(&total).Error

+ 1 - 1
web/src/view/dashboard/index.vue

@@ -23,7 +23,7 @@
               :xs="24"
               :sm="18"
             >
-              <chart/>
+              <chart/>pnp
             </el-col>
             <el-col
               :xs="24"