From 00a59b93c16b24e7be77c6f1ce4866c75a2e0431 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期二, 19 四月 2022 16:32:21 +0800
Subject: [PATCH] 花城E+防疫修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 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 aa96299..90c381e 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
@@ -10,6 +10,8 @@
 import org.springframework.stereotype.Service;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 
+import java.util.Date;
+
 /**
  * title: 随手拍、微心愿处理人绑定表表服务实现类
  * <p>
@@ -116,4 +118,26 @@
     public R queryByList(PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) {
         return R.ok(this.baseMapper.queryAllByList(comActEasyPhotoHandler));
     }
+
+    /**
+     * 添加随手拍、微心愿处理关联记录
+     * @param communityId   社区id
+     * @param userId    用户id
+     * @param serviceId 业务id
+     * @param type  人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)
+     * @param serviceType   业务类型(1.随手拍 2.微心愿)
+     */
+    @Override
+    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);
+    }
 }

--
Gitblit v1.7.1