Compare commits

..

No commits in common. "040f466b7ff997a4daedc47ca45fb950e6c1fcf6" and "fe92bf1bd99f65d08d3ea0090e52051d8a71853a" have entirely different histories.

57 changed files with 392 additions and 328 deletions

View File

@ -53,7 +53,7 @@ public class ManyDataSource {
List<EnterPriseInfo> list = new ArrayList<>(); List<EnterPriseInfo> list = new ArrayList<>();
list.add( list.add(
EnterPriseInfo.builder() EnterPriseInfo.builder()
.entCode("jiang_0612") .entCode("jiang_0606")
.ip("101.34.248.9") .ip("101.34.248.9")
.port(3309) .port(3309)
.build() .build()

View File

@ -1,12 +1,12 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* fence * fence

View File

@ -1,12 +1,12 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* fence * fence

View File

@ -1,12 +1,12 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* fence * fence

View File

@ -1,16 +1,15 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* vehicle * vehicle

View File

@ -1,16 +1,15 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* vehicle * vehicle

View File

@ -1,16 +1,15 @@
package com.muyu.customer.business.domain.req; package com.muyu.customer.business.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* vehicle * vehicle

View File

@ -102,11 +102,10 @@ public class FenceController extends BaseController {
*/ */
@RequiresPermissions("customerBusiness:fence:remove") @RequiresPermissions("customerBusiness:fence:remove")
@Log(title = "电子围栏", businessType = BusinessType.DELETE) @Log(title = "电子围栏", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
@ApiOperation("删除电子围栏") @ApiOperation("删除电子围栏")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4") @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) { public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(fenceService.removeBatchByIds(ids)); return toAjax(fenceService.removeBatchByIds(ids));
} }
} }

View File

@ -3,8 +3,6 @@ package com.muyu.customer.business.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.muyu.customer.business.mapper.VehicleMapper;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -38,12 +36,9 @@ import com.muyu.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/vehicle") @RequestMapping("/vehicle")
public class VehicleController extends BaseController { public class VehicleController extends BaseController {
@Autowired @Autowired
private VehicleService vehicleService; private VehicleService vehicleService;
@Autowired
private VehicleMapper vehicleMapper;
/** /**
* *
*/ */
@ -107,15 +102,10 @@ public class VehicleController extends BaseController {
*/ */
@RequiresPermissions("customerBusiness:vehicle:remove") @RequiresPermissions("customerBusiness:vehicle:remove")
@Log(title = "车辆录入", businessType = BusinessType.DELETE) @Log(title = "车辆录入", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
@ApiOperation("删除车辆录入") @ApiOperation("删除车辆录入")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4") @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) { public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(vehicleService.removeBatchByIds(ids)); return toAjax(vehicleService.removeBatchByIds(ids));
} }
@GetMapping("/list/all")
public Result<List<Vehicle>> findAll () {
return Result.success(vehicleMapper.selectList(new QueryWrapper<>()));
}
} }

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.customer.business.mapper.GroupMapper">
<resultMap type="com.muyu.customer.business.domain.Group" id="GroupResult">
<result property="id" column="id" />
<result property="groupName" column="group_name" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectGroupVo">
select id, group_name, remark, create_by, create_time, update_by, update_time from `group`
</sql>
<select id="selectGroupList" parameterType="com.muyu.customer.business.domain.Group" resultMap="GroupResult">
<include refid="selectGroupVo"/>
<where>
<if test="groupName != null and groupName != ''"> and group_name like concat('%', #{groupName}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
</where>
</select>
<select id="selectGroupById" parameterType="Long" resultMap="GroupResult">
<include refid="selectGroupVo"/>
where id = #{id}
</select>
<insert id="insertGroup" parameterType="com.muyu.customer.business.domain.Group" useGeneratedKeys="true" keyProperty="id">
insert into `group`
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="groupName != null">group_name,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="groupName != null">#{groupName},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateGroup" parameterType="com.muyu.customer.business.domain.Group">
update `group`
<trim prefix="SET" suffixOverrides=",">
<if test="groupName != null">group_name = #{groupName},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteGroupById" parameterType="Long">
delete from `group` where id = #{id}
</delete>
<delete id="deleteGroupByIds" parameterType="String">
delete from `group` where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,9 +1,9 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.constant.UserConstants; import com.muyu.common.core.constant.UserConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions; import com.muyu.common.security.annotation.RequiresPermissions;

View File

@ -1,9 +1,9 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,8 +1,8 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,9 +1,9 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.constant.CacheConstants; import com.muyu.common.core.constant.CacheConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,9 +1,9 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.constant.UserConstants; import com.muyu.common.core.constant.UserConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions; import com.muyu.common.security.annotation.RequiresPermissions;

View File

@ -1,7 +1,7 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,8 +1,8 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,8 +1,8 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -9,10 +9,10 @@ import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.service.TokenService; import com.muyu.common.security.service.TokenService;
import com.muyu.common.security.utils.SecurityUtils; import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.common.system.domain.LoginUser; import com.muyu.common.system.remote.RemoteFileService;
import com.muyu.common.system.domain.SysFile; import com.muyu.common.system.domain.SysFile;
import com.muyu.common.system.domain.SysUser; import com.muyu.common.system.domain.SysUser;
import com.muyu.common.system.remote.RemoteFileService; import com.muyu.common.system.domain.LoginUser;
import com.muyu.system.domain.resp.ProfileResp; import com.muyu.system.domain.resp.ProfileResp;
import com.muyu.system.service.SysUserService; import com.muyu.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,8 +1,8 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -10,10 +10,10 @@ import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.InnerAuth; import com.muyu.common.security.annotation.InnerAuth;
import com.muyu.common.security.annotation.RequiresPermissions; import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.common.security.utils.SecurityUtils; import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.common.system.domain.LoginUser;
import com.muyu.common.system.domain.SysDept; import com.muyu.common.system.domain.SysDept;
import com.muyu.common.system.domain.SysRole; import com.muyu.common.system.domain.SysRole;
import com.muyu.common.system.domain.SysUser; import com.muyu.common.system.domain.SysUser;
import com.muyu.common.system.domain.LoginUser;
import com.muyu.system.domain.resp.AuthRoleResp; import com.muyu.system.domain.resp.AuthRoleResp;
import com.muyu.system.domain.resp.UserDetailInfoResp; import com.muyu.system.domain.resp.UserDetailInfoResp;
import com.muyu.system.domain.resp.UserInfoResp; import com.muyu.system.domain.resp.UserInfoResp;

View File

@ -1,9 +1,9 @@
package com.muyu.system.controller; package com.muyu.system.controller;
import com.muyu.common.core.constant.CacheConstants; import com.muyu.common.core.constant.CacheConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo; import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log; import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType; import com.muyu.common.log.enums.BusinessType;

View File

@ -1,7 +1,5 @@
package com.muyu.system.domain; package com.muyu.system.domain;
/** /**
* 线 * 线
* *

View File

@ -19,7 +19,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectDeptList(SysDept dept); public List<SysDept> selectDeptList (SysDept dept);
/** /**
* ID * ID
@ -29,7 +29,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); public List<Long> selectDeptListByRoleId (@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
/** /**
* ID * ID
@ -38,7 +38,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
SysDept selectDeptById(Long deptId); public SysDept selectDeptById (Long deptId);
/** /**
* ID * ID
@ -47,7 +47,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectChildrenDeptById(Long deptId); public List<SysDept> selectChildrenDeptById (Long deptId);
/** /**
* ID * ID
@ -56,7 +56,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int selectNormalChildrenDeptById(Long deptId); public int selectNormalChildrenDeptById (Long deptId);
/** /**
* *
@ -65,7 +65,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int hasChildByDeptId(Long deptId); public int hasChildByDeptId (Long deptId);
/** /**
* *
@ -74,7 +74,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int checkDeptExistUser(Long deptId); public int checkDeptExistUser (Long deptId);
/** /**
* *
@ -84,7 +84,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); public SysDept checkDeptNameUnique (@Param("deptName") String deptName, @Param("parentId") Long parentId);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int insertDept(SysDept dept); public int insertDept (SysDept dept);
/** /**
* *
@ -102,14 +102,14 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int updateDept(SysDept dept); public int updateDept (SysDept dept);
/** /**
* *
* *
* @param deptIds ID * @param deptIds ID
*/ */
void updateDeptStatusNormal(Long[] deptIds); public void updateDeptStatusNormal (Long[] deptIds);
/** /**
* *
@ -118,7 +118,7 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int updateDeptChildren(@Param("depts") List<SysDept> depts); public int updateDeptChildren (@Param("depts") List<SysDept> depts);
/** /**
* *
@ -127,7 +127,8 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
* *
* @return * @return
*/ */
int deleteDeptById(Long deptId); public int deleteDeptById (Long deptId);
SysDept selectDeptByName(@Param("name") String name); SysDept selectDeptByName(@Param("name") String name);
} }

