| | |
| | | changePasswordVO.setUserId(user.getUserId()); |
| | | changePasswordVO.setNewPassword(storeVO.getStorePassword()); |
| | | R r = userService.changePassword(changePasswordVO); |
| | | if (R.isOk(r)) { |
| | | if (R.isOk(r)||r.getMsg().equals("新密码与原密码不能相同")){ |
| | | return communityService.editStore(storeVO, id); |
| | | } |
| | | return R.fail(); |
| | |
| | | * @param id 商铺Id |
| | | * @return |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @PostMapping("editShopGoods/{id}") |
| | | public R editShopGoods(@PathVariable("id") Long id,@RequestBody AddShopGoodsVO addShopGoodsVO) { |
| | | return comShopGoodsService.editShopGoods(id, addShopGoodsVO); |