当前位置:网站首页>Tool class static method calls @autowired injected service
Tool class static method calls @autowired injected service
2022-07-03 06:48:00 【Numerous and falling】
@Component
public class OrgDeptLeaderFunctionUtil {
@Autowired
private ISysOrgElementComponentApi orgElementComponentApi;
private static OrgDeptLeaderFunctionUtil orgDeptLeaderFunctionUtil;
public void setISysOrgElementComponentApi(ISysOrgElementComponentApi orgElementComponentApi){
this.orgElementComponentApi = orgElementComponentApi;
}
@PostConstruct
public void init() {
orgDeptLeaderFunctionUtil = this;
orgDeptLeaderFunctionUtil.orgElementComponentApi = this.orgElementComponentApi;
}
public static IdNameProperty getDeptLeader(List<String> ids, String level) {
SysOrgQueryVO queryVO = new SysOrgQueryVO();
queryVO.setIds(ids);
queryVO.setFiledCode("departmentLevel");
queryVO.setFiledValue(level);
return orgDeptLeaderFunctionUtil.orgElementComponentApi.queryDeptLeader(queryVO);
}
}
边栏推荐
- Hands on redis master-slave replication, sentinel master-slave switching, cluster sharding
- 【code】if (list != null && list.size() > 0)优化,集合判空实现方式
- Heap sort and priority queue
- Condition annotation in uni-app realizes cross segment compatibility, navigation jump and parameter transfer, component creation and use, and life cycle function
- Ruoyi interface permission verification
- pytorch练习小项目
- HMS core helps baby bus show high-quality children's digital content to global developers
- UNI-APP中条件注释 实现跨段兼容、导航跳转 和 传参、组件创建使用和生命周期函数
- YOLOV2学习与总结
- 简易密码锁
猜你喜欢

Use selenium to climb the annual box office of Yien

Pytest -- write and manage test cases

数值法求解最优控制问题(一)——梯度法
![[open source project recommendation colugomum] this group of undergraduates open source retail industry solutions based on the domestic deep learning framework paddlepadddle](/img/f8/0e3fbfd13bf06291a73200552ff17a.png)
[open source project recommendation colugomum] this group of undergraduates open source retail industry solutions based on the domestic deep learning framework paddlepadddle

SSH link remote server and local display of remote graphical interface

Yolov2 learning and summary

Scripy learning

第8章、MapReduce 生产经验

10000小时定律不会让你成为编程大师,但至少是个好的起点

Yolov3 learning notes
随机推荐
每日刷題記錄 (十一)
保险公司怎么查高血压?
学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
简易密码锁
The mechanical hard disk is connected to the computer through USB and cannot be displayed
Pytest -- write and manage test cases
Abstract learning
[Code] occasionally take values, judge blanks, look up tables, verify, etc
[leetcode] day93 - intersection of two arrays II
Use selenium to climb the annual box office of Yien
ROS+Pytorch的联合使用示例(语义分割)
Important knowledge points of redis
These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
Summary of the design and implementation of the weapon system similar to the paladin of vitality
POI dealing with Excel learning
How does the insurance company check hypertension?
MATLAB如何修改默认设置
Various usages of MySQL backup database to create table select and how many days are left
Cannot get value with @value, null
Docker advanced learning (container data volume, MySQL installation, dockerfile)