Bug修复:【ID1000417】

会员管理-搜索的生日是需要搜索一个日期范围
master
382696293@qq.com 2 years ago
parent 89fb503fb8
commit 393cd41a73

@ -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"

@ -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