| | |
| | | package org.jeecg.modules.system.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | return result; |
| | | } |
| | | |
| | | @AutoLog(value = "产线表-树形列表(添加系统配置)") |
| | | @ApiOperation(value = "产线表-树形列表(添加系统配置)", notes = "产线表-树形列表(添加系统配置)") |
| | | @GetMapping(value = "/queryTreeListByConfig") |
| | | public Result<List<MdcProductionTreeModel>> queryTreeListByConfig(@RequestParam(name = "ids", required = false) String ids) { |
| | | Result<List<MdcProductionTreeModel>> result = new Result<>(); |
| | | try { |
| | | if (oConvertUtils.isNotEmpty(ids)) { |
| | | List<MdcProductionTreeModel> productionList = mdcProductionService.queryTreeList(ids); |
| | | result.setResult(productionList); |
| | | } else { |
| | | List<MdcProductionTreeModel> list = mdcProductionService.queryTreeListByConfig(); |
| | | result.setResult(list); |
| | | } |
| | | result.setSuccess(true); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @AutoLog(value = "产线表-根据用户id获取产线下拉树选项") |
| | | @ApiOperation(value = "产线表-根据用户id获取产线下拉树选项", notes = "产线表-根据用户id获取产线下拉树选项") |
| | | @GetMapping(value = "/loadProductionTreeOptions") |