修改一些表的主键策略

This commit is contained in:
cjw 2024-05-28 15:29:03 +08:00
parent 3ff9fef182
commit 77fec3d7a2
8 changed files with 12 additions and 8 deletions

View File

@ -71,7 +71,6 @@ public class SysHomeShowServiceImpl implements ISysHomeShowService {
private LambdaQueryWrapper<SysHomeShow> buildQueryWrapper(SysHomeShowBo bo) {
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<SysHomeShow> lqw = Wrappers.lambdaQuery();
lqw.eq(bo.getType() != null, SysHomeShow::getType, bo.getType());
lqw.like(StringUtils.isNotBlank(bo.getTeacherName()), SysHomeShow::getTeacherName, bo.getTeacherName());
lqw.like(StringUtils.isNotBlank(bo.getGradeName()), SysHomeShow::getGradeName, bo.getGradeName());
lqw.like(StringUtils.isNotBlank(bo.getSubjectName()), SysHomeShow::getSubjectName, bo.getSubjectName());

View File

@ -24,7 +24,7 @@ public class SysClient extends BaseEntity {
/**
* id
*/
@TableId(value = "id")
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.dromara.common.tenant.core.TenantEntity;
@ -20,7 +21,7 @@ public class SysConfig extends TenantEntity {
/**
* 参数主键
*/
@TableId(value = "config_id")
@TableId(value = "config_id",type = IdType.AUTO)
private Long configId;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -24,7 +25,7 @@ public class SysLogininfor implements Serializable {
/**
* ID
*/
@TableId(value = "info_id")
@TableId(value = "info_id",type = IdType.AUTO)
private Long infoId;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@ -27,7 +28,7 @@ public class SysMenu extends BaseEntity {
/**
* 菜单ID
*/
@TableId(value = "menu_id")
@TableId(value = "menu_id",type = IdType.AUTO)
private Long menuId;
/**

View File

@ -1,5 +1,6 @@
package org.dromara.system.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -24,7 +25,7 @@ public class SysOperLog implements Serializable {
/**
* 日志主键
*/
@TableId(value = "oper_id")
@TableId(value = "oper_id",type = IdType.AUTO)
private Long operId;
/**

View File

@ -1,5 +1,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;
@ -23,7 +24,7 @@ public class SysRole extends TenantEntity {
/**
* 角色ID
*/
@TableId(value = "role_id")
@TableId(value = "role_id",type = IdType.AUTO)
private Long roleId;
/**

View File

@ -24,7 +24,7 @@ public class SysUser extends TenantEntity {
/**
* 用户ID
*/
@TableId(value = "user_id")
@TableId(value = "user_id",type = IdType.AUTO)
private Long userId;
/**