liurunyu
2025-02-19 7cbf8ff292a6f7edf27486c42b90845a57e45c0c
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
package com.dy.pipIrrIrrigate.irrigatePlan;
 
import com.dy.pipIrrGlobal.daoIr.IrGroupClientMapper;
import com.dy.pipIrrGlobal.voIr.VoGroupSimple;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @author ZhuBaoMin
 * @date 2024-11-28 17:20
 * @LastEditTime 2024-11-28 17:20
 * @Description 灌溉计划服务类
 */
 
@Slf4j
@Service
public class IrrigatePlanSv {
    @Autowired
    private IrGroupClientMapper irGroupClientMapper;
 
    /**
     * 根据农户编号获取轮灌组列表
     * @param clientId
     * @return
     */
    public List<VoGroupSimple> getGroups(Long clientId) {
        return irGroupClientMapper.getGroupsByClientId(clientId);
    }
}