whyclxw
2025-05-08 35bd0babece513b6ee4285265f3379cbcb050e59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.whyc.service;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.whyc.dto.Response;
import com.whyc.mapper.AcdcSecuityMapper;
import com.whyc.pojo.AcdcSecuity;
import com.whyc.pojo.Fbs9100sFodState;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service
public class AcdcSecuityService {
    @Autowired(required = false)
    private AcdcSecuityMapper mapper;
 
 
    ////交直流屏信息
    public Response searchAcdcSecuity(int devId) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("dev_id",devId);
        wrapper.last(" limit 1");
        AcdcSecuity acdcSecuity=mapper.selectOne(wrapper);
        return new Response().setII(1,acdcSecuity==null?false:true,acdcSecuity,"");
    }
}