View File

@ -19,7 +19,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataList(SysDictData dictData); public List<SysDictData> selectDictDataList (SysDictData dictData);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataByType(String dictType); public List<SysDictData> selectDictDataByType (String dictType);
/** /**
* *
@ -38,7 +38,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); public String selectDictLabel (@Param("dictType") String dictType, @Param("dictValue") String dictValue);
/** /**
* ID * ID
@ -47,7 +47,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
SysDictData selectDictDataById(Long dictCode); public SysDictData selectDictDataById (Long dictCode);
/** /**
* *
@ -56,7 +56,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int countDictDataByType(String dictType); public int countDictDataByType (String dictType);
/** /**
* ID * ID
@ -65,7 +65,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int deleteDictDataById(Long dictCode); public int deleteDictDataById (Long dictCode);
/** /**
* *
@ -74,7 +74,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int deleteDictDataByIds(Long[] dictCodes); public int deleteDictDataByIds (Long[] dictCodes);
/** /**
* *
@ -83,7 +83,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int insertDictData(SysDictData dictData); public int insertDictData (SysDictData dictData);
/** /**
* *
@ -92,7 +92,7 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int updateDictData(SysDictData dictData); public int updateDictData (SysDictData dictData);
/** /**
* *
@ -102,5 +102,5 @@ public interface SysDictDataMapper extends BaseMapper<SysDictData> {
* *
* @return * @return
*/ */
int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); public int updateDictDataType (@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
} }

View File

@ -18,14 +18,14 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeList(SysDictType dictType); public List<SysDictType> selectDictTypeList (SysDictType dictType);
/** /**
* *
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeAll(); public List<SysDictType> selectDictTypeAll ();
/** /**
* ID * ID
@ -34,7 +34,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeById(Long dictId); public SysDictType selectDictTypeById (Long dictId);
/** /**
* *
@ -43,7 +43,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeByType(String dictType); public SysDictType selectDictTypeByType (String dictType);
/** /**
* ID * ID
@ -52,7 +52,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int deleteDictTypeById(Long dictId); public int deleteDictTypeById (Long dictId);
/** /**
* *
@ -61,7 +61,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int deleteDictTypeByIds(Long[] dictIds); public int deleteDictTypeByIds (Long[] dictIds);
/** /**
* *
@ -70,7 +70,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int insertDictType(SysDictType dictType); public int insertDictType (SysDictType dictType);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
int updateDictType(SysDictType dictType); public int updateDictType (SysDictType dictType);
/** /**
* *
@ -88,5 +88,5 @@ public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
* *
* @return * @return
*/ */
SysDictType checkDictTypeUnique(String dictType); public SysDictType checkDictTypeUnique (String dictType);
} }

View File

@ -16,7 +16,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @param logininfor 访 * @param logininfor 访
*/ */
int insertLogininfor(SysLogininfor logininfor); public int insertLogininfor (SysLogininfor logininfor);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @return * @return
*/ */
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); public List<SysLogininfor> selectLogininforList (SysLogininfor logininfor);
/** /**
* *
@ -34,12 +34,12 @@ public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
* *
* @return * @return
*/ */
int deleteLogininforByIds(Long[] infoIds); public int deleteLogininforByIds (Long[] infoIds);
/** /**
* *
* *
* @return * @return
*/ */
int cleanLogininfor(); public int cleanLogininfor ();
} }

View File

