liurunyu
2025-01-21 daa7c1b49bec0e07aa94ffedcb410ddeed2f4c61
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.dy.pipIrrBase.allRound;
 
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pipIrrGlobal.VoAllRound.VoArIntakeBase;
import com.dy.pipIrrGlobal.daoAllRound.Ar4BaseMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @Author: liurunyu
 * @Date: 2025/1/14 15:57
 * @Description
 */
@Slf4j
@Service
public class Ar4BaseSv {
 
    private Ar4BaseMapper dao ;
 
    @Autowired
    private void setDao(Ar4BaseMapper dao){
        this.dao = dao;
    }
 
    /**
     * 取水口基本信息
     * @return 取水口基本信息
     */
    public QueryResultVo<VoArIntakeBase> intakeInfo(Long intakeId){
        QueryResultVo<VoArIntakeBase> rsVo = new QueryResultVo<>() ;
        List<VoArIntakeBase> list = this.dao.intakeInfo(intakeId);
        if(list != null && list.size() > 0){
            rsVo.obj = list.get(0) ;
        }
        return rsVo ;
    }
}