| | |
| | | import org.jeecg.common.util.*; |
| | | import org.jeecg.modules.base.service.BaseCommonService; |
| | | import org.jeecg.modules.system.entity.*; |
| | | import org.jeecg.modules.system.model.DepartIdModel; |
| | | import org.jeecg.modules.system.model.ProductionIdModel; |
| | | import org.jeecg.modules.system.model.RepairDepartIdModel; |
| | | import org.jeecg.modules.system.model.SysUserSysDepartModel; |
| | | import org.jeecg.modules.system.model.*; |
| | | import org.jeecg.modules.system.service.*; |
| | | import org.jeecg.modules.system.vo.SysDepartUsersVO; |
| | | import org.jeecg.modules.system.vo.SysUserRoleVO; |
| | |
| | | |
| | | @Resource |
| | | private IEamBaseRepairDepartUserService eamBaseRepairDepartUserService; |
| | | |
| | | @Resource |
| | | private IBaseFactoryUserService iBaseFactoryUserService; |
| | | |
| | | /** |
| | | * 获取用户列表数据 |
| | |
| | | } |
| | | } |
| | | |
| | | @AutoLog(value = "用户表-查询指定用户和EAM中心关联的数据") |
| | | @ApiOperation(value = "用户表-查询指定用户和EAM中心关联的数据", notes = "用户表-查询指定用户和EAM中心关联的数据") |
| | | @GetMapping(value = "/userBaseFactoryList") |
| | | public Result<List<EamBaseFactoryIdModel>> userBaseFactoryList(@RequestParam(name = "userId", required = true) String userId) { |
| | | Result<List<EamBaseFactoryIdModel>> result = new Result<>(); |
| | | try { |
| | | List<EamBaseFactoryIdModel> repDepIdModelList = this.iBaseFactoryUserService.queryEamBaseFactoryIdsOfUser(userId); |
| | | if (repDepIdModelList != null && !repDepIdModelList.isEmpty()) { |
| | | result.setSuccess(true); |
| | | result.setMessage("查找成功"); |
| | | result.setResult(repDepIdModelList); |
| | | } else { |
| | | result.setSuccess(false); |
| | | result.setMessage("查找失败"); |
| | | } |
| | | return result; |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | result.setSuccess(false); |
| | | result.setMessage("查找过程中出现了异常: " + e.getMessage()); |
| | | return result; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 生成在添加用户情况下没有主键的问题,返回给前端,根据该id绑定部门数据 |
| | | * |