@ -19,14 +19,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(SysMenu menu); public List<SysMenu> selectMenuList (SysMenu menu);
/** /**
* *
* *
* @return * @return
*/ */
List<String> selectMenuPerms(); public List<String> selectMenuPerms ();
/** /**
* *
@ -35,7 +35,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuListByUserId(SysMenu menu); public List<SysMenu> selectMenuListByUserId (SysMenu menu);
/** /**
* ID * ID
@ -44,7 +44,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<String> selectMenuPermsByRoleId(Long roleId); public List<String> selectMenuPermsByRoleId (Long roleId);
/** /**
* ID * ID
@ -53,14 +53,14 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<String> selectMenuPermsByUserId(Long userId); public List<String> selectMenuPermsByUserId (Long userId);
/** /**
* ID * ID
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeAll(); public List<SysMenu> selectMenuTreeAll ();
/** /**
* ID * ID
@ -69,7 +69,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeByUserId(Long userId); public List<SysMenu> selectMenuTreeByUserId (Long userId);
/** /**
* ID * ID
@ -79,7 +79,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); public List<Long> selectMenuListByRoleId (@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
/** /**
* ID * ID
@ -88,7 +88,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
SysMenu selectMenuById(Long menuId); public SysMenu selectMenuById (Long menuId);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int hasChildByMenuId(Long menuId); public int hasChildByMenuId (Long menuId);
/** /**
* *
@ -106,7 +106,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int insertMenu(SysMenu menu); public int insertMenu (SysMenu menu);
/** /**
* *
@ -115,7 +115,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int updateMenu(SysMenu menu); public int updateMenu (SysMenu menu);
/** /**
* *
@ -124,7 +124,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
int deleteMenuById(Long menuId); public int deleteMenuById (Long menuId);
/** /**
* *
@ -134,5 +134,5 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
* *
* @return * @return
*/ */
SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); public SysMenu checkMenuNameUnique (@Param("menuName") String menuName, @Param("parentId") Long parentId);
} }

View File

@ -18,7 +18,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
SysNotice selectNoticeById(Long noticeId); public SysNotice selectNoticeById (Long noticeId);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
List<SysNotice> selectNoticeList(SysNotice notice); public List<SysNotice> selectNoticeList (SysNotice notice);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int insertNotice(SysNotice notice); public int insertNotice (SysNotice notice);
/** /**
* *
@ -45,7 +45,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int updateNotice(SysNotice notice); public int updateNotice (SysNotice notice);
/** /**
* *
@ -54,7 +54,7 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeById(Long noticeId); public int deleteNoticeById (Long noticeId);
/** /**
* *
@ -63,5 +63,5 @@ public interface SysNoticeMapper extends BaseMapper<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeByIds(Long[] noticeIds); public int deleteNoticeByIds (Long[] noticeIds);
} }

View File

@ -16,7 +16,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @param operLog * @param operLog
*/ */
int insertOperlog(SysOperLog operLog); public int insertOperlog (SysOperLog operLog);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
List<SysOperLog> selectOperLogList(SysOperLog operLog); public List<SysOperLog> selectOperLogList (SysOperLog operLog);
/** /**
* *
@ -34,7 +34,7 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
int deleteOperLogByIds(Long[] operIds); public int deleteOperLogByIds (Long[] operIds);
/** /**
* *
@ -43,10 +43,10 @@ public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
* *
* @return * @return
*/ */
SysOperLog selectOperLogById(Long operId); public SysOperLog selectOperLogById (Long operId);
/** /**
* *
*/ */
void cleanOperLog(); public void cleanOperLog ();
} }

View File

@ -18,14 +18,14 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostList(SysPost post); public List<SysPost> selectPostList (SysPost post);
/** /**
* *
* *
* @return * @return
*/ */
List<SysPost> selectPostAll(); public List<SysPost> selectPostAll ();
/** /**
* ID * ID
@ -34,7 +34,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost selectPostById(Long postId); public SysPost selectPostById (Long postId);
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return ID * @return ID
*/ */
List<Long> selectPostListByUserId(Long userId); public List<Long> selectPostListByUserId (Long userId);
/** /**
* *
@ -52,7 +52,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostsByUserName(String userName); public List<SysPost> selectPostsByUserName (String userName);
/** /**
* *
@ -61,7 +61,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int deletePostById(Long postId); public int deletePostById (Long postId);
/** /**
* *
@ -70,7 +70,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int deletePostByIds(Long[] postIds); public int deletePostByIds (Long[] postIds);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int updatePost(SysPost post); public int updatePost (SysPost post);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
int insertPost(SysPost post); public int insertPost (SysPost post);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost checkPostNameUnique(String postName); public SysPost checkPostNameUnique (String postName);
/** /**
* *
@ -106,5 +106,5 @@ public interface SysPostMapper extends BaseMapper<SysPost> {
* *
* @return * @return
*/ */
SysPost checkPostCodeUnique(String postCode); public SysPost checkPostCodeUnique (String postCode);
} }

View File

@ -19,7 +19,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int deleteRoleDeptByRoleId(Long roleId); public int deleteRoleDeptByRoleId (Long roleId);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int deleteRoleDept(Long[] ids); public int deleteRoleDept (Long[] ids);
/** /**
* 使 * 使
@ -37,7 +37,7 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int selectCountRoleDeptByDeptId(Long deptId); public int selectCountRoleDeptByDeptId (Long deptId);
/** /**
* *
@ -46,5 +46,5 @@ public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
* *
* @return * @return
*/ */
int batchRoleDept(List<SysRoleDept> roleDeptList); public int batchRoleDept (List<SysRoleDept> roleDeptList);
} }

View File

