| | |
| | | try { |
| | | User party = userService.findUserByUserCode(usercode); |
| | | if (null == party) { |
| | | throw new YamiShopBindException("用户不存在"); |
| | | throw new YamiShopBindException("User does not exist"); |
| | | } |
| | | |
| | | // todo代理上逻辑 |
| | |
| | | |
| | | } catch (Exception e) { |
| | | log.error("保存场控失败", e); |
| | | throw new YamiShopBindException("保存场控失败:"+ e.getMessage()); |
| | | throw new YamiShopBindException("Failed to save market control: " + e.getMessage()); |
| | | } |
| | | return Result.ok("操作成功"); |
| | | } |
| | |
| | | ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getProfitLossConfigService().getById(update.getUuid()); |
| | | User party = userService.getById(profitAndLossConfig.getPartyId()); |
| | | if (null == party) { |
| | | throw new YamiShopBindException("用户不存在"); |
| | | throw new YamiShopBindException("User does not exist"); |
| | | } |
| | | String opName = SecurityUtils.getSysUser().getUsername(); |
| | | // todo 代理商数据权限验证 |
| | |
| | | ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getProfitLossConfigService().getById(uuid); |
| | | User party = userService.getById(profitAndLossConfig.getPartyId()); |
| | | if (null == party) { |
| | | throw new YamiShopBindException("用户不存在"); |
| | | throw new YamiShopBindException("User does not exist"); |
| | | } |
| | | String opName = SecurityUtils.getSysUser().getUsername(); |
| | | // todo 代理商数据权限验证 |