From 445a7ec2340636e64b6897ae4d4124df8bbf7b7b Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期三, 30 八月 2023 16:36:23 +0800 Subject: [PATCH] 修改小程序商家商品新增 花城社区查询没结果 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/VolunteerActivitiesPeopleApi.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 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 1b9f686..3d6775d 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 @@ -294,6 +294,11 @@ @PostMapping("/VolunteerIntegralMerchant/insertVolunteer") public R VolunteerIntegralMerchantInsertVolunteer(@RequestBody VolunteerIntegralMerchantVO vimVO) { + if(StringUtils.isEmpty(vimVO.getMerchantId())) + { + return R.fail("商家id不能为空"); + } + vimVO.setGoodType("1"); return volunteerActivitiesPeople.VolunteerIntegralMerchantInsertVolunteer(vimVO); } @@ -301,6 +306,11 @@ @PostMapping("/VolunteerIntegralMerchant/updateById") public R VolunteerIntegralMerchantUpdateById(@RequestBody VolunteerIntegralMerchantVO vimVO) { + if(StringUtils.isEmpty(vimVO.getMerchantId())) + { + return R.fail("商家id不能为空"); + } + vimVO.setGoodType("1"); return volunteerActivitiesPeople.VolunteerIntegralMerchantUpdateById(vimVO); } -- Gitblit v1.7.1