@ -18,7 +18,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRoleList(SysRole role); public List<SysRole> selectRoleList (SysRole role);
/** /**
* ID * ID
@ -27,14 +27,14 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolePermissionByUserId(Long userId); public List<SysRole> selectRolePermissionByUserId (Long userId);
/** /**
* *
* *
* @return * @return
*/ */
List<SysRole> selectRoleAll(); public List<SysRole> selectRoleAll ();
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return ID * @return ID
*/ */
List<Long> selectRoleListByUserId(Long userId); public List<Long> selectRoleListByUserId (Long userId);
/** /**
* ID * ID
@ -52,7 +52,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole selectRoleById(Long roleId); public SysRole selectRoleById (Long roleId);
/** /**
* ID * ID
@ -61,7 +61,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolesByUserName(String userName); public List<SysRole> selectRolesByUserName (String userName);
/** /**
* *
@ -70,7 +70,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole checkRoleNameUnique(String roleName); public SysRole checkRoleNameUnique (String roleName);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
SysRole checkRoleKeyUnique(String roleKey); public SysRole checkRoleKeyUnique (String roleKey);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int updateRole(SysRole role); public int updateRole (SysRole role);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int insertRole(SysRole role); public int insertRole (SysRole role);
/** /**
* ID * ID
@ -106,7 +106,7 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleById(Long roleId); public int deleteRoleById (Long roleId);
/** /**
* *
@ -115,5 +115,5 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleByIds(Long[] roleIds); public int deleteRoleByIds (Long[] roleIds);
} }

View File

@ -19,7 +19,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int checkMenuExistRole(Long menuId); public int checkMenuExistRole (Long menuId);
/** /**
* ID * ID
@ -28,7 +28,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int deleteRoleMenuByRoleId(Long roleId); public int deleteRoleMenuByRoleId (Long roleId);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int deleteRoleMenu(Long[] ids); public int deleteRoleMenu (Long[] ids);
/** /**
* *
@ -46,5 +46,5 @@ public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
* *
* @return * @return
*/ */
int batchRoleMenu(List<SysRoleMenu> roleMenuList); public int batchRoleMenu (List<SysRoleMenu> roleMenuList);
} }

View File

@ -19,7 +19,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUserList(SysUser sysUser); public List<SysUser> selectUserList (SysUser sysUser);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectAllocatedList(SysUser user); public List<SysUser> selectAllocatedList (SysUser user);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUnallocatedList(SysUser user); public List<SysUser> selectUnallocatedList (SysUser user);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserByUserName(String userName); public SysUser selectUserByUserName (String userName);
/** /**
* ID * ID
@ -55,7 +55,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserById(Long userId); public SysUser selectUserById (Long userId);
/** /**
* *
@ -64,7 +64,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int insertUser(SysUser user); public int insertUser (SysUser user);
/** /**
* *
@ -73,7 +73,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int updateUser(SysUser user); public int updateUser (SysUser user);
/** /**
* *
@ -83,7 +83,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar); public int updateUserAvatar (@Param("userName") String userName, @Param("avatar") String avatar);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int resetUserPwd(@Param("userName") String userName, @Param("password") String password); public int resetUserPwd (@Param("userName") String userName, @Param("password") String password);
/** /**
* ID * ID
@ -102,7 +102,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int deleteUserById(Long userId); public int deleteUserById (Long userId);
/** /**
* *
@ -111,7 +111,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
int deleteUserByIds(Long[] userIds); public int deleteUserByIds (Long[] userIds);
/** /**
* *
@ -120,7 +120,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkUserNameUnique(String userName); public SysUser checkUserNameUnique (String userName);
/** /**
* *
@ -129,7 +129,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkPhoneUnique(String phonenumber); public SysUser checkPhoneUnique (String phonenumber);
/** /**
* email * email
@ -138,5 +138,5 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
* *
* @return * @return
*/ */
SysUser checkEmailUnique(String email); public SysUser checkEmailUnique (String email);
} }

View File

@ -18,7 +18,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int deleteUserPostByUserId(Long userId); public int deleteUserPostByUserId (Long userId);
/** /**
* ID使 * ID使
@ -27,7 +27,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int countUserPostById(Long postId); public int countUserPostById (Long postId);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int deleteUserPost(Long[] ids); public int deleteUserPost (Long[] ids);
/** /**
* *
@ -45,5 +45,5 @@ public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
* *
* @return * @return
*/ */
int batchUserPost(List<SysUserPost> userPostList); public int batchUserPost (List<SysUserPost> userPostList);
} }

View File

@ -19,7 +19,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleByUserId(Long userId); public int deleteUserRoleByUserId (Long userId);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRole(Long[] ids); public int deleteUserRole (Long[] ids);
/** /**
* ID使 * ID使
@ -37,7 +37,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int countUserRoleByRoleId(Long roleId); public int countUserRoleByRoleId (Long roleId);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int batchUserRole(List<SysUserRole> userRoleList); public int batchUserRole (List<SysUserRole> userRoleList);
/** /**
* *
@ -55,7 +55,7 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleInfo(SysUserRole userRole); public int deleteUserRoleInfo (SysUserRole userRole);
/** /**
* *
@ -65,5 +65,5 @@ public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
* *
* @return * @return
*/ */
int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); public int deleteUserRoleInfos (@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
} }

View File

@ -35,10 +35,10 @@ public interface SysConfigService extends IService<SysConfig> {
/** /**
* *
*/ */
void clearConfigCache(); public void clearConfigCache ();
/** /**
* *
*/ */
void loadingConfigCache(); public void loadingConfigCache ();
} }

View File

@ -19,7 +19,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> selectDeptList(SysDept dept); public List<SysDept> selectDeptList (SysDept dept);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<TreeSelect> selectDeptTreeList(SysDept dept); public List<TreeSelect> selectDeptTreeList (SysDept dept);
/** /**
* *
@ -37,7 +37,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<SysDept> buildDeptTree(List<SysDept> depts); public List<SysDept> buildDeptTree (List<SysDept> depts);
/** /**
* *
@ -46,7 +46,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts); public List<TreeSelect> buildDeptTreeSelect (List<SysDept> depts);
/** /**
* ID * ID
@ -55,7 +55,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
List<Long> selectDeptListByRoleId(Long roleId); public List<Long> selectDeptListByRoleId (Long roleId);
/** /**
* ID * ID
@ -64,7 +64,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
SysDept selectDeptById(Long deptId); public SysDept selectDeptById (Long deptId);
/** /**
* ID * ID
@ -73,7 +73,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int selectNormalChildrenDeptById(Long deptId); public int selectNormalChildrenDeptById (Long deptId);
/** /**
* *
@ -82,7 +82,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
boolean hasChildByDeptId(Long deptId); public boolean hasChildByDeptId (Long deptId);
/** /**
* *
@ -91,7 +91,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return true false * @return true false
*/ */
boolean checkDeptExistUser(Long deptId); public boolean checkDeptExistUser (Long deptId);
/** /**
* *
@ -100,14 +100,14 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
boolean checkDeptNameUnique(SysDept dept); public boolean checkDeptNameUnique (SysDept dept);
/** /**
* *
* *
* @param deptId id * @param deptId id
*/ */
void checkDeptDataScope(Long deptId); public void checkDeptDataScope (Long deptId);
/** /**
* *
@ -116,7 +116,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int insertDept(SysDept dept); public int insertDept (SysDept dept);
/** /**
* *
@ -125,7 +125,7 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int updateDept(SysDept dept); public int updateDept (SysDept dept);
/** /**
* *
@ -134,7 +134,8 @@ public interface SysDeptService extends IService<SysDept> {
* *
* @return * @return
*/ */
int deleteDeptById(Long deptId); public int deleteDeptById (Long deptId);
SysDept selectDeptByName(String name); SysDept selectDeptByName(String name);
} }

