| | |
| | | import com.panzhihua.common.model.vos.community.VolunteerCreditsExchangeVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantEvaluateVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantWithdrawVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | |
| | | @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.getOrderId())) |
| | | { |
| | | 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); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /*************************************************************************************************************** |
| | | * |
| | | * 路北社区商家提现 |
| | | * |
| | | ****************************************************************************************************************/ |
| | | |
| | | /** |
| | | * 新增商家提现 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @PostMapping("/withdraw/insert") |
| | | public R WithdrawInsert(@RequestBody VolunteerMerchantWithdrawVO item) |
| | | { |
| | | return communityService.WithdrawInsert(item); |
| | | } |
| | | |
| | | |
| | | |
| | | } |