当前位置:网站首页>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);
}
}
边栏推荐
猜你喜欢

Asynchronous programming: async/await in asp Net

scroll-view指定滚动元素的起始位置

YOLOV3学习笔记

每日刷题记录 (十一)

These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
![[5g NR] UE registration process](/img/e3/f881d51fba03010de8c45ea480f3f0.png)
[5g NR] UE registration process

机器学习 | 简单但是能提升模型效果的特征标准化方法(RobustScaler、MinMaxScaler、StandardScaler 比较和解析)

(翻译)异步编程:Async/Await在ASP.NET中的介绍

Read blog type data from mysql, Chinese garbled code - solved

IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
随机推荐
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
YOLOV1学习笔记
【无标题】8 简易版通讯录
Chapter 8. MapReduce production experience
YOLOV2学习与总结
[LeetCode]404. Sum of left leaves
Abstract learning
这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意
Realize PDF to picture conversion with C #
简易密码锁
YOLOV3学习笔记
Page text acquisition
Create your own deep learning environment with CONDA
【无标题】
2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)
Scripy learning
vmware虚拟机C盘扩容
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
How to migrate or replicate VMware virtual machine systems
Unit test framework + Test Suite