From 06124cbb130665aad660ee485171f125dfc93b43 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 24 十月 2022 14:10:54 +0800
Subject: [PATCH] #feat 修改参加活动统计
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java
index 232a936..1f2eb0e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java
@@ -1,5 +1,6 @@
package com.panzhihua.service_community.service.impl;
+import com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo;
import com.panzhihua.service_community.entity.ComActEasyPhotoHandler;
import com.panzhihua.service_community.dao.ComActEasyPhotoHandlerMapper;
import com.panzhihua.service_community.service.ComActEasyPhotoHandlerService;
@@ -9,6 +10,9 @@
import com.panzhihua.common.model.vos.R;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+
+import java.util.Date;
+import java.util.List;
/**
* title: 随手拍、微心愿处理人绑定表表服务实现类
@@ -126,13 +130,27 @@
* @param serviceType 业务类型(1.随手拍 2.微心愿)
*/
@Override
- public void addHandleRecord(Long communityId, Long userId, Long serviceId, Integer type, Integer serviceType) {
+ public void addHandleRecord(Long communityId, Long userId, Long serviceId, Integer type, Integer serviceType,Long sponsorId) {
ComActEasyPhotoHandler easyPhotoHandler = new ComActEasyPhotoHandler();
easyPhotoHandler.setCommunityId(communityId);
+ easyPhotoHandler.setStatus(ComActEasyPhotoHandler.Status.DZX);
+ easyPhotoHandler.setCreateTime(new Date());
easyPhotoHandler.setUserId(userId);
+ easyPhotoHandler.setSenderId(sponsorId);
easyPhotoHandler.setServiceId(serviceId);
easyPhotoHandler.setType(type);
easyPhotoHandler.setServiceType(serviceType);
this.baseMapper.insert(easyPhotoHandler);
}
+
+ /**
+ * 获取处理记录
+ * @param serviceId
+ * @param serviceType
+ * @return
+ */
+ @Override
+ public List<ComActEasyPhotoHandlerVo> selectHandleRecord(Long serviceId, Integer serviceType) {
+ return this.baseMapper.selectHandleRecord(serviceId, serviceType);
+ }
}
--
Gitblit v1.7.1