Browse Source

用户增加 姓、名字段

master
review512jwy@163.com 4 weeks ago
parent
commit
29283e60ba
  1. 27
      dongjian-center-admin-dao/src/main/resources/mappers/auto/BasicMenuMapper.xml
  2. 57
      dongjian-center-admin-dao/src/main/resources/mappers/auto/BasicUserMapper.xml
  3. 2
      dongjian-center-admin-dao/src/main/resources/mappers/ex/BasicUserMapperExt.xml
  4. 6
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/dto/user/OptUserParam.java
  5. 34
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicMenu.java
  6. 60
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicMenuExample.java
  7. 102
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicUser.java
  8. 200
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicUserExample.java
  9. 6
      dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/vo/user/UserPageDTO.java
  10. 6
      dongjian-center-admin-service/src/main/java/com/dongjian/datacenter/admin/service/impl/UserServiceImpl.java

27
dongjian-center-admin-dao/src/main/resources/mappers/auto/BasicMenuMapper.xml

@ -15,6 +15,7 @@
<result column="menu_level" jdbcType="INTEGER" property="menuLevel" /> <result column="menu_level" jdbcType="INTEGER" property="menuLevel" />
<result column="flag" jdbcType="INTEGER" property="flag" /> <result column="flag" jdbcType="INTEGER" property="flag" />
<result column="create_time" jdbcType="BIGINT" property="createTime" /> <result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="used_by_dashboard" jdbcType="INTEGER" property="usedByDashboard" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
@ -88,7 +89,7 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
id, parent_menu_id, menu_name, menu_name_en, menu_name_jp, remark, menu_level, flag, id, parent_menu_id, menu_name, menu_name_en, menu_name_jp, remark, menu_level, flag,
create_time create_time, used_by_dashboard
</sql> </sql>
<select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicMenuExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicMenuExample" resultMap="BaseResultMap">
<!-- <!--
@ -147,10 +148,12 @@
</selectKey> </selectKey>
insert into basic_menu (parent_menu_id, menu_name, menu_name_en, insert into basic_menu (parent_menu_id, menu_name, menu_name_en,
menu_name_jp, remark, menu_level, menu_name_jp, remark, menu_level,
flag, create_time) flag, create_time, used_by_dashboard
)
values (#{parentMenuId,jdbcType=BIGINT}, #{menuName,jdbcType=VARCHAR}, #{menuNameEn,jdbcType=VARCHAR}, values (#{parentMenuId,jdbcType=BIGINT}, #{menuName,jdbcType=VARCHAR}, #{menuNameEn,jdbcType=VARCHAR},
#{menuNameJp,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{menuLevel,jdbcType=INTEGER}, #{menuNameJp,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{menuLevel,jdbcType=INTEGER},
#{flag,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}) #{flag,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, #{usedByDashboard,jdbcType=INTEGER}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicMenu"> <insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicMenu">
<!-- <!--
@ -186,6 +189,9 @@
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
</if> </if>
<if test="usedByDashboard != null">
used_by_dashboard,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentMenuId != null"> <if test="parentMenuId != null">
@ -212,6 +218,9 @@
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT},
</if> </if>
<if test="usedByDashboard != null">
#{usedByDashboard,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicMenuExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicMenuExample" resultType="java.lang.Long">
@ -258,6 +267,9 @@
<if test="record.createTime != null"> <if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=BIGINT},
</if> </if>
<if test="record.usedByDashboard != null">
used_by_dashboard = #{record.usedByDashboard,jdbcType=INTEGER},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -277,7 +289,8 @@
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
menu_level = #{record.menuLevel,jdbcType=INTEGER}, menu_level = #{record.menuLevel,jdbcType=INTEGER},
flag = #{record.flag,jdbcType=INTEGER}, flag = #{record.flag,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=BIGINT} create_time = #{record.createTime,jdbcType=BIGINT},
used_by_dashboard = #{record.usedByDashboard,jdbcType=INTEGER}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -313,6 +326,9 @@
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=BIGINT},
</if> </if>
<if test="usedByDashboard != null">
used_by_dashboard = #{usedByDashboard,jdbcType=INTEGER},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
@ -329,7 +345,8 @@
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
menu_level = #{menuLevel,jdbcType=INTEGER}, menu_level = #{menuLevel,jdbcType=INTEGER},
flag = #{flag,jdbcType=INTEGER}, flag = #{flag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT} create_time = #{createTime,jdbcType=BIGINT},
used_by_dashboard = #{usedByDashboard,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
</mapper> </mapper>

