From ab9bc35f9f3e6fe2e57fe054aa0dc898fe9a8d2c Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 02 九月 2021 15:45:57 +0800 Subject: [PATCH] update MP字段验证策略更改为 NOT_NULL 个别特殊字段使用注解单独处理 --- ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java | 73 +----------------------------------- 1 files changed, 2 insertions(+), 71 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java index b02a07c..8a1b309 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java @@ -1,6 +1,6 @@ package com.ruoyi.system.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus; import com.ruoyi.system.domain.SysPost; import java.util.List; @@ -10,29 +10,7 @@ * * @author ruoyi */ -public interface SysPostMapper extends BaseMapper<SysPost> { - /** - * 鏌ヨ宀椾綅鏁版嵁闆嗗悎 - * - * @param post 宀椾綅淇℃伅 - * @return 宀椾綅鏁版嵁闆嗗悎 - */ - public List<SysPost> selectPostList(SysPost post); - - /** - * 鏌ヨ鎵�鏈夊矖浣� - * - * @return 宀椾綅鍒楄〃 - */ - public List<SysPost> selectPostAll(); - - /** - * 閫氳繃宀椾綅ID鏌ヨ宀椾綅淇℃伅 - * - * @param postId 宀椾綅ID - * @return 瑙掕壊瀵硅薄淇℃伅 - */ - public SysPost selectPostById(Long postId); +public interface SysPostMapper extends BaseMapperPlus<SysPost> { /** * 鏍规嵁鐢ㄦ埛ID鑾峰彇宀椾綅閫夋嫨妗嗗垪琛� @@ -50,51 +28,4 @@ */ public List<SysPost> selectPostsByUserName(String userName); - /** - * 鍒犻櫎宀椾綅淇℃伅 - * - * @param postId 宀椾綅ID - * @return 缁撴灉 - */ - public int deletePostById(Long postId); - - /** - * 鎵归噺鍒犻櫎宀椾綅淇℃伅 - * - * @param postIds 闇�瑕佸垹闄ょ殑宀椾綅ID - * @return 缁撴灉 - */ - public int deletePostByIds(Long[] postIds); - - /** - * 淇敼宀椾綅淇℃伅 - * - * @param post 宀椾綅淇℃伅 - * @return 缁撴灉 - */ - public int updatePost(SysPost post); - - /** - * 鏂板宀椾綅淇℃伅 - * - * @param post 宀椾綅淇℃伅 - * @return 缁撴灉 - */ - public int insertPost(SysPost post); - - /** - * 鏍¢獙宀椾綅鍚嶇О - * - * @param postName 宀椾綅鍚嶇О - * @return 缁撴灉 - */ - public SysPost checkPostNameUnique(String postName); - - /** - * 鏍¢獙宀椾綅缂栫爜 - * - * @param postCode 宀椾綅缂栫爜 - * @return 缁撴灉 - */ - public SysPost checkPostCodeUnique(String postCode); } -- Gitblit v1.9.3