das接口修改
This commit is contained in:
parent
650aa83bdd
commit
4544b27298
@ -32,7 +32,7 @@ public class SysMenuServiceImpl implements SysMenuService {
|
||||
@Override
|
||||
public int updateMenu(SysMenuDto sysMenuDto) {
|
||||
SysMenu sysMenu = new SysMenu();
|
||||
BeanUtils.copyProperties(sysMenuDto,sysMenu);
|
||||
BeanCopyUtils.copy(sysMenuDto,sysMenu);
|
||||
return sysMenuMapper.updateById(sysMenu);
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.das.modules.auth.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.das.common.utils.BeanCopyUtils;
|
||||
import com.das.common.utils.SequenceUtils;
|
||||
import com.das.common.utils.PageDataInfo;
|
||||
import com.das.common.utils.PageQuery;
|
||||
@ -20,7 +21,7 @@ public class SysOrgServiceImpl implements SysOrgService {
|
||||
@Override
|
||||
public SysOrg createOrg(SysOrgDto sysOrgDto) {
|
||||
SysOrg sysOrg = new SysOrg();
|
||||
BeanUtils.copyProperties(sysOrgDto,sysOrg);
|
||||
BeanCopyUtils.copy(sysOrgDto,sysOrg);
|
||||
sysOrg.setId(SequenceUtils.generateId());
|
||||
sysOrgMapper.insert(sysOrg);
|
||||
return sysOrg;
|
||||
@ -29,7 +30,7 @@ public class SysOrgServiceImpl implements SysOrgService {
|
||||
@Override
|
||||
public int updateOrg(SysOrgDto sysOrgDto) {
|
||||
SysOrg sysOrg = new SysOrg();
|
||||
BeanUtils.copyProperties(sysOrgDto,sysOrg);
|
||||
BeanCopyUtils.copy(sysOrgDto,sysOrg);
|
||||
return sysOrgMapper.updateById(sysOrg);
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.das.modules.auth.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.das.common.utils.BeanCopyUtils;
|
||||
import com.das.common.utils.SequenceUtils;
|
||||
import com.das.common.utils.PageDataInfo;
|
||||
import com.das.common.utils.PageQuery;
|
||||
@ -22,7 +23,7 @@ public class SysUserServiceImpl implements SysUserService {
|
||||
@Override
|
||||
public SysUser createUser(SysUserDto sysUserDto) {
|
||||
SysUser sysUser = new SysUser();
|
||||
BeanUtils.copyProperties(sysUserDto,sysUser);
|
||||
BeanCopyUtils.copy(sysUserDto,sysUser);
|
||||
sysUser.setId(SequenceUtils.generateId());
|
||||
sysUserMapper.insert(sysUser);
|
||||
return sysUser;
|
||||
@ -31,7 +32,7 @@ public class SysUserServiceImpl implements SysUserService {
|
||||
@Override
|
||||
public int updateUser(SysUserDto sysUserDto) {
|
||||
SysUser sysUser = new SysUser();
|
||||
BeanUtils.copyProperties(sysUserDto,sysUser);
|
||||
BeanCopyUtils.copy(sysUserDto,sysUser);
|
||||
return sysUserMapper.updateById(sysUser);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user