| | |
| | | TOperator byId = operatorService.getById(id); |
| | | // 运营商名称 |
| | | model.addAttribute(byId.getName()); |
| | | User byId1 = userService.getById(byId.getUserId()); |
| | | model.addAttribute("userName",byId1.getName()); |
| | | model.addAttribute("phone",byId1.getPhone()); |
| | | // 历史数据可能存在 t_operator.userId 未同步的情况,不能因此让编辑页手机号丢失。 |
| | | User byId1 = byId.getUserId() == null ? null : userService.getById(byId.getUserId()); |
| | | if (byId1 == null) { |
| | | byId1 = userService.getOne(new QueryWrapper<User>() |
| | | .eq("objectId", id).eq("objectType", 2)); |
| | | } |
| | | model.addAttribute("userName", byId1 == null ? "" : byId1.getName()); |
| | | model.addAttribute("phone", byId1 == null ? "" : byId1.getPhone()); |
| | | model.addAttribute("data",byId); |
| | | // 获取全部的省 |
| | | List<TOperatorCity> list = operatorCityService.list(new QueryWrapper<TOperatorCity>().eq("operatorId", id).eq("pid",0)); |