View File

@ -18,7 +18,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataList(SysDictData dictData); public List<SysDictData> selectDictDataList (SysDictData dictData);
/** /**
* *
@ -28,7 +28,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
String selectDictLabel(String dictType, String dictValue); public String selectDictLabel (String dictType, String dictValue);
/** /**
* ID * ID
@ -37,14 +37,14 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
SysDictData selectDictDataById(Long dictCode); public SysDictData selectDictDataById (Long dictCode);
/** /**
* *
* *
* @param dictCodes ID * @param dictCodes ID
*/ */
void deleteDictDataByIds(Long[] dictCodes); public void deleteDictDataByIds (Long[] dictCodes);
/** /**
* *
@ -53,7 +53,7 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
int insertDictData(SysDictData dictData); public int insertDictData (SysDictData dictData);
/** /**
* *
@ -62,5 +62,5 @@ public interface SysDictDataService extends IService<SysDictData> {
* *
* @return * @return
*/ */
int updateDictData(SysDictData dictData); public int updateDictData (SysDictData dictData);
} }

View File

@ -19,14 +19,14 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeList(SysDictType dictType); public List<SysDictType> selectDictTypeList (SysDictType dictType);
/** /**
* *
* *
* @return * @return
*/ */
List<SysDictType> selectDictTypeAll(); public List<SysDictType> selectDictTypeAll ();
/** /**
* *
@ -35,7 +35,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
List<SysDictData> selectDictDataByType(String dictType); public List<SysDictData> selectDictDataByType (String dictType);
/** /**
* ID * ID
@ -44,7 +44,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeById(Long dictId); public SysDictType selectDictTypeById (Long dictId);
/** /**
* *
@ -53,29 +53,29 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
SysDictType selectDictTypeByType(String dictType); public SysDictType selectDictTypeByType (String dictType);
/** /**
* *
* *
* @param dictIds ID * @param dictIds ID
*/ */
void deleteDictTypeByIds(Long[] dictIds); public void deleteDictTypeByIds (Long[] dictIds);
/** /**
* *
*/ */
void loadingDictCache(); public void loadingDictCache ();
/** /**
* *
*/ */
void clearDictCache(); public void clearDictCache ();
/** /**
* *
*/ */
void resetDictCache(); public void resetDictCache ();
/** /**
* *
@ -84,7 +84,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
int insertDictType(SysDictType dictType); public int insertDictType (SysDictType dictType);
/** /**
* *
@ -93,7 +93,7 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
int updateDictType(SysDictType dictType); public int updateDictType (SysDictType dictType);
/** /**
* *
@ -102,5 +102,5 @@ public interface SysDictTypeService extends IService<SysDictType> {
* *
* @return * @return
*/ */
boolean checkDictTypeUnique(SysDictType dictType); public boolean checkDictTypeUnique (SysDictType dictType);
} }

View File

@ -16,7 +16,7 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @param logininfor 访 * @param logininfor 访
*/ */
int insertLogininfor(SysLogininfor logininfor); public int insertLogininfor (SysLogininfor logininfor);
/** /**
* *
@ -25,7 +25,7 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @return * @return
*/ */
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); public List<SysLogininfor> selectLogininforList (SysLogininfor logininfor);
/** /**
* *
@ -34,10 +34,10 @@ public interface SysLogininforService extends IService<SysLogininfor> {
* *
* @return * @return
*/ */
int deleteLogininforByIds(Long[] infoIds); public int deleteLogininforByIds (Long[] infoIds);
/** /**
* *
*/ */
void cleanLogininfor(); public void cleanLogininfor ();
} }

View File

@ -21,7 +21,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(Long userId); public List<SysMenu> selectMenuList (Long userId);
/** /**
* *
@ -31,7 +31,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuList(SysMenu menu, Long userId); public List<SysMenu> selectMenuList (SysMenu menu, Long userId);
/** /**
* ID * ID
@ -40,7 +40,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
Set<String> selectMenuPermsByUserId(Long userId); public Set<String> selectMenuPermsByUserId (Long userId);
/** /**
* ID * ID
@ -49,7 +49,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
Set<String> selectMenuPermsByRoleId(Long roleId); public Set<String> selectMenuPermsByRoleId (Long roleId);
/** /**
* ID * ID
@ -58,7 +58,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> selectMenuTreeByUserId(Long userId); public List<SysMenu> selectMenuTreeByUserId (Long userId);
/** /**
* ID * ID
@ -67,7 +67,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<Long> selectMenuListByRoleId(Long roleId); public List<Long> selectMenuListByRoleId (Long roleId);
/** /**
* *
@ -76,7 +76,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<RouterVo> buildMenus(List<SysMenu> menus); public List<RouterVo> buildMenus (List<SysMenu> menus);
/** /**
* *
@ -85,7 +85,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<SysMenu> buildMenuTree(List<SysMenu> menus); public List<SysMenu> buildMenuTree (List<SysMenu> menus);
/** /**
* *
@ -94,7 +94,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus); public List<TreeSelect> buildMenuTreeSelect (List<SysMenu> menus);
/** /**
* ID * ID
@ -103,7 +103,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
SysMenu selectMenuById(Long menuId); public SysMenu selectMenuById (Long menuId);
/** /**
* *
@ -112,7 +112,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return true false * @return true false
*/ */
boolean hasChildByMenuId(Long menuId); public boolean hasChildByMenuId (Long menuId);
/** /**
* *
@ -121,7 +121,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return true false * @return true false
*/ */
boolean checkMenuExistRole(Long menuId); public boolean checkMenuExistRole (Long menuId);
/** /**
* *
@ -130,7 +130,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int insertMenu(SysMenu menu); public int insertMenu (SysMenu menu);
/** /**
* *
@ -139,7 +139,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int updateMenu(SysMenu menu); public int updateMenu (SysMenu menu);
/** /**
* *
@ -148,7 +148,7 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
int deleteMenuById(Long menuId); public int deleteMenuById (Long menuId);
/** /**
* *
@ -157,5 +157,5 @@ public interface SysMenuService extends IService<SysMenu> {
* *
* @return * @return
*/ */
boolean checkMenuNameUnique(SysMenu menu); public boolean checkMenuNameUnique (SysMenu menu);
} }

