| | |
| | | import org.jeecg.modules.eam.mapper.WorkShopDepartMapper; |
| | | import org.jeecg.modules.eam.mapper.WorkShopDepartUserMapper; |
| | | import org.jeecg.modules.eam.model.EamWorkShopDepartTreeModel; |
| | | import org.jeecg.modules.eam.model.WorkShopIdModel; |
| | | import org.jeecg.modules.eam.service.IWorkShopDepartService; |
| | | import org.jeecg.modules.eam.util.FindsWorkShopDepartsChildrenUtil; |
| | | import org.jeecg.modules.system.entity.MdcUserProduction; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.mapper.SysUserMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Cacheable(value = "eam:cache:workshop:allids") |
| | | public List<WorkShopIdModel> queryProductionIdTreeList() { |
| | | LambdaQueryWrapper<WorkShopDepart> query = new LambdaQueryWrapper<>(); |
| | | query.eq(WorkShopDepart::getDelFlag, CommonConstant.DEL_FLAG_0.toString()); |
| | | query.orderByAsc(WorkShopDepart::getWorkShopOrder); |
| | | List<WorkShopDepart> list = this.list(query); |
| | | //调用wrapTreeDataToTreeList方法生成树状数据 |
| | | return FindsWorkShopDepartsChildrenUtil.wrapTreeDataToProductionIdTreeList(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * updateProductionDataById 对应 edit 根据设备车间管理主键来更新对应的设备车间管理数据 |
| | | */ |