智慧农业后台管理
zengh
2022-08-01 d95f6551e8214d69cd0fd511ec693641eb61ba16
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
package org.springblade.modules.farm.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.farm.entity.Farm;
import org.springblade.modules.farm.vo.FarmVO;
 
import java.util.List;
 
/**
 * 农场服务类
 * @since 2022-05-10
 * @author zhongrj
 */
public interface FarmService extends IService<Farm> {
 
    /**
     * 自定义分页
     *
     * @param page
     * @param farm
     * @return
     */
    IPage<FarmVO> selectFarmPage(IPage<FarmVO> page, FarmVO farm);
 
 
    /**
     * 更新农场信息
     * @param farm
     * @return
     */
    boolean updateFarmById(Farm farm);
 
    /**
     * 详情信息(自定义查询)
     * @param farm
     * @return
     */
    Farm getFarmInfo(FarmVO farm);
    Integer selectCountFarm();
    Integer selectCountUser();
 
    /**
     * 自定义新增农场信息
     * @param farm
     * @return
     */
    boolean saveFarmInfo(Farm farm);
 
    /**
     * 自定义查询所有农场信息(不分页)
     * @param farm
     * @return
     */
    List<FarmVO> getFarmList(FarmVO farm);
}