Merge remote-tracking branch 'origin/feature-20240104' into feature-20240104

master
elliott 2 years ago
commit 5c60459be5

@ -7,87 +7,87 @@ import java.util.List;
public class WxUserMemberExport {
/**
* id
*/
@Excel(name = "用户编号")
private Long id;
/**
*
*/
@Excel(name = "会员昵称")
@Excel(name = "会员昵称", sort = 1)
private String nickname;
/**
*
* id
*/
@Excel(name = "积分")
private Integer credit;
@Excel(name = "用户编号", sort = 2)
private Long id;
/**
*
*
*/
@Excel(name = "即将过期积分")
private Integer expireCredit;
@Excel(name = "手机号码", sort = 3)
private String mobile;
/**
* unionid
*
*/
@Excel(name = "unionid")
private String unionid;
@Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd", sort = 4)
private Date birthday;
/**
*
*/
@Excel(name = "手机号")
private String mobile;
/**
*
*/
@Excel(name = "省")
@Excel(name = "省", sort = 5)
private String province;
/**
*
*/
@Excel(name = "市")
@Excel(name = "市", sort = 6)
private String city;
/**
*
*/
@Excel(name = "区")
@Excel(name = "区", sort = 7)
private String area;
/**
*
*
*/
@Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthday;
@Excel(name = "用户注册时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 8)
private Date createTime;
/**
*
*/
@Excel(name = "仪器数量")
@Excel(name = "仪器数量", sort = 9)
private Integer devicesNum;
@Excel(name = "仪器名称")
private String devicesName;
@Excel(name = "小程序标签", sort = 10)
String miniProgramTags;
@Excel(name = "外部标签", sort = 11)
String wecomTags;
/**
*
*
*/
@Excel(name = "用户注册时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@Excel(name = "积分", sort = 12)
private Integer credit;
@Excel(name = "外部标签")
String wecomTags;
/**
*
*/
@Excel(name = "即将过期积分", sort = 13)
private Integer expireCredit;
@Excel(name = "小程序标签")
String miniProgramTags;
/**
* unionid
*/
@Excel(name = "unionid", sort = 14)
private String unionid;
@Excel(name = "仪器名称", sort = 15)
private String devicesName;
public WxUserMemberExport() {

@ -68,6 +68,11 @@ public class WxUserMemberVm extends BaseEntity {
*/
private Date birthday;
/**
*
*/
private List<Date> birthdayRange;
/**
*
*/
@ -298,4 +303,12 @@ public class WxUserMemberVm extends BaseEntity {
public void setDevicesIdList(List<Long> devicesIdList) {
this.devicesIdList = devicesIdList;
}
public List<Date> getBirthdayRange() {
return birthdayRange;
}
public void setBirthdayRange(List<Date> birthdayRange) {
this.birthdayRange = birthdayRange;
}
}

@ -382,6 +382,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cityId != null and cityId != ''"> and member.city_id = #{cityId}</if>
<if test="areaId != null and areaId != ''"> and member.area_id = #{areaId}</if>
<if test="birthday != null "> and member.birthday = #{birthday}</if>
<if test="birthdayRange != null and birthdayRange.size > 0">
and member.birthday &gt;= #{birthdayRange[0]}
and member.birthday &lt;= #{birthdayRange[1]}
</if>
<if test="id!=null and id !=''">
and
<foreach collection="id.split(',')" index="index" item="item" open="(" separator="OR"

@ -2,6 +2,7 @@ package com.flossom.miniProgram.service.impl;
import com.alibaba.fastjson.JSON;
import com.flossom.common.core.constant.CacheConstants;
import com.flossom.common.core.constant.HttpStatus;
import com.flossom.common.core.constant.UserConstants;
import com.flossom.common.core.domain.R;
import com.flossom.common.core.domain.entity.*;
@ -257,8 +258,9 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
String openid = loginUser.getWxUserMember().getOpenid();
WxUserMember wxUserMember = wxUserMemberMapper.selectWxUserMemberByOpenId(openid);
if (wxUserMember == null) {
logger.error("刷新用户信息失败");
throw new ServiceException("刷新用户信息失败");
logger.error("获取用户信息失败token用户ID{} token用户openid{}token用户昵称{}",
loginUser.getWxUserMember().getId(), loginUser.getWxUserMember().getNickname());
throw new ServiceException("获取用户信息失败", HttpStatus.UNAUTHORIZED);
}
LoginUserVo loginUserVo = new LoginUserVo();
BeanUtils.copyProperties(wxUserMember, loginUserVo);

@ -102,13 +102,24 @@
<div style="width: 20px"></div>
<div class="mini-label">
<el-form-item label="生日" prop="birthday">
<!-- <el-date-picker-->
<!-- style="width: 126px"-->
<!-- clearable-->
<!-- v-model="queryParams.birthday"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- placeholder="请选择生日"-->
<!-- >-->
<!-- </el-date-picker>-->
<el-date-picker
style="width: 126px"
clearable
v-model="queryParams.birthday"
type="date"
style="width: 360px"
v-model="queryParams.birthdayRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
value-format="yyyy-MM-dd"
placeholder="请选择生日"
end-placeholder="结束日期"
align="right"
>
</el-date-picker>
</el-form-item>
@ -1585,6 +1596,7 @@ export default {
areaId: null,
area: null,
birthday: null,
birthdayRange: [],
clock: null,
activity: null,
wechat: null,
@ -1987,6 +1999,7 @@ export default {
area: null,
areaId: null,
birthday: null,
birthdayRange: [],
clock: null,
activity: null,
wechat: null,
@ -2031,6 +2044,7 @@ export default {
areaId: null,
area: null,
birthday: null,
birthdayRange: [],
clock: null,
activity: null,
wechat: null,

Loading…
Cancel
Save