【修改】 1、知识点忽略多租户的概念;2、知识点新增删除修改改善;3、代码优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user