用户表新增商户名称字段

This commit is contained in:
gxwebsoft
2024-05-24 13:20:35 +08:00
parent fb501e5a1f
commit 02d8d9961b
3 changed files with 8 additions and 4 deletions

View File

@@ -159,7 +159,6 @@ public class User implements UserDetails {
private Integer merchantId; private Integer merchantId;
@ApiModelProperty(value = "商户名称") @ApiModelProperty(value = "商户名称")
@TableField(exist = false)
private String merchantName; private String merchantName;
@ApiModelProperty(value = "是否管理员") @ApiModelProperty(value = "是否管理员")

View File

@@ -26,8 +26,7 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, SELECT a.*,
b.organization_name, b.organization_name,
c.dict_data_name sex_name, c.dict_data_name sex_name
e.merchant_name as merchantName
FROM sys_user a FROM sys_user a
LEFT JOIN sys_organization b ON a.organization_id = b.organization_id LEFT JOIN sys_organization b ON a.organization_id = b.organization_id
LEFT JOIN ( LEFT JOIN (
@@ -36,7 +35,6 @@
LEFT JOIN( LEFT JOIN(
<include refid="selectUserRoleSql"/> <include refid="selectUserRoleSql"/>
) d ON a.user_id = d.user_id ) d ON a.user_id = d.user_id
LEFT JOIN sys_merchant e ON a.merchant_id = e.merchant_id
<where> <where>
<if test="param.userId != null"> <if test="param.userId != null">
AND a.user_id = #{param.userId} AND a.user_id = #{param.userId}

View File

@@ -221,4 +221,11 @@ public class UserParam extends BaseParam {
@ApiModelProperty("openId") @ApiModelProperty("openId")
@TableField(exist = false) @TableField(exist = false)
private String openId; private String openId;
@ApiModelProperty(value = "商户ID")
@QueryField(type = QueryType.EQ)
private Integer merchantId;
@ApiModelProperty(value = "商户名称")
private String merchantName;
} }