| | |
| | | @PostMapping("/evaluate/insert") |
| | | public R volunteerMerchantInsert(@RequestBody VolunteerMerchantEvaluateVO item) |
| | | { |
| | | if(item==null) |
| | | { |
| | | return R.fail("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(item.getCommunityId())) |
| | | { |
| | | item.setCommunityId(getCommunityId()+""); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(item.getMerchantId())) |
| | | { |
| | | return R.fail("商家id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(item.getUserId())) |
| | | { |
| | | return R.fail("评论人id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(item.getEvaluateGrade())) |
| | | { |
| | | return R.fail("评论分数不能为空"); |
| | | } |
| | | |
| | | return communityService.volunteerMerchantInsert(item); |
| | | } |
| | | |