| | |
| | | @ApiOperation(value = "编辑前获取中介信息", tags = {"后台-中介管理"},response = Medium.class) |
| | | public Medium preupdate(Integer id){ |
| | | AppUser appUser = appUserService.selectById(id); |
| | | |
| | | if (appUser.getWatchApp1()!=null){ |
| | | appUser.setWatchApp(appUser.getWatchApp1()); |
| | | } |
| | | if (appUser.getWechatQrCode1()!=null){ |
| | | appUser.setWechatQRCode(appUser.getWechatQrCode1()); |
| | | } |
| | | |
| | | |
| | | Medium host = new Medium(); |
| | | BeanUtils.copyProperties(appUser,host); |
| | | return host; |
| | |
| | | // Host host = new Host(); |
| | | AppUser appUser =new AppUser(); |
| | | BeanUtils.copyProperties(host,appUser); |
| | | |
| | | appUser.setWechatQrCode1(host.getWechatQRCode()); |
| | | appUser.setWatchApp1(host.getWatchApp()); |
| | | appUserService.updateById(appUser); |
| | | return ResultUtil.success("编辑成功"); |
| | | } |