From cc21e79cd80345b97cc899ddff02c962d4f432fc Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期三, 23 四月 2025 14:48:03 +0800 Subject: [PATCH] feat(irrigate): 增加轮灌组名称重复性检查功能 --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateGroupMapper.java | 95 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 82 insertions(+), 13 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateGroupMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateGroupMapper.java index 744862d..b2be323 100644 --- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateGroupMapper.java +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateGroupMapper.java @@ -2,32 +2,36 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dy.pipIrrGlobal.pojoIr.IrIrrigateGroup; -import com.dy.pipIrrGlobal.pojoIr.IrIrrigateUnit; -import com.dy.pipIrrGlobal.voIr.VoGroup; -import com.dy.pipIrrGlobal.voIr.VoGroupOne; -import com.dy.pipIrrGlobal.voIr.VoUnit; -import com.dy.pipIrrGlobal.voIr.VoUnitOne; +import com.dy.pipIrrGlobal.voIr.*; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import java.util.Date; import java.util.List; import java.util.Map; /** - * @author :WuZeYu - * @Date :2024/5/21 15:32 - * @LastEditTime :2024/5/21 15:32 + * @author ZhuBaoMin + * @date 2025-03-18 11:21 + * @LastEditTime 2025-03-18 11:21 * @Description */ + @Mapper public interface IrIrrigateGroupMapper extends BaseMapper<IrIrrigateGroup> { - //澧� + int deleteByPrimaryKey(Long id); + + int insert(IrIrrigateGroup record); + int insertSelective(IrIrrigateGroup record); - //鍒� - int deleteLogicById(Long id); + IrIrrigateGroup selectByPrimaryKey(Long id); - //鏀� int updateByPrimaryKeySelective(IrIrrigateGroup record); + + int updateByPrimaryKey(IrIrrigateGroup record); + + int deleteLogicById(Long id); //鏌ヤ竴涓� VoGroupOne selectById(Long id); @@ -47,4 +51,69 @@ * @return */ List<VoGroup> getIrrigateGroups(Map<?, ?> params); -} + + /** + * 鏍规嵁鎸囧畾鏉′欢鑾峰彇杞亴缁勮褰曟暟 + * @param params + * @return + */ + Long getSimpleGroupCount(Map<?, ?> params); + + /** + * 鏍规嵁鎸囧畾鏉′欢鑾峰彇杞亴缁勫垪琛� + * @param params + * @return + */ + List<VoGroupSimple> getSimpleGroups(Map<?, ?> params); + + /** + * 鏍规嵁杞亴缁処D鑾峰彇杞亴缁勮鎯� + * @param groupId + * @return + */ + VoGroupDetail getGroupDetail(Long groupId); + + /** + * 鏍规嵁鐏屾簤璁″垝ID鑾峰彇璁″垝鍙戝竷缁撴灉 + * @param planId + * @return + */ + List<VoGroupResult> getGroupResult(Long planId); + + /** + * 鏍规嵁鐏屾簤璁″垝ID鑾峰彇杞亴缁勭粓姝㈢粨鏋� + * @param planId + * @param terminateTime + * @return + */ + List<VoGroupResult> getGroupResult_terminate(@Param("planId") Long planId, @Param("terminateTime") Date terminateTime); + + /** + * 鏍规嵁杞亴缁処D鑾峰彇杞亴缁勮鎯� + * @param groupId + * @return + */ + List<VoGroupIntakes> getGroupIntakes(Long groupId); + + /** + * 鏍规嵁杞亴缁処D鑾峰彇杞亴缁勮鎯呭垪琛� + * @param groupId + * @return + */ + List<VoIntake> getGroupIntakesList(Long groupId); + + /** + * 鏍规嵁杞亴缁勫悕绉扮粺璁¤褰曟暟 + * @param groupCode 杞亴缁勫悕绉� + * @return 鍖归厤鐨勮褰曟暟 + */ + int countByGroupCode(@Param("groupCode") String groupCode); + + /** + * 鏍规嵁杞亴缁勫悕绉扮粺璁¤褰曟暟锛堟帓闄ゆ寚瀹欼D锛� + * @param groupCode 杞亴缁勫悕绉� + * @param excludeId 闇�瑕佹帓闄ょ殑杞亴缁処D + * @return 鍖归厤鐨勮褰曟暟 + */ + int countByGroupCodeExcludeId(@Param("groupCode") String groupCode, @Param("excludeId") Long excludeId); +} \ No newline at end of file -- Gitblit v1.8.0