From a8a933cdca2aab3c0b835428697a104a26328375 Mon Sep 17 00:00:00 2001
From: xiezhijun <15270898033@163.com>
Date: Sat, 31 Jul 2021 17:35:44 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=A3=80=E7=B4=A2?=
=?UTF-8?q?=E8=AF=AD=E5=8F=A5=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=B6=E5=8A=A0=E4=B8=8A=E5=85=B3=E9=94=AE?=
=?UTF-8?q?=E8=AF=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../custom/domain/SysRecipesTemplate.java | 4 ++
.../custom/SysRecipesTemplateMapper.xml | 26 +++++++--
.../src/components/TemplateDialog/index.vue | 56 ++++++++++++++++++-
.../RecommendView/TemplateView/index.vue | 40 ++++++++++---
.../views/custom/recipesTemplate/index.vue | 51 +++++++++++++++--
5 files changed, 160 insertions(+), 17 deletions(-)
diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysRecipesTemplate.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysRecipesTemplate.java
index 852575c92..22bdae692 100644
--- a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysRecipesTemplate.java
+++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysRecipesTemplate.java
@@ -1,6 +1,7 @@
package com.stdiet.custom.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
+import com.stdiet.common.annotation.Excel;
import lombok.Data;
import java.util.Date;
@@ -21,6 +22,9 @@ public class SysRecipesTemplate {
Long planId;
+ /** 关键词,使用 , 隔开 */
+ private String keyWord;
+
String remark;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysRecipesTemplateMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysRecipesTemplateMapper.xml
index 98d612f0d..052247487 100644
--- a/stdiet-custom/src/main/resources/mapper/custom/SysRecipesTemplateMapper.xml
+++ b/stdiet-custom/src/main/resources/mapper/custom/SysRecipesTemplateMapper.xml
@@ -10,6 +10,7 @@
+
@@ -23,7 +24,7 @@
+
+
+
\ No newline at end of file
diff --git a/stdiet-ui/src/api/custom/wxUserLog.js b/stdiet-ui/src/api/custom/wxUserLog.js
index cbaeb5abf..621eadc34 100644
--- a/stdiet-ui/src/api/custom/wxUserLog.js
+++ b/stdiet-ui/src/api/custom/wxUserLog.js
@@ -79,6 +79,17 @@ export function commentPunchContent(data) {
})
}
+// 查询未打卡用户列表
+export function getNotPunchCustomer(query) {
+ return request({
+ url: '/custom/wxUserLog/selectNotPunchCustomerByDate',
+ method: 'get',
+ params: query
+ })
+}
+
+
+
diff --git a/stdiet-ui/src/components/PunchLog/NotPunchCustomer/index.vue b/stdiet-ui/src/components/PunchLog/NotPunchCustomer/index.vue
new file mode 100644
index 000000000..a79a05f46
--- /dev/null
+++ b/stdiet-ui/src/components/PunchLog/NotPunchCustomer/index.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
diff --git a/stdiet-ui/src/views/custom/wxUserLog/index.vue b/stdiet-ui/src/views/custom/wxUserLog/index.vue
index b1c034ccd..4c1a87f42 100644
--- a/stdiet-ui/src/views/custom/wxUserLog/index.vue
+++ b/stdiet-ui/src/views/custom/wxUserLog/index.vue
@@ -81,16 +81,15 @@
-
+
@@ -298,6 +297,8 @@
+
+
@@ -314,6 +315,7 @@ import { mapGetters } from "vuex";
import PunchLogDetail from "@/components/PunchLog/PunchLogDetail";
import PunchLogEdit from "@/components/PunchLog/PunchLogEdit";
import AutoHideMessage from "@/components/AutoHideMessage";
+import NotPunchCustomer from "@/components/PunchLog/NotPunchCustomer"
import dayjs from "dayjs";
export default {
name: "WxUserLog",
@@ -369,7 +371,7 @@ export default {
};
},
components:{
- PunchLogDetail,AutoHideMessage,PunchLogEdit
+ PunchLogDetail,AutoHideMessage,PunchLogEdit,NotPunchCustomer
},
created() {
this.getList();
@@ -563,6 +565,10 @@ export default {
})
.catch(function () {});
},
+ showNotLunch(){
+ this.queryParams.startDate = this.logTimeScope && this.logTimeScope.length > 0 ? this.logTimeScope[0] : null;
+ this.$refs.notPunchCustomerRef.showDialog(this.queryParams, this.nutritionistIdOptions,this.afterSaleIdOptions);
+ }
},
};
From 1f5fe096397a7bb04716d26907af6566a6c24881 Mon Sep 17 00:00:00 2001
From: xiezhijun <15270898033@163.com>
Date: Wed, 4 Aug 2021 15:48:50 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=B6=88?=
=?UTF-8?q?=E6=81=AF=E4=B8=AD=E5=BF=83=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../custom/WechatAppletController.java | 39 +++++
.../domain/entityEnum/MessageNoticeEnum.java | 6 +-
.../custom/mapper/SysMessageNoticeMapper.java | 57 +++++++
.../custom/mapper/SysServicesTopicMapper.java | 21 +++
.../service/ISysMessageNoticeService.java | 46 +++++
.../service/ISysServicesTopicService.java | 7 +
.../impl/SysMessageNoticeServiceImpl.java | 161 +++++++++++++++++-
.../impl/SysRecipesPlanServiceImpl.java | 6 +
.../impl/SysServicesTopicServiceImp.java | 35 ++++
.../mapper/custom/SysCustomerMapper.xml | 32 +++-
.../mapper/custom/SysMessageNoticeMapper.xml | 73 ++++++++
.../mapper/custom/SysServicesTopicMapper.xml | 15 ++
12 files changed, 488 insertions(+), 10 deletions(-)
diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java
index 381eb20eb..af9c67524 100644
--- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java
+++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java
@@ -738,6 +738,10 @@ public class WechatAppletController extends BaseController {
sysPunchThumbsup.setPunchId(Long.parseLong(AesUtils.decrypt(sysPunchThumbsup.getEncPunchId())));
rows = sysPunchThumbsupService.insertSysPunchThumbsup(sysPunchThumbsup);
if (rows > 0) {
+ //发送点赞消息
+ SysWxUserLog sysWxUserLog = sysWxUserLogService.selectSysWxUserLogById(sysPunchThumbsup.getPunchId()+"");
+ sysMessageNoticeService.sendpunchDynamicThumbsUpMessage(sysWxUserLog, sysPunchThumbsup.getCusOpenid());
+
Map resultData = new HashMap<>();
resultData.put("id", AesUtils.encrypt(String.valueOf(sysPunchThumbsup.getId())));
resultData.put("openid", sysPunchThumbsup.getCusOpenid());
@@ -888,6 +892,41 @@ public class WechatAppletController extends BaseController {
return AjaxResult.success(reply);
}
+
+ /**
+ * 查询消息列表
+ * @param cusId 客户ID
+ * @param messageType 0 查询全部 1 查询打卡点评消息 2 打卡动态点赞消息 3 服务消息(食谱更新、执行反馈消息)
+ * @return
+ */
+ @GetMapping("/getMessageNoticeData")
+ public AjaxResult getMessageNoticeList(@RequestParam("cusId")String cusId, @RequestParam(value = "messageType", required = false, defaultValue = "0")Integer messageType) {
+ cusId = StringUtils.isNotEmpty(cusId) ? AesUtils.decrypt(cusId) : "0";
+ Map result = new HashMap<>();
+ //查询打卡消息
+ if(messageType.intValue() == 0 || messageType.intValue() == 1){
+ startPage();
+ Map punchResult = sysMessageNoticeService.getPunchCommentMessageByCusId(Long.parseLong(cusId));
+ List