部门报销单接口封装,OA调用插件方法编写
This commit is contained in:
parent
6357fca52d
commit
66946c60a9
|
@ -2,9 +2,7 @@ package com.hzya.frame.plugin.grp.plugin;
|
|||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.grpU8.hbg.service.IHbgXmmlService;
|
||||
import com.hzya.frame.plugin.grp.service.IBudgetPluginService;
|
||||
import com.hzya.frame.plugin.grp.service.IExpensePluginService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -14,7 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
* 预算同步插件
|
||||
* @content:
|
||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @date 2025-08-19 15:41
|
||||
* @date 2025-08-19 15:41
|
||||
* @param
|
||||
* @return
|
||||
**/
|
||||
|
@ -24,6 +22,7 @@ public class BudgetPluginInitializer extends PluginBaseEntity {
|
|||
|
||||
@Autowired
|
||||
private IBudgetPluginService budgetPluginService;
|
||||
|
||||
/***
|
||||
* 插件初始化方法
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
|
@ -102,10 +101,10 @@ public class BudgetPluginInitializer extends PluginBaseEntity {
|
|||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
try {
|
||||
logger.info("======开始执行GRP预算同步插件======:{}",requestJson.toString());
|
||||
logger.info("======开始执行GRP预算同步插件======:{}", requestJson.toString());
|
||||
budgetPluginService.execute(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.error("执行GRP预算同步出错:{}",e);
|
||||
} catch (Exception e) {
|
||||
logger.error("执行GRP预算同步出错:{}", e);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue