From d443f89f684bbf6114127391c7b863ad3790665d Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 15 八月 2025 15:36:02 +0800
Subject: [PATCH] 作物实体增加属性
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoMd/MdCropsMapper.java | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoMd/MdCropsMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoMd/MdCropsMapper.java
index 3d75fd7..34dba3d 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoMd/MdCropsMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoMd/MdCropsMapper.java
@@ -1,13 +1,21 @@
package com.dy.pipIrrGlobal.daoMd;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoMd.MdCrops;
+import com.dy.pipIrrGlobal.voMd.VoCrops;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+import java.util.Map;
/**
* @Author: liurunyu
- * @Date: 2025/8/6 10:51
+ * @Date: 2025/8/15 15:22
* @Description
*/
-public interface MdCropsMapper {
+@Mapper
+public interface MdCropsMapper extends BaseMapper<MdCrops> {
int deleteByPrimaryKey(Long id);
int insert(MdCrops record);
@@ -19,4 +27,37 @@
int updateByPrimaryKeySelective(MdCrops record);
int updateByPrimaryKey(MdCrops record);
+
+ VoCrops selectById(Long id);
+
+ /**
+ * 鏌ヨ鎬绘暟
+ *
+ * @param params 鏌ヨ鏉′欢
+ * @return 鎬绘暟
+ */
+ Long selectTotal(Map<?, ?> params);
+
+ /**
+ * 鍒嗛〉鏌ヨ涓�浜�
+ *
+ * @param params 鏌ヨ鏉′欢
+ * @return 瀹炰綋闆嗗悎
+ */
+ List<VoCrops> selectSome(Map<?, ?> params);
+
+ /**
+ * 鏌ヨ鎵�鏈夊疄浣�
+ *
+ * @return 瀹炰綋闆嗗悎
+ */
+ List<VoCrops> selectAll();
+
+ /**
+ * 鏍规嵁id閫昏緫鍒犻櫎
+ *
+ * @param id
+ * @return
+ */
+ Integer deleteById(@Param("id") Long id);
}
\ No newline at end of file
--
Gitblit v1.8.0