diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/plugin/SalesBillingPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/plugin/SalesBillingPluginInitializer.java new file mode 100644 index 00000000..5aba75cb --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/plugin/SalesBillingPluginInitializer.java @@ -0,0 +1,98 @@ +package com.hzya.frame.plugin.u8c.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.plugin.u8c.service.ISalesBillingService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + + +public class SalesBillingPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(SalesBillingPluginInitializer.class); + + @Autowired + private ISalesBillingService salesBillingService; + + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + + } + + /**** + * 插件销毁方法 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + /**** + * 插件的ID + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginId() { + return "SalesBillingPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "u8c销售开票审核状态同步插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "u8c销售开票审核状态同步插件"; + } + + /*** + * 插件类型 1、场景插件 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 14:01 + * @Param [] + * @return java.lang.String + **/ + @Override + public String getPluginType() { + return "1"; + } + + /*** + * 执行业务代码 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-07 11:20 + * @param requestJson 执行业务代码的参数 + * @return void + **/ + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception { + JsonResultEntity jsonResultEntity = salesBillingService.doSalesBilling(requestJson); + return jsonResultEntity; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/ISalesBillingService.java b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/ISalesBillingService.java new file mode 100644 index 00000000..ee491c26 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/ISalesBillingService.java @@ -0,0 +1,17 @@ +package com.hzya.frame.plugin.u8c.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface ISalesBillingService { + + + /** + * @Author lvleigang + * @Description 同步销售开票审核状态 + * @Date 10:21 上午 2024/8/2 + * @param requestJson + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity doSalesBilling(JSONObject requestJson); +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/impl/SalesBillingServiceImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/impl/SalesBillingServiceImpl.java new file mode 100644 index 00000000..d33ea735 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/u8c/service/impl/SalesBillingServiceImpl.java @@ -0,0 +1,31 @@ +package com.hzya.frame.plugin.u8c.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.plugin.u8c.service.ISalesBillingService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; + + +public class SalesBillingServiceImpl implements ISalesBillingService { + + Logger logger = LoggerFactory.getLogger(SalesBillingServiceImpl.class); + + @Value("${OA.data_source_code}") + private String oa_data_source_code; + + /** + * @param requestJson + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 同步销售开票审核状态 + * @Date 10:21 上午 2024/8/2 + **/ + @Override + public JsonResultEntity doSalesBilling(JSONObject requestJson) { + + + return null; + } +} diff --git a/buildpackage/src/main/resources/cfgHome/plugin/u8c/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/u8c/pluginCfg.xml new file mode 100644 index 00000000..c6c0d8e4 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/u8c/pluginCfg.xml @@ -0,0 +1,6 @@ + + +SalesBilling +u8c插件 +202408020001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..593229f6 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-service.xml b/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-service.xml new file mode 100644 index 00000000..c011db17 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/u8c/spring/spring-buildpackage-service.xml @@ -0,0 +1,5 @@ + + + + +