| | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.VolunteerCreditsExchangeVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | |
| | | |
| | | |
| | | /** |
| | | * 更新商家 |
| | | * 更新商家订单 |
| | | * @param item |
| | | * @return |
| | | */ |
| | |
| | | return communityService.volunteerTypeGetList(pageNum,pageSize,"2"); |
| | | } |
| | | |
| | | /** |
| | | * 修改商家 |
| | | * @param vtvo |
| | | * @return |
| | | */ |
| | | @PostMapping("/VolunteerMerchant/update") |
| | | public R updateVolunteerMerchant(@RequestBody VolunteerMerchantVO vtvo) |
| | | { |
| | | return communityService.updateVolunteerMerchant(vtvo); |
| | | } |
| | | |
| | | /** |
| | | * 获取商家详情 |
| | |
| | | return R.fail("密码不能为空"); |
| | | } |
| | | LoginUserInfoVO loginUserInfoVO=userService.getUserInfoByUserId(userId).getData(); |
| | | if(StringUtils.isEmpty(loginUserInfoVO.getPlayPwd())) |
| | | { |
| | | return R.fail(304,"您还未设置密码!"); |
| | | } |
| | | |
| | | |
| | | if(StringUtils.equals(pwd,loginUserInfoVO.getPlayPwd())) |
| | | { |
| | | return R.ok(); |