| | |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.constant.FillRuleConstant; |
| | | import org.jeecg.common.util.FillRuleUtil; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.base.entity.Factory; |
| | | import org.jeecg.modules.base.entity.UserFactory; |
| | |
| | | import org.jeecg.modules.base.model.FactoryTreeModel; |
| | | import org.jeecg.modules.base.service.IFactoryService; |
| | | import org.jeecg.modules.system.mapper.SysUserMapper; |
| | | import org.jeecg.modules.system.util.FindsProductionsChildrenUtil; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.jeecg.modules.system.util.FindsFactorysChildrenUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | query.orderByAsc(Factory::getSorter); |
| | | List<Factory> list = this.list(query); |
| | | //调用wrapTreeDataToTreeList方法生成树状数据 |
| | | return FindsProductionsChildrenUtil.wrapTreeDataToTreeList(list); |
| | | return FindsFactorysChildrenUtil.wrapTreeDataToTreeList(list); |
| | | } |
| | | |
| | | /** |
| | |
| | | query.orderByAsc(Factory::getSorter); |
| | | List<Factory> list = this.list(query); |
| | | //调用wrapTreeDataToTreeList方法生成树状数据 |
| | | return FindsProductionsChildrenUtil.wrapTreeDataToProductionIdTreeList(list); |
| | | return FindsFactorysChildrenUtil.wrapTreeDataToProductionIdTreeList(list); |
| | | } |
| | | |
| | | /** |