View File

@ -18,7 +18,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
SysNotice selectNoticeById(Long noticeId); public SysNotice selectNoticeById (Long noticeId);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
List<SysNotice> selectNoticeList(SysNotice notice); public List<SysNotice> selectNoticeList (SysNotice notice);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int insertNotice(SysNotice notice); public int insertNotice (SysNotice notice);
/** /**
* *
@ -45,7 +45,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int updateNotice(SysNotice notice); public int updateNotice (SysNotice notice);
/** /**
* *
@ -54,7 +54,7 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeById(Long noticeId); public int deleteNoticeById (Long noticeId);
/** /**
* *
@ -63,5 +63,5 @@ public interface SysNoticeService extends IService<SysNotice> {
* *
* @return * @return
*/ */
int deleteNoticeByIds(Long[] noticeIds); public int deleteNoticeByIds (Long[] noticeIds);
} }

View File

@ -18,7 +18,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
int insertOperlog(SysOperLog operLog); public int insertOperlog (SysOperLog operLog);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
List<SysOperLog> selectOperLogList(SysOperLog operLog); public List<SysOperLog> selectOperLogList (SysOperLog operLog);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
int deleteOperLogByIds(Long[] operIds); public int deleteOperLogByIds (Long[] operIds);
/** /**
* *
@ -45,10 +45,10 @@ public interface SysOperLogService extends IService<SysOperLog> {
* *
* @return * @return
*/ */
SysOperLog selectOperLogById(Long operId); public SysOperLog selectOperLogById (Long operId);
/** /**
* *
*/ */
void cleanOperLog(); public void cleanOperLog ();
} }

View File

@ -17,7 +17,7 @@ public interface SysPermissionService {
* *
* @return * @return
*/ */
Set<String> getRolePermission(SysUser user); public Set<String> getRolePermission (SysUser user);
/** /**
* *
@ -26,5 +26,5 @@ public interface SysPermissionService {
* *
* @return * @return
*/ */
Set<String> getMenuPermission(SysUser user); public Set<String> getMenuPermission (SysUser user);
} }

View File

@ -18,14 +18,14 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
List<SysPost> selectPostList(SysPost post); public List<SysPost> selectPostList (SysPost post);
/** /**
* *
* *
* @return * @return
*/ */
List<SysPost> selectPostAll(); public List<SysPost> selectPostAll ();
/** /**
* ID * ID
@ -34,7 +34,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
SysPost selectPostById(Long postId); public SysPost selectPostById (Long postId);
/** /**
* ID * ID
@ -43,7 +43,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return ID * @return ID
*/ */
List<Long> selectPostListByUserId(Long userId); public List<Long> selectPostListByUserId (Long userId);
/** /**
* *
@ -52,7 +52,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
boolean checkPostNameUnique(SysPost post); public boolean checkPostNameUnique (SysPost post);
/** /**
* *
@ -61,7 +61,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
boolean checkPostCodeUnique(SysPost post); public boolean checkPostCodeUnique (SysPost post);
/** /**
* ID使 * ID使
@ -70,7 +70,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int countUserPostById(Long postId); public int countUserPostById (Long postId);
/** /**
* *
@ -79,7 +79,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int deletePostById(Long postId); public int deletePostById (Long postId);
/** /**
* *
@ -88,7 +88,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int deletePostByIds(Long[] postIds); public int deletePostByIds (Long[] postIds);
/** /**
* *
@ -97,7 +97,7 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int insertPost(SysPost post); public int insertPost (SysPost post);
/** /**
* *
@ -106,5 +106,5 @@ public interface SysPostService extends IService<SysPost> {
* *
* @return * @return
*/ */
int updatePost(SysPost post); public int updatePost (SysPost post);
} }

View File

@ -20,7 +20,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRoleList(SysRole role); public List<SysRole> selectRoleList (SysRole role);
/** /**
* ID * ID
@ -29,7 +29,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
List<SysRole> selectRolesByUserId(Long userId); public List<SysRole> selectRolesByUserId (Long userId);
/** /**
* ID * ID
@ -38,14 +38,14 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
Set<String> selectRolePermissionByUserId(Long userId); public Set<String> selectRolePermissionByUserId (Long userId);
/** /**
* *
* *
* @return * @return
*/ */
List<SysRole> selectRoleAll(); public List<SysRole> selectRoleAll ();
/** /**
* ID * ID
@ -54,7 +54,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return ID * @return ID
*/ */
List<Long> selectRoleListByUserId(Long userId); public List<Long> selectRoleListByUserId (Long userId);
/** /**
* ID * ID
@ -63,7 +63,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
SysRole selectRoleById(Long roleId); public SysRole selectRoleById (Long roleId);
/** /**
* *
@ -72,7 +72,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
boolean checkRoleNameUnique(SysRole role); public boolean checkRoleNameUnique (SysRole role);
/** /**
* *
@ -81,21 +81,21 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
boolean checkRoleKeyUnique(SysRole role); public boolean checkRoleKeyUnique (SysRole role);
/** /**
* *
* *
* @param role * @param role
*/ */
void checkRoleAllowed(SysRole role); public void checkRoleAllowed (SysRole role);
/** /**
* *
* *
* @param roleId id * @param roleId id
*/ */
void checkRoleDataScope(Long roleId); public void checkRoleDataScope (Long roleId);
/** /**
* ID使 * ID使
@ -104,7 +104,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int countUserRoleByRoleId(Long roleId); public int countUserRoleByRoleId (Long roleId);
/** /**
* *
@ -113,7 +113,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int insertRole(SysRole role); public int insertRole (SysRole role);
/** /**
* *
@ -122,7 +122,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int updateRole(SysRole role); public int updateRole (SysRole role);
/** /**
* *
@ -131,7 +131,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int updateRoleStatus(SysRole role); public int updateRoleStatus (SysRole role);
/** /**
* *
@ -140,7 +140,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int authDataScope(SysRole role); public int authDataScope (SysRole role);
/** /**
* ID * ID
@ -149,7 +149,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleById(Long roleId); public int deleteRoleById (Long roleId);
/** /**
* *
@ -158,7 +158,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteRoleByIds(Long[] roleIds); public int deleteRoleByIds (Long[] roleIds);
/** /**
* *
@ -167,7 +167,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteAuthUser(SysUserRole userRole); public int deleteAuthUser (SysUserRole userRole);
/** /**
* *
@ -177,7 +177,7 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int deleteAuthUsers(Long roleId, Long[] userIds); public int deleteAuthUsers (Long roleId, Long[] userIds);
/** /**
* *
@ -187,5 +187,5 @@ public interface SysRoleService extends IService<SysRole> {
* *
* @return * @return
*/ */
int insertAuthUsers(Long roleId, Long[] userIds); public int insertAuthUsers (Long roleId, Long[] userIds);
} }

