去除业务表的逻辑删除字段
This commit is contained in:
parent
5a1c3a7c14
commit
770220bd10
|
@ -57,11 +57,5 @@ public class SysCatalogResource extends TenantEntity {
|
|||
*/
|
||||
private Long cover;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -52,11 +52,4 @@ public class SysCatalogTextbook extends TenantEntity {
|
|||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -57,11 +57,4 @@ public class SysHomeBanner extends TenantEntity {
|
|||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package org.dromara.system.domain;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -65,11 +64,4 @@ public class SysHomeShow extends TenantEntity {
|
|||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -57,11 +57,4 @@ public class SysHomeTrend extends TenantEntity {
|
|||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package org.dromara.system.domain;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -85,12 +84,4 @@ public class SysTeacher extends TenantEntity {
|
|||
* 出生日期
|
||||
*/
|
||||
private Date birthday;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -222,7 +222,6 @@ public class SysCatalogResourceServiceImpl implements ISysCatalogResourceService
|
|||
@Override
|
||||
public List<Tree<Long>> buildTreeSelect(SysCatalogResourceBo bo) {
|
||||
LambdaQueryWrapper<SysCatalogResource> lqw = buildQueryWrapper(bo);
|
||||
lqw.eq(SysCatalogResource::getDelFlag, 0);
|
||||
List<SysCatalogResourceVo> voList = baseMapper.selectVoList(lqw);
|
||||
return buildCatalogTreeSelect(voList);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
select count(d.dept_id)
|
||||
from sys_dept d left join sys_dept p on p.dept_id = d.parent_id
|
||||
where p.parent_id = 0
|
||||
and d.del_flag = 0
|
||||
<if test="tenantId != null and tenantId != ''">
|
||||
and d.tenant_id = #{tenantId}
|
||||
</if>
|
||||
|
@ -19,7 +18,6 @@
|
|||
left join sys_dept p on d.parent_id = p.dept_id
|
||||
left join sys_dept pp on pp.dept_id = p.parent_id
|
||||
where pp.parent_id = 0
|
||||
and d.del_flag = 0
|
||||
<if test="tenantId != null and tenantId != ''">
|
||||
and d.tenant_id = #{tenantId}
|
||||
</if>
|
||||
|
@ -28,10 +26,11 @@
|
|||
<select id="selectTeacherNum" resultType="int">
|
||||
select count(*)
|
||||
from sys_teacher
|
||||
where del_flag = 0
|
||||
<if test="tenantId != null and tenantId != ''">
|
||||
and tenant_id = #{tenantId}
|
||||
</if>
|
||||
<where>
|
||||
<if test="tenantId != null and tenantId != ''">
|
||||
and tenant_id = #{tenantId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTextbookNum" resultType="int">
|
||||
|
|
|
@ -8,7 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
select cr.catalog_id,cr.parent_id, cr.catalog_name, cr.order_num, count(sor.oss_id) as `resourceNum`
|
||||
from sys_catalog_resource cr
|
||||
left join sys_oss_resource sor on sor.catalog_id = cr.catalog_id
|
||||
where cr.del_flag = 0 and FIND_IN_SET(#{catalogId}, cr.ancestors)
|
||||
where FIND_IN_SET(#{catalogId}, cr.ancestors)
|
||||
group by cr.catalog_id
|
||||
having cr.parent_id = #{catalogId}
|
||||
order by cr.order_num
|
||||
|
@ -23,7 +23,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
from sys_catalog_resource cr
|
||||
left join sys_oss_resource r on r.catalog_id = cr.catalog_id and r.status = 1
|
||||
where cr.type = 2
|
||||
and cr.del_flag = 0
|
||||
and cr.tenant_id = #{tenantId}
|
||||
group by cr.catalog_id
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue