From 203223860baa19deb6860eb2ba3181910d662980 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期四, 17 四月 2025 14:22:59 +0800 Subject: [PATCH] 1. 轮灌组被终止时灌溉时长为实际数值。2. 计划历史表按照创建时间倒排序。3. 发布计划时判断是否同项目下未完成计划,是否其他项目下使用了本计划的轮灌组且计划未完成。4. 根据计划ID获取计划最新状态。 --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 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 new file mode 100644 index 0000000..63a08f5 --- /dev/null +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java @@ -0,0 +1,96 @@ +package com.dy.pipIrrGlobal.daoBa; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.dy.pipIrrGlobal.pojoBa.BaClient; +import com.dy.pipIrrGlobal.voBa.VoAreaCode; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +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 + * @return insert count + */ + int putin(BaClient record); + + /** + * insert record to table selective + * @param record the record + * @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); + + + /** + * 鏍规嵁鍐滄埛缂栧彿鑾峰彇5绾ц鏀垮尯鍒掍唬鐮� + * @param clientNum 鍐滄埛缂栧彿 + * @return 5绾ц鏀垮尯鍒掍唬鐮� + */ + VoAreaCode getAreaCodeByNum(@Param("clientNum") String clientNum); + + +} \ No newline at end of file -- Gitblit v1.8.0