From 437713ee567f25c04f094057a1908b6dc54eeefd Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 16 十一月 2023 16:57:29 +0800 Subject: [PATCH] 1、农户类型管理 2、农户管理 --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java index 604fcd0..4291e92 100644 --- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java @@ -2,10 +2,43 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dy.pipIrrGlobal.pojoBa.BaClient; +import com.dy.pipIrrGlobal.pojoBa.BaClientType; import org.apache.ibatis.annotations.Mapper; + +import java.util.List; +import java.util.Map; @Mapper public interface BaClientMapper extends BaseMapper<BaClient> { + + /** + * 閫氳繃ID寰楀埌瀹炰綋 + * @param id 瀹炰綋ID + * @return 瀹炰綋 + */ + BaClient selectByPrimaryKey(Long id) ; + + /** + * 鏌ヨ鏌愮被鍨嬪啘鎴锋�绘暟 + * @param typeId 鍐滄埛绫诲瀷ID + * @return 鎬绘暟 + */ + Long selectCountByType(Long typeId) ; + + /** + * 鏌ヨ鎬绘暟 + * @param params 鏌ヨ鏉′欢 + * @return 鎬绘暟 + */ + Long selectTotal(Map<?, ?> params) ; + + /** + * 鍒嗛〉鏌ヨ涓�浜� + * @param params 鏌ヨ鏉′欢 + * @return 瀹炰綋闆嗗悎 + */ + List<BaClient> selectSome(Map<?, ?> params) ; + /** * insert record to table * @param record the record @@ -19,4 +52,35 @@ * @return insert count */ int insertSelective(BaClient record); + + + /** + * update record selective + * @param record the updated record + * @return update count + */ + int updateByPrimaryKeySelective(BaClient record); + + /** + * update record + * @param record the updated record + * @return update count + */ + int updateByPrimaryKey(BaClient record); + + + /** + * 閫昏緫鍒犻櫎 + * @param id primaryKey + * @return update count + */ + int deleteLogicById(Long id); + + /** + * 瀹為檯鍒犻櫎 + * @param id primaryKey + * @return update count + */ + int deleteByPrimaryKey(Long id); + } \ No newline at end of file -- Gitblit v1.8.0