feat(oa): 企业实体类新增知识库 ID 字段并更新相关 mapper 和参数类
- 在 OaCompany 实体类中添加 kbId 字段,用于存储知识库 ID - 更新 OaCompanyMapper.xml,在查询条件中加入 kbId 的模糊匹配 - 在OaCompanyParam 参数类中添加 kbId 字段,用于查询时传入知识库 ID - 修改 ShopGenerator 测试类中的模块名,与本次更新无关
This commit is contained in:
@@ -186,6 +186,9 @@ public class OaCompany implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@Schema(description = "知识库ID")
|
||||
private String kbId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
<if test="param.appType != null">
|
||||
AND a.app_type LIKE CONCAT('%', #{param.appType}, '%')
|
||||
</if>
|
||||
<if test="param.kbId != null">
|
||||
AND a.kb_id LIKE CONCAT('%', #{param.kbId}, '%')
|
||||
</if>
|
||||
<if test="param.domain != null">
|
||||
AND a.domain LIKE CONCAT('%', #{param.domain}, '%')
|
||||
</if>
|
||||
|
||||
@@ -167,6 +167,10 @@ public class OaCompanyParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer planId;
|
||||
|
||||
@Schema(description = "知识库ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private String kbId;
|
||||
|
||||
@Schema(description = "状态")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
@@ -183,4 +187,5 @@ public class OaCompanyParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ShopGenerator {
|
||||
// 包名
|
||||
private static final String PACKAGE_NAME = "com.gxwebsoft";
|
||||
// 模块名
|
||||
private static final String MODULE_NAME = "shop";
|
||||
private static final String MODULE_NAME = "oa";
|
||||
// 需要生成的表
|
||||
private static final String[] TABLE_NAMES = new String[]{
|
||||
// "shop_spec",
|
||||
|
||||
Reference in New Issue
Block a user