Compare commits

..

No commits in common. "0ea786f6e6979b82d25d40a33f484b0426bf51d6" and "ba4d22792ca107365eb7da1c4a6df76daffabeb8" have entirely different histories.

4 changed files with 9 additions and 8 deletions

View File

@ -56,8 +56,8 @@ public class StorePinkAdminListResponse {
@ApiModelProperty(value = "客户姓名") @ApiModelProperty(value = "客户姓名")
private String name; private String name;
@ApiModelProperty("用户公司名称") @ApiModelProperty("租户名称")
private String companyName; private String tenantName;
@ApiModelProperty(value = "当前队列的排队序号") @ApiModelProperty(value = "当前队列的排队序号")
private Integer queueNo; private Integer queueNo;

View File

@ -18,6 +18,6 @@ public class UserSearchAdminResponse {
@ApiModelProperty(value = "手机号码") @ApiModelProperty(value = "手机号码")
private String phone; private String phone;
@ApiModelProperty(value = "用户公司名称") @ApiModelProperty(value = "企业名称")
private String companyName; private String tenantName;
} }

View File

@ -240,7 +240,7 @@ public class StorePinkServiceImpl extends ServiceImpl<StorePinkMapper, StorePink
if (null != user) { if (null != user) {
storePinkResponse.setPhone(user.getPhone()); storePinkResponse.setPhone(user.getPhone());
storePinkResponse.setName(user.getNickname()); storePinkResponse.setName(user.getNickname());
storePinkResponse.setCompanyName(user.getCompanyName()); storePinkResponse.setTenantName(tenantService.getInfo(user.getTenantId()).getTenantName());
} }
return storePinkResponse; return storePinkResponse;
}).collect(Collectors.toList()); }).collect(Collectors.toList());

View File

@ -96,19 +96,20 @@
ORDER BY u.uid desc ORDER BY u.uid desc
</select> </select>
<!-- 后台管理用户搜索:通过手机号或公司名称模糊查询 --> <!-- 后台管理用户搜索:通过手机号或企业名称模糊查询 -->
<select id="searchUsersByPhoneOrTenant" resultType="com.yzt.common.response.UserSearchAdminResponse" parameterType="String"> <select id="searchUsersByPhoneOrTenant" resultType="com.yzt.common.response.UserSearchAdminResponse" parameterType="String">
SELECT SELECT
u.uid, u.uid,
u.nickname, u.nickname,
u.phone, u.phone,
u.company_name AS companyName t.tenant_name AS tenantName
FROM zp_user AS u FROM zp_user AS u
LEFT JOIN zp_tenant AS t ON u.tenant_id = t.tenant_id
WHERE 1 = 1 WHERE 1 = 1
<if test="keyword != null and keyword != ''"> <if test="keyword != null and keyword != ''">
AND ( AND (
u.phone LIKE CONCAT('%', #{keyword}, '%') u.phone LIKE CONCAT('%', #{keyword}, '%')
OR u.company_name LIKE CONCAT('%', #{keyword}, '%') OR t.tenant_name LIKE CONCAT('%', #{keyword}, '%')
) )
</if> </if>
ORDER BY u.uid DESC ORDER BY u.uid DESC