lxw
2023-08-22 3437771db860c4aa9d9b3b72e00a153115a825cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.whyc.service;
 
import com.whyc.carCamera.Acs.AcsMain;
import com.whyc.dto.CarCamera;
import com.whyc.dto.Login;
import com.whyc.pojo.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
 
@Service
public class CarCameraService {
    @Autowired(required = false)
    private AcsMain acsMain;
 
    //获取门禁状态
    public Response getCarCamera(Login login)  {
        CarCamera carCamera=acsMain.getCarCamera(login);
        return new Response().setII(1,carCamera!=null,carCamera,"获取门禁状态");
    }
}