当前位置:网站首页>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);
}
}
边栏推荐
- Class and object summary
- Selenium - by changing the window size, the width, height and length of different models will be different
- Learning notes -- principles and comparison of k-d tree and IKD tree
- 2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
- 2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)
- Pytorch exercise items
- [Code] occasionally take values, judge blanks, look up tables, verify, etc
- Software testing assignment - day 1
- YOLOV1学习笔记
- The win7 computer can't start. Turn the CPU fan and stop it
猜你喜欢

Reinstalling the system displays "setup is applying system settings" stationary

2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)

每日刷题记录 (十一)

2022年华东师范大学计科考研复试机试题-详细题解

Create your own deep learning environment with CONDA

Local rviz call and display of remote rostopic

IE browser flash back, automatically open edge browser

Personally design a highly concurrent seckill system

Journal quotidien des questions (11)

JMeter linked database
随机推荐
堆排序和优先队列
Journal quotidien des questions (11)
Condition annotation in uni-app realizes cross segment compatibility, navigation jump and parameter transfer, component creation and use, and life cycle function
2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)
“我为开源打榜狂”第一周榜单公布,160位开发者上榜
Floating menu operation
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
Pytorch exercise items
Software testing assignment - day 1
opencv
IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
scroll-view指定滚动元素的起始位置
远端rostopic的本地rviz调用及显示
Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
The dynamic analysis and calculation of expressions are really delicious for flee
【LeetCode】Day93-两个数组的交集 II
Opencv mouse and keyboard events
Page text acquisition
How to scan when Canon c3120l is a network shared printer
Daily question brushing record (11)