| | |
| | | import com.yuanchu.limslaboratory.service.EnterpriseService; |
| | | import com.yuanchu.limslaboratory.service.OrganizationalService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | private EnterpriseService enterpriseService; |
| | | |
| | | @Override |
| | | public Map<String, Object> OrganizationalTree() { |
| | | public List<Map<String, Object>> OrganizationalTree() { |
| | | String firstEnterpriseName = enterpriseService.getFirstEnterpriseName(); |
| | | List<Map<String, Object>> mapList = organizationalMapper.OrganizationalTree(0); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | List<Map<String, Object>> mapData = new ArrayList<>(); |
| | | map.put("children", mapList); |
| | | map.put("id", 0); |
| | | map.put("department", firstEnterpriseName); |
| | | map.put("children", mapList); |
| | | return map; |
| | | mapData.add(map); |
| | | return mapData; |
| | | } |
| | | |
| | | @Override |