【修改】 1、知识点忽略多租户的概念;2、知识点新增删除修改改善;3、代码优化

This commit is contained in:
dlaren
2025-07-31 15:39:13 +08:00
parent f4c54bd012
commit c3f0d23c9d
4 changed files with 24 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import pc.exam.pp.framework.tenant.core.db.TenantBaseDO;
import pc.exam.pp.framework.mybatis.core.dataobject.BaseDO;
/**
* 知识点对象 exam_knowledge_points
@@ -16,11 +16,12 @@ import pc.exam.pp.framework.tenant.core.db.TenantBaseDO;
@TableName("exam_knowledge_points")
@Data
@EqualsAndHashCode(callSuper = true)
public class ExamKnowledgePoints extends TenantBaseDO
{
public class ExamKnowledgePoints extends BaseDO {
private static final long serialVersionUID = 1L;
/** id */
/**
* id
*/
@TableId(value = "sp_id", type = IdType.AUTO)
private Long spId;
@@ -30,12 +31,18 @@ public class ExamKnowledgePoints extends TenantBaseDO
private int orderNum;
/** 名称 */
/**
* 名称
*/
private String spName;
/** 状态0正常 1停用 */
/**
* 状态0正常 1停用
*/
private int status;
/** 子树数量 */
/**
* 子树数量
*/
private Long treeNum;
}

View File

@@ -61,7 +61,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<update id="deleteKnowledgePointsBySpIds" parameterType="String">
delete from knowledge_points
update exam_knowledge_points
<trim prefix="SET" suffixOverrides=",">
deleted = 1

View File

@@ -297,6 +297,7 @@ exam:
- /admin-api/system/auth/refreshLogout # 登出用户
ignore-tables:
- exam_tenant_specialty
- exam_knowledge_points
- exam_specialty
- exam_app_check
- system_tenant