Browse Source

参数BUG修复

jichaobo 2 years ago
parent
commit
e68c9ff772

+ 4 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysConfigMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysConfig;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -37,7 +38,7 @@ public interface SysConfigMapper extends CrudMapper<SysConfig>
      * @param configKey 参数键名
      * @return 参数配置信息
      */
-    public SysConfig checkConfigKeyUnique(String configKey);
+    public SysConfig checkConfigKeyUnique(@Param("configKey") String configKey);
 
     /**
      * 新增参数配置
@@ -61,7 +62,7 @@ public interface SysConfigMapper extends CrudMapper<SysConfig>
      * @param configId 参数ID
      * @return 结果
      */
-    public int deleteConfigById(Long configId);
+    public int deleteConfigById(@Param("configId") Long configId);
 
     /**
      * 批量删除参数信息
@@ -69,5 +70,5 @@ public interface SysConfigMapper extends CrudMapper<SysConfig>
      * @param configIds 需要删除的参数ID
      * @return 结果
      */
-    public int deleteConfigByIds(Long[] configIds);
+    public int deleteConfigByIds(@Param("configIds") Long[] configIds);
 }

+ 10 - 8
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysDeptMapper.java

@@ -31,7 +31,8 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptCheckStrictly 部门树选择项是否关联显示
      * @return 选中部门列表
      */
-    public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
+    public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId,
+                                                @Param("deptCheckStrictly") boolean deptCheckStrictly);
 
     /**
      * 根据部门ID查询信息
@@ -39,7 +40,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 部门信息
      */
-    public SysDept selectDeptById(Long deptId);
+    public SysDept selectDeptById(@Param("deptId") Long deptId);
 
     /**
      * 根据ID查询所有子部门
@@ -47,7 +48,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 部门列表
      */
-    public List<SysDept> selectChildrenDeptById(Long deptId);
+    public List<SysDept> selectChildrenDeptById(@Param("deptId") Long deptId);
 
     /**
      * 根据ID查询所有子部门(正常状态)
@@ -55,7 +56,8 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 子部门数
      */
-    public int selectNormalChildrenDeptById(Long deptId,Integer tenantId);
+    public int selectNormalChildrenDeptById(@Param("deptId") Long deptId,
+                                            @Param("tenantId") Integer tenantId);
 
     /**
      * 是否存在子节点
@@ -63,7 +65,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 结果
      */
-    public int hasChildByDeptId(Long deptId);
+    public int hasChildByDeptId(@Param("deptId") Long deptId);
 
     /**
      * 查询部门是否存在用户
@@ -71,7 +73,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 结果
      */
-    public int checkDeptExistUser(Long deptId);
+    public int checkDeptExistUser(@Param("deptId") Long deptId);
 
     /**
      * 校验部门名称是否唯一
@@ -105,7 +107,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * 
      * @param deptIds 部门ID组
      */
-    public void updateDeptStatusNormal(Long[] deptIds);
+    public void updateDeptStatusNormal(@Param("deptIds") Long[] deptIds);
 
     /**
      * 修改子元素关系
@@ -121,5 +123,5 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
      * @param deptId 部门ID
      * @return 结果
      */
-    public int deleteDeptById(Long deptId);
+    public int deleteDeptById(@Param("deptId") Long deptId);
 }

+ 9 - 7
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysDictDataMapper.java

@@ -31,7 +31,7 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictType 字典类型
      * @return 字典数据集合信息
      */
-    public List<SysDictData> selectDictDataByType(String dictType);
+    public List<SysDictData> selectDictDataByType(@Param("dictType") String dictType);
 
     /**
      * 根据字典类型和字典键值查询字典数据信息
@@ -40,7 +40,8 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictValue 字典键值
      * @return 字典标签
      */
-    public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
+    public String selectDictLabel(@Param("dictType") String dictType,
+                                  @Param("dictValue") String dictValue);
 
     /**
      * 根据字典数据ID查询信息
@@ -48,7 +49,7 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictCode 字典数据ID
      * @return 字典数据
      */
-    public SysDictData selectDictDataById(Long dictCode);
+    public SysDictData selectDictDataById(@Param("dictCode") Long dictCode);
 
     /**
      * 查询字典数据
@@ -56,7 +57,7 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictType 字典类型
      * @return 字典数据
      */
-    public int countDictDataByType(String dictType);
+    public int countDictDataByType(@Param("dictType") String dictType);
 
     /**
      * 通过字典ID删除字典数据信息
@@ -64,7 +65,7 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictCode 字典数据ID
      * @return 结果
      */
-    public int deleteDictDataById(Long dictCode);
+    public int deleteDictDataById(@Param("dictCode") Long dictCode);
 
     /**
      * 批量删除字典数据信息
@@ -72,7 +73,7 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param dictCodes 需要删除的字典数据ID
      * @return 结果
      */
-    public int deleteDictDataByIds(Long[] dictCodes);
+    public int deleteDictDataByIds(@Param("dictCodes") Long[] dictCodes);
 
     /**
      * 新增字典数据信息
@@ -97,5 +98,6 @@ public interface SysDictDataMapper extends CrudMapper<SysDictData>
      * @param newDictType 新旧字典类型
      * @return 结果
      */
-    public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
+    public int updateDictDataType(@Param("oldDictType") String oldDictType,
+                                  @Param("newDictType") String newDictType);
 }

+ 2 - 1
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysLogininforMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysLogininfor;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -37,7 +38,7 @@ public interface SysLogininforMapper extends CrudMapper<SysLogininfor>
      * @param infoIds 需要删除的登录日志ID
      * @return 结果
      */
-    public int deleteLogininforByIds(Long[] infoIds);
+    public int deleteLogininforByIds(@Param("infoIds") Long[] infoIds);
 
     /**
      * 清空系统登录日志

+ 11 - 9
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysMenuMapper.java

@@ -49,7 +49,7 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      */
     public List<SysMenu> selectMenuListByUserId(SysMenu menu);
 
-    public List<SysMenu> selectMenuListByUserIdOne(Long userId);
+    public List<SysMenu> selectMenuListByUserIdOne(@Param("userId") Long userId);
 
     /**
      * 根据用户ID查询权限
@@ -57,9 +57,9 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param userId 用户ID
      * @return 权限列表
      */
-    public List<String> selectMenuPermsByUserId(Long userId);
+    public List<String> selectMenuPermsByUserId(@Param("userId") Long userId);
 
-    public List<String> selectMenuPermsByUserIdOne(Integer tenantId);
+    public List<String> selectMenuPermsByUserIdOne(@Param("tenantId") Integer tenantId);
 
     /**
      * 根据用户ID查询菜单
@@ -74,7 +74,7 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param userId 用户ID
      * @return 菜单列表
      */
-    public List<SysMenu> selectMenuTreeByUserId(Long userId);
+    public List<SysMenu> selectMenuTreeByUserId(@Param("userId") Long userId);
 
     public List<SysMenu> selectMenuTreeByUserIdOne(@Param("tenantId") Integer tenantId);
 
@@ -85,7 +85,8 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param menuCheckStrictly 菜单树选择项是否关联显示
      * @return 选中菜单列表
      */
-    public List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
+    public List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId,
+                                                @Param("menuCheckStrictly") boolean menuCheckStrictly);
 
     /**
      * 根据菜单ID查询信息
@@ -93,7 +94,7 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param menuId 菜单ID
      * @return 菜单信息
      */
-    public SysMenu selectMenuById(Long menuId);
+    public SysMenu selectMenuById(@Param("menuId") Long menuId);
 
     /**
      * 是否存在菜单子节点
@@ -101,7 +102,7 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param menuId 菜单ID
      * @return 结果
      */
-    public int hasChildByMenuId(Long menuId);
+    public int hasChildByMenuId(@Param("menuId") Long menuId);
 
     /**
      * 新增菜单信息
@@ -125,7 +126,7 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param menuId 菜单ID
      * @return 结果
      */
-    public int deleteMenuById(Long menuId);
+    public int deleteMenuById(@Param("menuId") Long menuId);
 
     /**
      * 校验菜单名称是否唯一
@@ -134,7 +135,8 @@ public interface SysMenuMapper extends CrudMapper<SysMenu> {
      * @param parentId 父菜单ID
      * @return 结果
      */
-    public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
+    public SysMenu checkMenuNameUnique(@Param("menuName") String menuName,
+                                       @Param("parentId") Long parentId);
 
     public List<SysMenu> getSysMenuList(String menuType);
 

+ 4 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysNoticeMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysNotice;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -21,7 +22,7 @@ public interface SysNoticeMapper extends CrudMapper<SysNotice>
      * @param noticeId 公告ID
      * @return 公告信息
      */
-    public SysNotice selectNoticeById(Long noticeId);
+    public SysNotice selectNoticeById(@Param("noticeId") Long noticeId);
 
     /**
      * 查询公告列表
@@ -53,7 +54,7 @@ public interface SysNoticeMapper extends CrudMapper<SysNotice>
      * @param noticeId 公告ID
      * @return 结果
      */
-    public int deleteNoticeById(Long noticeId);
+    public int deleteNoticeById(@Param("noticeId") Long noticeId);
 
     /**
      * 批量删除公告信息
@@ -61,5 +62,5 @@ public interface SysNoticeMapper extends CrudMapper<SysNotice>
      * @param noticeIds 需要删除的公告ID
      * @return 结果
      */
-    public int deleteNoticeByIds(Long[] noticeIds);
+    public int deleteNoticeByIds(@Param("noticeIds") Long[] noticeIds);
 }

+ 3 - 2
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysOperLogMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysOperLog;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -37,7 +38,7 @@ public interface SysOperLogMapper extends CrudMapper<SysOperLog>
      * @param operIds 需要删除的操作日志ID
      * @return 结果
      */
-    public int deleteOperLogByIds(Long[] operIds);
+    public int deleteOperLogByIds(@Param("operIds") Long[] operIds);
 
     /**
      * 查询操作日志详细
@@ -45,7 +46,7 @@ public interface SysOperLogMapper extends CrudMapper<SysOperLog>
      * @param operId 操作ID
      * @return 操作日志对象
      */
