|
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;
|
|
/**
|
* 农场服务类
|
* @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);
|
}
|