From 273459497a732f01515d4a4de4f83aacd2370fd6 Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Wed, 3 Jan 2024 14:57:02 +0800
Subject: [PATCH 01/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
flossom-ui/src/views/system/member/index.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue
index 79e9943..8e71803 100644
--- a/flossom-ui/src/views/system/member/index.vue
+++ b/flossom-ui/src/views/system/member/index.vue
@@ -99,6 +99,7 @@
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
+ value-format="yyyy-MM-dd HH:mm:ss"
end-placeholder="结束日期"
align="right">
From 474e19de821b2b1f3473f6cb2d27ef034508c88e Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Wed, 3 Jan 2024 15:28:09 +0800
Subject: [PATCH 02/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E7=A7=AF=E5=88=86=E5=92=8C=E4=BB=AA=E5=99=A8=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=E8=8C=83=E5=9B=B4=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/WxUserMemberMapper.xml | 7 ++++---
flossom-ui/src/views/system/member/index.vue | 8 ++++----
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
index db7ee4d..84dd262 100644
--- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
+++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
@@ -95,7 +95,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT
and member.nickname like concat('%', #{nickname}, '%')
- and member.credit >= #{creditStart} and member.credit <= #{creditEnd}
+ and member.credit >= #{creditStart}
+ and member.credit <= #{creditEnd}
and member.user_type = #{userType}
and member.province_id = #{provinceId}
and member.city_id = #{cityId}
@@ -121,8 +122,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and member.create_time <= #{params.endTime}
- and member.devices_num >= #{deviceNumStart} and member.devices_num <= #{deviceNumEnd}
-
+ and member.devices_num >= #{deviceNumStart}
+ and member.devices_num <= #{deviceNumEnd}
and id in (
SELECT
diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue
index 8e71803..1d6ed4c 100644
--- a/flossom-ui/src/views/system/member/index.vue
+++ b/flossom-ui/src/views/system/member/index.vue
@@ -115,14 +115,14 @@
-
+
至
-
+
-
+
至
-
+
From c1ea03d570497f64dd4c4cb94ef8f60f89a73d31 Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Wed, 3 Jan 2024 17:15:05 +0800
Subject: [PATCH 03/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E5=88=86=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../core/mapper/WxUserMemberMapper.java | 2 +-
.../service/impl/WxUserMemberServiceImpl.java | 8 ++--
flossom-ui/src/views/system/member/index.vue | 48 ++++++++++++++++++-
3 files changed, 51 insertions(+), 7 deletions(-)
diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
index 37ffc4a..ebd7e81 100644
--- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
+++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
@@ -74,7 +74,7 @@ public interface WxUserMemberMapper {
void upgradeMember(@Param("phoneNumber") String phoneNumber, @Param("id") Integer id);
- List selectWxUserMemberListByVm(WxUserMemberVm wxUserMemberVm);
+ List extends WxUserMember> selectWxUserMemberListByVm(WxUserMemberVm wxUserMemberVm);
List selectUserCount();
diff --git a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
index dc38174..f91fab2 100644
--- a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
+++ b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
@@ -116,7 +116,7 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
*/
@Override
public List selectWxUserMemberList(WxUserMemberVm wxUserMemberVm) {
- return wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
+ return (List) wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
}
/**
@@ -357,8 +357,7 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
@Override
public List selectWxUserMemberRetList(WxUserMemberVm wxUserMemberVm) {
- List list = new ArrayList<>();
- List wxUserMembers = wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
+ List wxUserMembers = (List) wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
if (wxUserMembers != null && wxUserMembers.size() > 0) {
WxUserMemberRet wxUserMemberRet;
for (WxUserMember wxUserMember : wxUserMembers) {
@@ -370,10 +369,9 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
wxUserMemberRet.setMiniProgramTags(wxUserTagMapper.selectWxUserTagList(wxUserTag));
wxUserTag.setType(TagTypeStatus.ENTERPRISE_WECHAT.getCode());
wxUserMemberRet.setWecomTags(wxUserTagMapper.selectWxUserTagList(wxUserTag));
- list.add(wxUserMemberRet);
}
}
- return list;
+ return wxUserMembers;
}
@Override
diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue
index 1d6ed4c..ba3f9cc 100644
--- a/flossom-ui/src/views/system/member/index.vue
+++ b/flossom-ui/src/views/system/member/index.vue
@@ -1286,6 +1286,52 @@ export default {
};
this.resetForm("form");
},
+ // 表单重置
+ resetQueryParams() {
+ // 查询参数
+ this.queryParams = {
+ pageNum: 1,
+ pageSize: 10,
+ nickname: null,
+ headimg: null,
+ username: null,
+ deviceNumStart: undefined,
+ deviceNumEnd: undefined,
+ creditStart: undefined,
+ creditEnd: undefined,
+ openid: null,
+ unionid: null,
+ userType: null,
+ level: null,
+ mobile: null,
+ password: null,
+ userQr: null,
+ provinceId: null,
+ province: null,
+ cityId: null,
+ city: null,
+ areaId: null,
+ area: null,
+ birthday: null,
+ clock: null,
+ activity: null,
+ wechat: null,
+ code: null,
+ isAbutment: null,
+ collagenDay: null,
+ collagenMount: null,
+ loginTime: null,
+ status: null,
+ // createTime: [],
+ devicesName: [], //仪器绑定
+ wecomTags: [], // 企微标签
+ miniProgramTags: [], // 小程序标签
+ purchaseChannels: [], // 购买渠道
+ isCompleteInformation: null, // 用户信息是否完善
+ wxUserRemarkList: null, // 备注列表
+ };
+ this.resetForm("queryForm");
+ },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
@@ -1294,7 +1340,7 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = [];
- this.resetForm("queryForm");
+ this.resetQueryParams();
this.handleQuery();
},
/** 批量操作按钮,显示批量操作弹窗 */
From b297f27c6dbbeb5d5b4b991c5a5a1d9ca84bc6ed Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Thu, 4 Jan 2024 10:38:25 +0800
Subject: [PATCH 04/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../core/domain/req/WxUserMemberVm.java | 25 ++++
.../core/mapper/WxUserMemberMapper.java | 5 +-
.../resources/mapper/WxUserMemberMapper.xml | 123 +++++++++++++++++-
.../service/impl/WxUserMemberServiceImpl.java | 21 +--
4 files changed, 161 insertions(+), 13 deletions(-)
diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxUserMemberVm.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxUserMemberVm.java
index eb08683..4c38f37 100644
--- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxUserMemberVm.java
+++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxUserMemberVm.java
@@ -102,11 +102,21 @@ public class WxUserMemberVm extends BaseEntity {
*/
List wecomTags;
+ /**
+ * 企微标签个数
+ */
+ Integer wecomTagNum;
+
/**
* 小程序标签
*/
List miniProgramTags;
+ /**
+ * 小程序标签
+ */
+ Integer miniProgramTagNum;
+
public WxUserMemberVm() {
@@ -263,4 +273,19 @@ public class WxUserMemberVm extends BaseEntity {
this.miniProgramTags = miniProgramTags;
}
+ public Integer getWecomTagNum() {
+ return wecomTagNum;
+ }
+
+ public void setWecomTagNum(Integer wecomTagNum) {
+ this.wecomTagNum = wecomTagNum;
+ }
+
+ public Integer getMiniProgramTagNum() {
+ return miniProgramTagNum;
+ }
+
+ public void setMiniProgramTagNum(Integer miniProgramTagNum) {
+ this.miniProgramTagNum = miniProgramTagNum;
+ }
}
diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
index ebd7e81..91785d7 100644
--- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
+++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
@@ -3,6 +3,7 @@ package com.flossom.common.core.mapper;
import com.flossom.common.core.domain.entity.WxUserMember;
import com.flossom.common.core.domain.req.WxUserMemberVm;
+import com.flossom.common.core.domain.ret.WxUserMemberRet;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -74,7 +75,7 @@ public interface WxUserMemberMapper {
void upgradeMember(@Param("phoneNumber") String phoneNumber, @Param("id") Integer id);
- List extends WxUserMember> selectWxUserMemberListByVm(WxUserMemberVm wxUserMemberVm);
+ List selectWxUserMemberListByVm(WxUserMemberVm wxUserMemberVm);
List selectUserCount();
@@ -84,4 +85,6 @@ public interface WxUserMemberMapper {
List selectWxUserMemberByMobile(@Param("mobile") String mobile);
List selectWxUserMemberByIdList(@Param("userIdList") List userIdList);
+
+ List selectWxUserMemberRetListByVm(WxUserMemberVm wxUserMemberVm);
}
diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
index 84dd262..ebdf137 100644
--- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
+++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
@@ -38,6 +38,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
select id, nickname, headimg, username, credit, expire_credit, openid, unionid, user_type, level, mobile, province_id, city_id, area_id, province, city, area, birthday, clock, activity, wechat, is_abutment, login_time, is_complete_information, devices_num, status, create_by, create_time, update_by, update_time, remark from wx_user_member
@@ -127,14 +161,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and id in (
SELECT
- DISTINCT user_id
+ user_id
FROM
wx_user_tag
WHERE
- tag_id IN
+ type = 2
+ AND tag_id IN
#{wecomTag}
+ GROUP BY
+ user_id
+ HAVING
+ COUNT( DISTINCT tag_id ) = #{wecomTagNum}
)
@@ -144,10 +183,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
wx_user_tag
WHERE
- tag_id IN
+ type = 1
+ AND tag_id IN
#{miniProgramTag}
+ GROUP BY
+ user_id
+ HAVING
+ COUNT( DISTINCT tag_id ) = #{miniProgramTagNum}
)
and member.status = 0
@@ -311,5 +355,78 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
+
\ No newline at end of file
diff --git a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
index f91fab2..cad3c15 100644
--- a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
+++ b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
@@ -116,7 +116,7 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
*/
@Override
public List selectWxUserMemberList(WxUserMemberVm wxUserMemberVm) {
- return (List) wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
+ return wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
}
/**
@@ -357,21 +357,24 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
@Override
public List selectWxUserMemberRetList(WxUserMemberVm wxUserMemberVm) {
- List wxUserMembers = (List) wxUserMemberMapper.selectWxUserMemberListByVm(wxUserMemberVm);
- if (wxUserMembers != null && wxUserMembers.size() > 0) {
- WxUserMemberRet wxUserMemberRet;
- for (WxUserMember wxUserMember : wxUserMembers) {
- wxUserMemberRet = new WxUserMemberRet();
- BeanUtils.copyProperties(wxUserMember, wxUserMemberRet);
+ if (wxUserMemberVm.getWecomTags() != null) {
+ wxUserMemberVm.setWecomTagNum(wxUserMemberVm.getWecomTags().size());
+ }
+ if (wxUserMemberVm.getMiniProgramTags() != null) {
+ wxUserMemberVm.setMiniProgramTagNum(wxUserMemberVm.getMiniProgramTags().size());
+ }
+ List wxUserMemberRetList = wxUserMemberMapper.selectWxUserMemberRetListByVm(wxUserMemberVm);
+ if (wxUserMemberRetList != null && wxUserMemberRetList.size() > 0) {
+ for (WxUserMemberRet wxUserMemberRet : wxUserMemberRetList) {
WxUserTag wxUserTag = new WxUserTag();
- wxUserTag.setUserId(wxUserMember.getId());
+ wxUserTag.setUserId(wxUserMemberRet.getId());
wxUserTag.setType(TagTypeStatus.MINI_PROGRAM.getCode());
wxUserMemberRet.setMiniProgramTags(wxUserTagMapper.selectWxUserTagList(wxUserTag));
wxUserTag.setType(TagTypeStatus.ENTERPRISE_WECHAT.getCode());
wxUserMemberRet.setWecomTags(wxUserTagMapper.selectWxUserTagList(wxUserTag));
}
}
- return wxUserMembers;
+ return wxUserMemberRetList;
}
@Override
From 00ea0ef8708f823300aa42a6ddab984c3fff6510 Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Thu, 4 Jan 2024 15:54:06 +0800
Subject: [PATCH 05/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86-bug?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../core/mapper/WxUserMemberMapper.java | 2 +
.../resources/mapper/WxUserMemberMapper.xml | 9 +
.../service/impl/WxUserMemberServiceImpl.java | 11 +-
flossom-ui/src/views/system/member/index.vue | 233 +++++++++---------
4 files changed, 136 insertions(+), 119 deletions(-)
diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
index 91785d7..88f2a38 100644
--- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
+++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/mapper/WxUserMemberMapper.java
@@ -86,5 +86,7 @@ public interface WxUserMemberMapper {
List selectWxUserMemberByIdList(@Param("userIdList") List userIdList);
+ List selectWxUserMemberRetByIdList(@Param("userIdList") List userIdList);
+
List selectWxUserMemberRetListByVm(WxUserMemberVm wxUserMemberVm);
}
diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
index ebdf137..427deb7 100644
--- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
+++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserMemberMapper.xml
@@ -355,6 +355,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
+
and member.status = 0
+ order by member.id desc
diff --git a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
index cad3c15..da63535 100644
--- a/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
+++ b/flossom-modules/flossom-system/src/main/java/com/flossom/system/service/impl/WxUserMemberServiceImpl.java
@@ -380,14 +380,11 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
@Override
public List selectWxUserMemberByIdList(List userIdList) {
List list = new ArrayList<>();
- List wxUserMembers = wxUserMemberMapper.selectWxUserMemberByIdList(userIdList);
- if (wxUserMembers != null && wxUserMembers.size() > 0) {
- WxUserMemberRet wxUserMemberRet;
- for (WxUserMember wxUserMember : wxUserMembers) {
- wxUserMemberRet = new WxUserMemberRet();
- BeanUtils.copyProperties(wxUserMember, wxUserMemberRet);
+ List wxUserMemberRetList = wxUserMemberMapper.selectWxUserMemberRetByIdList(userIdList);
+ if (wxUserMemberRetList != null && wxUserMemberRetList.size() > 0) {
+ for (WxUserMemberRet wxUserMemberRet : wxUserMemberRetList) {
WxUserTag wxUserTag = new WxUserTag();
- wxUserTag.setUserId(wxUserMember.getId());
+ wxUserTag.setUserId(wxUserMemberRet.getId());
wxUserTag.setType(TagTypeStatus.MINI_PROGRAM.getCode());
wxUserMemberRet.setMiniProgramTags(wxUserTagMapper.selectWxUserTagList(wxUserTag));
wxUserTag.setType(TagTypeStatus.ENTERPRISE_WECHAT.getCode());
diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue
index ba3f9cc..990dd6e 100644
--- a/flossom-ui/src/views/system/member/index.vue
+++ b/flossom-ui/src/views/system/member/index.vue
@@ -16,7 +16,7 @@
-
+
@@ -115,14 +115,18 @@
-
+
至
-
+
-
+
至
-
+
@@ -200,7 +204,7 @@
-
+
@@ -276,7 +280,7 @@
-
+
查看
@@ -462,7 +466,7 @@
@@ -471,18 +475,19 @@
-
+
+ :before-close="cancelScriptDialog">
@@ -505,7 +510,7 @@
-
+
@@ -513,17 +518,19 @@
-
+
-
+
-
@@ -578,7 +585,7 @@
@@ -634,7 +641,7 @@
-
+
增加积分
@@ -838,10 +845,11 @@ export default {
redirectUrl: null,
videoNo: null,
feedId: null,
- tagNames: [],
- tagIds: [],
// 当类型为模板发送时,选择了二级话术标题后,显示内容用,不传后端保存
scriptContent: null,
+ // 选中的小程序标签
+ tagIds: [],
+ tagNames: [],
},
// 用户消息记录
userScriptLogVisible: false,
@@ -888,7 +896,6 @@ export default {
createTime: null,
wecomTags: null,
miniProgramTags: null,
-
},
// 查询参数
queryParams: {
@@ -1055,31 +1062,23 @@ export default {
this.provinceList = Response.data
})
},
- getCityList(pid, isSave) {
+ getCityList(pid) {
if (pid == '') {
return;
}
this.queryParams.cityId = null;
this.queryParams.areaId = null;
getRegionByPid(pid).then(Response => {
- if (isSave) {
- this.saveCityList = Response.data;
- } else {
this.cityList = Response.data;
- }
})
},
- getAreaByPid(pid, isSave) {
+ getAreaByPid(pid) {
if (pid == '') {
return;
}
this.queryParams.areaId = null;
getRegionByPid(pid).then(Response => {
- if (isSave) {
- this.saveAreaList = Response.data;
- } else {
this.areaList = Response.data;
- }
})
},
// 查询条件-省市区清空
@@ -1105,7 +1104,7 @@ export default {
this.form.cityId = null;
this.form.areaId = null;
getRegionByPid(pid).then(Response => {
- this.saveCityList = Response.data;
+ this.saveCityList = Response.data;
})
},
getSaveAreaByPid(pid) {
@@ -1114,7 +1113,7 @@ export default {
}
this.form.areaId = null;
getRegionByPid(pid).then(Response => {
- this.saveAreaList = Response.data;
+ this.saveAreaList = Response.data;
})
},
clearSaveOption(option) {
@@ -1137,78 +1136,95 @@ export default {
this.reset();
},
// 关闭添加小程序标签窗口
- cancelMiniProgramDialog(isclose) {
+ cancelMiniProgramDialog(isClose) {
this.title = null;
this.miniProgramForm.tagIdArray = [];
- if (isclose) {
+ if (isClose) {
this.batchMiniProgramVisible = false;
}
},
- cancelIntegralDialog() {
+ cancelIntegralDialog(isClose) {
this.integralForm.source = null;
this.integralForm.floatScore = null;
this.integralForm.remarkContent = "后台操作";
- this.batchIntegralVisible = false;
+ if (isClose) {
+ this.batchIntegralVisible = false;
+ }
},
- cancelRemarkDialog() {
+ cancelRemarkDialog(isClose) {
this.remarkForm.content = null;
- this.batchRemarkVisible = false;
+ if (isClose) {
+ this.batchRemarkVisible = false;
+ }
},
cancelUserScriptLogDialog() {
this.userScriptLogVisible = false;
- this.userScriptLogQuery.total = 0;
- this.userScriptLogQuery.pageNum = 1;
- this.userScriptLogQuery.pageSize = 10;
- this.userScriptLogQuery.wxUserId = null;
- this.userScriptLogQuery.userScriptList = null;
+ this.userScriptLogQuery = {
+ total: 0,
+ pageNum: 1,
+ pageSize: 10,
+ wxUserId: null,
+ userScriptList: null,
+ orderByColumn: "createTime",
+ isAsc: "desc"
+ }
},
cancelUserIntegralLogDialog() {
this.userIntegralLogVisible = false;
- this.userIntegralLogQuery.total = 0
- this.userIntegralLogQuery.pageNum = 1;
- this.userIntegralLogQuery.pageSize = 10;
- this.userIntegralLogQuery.userId = null;
- this.userIntegralLogQuery.userIntegralLogList = null;
+ this.userIntegralLogQuery = {
+ total: 0,
+ pageNum: 1,
+ pageSize: 10,
+ userIntegralLogList: null,
+ userId: null,
+ orderByColumn: "createTime",
+ isAsc: "desc"
+ }
},
cancelExportFieldsDialog() {
this.allFields = false;
- this.exportFieldList.nickname = null;
- this.exportFieldList.id = null;
- this.exportFieldList.credit = null;
- this.exportFieldList.expireCredit = null;
- this.exportFieldList.unionid = null;
- this.exportFieldList.mobile = null;
- this.exportFieldList.province = null;
- this.exportFieldList.city = null;
- this.exportFieldList.area = null;
- this.exportFieldList.birthday = null;
- this.exportFieldList.devicesNum = null;
- this.exportFieldList.devicesName = null;
- this.exportFieldList.createTime = null;
- this.exportFieldList.wecomTags = null;
- this.exportFieldList.miniProgramTags = null;
this.exportFieldsVisible = false
+ this.exportFieldList = {
+ id: null,
+ nickname: null,
+ credit: null,
+ expireCredit: null,
+ unionid: null,
+ mobile: null,
+ province: null,
+ city: null,
+ area: null,
+ birthday: null,
+ devicesNum: null,
+ devicesName: null,
+ createTime: null,
+ wecomTags: null,
+ miniProgramTags: null,
+ }
},
- cancelscriptDialog() {
- this.scriptForm.isCustom = null;
- this.scriptForm.scriptName = null;
- this.scriptForm.titile = null;
- this.scriptForm.content = null;
- this.scriptForm.tagType = null;
- this.scriptForm.type = null;
- this.scriptForm.link = null;
- this.scriptForm.linkParams = null;
- this.scriptForm.redirectAppid = null;
- this.scriptForm.redirectUrl = null;
- this.scriptForm.videoNo = null;
- this.scriptForm.feedId = null;
- this.scriptForm.tagNames = null;
- this.scriptForm.tagIds = null;
- this.scriptForm.scriptContent = null;
- this.tagIdArray = [];
- this.scriptForm.scriptTemplateId = null;
- this.scriptForm.scriptContent = null;
- this.batchScriptVisible = false;
+ cancelScriptDialog(isClose) {
+ this.scriptForm = {
+ userIdList: null,
+ isCustom: 0,
+ scriptTemplateId: null,
+ scriptName: null,
+ titile: null,
+ content: null,
+ tagType: null,
+ type: null,
+ link: null,
+ linkParams: null,
+ redirectAppid: null,
+ redirectUrl: null,
+ videoNo: null,
+ feedId: null,
+ scriptContent: null,
+ tagNames: [],
+ tagIds: [],
+ }
+ if (isClose) {
+ this.batchScriptVisible = false;
+ }
},
/** 查询部门下拉树结构 */
getDeptTree() {
@@ -1222,8 +1238,8 @@ export default {
this.scriptOptions = response.data;
});
},
+ // 切换 话术发送类型
clearScript() {
- // 话术模板
if (this.scriptForm.isCustom == 0) {
this.scriptForm.scriptName = null;
this.scriptForm.titile = null;
@@ -1238,13 +1254,12 @@ export default {
this.scriptForm.feedId = null;
this.scriptForm.tagNames = null;
this.scriptForm.tagIds = null;
- this.scriptForm.scriptContent = null;
- this.tagIdArray = [];
}
// 自定义发送
if (this.scriptForm.isCustom == 1) {
this.scriptForm.scriptTemplateId = null;
this.scriptForm.scriptContent = null;
+ this.scriptForm.type = 0;
}
},
selectTree(raw, instanceId) {
@@ -1266,8 +1281,11 @@ export default {
password: null,
userQr: null,
province: null,
+ provinceId: null,
city: null,
+ cityId: null,
area: null,
+ areaId: null,
birthday: null,
clock: null,
activity: null,
@@ -1362,22 +1380,18 @@ export default {
return
}
if (this.batchOperateValue == 1) {
- console.log("批量添加小程序标签");
this.title = "添加小程序标签";
}
if (this.batchOperateValue == 2) {
- console.log("批量删除小程序标签");
this.title = "删除小程序标签";
}
this.batchMiniProgramVisible = true;
}
if (this.batchOperateValue == 3 || this.batchOperateValue == 4) {
if (this.batchOperateValue == 3) {
- console.log("全量添加小程序标签");
this.title = "添加小程序标签";
}
if (this.batchOperateValue == 4) {
- console.log("全量删除小程序标签");
this.title = "添加小程序标签";
}
this.batchMiniProgramVisible = true;
@@ -1385,7 +1399,6 @@ export default {
/* 批量操作:加减分 */
if (this.batchOperateValue == 5) {
- console.log("批量加减积分");
if (this.ids.length == 0) {
this.$message({
message: '请选择要操作的数据',
@@ -1394,15 +1407,15 @@ export default {
return
}
this.batchIntegralVisible = true;
+ this.title = "批量加减积分";
}
if (this.batchOperateValue == 6) {
- console.log("全量加减积分");
this.batchIntegralVisible = true;
+ this.title = "全量加减积分";
}
/* 批量操作:发送话术 */
if (this.batchOperateValue == 7) {
- console.log("批量发送话术");
if (this.ids.length == 0) {
this.$message({
message: '请选择要操作的数据',
@@ -1411,15 +1424,15 @@ export default {
return
}
this.batchScriptVisible = true;
+ this.title = "批量发送话术";
}
if (this.batchOperateValue == 8) {
- console.log("全量发送话术");
this.batchScriptVisible = true;
+ this.title = "全量发送话术";
}
/* 批量操作: 备注 */
if (this.batchOperateValue == 9) {
- console.log("批量备注");
if (this.ids.length == 0) {
this.$message({
message: '请选择要操作的数据',
@@ -1428,15 +1441,15 @@ export default {
return
}
this.batchRemarkVisible = true;
+ this.title = "批量备注";
}
if (this.batchOperateValue == 10) {
- console.log("全量备注");
this.batchRemarkVisible = true;
+ this.title = "全量备注";
}
/* 批量操作:注销账号 */
if (this.batchOperateValue == 11) {
- console.log("注销账号");
if (this.ids.length == 0) {
this.$message({
message: '请选择要操作的数据',
@@ -1460,7 +1473,6 @@ export default {
/* 批量操作:导出数据 */
if (this.batchOperateValue == 12) {
- console.log("导出数据");
if (this.ids.length == 0) {
this.$message({
message: '请选择要操作的数据',
@@ -1471,7 +1483,6 @@ export default {
this.exportFieldsVisible = true;
}
if (this.batchOperateValue == 13) {
- console.log("导出全量数据");
this.exportFieldsVisible = true;
}
}
@@ -1493,17 +1504,17 @@ export default {
this.reset();
const id = row.id || this.ids
getMember(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "修改用户";
-
// 回显省市区
- if (this.form.provinceId != null) {
- this.getCityList(this.form.provinceId, true);
+ if (response.data.provinceId != null) {
+ this.getSaveCityList(response.data.provinceId);
}
- if (this.form.areaId != null) {
- this.getAreaByPid(this.form.cityId, true);
+ if (response.data.areaId != null) {
+ this.getSaveAreaByPid(response.data.cityId);
}
+
+ this.form = response.data;
+ this.open = true;
+ this.title = "修改用户";
});
},
// 开关打卡
@@ -1663,17 +1674,15 @@ export default {
/* 批量操作:发送话术 */
if (this.batchOperateValue == 7) {
this.scriptForm.userIdList = this.ids;
- this.scriptForm.tagIds = this.tagIdArray;
batchSendScript(this.scriptForm).then(Response => {
this.$modal.msgSuccess("批量发送话术成功");
- this.cancelscriptDialog(true);
+ this.cancelScriptDialog(true);
})
}
if (this.batchOperateValue == 8) {
- this.scriptForm.tagIds = this.tagIdArray;
allSendScript(this.scriptForm, this.queryParams).then(Response => {
this.$modal.msgSuccess("全量发送话术成功");
- this.cancelscriptDialog(true);
+ this.cancelScriptDialog(true);
})
}
@@ -1745,7 +1754,7 @@ export default {
if (this.form.wxUserRemarkList != null && this.form.wxUserRemarkList.length > 0) {
let that = this;
this.form.wxUserRemarkList.forEach(function (item) {
- if (item.id = that.editRemarkForm.id) {
+ if (item.id == that.editRemarkForm.id) {
item.content = that.editRemarkForm.content;
}
})
From 5d469b69c97ae91aa4fb7120ba3f61fa6929e77f Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Thu, 4 Jan 2024 16:38:23 +0800
Subject: [PATCH 06/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=A7=AF=E5=88=86-?=
=?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=A8=A1=E7=B3=8A=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/WxUserIntegralLogMapper.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
index adec6a0..ad983a6 100644
--- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
+++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
@@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and user_id = #{userId}
and user_name like concat('%', #{userName}, '%')
- and user_phone = #{userPhone}
+ and user_phone like concat('%', #{userPhone}, '%')
and source = #{source}
and float_score = #{floatScore}
and soure_id = #{soureId}
From 80d386c93e71fbc9c44b54af4473f9cbe83263ad Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Thu, 4 Jan 2024 16:48:52 +0800
Subject: [PATCH 07/14] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=A7=AF=E5=88=86-?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=9C=E6=8C=89=E7=85=A7=E5=88=9B?=
=?UTF-8?q?=E5=BB=BA=E6=97=B6=E9=97=B4=E5=80=92=E5=8F=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/WxUserIntegralLogMapper.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
index ad983a6..f768845 100644
--- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
+++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxUserIntegralLogMapper.xml
@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and create_time <= #{createTime}
+ order by create_time desc