View File

@ -1,5 +1,6 @@
package com.muyu.system.service; package com.muyu.system.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.common.system.domain.LoginUser; import com.muyu.common.system.domain.LoginUser;
import com.muyu.system.domain.SysUserOnline; import com.muyu.system.domain.SysUserOnline;
@ -17,7 +18,7 @@ public interface SysUserOnlineService {
* *
* @return 线 * @return 线
*/ */
SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user); public SysUserOnline selectOnlineByIpaddr (String ipaddr, LoginUser user);
/** /**
* *
@ -27,7 +28,7 @@ public interface SysUserOnlineService {
* *
* @return 线 * @return 线
*/ */
SysUserOnline selectOnlineByUserName(String userName, LoginUser user); public SysUserOnline selectOnlineByUserName (String userName, LoginUser user);
/** /**
* / * /
@ -38,7 +39,7 @@ public interface SysUserOnlineService {
* *
* @return 线 * @return 线
*/ */
SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user); public SysUserOnline selectOnlineByInfo (String ipaddr, String userName, LoginUser user);
/** /**
* 线 * 线
@ -47,5 +48,5 @@ public interface SysUserOnlineService {
* *
* @return 线 * @return 线
*/ */
SysUserOnline loginUserToUserOnline(LoginUser user); public SysUserOnline loginUserToUserOnline (LoginUser user);
} }

View File

@ -18,7 +18,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUserList(SysUser user); public List<SysUser> selectUserList (SysUser user);
/** /**
* *
@ -27,7 +27,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectAllocatedList(SysUser user); public List<SysUser> selectAllocatedList (SysUser user);
/** /**
* *
@ -36,7 +36,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
List<SysUser> selectUnallocatedList(SysUser user); public List<SysUser> selectUnallocatedList (SysUser user);
/** /**
* *
@ -45,7 +45,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserByUserName(String userName); public SysUser selectUserByUserName (String userName);
/** /**
* ID * ID
@ -54,7 +54,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
SysUser selectUserById(Long userId); public SysUser selectUserById (Long userId);
/** /**
* ID * ID
@ -63,7 +63,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
String selectUserRoleGroup(String userName); public String selectUserRoleGroup (String userName);
/** /**
* ID * ID
@ -72,7 +72,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
String selectUserPostGroup(String userName); public String selectUserPostGroup (String userName);
/** /**
* *
@ -81,7 +81,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
boolean checkUserNameUnique(SysUser user); public boolean checkUserNameUnique (SysUser user);
/** /**
* *
@ -90,7 +90,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
boolean checkPhoneUnique(SysUser user); public boolean checkPhoneUnique (SysUser user);
/** /**
* email * email
@ -99,21 +99,21 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
boolean checkEmailUnique(SysUser user); public boolean checkEmailUnique (SysUser user);
/** /**
* *
* *
* @param user * @param user
*/ */
void checkUserAllowed(SysUser user); public void checkUserAllowed (SysUser user);
/** /**
* *
* *
* @param userId id * @param userId id
*/ */
void checkUserDataScope(Long userId); public void checkUserDataScope (Long userId);
/** /**
* *
@ -122,7 +122,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int insertUser(SysUser user); public int insertUser (SysUser user);
/** /**
* *
@ -131,7 +131,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
boolean registerUser(SysUser user); public boolean registerUser (SysUser user);
/** /**
* *
@ -140,7 +140,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int updateUser(SysUser user); public int updateUser (SysUser user);
/** /**
* *
@ -148,7 +148,7 @@ public interface SysUserService extends IService<SysUser> {
* @param userId ID * @param userId ID
* @param roleIds * @param roleIds
*/ */
void insertUserAuth(Long userId, Long[] roleIds); public void insertUserAuth (Long userId, Long[] roleIds);
/** /**
* *
@ -157,7 +157,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int updateUserStatus(SysUser user); public int updateUserStatus (SysUser user);
/** /**
* *
@ -166,7 +166,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int updateUserProfile(SysUser user); public int updateUserProfile (SysUser user);
/** /**
* *
@ -176,7 +176,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
boolean updateUserAvatar(String userName, String avatar); public boolean updateUserAvatar (String userName, String avatar);
/** /**
* *
@ -185,7 +185,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int resetPwd(SysUser user); public int resetPwd (SysUser user);
/** /**
* *
@ -195,7 +195,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int resetUserPwd(String userName, String password); public int resetUserPwd (String userName, String password);
/** /**
* ID * ID
@ -204,7 +204,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int deleteUserById(Long userId); public int deleteUserById (Long userId);
/** /**
* *
@ -213,7 +213,7 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
int deleteUserByIds(Long[] userIds); public int deleteUserByIds (Long[] userIds);
/** /**
* *
@ -224,5 +224,5 @@ public interface SysUserService extends IService<SysUser> {
* *
* @return * @return
*/ */
String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName); public String importUser (List<SysUser> userList, Boolean isUpdateSupport, String operName);
} }

View File

@ -306,7 +306,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
List<SysDept> tlist = new ArrayList<SysDept>(); List<SysDept> tlist = new ArrayList<SysDept>();
Iterator<SysDept> it = list.iterator(); Iterator<SysDept> it = list.iterator();
while (it.hasNext()) { while (it.hasNext()) {
SysDept n = it.next(); SysDept n = (SysDept) it.next();
if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getDeptId().longValue()) { if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getDeptId().longValue()) {
tlist.add(n); tlist.add(n);
} }
@ -318,6 +318,6 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
* *
*/ */
private boolean hasChild (List<SysDept> list, SysDept t) { private boolean hasChild (List<SysDept> list, SysDept t) {
return getChildList(list, t).size() > 0; return getChildList(list, t).size() > 0 ? true : false;
} }
} }

