| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addMerchant(ConvenientMerchantDTO convenientMerchantDTO) { |
| | | log.error("catTimeStamp开始执行addMerchant", Instant.now().toEpochMilli()); |
| | | log.error("catTimeStamp开始执行addMerchant" + convenientMerchantDTO.getAccount() + Instant.now().toEpochMilli()); |
| | | ComActDO comActDO = comActDAO.selectById(convenientMerchantDTO.getCommunityId()); |
| | | ConvenientMerchantDO convenientMerchantDO = new ConvenientMerchantDO(); |
| | | BeanUtils.copyProperties(convenientMerchantDTO, convenientMerchantDO); |
| | |
| | | }); |
| | | } |
| | | } |
| | | log.error("catTimeStamp商家创建完成开始添加用户", Instant.now().toEpochMilli()); |
| | | log.error("catTimeStamp商家创建完成开始添加用户" + convenientMerchantDTO.getAccount() + Instant.now().toEpochMilli()); |
| | | //添加user |
| | | R addUserResult = userService.addConvenientMerchantUser(convenientMerchantDTO); |
| | | if (R.isOk(addUserResult)) { |
| | |
| | | } else { |
| | | throw new ServiceException("406", addUserResult.getMsg()); |
| | | } |
| | | log.error("catTimeStamp全部完成", Instant.now().toEpochMilli()); |
| | | log.error("catTimeStamp全部完成" + convenientMerchantDTO.getAccount() + Instant.now().toEpochMilli()); |
| | | return R.ok(); |
| | | } |
| | | |