user表:新增字段merchants

This commit is contained in:
gxwebsoft
2024-05-27 18:19:19 +08:00
parent 31557b1913
commit 9748cf4e9f
4 changed files with 10 additions and 1 deletions

View File

@@ -323,6 +323,8 @@
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<repositories> <repositories>

View File

@@ -155,6 +155,9 @@ public class User implements UserDetails {
@ApiModelProperty("客户端ID") @ApiModelProperty("客户端ID")
private String clientId; private String clientId;
@ApiModelProperty(value = "可管理的商户")
private String merchants;
@ApiModelProperty(value = "商户ID") @ApiModelProperty(value = "商户ID")
private Integer merchantId; private Integer merchantId;

View File

@@ -142,7 +142,7 @@
OR a.merchant_id = #{param.keywords} OR a.merchant_id = #{param.keywords}
OR a.nickname LIKE CONCAT('%', #{param.keywords}, '%') OR a.nickname LIKE CONCAT('%', #{param.keywords}, '%')
OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%') OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.phone = #{param.keywords} OR a.phone LIKE CONCAT('%', #{param.keywords}, '%')
OR a.email = #{param.keywords} OR a.email = #{param.keywords}
) )
</if> </if>

View File

@@ -222,6 +222,10 @@ public class UserParam extends BaseParam {
@TableField(exist = false) @TableField(exist = false)
private String openId; private String openId;
@ApiModelProperty(value = "可管理的商户")
@QueryField(type = QueryType.LIKE)
private String merchants;
@ApiModelProperty(value = "商户ID") @ApiModelProperty(value = "商户ID")
@QueryField(type = QueryType.EQ) @QueryField(type = QueryType.EQ)
private Integer merchantId; private Integer merchantId;