diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/payables/plugin/PayablesPluginInitializer.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/payables/plugin/PayablesPluginInitializer.java
new file mode 100644
index 00000000..b5e3a731
--- /dev/null
+++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/payables/plugin/PayablesPluginInitializer.java
@@ -0,0 +1,56 @@
+package com.hzya.frame.plugin.payables.plugin;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.base.PluginBaseEntity;
+import com.hzya.frame.sysnew.payables.service.IPayablesService;
+import com.hzya.frame.web.entity.JsonResultEntity;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+public class PayablesPluginInitializer extends PluginBaseEntity {
+ Logger logger = LoggerFactory.getLogger(PayablesPluginInitializer.class);
+ @Autowired
+ private IPayablesService payablesService;
+
+ @Override
+ public void initialize() {
+ logger.info(getPluginLabel() + "執行初始化方法initialize()");
+ }
+
+ @Override
+ public void destroy() {
+ logger.info(getPluginLabel() + "執行銷毀方法destroy()");
+ }
+
+ @Override
+ public String getPluginId() {
+ return "PayablesPluginInitializer";
+ }
+
+ @Override
+ public String getPluginName() {
+ return "应付单抽取";
+ }
+
+ @Override
+ public String getPluginLabel() {
+ return "PayablesPluginInitializer";
+ }
+
+ @Override
+ public String getPluginType() {
+ return "1";
+ }
+ @Override
+ public JsonResultEntity executeBusiness(JSONObject requestJson) {
+ try {
+ logger.info("======开始执行应付单同步========");
+ return payablesService.queryPayables(requestJson);
+ }catch (Exception e){
+ logger.info("======执行应付单失败:{}========",e.getMessage());
+ e.printStackTrace();
+ }
+ return null;
+ }
+}
diff --git a/base-buildpackage/src/main/resources/cfgHome/plugin/payables/pluginCfg.xml b/base-buildpackage/src/main/resources/cfgHome/plugin/payables/pluginCfg.xml
new file mode 100644
index 00000000..6e0b8e2b
--- /dev/null
+++ b/base-buildpackage/src/main/resources/cfgHome/plugin/payables/pluginCfg.xml
@@ -0,0 +1,6 @@
+
+
+PayablesPluginInitializer
+PayablesPluginInitializer插件
+90000009
+
diff --git a/base-buildpackage/src/main/resources/cfgHome/plugin/payables/spring/spring-buildpackage-plugin.xml b/base-buildpackage/src/main/resources/cfgHome/plugin/payables/spring/spring-buildpackage-plugin.xml
new file mode 100644
index 00000000..c340ce90
--- /dev/null
+++ b/base-buildpackage/src/main/resources/cfgHome/plugin/payables/spring/spring-buildpackage-plugin.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/IPayablesDao.java b/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/IPayablesDao.java
new file mode 100644
index 00000000..5e7fa7f1
--- /dev/null
+++ b/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/IPayablesDao.java
@@ -0,0 +1,21 @@
+package com.hzya.frame.sysnew.payables.dao;
+
+import com.hzya.frame.basedao.dao.IBaseDao;
+import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
+import com.hzya.frame.sysnew.payables.entity.PayablesEntity;
+
+import java.util.HashMap;
+import java.util.List;
+
+public interface IPayablesDao extends IBaseDao {
+ /**
+ *
+ * @content 查询三维应付单数据
+ * @Param
+ * @Return
+ * @Author hecan
+ * @Date 2024-11-28 14:50
+ * **/
+ List> queryListByPayables(String str , MdmModuleSourceEntity entity);
+
+}
diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/impl/PayablesDaoImpl.java b/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/impl/PayablesDaoImpl.java
new file mode 100644
index 00000000..108298c9
--- /dev/null
+++ b/base-service/src/main/java/com/hzya/frame/sysnew/payables/dao/impl/PayablesDaoImpl.java
@@ -0,0 +1,35 @@
+package com.hzya.frame.sysnew.payables.dao.impl;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.hzya.frame.basedao.dao.MybatisGenericDao;
+import com.hzya.frame.execsql.service.IExecSqlService;
+import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
+import com.hzya.frame.sysnew.payables.dao.IPayablesDao;
+import com.hzya.frame.sysnew.payables.entity.PayablesEntity;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Repository;
+
+import java.util.HashMap;
+import java.util.List;
+
+@Repository(value = "PayablesDaoImpl")
+public class PayablesDaoImpl extends MybatisGenericDao implements IPayablesDao {
+ @Autowired
+ private IExecSqlService execSqlService;
+
+ private Logger logger = LogManager.getLogger(super.getClass());
+
+ @DS("#entity.dataSourceCode")
+ @Override
+ public List> queryListByPayables(String str, MdmModuleSourceEntity entity) {
+ try {
+ List> hashMaps = execSqlService.execSelectSql(str, "");
+ return hashMaps;
+ }catch (Exception e){
+ logger.info("三维应付单中没有需要同步中台的数据");
+ return null;
+ }
+ }
+}
diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/payables/entity/PayablesEntity.java b/base-service/src/main/java/com/hzya/frame/sysnew/payables/entity/PayablesEntity.java
new file mode 100644
index 00000000..391c8fdc
--- /dev/null
+++ b/base-service/src/main/java/com/hzya/frame/sysnew/payables/entity/PayablesEntity.java
@@ -0,0 +1,6 @@
+package com.hzya.frame.sysnew.payables.entity;
+
+import com.hzya.frame.web.entity.BaseEntity;
+
+public class PayablesEntity extends BaseEntity {
+}
diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/IPayablesService.java b/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/IPayablesService.java
new file mode 100644
index 00000000..95ccbecd
--- /dev/null
+++ b/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/IPayablesService.java
@@ -0,0 +1,18 @@
+package com.hzya.frame.sysnew.payables.service;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.basedao.service.IBaseService;
+import com.hzya.frame.sysnew.payables.entity.PayablesEntity;
+import com.hzya.frame.web.entity.JsonResultEntity;
+
+public interface IPayablesService extends IBaseService {
+ /**
+ *
+ * @content 查询需要抽取得数据
+ * @Param
+ * @Return
+ * @Author hecan
+ * @Date 2024-11-28 14:54
+ * **/
+ JsonResultEntity queryPayables(JSONObject json);
+}
diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/impl/PayablesServiceImpl.java b/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/impl/PayablesServiceImpl.java
new file mode 100644
index 00000000..310a1d0d
--- /dev/null
+++ b/base-service/src/main/java/com/hzya/frame/sysnew/payables/service/impl/PayablesServiceImpl.java
@@ -0,0 +1,221 @@
+package com.hzya.frame.sysnew.payables.service.impl;
+
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.util.StrUtil;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.basedao.service.impl.BaseService;
+import com.hzya.frame.mdm.mdmModuleSource.dao.impl.MdmModuleSourceDaoImpl;
+import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
+import com.hzya.frame.sysnew.comparison.service.impl.ComparisonServiceImpl;
+import com.hzya.frame.sysnew.comparison.serviceData.entity.ServiceDataEntity;
+import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
+import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
+import com.hzya.frame.sysnew.payables.dao.impl.PayablesDaoImpl;
+import com.hzya.frame.sysnew.payables.entity.PayablesEntity;
+import com.hzya.frame.sysnew.payables.service.IPayablesService;
+import com.hzya.frame.uuid.UUIDUtils;
+import com.hzya.frame.web.entity.BaseResult;
+import com.hzya.frame.web.entity.JsonResultEntity;
+import lombok.Value;
+import org.apache.commons.collections.CollectionUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+
+@Service(value = "PayablesServiceImpl")
+public class PayablesServiceImpl extends BaseService implements IPayablesService {
+
+
+ @Autowired
+ private MdmModuleSourceDaoImpl mdmModuleSourceDaoImpl;
+
+ @Autowired
+ private PayablesDaoImpl payablesDao;
+ @Autowired
+ private IIntegrationTaskLivingDetailsService taskLivingDetailsService;
+ @Autowired
+ private ComparisonServiceImpl comparisonServiceimpl;
+
+
+ @Override
+ public JsonResultEntity queryPayables(JSONObject json) {
+ JSONObject jsonObject = json.getJSONObject("jsonStr");
+ //根据插件分类查询主数据来源表
+ List list = mdmModuleSourceDaoImpl.MdmModuleSourceentityGroupByType();
+ if (CollectionUtils.isEmpty(list)) {
+ logger.info("没有类型为插件得数据,无法获取数据");
+ return BaseResult.getFailureMessageEntity("数据来源表无插件类型");
+ }
+ for (MdmModuleSourceEntity mdmModuleSourceEntity : list) {
+ String startTime = DateUtil.format(json.getDate("startTime"),"yyyy-MM-dd HH:mm:ss");//定时任务执行时传入的开始时间
+ String endTime = DateUtil.format(json.getDate("endTime"),"yyyy-MM-dd HH:mm:ss");//定时任务执行时传入的结束时间
+ String tableName = "";
+ List