-    public SysOperLog selectOperLogById(Long operId);
+    public SysOperLog selectOperLogById(@Param("operId") Long operId);
 
     /**
      * 清空操作日志

+ 4 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysRoleDeptMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysRoleDept;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -21,7 +22,7 @@ public interface SysRoleDeptMapper extends CrudMapper<SysRoleDept>
      * @param roleId 角色ID
      * @return 结果
      */
-    public int deleteRoleDeptByRoleId(Long roleId);
+    public int deleteRoleDeptByRoleId(@Param("roleId") Long roleId);
 
     /**
      * 批量删除角色部门关联信息
@@ -29,7 +30,7 @@ public interface SysRoleDeptMapper extends CrudMapper<SysRoleDept>
      * @param ids 需要删除的数据ID
      * @return 结果
      */
-    public int deleteRoleDept(Long[] ids);
+    public int deleteRoleDept(@Param("ids") Long[] ids);
 
     /**
      * 查询部门使用数量
@@ -37,7 +38,7 @@ public interface SysRoleDeptMapper extends CrudMapper<SysRoleDept>
      * @param deptId 部门ID
      * @return 结果
      */
-    public int selectCountRoleDeptByDeptId(Long deptId);
+    public int selectCountRoleDeptByDeptId(@Param("deptId") Long deptId);
 
     /**
      * 批量新增角色部门信息

+ 4 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysRoleMenuMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysRoleMenu;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -21,7 +22,7 @@ public interface SysRoleMenuMapper extends CrudMapper<SysRoleMenu>
      * @param menuId 菜单ID
      * @return 结果
      */
-    public int checkMenuExistRole(Long menuId);
+    public int checkMenuExistRole(@Param("menuId") Long menuId);
 
     /**
      * 通过角色ID删除角色和菜单关联
@@ -29,7 +30,7 @@ public interface SysRoleMenuMapper extends CrudMapper<SysRoleMenu>
      * @param roleId 角色ID
      * @return 结果
      */
-    public int deleteRoleMenuByRoleId(Long roleId);
+    public int deleteRoleMenuByRoleId(@Param("roleId") Long roleId);
 
     /**
      * 批量删除角色菜单关联信息
@@ -37,7 +38,7 @@ public interface SysRoleMenuMapper extends CrudMapper<SysRoleMenu>
      * @param ids 需要删除的数据ID
      * @return 结果
      */
-    public int deleteRoleMenu(Long[] ids);
+    public int deleteRoleMenu(@Param("ids") Long[] ids);
 
     /**
      * 批量新增角色菜单信息

+ 4 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysUserPostMapper.java

@@ -3,6 +3,7 @@ package com.usky.system.mapper;
 
 import com.usky.common.mybatis.core.CrudMapper;
 import com.usky.system.domain.SysUserPost;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
@@ -21,7 +22,7 @@ public interface SysUserPostMapper extends CrudMapper<SysUserPost>
      * @param userId 用户ID
      * @return 结果
      */
-    public int deleteUserPostByUserId(Long userId);
+    public int deleteUserPostByUserId(@Param("userId") Long userId);
 
     /**
      * 通过岗位ID查询岗位使用数量
@@ -29,7 +30,7 @@ public interface SysUserPostMapper extends CrudMapper<SysUserPost>
      * @param postId 岗位ID
      * @return 结果
      */
-    public int countUserPostById(Long postId);
+    public int countUserPostById(@Param("postId") Long postId);
 
     /**
      * 批量删除用户和岗位关联
@@ -37,7 +38,7 @@ public interface SysUserPostMapper extends CrudMapper<SysUserPost>
      * @param ids 需要删除的数据ID
      * @return 结果
      */
-    public int deleteUserPost(Long[] ids);
+    public int deleteUserPost(@Param("ids") Long[] ids);
 
     /**
      * 批量新增用户岗位信息

+ 3 - 3
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/mapper/SysUserRoleMapper.java

@@ -22,7 +22,7 @@ public interface SysUserRoleMapper extends CrudMapper<SysUserRole>
      * @param userId 用户ID
      * @return 结果
      */
-    public int deleteUserRoleByUserId(Long userId);
+    public int deleteUserRoleByUserId(@Param("userId") Long userId);
 
     /**
      * 批量删除用户和角色关联
@@ -30,7 +30,7 @@ public interface SysUserRoleMapper extends CrudMapper<SysUserRole>
      * @param ids 需要删除的数据ID
      * @return 结果
      */
-    public int deleteUserRole(Long[] ids);
+    public int deleteUserRole(@Param("ids") Long[] ids);
 
     /**
      * 通过角色ID查询角色使用数量
@@ -38,7 +38,7 @@ public interface SysUserRoleMapper extends CrudMapper<SysUserRole>
      * @param roleId 角色ID
      * @return 结果
      */
-    public int countUserRoleByRoleId(Long roleId);
+    public int countUserRoleByRoleId(@Param("roleId") Long roleId);
 
     /**
      * 批量新增用户角色信息