From 4ddc5fd15120f714780f63a3e178d2e4cce5b9ac Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 29 八月 2023 13:45:55 +0800
Subject: [PATCH] 新增商家商品模块
---
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 105 insertions(+), 6 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java
index fc46e28..1d681de 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java
@@ -3,6 +3,7 @@
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.VolunteerActivitiesPeopleVO;
+import com.panzhihua.common.model.vos.community.VolunteerIntegralRecordVO;
import com.panzhihua.common.service.community.CommunityService;
import com.panzhihua.common.utlis.StringUtils;
import lombok.extern.slf4j.Slf4j;
@@ -70,14 +71,14 @@
return R.fail("参数不能为空");
}
+ if(StringUtils.isEmpty(volunteerActivitiesPeopleVO.getUserId()))
+ {
+ return R.fail("用户id不能为空");
+ }
+
if(StringUtils.isEmpty(volunteerActivitiesPeopleVO.getActivityId()))
{
return R.fail("活动id不能为空");
- }
-
- if(StringUtils.isEmpty(volunteerActivitiesPeopleVO.getVolunteerId()))
- {
- return R.fail("志愿者id不能为空");
}
if(StringUtils.isEmpty(volunteerActivitiesPeopleVO.getCommunityId()))
@@ -166,7 +167,105 @@
public R volunteerTypeGetList(@RequestParam("pageNum") int pageNum,
@RequestParam("pageSize") int pageSize)
{
- return volunteerActivitiesPeople.volunteerTypeGetList(pageNum,pageSize);
+ return volunteerActivitiesPeople.volunteerTypeGetList(pageNum,pageSize,"1");
+ }
+
+ /**************************************************************************************************
+ *
+ * 积分明细
+ *
+ ***************************************************************************************************/
+ /**
+ * 获取单个详情
+ *
+ * @param id
+ * @return
+ */
+ @GetMapping("/IntegralRecord/getId")
+ public R VolunteerIntegralRecordGetId(@RequestParam("id") String id)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralRecordGetId(id);
+ }
+
+ /**
+ * 分页查询
+ *
+ * @param
+ * @return
+ */
+ @GetMapping("/IntegralRecord/getList")
+ public R VolunteerIntegralRecordGetList(@RequestParam("pageNum") int pageNum,
+ @RequestParam("pageSize") int pageSize,
+ @RequestParam("userId") String userId)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralRecordGetList(pageNum,pageSize,userId);
+ }
+
+ /**
+ * 新增
+ *
+ * @param
+ * @return
+ */
+ @PostMapping("/IntegralRecord/insertVolunteer")
+ public R VolunteerIntegralRecordInsertVolunteer(@RequestBody() VolunteerIntegralRecordVO volunteerIntegralRecordVO)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralRecordInsertVolunteer(volunteerIntegralRecordVO);
+ }
+
+ /**
+ * 便捷
+ * @param
+ * @return
+ */
+ @PostMapping("/VolunteerIntegralRecord/updateId")
+ public R VolunteerIntegralRecordUpdateId(@RequestBody() VolunteerIntegralRecordVO volunteerIntegralRecordVO)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralRecordUpdateId(volunteerIntegralRecordVO);
+ }
+
+ /**
+ * 删除
+ * @param id
+ * @return
+ */
+ @DeleteMapping("/IntegralRecord/deleteId")
+ public R VolunteerIntegralRecordDeleteId(@RequestParam("id") String id)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralRecordDeleteId(id);
+ }
+
+ /****************************************************************************************************
+ *
+ *
+ * 路北积分商城
+ *
+ *
+ ***************************************************************************************************/
+
+ /**
+ * 获取单个详情
+ * @param id
+ * @return
+ */
+ @GetMapping("/VolunteerIntegralMerchant/queryById")
+ public R VolunteerIntegralMerchantQueryById(@RequestParam("id") String id)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralMerchantQueryById(id);
+ }
+
+ /**
+ * 分页查询
+ * @param
+ * @return
+ */
+ @GetMapping("/VolunteerIntegralMerchant/queryList")
+ public R VolunteerIntegralMerchantQueryList(@RequestParam("pageNum") int pageNum,
+ @RequestParam("pageSize") int pageSize,
+ @RequestParam(value = "name", required = false) String name,
+ @RequestParam(value = "state", required = false) String state)
+ {
+ return volunteerActivitiesPeople.VolunteerIntegralMerchantQueryList(pageNum,pageSize,name,state,"1",null);
}
--
Gitblit v1.7.1