57
dongjian-center-admin-dao/src/main/resources/mappers/auto/BasicUserMapper.xml

@ -25,6 +25,9 @@
<result column="modify_time" jdbcType="BIGINT" property="modifyTime" /> <result column="modify_time" jdbcType="BIGINT" property="modifyTime" />
<result column="modifier_id" jdbcType="BIGINT" property="modifierId" /> <result column="modifier_id" jdbcType="BIGINT" property="modifierId" />
<result column="super_role" jdbcType="INTEGER" property="superRole" /> <result column="super_role" jdbcType="INTEGER" property="superRole" />
<result column="create_platform" jdbcType="INTEGER" property="createPlatform" />
<result column="last_name" jdbcType="VARCHAR" property="lastName" />
<result column="first_name" jdbcType="VARCHAR" property="firstName" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
@ -99,7 +102,7 @@
--> -->
id, user_type, company_id, username, login_name, `password`, salt, email, mfa_secret, id, user_type, company_id, username, login_name, `password`, salt, email, mfa_secret,
mfa_bind, mobile_number, last_login_time, flag, expire_time, create_time, creator_id, mfa_bind, mobile_number, last_login_time, flag, expire_time, create_time, creator_id,
modify_time, modifier_id, super_role modify_time, modifier_id, super_role, create_platform, last_name, first_name
</sql> </sql>
<select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="BaseResultMap">
<!-- <!--
@ -161,14 +164,16 @@
email, mfa_secret, mfa_bind, email, mfa_secret, mfa_bind,
mobile_number, last_login_time, flag, mobile_number, last_login_time, flag,
expire_time, create_time, creator_id, expire_time, create_time, creator_id,
modify_time, modifier_id, super_role modify_time, modifier_id, super_role,
create_platform, last_name, first_name
) )
values (#{userType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, values (#{userType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR},
#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{mfaSecret,jdbcType=VARCHAR}, #{mfaBind,jdbcType=INTEGER}, #{email,jdbcType=VARCHAR}, #{mfaSecret,jdbcType=VARCHAR}, #{mfaBind,jdbcType=INTEGER},
#{mobileNumber,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER}, #{mobileNumber,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER},
#{expireTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{expireTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT},
#{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT}, #{superRole,jdbcType=INTEGER} #{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT}, #{superRole,jdbcType=INTEGER},
#{createPlatform,jdbcType=INTEGER}, #{lastName,jdbcType=VARCHAR}, #{firstName,jdbcType=VARCHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> <insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicUser">
@ -235,6 +240,15 @@
<if test="superRole != null"> <if test="superRole != null">
super_role, super_role,
</if> </if>
<if test="createPlatform != null">
create_platform,
</if>
<if test="lastName != null">
last_name,
</if>
<if test="firstName != null">
first_name,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userType != null"> <if test="userType != null">
@ -291,6 +305,15 @@
<if test="superRole != null"> <if test="superRole != null">
#{superRole,jdbcType=INTEGER}, #{superRole,jdbcType=INTEGER},
</if> </if>
<if test="createPlatform != null">
#{createPlatform,jdbcType=INTEGER},
</if>
<if test="lastName != null">
#{lastName,jdbcType=VARCHAR},
</if>
<if test="firstName != null">
#{firstName,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultType="java.lang.Long">
@ -367,6 +390,15 @@
<if test="record.superRole != null"> <if test="record.superRole != null">
super_role = #{record.superRole,jdbcType=INTEGER}, super_role = #{record.superRole,jdbcType=INTEGER},
</if> </if>
<if test="record.createPlatform != null">
create_platform = #{record.createPlatform,jdbcType=INTEGER},
</if>
<if test="record.lastName != null">
last_name = #{record.lastName,jdbcType=VARCHAR},
</if>
<if test="record.firstName != null">
first_name = #{record.firstName,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -396,7 +428,10 @@
creator_id = #{record.creatorId,jdbcType=BIGINT}, creator_id = #{record.creatorId,jdbcType=BIGINT},
modify_time = #{record.modifyTime,jdbcType=BIGINT}, modify_time = #{record.modifyTime,jdbcType=BIGINT},
modifier_id = #{record.modifierId,jdbcType=BIGINT}, modifier_id = #{record.modifierId,jdbcType=BIGINT},
super_role = #{record.superRole,jdbcType=INTEGER} super_role = #{record.superRole,jdbcType=INTEGER},
create_platform = #{record.createPlatform,jdbcType=INTEGER},
last_name = #{record.lastName,jdbcType=VARCHAR},
first_name = #{record.firstName,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -462,6 +497,15 @@
<if test="superRole != null"> <if test="superRole != null">
super_role = #{superRole,jdbcType=INTEGER}, super_role = #{superRole,jdbcType=INTEGER},
</if> </if>
<if test="createPlatform != null">
create_platform = #{createPlatform,jdbcType=INTEGER},
</if>
<if test="lastName != null">
last_name = #{lastName,jdbcType=VARCHAR},
</if>
<if test="firstName != null">
first_name = #{firstName,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
@ -488,7 +532,10 @@
creator_id = #{creatorId,jdbcType=BIGINT}, creator_id = #{creatorId,jdbcType=BIGINT},
modify_time = #{modifyTime,jdbcType=BIGINT}, modify_time = #{modifyTime,jdbcType=BIGINT},
modifier_id = #{modifierId,jdbcType=BIGINT}, modifier_id = #{modifierId,jdbcType=BIGINT},
super_role = #{superRole,jdbcType=INTEGER} super_role = #{superRole,jdbcType=INTEGER},
create_platform = #{createPlatform,jdbcType=INTEGER},
last_name = #{lastName,jdbcType=VARCHAR},
first_name = #{firstName,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
</mapper> </mapper>

2
dongjian-center-admin-dao/src/main/resources/mappers/ex/BasicUserMapperExt.xml

@ -24,6 +24,8 @@
buser.username username, buser.username username,
buser.login_name loginName, buser.login_name loginName,
buser.email, buser.email,
buser.last_name,
buser.first_name,
buser.mfa_bind, buser.mfa_bind,
buser.mobile_number mobileNumber, buser.mobile_number mobileNumber,
buser.create_time createTime, buser.create_time createTime,

6
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/dto/user/OptUserParam.java

@ -37,5 +37,11 @@ public class OptUserParam {
@Schema(description = "所属企业ID",example = "2", hidden = true) @Schema(description = "所属企业ID",example = "2", hidden = true)
private Long companyId; private Long companyId;
@Schema(description = "姓",example = "鸠山", required = true)
private String lastName;
@Schema(description = "名",example = "由纪夫", required = true)
private String firstName;
} }

34
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicMenu.java

@ -84,6 +84,15 @@ public class BasicMenu implements Serializable {
*/ */
private Long createTime; private Long createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column basic_menu.used_by_dashboard
*
* @mbg.generated
*/
private Integer usedByDashboard;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table basic_menu * This field corresponds to the database table basic_menu
@ -308,6 +317,30 @@ public class BasicMenu implements Serializable {
this.createTime = createTime; this.createTime = createTime;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column basic_menu.used_by_dashboard
*
* @return the value of basic_menu.used_by_dashboard
*
* @mbg.generated
*/
public Integer getUsedByDashboard() {
return usedByDashboard;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column basic_menu.used_by_dashboard
*
* @param usedByDashboard the value for basic_menu.used_by_dashboard
*
* @mbg.generated
*/
public void setUsedByDashboard(Integer usedByDashboard) {
this.usedByDashboard = usedByDashboard;
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table basic_menu * This method corresponds to the database table basic_menu
@ -329,6 +362,7 @@ public class BasicMenu implements Serializable {
sb.append(", menuLevel=").append(menuLevel); sb.append(", menuLevel=").append(menuLevel);
sb.append(", flag=").append(flag); sb.append(", flag=").append(flag);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", usedByDashboard=").append(usedByDashboard);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();

60
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicMenuExample.java

@ -773,6 +773,66 @@ public class BasicMenuExample {
addCriterion("create_time not between", value1, value2, "createTime"); addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUsedByDashboardIsNull() {
addCriterion("used_by_dashboard is null");
return (Criteria) this;
}
public Criteria andUsedByDashboardIsNotNull() {
addCriterion("used_by_dashboard is not null");
return (Criteria) this;
}
public Criteria andUsedByDashboardEqualTo(Integer value) {
addCriterion("used_by_dashboard =", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardNotEqualTo(Integer value) {
addCriterion("used_by_dashboard <>", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardGreaterThan(Integer value) {
addCriterion("used_by_dashboard >", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardGreaterThanOrEqualTo(Integer value) {
addCriterion("used_by_dashboard >=", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardLessThan(Integer value) {
addCriterion("used_by_dashboard <", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardLessThanOrEqualTo(Integer value) {
addCriterion("used_by_dashboard <=", value, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardIn(List<Integer> values) {
addCriterion("used_by_dashboard in", values, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardNotIn(List<Integer> values) {
addCriterion("used_by_dashboard not in", values, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardBetween(Integer value1, Integer value2) {
addCriterion("used_by_dashboard between", value1, value2, "usedByDashboard");
return (Criteria) this;
}
public Criteria andUsedByDashboardNotBetween(Integer value1, Integer value2) {
addCriterion("used_by_dashboard not between", value1, value2, "usedByDashboard");
return (Criteria) this;
}
} }
/** /**

102
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicUser.java

@ -174,6 +174,33 @@ public class BasicUser implements Serializable {
*/ */
private Integer superRole; private Integer superRole;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column basic_user.create_platform
*
* @mbg.generated
*/
private Integer createPlatform;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column basic_user.last_name
*
* @mbg.generated
*/
private String lastName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column basic_user.first_name
*
* @mbg.generated
*/
private String firstName;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table basic_user * This field corresponds to the database table basic_user
@ -638,6 +665,78 @@ public class BasicUser implements Serializable {
this.superRole = superRole; this.superRole = superRole;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column basic_user.create_platform
*
* @return the value of basic_user.create_platform
*
* @mbg.generated
*/
public Integer getCreatePlatform() {
return createPlatform;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column basic_user.create_platform
*
* @param createPlatform the value for basic_user.create_platform
*
* @mbg.generated
*/
public void setCreatePlatform(Integer createPlatform) {
this.createPlatform = createPlatform;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column basic_user.last_name
*
* @return the value of basic_user.last_name
*
* @mbg.generated
*/
public String getLastName() {
return lastName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column basic_user.last_name
*
* @param lastName the value for basic_user.last_name
*
* @mbg.generated
*/
public void setLastName(String lastName) {
this.lastName = lastName == null ? null : lastName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column basic_user.first_name
*
* @return the value of basic_user.first_name
*
* @mbg.generated
*/
public String getFirstName() {
return firstName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column basic_user.first_name
*
* @param firstName the value for basic_user.first_name
*
* @mbg.generated
*/
public void setFirstName(String firstName) {
this.firstName = firstName == null ? null : firstName.trim();
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table basic_user * This method corresponds to the database table basic_user
@ -669,6 +768,9 @@ public class BasicUser implements Serializable {
sb.append(", modifyTime=").append(modifyTime); sb.append(", modifyTime=").append(modifyTime);
sb.append(", modifierId=").append(modifierId); sb.append(", modifierId=").append(modifierId);
sb.append(", superRole=").append(superRole); sb.append(", superRole=").append(superRole);
sb.append(", createPlatform=").append(createPlatform);
sb.append(", lastName=").append(lastName);
sb.append(", firstName=").append(firstName);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();

200
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/model/BasicUserExample.java

@ -1403,6 +1403,206 @@ public class BasicUserExample {
addCriterion("super_role not between", value1, value2, "superRole"); addCriterion("super_role not between", value1, value2, "superRole");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreatePlatformIsNull() {
addCriterion("create_platform is null");
return (Criteria) this;
}
public Criteria andCreatePlatformIsNotNull() {
addCriterion("create_platform is not null");
return (Criteria) this;
}
public Criteria andCreatePlatformEqualTo(Integer value) {
addCriterion("create_platform =", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformNotEqualTo(Integer value) {
addCriterion("create_platform <>", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformGreaterThan(Integer value) {
addCriterion("create_platform >", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformGreaterThanOrEqualTo(Integer value) {
addCriterion("create_platform >=", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformLessThan(Integer value) {
addCriterion("create_platform <", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformLessThanOrEqualTo(Integer value) {
addCriterion("create_platform <=", value, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformIn(List<Integer> values) {
addCriterion("create_platform in", values, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformNotIn(List<Integer> values) {
addCriterion("create_platform not in", values, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformBetween(Integer value1, Integer value2) {
addCriterion("create_platform between", value1, value2, "createPlatform");
return (Criteria) this;
}
public Criteria andCreatePlatformNotBetween(Integer value1, Integer value2) {
addCriterion("create_platform not between", value1, value2, "createPlatform");
return (Criteria) this;
}
public Criteria andLastNameIsNull() {
addCriterion("last_name is null");
return (Criteria) this;
}
public Criteria andLastNameIsNotNull() {
addCriterion("last_name is not null");
return (Criteria) this;
}
public Criteria andLastNameEqualTo(String value) {
addCriterion("last_name =", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameNotEqualTo(String value) {
addCriterion("last_name <>", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameGreaterThan(String value) {
addCriterion("last_name >", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameGreaterThanOrEqualTo(String value) {
addCriterion("last_name >=", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameLessThan(String value) {
addCriterion("last_name <", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameLessThanOrEqualTo(String value) {
addCriterion("last_name <=", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameLike(String value) {
addCriterion("last_name like", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameNotLike(String value) {
addCriterion("last_name not like", value, "lastName");
return (Criteria) this;
}
public Criteria andLastNameIn(List<String> values) {
addCriterion("last_name in", values, "lastName");
return (Criteria) this;
}
public Criteria andLastNameNotIn(List<String> values) {
addCriterion("last_name not in", values, "lastName");
return (Criteria) this;
}
public Criteria andLastNameBetween(String value1, String value2) {
addCriterion("last_name between", value1, value2, "lastName");
return (Criteria) this;
}
public Criteria andLastNameNotBetween(String value1, String value2) {
addCriterion("last_name not between", value1, value2, "lastName");
return (Criteria) this;
}
public Criteria andFirstNameIsNull() {
addCriterion("first_name is null");
return (Criteria) this;
}
public Criteria andFirstNameIsNotNull() {
addCriterion("first_name is not null");
return (Criteria) this;
}
public Criteria andFirstNameEqualTo(String value) {
addCriterion("first_name =", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameNotEqualTo(String value) {
addCriterion("first_name <>", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameGreaterThan(String value) {
addCriterion("first_name >", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameGreaterThanOrEqualTo(String value) {
addCriterion("first_name >=", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameLessThan(String value) {
addCriterion("first_name <", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameLessThanOrEqualTo(String value) {
addCriterion("first_name <=", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameLike(String value) {
addCriterion("first_name like", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameNotLike(String value) {
addCriterion("first_name not like", value, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameIn(List<String> values) {
addCriterion("first_name in", values, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameNotIn(List<String> values) {
addCriterion("first_name not in", values, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameBetween(String value1, String value2) {
addCriterion("first_name between", value1, value2, "firstName");
return (Criteria) this;
}
public Criteria andFirstNameNotBetween(String value1, String value2) {
addCriterion("first_name not between", value1, value2, "firstName");
return (Criteria) this;
}
} }
/** /**

6
dongjian-center-admin-model/src/main/java/com/dongjian/datacenter/admin/vo/user/UserPageDTO.java

@ -49,4 +49,10 @@ public class UserPageDTO {
@Schema(description = "创建时间",example = "1678990326897", required = false) @Schema(description = "创建时间",example = "1678990326897", required = false)
private Long createTime; private Long createTime;
@Schema(description = "姓",example = "鸠山", required = true)
private String lastName;
@Schema(description = "名",example = "由纪夫", required = true)
private String firstName;
} }

6
dongjian-center-admin-service/src/main/java/com/dongjian/datacenter/admin/service/impl/UserServiceImpl.java

@ -189,6 +189,12 @@ public class UserServiceImpl implements UserService {
private SimpleDataResponse checkParam(OptUserParam param, Integer languageType) { private SimpleDataResponse checkParam(OptUserParam param, Integer languageType) {
if(StringUtils.isBlank(param.getLastName()) || param.getLastName().length() > 50){
return new SimpleDataResponse(ResponseCode.MSG_ERROR, "Parameter [lastName] error");
}
if(StringUtils.isBlank(param.getFirstName()) || param.getFirstName().length() > 50){
return new SimpleDataResponse(ResponseCode.MSG_ERROR, "Parameter [firstName] error");
}
if(StringUtils.isBlank(param.getEmail()) || param.getEmail().length() > 100){ if(StringUtils.isBlank(param.getEmail()) || param.getEmail().length() > 100){
return new SimpleDataResponse(ResponseCode.MSG_ERROR, "Parameter [email] error"); return new SimpleDataResponse(ResponseCode.MSG_ERROR, "Parameter [email] error");
} }

Loading…
Cancel
Save