mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 17:58:17 +08:00
update 增加常量通用存在,删除标志
This commit is contained in:
parent
e9bd0858e2
commit
cff40f6338
@ -42,6 +42,16 @@ public interface Constants {
|
||||
*/
|
||||
String FAIL = "1";
|
||||
|
||||
/**
|
||||
* 通用存在标志
|
||||
*/
|
||||
String DELETED_FLAG_EXIST = "0";
|
||||
|
||||
/**
|
||||
* 通用删除标志
|
||||
*/
|
||||
String DELETED_FLAG_REMOVED = "2";
|
||||
|
||||
/**
|
||||
* 登录成功
|
||||
*/
|
||||
|
||||
@ -36,6 +36,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static org.dromara.common.core.constant.Constants.DELETED_FLAG_EXIST;
|
||||
|
||||
/**
|
||||
* 部门管理 服务实现
|
||||
*
|
||||
@ -78,7 +80,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
||||
|
||||
private LambdaQueryWrapper<SysDept> buildQueryWrapper(SysDeptBo bo) {
|
||||
LambdaQueryWrapper<SysDept> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(SysDept::getDelFlag, "0");
|
||||
lqw.eq(SysDept::getDelFlag, DELETED_FLAG_EXIST);
|
||||
lqw.eq(ObjectUtil.isNotNull(bo.getDeptId()), SysDept::getDeptId, bo.getDeptId());
|
||||
lqw.eq(ObjectUtil.isNotNull(bo.getParentId()), SysDept::getParentId, bo.getParentId());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDeptName()), SysDept::getDeptName, bo.getDeptName());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user