当前位置:网站首页>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);
}
}
边栏推荐
- Realize PDF to picture conversion with C #
- Various usages of MySQL backup database to create table select and how many days are left
- Modify MySQL password
- Example of joint use of ros+pytoch (semantic segmentation)
- Print time Hahahahahaha
- UNI-APP中条件注释 实现跨段兼容、导航跳转 和 传参、组件创建使用和生命周期函数
- C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
- The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
- Application scenarios of Catalan number
- UTC time, GMT time, CST time
猜你喜欢

Scroll view specifies the starting position of the scrolling element

【类和对象】深入浅出类和对象

Dbnet: real time scene text detection with differentiable binarization

Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
![[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

每日刷題記錄 (十一)

熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?

Time format record

golang操作redis:写入、读取kv数据

vmware虚拟机C盘扩容
随机推荐
【code】if (list != null && list.size() > 0)优化,集合判空实现方式
Error c2017: illegal escape sequence
Summary of UI module design and practical application of agent mode
Asynchronous programming: async/await in asp Net
UTC time, GMT time, CST time
Install VM tools
VMware virtual machine C disk expansion
Jenkins
Push box games C #
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
Software testing learning - day one
Important knowledge points of redis
如何迁移或复制VMware虚拟机系统
Printer related problem record
Read blog type data from mysql, Chinese garbled code - solved
golang操作redis:写入、读取hash类型数据
Time format record
The pressure of large institutions in the bear market has doubled. Will the giant whales such as gray scale, tether and micro strategy become 'giant thunder'?
【无标题】5 自用历程
Derivation of variance iteration formula