当前位置:网站首页>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);
}
}
边栏推荐
- 简易密码锁
- JMeter linked database
- 【LeetCode】Day93-两个数组的交集 II
- opencv
- Use @data in Lombok to simplify entity class code
- Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
- The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
- Page text acquisition
- Install VM tools
- Asynchronous programming: async/await in asp Net
猜你喜欢
Yolov2 learning and summary
Selenium - by changing the window size, the width, height and length of different models will be different
Personally design a highly concurrent seckill system
10000小時定律不會讓你成為編程大師,但至少是個好的起點
Chapter 8. MapReduce production experience
每日刷題記錄 (十一)
Dbnet: real time scene text detection with differentiable binarization
Application scenarios of Catalan number
HMS core helps baby bus show high-quality children's digital content to global developers
The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
随机推荐
Understand software testing
Page text acquisition
2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)
Scroll view specifies the starting position of the scrolling element
How to migrate or replicate VMware virtual machine systems
Code management tools
Judge whether the date time exceeds 31 days
Software testing assignment - day 3
Yolov1 learning notes
These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
数值法求解最优控制问题(一)——梯度法
简易密码锁
La loi des 10 000 heures ne fait pas de vous un maître de programmation, mais au moins un bon point de départ
第8章、MapReduce 生产经验
Personally design a highly concurrent seckill system
Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
Journal quotidien des questions (11)
Application scenarios of Catalan number