部门报销单接口封装,OA调用插件方法编写

This commit is contained in:
476474485@qq.com 2025-08-19 17:05:52 +08:00
parent 6357fca52d
commit 66946c60a9
1 changed files with 5 additions and 6 deletions

View File

@ -2,9 +2,7 @@ package com.hzya.frame.plugin.grp.plugin;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity; 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.IBudgetPluginService;
import com.hzya.frame.plugin.grp.service.IExpensePluginService;
import com.hzya.frame.web.entity.JsonResultEntity; import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -14,7 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* 预算同步插件 * 预算同步插件
* @content: * @content:
* @author 👻👻👻👻👻👻👻👻 gjh * @author 👻👻👻👻👻👻👻👻 gjh
* @date 2025-08-19 15:41 * @date 2025-08-19 15:41
* @param * @param
* @return * @return
**/ **/
@ -24,6 +22,7 @@ public class BudgetPluginInitializer extends PluginBaseEntity {
@Autowired @Autowired
private IBudgetPluginService budgetPluginService; private IBudgetPluginService budgetPluginService;
/*** /***
* 插件初始化方法 * 插件初始化方法
* @Author 👻👻👻👻👻👻👻👻 gjh * @Author 👻👻👻👻👻👻👻👻 gjh
@ -102,10 +101,10 @@ public class BudgetPluginInitializer extends PluginBaseEntity {
@Override @Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception { public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
try { try {
logger.info("======开始执行GRP预算同步插件======:{}",requestJson.toString()); logger.info("======开始执行GRP预算同步插件======:{}", requestJson.toString());
budgetPluginService.execute(requestJson); budgetPluginService.execute(requestJson);
}catch (Exception e){ } catch (Exception e) {
logger.error("执行GRP预算同步出错:{}",e); logger.error("执行GRP预算同步出错:{}", e);
} }
return null; return null;