View File

@ -204,7 +204,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
List<SysMenu> returnList = new ArrayList<SysMenu>(); List<SysMenu> returnList = new ArrayList<SysMenu>();
List<Long> tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList()); List<Long> tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList());
for (Iterator<SysMenu> iterator = menus.iterator() ; iterator.hasNext() ; ) { for (Iterator<SysMenu> iterator = menus.iterator() ; iterator.hasNext() ; ) {
SysMenu menu = iterator.next(); SysMenu menu = (SysMenu) iterator.next();
// 如果是顶级节点, 遍历该父节点的所有子节点 // 如果是顶级节点, 遍历该父节点的所有子节点
if (!tempList.contains(menu.getParentId())) { if (!tempList.contains(menu.getParentId())) {
recursionFn(menus, menu); recursionFn(menus, menu);
@ -426,7 +426,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
public List<SysMenu> getChildPerms (List<SysMenu> list, int parentId) { public List<SysMenu> getChildPerms (List<SysMenu> list, int parentId) {
List<SysMenu> returnList = new ArrayList<SysMenu>(); List<SysMenu> returnList = new ArrayList<SysMenu>();
for (Iterator<SysMenu> iterator = list.iterator() ; iterator.hasNext() ; ) { for (Iterator<SysMenu> iterator = list.iterator() ; iterator.hasNext() ; ) {
SysMenu t = iterator.next(); SysMenu t = (SysMenu) iterator.next();
// 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点
if (t.getParentId() == parentId) { if (t.getParentId() == parentId) {
recursionFn(list, t); recursionFn(list, t);
@ -460,7 +460,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
List<SysMenu> tlist = new ArrayList<SysMenu>(); List<SysMenu> tlist = new ArrayList<SysMenu>();
Iterator<SysMenu> it = list.iterator(); Iterator<SysMenu> it = list.iterator();
while (it.hasNext()) { while (it.hasNext()) {
SysMenu n = it.next(); SysMenu n = (SysMenu) it.next();
if (n.getParentId().longValue() == t.getMenuId().longValue()) { if (n.getParentId().longValue() == t.getMenuId().longValue()) {
tlist.add(n); tlist.add(n);
} }

View File

@ -1,5 +1,6 @@
package com.muyu.system.service.impl; package com.muyu.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.system.domain.SysRole; import com.muyu.common.system.domain.SysRole;
import com.muyu.common.system.domain.SysUser; import com.muyu.common.system.domain.SysUser;
import com.muyu.system.service.SysMenuService; import com.muyu.system.service.SysMenuService;

View File

@ -1,5 +1,6 @@
package com.muyu.system.service.impl; package com.muyu.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.system.domain.LoginUser; import com.muyu.common.system.domain.LoginUser;
import com.muyu.system.domain.SysUserOnline; import com.muyu.system.domain.SysUserOnline;

View File

@ -14,8 +14,8 @@ import com.muyu.system.domain.SysPost;
import com.muyu.system.domain.SysUserPost; import com.muyu.system.domain.SysUserPost;
import com.muyu.system.domain.SysUserRole; import com.muyu.system.domain.SysUserRole;
import com.muyu.system.mapper.*; import com.muyu.system.mapper.*;
import com.muyu.system.service.SysConfigService;
import com.muyu.system.service.SysUserService; import com.muyu.system.service.SysUserService;
import com.muyu.system.service.SysConfigService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -238,14 +238,11 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
public int insertUser (SysUser user) { public int insertUser (SysUser user) {
// 新增用户信息 // 新增用户信息
int rows = userMapper.insertUser(user); int rows = userMapper.insertUser(user);
//赋值userId
// user.setUserId((long) rows);
// 新增用户岗位关联 // 新增用户岗位关联
insertUserPost(user); insertUserPost(user);
// 新增用户与角色管理 // 新增用户与角色管理
insertUserRole(user); insertUserRole(user);
return rows; return rows;
} }
/** /**

View File

@ -87,7 +87,7 @@
from sys_dept from sys_dept
where del_flag = '0' where del_flag = '0'
and parent_id = #{deptId} and parent_id = #{deptId}
limit 1 limit 1
</select> </select>
<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult"> <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
@ -108,9 +108,6 @@
<include refid="selectDeptVo"/> <include refid="selectDeptVo"/>
where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
</select> </select>
<select id="selectDeptByName" resultType="com.muyu.common.system.domain.SysDept">
select * from sys_dept where dept_name=#{name}
</select>
<insert id="insertDept" parameterType="com.muyu.common.system.domain.SysDept"> <insert id="insertDept" parameterType="com.muyu.common.system.domain.SysDept">
insert into sys_dept( insert into sys_dept(
@ -183,4 +180,9 @@
where dept_id = #{deptId} where dept_id = #{deptId}
</delete> </delete>
<select id="selectDeptByName" resultType="com.muyu.common.system.domain.SysDept">
select * from sys_dept where dept_name=#{name}
</select>
</mapper> </mapper>

View File

@ -49,7 +49,6 @@
<sql id="selectUserVo"> <sql id="selectUserVo">
select u.user_id, select u.user_id,
u.dept_id, u.dept_id,
-- u.type,
u.user_name, u.user_name,
u.nick_name, u.nick_name,
u.email, u.email,
@ -166,7 +165,7 @@
from sys_user from sys_user
where user_name = #{userName} where user_name = #{userName}
and del_flag = '0' and del_flag = '0'
limit 1 limit 1
</select> </select>
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
@ -174,7 +173,7 @@
from sys_user from sys_user
where phonenumber = #{phonenumber} where phonenumber = #{phonenumber}
and del_flag = '0' and del_flag = '0'
limit 1 limit 1
</select> </select>
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
@ -182,7 +181,7 @@
from sys_user from sys_user
where email = #{email} where email = #{email}
and del_flag = '0' and del_flag = '0'
limit 1 limit 1
</select> </select>
<insert id="insertUser" parameterType="com.muyu.common.system.domain.SysUser" useGeneratedKeys="true" keyProperty="userId"> <insert id="insertUser" parameterType="com.muyu.common.system.domain.SysUser" useGeneratedKeys="true" keyProperty="userId">