diff --git a/.gitignore b/.gitignore index e5cc31db..1b1d7c41 100644 --- a/.gitignore +++ b/.gitignore @@ -52,5 +52,11 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk - +./idea/ /buildpackage/src/main/resources/banner.txt +/webapp/target/ +/service/target/ +/core/target/ +/common/target/ +/buildpackage/target/ +/webapp/target/ diff --git a/README.md b/README.md index 737686a8..1cd55052 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,42 @@ 获取单个对象 getEntity 修改 updateEntity 删除 deleteEntity -启用停用 enableDisableEntity \ No newline at end of file +启用停用 enableDisableEntity + + +Flyway + +比较文件先后顺序规则:左对齐原则,缺位用0代替 +1.0.0.1 比 1.0.0 版本高。 +1.0.10 比 1.0.9.4 版本高。 +1.0.0_1 比 1.0.0 版本高。 +1_0_0_1 比 1_0_0 版本高。 +1.0.10 和 1.0.010 版本号一样高,这是因为每个版本号部分的前导 0 会被忽略。 + +Flyway 将 SQL 文件分为 Versioned 、Repeatable 和 Undo 三种: +Versioned 用于版本升级,每个版本有唯一的版本号并只能执行一次。 +Repeatable 可重复执行,当 Flyway 检测到 Repeatable 类型的 SQL 脚本的 checksum 有变动,Flyway 就会重新执行该脚本,它并不用于版本更新,这类的 migration 总是在 Versioned 执行之后才被执行。 +Undo 用于撤销具有相同版本的版本化迁移带来的影响。但是该回滚过于粗暴,过于机械化,一般不推荐使用。一般建议使用 Versioned 模式来解决。 + +Prefix 可配置,前缀标识,默认值 V 表示 Versioned, R 表示 Repeatable, U 表示 Undo。 +Version 标识版本号, 由一个或多个数字构成,数字之间的分隔符可用点 . 或下划线 _。 +Separator 可配置,用于分隔版本标识与描述信息,默认为两个下划线 __。 +Description 描述信息,文字之间可以用下划线 _ 或空格 分隔。 +Suffix 可配置,后续标识,默认为 .sql。 + +例如: +V3.0.1__initialize.sql 只执行一次 +V3.0.2__test_insert.sql 这个文件会在V3.0.1__initialize.sql之后执行,且只执行一次 +R__TRUNCATE_bd_app.sql 这个文件会执行多次,但是会校验是否checksum,一般不使用用:注意因为多次执行所以不能有版本号 +**校验checksum,简单来说就是文件的行数据发生改变时候会执行,如果内容不变也是不会去执行的** + +表flyway_schema_history会记录sql执行的情况 +本项目需要的sql统一放置到resources/flyway下 + +# 系统初始化 + +| 名称 | 备注 | +|------|------| +| V3.0.1__sys_init_table.sql | 系统初始化建表语句 | +| 李四 | 32 | +| 王五 | 24 | diff --git a/buildpackage/pom.xml b/buildpackage/pom.xml index 666c0306..fea721b7 100644 --- a/buildpackage/pom.xml +++ b/buildpackage/pom.xml @@ -69,6 +69,36 @@ llg + + zqtlocal + + zqtlocal + + + + yuqh + + yuqh + + + + xel + + xel + + + + ydc + + ydc + + + + yc + + yc + + kangarooDataCenterV3 diff --git a/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java b/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java index 16161648..576e4ce4 100644 --- a/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java +++ b/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java @@ -5,6 +5,7 @@ import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.druid.DruidDyna import com.hzya.frame.DataSource.impl.DynamicDataSourceAssistConfiguration; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; import org.springframework.boot.web.servlet.ServletComponentScan; @@ -13,12 +14,11 @@ import org.springframework.context.annotation.Import; import org.springframework.context.annotation.ImportResource; @EnableCaching -@ServletComponentScan(basePackages = {"com.hzya.frame"}) +@ServletComponentScan(basePackages = {"com.hzya.frame" ,"org.jeecg.modules.jmreport","com.jimureport.demo"}) @ImportResource(locations = {"classpath:cfgHome/**/spring/spring-*.xml"}) @Import({DruidDynamicDataSourceConfiguration.class, DynamicDataSourceCreatorAutoConfiguration.class, DynamicDataSourceAssistConfiguration.class}) -@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class}) -//@SpringBootApplication(scanBasePackages = {"com.hzya.frame"}) +@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class, FlywayAutoConfiguration.class}) public class WebappApplication { public static void main(String[] args) { diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/IPayBillDao.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/IPayBillDao.java new file mode 100644 index 00000000..4c8956ed --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/IPayBillDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.a8bill.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.plugin.a8bill.entity.PayBillEntity; + +/** + * 组织档案(mdm_org: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-07 18:30:04 + */ +public interface IPayBillDao extends IBaseDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/impl/PayBillDaoImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/impl/PayBillDaoImpl.java new file mode 100644 index 00000000..f4bc0c6e --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/dao/impl/PayBillDaoImpl.java @@ -0,0 +1,16 @@ +package com.hzya.frame.plugin.a8bill.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.plugin.a8bill.dao.IPayBillDao; +import com.hzya.frame.plugin.a8bill.entity.PayBillEntity; + +/** + * 组织档案(MdmOrg)表数据库访问层 + * + * @author makejava + * @since 2024-06-07 18:30:04 + */ +public class PayBillDaoImpl extends MybatisGenericDao implements IPayBillDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.java new file mode 100644 index 00000000..ecca14fb --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.java @@ -0,0 +1,14 @@ +package com.hzya.frame.plugin.a8bill.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * 付款单 + * + * @author makejava + * @since 2024-06-07 18:30:04 + */ +public class PayBillEntity extends BaseEntity { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.xml b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.xml new file mode 100644 index 00000000..a251e1cd --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/entity/PayBillEntity.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + id + + + + + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/PayBillPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/PayBillPluginInitializer.java new file mode 100644 index 00000000..e57f8e6c --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/PayBillPluginInitializer.java @@ -0,0 +1,63 @@ +package com.hzya.frame.plugin.a8bill.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; + +import com.hzya.frame.seeyon.paybill.service.IPayBillService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * 付款单(PayBill)表服务接口 + * + * @author makejava + * @since 2024-06-07 18:30:05 + */ +public class PayBillPluginInitializer extends PluginBaseEntity{ + Logger logger = LoggerFactory.getLogger(PayBillPluginInitializer.class); + @Autowired + private IPayBillService payBillService; + + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法initialize()"); + } + + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + @Override + public String getPluginId() { + return "PayBillPlugin"; + } + + @Override + public String getPluginName() { + return "PayBillPlugin插件"; + } + + @Override + public String getPluginLabel() { + return "PayBillPlugin"; + } + + @Override + public String getPluginType() { + return "1"; + } + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) { + try { + logger.info("======开始执行付款单据信息同步========"); + return payBillService.sendEngineerPayBillToBip(requestJson); + }catch (Exception e){ + logger.info("======执行付款单据同步失败:{}========",e.getMessage()); + e.printStackTrace(); + } + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/RecBillPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/RecBillPluginInitializer.java new file mode 100644 index 00000000..f4689b83 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/plugin/RecBillPluginInitializer.java @@ -0,0 +1,63 @@ +package com.hzya.frame.plugin.a8bill.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.seeyon.paybill.service.IPayBillService; +import com.hzya.frame.seeyon.recbill.service.IRecBillService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * 收款单(RecBill)表服务接口 + * + * @author makejava + * @since 2024-06-07 18:30:05 + */ +public class RecBillPluginInitializer extends PluginBaseEntity{ + Logger logger = LoggerFactory.getLogger(RecBillPluginInitializer.class); + @Autowired + private IRecBillService recBillService; + + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法initialize()"); + } + + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + @Override + public String getPluginId() { + return "RecBillPluginInitializer"; + } + + @Override + public String getPluginName() { + return "RecBillPluginInitializer插件"; + } + + @Override + public String getPluginLabel() { + return "RecBillPluginInitializer"; + } + + @Override + public String getPluginType() { + return "1"; + } + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) { + try { + logger.info("======开始执行收款单据信息同步========"); + return recBillService.sendRecBillToBip(requestJson); + }catch (Exception e){ + logger.info("======执行收款单据同步失败:{}========",e.getMessage()); + e.printStackTrace(); + } + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/IPayBillService.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/IPayBillService.java new file mode 100644 index 00000000..8a8f041c --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/IPayBillService.java @@ -0,0 +1,13 @@ +package com.hzya.frame.plugin.a8bill.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.plugin.a8bill.entity.PayBillEntity; + +/** + * 付款单 + * + * @author makejava + * @since 2024-06-07 18:30:05 + */ +public interface IPayBillService extends IBaseService{ +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/impl/PayBillServiceImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/impl/PayBillServiceImpl.java new file mode 100644 index 00000000..e6375473 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/a8bill/service/impl/PayBillServiceImpl.java @@ -0,0 +1,22 @@ +package com.hzya.frame.plugin.a8bill.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.plugin.a8bill.entity.PayBillEntity; +import com.hzya.frame.plugin.a8bill.service.IPayBillService; + +/** + * private IMdmOrgDao mdmOrgDao; + * + * @Autowired + * public void setMdmOrgDao(IMdmOrgDao dao) { + * this.mdmOrgDao = dao; + * this.dao = dao; + * } + * + * @author makejava + * @since 2024-06-07 18:30:05 + */ +public class PayBillServiceImpl extends BaseService implements IPayBillService { + + +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/AgentPayResultPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/AgentPayResultPluginInitializer.java new file mode 100644 index 00000000..118e47b4 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/AgentPayResultPluginInitializer.java @@ -0,0 +1,114 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.cbs8.dto.req.AgentPayResultRequestDTO; +import com.hzya.frame.cbs8.dto.res.AgentPayQueryDTO; +import com.hzya.frame.cbs8.dto.res.AgentPayResultResDTO; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.checkerframework.checker.units.qual.A; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/18 17:22 + **/ +public class AgentPayResultPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(AgentPayResultPluginInitializer.class); + + @Autowired + private ICbsPluginService cbsPluginService; + + /*** + * 插件初始化方法 + * @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 "CBS8AgentPayResultPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8代发代扣详情查询插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8代发代扣详情查询插件"; + } + + /*** + * 插件类型 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 { + //1、查询代发代扣交易未完成代 + //2、调用cbs接口 + AgentPayResultRequestDTO agentPayResultRequestDTO = new AgentPayResultRequestDTO(); + agentPayResultRequestDTO.setBusNum("PA00034224062600011"); + AgentPayResultResDTO agentPayResultResDTO = cbsPluginService.agentPayResult(agentPayResultRequestDTO); + //记录日志 + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/ElecBillPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/ElecBillPluginInitializer.java new file mode 100644 index 00000000..685cef93 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/ElecBillPluginInitializer.java @@ -0,0 +1,101 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * @Description 电子回单定时任务 + * @Author xiangerlin + * @Date 2024/6/17 14:03 + **/ +public class ElecBillPluginInitializer extends PluginBaseEntity { + + Logger logger = LoggerFactory.getLogger(getClass()); + @Autowired + private ICbsPluginService cbsPluginService; + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "CBS8ElecBillPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8电子回单插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8电子回单插件"; + } + + /*** + * 插件类型 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 { + cbsPluginService.elecBillUpload(requestJson); + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyAgentPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyAgentPluginInitializer.java new file mode 100644 index 00000000..9c90a865 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyAgentPluginInitializer.java @@ -0,0 +1,116 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.cbs8.dto.res.PayResponseDTO; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/18 14:03 + **/ +public class PayApplyAgentPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(PayApplyAgentPluginInitializer.class); + @Autowired + private ICbsPluginService cbsPluginService; + + + @Autowired + private IAgentPaymentService agentPaymentService; + + + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "CBS8PayApplyAgentPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8代发代扣插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8代发代扣插件"; + } + + /*** + * 插件类型 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 { + //1、查询代支付的 + AgentPaymentEntity agentPaymentEntity = new AgentPaymentEntity(); + agentPaymentEntity.setOaId("4442823497745714629"); + cbsPluginService.applyAgentPay(agentPaymentEntity); + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyPluginInitializer.java new file mode 100644 index 00000000..36baa131 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayApplyPluginInitializer.java @@ -0,0 +1,112 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * @Description 经办支付申请 + * @Author xiangerlin + * @Date 2024/6/7 13:42 + **/ +public class PayApplyPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(PayApplyPluginInitializer.class); + + @Autowired + private ICbsPluginService cbsPluginService; + + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "CBS8PayApplyPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8支付申请插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8支付申请插件"; + } + + /*** + * 插件类型 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 { + PaymentEntity paymentEntity = null; + if (null != requestJson){ + requestJson.remove("jsonStr"); + paymentEntity = JSONObject.parseObject(requestJson.toString(),PaymentEntity.class); + } + if (null == paymentEntity) + paymentEntity = new PaymentEntity(); + //支付申请 + paymentEntity.setOaId("8475071606892874568"); + cbsPluginService.applyPay(paymentEntity); + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayResultPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayResultPluginInitializer.java new file mode 100644 index 00000000..fab668fa --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/PayResultPluginInitializer.java @@ -0,0 +1,110 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * @Description 查询支付结果 + * @Author xiangerlin + * @Date 2024/6/14 16:24 + **/ +public class PayResultPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(PayResultPluginInitializer.class); + + @Autowired + private ICbsPluginService cbsPluginService; + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "CBS8PayResultPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8支付结果查询插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8支付结果查询插件"; + } + + /*** + * 插件类型 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 { + CbsLogEntity cbsLogEntity = null; + if (null != requestJson){ + requestJson.remove("jsonStr"); + cbsLogEntity = JSONObject.parseObject(requestJson.toString(),CbsLogEntity.class); + } + if (null == cbsLogEntity){ + cbsLogEntity = new CbsLogEntity(); + } + cbsPluginService.queryResult(cbsLogEntity); + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/TransactionDetailPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/TransactionDetailPluginInitializer.java new file mode 100644 index 00000000..de84e734 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/plugin/TransactionDetailPluginInitializer.java @@ -0,0 +1,126 @@ +package com.hzya.frame.plugin.cbs8.plugin; + +import cn.hutool.core.date.DateUtil; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.cbs8.dto.req.TransactionDetailReqDTO; +import com.hzya.frame.cbs8.dto.res.TransactionDetailDTO; +import com.hzya.frame.cbs8.util.CBSUtil; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * @Description 交易明细查询 + * @Author xiangerlin + * @Date 2024/6/17 16:03 + **/ +public class TransactionDetailPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(getClass()); + + @Autowired + private ICbsPluginService cbsPluginService; + + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "CBS8TransactionDetailQueryPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "cbs8交易明细查询插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "cbs8交易明细查询插件"; + } + + /*** + * 插件类型 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 { + TransactionDetailReqDTO transactionDetailReqDTO = null; + if (null != requestJson){ + requestJson.remove("jsonStr"); + transactionDetailReqDTO = JSONObject.parseObject(requestJson.toString(),TransactionDetailReqDTO.class); + } + if (null == transactionDetailReqDTO){ + transactionDetailReqDTO = new TransactionDetailReqDTO(); + } + transactionDetailReqDTO.setCurrentPage(CBSUtil.DEFAULT_CURRENT_PAGE); + transactionDetailReqDTO.setPageSize(CBSUtil.DEFAULT_PAGE_SIZE); + transactionDetailReqDTO.setStartDate(DateUtil.today()); + transactionDetailReqDTO.setEndDate(DateUtil.today()); + transactionDetailReqDTO.setDateType("0"); + transactionDetailReqDTO.setLoanType("2"); + //1查询交易明细 + List transactionDetailList = cbsPluginService.queryTransactionDetail(transactionDetailReqDTO); + //保存交易明细到OA底表 + cbsPluginService.saveTransactionDetail(transactionDetailList); + return new JsonResultEntity("成功",true,transactionDetailList); + //return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/ICbsPluginService.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/ICbsPluginService.java new file mode 100644 index 00000000..dd07a04b --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/ICbsPluginService.java @@ -0,0 +1,76 @@ +package com.hzya.frame.plugin.cbs8.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.cbs8.dto.req.AgentPayResultRequestDTO; +import com.hzya.frame.cbs8.dto.req.TransactionDetailReqDTO; +import com.hzya.frame.cbs8.dto.res.AgentPayResultResDTO; +import com.hzya.frame.cbs8.dto.res.PayResponseDTO; +import com.hzya.frame.cbs8.dto.res.TransactionDetailDTO; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; + +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/17 08:46 + **/ +public interface ICbsPluginService { + + /** + * 支付申请 + * @param entity + */ + void applyPay(PaymentEntity entity)throws Exception; + + /** + * 保存支付申请日志 + * @param entity + * @throws Exception + */ + void savePayLog(PaymentEntity entity,PayResponseDTO payResponseDTO)throws Exception; + + /** + * 查询支付申请的交易结果 + * @param cbsLogEntity + * @throws Exception + */ + void queryResult(CbsLogEntity cbsLogEntity)throws Exception; + + /** + * 电子回单查询 并上传OA + * @param requestJson + * @throws Exception + */ + void elecBillUpload(JSONObject requestJson)throws Exception; + + /** + * 查询交易明细 + * transactionDetailReqDTO.currentPage 、 transactionDetailReqDTO.pageSize 必填 + * @param transactionDetailReqDTO + */ + List queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO); + + /** + * 代发代扣 支付申请 + * @param paymentEntity + */ + void applyAgentPay(AgentPaymentEntity paymentEntity); + + /** + * 代发代扣 结果详情查询 + * @param agentPayResultRequestDTO + * @return + */ + AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO); + + /** + * 保存交易明细到OA底表 + * @param transactionDetailList + */ + void saveTransactionDetail(List transactionDetailList); + +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/impl/CbsPluginServiceImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/impl/CbsPluginServiceImpl.java new file mode 100644 index 00000000..854a9191 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/cbs8/service/impl/CbsPluginServiceImpl.java @@ -0,0 +1,513 @@ +package com.hzya.frame.plugin.cbs8.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.convert.Convert; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.io.FileUtil; +import cn.hutool.core.map.MapBuilder; +import cn.hutool.core.util.NumberUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import com.hzya.frame.cbs8.dto.req.*; +import com.hzya.frame.cbs8.dto.res.*; +import com.hzya.frame.cbs8.service.ICbs8Service; +import com.hzya.frame.cbs8.util.CBSUtil; +import com.hzya.frame.cbs8.util.CurrencyEnum; +import com.hzya.frame.cbs8.util.PayState; +import com.hzya.frame.plugin.cbs8.service.ICbsPluginService; +import com.hzya.frame.seeyon.cap4.form.dto.*; +import com.hzya.frame.seeyon.cbs8.entity.*; +import com.hzya.frame.seeyon.cbs8.service.*; +import com.hzya.frame.seeyon.entity.CtpAttachmentEntity; +import com.hzya.frame.seeyon.entity.CtpFileEntity; +import com.hzya.frame.seeyon.service.ICtpAttachmentService; +import com.hzya.frame.seeyon.util.RestUtil; +import com.hzya.frame.uuid.UUIDLong; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.commons.collections.CollectionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; + +import java.io.File; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/17 08:46 + **/ +public class CbsPluginServiceImpl implements ICbsPluginService { + + Logger logger = LoggerFactory.getLogger(CbsPluginServiceImpl.class); + @Autowired + private ICbs8Service cbs8Service; + @Autowired + private IPaymentService paymentService; + @Autowired + private ICbsLogService cbsLogService; + @Autowired + private ICtpAttachmentService ctpAttachmentService; + @Autowired + private ITransactionDetailService transactionDetailService; + @Autowired + private IAgentPaymentService agentPaymentService; + @Autowired + private IAgentPaymentDetailService agentPaymentDetailService; + + @Autowired + private RestUtil restUtil; + @Value("${cbs8.elec_path:}") + private String elec_path; + @Value("${OA.data_source_code:}") + private String oa_data_source_code; + /** + * 支付申请 + * + * @param paymentEntity + */ + @Override + public void applyPay(PaymentEntity paymentEntity) throws Exception{ + //查询待支付的列表 + if (null == paymentEntity){ + paymentEntity = new PaymentEntity(); + } + paymentEntity.setDataSourceCode(oa_data_source_code); + List paymentList = paymentService.queryUnpaid(paymentEntity); + /* List paymentList = new ArrayList<>(); + paymentEntity.setReferenceNum("CL202406140001"); + paymentEntity.setPayAccount("655905707410000"); + paymentEntity.setPayBankName(""); + paymentEntity.setAmount("99"); + paymentEntity.setRevAccount("123456778"); + paymentEntity.setRevBankName("中国工商银行总行清算中心"); + paymentEntity.setRevBankType("ICB"); + paymentEntity.setRevAccountName("测试账户"); + paymentEntity.setCnapsCode("102100099996"); + paymentEntity.setPurpose("测试用途"); + paymentEntity.setBusType("202"); + paymentEntity.setCurrency("10"); + paymentEntity.setPurpose("测试用途"); + paymentList.add(paymentEntity);*/ + if (CollectionUtils.isNotEmpty(paymentList)){ + for (PaymentEntity pay : paymentList) { + //调用支付申请接口 + PayResponseDTO payResponseDTO = cbs8Service.payApply(pay); + boolean successed = payResponseDTO.getSuccessed(); + if (successed){ + pay.setPayResult(PayState.p.getValue()); + }else { + pay.setPayResult("推送失败"); + } + //4、更新OA表单 + pay.setDataSourceCode(oa_data_source_code); + pay.setApplyCode(payResponseDTO.getBusNum()); + paymentService.updatePayState(pay); + //5、记录操作日志 + savePayLog(pay,payResponseDTO); + } + } + } + + /** + * 保存支付申请日志 + * + * @param entity + * @throws Exception + */ + @Override + public void savePayLog(PaymentEntity entity,PayResponseDTO payResponseDTO) throws Exception { + //4. 保存日志 + CbsLogEntity cbsLogEntity = new CbsLogEntity(); + cbsLogEntity.setTitle(entity.getTitle()); + cbsLogEntity.setPay_company(entity.getPayCompany()); + cbsLogEntity.setPayee(entity.getRevAccountName()); + cbsLogEntity.setAmount(entity.getAmount()); + cbsLogEntity.setOa_id(entity.getOaId()); + cbsLogEntity.setBill_code(Convert.toStr(entity.getReferenceNumNew(),entity.getReferenceNum())); + cbsLogEntity.setTab_name_ch(entity.getBillName()); + cbsLogEntity.setTab_name_en(entity.getTableName()); + Boolean successed = payResponseDTO.getSuccessed(); + if (successed){ + cbsLogEntity.setPay_state(PayState.p.getValue()); + cbsLogEntity.setApply_state(PayState.two.getValue()); + cbsLogEntity.setCbs_apply_code(payResponseDTO.getBusNum()); + cbsLogEntity.setSuccessed("true"); + entity.setPayResult(PayState.p.getValue()); + }else { + cbsLogEntity.setPay_state("推送失败"); + cbsLogEntity.setMessage(payResponseDTO.getErrorMsg()); + cbsLogEntity.setSuccessed("false"); + entity.setPayResult("推送失败"); + } + cbsLogService.saveLog(cbsLogEntity); + } + + /** + * 查询支付申请的交易结果 + * + * @param cbsLogEntity + * @throws Exception + */ + @Override + public void queryResult(CbsLogEntity cbsLogEntity) throws Exception { + if (null == cbsLogEntity){ + cbsLogEntity = new CbsLogEntity(); + } + cbsLogEntity.setDataSourceCode(oa_data_source_code); + // 1、查询支付中的日志 + List inPayList = cbsLogService.queryInPayment(cbsLogEntity); + if (CollectionUtils.isNotEmpty(inPayList)){ + for (CbsLogEntity entity : inPayList) { + try { + List payResultResList = cbs8Service.queryPayResult(new PayResultRequestDTO(entity.getBill_code())); + if (CollectionUtils.isNotEmpty(payResultResList)){ + PayResultResDTO payResultResDTO = payResultResList.get(0); + //支付申请状态 + String status = payResultResDTO.getStatus(); + //支付状态 + String pay_status = payResultResDTO.getPayStatus(); + //不等于支付中的时候 更新支付状态 + if (!PayState.p.getType().equals(pay_status)){ + //如果支付状态为空,保存支付申请状态,如果支付状态不为空,则保存支付状态 + PaymentEntity paymentEntity = new PaymentEntity(); + paymentEntity.setOaId(entity.getOa_id()); + paymentEntity.setApplyCode(entity.getCbs_apply_code()); + paymentEntity.setDataSourceCode(oa_data_source_code); + List paymentList = paymentService.query(paymentEntity); + if (CollectionUtils.isNotEmpty(paymentList)){ + paymentEntity = paymentList.get(0); + if (StrUtil.isEmpty(pay_status)) { + //支付申请状态 支付状态和支付申请状态用一个 + paymentEntity.setPayResult(PayState.payStateGetValue(status)); + } else { + //支付状态 支付状态和支付申请状态用一个 + paymentEntity.setPayResult(PayState.payStateGetValue(pay_status)); + } + if (StrUtil.isNotEmpty(pay_status) && pay_status.equals(PayState.g.getType())) { + //支付时间 + paymentEntity.setPayDate(CBSUtil.convertTimestampToString(payResultResDTO.getPayDate())); + } + //更新视图单据状态 + paymentEntity.setDataSourceCode(oa_data_source_code); + paymentService.updatePayState(paymentEntity); + //更新日志表状态 + entity.setPay_state(paymentEntity.getPayResult()); + entity.setApply_state(PayState.payStateGetValue(status)); + entity.setDataSourceCode(oa_data_source_code); + cbsLogService.updateLog(entity); + } + } + } + }catch (Exception e){ + e.printStackTrace(); + logger.error("查询交易结果出错",e); + } + } + } + } + + /** + * 电子回单查询 并上传OA + * + * @param requestJson + * @throws Exception + */ + @Override + public void elecBillUpload(JSONObject requestJson) throws Exception { + //查询支付成功 没有电子回单的数据 + PaymentEntity paymentEntity = new PaymentEntity(); + // List paymentList = paymentService.queryElecIsNull(paymentEntity); + paymentEntity.setPayDate("2024-06-20"); + paymentEntity.setReferenceNum("41"); + List paymentList = Arrays.asList(paymentEntity); + if (CollectionUtils.isNotEmpty(paymentList)) { + for (PaymentEntity pay : paymentList) { + try { + String payDate = DateUtil.format(DateUtil.parse(pay.getPayDate()), "yyyy-MM-dd"); + //查询cbs电子回单 + List elecResList = cbs8Service.queryElecBill(new ElecRequestDTO(payDate,DateUtil.today(),pay.getReferenceNum())); + if (CollectionUtils.isNotEmpty(elecResList)){ + ElecResponseDTO elecResponseDTO = elecResList.get(0); + String bucketFileUrl = elecResponseDTO.getBucketFileUrl(); + String bucketFileName = elecResponseDTO.getBucketFileName(); + //上传电子回单到OA + HttpUtil.downloadFile(bucketFileUrl, FileUtil.file(elec_path));//附件下载 + String pdfUrl = elec_path + bucketFileName; + File file = new File(pdfUrl); + if (file.exists()) { + CtpFileEntity cpFileEntity = new CtpFileEntity(); + cpFileEntity.setFile(file); + cpFileEntity.setDataSourceCode(oa_data_source_code); + JSONObject jsonObjectUpload = restUtil.fileUpload(file,"8000240005"); + String file_url = jsonObjectUpload.getString("fileUrl"); + if (null != jsonObjectUpload && StrUtil.isNotEmpty(file_url)) { + String sub_reference = String.valueOf(UUIDLong.longUUID()); + pay.setReceipt(sub_reference); + //更新表单的电子回单值 + paymentService.updateElec(pay); + //保存附件关系 + CtpAttachmentEntity ctpAttachmentEntity = new CtpAttachmentEntity(); + ctpAttachmentEntity.setFile_url(file_url); + ctpAttachmentService.saveAttachment(file_url, pay.getSummaryId(), sub_reference); + } + //删除本地临时文件 + file.delete(); + } + } + }catch (Exception e){ + logger.error("电子回单查询出错",e); + } + } + } + } + + /** + * 查询交易明细 + * transactionDetailReqDTO.currentPage 、 transactionDetailReqDTO.pageSize 必填 + * @param transactionDetailReqDTO + */ + @Override + public List queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO) { + boolean hasNextPage = true;//是否有下一页 + int currentPage = transactionDetailReqDTO.getCurrentPage(); + int pageSize = transactionDetailReqDTO.getPageSize(); + if (currentPage == 0){ + currentPage = CBSUtil.DEFAULT_CURRENT_PAGE;//页码 + } + if (pageSize == 0){ + pageSize = CBSUtil.DEFAULT_PAGE_SIZE;//每页条数 + transactionDetailReqDTO.setPageSize(pageSize); + } + List resultList = new ArrayList<>(); + do{ + transactionDetailReqDTO.setCurrentPage(currentPage);//页码 + currentPage++;//页码自增 + hasNextPage = false;//保护功能,防止出现死循环 + CbsResDataDTO dataDTO = cbs8Service.queryTransactionDetail(transactionDetailReqDTO); + if (null != dataDTO){ + hasNextPage = dataDTO.getHasNextPage(); + List transactionDetailDTOList = CBSUtil.convertJsonArrayToList(dataDTO.getList(), TransactionDetailDTO.class); + resultList.addAll(transactionDetailDTOList); + } + }while (hasNextPage); + + return resultList; + } + + /** + * 代发代扣 支付申请 + * + * @param paymentEntity + + */ + @Override + public void applyAgentPay(AgentPaymentEntity paymentEntity) { + try { + if (null != paymentEntity ){ + paymentEntity.setDataSourceCode(oa_data_source_code); + List agentPaymentList = agentPaymentService.queryUnpaid(paymentEntity); + if (CollectionUtils.isNotEmpty(agentPaymentList)){ + for (AgentPaymentEntity agentPay : agentPaymentList) { + AgentPaymentDetailEntity detailEntity = new AgentPaymentDetailEntity(); + detailEntity.setFormmainId(agentPay.getOaId()); + detailEntity.setDataSourceCode(oa_data_source_code); + List agentPaymentDetailList = agentPaymentService.queryDetails(detailEntity); + if (CollectionUtils.isNotEmpty(agentPaymentDetailList)){ + PaymentApplySubmitReqDTO paymentApplySubmitReqDTO = BeanUtil.copyProperties(agentPay,PaymentApplySubmitReqDTO.class); + List paymentApplyAgentList = new ArrayList<>(); + for (AgentPaymentDetailEntity detail : agentPaymentDetailList) { + PaymentApplyAgentDTO detailDTO = BeanUtil.copyProperties(detail,PaymentApplyAgentDTO.class); + paymentApplyAgentList.add(detailDTO); + } + //招行这里要传203 + paymentApplySubmitReqDTO.setBankExtend5("203"); + PayResponseDTO payResponseDTO = cbs8Service.agentPayApply(paymentApplySubmitReqDTO,paymentApplyAgentList); + if (null != payResponseDTO){ + Boolean successed = payResponseDTO.getSuccessed(); + AgentPaymentEntity pay = new AgentPaymentEntity(); + pay.setOaId(paymentEntity.getOaId()); + pay.setDataSourceCode(oa_data_source_code); + if (successed){ + //更新申请单号到OA + pay.setApplyCode(payResponseDTO.getBusNum()); + pay.setPayResult("审批中"); + }else { + pay.setPayResult(payResponseDTO.getErrorMsg()); + } + agentPaymentService.updateResult(pay); + System.out.println(JSONObject.toJSONString(payResponseDTO)); + } + } + } + } + }else { + throw new BaseSystemException("参数不能为空"); + } + }catch (Exception e){ + logger.error("代发代扣出错:{}",e); + } + } + + /** + * 代发代扣 结果详情查询 + * + * @param agentPayResultRequestDTO + * @return + */ + @Override + public AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO) { + try { + if (null != agentPayResultRequestDTO && StrUtil.isNotEmpty(agentPayResultRequestDTO.getBusNum())){ + AgentPayResultResDTO agentPayResultResDTO = cbs8Service.agentPayResult(agentPayResultRequestDTO); + //更新OA表单 + String busNum = agentPayResultResDTO.getBusNum(); + if (StringUtils.isNotEmpty(busNum)){ + AgentPaymentEntity agentPaymentEntity = new AgentPaymentEntity(); + agentPaymentEntity.setApplyCode(busNum); + agentPaymentEntity.setDataSourceCode(oa_data_source_code); + AgentPaymentEntity entity = agentPaymentService.queryByApplyCode(agentPaymentEntity); + String pay_status = agentPayResultResDTO.getPayStatus(); + String status = agentPayResultResDTO.getStatus(); + if (null != entity){ + AgentPaymentEntity result = new AgentPaymentEntity(); + result.setOaId(entity.getOaId()); + result.setDataSourceCode(oa_data_source_code); + //更新主表 + if (StrUtil.isEmpty(pay_status)) { + result.setPayResult(PayState.payStateGetValue(status));//支付申请状态 支付状态和支付申请状态用一个 + } else { + result.setPayResult(PayState.payStateGetValue(pay_status));//支付状态 支付状态和支付申请状态用一个 + } + agentPaymentService.updateResult(result); + //更新明细表 + List agentDetails = agentPayResultResDTO.getAgentDetails(); + for (AgentPayQueryDTO d : agentDetails) { + AgentPaymentDetailEntity detail = new AgentPaymentDetailEntity(); + detail.setFormmainId(entity.getOaId()); + detail.setDtlAmount(d.getDtlAmount()); + detail.setDtlCnapsCode(d.getDtlCnapsCode()); + detail.setDtlRevName(d.getDtlRevName()); + detail.setDtlSeqNum(Integer.valueOf(d.getDtlSeqNum())); + detail.setPayResult(PayState.payStateGetValue(d.getDtlStatus())); + detail.setPayDate(CBSUtil.convertTimestampToString(d.getDtlPayTime())); + detail.setDataSourceCode(oa_data_source_code); + agentPaymentDetailService.updatePayResult(detail); + } + } + } + return agentPayResultResDTO; + } + }catch (Exception e){ + logger.error("代发代扣详情结果查询出错{}",e); + } + return null; + } + + /** + * 保存交易明细到OA底表 + * + * @param transactionlList + */ + @Override + public void saveTransactionDetail(List transactionlList) { + if (CollectionUtils.isNotEmpty(transactionlList)){ + //过滤已经保存过的数据 + //收款档案表的数据 + TransactionDetailEntity transactionDetailEntity = new TransactionDetailEntity(); + transactionDetailEntity.setBankTransactionDate(DateUtil.lastWeek().toDateStr()); + transactionDetailEntity.setDataSourceCode(oa_data_source_code); + List transactionDetailList = transactionDetailService.querySerialNumber(transactionDetailEntity); + //过滤已经保存的数据 + if (CollectionUtils.isNotEmpty(transactionDetailList)){ + //过滤transactionlList 去除已经存在transactionDetailList中的数据,条件为transactionSerialNumber相等 + if (CollectionUtils.isNotEmpty(transactionlList)){ + transactionlList = transactionlList.stream() + .filter(item -> transactionDetailList.stream() + .noneMatch(detailItem -> item.getTransactionSerialNumber().equals(detailItem.getTransactionSerialNumber()))) + .collect(Collectors.toList()); + } + } + if (CollectionUtils.isNotEmpty(transactionlList)){ + //保存到OA底表 + for (TransactionDetailDTO dto : transactionlList) { + TransactionDetailEntity transactionDetail = new TransactionDetailEntity(); + BeanUtil.copyProperties(dto,transactionDetail); + transactionDetail.setCurrency(CurrencyEnum.getChineseNameByCode(dto.getCurrency())); + if (NumberUtil.isNumber(dto.getBankTransactionDate())){//如果是时间戳 转换成日期字符串 + transactionDetail.setBankTransactionDate(CBSUtil.convertTimestampToString(dto.getBankTransactionDate())); + } + transactionDetailService.restSave(transactionDetail); + } + } + } + } + + //这个方法没用,用的是8.0批量保存方式,我没有测试 + private void saveTransactionDetailTemp(List transactionDetailList) { + if (CollectionUtils.isNotEmpty(transactionDetailList)){ + //过滤已经保存过的数据 + for (TransactionDetailDTO dto : transactionDetailList) { + List dataList = new ArrayList<>(); + FormDTO formDTO = new FormDTO(); + formDTO.setFormCode("formmain_0233"); + formDTO.setLoginName("yonyou"); + formDTO.setRightId("6603635988997229999.-8611088937958683581"); + String field0001=dto.getAccountNo();//我方银行账号 + String field0002=dto.getAccountName();//我方户名 + String field0003=dto.getOpenBank();//我方开户行 + String field0004=dto.getBankType();//我方银行类型 + String field0005=dto.getTransactionSerialNumber();//交易流水号 + String field0006=dto.getBankTransactionDate();//交易日期 + String field0007=dto.getBankSerialNumber();//银行流水号 + String field0008=dto.getCurrency();//币种 + String field0009=dto.getIncurredAmount();//收款金额 + String field0010=dto.getPurpose();//用途 + String field0011=dto.getDigest();//摘要 + String field0012=dto.getOppositeAccount();//对方账号 + String field0013=dto.getOppositeName();//对方户名 + String field0014=dto.getOppositeOpeningBank();//对方开户行 + String field0015=dto.getRemark();//备注 + //fields + List fields = new ArrayList<>(); + fields.add(new RecordFieldDTO("field0001",field0001,field0001)); + fields.add(new RecordFieldDTO("field0002",field0002,field0002)); + fields.add(new RecordFieldDTO("field0003",field0003,field0003)); + fields.add(new RecordFieldDTO("field0004",field0004,field0004)); + fields.add(new RecordFieldDTO("field0005",field0005,field0005)); + fields.add(new RecordFieldDTO("field0006",field0006,field0006)); + fields.add(new RecordFieldDTO("field0007",field0007,field0007)); + fields.add(new RecordFieldDTO("field0008",field0008,field0008)); + fields.add(new RecordFieldDTO("field0009",field0009,field0009)); + fields.add(new RecordFieldDTO("field0010",field0010,field0010)); + fields.add(new RecordFieldDTO("field0011",field0011,field0011)); + fields.add(new RecordFieldDTO("field0012",field0012,field0012)); + fields.add(new RecordFieldDTO("field0013",field0013,field0013)); + fields.add(new RecordFieldDTO("field0014",field0014,field0014)); + fields.add(new RecordFieldDTO("field0015",field0015,field0015)); + //masterTable + MasterTableDTO masterTableDTO = new MasterTableDTO(); + masterTableDTO.setName("formmain_1284"); + RecordDTO recordDTO = new RecordDTO(); + recordDTO.setId(UUIDLong.longUUID()); + recordDTO.setFields(fields); + masterTableDTO.setRecord(recordDTO); + //dataList + FormDataDTO formDataDTO = new FormDataDTO(); + formDataDTO.setMasterTable(masterTableDTO); + dataList.add(formDataDTO); + formDTO.setDataList(dataList); + } + } + } + +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/IMdmDao.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/IMdmDao.java new file mode 100644 index 00000000..b69adb80 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/IMdmDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.masterData.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.plugin.masterData.entity.MdmEntity; + +/** + * 客户档案(mdm_customer: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public interface IMdmDao extends IBaseDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/impl/MdmDaoImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/impl/MdmDaoImpl.java new file mode 100644 index 00000000..05e95b1e --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/dao/impl/MdmDaoImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.masterData.dao.impl; + +import com.hzya.frame.plugin.masterData.entity.MdmEntity; +import com.hzya.frame.plugin.masterData.dao.IMdmDao; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 客户档案(MdmCustomer)表数据库访问层 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public class MdmDaoImpl extends MybatisGenericDao implements IMdmDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.java new file mode 100644 index 00000000..e8d7f6f9 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.java @@ -0,0 +1,186 @@ +package com.hzya.frame.plugin.masterData.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 客户档案(MdmCustomer)实体类 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public class MdmEntity extends BaseEntity { + + /** 单据规则 */ + private String documentRule; + /** 单据规则流水号 */ + private Long documentRuleNum; + /** 数据状态 Y正常 N删除 F修改 */ + private String dataStatus; + /** 新增数据状态 0待下发 1已下发 */ + private String addStatus; + /** 修改数据状态 0待下发 1已下发 */ + private String updateStatus; + /** 删除数据状态 0待下发 1已下发 */ + private String deleteStatus; + /** 公司id */ + private String companyId; + /** 客户编码 */ + private String code; + /** 客户类型 */ + private String custprop; + /** 客户状态 */ + private String custstate; + /** 启用状态 */ + private String enablestate; + /** 客户名称 */ + private String name; + /** 国家/地区 */ + private String pkCountry; + /** 客户基本分类 */ + private String pkCustclass; + /** 所属集团 */ + private String pkGroup; + /** 所属组织 */ + private String pkOrg; + /** 纳税人登记号 */ + private String taxpayerid; + + + public String getDocumentRule() { + return documentRule; + } + + public void setDocumentRule(String documentRule) { + this.documentRule = documentRule; + } + + public Long getDocumentRuleNum() { + return documentRuleNum; + } + + public void setDocumentRuleNum(Long documentRuleNum) { + this.documentRuleNum = documentRuleNum; + } + + public String getDataStatus() { + return dataStatus; + } + + public void setDataStatus(String dataStatus) { + this.dataStatus = dataStatus; + } + + public String getAddStatus() { + return addStatus; + } + + public void setAddStatus(String addStatus) { + this.addStatus = addStatus; + } + + public String getUpdateStatus() { + return updateStatus; + } + + public void setUpdateStatus(String updateStatus) { + this.updateStatus = updateStatus; + } + + public String getDeleteStatus() { + return deleteStatus; + } + + public void setDeleteStatus(String deleteStatus) { + this.deleteStatus = deleteStatus; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getCustprop() { + return custprop; + } + + public void setCustprop(String custprop) { + this.custprop = custprop; + } + + public String getCuststate() { + return custstate; + } + + public void setCuststate(String custstate) { + this.custstate = custstate; + } + + public String getEnablestate() { + return enablestate; + } + + public void setEnablestate(String enablestate) { + this.enablestate = enablestate; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPkCountry() { + return pkCountry; + } + + public void setPkCountry(String pkCountry) { + this.pkCountry = pkCountry; + } + + public String getPkCustclass() { + return pkCustclass; + } + + public void setPkCustclass(String pkCustclass) { + this.pkCustclass = pkCustclass; + } + + public String getPkGroup() { + return pkGroup; + } + + public void setPkGroup(String pkGroup) { + this.pkGroup = pkGroup; + } + + public String getPkOrg() { + return pkOrg; + } + + public void setPkOrg(String pkOrg) { + this.pkOrg = pkOrg; + } + + public String getTaxpayerid() { + return taxpayerid; + } + + public void setTaxpayerid(String taxpayerid) { + this.taxpayerid = taxpayerid; + } + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.xml b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.xml new file mode 100644 index 00000000..46d5962b --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/entity/MdmEntity.xml @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,document_rule + ,document_rule_num + ,data_status + ,add_status + ,update_status + ,delete_status + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + ,code + ,custprop + ,custstate + ,enablestate + ,name + ,pk_country + ,pk_custclass + ,pk_group + ,pk_org + ,taxpayerid + + + + + + + + + + + + + + + + insert into mdm_customer( + + id , + document_rule , + document_rule_num , + data_status , + add_status , + update_status , + delete_status , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + code , + custprop , + custstate , + enablestate , + name , + pk_country , + pk_custclass , + pk_group , + pk_org , + taxpayerid , + sts, + + )values( + + #{id} , + #{documentRule} , + #{documentRuleNum} , + #{dataStatus} , + #{addStatus} , + #{updateStatus} , + #{deleteStatus} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + #{code} , + #{custprop} , + #{custstate} , + #{enablestate} , + #{name} , + #{pkCountry} , + #{pkCustclass} , + #{pkGroup} , + #{pkOrg} , + #{taxpayerid} , + 'Y', + + ) + + + + insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid, sts) + values + + (#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid}, 'Y') + + + + + insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid) + values + + (#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid}) + + on duplicate key update + document_rule = values(document_rule), + document_rule_num = values(document_rule_num), + data_status = values(data_status), + add_status = values(add_status), + update_status = values(update_status), + delete_status = values(delete_status), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id), + code = values(code), + custprop = values(custprop), + custstate = values(custstate), + enablestate = values(enablestate), + name = values(name), + pk_country = values(pk_country), + pk_custclass = values(pk_custclass), + pk_group = values(pk_group), + pk_org = values(pk_org), + taxpayerid = values(taxpayerid) + + +update mdm_customer set + + document_rule = #{documentRule}, + document_rule_num = #{documentRuleNum}, + data_status = #{dataStatus}, + add_status = #{addStatus}, + update_status = #{updateStatus}, + delete_status = #{deleteStatus}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + code = #{code}, + custprop = #{custprop}, + custstate = #{custstate}, + enablestate = #{enablestate}, + name = #{name}, + pk_country = #{pkCountry}, + pk_custclass = #{pkCustclass}, + pk_group = #{pkGroup}, + pk_org = #{pkOrg}, + taxpayerid = #{taxpayerid}, + +where id = #{id} + + + +update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and document_rule = #{documentRule} + and document_rule_num = #{documentRuleNum} + and data_status = #{dataStatus} + and add_status = #{addStatus} + and update_status = #{updateStatus} + and delete_status = #{deleteStatus} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and code = #{code} + and custprop = #{custprop} + and custstate = #{custstate} + and enablestate = #{enablestate} + and name = #{name} + and pk_country = #{pkCountry} + and pk_custclass = #{pkCustclass} + and pk_group = #{pkGroup} + and pk_org = #{pkOrg} + and taxpayerid = #{taxpayerid} + and sts='Y' + + + + + delete from mdm_customer where id = #{id} + + + + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/plugin/MdmPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/plugin/MdmPluginInitializer.java new file mode 100644 index 00000000..02577f11 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/plugin/MdmPluginInitializer.java @@ -0,0 +1,61 @@ +package com.hzya.frame.plugin.masterData.plugin; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * 主数据同步 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public class MdmPluginInitializer extends PluginBaseEntity{ + Logger logger = LoggerFactory.getLogger(MdmPluginInitializer.class); + @Autowired + private IMasterDataService masterDataService; + + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法initialize()"); + } + + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + @Override + public String getPluginId() { + return "MdmCustomerPlugin"; + } + + @Override + public String getPluginName() { + return "MdmCustomerPlugin插件"; + } + + @Override + public String getPluginLabel() { + return "MdmCustomerPlugin"; + } + + @Override + public String getPluginType() { + return "1"; + } + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) { + try { + logger.info("======开始执行主数据信息同步========"); + return masterDataService.queryArchives(requestJson); + }catch (Exception e){ + logger.info("======执行主数据同步失败:{}========",e.getMessage()); + e.printStackTrace(); + } + return null; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/IMdmService.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/IMdmService.java new file mode 100644 index 00000000..175d0616 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/IMdmService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.plugin.masterData.service; + +import com.hzya.frame.plugin.masterData.entity.MdmEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 客户档案(MdmCustomer)表服务接口 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public interface IMdmService extends IBaseService{ +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/impl/MdmServiceImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/impl/MdmServiceImpl.java new file mode 100644 index 00000000..e1016019 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/masterData/service/impl/MdmServiceImpl.java @@ -0,0 +1,24 @@ +package com.hzya.frame.plugin.masterData.service.impl; + +import com.hzya.frame.plugin.masterData.entity.MdmEntity; +import com.hzya.frame.plugin.masterData.dao.IMdmDao; +import com.hzya.frame.plugin.masterData.service.IMdmService; +import com.hzya.frame.plugin.masterData.service.IMdmService; +import org.springframework.beans.factory.annotation.Autowired; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 客户档案(MdmCustomer)表服务实现类 + * + * @author makejava + * @since 2024-06-21 13:52:35 + */ +public class MdmServiceImpl extends BaseService implements IMdmService { + + private IMdmDao mdmCustomerDao; + + @Autowired + public void setMdmCustomerDao(IMdmDao dao) { + this.mdmCustomerDao = dao; + this.dao = dao; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/mdmDistribute/plugin/MdmModulePluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/mdmDistribute/plugin/MdmModulePluginInitializer.java new file mode 100644 index 00000000..de6fb968 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/mdmDistribute/plugin/MdmModulePluginInitializer.java @@ -0,0 +1,1487 @@ +package com.hzya.frame.plugin.mdmDistribute.plugin; + +import cn.dev33.satoken.stp.StpUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; +import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao.IMdmModuleDistributeTripartiteDao; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao; +import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity; +import com.hzya.frame.mdm.service.IMdmServiceCache; +import com.hzya.frame.sys.sysenum.SysEnum; +import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; +import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.script.dao.ISysApplicationScriptDao; +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.sysnew.grovy.service.IGroovyIntegrationService; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService; +import com.hzya.frame.uuid.UUIDUtils; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.http.HttpEntity; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.ByteArrayEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.util.EntityUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; + +import javax.annotation.Resource; +import java.io.IOException; +import java.util.*; + +/** + * 主数据模版(MdmModule)表服务接口 + * + * @author makejava + * @since 2024-06-18 10:33:32 + */ +public class MdmModulePluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(MdmModulePluginInitializer.class); + @Resource + private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao; + @Resource + private IIntegrationTaskLivingDetailsService taskLivingDetailsService; + @Resource + private ISysApplicationApiDao sysApplicationApiDao; + @Resource + private ISysApplicationDao sysApplicationDao; + @Resource + private ISysApplicationScriptDao sysApplicationScriptDao; + @Resource + private IMdmModuleDistributeDao mdmModuleDistributeDao; + @Resource + private IGroovyIntegrationService groovyIntegrationService; + @Resource + private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao; + @Resource + private IMdmModuleDao mdmModuleDao; + @Resource + private IMdmServiceCache mdmServiceCache; + @Resource + private IMdmModuleSendLogDao mdmModuleSendLogDao; + @Resource + private IMdmModuleDistributeTripartiteDao mdmModuleDistributeTripartiteDao; + @Value("${zt.url}") + private String url ; + + //多线程请求加锁 HttpRequest 构造方法是静态的 + private final Object lock = new Object(); + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法initialize()"); + } + + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + @Override + public String getPluginId() { + return "MdmModulePlugin"; + } + + @Override + public String getPluginName() { + return "主数据下发"; + } + + @Override + public String getPluginLabel() { + return "MdmModulePlugin"; + } + + @Override + public String getPluginType() { + return "1"; + } + + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) { + try{ + //重试方法 + if (null != requestJson) { + //如果这个id不为空,说明是重试的 + String id = requestJson.getString("integration_task_living_details_id"); + //执行重新发送 + if (StrUtil.isNotEmpty(id)) { + //查询日志表 + IntegrationTaskLivingDetailsEntity taskDetailEntity = taskLivingDetailsService.get(id); + if (null != taskDetailEntity && JSONUtil.isTypeJSON(taskDetailEntity.getRootAppPk())){ + //拿到这张表的源系统ID + JSONObject jsonObject = JSONObject.parseObject(taskDetailEntity.getRootAppPk()); + Long mdmCode = jsonObject.getLong("mdmCode");//主数据编码 + String documentRule = jsonObject.getString("documentRule");//行数据的单据规则编码 + String distributeId = jsonObject.getString("distributeId");//发送表id + String type = jsonObject.getString("type");//发送类型,1、新增2、修改3、删除 + if(mdmCode == null || documentRule == null || distributeId == null || type == null + || "".equals(mdmCode) || "".equals(documentRule) || "".equals(distributeId) || "".equals(type)){ + taskDetailEntity.setResult("系统保存参数错误"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("系统保存参数错误"); + } + String apiId = null; + String scriptId = null; + //查找对应数据,组装数据发送 + + //获取主数据信息 + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(mdmCode); + if(mdmModuleEntity == null || mdmModuleEntity.getId() == null ){ + taskDetailEntity.setResult("主数据不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("主数据不存在"); + + } + + //获取主数据db + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if(mdmModuleDbEntities == null || mdmModuleDbEntities.size() == 0){ + taskDetailEntity.setResult("主数据数据源不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("主数据数据源不存在"); + + } + + //获取分发表 + //获取分发的接口 + MdmModuleDistributeEntity mdmModuleDistributeEntity = mdmModuleDistributeDao.get(distributeId); + if(mdmModuleDistributeEntity == null || mdmModuleDistributeEntity.getId() == null ){ + taskDetailEntity.setResult("分发不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发不存在"); + + } + // 启用停用 0、停用 + if("0".equals(mdmModuleDistributeEntity.getEnabledState())){ + taskDetailEntity.setResult("分发已停用"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发已停用"); + + } + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity() ; + mdmModuleDistributeDetailEntity.setDistributeId(distributeId); + mdmModuleDistributeDetailEntity.setSts("Y"); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + + // 启用停用 0、停用 + //if("1".equals(mdmModuleDistributeEntity.getEnabledType())){ + // taskDetailEntity.setResult("分发为手动下发"); + // taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + // return BaseResult.getFailureMessageEntity("分发为手动下发"); + //} + //1、新增2、修改3、删除 + if("1".equals(type)){ + apiId = mdmModuleDistributeEntity.getAddApi(); + scriptId = mdmModuleDistributeEntity.getAddScript(); + }else if("2".equals(type)){ + apiId = mdmModuleDistributeEntity.getUpdateApi(); + scriptId = mdmModuleDistributeEntity.getUpdateScript(); + + }else if("3".equals(type)){ + apiId = mdmModuleDistributeEntity.getDeleteApi(); + scriptId = mdmModuleDistributeEntity.getDeleteScript(); + } + if(apiId == null || "".equals(apiId)){ + taskDetailEntity.setResult("分发接口未选择,请先选择"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发接口未选择,请先选择"); + + } + SysApplicationScriptEntity scriptEntity = null; + if(scriptId != null && !"".equals(scriptId)){ + scriptEntity = sysApplicationScriptDao.get(scriptId); + if(scriptEntity == null || scriptEntity.getId() == null ){ + taskDetailEntity.setResult("分发接口脚本不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发接口脚本不存在"); + } + } + SysApplicationApiEntity apiEntity = sysApplicationApiDao.get(apiId); + if(apiEntity == null || apiEntity.getId() == null ){ + taskDetailEntity.setResult("分发接口不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发接口不存在"); + + } + SysApplicationEntity sysApplicationEntity = sysApplicationDao.get(apiEntity.getAppId()); + if(sysApplicationEntity == null || sysApplicationEntity.getId() == null ){ + taskDetailEntity.setResult("应用不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("应用不存在"); + } + + //获取主数据db字段,以及字段的规则 + MdmModuleDbFiledsEntity queryFild = new MdmModuleDbFiledsEntity(); + queryFild.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(queryFild); + MdmModuleDbFiledsRuleEntity queryFildRule = new MdmModuleDbFiledsRuleEntity(); + queryFildRule.setMdmId(mdmModuleEntity.getId()); + queryFildRule.setRuleCode("service"); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(queryFildRule); + + //获取主数据db对应的实体表的数据 + JSONObject object = new JSONObject(); + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if("1".equals(mdmModuleDbEntities.get(i).getDbType())){ + Map map = new HashMap<>(); + map.put("tableName",mdmModuleDbEntities.get(i).getDbName()); + map.put("documentRule",documentRule); + object = mdmModuleDao.queryMdmST(map); + object = toLowerCaseKeys(object); + if(object.getString("id") == null || "".equals(object.getString("id")) ){ + taskDetailEntity.setResult("当前数据不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("当前数据不存在"); + } + if(mdmModuleDistributeDetailEntities != null && mdmModuleDistributeDetailEntities.size() > 0){ + Map checkData = new HashMap<>(); + checkData.put("tableName",mdmModuleDbEntities.get(i).getDbName()); + checkData.put("documentRule",documentRule); + checkData.put("mdmModuleDistributeDetailEntities",mdmModuleDistributeDetailEntities); + JSONObject object1 = mdmModuleDao.queryMdmST(checkData); + object1 = toLowerCaseKeys(object1); + + if(object1.getString("id") == null || "".equals(object1.getString("id")) ){ + taskDetailEntity.setResult("当前数据不符合规则不发送"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("当前数据不符合规则不发送"); + } + } + //查看主表是否有字段是关联的 + if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){ + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i).getId())){ + if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){ + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())){ + if(object.getString(mdmModuleDbFiledsEntities.get(i2).getEnName()) != null){ + Map mapDetail = new HashMap<>(); + mapDetail.put("tableName",mdmModuleDbFiledsRuleEntities.get(i1).getRuleValue()); + String ids = object.getString(mdmModuleDbFiledsEntities.get(i2).getEnName()); + String[] idss = ids.split(","); + mapDetail.put("id", idss[idss.length-1]); + JSONObject objectDetail = mdmModuleDao.queryMdmST(mapDetail); + objectDetail = toLowerCaseKeys(objectDetail); + object.put(mdmModuleDbFiledsEntities.get(i2).getEnName(),objectDetail); + } + } + } + } + } + } + } + } + } + + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if("2".equals(mdmModuleDbEntities.get(i).getDbType())){ + Map map = new HashMap<>(); + map.put("tableName",mdmModuleDbEntities.get(i).getDbName()); + map.put("formmainId",object.getString("id")); + List detail = mdmModuleDao.queryMdmSTDetail(map); + detail = toLowerCaseKeys(detail); + + //查看主表是否有字段是关联的 + if(detail != null && detail.size() > 0){ + if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){ + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i).getId())){ + if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){ + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())){ + for (int i3 = 0; i3 < detail.size(); i3++) { + if(detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()) != null){ + Map mapDetail = new HashMap<>(); + mapDetail.put("tableName",mdmModuleDbFiledsRuleEntities.get(i1).getRuleValue()); + String ids = detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()); + String[] idss = ids.split(","); + mapDetail.put("id", idss[idss.length-1]); + + JSONObject objectDetail = mdmModuleDao.queryMdmST(mapDetail); + objectDetail = toLowerCaseKeys(objectDetail); + + detail.get(i3).put(mdmModuleDbFiledsEntities.get(i2).getEnName(),objectDetail); + } + + } + } + } + } + } + } + } + } + object.put(mdmModuleDbEntities.get(i).getDbName(),detail); + } + } + //执行脚本 + JSONObject groovy = new JSONObject(); + JSONObject parameterJson = new JSONObject(); + parameterJson.put("header",apiEntity.getHeaderIn()); + parameterJson.put("body",apiEntity.getBodyIn()); + parameterJson.put("query",apiEntity.getQueryIn()); + parameterJson.put("data",object); + + if (!"1".equals(type)) {//删除或者修改情况,查询三方id,有就设置,没有就设置空 + //1、根据主数据id、数据id、应用ID默认查询主数据应用下发三方id表,只查询最新的一条数据 + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setSts("Y"); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeTripartiteEntity.setDataId(object.getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity = mdmModuleDistributeTripartiteDao.queryOneTripartite(mdmModuleDistributeTripartiteEntity); + String tripartiteId = ""; + if(mdmModuleDistributeTripartiteEntity != null && mdmModuleDistributeTripartiteEntity.getTripartiteId() != null ){ + tripartiteId = mdmModuleDistributeTripartiteEntity.getTripartiteId(); + } + parameterJson.put("tripartiteId", tripartiteId); + } + /** head */ + Map header = null; + /** query */ + String querys = null; + /** body */ + String bodys = object.toJSONString(); + if(scriptEntity != null && scriptEntity.getId() != null ){ + groovy.put("code",scriptEntity.getScriptCode()); + groovy.put("className",scriptEntity.getClassName()); + groovy.put("name",scriptEntity.getScriptName()); + groovy.put("methodStr",scriptEntity.getScriptData()); + groovy.put("parameterJson",parameterJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr",groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + JSONObject jsonResultEntity = JSONObject.parseObject(str.toString()); + header = (Map) jsonResultEntity.get("header"); + querys = jsonResultEntity.getString("querys"); + bodys = jsonResultEntity.getString("bodys"); + }catch (Exception e){ + taskDetailEntity.setResult("分发脚本转换错误"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("分发脚本转换错误"); + } + } + Map headers = new HashMap<>(); + headers.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headers.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headers.put("appId",sysApplicationEntity.getAppId().toString()); + headers.put("apiCode",apiEntity.getApiCode().toString()); + if(header != null){ + headers.putAll(header); + } + if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) { + //找到登陆接口 + SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort()); + if (null == loginApi) { + taskDetailEntity.setResult("发送错误,认证接口不存在"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("发送错误,认证接口不存在"); + } + String rzquerys = getQuery(loginApi,null,null); + Map headersa = new HashMap<>(); + headersa.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headersa.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headersa.put("appId", sysApplicationEntity.getAppId().toString()); + headersa.put("apiCode", loginApi.getApiCode().toString()); + Map rzheaders = getHeaders(loginApi,headersa,null); + String rzbodys = getBodys(loginApi,null,null); + JsonResultEntity rzjsonResultEntity = sendData(loginApi,rzheaders,rzbodys,rzquerys); + if (!rzjsonResultEntity.isFlag()) { + taskDetailEntity.setResult("发送错误,认证接口错误"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("发送错误:"+rzjsonResultEntity.getMsg()); + } + JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString()); + logger.info("认证接口返回信息:"+ attritube.toJSONString()); + querys = getQuery(apiEntity,querys,attritube); + headers = getHeaders(apiEntity,headers,attritube); + + bodys = getBodys(apiEntity,bodys,attritube); + } + //组装数据发送 + JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys); + if(jsonResultEntity.isFlag()){ + if ("1".equals(type)) {//保存三方返回id + if (scriptEntity != null && scriptEntity.getId() != null && scriptEntity.getBackScriptData() != null ) { + JSONObject backScriptJson = new JSONObject(); + backScriptJson.put("data", jsonResultEntity.getAttribute()); + groovy.put("code", scriptEntity.getScriptCode()+"back"); + groovy.put("className", scriptEntity.getClassName()+"back"); + groovy.put("name", scriptEntity.getScriptName()+"back"); + groovy.put("methodStr", scriptEntity.getBackScriptData()); + groovy.put("parameterJson", backScriptJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr", groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + if(str != null){ + JSONObject backJsonResultEntity = JSONObject.parseObject(str.toString()); + if(backJsonResultEntity != null && backJsonResultEntity.getString("success") != null && "true".equals(backJsonResultEntity.getString("success"))){ + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setCreate(); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeTripartiteEntity.setDataId(object.getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity.setTripartiteId(backJsonResultEntity.getString("tripartiteId")); + mdmModuleDistributeTripartiteDao.save(mdmModuleDistributeTripartiteEntity); + } + } + } catch (Exception e) { + logger.error("新增返回脚本解析保存三方id错误"+jsonResultEntity.getAttribute()); + taskDetailEntity.setResult("新增返回脚本解析保存三方id错误"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("发送错误"); + } + } + } + taskDetailEntity.setResult("发送成功"); + taskLivingDetailsService.saveLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("发送成功"); + }else { + taskDetailEntity.setResult("发送错误"); + taskLivingDetailsService.updateLogFailToSuccess(taskDetailEntity); + return BaseResult.getFailureMessageEntity("发送错误"); + } + } + }else {//执行正常下发 + + //查询主数据 + MdmModuleEntity queryMdmModuleEntity = new MdmModuleEntity(); + queryMdmModuleEntity.setSts("Y"); + List mdmModuleEntities = mdmModuleDao.queryBase(queryMdmModuleEntity); + if(mdmModuleEntities == null || mdmModuleEntities.size() == 0){ + return BaseResult.getSuccessMessageEntity("主数据未设置,不需要下发"); + } + //查询下发的配置 没有直接跳过 + for (int i = 0; i < mdmModuleEntities.size(); i++) { + Long mdmCode = mdmModuleEntities.get(i).getMdmCode(); + MdmModuleDistributeEntity queryMdmModuleDistributeEntity = new MdmModuleDistributeEntity(); + queryMdmModuleDistributeEntity.setMdmId(mdmModuleEntities.get(i).getId()); + queryMdmModuleDistributeEntity.setEnabledType("1"); + queryMdmModuleDistributeEntity.setEnabledState("1"); + List mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(queryMdmModuleDistributeEntity); + if(mdmModuleDistributeEntities == null || mdmModuleDistributeEntities.size() == 0){ + continue; + } + //查询主数据db + MdmModuleDbEntity queryMdmModuleDbEntity = new MdmModuleDbEntity(); + queryMdmModuleDbEntity.setMdmId(mdmModuleEntities.get(i).getId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(queryMdmModuleDbEntity); + if(mdmModuleDbEntities == null || mdmModuleDbEntities.size() == 0){ + continue; + } + //查询主数据字段 + MdmModuleDbFiledsEntity queryFild = new MdmModuleDbFiledsEntity(); + queryFild.setMdmId(mdmModuleEntities.get(i).getId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(queryFild); + if(mdmModuleDbFiledsEntities == null || mdmModuleDbFiledsEntities.size() == 0){ + continue; + } + //字段的规则 + MdmModuleDbFiledsRuleEntity queryFildRule = new MdmModuleDbFiledsRuleEntity(); + queryFildRule.setMdmId(mdmModuleEntities.get(i).getId()); + queryFildRule.setRuleCode("service"); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(queryFildRule); + + //新增 + doAdd(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + //修改 + doUpdate(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + //删除 + doDelete(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + + } + + } + } + logger.info("执行成功"); + return BaseResult.getSuccessMessageEntity("执行成功"); + } catch (Exception e) { + logger.error("执行失败{}",e.getMessage()); + } + return BaseResult.getSuccessMessageEntity("执行成功"); + } + + private void doDelete(String mdmId,Long mainCode,List mdmModuleDbEntities, List mdmModuleDistributeEntities, List mdmModuleDbFiledsRuleEntities, List mdmModuleDbFiledsEntities) throws Exception { + //查询一千条数据 + String mainDb = null; + List objects = new ArrayList<>(); + for (int i2 = 0; i2 < mdmModuleDbEntities.size(); i2++) { + if("1".equals(mdmModuleDbEntities.get(i2).getDbType())) { + mainDb = mdmModuleDbEntities.get(i2).getDbName(); + } + } + if(mainDb == null){ + return; + } + Map map1 = new HashMap<>(); + map1.put("tableName",mainDb); + map1.put("dataStatus", "N"); + map1.put("deleteStatus", "0"); + map1.put("size", 10); + objects = mdmModuleDao.queryMdmSTs(map1); + objects = toLowerCaseKeys(objects); + + if(objects == null || objects.size() == 0){ + return; + } + for (int i1 = 0; i1 < mdmModuleDistributeEntities.size(); i1++) { + //查询下发的配置 + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity() ; + mdmModuleDistributeDetailEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); + mdmModuleDistributeDetailEntity.setSts("Y"); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + //查询这一千条数据是否符合规则 + Map map = new HashMap<>(); + map.put("tableName", mainDb); + map.put("dataStatus", "N"); + map.put("deleteStatus", "0"); + map.put("mdmModuleDistributeDetailEntities", mdmModuleDistributeDetailEntities); + map.put("ids", objects); + List doObjects = mdmModuleDao.queryMdmSTs(map); + doObjects = toLowerCaseKeys(doObjects); + + if(doObjects == null || doObjects.size() == 0){ + continue; + } + if(mdmModuleDistributeEntities.get(i1).getDeleteApi() == null || "".equals(mdmModuleDistributeEntities.get(i1).getDeleteApi())){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","删除接口未设置",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"3"); + } + return ; + } + SysApplicationApiEntity apiEntity = sysApplicationApiDao.get(mdmModuleDistributeEntities.get(i1).getDeleteApi()); + if(apiEntity == null || apiEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","删除接口未找到",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"3"); + } + return ; + } + SysApplicationEntity sysApplicationEntity = sysApplicationDao.get(apiEntity.getAppId()); + if(sysApplicationEntity == null || sysApplicationEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","删除接口的应用未找到",mainDb,objects.get(i).getString("id"),null,null,apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"3"); + } + return ; + } + + SysApplicationScriptEntity scriptEntity = null; + if(mdmModuleDistributeEntities.get(i1).getDeleteScript() != null && !"".equals(mdmModuleDistributeEntities.get(i1).getDeleteScript())){ + scriptEntity = sysApplicationScriptDao.get(mdmModuleDistributeEntities.get(i1).getDeleteScript()); + if(scriptEntity == null || scriptEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","删除接口脚本未找到",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"3"); + } + return ; + } + } + + for (int i = 0; i < doObjects.size(); i++) { + //查询发送日志是否已经有这条数据 + MdmModuleSendLogEntity mdmModuleSendLogEntity = new MdmModuleSendLogEntity(); + mdmModuleSendLogEntity.setTableName(mainDb+"_send_log"); + mdmModuleSendLogEntity.setFormmainId(doObjects.get(i).getString("id")); + mdmModuleSendLogEntity.setSts("Y"); + mdmModuleSendLogEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleSendLogEntity.setApiId(apiEntity.getId()); + //mdmModuleSendLogEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); + mdmModuleSendLogEntity.setOptionType("3"); + Integer num = mdmModuleSendLogDao.getCount(mdmModuleSendLogEntity); + if(num > 0){//已经过不发送 + continue; + } + getDetailData(mdmModuleDbEntities,doObjects.get(i),mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + + //执行脚本 + JSONObject groovy = new JSONObject(); + JSONObject parameterJson = new JSONObject(); + parameterJson.put("header",apiEntity.getHeaderIn()); + parameterJson.put("body",apiEntity.getBodyIn()); + parameterJson.put("query",apiEntity.getQueryIn()); + parameterJson.put("data",doObjects.get(i)); + + //1、根据主数据id、数据id、应用ID默认查询主数据应用下发三方id表,只查询最新的一条数据 + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setSts("Y"); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmId); + mdmModuleDistributeTripartiteEntity.setDataId(objects.get(i).getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity = mdmModuleDistributeTripartiteDao.queryOneTripartite(mdmModuleDistributeTripartiteEntity); + String tripartiteId = ""; + if(mdmModuleDistributeTripartiteEntity != null && mdmModuleDistributeTripartiteEntity.getTripartiteId() != null ){ + tripartiteId = mdmModuleDistributeTripartiteEntity.getTripartiteId(); + } + parameterJson.put("tripartiteId", tripartiteId); + + /** head */ + Map header = null; + /** query */ + String querys = null; + /** body */ + String bodys = doObjects.get(i).toJSONString(); + if(scriptEntity != null && scriptEntity.getId() != null ){ + groovy.put("code",scriptEntity.getScriptCode()); + groovy.put("className",scriptEntity.getClassName()); + groovy.put("name",scriptEntity.getScriptName()); + groovy.put("methodStr",scriptEntity.getScriptData()); + groovy.put("parameterJson",parameterJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr",groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + JSONObject jsonResultEntity = JSONObject.parseObject(str.toString()); + header = (Map) jsonResultEntity.get("header"); + querys = jsonResultEntity.getString("querys"); + bodys = jsonResultEntity.getString("bodys"); + }catch (Exception e){ + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","脚本处理失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"3"); + continue; + } + } + Map headers = new HashMap<>(); + headers.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headers.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headers.put("appId",sysApplicationEntity.getAppId().toString()); + headers.put("apiCode",apiEntity.getApiCode().toString()); + if(header != null){ + headers.putAll(header); + } + if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) { + //找到登陆接口 + SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort()); + if (null == loginApi) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口不存在",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + String rzquerys = getQuery(loginApi,null,null); + Map headersa = new HashMap<>(); + headersa.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headersa.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headersa.put("appId", sysApplicationEntity.getAppId().toString()); + headersa.put("apiCode", loginApi.getApiCode().toString()); + Map rzheaders = getHeaders(loginApi,headersa,null); + String rzbodys = getBodys(loginApi,null,null); + JsonResultEntity rzjsonResultEntity = sendData(loginApi,rzheaders,rzbodys,rzquerys); + if (!rzjsonResultEntity.isFlag()) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口错误",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString()); + querys = getQuery(apiEntity,querys,attritube); + headers = getHeaders(apiEntity,headers,attritube); + bodys = getBodys(apiEntity,bodys,attritube); + } + //组装数据发送 + JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys); + if(jsonResultEntity.isFlag()){ + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"3"); + continue; + }else { + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"3"); + continue; + } + } + + } + + //所有下发发送完成,修改数据状态 + for (int i = 0; i < objects.size(); i++) { + Map updateMap = new HashMap<>(); + updateMap.put("tableName",mainDb); + updateMap.put("dataStatus", "N"); + updateMap.put("deleteStatus", "1"); + updateMap.put("id", objects.get(i).getString("id")); + mdmModuleDao.updateMdmSTs(updateMap); + } + } + + private void doUpdate(String mdmId,Long mainCode,List mdmModuleDbEntities, List mdmModuleDistributeEntities, List mdmModuleDbFiledsRuleEntities, List mdmModuleDbFiledsEntities) throws Exception { + //查询一千条数据 + String mainDb = null; + List objects = new ArrayList<>(); + for (int i2 = 0; i2 < mdmModuleDbEntities.size(); i2++) { + if("1".equals(mdmModuleDbEntities.get(i2).getDbType())) { + mainDb = mdmModuleDbEntities.get(i2).getDbName(); + } + } + if(mainDb == null){ + return; + } + Map map1 = new HashMap<>(); + map1.put("tableName",mainDb); + //map1.put("dataStatus", "F"); + map1.put("updateStatus", "0"); + map1.put("size", 10); + objects = mdmModuleDao.queryMdmSTs(map1); + objects = toLowerCaseKeys(objects); + + if(objects == null || objects.size() == 0){ + return; + } + for (int i1 = 0; i1 < mdmModuleDistributeEntities.size(); i1++) { + //查询下发的配置 + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity() ; + mdmModuleDistributeDetailEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); + mdmModuleDistributeDetailEntity.setSts("Y"); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + //查询这一千条数据是否符合规则 + Map map = new HashMap<>(); + map.put("tableName", mainDb); + //map.put("dataStatus", "F"); + map.put("updateStatus", "0"); + map.put("mdmModuleDistributeDetailEntities", mdmModuleDistributeDetailEntities); + map.put("ids", objects); + List doObjects = mdmModuleDao.queryMdmSTs(map); + doObjects = toLowerCaseKeys(doObjects); + + if(doObjects == null || doObjects.size() == 0){ + continue; + } + if(mdmModuleDistributeEntities.get(i1).getUpdateApi() == null || "".equals(mdmModuleDistributeEntities.get(i1).getUpdateApi())){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","修改接口未设置",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"2"); + } + return ; + } + SysApplicationApiEntity apiEntity = sysApplicationApiDao.get(mdmModuleDistributeEntities.get(i1).getUpdateApi()); + if(apiEntity == null || apiEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","修改接口未查找到",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"2"); + } + return ; + } + SysApplicationEntity sysApplicationEntity = sysApplicationDao.get(apiEntity.getAppId()); + if(sysApplicationEntity == null || sysApplicationEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","应用未查找到",mainDb,objects.get(i).getString("id"),null,null,apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2"); + } + return ; + } + + SysApplicationScriptEntity scriptEntity = null; + if(mdmModuleDistributeEntities.get(i1).getUpdateScript() != null && !"".equals(mdmModuleDistributeEntities.get(i1).getUpdateScript())){ + scriptEntity = sysApplicationScriptDao.get(mdmModuleDistributeEntities.get(i1).getUpdateScript()); + if(scriptEntity == null || scriptEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","脚本未查找到",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2"); + } + return ; + } + } + + for (int i = 0; i < doObjects.size(); i++) { + + getDetailData(mdmModuleDbEntities,doObjects.get(i),mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + + //执行脚本 + JSONObject groovy = new JSONObject(); + JSONObject parameterJson = new JSONObject(); + parameterJson.put("header",apiEntity.getHeaderIn()); + parameterJson.put("body",apiEntity.getBodyIn()); + parameterJson.put("query",apiEntity.getQueryIn()); + parameterJson.put("data",doObjects.get(i)); + //1、根据主数据id、数据id、应用ID默认查询主数据应用下发三方id表,只查询最新的一条数据 + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setSts("Y"); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmId); + mdmModuleDistributeTripartiteEntity.setDataId(objects.get(i).getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity = mdmModuleDistributeTripartiteDao.queryOneTripartite(mdmModuleDistributeTripartiteEntity); + String tripartiteId = ""; + if(mdmModuleDistributeTripartiteEntity != null && mdmModuleDistributeTripartiteEntity.getTripartiteId() != null ){ + tripartiteId = mdmModuleDistributeTripartiteEntity.getTripartiteId(); + } + parameterJson.put("tripartiteId", tripartiteId); + /** head */ + Map header = null; + /** query */ + String querys = null; + /** body */ + String bodys = doObjects.get(i).toJSONString(); + if(scriptEntity != null && scriptEntity.getId() != null ){ + groovy.put("code",scriptEntity.getScriptCode()); + groovy.put("className",scriptEntity.getClassName()); + groovy.put("name",scriptEntity.getScriptName()); + groovy.put("methodStr",scriptEntity.getScriptData()); + groovy.put("parameterJson",parameterJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr",groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + JSONObject jsonResultEntity = JSONObject.parseObject(str.toString()); + header = (Map) jsonResultEntity.get("header"); + querys = jsonResultEntity.getString("querys"); + bodys = jsonResultEntity.getString("bodys"); + }catch (Exception e){ + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","脚本处理失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2"); + continue; + } + } + Map headers = new HashMap<>(); + headers.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headers.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headers.put("appId",sysApplicationEntity.getAppId().toString()); + headers.put("apiCode",apiEntity.getApiCode().toString()); + if(header != null){ + headers.putAll(header); + } + if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) { + //找到登陆接口 + SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort()); + if (null == loginApi) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口不存在",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + String rzquerys = getQuery(loginApi,null,null); + Map headersa = new HashMap<>(); + headersa.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headersa.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headersa.put("appId", sysApplicationEntity.getAppId().toString()); + headersa.put("apiCode", loginApi.getApiCode().toString()); + Map rzheaders = getHeaders(loginApi,headersa,null); + String rzbodys = getBodys(loginApi,null,null); + JsonResultEntity rzjsonResultEntity = sendData(loginApi,rzheaders,rzbodys,rzquerys); + if (!rzjsonResultEntity.isFlag()) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口错误",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString()); + querys = getQuery(apiEntity,querys,attritube); + headers = getHeaders(apiEntity,headers,attritube); + bodys = getBodys(apiEntity,bodys,attritube); + } + //组装数据发送 + JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys); + if(jsonResultEntity.isFlag()){ + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2"); + continue; + }else { + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2"); + continue; + } + } + } + + //所有下发发送完成,修改数据状态 + for (int i = 0; i < objects.size(); i++) { + Map updateMap = new HashMap<>(); + updateMap.put("tableName",mainDb); + //updateMap.put("dataStatus", "F"); + updateMap.put("updateStatus", "1"); + updateMap.put("id", objects.get(i).getString("id")); + mdmModuleDao.updateMdmSTs(updateMap); + } + } + + /** + * @Author lvleigang + * @Description 处理新增数据 + * @Date 1:55 下午 2024/6/19 + * @param mdmModuleDbEntities + * @param mdmModuleDistributeEntities + * @return void + **/ + private void doAdd(String mdmId,Long mainCode,List mdmModuleDbEntities, List mdmModuleDistributeEntities,List mdmModuleDbFiledsRuleEntities,List mdmModuleDbFiledsEntities ) throws Exception { + //查询一千条数据 + String mainDb = null; + List objects = new ArrayList<>(); + for (int i2 = 0; i2 < mdmModuleDbEntities.size(); i2++) { + if("1".equals(mdmModuleDbEntities.get(i2).getDbType())) { + mainDb = mdmModuleDbEntities.get(i2).getDbName(); + } + } + if(mainDb == null){ + return; + } + Map map1 = new HashMap<>(); + map1.put("tableName",mainDb); + //map1.put("dataStatus", "Y"); + map1.put("addStatus", "0"); + map1.put("size", 100); + objects = mdmModuleDao.queryMdmSTs(map1); + objects = toLowerCaseKeys(objects); + + if(objects == null || objects.size() == 0){ + return; + } + for (int i1 = 0; i1 < mdmModuleDistributeEntities.size(); i1++) { + //查询下发的配置 + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity() ; + mdmModuleDistributeDetailEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); + mdmModuleDistributeDetailEntity.setSts("Y"); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + //查询这一千条数据是否符合规则 + Map map = new HashMap<>(); + map.put("tableName", mainDb); + //map.put("dataStatus", "Y"); + map.put("addStatus", "0"); + map.put("mdmModuleDistributeDetailEntities", mdmModuleDistributeDetailEntities); + map.put("ids", objects); + List doObjects = mdmModuleDao.queryMdmSTs(map); + doObjects = toLowerCaseKeys(doObjects); + + if(doObjects == null || doObjects.size() == 0){ + continue; + } + if(mdmModuleDistributeEntities.get(i1).getAddApi() == null || "".equals(mdmModuleDistributeEntities.get(i1).getAddApi())){ + for (int i = 0; i < doObjects.size(); i++) { + //taskLivingDetailsService.saveLogToSuccess(); + saveMdmModuleSendLogEntity( mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","新增接口未设置",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"1"); + } + return ; + } + SysApplicationApiEntity apiEntity = sysApplicationApiDao.get(mdmModuleDistributeEntities.get(i1).getAddApi()); + if(apiEntity == null || apiEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","新增接口未查找到",mainDb,objects.get(i).getString("id"),null,null,null,null,doObjects.get(i).toJSONString(),"1"); + } + return ; + } + SysApplicationEntity sysApplicationEntity = sysApplicationDao.get(apiEntity.getAppId()); + if(sysApplicationEntity == null || sysApplicationEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","应用未查找到",mainDb,objects.get(i).getString("id"),null,null,apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + } + return ; + } + + SysApplicationScriptEntity scriptEntity = null; + if(mdmModuleDistributeEntities.get(i1).getAddScript() != null && !"".equals(mdmModuleDistributeEntities.get(i1).getAddScript())){ + scriptEntity = sysApplicationScriptDao.get(mdmModuleDistributeEntities.get(i1).getAddScript()); + if(scriptEntity == null || scriptEntity.getId() == null ){ + for (int i = 0; i < doObjects.size(); i++) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","脚本未查找到",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + } + return ; + } + } + + for (int i = 0; i < doObjects.size(); i++) { + //查询是否已经手动发送过。只有新增校验,查询发送日志是否已经有这条数据 + MdmModuleSendLogEntity mdmModuleSendLogEntity = new MdmModuleSendLogEntity(); + mdmModuleSendLogEntity.setTableName(mainDb+"_send_log"); + mdmModuleSendLogEntity.setFormmainId(doObjects.get(i).getString("id")); + mdmModuleSendLogEntity.setSts("Y"); + mdmModuleSendLogEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleSendLogEntity.setApiId(apiEntity.getId()); + //mdmModuleSendLogEntity.setDistributeId(mdmModuleDistributeEntities.get(i1).getId()); + mdmModuleSendLogEntity.setOptionType("1"); + Integer num = mdmModuleSendLogDao.getCount(mdmModuleSendLogEntity); + if(num > 0){//已经新增过不发送 + continue; + } + getDetailData(mdmModuleDbEntities,doObjects.get(i),mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities); + + //执行脚本 + JSONObject groovy = new JSONObject(); + JSONObject parameterJson = new JSONObject(); + parameterJson.put("header",apiEntity.getHeaderIn()); + parameterJson.put("body",apiEntity.getBodyIn()); + parameterJson.put("query",apiEntity.getQueryIn()); + parameterJson.put("data",doObjects.get(i)); + //1、根据主数据id、数据id、应用ID默认查询主数据应用下发三方id表,只查询最新的一条数据 + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity1 = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity1.setSts("Y"); + mdmModuleDistributeTripartiteEntity1.setMdmId(mdmId); + mdmModuleDistributeTripartiteEntity1.setDataId(objects.get(i).getString("id")); + mdmModuleDistributeTripartiteEntity1.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity1 = mdmModuleDistributeTripartiteDao.queryOneTripartite(mdmModuleDistributeTripartiteEntity1); + String tripartiteId = ""; + if(mdmModuleDistributeTripartiteEntity1 != null && mdmModuleDistributeTripartiteEntity1.getTripartiteId() != null ){ + tripartiteId = mdmModuleDistributeTripartiteEntity1.getTripartiteId(); + } + parameterJson.put("tripartiteId", tripartiteId); + /** head */ + Map header = null; + /** query */ + String querys = null; + /** body */ + String bodys = doObjects.get(i).toJSONString(); + if(scriptEntity != null && scriptEntity.getId() != null ){ + groovy.put("code",scriptEntity.getScriptCode()); + groovy.put("className",scriptEntity.getClassName()); + groovy.put("name",scriptEntity.getScriptName()); + groovy.put("methodStr",scriptEntity.getScriptData()); + groovy.put("parameterJson",parameterJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr",groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + JSONObject jsonResultEntity = JSONObject.parseObject(str.toString()); + header = (Map) jsonResultEntity.get("header"); + querys = jsonResultEntity.getString("querys"); + bodys = jsonResultEntity.getString("bodys"); + }catch (Exception e){ + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","脚本处理失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + } + Map headers = new HashMap<>(); + headers.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headers.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headers.put("appId",sysApplicationEntity.getAppId().toString()); + headers.put("apiCode",apiEntity.getApiCode().toString()); + if(header != null){ + headers.putAll(header); + } + if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) { + //找到登陆接口 + SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort()); + if (null == loginApi) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口不存在",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + String rzquerys = getQuery(loginApi,null,null); + Map headersa = new HashMap<>(); + headersa.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headersa.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headersa.put("appId", sysApplicationEntity.getAppId().toString()); + headersa.put("apiCode", loginApi.getApiCode().toString()); + Map rzheaders = getHeaders(loginApi,headersa,null); + String rzbodys = getBodys(loginApi,null,null); + JsonResultEntity rzjsonResultEntity = sendData(loginApi,rzheaders,rzbodys,rzquerys); + if (!rzjsonResultEntity.isFlag()) { + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","发送错误,认证接口错误",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString()); + querys = getQuery(apiEntity,querys,attritube); + headers = getHeaders(apiEntity,headers,attritube); + bodys = getBodys(apiEntity,bodys,attritube); + } + + //组装数据发送 + JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys); + if(jsonResultEntity.isFlag()){ + if (scriptEntity != null && scriptEntity.getId() != null && scriptEntity.getBackScriptData() != null ) { + JSONObject backScriptJson = new JSONObject(); + backScriptJson.put("data", jsonResultEntity.getAttribute()); + groovy.put("code", scriptEntity.getScriptCode()+"back"); + groovy.put("className", scriptEntity.getClassName()+"back"); + groovy.put("name", scriptEntity.getScriptName()+"back"); + groovy.put("methodStr", scriptEntity.getBackScriptData()); + groovy.put("parameterJson", backScriptJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr", groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + if(str != null){ + JSONObject backJsonResultEntity = JSONObject.parseObject(str.toString()); + if(backJsonResultEntity != null && backJsonResultEntity.getString("success") != null && "true".equals(backJsonResultEntity.getString("success"))){ + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setId(UUIDUtils.getUUID()); + mdmModuleDistributeTripartiteEntity.setSts("Y"); + mdmModuleDistributeTripartiteEntity.setCreate_user_id("1"); + mdmModuleDistributeTripartiteEntity.setModify_user_id("1"); + mdmModuleDistributeTripartiteEntity.setCreate_time(new Date()); + mdmModuleDistributeTripartiteEntity.setModify_time(new Date()); + mdmModuleDistributeTripartiteEntity.setOrg_id("0"); + mdmModuleDistributeTripartiteEntity.setCompanyId("0"); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmId); + mdmModuleDistributeTripartiteEntity.setDataId(objects.get(i).getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity.setTripartiteId(backJsonResultEntity.getString("tripartiteId")); + mdmModuleDistributeTripartiteDao.save(mdmModuleDistributeTripartiteEntity); + } + } + } catch (Exception e) { + logger.error("新增返回脚本解析保存三方id错误"+jsonResultEntity.getAttribute()); + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","新增返回脚本解析保存三方id错误",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + } + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + }else { + //保存日志 + saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1"); + continue; + } + } + } + + //所有下发发送完成,修改数据状态 + for (int i = 0; i < objects.size(); i++) { + Map updateMap = new HashMap<>(); + updateMap.put("tableName",mainDb); + //updateMap.put("dataStatus", "Y"); + updateMap.put("addStatus", "1"); + updateMap.put("id", objects.get(i).getString("id")); + mdmModuleDao.updateMdmSTs(updateMap); + } + } + + private void saveMdmModuleSendLogEntity(Long mdmCode,String distributeId,String dataType,String remark,String dbname,String formmain_id, String target_app, String appId, String target_api,String apiID, String source_data, String option_type) throws Exception { + MdmModuleSendLogEntity mdmModuleSendLogEntity = new MdmModuleSendLogEntity(); + mdmModuleSendLogEntity.setTableName(dbname+"_send_log"); + mdmModuleSendLogEntity.setId(UUIDUtils.getUUID()); + mdmModuleSendLogEntity.setSts("Y"); + mdmModuleSendLogEntity.setDistributeId(distributeId); + mdmModuleSendLogEntity.setAppId(appId); + mdmModuleSendLogEntity.setApiId(apiID); + mdmModuleSendLogEntity.setCreate_user_id("1"); + mdmModuleSendLogEntity.setModify_user_id("1"); + mdmModuleSendLogEntity.setCreate_time(new Date()); + mdmModuleSendLogEntity.setModify_time(new Date()); + mdmModuleSendLogEntity.setOrg_id("0"); + mdmModuleSendLogEntity.setCompanyId("0"); + mdmModuleSendLogEntity.setFormmainId(formmain_id); + mdmModuleSendLogEntity.setTargetApp(target_app); + mdmModuleSendLogEntity.setTargetApi(target_api); + mdmModuleSendLogEntity.setSourceData(source_data); + mdmModuleSendLogEntity.setOptionType(option_type); + mdmModuleSendLogEntity.setDataType(dataType); + mdmModuleSendLogEntity.setRemark(remark); + mdmModuleSendLogDao.save(mdmModuleSendLogEntity); + + + JSONObject jsonObject = JSONObject.parseObject(source_data); + IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity(); + integrationTaskLivingDetailsEntity.setId(UUIDUtils.getUUID()); + integrationTaskLivingDetailsEntity.setSts("Y"); + integrationTaskLivingDetailsEntity.setCreate_user_id("1"); + integrationTaskLivingDetailsEntity.setModify_user_id("1"); + integrationTaskLivingDetailsEntity.setCreate_time(new Date()); + integrationTaskLivingDetailsEntity.setModify_time(new Date()); + integrationTaskLivingDetailsEntity.setOrg_id("0"); + integrationTaskLivingDetailsEntity.setCompanyId("0"); + JSONObject aa = new JSONObject(); + aa.put("mdmCode",mdmCode);//主数据编码 + aa.put("documentRule",jsonObject.getString("document_rule"));//行数据的单据规则编码 + aa.put("distributeId",distributeId);//发送表id + aa.put("type",option_type);//发送类型,1、新增2、修改3、删除 + integrationTaskLivingDetailsEntity.setRootAppPk(aa.toJSONString()); + integrationTaskLivingDetailsEntity.setRootAppBill(jsonObject.getString("document_rule")); + integrationTaskLivingDetailsEntity.setPluginId("MdmModulePlugin"); + integrationTaskLivingDetailsEntity.setRootAppNewData(source_data); + integrationTaskLivingDetailsEntity.setNewTransmitInfo(remark); + if("1".equals(dataType)){ + taskLivingDetailsService.saveLogToSuccess(integrationTaskLivingDetailsEntity); + }else { + taskLivingDetailsService.saveLogToFail(integrationTaskLivingDetailsEntity); + + } + + } + + private JSONObject getDetailData(List mdmModuleDbEntities, JSONObject object, List mdmModuleDbFiledsRuleEntities,List mdmModuleDbFiledsEntities) { + + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if("2".equals(mdmModuleDbEntities.get(i).getDbType())){ + Map map = new HashMap<>(); + map.put("tableName",mdmModuleDbEntities.get(i).getDbName()); + map.put("formmainId",object.getString("id")); + List detail = mdmModuleDao.queryMdmSTDetail(map); + detail = toLowerCaseKeys(detail); + + //查看主表是否有字段是关联的 + if(detail != null && detail.size() > 0){ + if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){ + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i).getId())){ + if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){ + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if(mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())){ + for (int i3 = 0; i3 < detail.size(); i3++) { + if(detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()) != null){ + Map mapDetail = new HashMap<>(); + mapDetail.put("tableName",mdmModuleDbFiledsRuleEntities.get(i1).getRuleValue()); + String ids = detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()); + String[] idss = ids.split(","); + mapDetail.put("id", idss[idss.length-1]); + JSONObject objectDetail = mdmModuleDao.queryMdmST(mapDetail); + objectDetail = toLowerCaseKeys(objectDetail); + + detail.get(i3).put(mdmModuleDbFiledsEntities.get(i2).getEnName(),objectDetail); + } + } + } + } + } + } + } + } + } + object.put(mdmModuleDbEntities.get(i).getDbName(),detail); + } + } + + return object; + } + + + private JsonResultEntity sendData(SysApplicationApiEntity applicationApiEntity, Map headers ,String bodys ,String querys) { + StringBuffer urls = new StringBuffer(url); + if (querys != null) { + urls.append("?"); + urls.append(querys); + } + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpPost post = new HttpPost(urls.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(Integer.valueOf(applicationApiEntity.getTimeoutPeriod())).build(); + post.setConfig(requestConfig);//设置请求参数【超时时间】 + + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + post.setHeader(key, headers.get(key)); + } + } + StringBuilder body = new StringBuilder(); + boolean flag = true; + try { + if (bodys != null && !"".equals(bodys)) { + ByteArrayEntity entity = new ByteArrayEntity(bodys.getBytes("UTF-8")); + entity.setContentType("application/json"); + post.setEntity(entity); + } + response = closeableHttpClient.execute(post); + + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body.append(EntityUtils.toString(entity,"UTF-8")); + } + flag = true; + logger.info("返回结果:" + body); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + body.append(e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + + } + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JsonResultEntity jsonResultEntity = JSONObject.parseObject(body.toString(),JsonResultEntity.class); + if(jsonResultEntity.isFlag()){ + return BaseResult.getSuccessMessageEntity("转发成功", body); + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } + + + private Map getHeaders(SysApplicationApiEntity loginApi,Map map,JSONObject loginData) { + if(loginData == null){ + loginData = new JSONObject(); + } + if (loginApi.getHeaderIn() != null && !"".equals(loginApi.getHeaderIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getHeaderIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getHeaderIn()); + for (int i = 0; i < headerArray.size(); i++) { + JSONObject querys = headerArray.getJSONObject(i); + //query 只有基本类型,不用循环判断下级 + //判断参数是否有值 + //获取对象下面的层级数据 + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), logValue); + } + } else { + if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + if(map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null){ + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), querys.getString(SysEnum.EXAMPLE.getValue())); + } + } else {//没有值直接拼接 + if(map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null){ + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), ""); + } + } + } + } + } + } + return map; + + + + + } + + + private String getQuery(SysApplicationApiEntity loginApi,String sendDatastr,JSONObject loginData) { + Map map = new HashMap<>(); + if(sendDatastr != null){ + String[] parts = sendDatastr.split("&"); + if(parts != null && parts.length > 0){ + for (int i = 0; i < parts.length; i++) { + String[] part = parts[i].split("="); + if(part != null && part.length >=2 ){ + for (int a = 0; a < part.length; a++) { + map.put(part[0],part[1]); + } + } + } + } + } + if(loginData == null){ + loginData = new JSONObject(); + } + if (loginApi.getQueryIn() != null && !"".equals(loginApi.getQueryIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getQueryIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getQueryIn()); + for (int i = 0; i < headerArray.size(); i++) { + JSONObject querys = headerArray.getJSONObject(i); + //query 只有基本类型,不用循环判断下级 + //判断参数是否有值 + //获取对象下面的层级数据 + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), logValue); + } + } else { + //不是认证类型直接取值 + if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + if(map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null){ + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), querys.getString(SysEnum.EXAMPLE.getValue())); + } + } else {//没有值直接拼接 + if(map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null){ + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), ""); + } + } + } + } + } + } + StringBuffer returnStr = new StringBuffer(); + if(map != null && map.size() > 0){ + for (String key : map.keySet()) { + if("".equals(returnStr)){ + returnStr.append(key).append("=").append(map.get(key)); + }else { + returnStr.append("&").append(key).append("=").append(map.get(key)); + } + } + } + return returnStr.toString(); + } + /** + * @param loginData + * @param example + * @return java.lang.String + * @Author lvleigang + * @Description 根据jsonArray 获取jsonobject中的值 + * @Date 11:47 上午 2023/8/31 + **/ + private String getObjectValue(JSONObject loginData, JSONArray example) { + String values = ""; + if (example != null && example.size() > 0) { + for (int i = 0; i < example.size(); i++) { + if (loginData.getString(example.getString(i)) != null && !"".equals(loginData.getString(example.getString(i)))) { + if (i == (example.size() - 1)) { + values = loginData.getString(example.getString(i)); + } else { + loginData = JSONObject.parseObject(loginData.getString(example.getString(i))); + } + } else { + return values; + } + } + } + return values; + } + private String getBodys(SysApplicationApiEntity loginApi,String sendDatastr, JSONObject loginData) { + JSONObject sendData = new JSONObject(); + if(sendDatastr != null ){ + sendData = JSONObject.parseObject(sendDatastr); + } + if(loginData == null){ + loginData = new JSONObject(); + } + if (loginApi.getBodyIn() != null && !"".equals(loginApi.getBodyIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getBodyIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getBodyIn()); + for (int i = 0; i < headerArray.size(); i++) { + //获取到第一个数据 + JSONObject querys = headerArray.getJSONObject(i); + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + sendData.put(querys.getString(SysEnum.PARAMETERNAME.getValue()),logValue); + } + } + } + } + } + return sendData.toString(); + } + public JSONObject toLowerCaseKeys(JSONObject jsonObject) { + JSONObject lowerCaseJson = new JSONObject(); + if (jsonObject != null) { + for (String key : jsonObject.keySet()) { + Object value = jsonObject.get(key); + lowerCaseJson.put(key.toLowerCase(), value); + } + } + return lowerCaseJson; + } + public List toLowerCaseKeys(List list) { + List jsonObjects = new ArrayList<>(); + if (list != null && list.size() > 0) { + for (int i = 0; i < list.size(); i++) { + jsonObjects.add(toLowerCaseKeys(list.get(i))); + } + } + return jsonObjects; + } +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/seeyonExt/plugin/SeeyonExtPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/seeyonExt/plugin/SeeyonExtPluginInitializer.java new file mode 100644 index 00000000..94c446d8 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/seeyonExt/plugin/SeeyonExtPluginInitializer.java @@ -0,0 +1,138 @@ +package com.hzya.frame.plugin.seeyonExt.plugin; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.seeyon.service.ISeeYonInterFace; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.HashMap; +import java.util.Map; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/5/15 08:34 + **/ +public class SeeyonExtPluginInitializer extends PluginBaseEntity { + Logger logger = LoggerFactory.getLogger(SeeyonExtPluginInitializer.class); + @Autowired + private IIntegrationTaskLivingDetailsService taskLivingDetailsService; + @Autowired + private ISeeYonInterFace seeyInterFace; + /*** + * 插件初始化方法 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 10:48 + * @Param [] + * @return void + **/ + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法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 "SeeyonExtPlugin"; + } + + /**** + * 插件的名称 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginName() { + return "seeyonExt插件"; + } + + /**** + * 插件的显示值 + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2023-08-02 10:48 + * @return void + **/ + @Override + public String getPluginLabel() { + return "seeyonExt插件"; + } + + /*** + * 插件类型 1、场景插件 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-02 14:01 + * @Param [] + * @return java.lang.String + **/ + @Override + public String getPluginType() { + return "1"; + } + + /*** + * seeyonExt 重试专用插件 + * @Since 3.0 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-08-07 11:20 + * @param requestJson 执行业务代码的参数 + * @return void + **/ + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception { + try { + //重试方法 + if (null != requestJson){ + //JSONObject jsonStr = requestJson.getJSONObject("jsonStr"); + //如果这个id不为空,说明是重试的 + String id = requestJson.getString("integration_task_living_details_id"); + if (StrUtil.isNotEmpty(id)){ + //查询日志表 + IntegrationTaskLivingDetailsEntity taskDetailEntity = taskLivingDetailsService.get(id); + if (null != taskDetailEntity && JSONUtil.isTypeJSON(taskDetailEntity.getRootAppPk())){ + //拿到这张表的源系统ID + JSONObject jsonObject = JSONObject.parseObject(taskDetailEntity.getRootAppPk()); + MapextData = new HashMap<>(); + extData.put("integration_task_living_details_id",id);//把日志id放到hzyaExtData中,下游方法从这个对象里取 + jsonObject.put("hzyaExtData",extData); + JSONObject param = new JSONObject(); + param.put("jsonStr", JSON.toJSONString(jsonObject)); + //调用seeyon标准重试方法 + seeyInterFace.thirdInterfaceSeeYonDefinitionRePush(param); + } + } + } + logger.info("执行成功"); + return BaseResult.getSuccessMessageEntity("执行成功"); + }catch (Exception e){ + e.printStackTrace(); + } + return BaseResult.getSuccessMessageEntity("执行成功"); + } +} diff --git a/buildpackage/src/main/resources/application-ax.yml b/buildpackage/src/main/resources/application-ax.yml index ffd172f8..fda31564 100644 --- a/buildpackage/src/main/resources/application-ax.yml +++ b/buildpackage/src/main/resources/application-ax.yml @@ -19,5 +19,5 @@ spring: savefile: # 文件保存路径 path: E:\yongansystem\file -ax: +zt: url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file diff --git a/buildpackage/src/main/resources/application-dev.yml b/buildpackage/src/main/resources/application-dev.yml index bf76fb9c..5e9c4b36 100644 --- a/buildpackage/src/main/resources/application-dev.yml +++ b/buildpackage/src/main/resources/application-dev.yml @@ -2,20 +2,41 @@ logging: #日志级别 指定目录级别 level: - root: info + root: warn encodings: UTF-8 file: + # 日志保存路径 path: /home/webservice/zt/log spring: datasource: dynamic: datasource: master: - url: jdbc:mysql://hzya.ufyct.com:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true username: root - password: bd993088e8a7c3dc5f44441617f9b4bf + password: 62e4295b615a30dbf3b8ee96f41c820b driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 savefile: + # 文件保存路径 path: /home/webservice/zt/file -ax: - url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file +# path: D:\webservice\file +# pluginpath: D:\webservice\plugin + pluginpath: /home/webservice/zt/plugin +# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\ + tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/ +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826 + #电子回单下载临时存放位置 + elec_path: /Users/xiangerlin/Downloads/ +OA: + data_source_code: yc_oa +zt: + url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file diff --git a/buildpackage/src/main/resources/application-hclocal.yml b/buildpackage/src/main/resources/application-hclocal.yml index 5d960999..1ec327da 100644 --- a/buildpackage/src/main/resources/application-hclocal.yml +++ b/buildpackage/src/main/resources/application-hclocal.yml @@ -6,18 +6,22 @@ logging: encodings: UTF-8 file: # 日志保存路径 - path: /Users/apple/Desktop/log/local + path: D:\yongansystem\kangarooDataCenter\v3\logs spring: datasource: dynamic: datasource: master: - url: jdbc:mysql://hzya.ufyct.com:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true - username: root - password: bd993088e8a7c3dc5f44441617f9b4bf - driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +# url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true +# username: root +# password: bd993088e8a7c3dc5f44441617f9b4bf +# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: 62e4295b615a30dbf3b8ee96f41c820b + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 savefile: # 文件保存路径 - path: /Users/apple/Desktop/log/local -ax: - url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file + path: D:\yongansystem\kangarooDataCenter\v3\logs +zt: + url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface diff --git a/buildpackage/src/main/resources/application-llg.yml b/buildpackage/src/main/resources/application-llg.yml index 68215052..1052e7fa 100644 --- a/buildpackage/src/main/resources/application-llg.yml +++ b/buildpackage/src/main/resources/application-llg.yml @@ -5,19 +5,56 @@ logging: root: info encodings: UTF-8 file: -# 日志保存路径 + # 日志保存路径 path: /Users/apple/Desktop/log/local spring: + data: + mongodb: +# host: 192.168.2.237 +# port: 27017 +# database: businesscenter +# auto-index-creation: true +# password: hzya1314 +# username: hzya + flyway: + # 启动flyway migration, 默认为true + enabled: false datasource: dynamic: + druid: + filters: stat,log4j2 datasource: master: +# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle +# username: hzyazt +# password: 62e4295b615a30dbf3b8ee96f41c820b +# driver-class-name: dm.jdbc.driver.DmDriver +# type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true username: root - password: 62e4295b615a30dbf3b8ee96f41c820b + password: bd993088e8a7c3dc5f44441617f9b4bf driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 +# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle +# username: hzyazt +# password: 62e4295b615a30dbf3b8ee96f41c820b +# driver-class-name: dm.jdbc.driver.DmDriver savefile: - # 文件保存路径 + # 文件保存路径 path: /Users/apple/Desktop/log/local -ax: - url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file +zt: + url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826 + #电子回单下载临时存放位置 + elec_path: /Users/xiangerlin/Downloads/ +OA: + data_source_code: yc_oa \ No newline at end of file diff --git a/buildpackage/src/main/resources/application-local.yml b/buildpackage/src/main/resources/application-local.yml index 5d960999..66d151f2 100644 --- a/buildpackage/src/main/resources/application-local.yml +++ b/buildpackage/src/main/resources/application-local.yml @@ -12,12 +12,12 @@ spring: dynamic: datasource: master: - url: jdbc:mysql://hzya.ufyct.com:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true username: root - password: bd993088e8a7c3dc5f44441617f9b4bf + password: 62e4295b615a30dbf3b8ee96f41c820b driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 savefile: # 文件保存路径 path: /Users/apple/Desktop/log/local -ax: - url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file +zt: + url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface diff --git a/buildpackage/src/main/resources/application-xel.yml b/buildpackage/src/main/resources/application-xel.yml new file mode 100644 index 00000000..e53ca4c4 --- /dev/null +++ b/buildpackage/src/main/resources/application-xel.yml @@ -0,0 +1,35 @@ +#######################本地环境####################### +logging: + #日志级别 指定目录级别 + level: + root: info + encodings: UTF-8 + file: +# 日志保存路径 + path: /Users/xiangerlin/work/app/logs/dev +spring: + datasource: + dynamic: + datasource: + master: + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: 62e4295b615a30dbf3b8ee96f41c820b + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +savefile: + # 文件保存路径 + path: /Users/xiangerlin/work/app/file/dev +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185 + #电子回单下载临时存放位置 + elec_path: /Users/xiangerlin/Downloads/ +OA: + data_source_code: yc-test diff --git a/buildpackage/src/main/resources/application-yc.yml b/buildpackage/src/main/resources/application-yc.yml new file mode 100644 index 00000000..b2e3e2cf --- /dev/null +++ b/buildpackage/src/main/resources/application-yc.yml @@ -0,0 +1,90 @@ +#logging: +# #日志级别 指定目录级别 +# level: +# root: info +# encodings: UTF-8 +# file: +# # 日志保存路径 +# path: /zt/log +#spring: +# flyway: +# # 启动flyway migration, 默认为true +# enabled: false +# datasource: +# dynamic: +# druid: +# filters: stat,log4j2 +# datasource: +# master: +# url: jdbc:dm://10.75.51.82:5238?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle +# username: businesscenter +# password: 6842568689469adad597d144ee104063 +# driver-class-name: dm.jdbc.driver.DmDriver +#savefile: +# # 文件保存路径 +# path: /zt/file +#公司mysql +#ax: +# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface +#logging: +# #日志级别 指定目录级别warn +# level: +# root: info +# encodings: UTF-8 +# file: +# # 日志保存路径 +# path: /home/webservice/zt/log +#spring: +# datasource: +# dynamic: +# datasource: +# master: +# url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true +# username: root +# password: 62e4295b615a30dbf3b8ee96f41c820b +# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +#savefile: +# # 文件保存路径 +# path: /home/webservice/zt/file + + +#公司服务器达梦 +logging: + #日志级别 指定目录级别 + level: + root: info + encodings: UTF-8 + file: + # 日志保存路径 + path: /zt/log +spring: + flyway: + # 启动flyway migration, 默认为true + enabled: false + datasource: + dynamic: + druid: + filters: stat,log4j2 + datasource: + master: + url: jdbc:dm://ufidahz.com.cn:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle + username: hzyazt + password: 62e4295b615a30dbf3b8ee96f41c820b + driver-class-name: dm.jdbc.driver.DmDriver +savefile: + # 文件保存路径 + path: /zt/file +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826 + #电子回单下载临时存放位置 + elec_path: /zt/elecfile +OA: + data_source_code: yc_oa diff --git a/buildpackage/src/main/resources/application-ydc.yml b/buildpackage/src/main/resources/application-ydc.yml new file mode 100644 index 00000000..3038dda0 --- /dev/null +++ b/buildpackage/src/main/resources/application-ydc.yml @@ -0,0 +1,21 @@ +#######################本地环境####################### +logging: + #日志级别 指定目录级别 + level: + root: info + encodings: UTF-8 + file: +# 日志保存路径 + path: /Users/xiangerlin/work/app/logs/ydc +spring: + datasource: + dynamic: + datasource: + master: + url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: bd993088e8a7c3dc5f44441617f9b4bf + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +savefile: + # 文件保存路径 + path: /Users/xiangerlin/work/app/logs/ydc diff --git a/buildpackage/src/main/resources/application-yuecheng.yml b/buildpackage/src/main/resources/application-yuecheng.yml new file mode 100644 index 00000000..7e081ecb --- /dev/null +++ b/buildpackage/src/main/resources/application-yuecheng.yml @@ -0,0 +1,31 @@ +#######################本地环境####################### +logging: + #日志级别 指定目录级别 + level: + root: info + encodings: UTF-8 + file: +# 日志保存路径 + path: /Users/xiangerlin/work/app/logs/yuecheng +spring: + datasource: + dynamic: + datasource: + master: + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: 62e4295b615a30dbf3b8ee96f41c820b + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +savefile: + # 文件保存路径 + path: /Users/xiangerlin/work/app/logs/yuecheng +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185 diff --git a/buildpackage/src/main/resources/application-yuqh.yml b/buildpackage/src/main/resources/application-yuqh.yml new file mode 100644 index 00000000..d114d224 --- /dev/null +++ b/buildpackage/src/main/resources/application-yuqh.yml @@ -0,0 +1,23 @@ +#######################本地环境####################### +logging: + #日志级别 指定目录级别 + level: + root: info + encodings: UTF-8 + file: +# 日志保存路径 + path: E:\yongansystem\log +spring: + datasource: + dynamic: + datasource: + master: + url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: bd993088e8a7c3dc5f44441617f9b4bf + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +savefile: + # 文件保存路径 + path: E:\yongansystem\log +zt: + url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface diff --git a/buildpackage/src/main/resources/application-zqtlocal.yml b/buildpackage/src/main/resources/application-zqtlocal.yml new file mode 100644 index 00000000..a656bd59 --- /dev/null +++ b/buildpackage/src/main/resources/application-zqtlocal.yml @@ -0,0 +1,39 @@ +#######################zqtlocal环境####################### +logging: + #日志级别 指定目录级别 + level: + root: warn + encodings: UTF-8 + file: + # 日志保存路径 + path: D:/local/logs/ +spring: + datasource: + dynamic: + datasource: + master: + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + username: root + password: 62e4295b615a30dbf3b8ee96f41c820b + driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 +savefile: + # 文件保存路径 + path: D:/local/upload/ + pluginpath : D:/local/plugin/ + tomcatpath: E:\apache-tomcat-9.0.27\webapps\kangarooDataCenterV3\WEB-INF\classes\ +cbs8: + appId: 1P4AGrpz + appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a + url: https://cbs8-openapi-reprd.csuat.cmburl.cn + # 测试用这个 这个是银行给的,和下面的公钥不是一对密钥 + ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44 + # 这个私钥到时候上传到cbs,和下面到是同一对 + #ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46 + ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde + cbs_public_key: 0469146F06BF3B01236E84632441E826 + #电子回单下载临时存放位置 + elec_path: /Users/xiangerlin/Downloads/ +OA: + data_source_code: yc_oa +zt: + url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface \ No newline at end of file diff --git a/buildpackage/src/main/resources/application.yml b/buildpackage/src/main/resources/application.yml index e5a996d7..7b481a9d 100644 --- a/buildpackage/src/main/resources/application.yml +++ b/buildpackage/src/main/resources/application.yml @@ -6,6 +6,26 @@ server: tomcat: uri-encoding: utf-8 spring: + autoconfigure: + exclude: org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration + flyway: + # 启动flyway migration, 默认为true + enabled: true + # flyway 的 clean 命令会删除指定 schema 下的所有 table, 生产务必禁掉。这个默认值是 false 理论上作为默认配置是不科学的。 + clean-disabled: true + # SQL 脚本的目录,多个路径使用逗号分隔 默认值 classpath:db/migration + locations: classpath:flyway +# - classpath:flyway + # metadata 版本控制历史表 默认 flyway_schema_history + table: flyway_schema_history + # 如果没有 flyway_schema_history 这个 metadata 表, 在执行 flyway migrate 命令之前, 必须先执行 flyway baseline 命令 + # 设置为 true 后 flyway 将在需要 baseline 的时候, 自动执行一次 baseline。 + baseline-on-migrate: true + validate-on-migrate: false + sql-migration-prefix: V + sql-migration-separator: __ + sql-migration-suffixes: .sql + placeholder-replacement: false jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 @@ -72,4 +92,37 @@ mybatis-plus: global-config: db-config: id-type: auto # 主键策略 - +zt: + url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface +#JimuReport[minidao配置] +minidao : + base-package: org.jeecg.modules.jmreport.desreport.dao* + db-type: mysql +#JimuReport[上传配置] +jeecg : + jmreport: + # 自动保存 + autoSave: true + # 单位毫秒 默认5*60*1000 + interval: 10000 + # local|minio|alioss + uploadType: local + # local + path : + #文件路径 + upload: D:\images + # alioss + oss: + endpoint: oss-cn-beijing.aliyuncs.com + accessKey: ?? + secretKey: ?? + staticDomain: ?? + bucketName: ?? + # minio + minio: + minio_url: http://minio.jeecg.com + minio_name: ?? + minio_pass: ?? + bucketName: ?? +data: + use: true diff --git a/buildpackage/src/main/resources/cfgHome/plugin/cbs8/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/pluginCfg.xml new file mode 100644 index 00000000..eec419c5 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/pluginCfg.xml @@ -0,0 +1,6 @@ + + +CBS8PayApplyPlugin +cbs8插件 +202406070001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..81dc741a --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-service.xml b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-service.xml new file mode 100644 index 00000000..f3c93de6 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/cbs8/spring/spring-buildpackage-service.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/masterData/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/masterData/pluginCfg.xml new file mode 100644 index 00000000..e9adf11a --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/masterData/pluginCfg.xml @@ -0,0 +1,6 @@ + + +MdmPlugin +MdmPlugin插件 +90000001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-dao.xml b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-dao.xml new file mode 100644 index 00000000..471dd4a6 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-dao.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..6943ad23 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-service.xml b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-service.xml new file mode 100644 index 00000000..c642948f --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/masterData/spring/spring-buildpackage-service.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/pluginCfg.xml new file mode 100644 index 00000000..7b7b63b8 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/pluginCfg.xml @@ -0,0 +1,6 @@ + + +MdmModulePlugin +MdmModulePlugin插件 +90000001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..4952fc4c --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/mdmDistribute/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/payBill/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/payBill/pluginCfg.xml new file mode 100644 index 00000000..cedbfee4 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/payBill/pluginCfg.xml @@ -0,0 +1,6 @@ + + +PayBillPlugin +OA付款单插件 +202406210001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..03e1cd8a --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-service.xml b/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-service.xml new file mode 100644 index 00000000..88a86bfb --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/payBill/spring/spring-buildpackage-service.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/pluginCfg.xml new file mode 100644 index 00000000..458372d8 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/pluginCfg.xml @@ -0,0 +1,6 @@ + + +SeeyonExtPlugin +seeyonExt插件 +202405150001 + diff --git a/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/spring/spring-buildpackage-plugin.xml new file mode 100644 index 00000000..cb98d142 --- /dev/null +++ b/buildpackage/src/main/resources/cfgHome/plugin/seeyonExt/spring/spring-buildpackage-plugin.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/buildpackage/src/main/resources/dbSql/dj/V3.0.10__init_app_djhs.sql b/buildpackage/src/main/resources/dbSql/dj/V3.0.10__init_app_djhs.sql new file mode 100644 index 00000000..61f06431 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/dj/V3.0.10__init_app_djhs.sql @@ -0,0 +1,24 @@ +INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('70d24970f0e8429485220fff1e331e50', NULL, '1', '东进环思', '1.0', '[\"2\",\"1\"]', '1', '环丝应用(东进环思)', '环丝应用(东进环思)', NULL, 800033, NULL, NULL, NULL, 'ZJYA0iD/DtdYCBYE1AqHlz4All0gLb96p8G1xNjdGz4tDZlCe7eDIk+3zDUT+v578prj', 'nL860JIPqIuB0jUsJE5RZLcyZfi8ArRSz6rk0h69TDbkf3Qq0Jstwk9FIgbGa6ejj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', NULL, '2', '1', '2', 25, NULL, 'Y', '2024-07-16 10:14:05', '1', '2024-07-16 10:14:05', '1'); + +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('0be0862057b249c5b3b902f9d2e18744', 8000330000, NULL, '1', '70d24970f0e8429485220fff1e331e50', '770605aa7fdd4673960b488ee37538ad', '客商档案新增', '中台—环思,客商档案同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"f7c387b0-d5d3-48d3-9aa6-c84e9b12a06d\",\"parameterName\":\"body\",\"first\":true}]', '[]', 252, '1', '2024-07-16 10:53:07', '1', '2024-07-16 10:53:07', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('362bc0ef8a0e4a8fbb015e7ff241147b', 8000330002, NULL, '1', '70d24970f0e8429485220fff1e331e50', 'a02cccd7bac94d7ba2a42bf684d9ab4c', '物料分类新增', '中台—环思,物料分类同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"0c291ae8-7bc7-46ad-8954-4f9b1cf03454\",\"parameterName\":\"body\",\"first\":true}]', '[]', 254, '1', '2024-07-16 10:54:57', '1', '2024-07-16 10:54:57', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('3c40a2e4a5a7444d9cdb28b9c8e4e1a9', 8000330003, NULL, '1', '70d24970f0e8429485220fff1e331e50', 'a02cccd7bac94d7ba2a42bf684d9ab4c', '物料分类修改', '中台—环思,物料分类同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"f3b82e1a-1fea-4804-bbbc-17ea51a78871\",\"parameterName\":\"body\",\"first\":true}]', '[]', 255, '1', '2024-07-16 10:55:21', '1', '2024-07-16 10:55:21', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5d89843a48c248649dfc351913666f6e', 8000330001, NULL, '1', '70d24970f0e8429485220fff1e331e50', '770605aa7fdd4673960b488ee37538ad', '客商档案修改', '中台—环思,客商档案同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"376565d7-604b-4451-9ce9-c8593b925b11\",\"parameterName\":\"body\",\"first\":true}]', '[]', 253, '1', '2024-07-16 10:53:33', '1', '2024-07-16 10:53:33', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('72a4da1a75394bf282260a755dd5b083', 8000330005, NULL, '1', '70d24970f0e8429485220fff1e331e50', '3b0732a8f5fc443d984c06b9fbde6459', '物料档案修改', '中台—环思,物料档案同步环思', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"9d3ef246-32bd-47ec-9acf-79f8bd83824f\",\"parameterName\":\"body\",\"first\":true}]', '[]', 257, '1', '2024-07-16 10:56:23', '1', '2024-07-16 10:56:23', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c9a1fa17652f4d4fabe9d9656b0998ea', 8000330004, NULL, '1', '70d24970f0e8429485220fff1e331e50', '3b0732a8f5fc443d984c06b9fbde6459', '物料档案新增', '中台—环思,物料档案同步环思\n', '2', NULL, '1', '1', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"70c43e7b-ce2e-4746-a358-26151c933a4d\",\"parameterName\":\"body\",\"first\":true}]', '[]', 256, '1', '2024-07-16 10:56:03', '1', '2024-07-16 10:56:03', 'Y', NULL, NULL, NULL, '2', '1', '1', '1'); + +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('3b0732a8f5fc443d984c06b9fbde6459', '70d24970f0e8429485220fff1e331e50', '物料档案', 82, NULL, 'Y', '2024-07-16 10:55:32', '1', '2024-07-16 10:55:32', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('770605aa7fdd4673960b488ee37538ad', '70d24970f0e8429485220fff1e331e50', '客商档案', 80, NULL, 'Y', '2024-07-16 10:52:27', '1', '2024-07-16 10:52:27', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('a02cccd7bac94d7ba2a42bf684d9ab4c', '70d24970f0e8429485220fff1e331e50', '物料分类', 81, NULL, 'Y', '2024-07-16 10:54:23', '1', '2024-07-16 10:54:23', '1'); + +update sys_application_api set extension_api = '2' where extension_api is null; +update sys_application_api set return_success_field = 'status' where return_success_field is null; +update sys_application_api set return_success_value = '200' where return_success_value is null; +update sys_application_api set return_msg = 'msg' where return_msg is null; + + + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/dj/V3.0.11__init_app_djnbyhczdgj.sql b/buildpackage/src/main/resources/dbSql/dj/V3.0.11__init_app_djnbyhczdgj.sql new file mode 100644 index 00000000..8ca2dd7c --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/dj/V3.0.11__init_app_djnbyhczdgj.sql @@ -0,0 +1,17 @@ +INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ae67183945fe48a890a5bedde34a23e8', NULL, '1', '宁波银行财资大管家', 'V1.0', '[\"1\",\"2\",\"3\",\"4\"]', '1', '宁波银行', '东进新材料对接宁波财资大管家', NULL, 800036, NULL, NULL, NULL, 'ZJYAA9Z/jWMe1rC+Sjh8NVMRtwVMb5Bn0DbmIEsgpVlR3C9Ce7eDIk+3zDUT+v578prj', 'B8sgQwEaskwM7BQj1XLvu3kdKD3xm7Lyd4FWsPaFQk5v+UtQLCkzVzLlCZ9Bdyv2j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://127.0.0.1:9999/', '1', '3', '2', 23, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1'); + +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('a7490cf7c5a641f68a6deb84df941d57', 8000360000, NULL, '1', 'ae67183945fe48a890a5bedde34a23e8', '58105ccc4b4b4fbf89312f85b09ea9f6', '单笔转账接口', '单笔转账接口', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":0,\"concreteType\":\"String\",\"id\":\"8db68afc-64ff-4dac-b581-168b0b15ec59\",\"parameterName\":\"yatl\",\"required\":true,\"example\":\"ningboBankTreasuryServiceImpl\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":1,\"concreteType\":\"String\",\"id\":\"9a51135c-3c31-408d-8188-e0e8def2a2ea\",\"parameterName\":\"yadj\",\"required\":true,\"example\":\"sendNbBank\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":2,\"concreteType\":\"String\",\"id\":\"450138d7-fc93-4963-b891-beee640e1faa\",\"parameterName\":\"appKey\",\"required\":true,\"example\":\"54b3e05c-7983-4e6c-8920-f9ab8a0004a6\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":3,\"concreteType\":\"String\",\"description\":\"商户私钥\",\"id\":\"811d51c8-07a2-4245-b01f-a2f0de56db68\",\"parameterName\":\"privateKey\",\"required\":true,\"example\":\"MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":4,\"concreteType\":\"String\",\"id\":\"8da0ab8c-c518-439b-a241-0d66cd96ca21\",\"parameterName\":\"publicUrl\",\"required\":true,\"example\":\"http://cz-test.nbcb.com.cn:7070/nbcb/api\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":5,\"concreteType\":\"String\",\"description\":\"开放平台公钥\",\"id\":\"dee6fb29-61aa-4fd8-905c-e15904c5a35a\",\"parameterName\":\"publicKey\",\"required\":true,\"example\":\"MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEXAt6fxeKlpREIyXoT3jDwGU7L6JkKrzdOKP1cMB14rtNwwlyaUGLrtuHVoArAHP3x7XN2rUw0GxSngYQwOAsjQ==\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":6,\"concreteType\":\"String\",\"description\":\"财资客户号\",\"id\":\"6d499c86-b66b-40e2-8f0f-48ea392478f5\",\"parameterName\":\"custId\",\"required\":true,\"example\":\"0000112058\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":7,\"concreteType\":\"String\",\"id\":\"b791597e-a44e-4c43-840e-daf35aa4856f\",\"parameterName\":\"productID\",\"required\":true,\"example\":\"tmsSettle\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":8,\"concreteType\":\"String\",\"id\":\"80dfdc20-38a6-4191-8c98-e32ff4c683d1\",\"parameterName\":\"serviceID\",\"required\":true,\"example\":\"singleTransfer\"}]', '[]', '1', '[{\"index\":0,\"id\":\"159491c8-a097-4df4-9abf-98f777b4f2c5\",\"parameterName\":\"body\",\"first\":true}]', '[]', 244, '1', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', 'Y', NULL, 'ningboBankTreasuryServiceImpl', 'doChangeData', '1', 'retCode', '0000', 'retMsg'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('ecdaa2fb5a754aab984ea94fed80a840', 8000360001, NULL, '1', 'ae67183945fe48a890a5bedde34a23e8', 'e6d546212791410593f758e289733361', '交易结果接口', '交易结果接口', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":0,\"parameterName\":\"yatl\",\"id\":\"08d57d17-352f-4eb5-ab35-0c8f8d37c54f\",\"required\":true,\"example\":\"ningboBankTreasuryServiceImpl\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"yadj\",\"id\":\"c0412200-27c5-42ad-bd92-3d60cf5fae05\",\"required\":true,\"example\":\"sendNbBank\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"appKey\",\"id\":\"e4be39d4-016f-4048-85a7-4751a0b45221\",\"required\":true,\"example\":\"54b3e05c-7983-4e6c-8920-f9ab8a0004a6\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":3,\"description\":\"商户私钥\",\"parameterName\":\"privateKey\",\"id\":\"8027bd40-b0db-4040-9e1c-7971eb2c4480\",\"required\":true,\"example\":\"MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"publicUrl\",\"id\":\"89c7052d-8a90-4a22-bc95-a10b656d7ad6\",\"required\":true,\"example\":\"http://cz-test.nbcb.com.cn:7070/nbcb/api\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":5,\"description\":\"开放平台公钥\",\"parameterName\":\"publicKey\",\"id\":\"c96236b3-ed05-437a-ab01-829e8052dee9\",\"required\":true,\"example\":\"MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEXAt6fxeKlpREIyXoT3jDwGU7L6JkKrzdOKP1cMB14rtNwwlyaUGLrtuHVoArAHP3x7XN2rUw0GxSngYQwOAsjQ==\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"concreteType\":\"String\",\"index\":6,\"description\":\"财资客户号\",\"parameterName\":\"custId\",\"id\":\"bddeecac-2ca0-498a-9063-3655c50b8089\",\"required\":true,\"example\":\"0000112058\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":7,\"concreteType\":\"String\",\"id\":\"b2785506-3c80-47f7-a211-8ccb9ce35a34\",\"parameterName\":\"productID\",\"required\":true,\"example\":\"tmsSettle\"},{\"parameterType\":\"fundamental\",\"length\":\"255\",\"index\":8,\"concreteType\":\"String\",\"id\":\"eb20bd5c-19e2-413b-8c4d-3ce5272bc691\",\"parameterName\":\"serviceID\",\"required\":true,\"example\":\"querySingleTransferResult\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"流水号\",\"parameterName\":\"serialNo\",\"id\":\"6b973918-89bf-43b4-b9db-436928dff463\",\"required\":true,\"example\":\"Api20230607003\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"726732fd-30ec-4aec-a572-590a3d9bca68\",\"parameterName\":\"body\",\"first\":true,\"required\":true}]', '[]', 245, '1', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', 'Y', NULL, 'ningboBankTreasuryServiceImpl', 'doChangeData', '1', 'retCode', '0000', 'retMsg'); + +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('58105ccc4b4b4fbf89312f85b09ea9f6', 'ae67183945fe48a890a5bedde34a23e8', '转账', 77, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('e6d546212791410593f758e289733361', 'ae67183945fe48a890a5bedde34a23e8', '交易结果', 78, NULL, 'Y', '2024-07-17 09:05:35', '1', '2024-07-17 09:05:35', '1'); + +update sys_application_api set extension_api = '2' where extension_api is null; +update sys_application_api set return_success_field = 'status' where return_success_field is null; +update sys_application_api set return_success_value = '200' where return_success_value is null; +update sys_application_api set return_msg = 'msg' where return_msg is null; + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/dj/V3.0.12__init_app_dju8c.sql b/buildpackage/src/main/resources/dbSql/dj/V3.0.12__init_app_dju8c.sql new file mode 100644 index 00000000..217fc3d2 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/dj/V3.0.12__init_app_dju8c.sql @@ -0,0 +1,73 @@ +INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('3b52dc340cad48dab548b17d3095b981', NULL, '1', '东进U8C', '3.5', '[\"1\"]', '1', '用友', '东进U8C,标准U8C接口模板', 'http://220.189.210.58:7099', 800035, NULL, 'http://220.189.210.58:7099', NULL, 'ZJYAE7P1jdIECvgTCdxIRMMx7XQ8VNha5bFd+XbaiPhAVjJCe7eDIk+3zDUT+v578prj', 'QyAQHgx7OLpbzW5XiJ9ZBng2u/TM8F5reSJK/yQJOLtOg2bxeh7HWL9jBBZbRPHMj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://220.189.210.58:7099', '1', '2', '2', 4, NULL, 'Y', '2024-07-16 10:18:38', '1', '2024-07-17 09:18:45', '1'); + +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('13231c6ee6cc4d1997ab295c56c01745', 8000350030, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '71d6de477f1e4ecc86c819fc33738bb1', '凭证更新', NULL, '2', NULL, '1', '/u8cloud/api/gl/voucher/update', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"79fb8f9a-6687-4950-b81e-a00458c30fa0\",\"parameterName\":\"body\",\"first\":true}]', '[]', 196, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('14bd520d34074f7baf5d1afbe820779f', 8000350018, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c78369f5e69d4338bc1c27c2122827f2', '客商管理档案-新增', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/custmandoc/insert', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"地址\",\"parameterName\":\"addrname\",\"id\":\"22c354c1-c846-47e8-b828-0051dde3fcf3\",\"example\":\"测试地址\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"客商分类01 内部 02外部 03 其他\",\"parameterName\":\"pk_areacl\",\"id\":\"6c8c3bbe-aa32-4bbb-a52a-b60a1e1d4373\",\"example\":\"02\"}],\"concreteType\":\"ObjectCom\",\"index\":2,\"parameterName\":\"addrs\",\"id\":\"fb2a944c-cc2a-4843-9c6d-71fafa19e834\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"传递数据的时候必须传递两条明细由于客商管理档案在数据库表中存的两条,所以childrenvo如果传的\",\"parameterName\":\"custflag\",\"id\":\"cec52591-3363-431f-8113-4579fed62367\",\"example\":\"0\"}],\"concreteType\":\"ObjectCom\",\"index\":5,\"parameterName\":\"childrenvo\",\"id\":\"d57cb8a3-a98f-4e43-8e35-0a05c39d4822\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"是否默认银行\",\"parameterName\":\"defflag\",\"id\":\"2bb5b731-4149-4202-9515-8b4a9a8a0ace\",\"example\":\"Y\"}],\"concreteType\":\"Object\",\"index\":8,\"parameterName\":\"banks\",\"id\":\"f6b7dbfb-ef29-4708-8016-72270f707e85\"},{\"parameterType\":\"complex\",\"children\":[],\"concreteType\":\"Object\",\"index\":10,\"parameterName\":\"baseBank\",\"id\":\"6ab39de2-b926-4523-86cf-131d2d6fb509\"}],\"concreteType\":\"ObjectCom\",\"index\":7,\"parameterName\":\"custBanks\",\"id\":\"aee27ab1-7847-44b0-9878-f28df08cf792\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"description\":\"创建人编码\",\"parameterName\":\"creator\",\"id\":\"7a1f1c78-42a2-4119-88ef-2a640386665e\",\"example\":\"17633965916\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"description\":\"客商编码\",\"parameterName\":\"custcode\",\"id\":\"422bd076-0e43-4268-8e24-9e967dc55555\",\"example\":\"202499101111\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"description\":\"客商名称\",\"parameterName\":\"custname\",\"id\":\"87cfa6d0-5e25-4c02-87ce-1153b03c4961\",\"example\":\"测试管理档案客商111\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"description\":\"客商类型*必填\",\"parameterName\":\"custprop\",\"id\":\"cd9099f3-f658-4d69-9c06-4f6949b64c95\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"description\":\"客商分类01 内部 02外部 03 其他\",\"parameterName\":\"pk_areacl\",\"id\":\"b38026a3-a8d1-4b5d-82c0-923415892bb7\",\"example\":\"02\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"description\":\"公司编码\",\"parameterName\":\"pk_corp\",\"id\":\"bb2a2635-f0eb-474e-b048-f51db1998277\",\"example\":\"01\"}],\"concreteType\":\"Object\",\"index\":11,\"parameterName\":\"parentvo\",\"id\":\"edcb3b5e-6203-49f3-968a-3dcb32e0b15a\"}],\"concreteType\":\"Object\",\"index\":1,\"parameterName\":\"billvo\",\"id\":\"187156c7-602c-4d44-8e0a-c327f2a08020\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"8a188bb6-d3d9-457d-b046-b9a6d3a81dae\",\"parameterName\":\"body\",\"first\":true}]', '[]', 159, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('19a23d67dea246fba9afcea3af159f91', 8000350012, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '5e4f5bc4d6a8438ba13efc05a39bfc5c', '其他入库保存', NULL, '2', NULL, '1', '/u8cloud/api/ic/otherin/insert', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"f4f093a5-8a32-4752-a89c-c251b7344c72\",\"parameterName\":\"body\",\"first\":true}]', '[]', 95, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('2149760e12094430a8c61ba732c792cd', 8000350025, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '64b66d7dac3c4bc89c056c472208954d', '存货分类新增', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdinvcl/save', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"分类编码\",\"parameterName\":\"invclasscode\",\"id\":\"b6fb5c3f-6189-469f-b49c-98f3d7041ad0\",\"example\":\"04\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"分类名称\",\"parameterName\":\"invclassname\",\"id\":\"04eb2fbf-2d4e-4f1c-86c8-51e2b1feb4dc\",\"example\":\"成品测试\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"公司编码默认0001\",\"parameterName\":\"pk_corp\",\"id\":\"07ff5ae0-7273-48c6-b105-d553f7451fe8\",\"example\":\"0001\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"invcl\",\"id\":\"d83589e8-03b0-453f-a045-2fc7d48cdc3e\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"d94ccb4d-7bf6-4408-8972-470b2fb1a765\",\"parameterName\":\"body\",\"first\":true}]', '[]', 166, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('21b1cc3c74774dc8923ac174a12a68b2', 8000350010, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '81a2cc28c3a64ee1abbf9e64f96b4f30', '速网U8C_销售出库单保存即审批', '速网U8C_销售出库单保存即审批', '2', NULL, '1', '/u8cloud/api/ic/saleout/save/sign', '1', '1', '10000', '100', '[]', '[]', '1', '[]', '[]', 68, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('2219d67ca4f74ba9a447ad226f88790b', 8000350015, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '05b318825e1049af8f3a5703fe46351e', '部门档案-新增', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bddept/save', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"创建日期\",\"parameterName\":\"createDate\",\"id\":\"ceff0dc6-a601-4882-a117-ef05f816f1cc\",\"example\":\"2024-04-24\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"部门属性\",\"parameterName\":\"deptattr\",\"id\":\"d3301c56-8561-4496-8130-45babc6b04f0\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"部门编码\",\"parameterName\":\"deptcode\",\"id\":\"e2adbecc-ff19-448c-85ad-bc19865f35bb\",\"example\":\"99\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"部门名称\",\"parameterName\":\"deptname\",\"id\":\"eca1e77f-9e9c-42b8-b9b4-759cab37cbf0\",\"example\":\"DEV测试一级部门\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"部门类型\",\"parameterName\":\"depttype\",\"id\":\"0e536d7b-3348-4f4c-abad-d4fcffa79abd\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"是否用于零售\",\"parameterName\":\"isuseretail\",\"id\":\"caf5e96f-cb18-4a7e-a886-53b735c7c995\",\"example\":\"false\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"组织编码\",\"parameterName\":\"pk_corp\",\"id\":\"4565e1b7-a928-4ceb-969f-ad84d4ea224d\",\"example\":\"01\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"deptdoc\",\"id\":\"782aa1a0-042a-483f-9de8-03ec9795fef2\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"66ed2c6f-34a7-4816-94f0-5a77c2aa1830\",\"parameterName\":\"body\",\"first\":true}]', '[]', 156, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('22dae86e581f4f2e9b9d857961c4d1ea', 8000350004, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '56ccfdd16c59466986caa7f778d8908c', '采购订单审批即保存', '采购订单审批即保存', '2', NULL, '1', '/u8cloud/api/pu/order/saveapprove', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"cmangid\",\"id\":\"0d2afede-89fe-4155-b602-5da16db63541\",\"example\":\"0001F81000000000HNQW\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"nordernum\",\"id\":\"54d2a491-1f36-46c4-b0d7-3dffb3115371\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"norgtaxprice\",\"id\":\"4dfaa531-c862-4c5b-84f9-e05fa1ff5f51\",\"example\":\"10\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"childrenvo\",\"id\":\"071d3eb1-c1ac-49cb-b3be-72f67a8cd46a\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"cbiztype\",\"id\":\"6757e86a-4215-459e-be0a-99195e065d6d\",\"example\":\"0001F81000000000HJDM\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"cdeptid\",\"id\":\"970ccf18-7d3b-46d4-8f25-46d36ba38b22\",\"example\":\"1007F81000000000I0Y1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"coperator\",\"id\":\"f4fb3339-50f0-4e8b-b2c3-2529489a2415\",\"example\":\"0001F81000000000HGZ1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"cpurorganization\",\"id\":\"b55c46a9-322b-4765-87c2-9b4f5f0c9c21\",\"example\":\"0001F81000000000HJEN\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"cvendormangid\",\"id\":\"235678bc-443e-49bb-bd45-e9b83f960e90\",\"example\":\"0001F810000000000VZB\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"pk_corp\",\"id\":\"f447a97f-c054-4abe-acab-c4e9f31527fe\",\"example\":\"1007\"}],\"concreteType\":\"Object\",\"index\":5,\"parameterName\":\"parentvo\",\"id\":\"5159d2ad-c2b0-49d9-a2ea-b07b4bcae512\"}],\"concreteType\":\"Object\",\"index\":0,\"parameterName\":\"puordervo\",\"id\":\"0cdb262d-21c0-4831-846b-d2df4c0f48af\"}]', '[]', 6, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('290199b02cd843429da1e0af5e151485', 8000350002, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '601f31d4350f45a0b12682050f15abb2', '存货档案新增', '存货档案新增', '2', NULL, '1', '/u8cloud/api/uapbd/invbasdoc/insert', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"assistunit\",\"id\":\"02687afb-b84c-47a6-b4cd-5cabc242730d\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"invcode\",\"id\":\"5ec2b4b8-f51b-4960-8d55-e282255891b4\",\"example\":\"ceshi0005\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"invname\",\"id\":\"7c7787c7-a32b-43c5-bc3c-c69094a91d64\",\"example\":\"测试0005\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"pk_invcl\",\"id\":\"906bc4d5-eed5-43c0-ab8a-5e8175604aca\",\"example\":\"0001F81000000000HJ8C\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"pk_measdoc\",\"id\":\"816a4d37-9911-4e33-a2bf-71d6a2bdd383\",\"example\":\"0001F81000000000HJ8M\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"pk_taxitems\",\"id\":\"fe95d3a5-3771-4180-abf8-c2aca7884417\",\"example\":\"40040000000000000082\"}],\"concreteType\":\"Object\",\"index\":1,\"parameterName\":\"parentvo\",\"id\":\"8ee94f28-8353-4898-9def-26c47741ed9a\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"invbasdoc\",\"id\":\"70de5cb4-4ba7-4089-9faf-7ec7dedcc74e\"}]', '[]', 4, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('3d0a0296f7ee42b2a5cd33be6dc9d799', 8000350032, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '71d6de477f1e4ecc86c819fc33738bb1', '凭证删除', NULL, '2', NULL, '1', '/u8cloud/api/gl/voucher/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"当前页\",\"parameterName\":\"page_now\",\"id\":\"926c33d5-2066-40be-9465-0b74d058cf2f\",\"required\":true,\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"每页条数\",\"parameterName\":\"page_size\",\"id\":\"c074af79-5757-41b8-b460-f84162a89e4b\",\"required\":true,\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"凭证主键\",\"parameterName\":\"pk_voucher\",\"id\":\"03c8e16a-6ed8-4c97-aafc-1c64f99e8e72\",\"required\":true,\"example\":\"0001F11000000000IKP4\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"账簿编码\",\"parameterName\":\"pk_glorgbook\",\"id\":\"2227a7d6-0836-44d7-83a8-d85d096d51ee\",\"required\":true,\"example\":\"01-01\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"f1c8c283-b0a8-43c2-b4a3-5be69064a4de\",\"parameterName\":\"body\",\"first\":true}]', '[]', 198, '1', '2024-07-16 10:18:40', '1', '2024-07-16 10:18:40', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('431049276d8d4f2893f67cc40384aeae', 8000350007, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '5e4f5bc4d6a8438ba13efc05a39bfc5c', '库存其他入库保存即签字', '库存其他入库保存即签字', '2', NULL, '1', '/u8cloud/api/ic/otherin/save/sign', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"bonroadflag\",\"id\":\"e0c040b0-d296-453e-a805-2943e5c528c3\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"cinventoryid\",\"id\":\"4c41e861-2b42-4593-a25e-52b2b2126b1d\",\"example\":\"0001F81000000000HJFH\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"dbizdate\",\"id\":\"10ce2b3a-c852-4268-80a5-9bf0ba20f482\",\"example\":\"2023-10-07\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"flargess\",\"id\":\"3930668c-83f1-4884-b552-5bef620666ae\",\"example\":\"N\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"cspaceid\",\"id\":\"e7c1a416-e594-489d-8c70-42513538aa81\",\"example\":\"1007F81000000000I19T\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"ninspacenum\",\"id\":\"4afc603f-74f0-4ae6-8976-ada46eb58ec6\",\"example\":\"1\"}],\"concreteType\":\"ObjectCom\",\"index\":6,\"parameterName\":\"locator\",\"id\":\"374782c3-9bcd-4b6f-914b-51dcf200eb91\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"ninnum\",\"id\":\"c3908a11-5ada-4cb8-8d78-e50d8bdabe65\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"nshouldinnum\",\"id\":\"7ba1344a-cdab-44e9-a5fd-db0fb10afe27\",\"example\":\"1\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"childrenvo\",\"id\":\"2287630e-0451-45ee-a3ed-aac78962e559\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"cbizid\",\"id\":\"7ac5735d-93d4-449e-b6af-67ef28d9e53f\",\"example\":\"1007F81000000000I0YI\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"cbiztype\",\"id\":\"7c6977c7-4d22-49ab-9f91-a1ff4d06a7be\",\"example\":\"0001F81000000000HJDM\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"ccustomerid\",\"id\":\"46d26060-fda8-4cf7-a158-b8397c6386af\",\"example\":\"0001F81000000000HJRD\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"parameterName\":\"coperatorid\",\"id\":\"c0ffd48b-904d-430f-855c-ad4999cfc55c\",\"example\":\"0001F81000000000HGZ1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"parameterName\":\"cotherwhid\",\"id\":\"af6062cf-5b47-4119-8aa9-6c9b101adb9f\",\"example\":\"1007F81000000000I0Z7\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"parameterName\":\"cwarehouseid\",\"id\":\"2266b097-10bd-4496-9f32-07de6bace9d5\",\"example\":\"1007F81000000000I0Z7\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":18,\"parameterName\":\"dauditdate\",\"id\":\"2e6f5186-eb01-422b-bb27-0c85ec3db85e\",\"example\":\"2023-10-07\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":19,\"parameterName\":\"dbilldate\",\"id\":\"37ea0f0f-c6fb-479a-bfde-e76c09ef42c0\",\"example\":\"2023-10-07\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":20,\"parameterName\":\"pk_calbody\",\"id\":\"b5d2935d-4d0f-4804-ba61-2c2c3fc508be\",\"example\":\"1007F81000000000I0YF\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":21,\"parameterName\":\"pk_corp\",\"id\":\"6b25e6b3-9eb7-4a98-9162-6104fa93631f\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":22,\"parameterName\":\"vbillcode\",\"id\":\"b831d431-601e-4401-ae4b-7ef817433b55\",\"example\":\"ceshi005\"}],\"concreteType\":\"Object\",\"index\":11,\"parameterName\":\"parentvo\",\"id\":\"c92895a0-45cb-425d-a721-ba8d2f11b22f\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"GeneralBillVO_4A\",\"id\":\"ff3a17a3-8f6e-45bf-ae17-abe494009a6f\"}]', '[]', 9, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('44c64be3af0848a588f5dd9a8777bfab', 8000350031, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '71d6de477f1e4ecc86c819fc33738bb1', '凭证作废', NULL, '2', NULL, '1', '/u8cloud/api/gl/voucher/abandon', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"操作人编码\",\"parameterName\":\"abandoner_code\",\"id\":\"8d210c2b-6896-42f2-b1ce-d5e9af639599\",\"example\":\"17633965916\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"凭证主键\",\"parameterName\":\"pk_voucher\",\"id\":\"f6c76396-d5bb-498b-aa29-99c2e67c233e\",\"example\":\"0001F11000000000IKP4\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"bills\",\"id\":\"78fab8a6-3add-4b88-932d-c9bf45d8d876\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"4c9cca6e-4503-4e07-a3b8-9c6d0e2d3391\",\"parameterName\":\"body\",\"first\":true}]', '[]', 197, '1', '2024-07-16 10:18:40', '1', '2024-07-16 10:18:40', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('4912e52ffa1046f7b3f2d2e3df1b6b78', 8000350028, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'f3acb3c21037486b9aaaced07b24e2d2', '人员档案新增', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdpsn/save', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"childrenvo\",\"id\":\"eb56b3bb-e1c7-46bc-a9dd-be12dafa5d37\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"公司编码\",\"parameterName\":\"currentcorp\",\"id\":\"8ca3aeb2-7355-4bed-bad2-67e1ce876c71\",\"example\":\"01\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"人员名称\",\"parameterName\":\"psnname\",\"id\":\"0677074c-19ce-49cd-9c2f-967930803e4c\",\"example\":\"测试人员12\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"人员主键(填写为更新反之为新增)\",\"parameterName\":\"pk_psnbasdoc\",\"id\":\"e104c2bf-ff2b-42ff-90d3-84f91fbb8e04\",\"example\":\"1001F1100000000067B1\"}],\"concreteType\":\"Object\",\"index\":5,\"parameterName\":\"psnbasvo\",\"id\":\"9a5fd953-76bd-4e6c-837a-729bf96170b8\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"部门编码\",\"parameterName\":\"pk_deptdoc\",\"id\":\"46cb327c-73ce-4dd2-86d0-ee2f11d142df\",\"example\":\"999\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"description\":\"员工类型01在职02离职\",\"parameterName\":\"pk_psncl\",\"id\":\"1fbd9360-0e27-4d01-b3d0-6cca2e16710e\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"description\":\"人员编码\",\"parameterName\":\"psncode\",\"id\":\"121a8b54-52e2-4ca5-8417-384ae4c32f7f\",\"example\":\"999\"}],\"concreteType\":\"Object\",\"index\":8,\"parameterName\":\"psnmanvo\",\"id\":\"9d366549-e631-4770-9d9e-aa3549b1f82b\"}],\"concreteType\":\"Object\",\"index\":3,\"parameterName\":\"parentvo\",\"id\":\"ee25c3fa-9e75-4e86-a893-87250719ec9c\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"psn\",\"id\":\"1f724e00-c699-434b-9c12-bd9d2289e228\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"9b0ae8d1-ec1f-4e20-84b3-fee4742bf9ed\",\"parameterName\":\"body\",\"first\":true}]', '[]', 170, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5038f1d7216a477c8b5ec3d4392a3b9e', 8000350001, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c78369f5e69d4338bc1c27c2122827f2', '客商分配', '速网客商分配', '2', NULL, '1', '/u8cloud/api/uapbd/custdoc/assign', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"pk_corp\",\"id\":\"33bc86ee-652c-4822-b6a8-dbd329a20779\",\"example\":\"1004\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"custprop\",\"id\":\"b5d55712-b378-4dbd-b2ae-04bcb3d0fb2b\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"pk_cubasdoc\",\"id\":\"0c4a5614-effb-4d88-83e2-e9cd0f33ea3a\",\"example\":\"0001F810000000000FE0\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"custbasvo\",\"id\":\"df932132-3a93-463c-aaa7-7393b0abfa80\"}]', '[]', 3, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5798ffdc8527473999e50c794244e9d0', 8000350019, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c78369f5e69d4338bc1c27c2122827f2', '客商管理档案-修改', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/custmandoc/update', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"addrs\",\"id\":\"32fce380-1604-4e65-aead-0f717bc59866\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"客商属性传递数据的时候必须传递两条明细由于客商管理档案在数据库表中存的两条,所以childrenvo\",\"parameterName\":\"custflag\",\"id\":\"6723dfb7-c001-40e7-af70-19f07329a9b7\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"客商管理档案主键\",\"parameterName\":\"pk_cumandoc\",\"id\":\"83b70517-8d18-4b41-bb93-304f1048cc46\",\"example\":\"0001F11000000000I6I9\"}],\"concreteType\":\"ObjectCom\",\"index\":3,\"parameterName\":\"childrenvo\",\"id\":\"39e8d457-8a5d-4309-9fab-495d9e289344\"},{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"custBanks\",\"id\":\"2adafd63-ded1-4217-ae76-fe64dd59589c\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"创建人编码\",\"parameterName\":\"creator\",\"id\":\"3ac5b03b-e9a5-4155-8763-372c9aea2336\",\"example\":\"17633965916\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"客商编码\",\"parameterName\":\"custcode\",\"id\":\"717f55c1-20d3-4d6f-93cb-a8c82511c342\",\"example\":\"202499101111\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"description\":\"客商名称\",\"parameterName\":\"custname\",\"id\":\"84497538-64e6-4733-810e-b8e3f8fd4345\",\"example\":\"测试管理档案客商1112\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"description\":\"客商类型\",\"parameterName\":\"custprop\",\"id\":\"c6ba1a38-402b-4a2b-9d50-483ac6e404f0\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"description\":\"地区分类编码\",\"parameterName\":\"pk_areacl\",\"id\":\"42e2a12a-c73e-455b-a826-a64d57967c6c\",\"example\":\"02\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"description\":\"公司编码\",\"parameterName\":\"pk_corp\",\"id\":\"e73b7786-747f-41d9-8494-3ea39dbca683\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"description\":\"基本档案主键\",\"parameterName\":\"pk_cubasdoc\",\"id\":\"6dc986e4-ff76-469e-af9b-d1b7a6065789\",\"example\":\"0001F11000000000I6I5\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"description\":\"管理档案主键\",\"parameterName\":\"pk_cumandoc\",\"id\":\"6b5ac0b6-484c-4d58-894b-23c6d0d93755\",\"example\":\"0001F11000000000I6I9\"}],\"concreteType\":\"Object\",\"index\":7,\"parameterName\":\"parentvo\",\"id\":\"6af9dddc-8e8d-4213-a2cb-13c3fa3fa756\"}],\"concreteType\":\"Object\",\"index\":1,\"parameterName\":\"billvo\",\"id\":\"53ec85a9-12bd-4537-9ddb-c663e9191914\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"9fa29026-7a11-4dad-8c85-6c3a75ca28ef\",\"parameterName\":\"body\",\"first\":true}]', '[]', 160, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('76c28dee27e54372854b6da07c0b3f08', 8000350000, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c78369f5e69d4338bc1c27c2122827f2', '速网U8C_客商档案新增', '速网U8C_客商档案新增', '2', NULL, '1', '/u8cloud/api/uapbd/custdoc/insert', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"accname\",\"id\":\"69014133-b81e-4a9d-82fc-7c29821e77f9\",\"example\":\"666601\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"account\",\"id\":\"51980e53-c1dd-448a-bf36-d24fd817b1a5\",\"example\":\"test001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"accountname\",\"id\":\"97111e2d-8df9-4465-a241-e1969b032287\",\"example\":\"zy测试银行账户\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"banktypename\",\"id\":\"176cd4c8-5228-4dd6-bee7-2101f09a16d3\",\"example\":\"6666\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"defflag\",\"id\":\"8d833cbf-a396-41af-ba52-cb58b3aa5a74\",\"example\":\"Y\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"pk_currtype\",\"id\":\"d80241ec-c9fb-480c-9e0a-bd1589595a20\",\"example\":\"CNY\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"status\",\"id\":\"2c7d4b42-b26e-4aa9-a294-3b330e08cf70\",\"example\":\"2\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"unitname\",\"id\":\"9e6a593f-e35f-456e-879a-41d3d63bb94b\",\"example\":\"测试001\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"banks\",\"id\":\"3815c339-d96b-40d6-a96c-81b8cf68be28\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"conaddr\",\"id\":\"b5990933-94e0-4015-9f53-2ce6fa9bc3da\",\"example\":\"测试33145411113\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"creator\",\"id\":\"f0cce0b5-b5fa-4ea7-8f15-f1ac075eb7f1\",\"example\":\"0001F8100000000000PL\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"custcode\",\"id\":\"853453c3-dad1-4155-998b-9d1c4b8e2acd\",\"example\":\"ceshi007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"custname\",\"id\":\"2b06423d-827a-465d-b829-42471733fa51\",\"example\":\"测试007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"parameterName\":\"custprop\",\"id\":\"c4277bcb-7d80-4c12-8508-935086e2c7df\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"parameterName\":\"custshortname\",\"id\":\"6c02f4ec-618c-4973-babe-a0c81c179743\",\"example\":\"测试007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"parameterName\":\"freecustflag\",\"id\":\"48c1d795-4396-4189-8f22-9228b2424fce\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":18,\"parameterName\":\"isconnflag\",\"id\":\"92be035c-eb7c-46be-a2c3-5e48ce18cf4f\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":19,\"parameterName\":\"pk_areacl\",\"id\":\"8bc3d731-ab42-46d5-afc3-3227de0df96b\",\"example\":\"01\"}],\"concreteType\":\"Object\",\"index\":10,\"parameterName\":\"parentvo\",\"id\":\"627af933-4b7f-433b-beb5-f2a49b50cfaa\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"cbdocvo\",\"id\":\"33aac70c-d95a-475d-8f98-28925223f305\"}]', '[]', 2, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('76d717b85ff04ad5ad069c27cc82c476', 8000350026, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '64b66d7dac3c4bc89c056c472208954d', '存货分类修改', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdinvcl/update', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"分类编码\",\"parameterName\":\"invclasscode\",\"id\":\"3b2af319-87c8-400a-b38a-d54f9b207f26\",\"example\":\"04\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"分类名称\",\"parameterName\":\"invclassname\",\"id\":\"7c5bd695-ed84-4a92-a1c7-31c862e98d21\",\"example\":\"成品测试1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"公司编码默认0001\",\"parameterName\":\"pk_corp\",\"id\":\"482d659b-b374-4fb5-b31b-32bca4a6d8be\",\"example\":\"0001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"分类主键\",\"parameterName\":\"pk_invcl\",\"id\":\"3fa6caac-e0cd-4ec7-8df4-7c990504ee25\",\"example\":\"0001F11000000000I6NN\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"invcl\",\"id\":\"0638670a-e65d-46e1-aabd-adc7a956c4cb\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"81cdd912-9bf3-4cb4-b74f-2a8ee27de93a\",\"parameterName\":\"body\",\"first\":true}]', '[]', 167, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('7d31e3a226944de088ac431f0e01dce5', 8000350029, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'f3acb3c21037486b9aaaced07b24e2d2', '人员档案删除', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdpsn/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"公司编码\",\"parameterName\":\"corpcode\",\"id\":\"9fbd0909-2fa8-4de9-b5e6-8472dcc8e343\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"人员编码\",\"parameterName\":\"psncode\",\"id\":\"0b769e22-96a4-41da-b557-73cd1ec60b11\",\"example\":\"999\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"e46d3508-a724-4fa6-8776-d9f13e48deb7\",\"parameterName\":\"body\",\"first\":true}]', '[]', 171, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('7ff61b82173e4d1fa2d71500c187029b', 8000350014, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '71d6de477f1e4ecc86c819fc33738bb1', '凭证新增', NULL, '2', NULL, '1', '/u8cloud/api/gl/voucher/insert', '1', '1', '30000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"30\",\"index\":0,\"concreteType\":\"String\",\"id\":\"1ad4c45d-22b6-4ddb-942b-19140e774372\",\"parameterName\":\"usercode\",\"example\":\"aoxing\"},{\"parameterType\":\"fundamental\",\"length\":\"30\",\"index\":1,\"concreteType\":\"String\",\"id\":\"4dd1d9b7-cc0d-4df2-ba1d-c3a215b0302a\",\"parameterName\":\"password\",\"example\":\"83f1ad3e7fa3617f1aae62ae7413c810\"},{\"parameterType\":\"fundamental\",\"length\":\"30\",\"index\":2,\"concreteType\":\"String\",\"id\":\"bc8df059-e505-47ec-b36e-235ba9dc4f29\",\"parameterName\":\"trantype\",\"example\":\"code\"},{\"parameterType\":\"fundamental\",\"length\":\"30\",\"index\":3,\"concreteType\":\"String\",\"id\":\"20d53708-43ac-43be-961a-567b24cdf890\",\"parameterName\":\"system\",\"example\":\"01\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":3,\"description\":\"辅助核算列表\",\"parameterName\":\"ass\",\"id\":\"e8e4e3f1-e2b8-4dbc-b85c-f4819b3f05b8\"},{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":4,\"description\":\"现金流量\",\"parameterName\":\"cashflow\",\"id\":\"d14c267e-66ea-45c8-9554-822170858c90\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"原币贷方金额(必填,没有就传0就行了)*必填\",\"parameterName\":\"creditamount\",\"id\":\"659bdf16-a7a4-44a5-a0f5-d57f78ef206b\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"原币借方金额(必填,没有就传0就行了)*必填\",\"parameterName\":\"debitamount\",\"id\":\"e55685c6-a0f8-488d-bd68-3442813c7806\",\"example\":\"100\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"摘要\",\"parameterName\":\"explanation\",\"id\":\"2fb7d04d-6154-4bc1-aa59-80ef7c14d2ad\",\"example\":\"测试借方金额\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"本币贷方金额(必填,没有就传0就行了)*必填\",\"parameterName\":\"localcreditamount\",\"id\":\"b490d96a-b658-47ea-9b5f-ac6dc6e90f58\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"本币借方金额(必填,没有就传0就行了)*必填\",\"parameterName\":\"localdebitamount\",\"id\":\"f7d1a53c-3d7c-4123-adae-dc91891429ec\",\"example\":\"100\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"description\":\"客户编码\",\"parameterName\":\"pk_accsubj\",\"id\":\"ae4e4676-312d-4d48-8683-79574c108279\",\"example\":\"1132\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"description\":\"币种\",\"parameterName\":\"pk_currtype\",\"id\":\"6c437906-d9ce-41d5-9a5c-c84db83f3999\",\"example\":\"CNY\"}],\"concreteType\":\"ObjectCom\",\"index\":2,\"description\":\"明细\",\"parameterName\":\"details\",\"id\":\"693ff58d-86f3-4117-a7d5-551db1c3ed1e\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"description\":\"凭证号\",\"parameterName\":\"no\",\"id\":\"00141b68-d19e-422c-9093-6d20a80d486b\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"description\":\"所属公司编码\",\"parameterName\":\"pk_corp\",\"id\":\"a6619f3a-1894-41ef-8cb6-7f8c72b2db2b\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"description\":\"账簿编码\",\"parameterName\":\"pk_glorgbook\",\"id\":\"16a7c55c-87dc-4bd3-b7d1-929d5fc437b6\",\"example\":\"01-01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"description\":\"用户编码\",\"parameterName\":\"pk_prepared\",\"id\":\"12f2ee11-78a3-4526-ad4c-1fde81b6e98c\",\"example\":\"17633965916\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"description\":\"凭证类型编码\",\"parameterName\":\"pk_vouchertype\",\"id\":\"cb81b4e1-fa2c-44a7-87b1-9bff8ea39b00\",\"example\":\"记账\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"description\":\"凭证主体\",\"parameterName\":\"voucher\",\"id\":\"f9238f40-ccc6-4b63-8e6c-57432e54ac32\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"9cf9d3b2-3e8f-4aa9-bf43-b57166023b7f\",\"parameterName\":\"body\",\"first\":true}]', '[]', 155, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('8858a96701414b7687178969fa4b2f8f', 8000350006, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '81a2cc28c3a64ee1abbf9e64f96b4f30', '速网U8C_销售订单保存即审批', '速网U8C_销售订单保存即审批', '2', NULL, '1', '/u8cloud/api/so/saleorder/saveapprove', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"blargessflag\",\"id\":\"6f0c57fd-b5a0-4c24-9651-04390cac7316\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"cadvisecalbodyid\",\"id\":\"4d46f085-ecf4-426c-8216-458d5be02e04\",\"example\":\"1007F81000000000I0YF\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"cinventoryid\",\"id\":\"8ac81482-e8cc-47ad-ad11-8969da8b9ab6\",\"example\":\"0001F81000000000HJR7\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"nnumber\",\"id\":\"815afec0-1a3e-41dd-84d5-65bcf871db6e\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"noriginalcurprice\",\"id\":\"6594589c-3913-43fb-a36e-8ba553f15f24\",\"example\":\"8.85\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"vostatus\",\"id\":\"33e3de7c-ae23-4efa-aca8-a69b3e2e603b\",\"example\":\"new\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"childrenvo\",\"id\":\"7490ddcf-5b49-4dea-aaca-def95b5139b7\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"bretinvflag\",\"id\":\"9e5f88fd-a2b2-434b-b5bd-3e63b6edb01e\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"cbiztype\",\"id\":\"b257ff66-6a06-4a01-8e14-fddee6423431\",\"example\":\"1001F810000000000003\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"ccalbodyid\",\"id\":\"688f54ca-6bbb-4482-bf73-14527f209e50\",\"example\":\"1001F81000000000290R\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"ccustomerid\",\"id\":\"9761c3a0-04e8-48cd-a0b3-078aa4fda30d\",\"example\":\"0001F81000000000HJRD\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"cdeptid\",\"id\":\"59b88197-0625-4ae1-a31e-989ac31c8641\",\"example\":\"1007F81000000000I2BN\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"coperatorid\",\"id\":\"02b2ea8f-00ba-433f-a954-8c4495ad3424\",\"example\":\"0001F81000000000HGZ1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"parameterName\":\"csalecorpid\",\"id\":\"75359be1-eb41-40da-acb7-a5ff82e70a55\",\"example\":\"0001F81000000000HKST\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"parameterName\":\"pk_corp\",\"id\":\"b1df1e06-eeca-4487-8620-eb5fd1c6abe8\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"parameterName\":\"vreceiptcode\",\"id\":\"0f9c2a41-eaf3-4c74-93a8-df5873aaf3aa\",\"example\":\"ceshi003\"}],\"concreteType\":\"Object\",\"index\":8,\"parameterName\":\"parentvo\",\"id\":\"831c8eee-d8bc-4399-82f2-77143226cf1d\"}],\"concreteType\":\"Object\",\"index\":0,\"parameterName\":\"saleorder\",\"id\":\"a37043a9-85f8-452a-a421-a426d47c927f\"}]', '[]', 8, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('89e1d03e106b4cd9b4e27fabb8701d37', 8000350024, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'ef3465ed2f0c4bef950d54972ce11768', '项目基本档案-分配', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdjobbasfil/assign', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"所属公司主键\",\"parameterName\":\"pk_corp\",\"id\":\"bbb2dca9-9694-4597-9188-5afcc97f643b\",\"example\":\"所属公司主键\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"项目基本档案主键\",\"parameterName\":\"pk_jobbasfil\",\"id\":\"1a56a6f0-a889-45b6-8e60-9eb1e8e572ca\",\"example\":\"项目基本档案主键\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"jobbasfilvo\",\"id\":\"d4598b40-d09c-4238-9fb8-f9f38808bef7\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"4d4fab3e-65ce-4d39-a725-4a670fb01ced\",\"parameterName\":\"body\",\"first\":true}]', '[]', 165, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('a3b1a868047544d293a327cb14f914e9', 8000350023, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'ef3465ed2f0c4bef950d54972ce11768', '项目管理档案-删除', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdjobbasfil/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"项目编码\",\"parameterName\":\"id\",\"id\":\"543adea8-5bfa-4dee-ae36-43f311346f1d\",\"example\":\"20249002\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"4c76b510-3512-4bf2-a082-c13bf9e16f79\",\"parameterName\":\"body\",\"first\":true}]', '[]', 164, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('a9213967143e4755aa701d0c77dc80f2', 8000350017, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '05b318825e1049af8f3a5703fe46351e', '部门档案-删除', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bddept/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"部门编码\",\"parameterName\":\"code\",\"id\":\"e13e0b00-c177-4480-91ae-287eaf28f729\",\"example\":\"99\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"部门主键\",\"parameterName\":\"id\",\"id\":\"16f64405-3771-4bd7-80cc-c154442fe8e4\",\"example\":\"1001F11000000000676O\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"公司编码\",\"parameterName\":\"unitcode\",\"id\":\"62bc6f7d-99a4-4ce9-85b5-1238d5705cbf\",\"example\":\"01\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"cfefc53a-367b-448d-88bb-618d5db4e43c\",\"parameterName\":\"body\",\"first\":true}]', '[]', 158, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('b00d2570d8814a09ab4fbbae75b748a8', 8000350022, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'ef3465ed2f0c4bef950d54972ce11768', '项目基本档案-修改', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdjobbasfil/update', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"是否完工\",\"parameterName\":\"finishedflag\",\"id\":\"2502ab3a-94af-4b93-b7a7-2d4d782f7cfc\",\"example\":\"false\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"预计完工日期\",\"parameterName\":\"forecastenddate\",\"id\":\"ac71ec27-c9a0-46b9-a7a1-636361aaac78\",\"example\":\"2024-09-22\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"项目编码\",\"parameterName\":\"jobcode\",\"id\":\"143102b8-27a4-4ab8-9eaf-a4cf8a543031\",\"example\":\"20249001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"项目名称\",\"parameterName\":\"jobname\",\"id\":\"fbb69482-02e0-4dac-ada2-f0d11ab4a63d\",\"example\":\"测试项目1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"所属公司 默认0001\",\"parameterName\":\"pk_corp\",\"id\":\"16366b81-2276-4063-a396-100028a0adcf\",\"example\":\"0001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"项目分类\",\"parameterName\":\"pk_jobcl\",\"id\":\"70acfe17-ce24-40a8-b8a9-88bd7e0ee67d\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"项目类型\",\"parameterName\":\"pk_jobtype\",\"id\":\"4572e196-1041-4f50-b0fe-e39ea3e18708\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"项目主键\",\"parameterName\":\"pk_jobbasfil\",\"id\":\"6deb9590-517b-4811-af03-ffee60a8f70c\",\"example\":\"0001F1100000000008B9\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"jobbasfils\",\"id\":\"0bf3769a-37fc-46fa-a21d-b9e5ce4b2ebe\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"bde85557-d1cc-4b4f-afbd-3224903c9214\",\"parameterName\":\"body\",\"first\":true}]', '[]', 163, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c94eda7988384a4e80bec6148239f242', 8000350003, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '601f31d4350f45a0b12682050f15abb2', '存货档案分配', '存货档案分配', '2', NULL, '1', '/u8cloud/api/uapbd/invbasdoc/assign', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"assistunit\",\"id\":\"2a19854e-fa74-4936-a970-40584b10878d\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"invcode\",\"id\":\"0840cd1d-8f17-451f-8b8a-d66e49fe1cb3\",\"example\":\"ceshi0005\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"invname\",\"id\":\"32fba384-d961-4483-902a-e1d96574bab4\",\"example\":\"测试0005\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"pk_invcl\",\"id\":\"8adba933-21dd-4b55-a4b0-0d37f6804256\",\"example\":\"0001F81000000000HJ8C\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"pk_measdoc\",\"id\":\"09288d2b-1864-4a67-803e-60a661706002\",\"example\":\"0001F81000000000HJ8M\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"pk_taxitems\",\"id\":\"8994532c-0efd-4dbc-adc8-805e07bce37e\",\"example\":\"40040000000000000082\"}],\"concreteType\":\"Object\",\"index\":1,\"parameterName\":\"parentvo\",\"id\":\"89f4bacc-f2ec-4542-bd8f-cfdb72b73c27\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"invbasdoc\",\"id\":\"ae814ed6-2fc1-4f07-80eb-d869d378c721\"}]', '[]', 5, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('e43948e32d8d4303a3052cb40f8eb5a5', 8000350009, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'b4c9b97eaa1042d2bfabb704e35fdc19', '调拨订单保存即审批', '调拨订单保存即审批\n', '2', NULL, '1', '/u8cloud/api/to/transorder/saveapprove', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"cinvbasid\",\"id\":\"eadc291a-13a9-4b68-956b-ff444f1a9ff2\",\"example\":\"B01008A\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"nnum\",\"id\":\"f6148926-03b9-4926-98be-2195d4777826\",\"example\":\"1\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"childrenvo\",\"id\":\"5abeb6a0-d048-4b4b-858d-cbcd94371677\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"cbiztypeid\",\"id\":\"c0dd37f0-b1e5-4410-bc16-ee85e1e34ced\",\"example\":\"0001ZZ1000000000UFQ0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"cincbid\",\"id\":\"bf86de5c-3561-4218-8026-9ccf4bf695f0\",\"example\":\"1007F81000000000I0YF\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"cincorpid\",\"id\":\"253f18cb-8888-4bef-a793-002452a836cd\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"cinwhid\",\"id\":\"0faa8567-d305-483d-9eb5-cf29f24766f9\",\"example\":\"1007F81000000000I13S\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"coperatorid\",\"id\":\"b227d073-c25c-4ad6-8c69-afc9173b4379\",\"example\":\"0001F81000000000HGYQ\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"coutcbid\",\"id\":\"1b16ba03-d67f-4061-9dbd-c6cff48cc042\",\"example\":\"1007F81000000000I0YF\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"coutcorpid\",\"id\":\"59bb72be-8165-4b8b-974d-114dadc1355c\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"coutwhid\",\"id\":\"f3a6d51c-e9bc-4139-b1c4-bc5acdafe956\",\"example\":\"1007F81000000000I0Z7\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"vcode\",\"id\":\"f5889173-9c65-471e-bc11-96aa3bb4ed0f\",\"example\":\"ceshi007\"}],\"concreteType\":\"Object\",\"index\":4,\"parameterName\":\"parentvo\",\"id\":\"a639c3f3-b42d-4603-a365-bdaa6387059a\"}],\"concreteType\":\"Object\",\"index\":0,\"parameterName\":\"billvo\",\"id\":\"7b562eaf-e25e-4fd9-982a-3069ba4ba2c5\"}]', '[]', 11, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('e8818b561b084dc8937c67626a5b19da', 8000350011, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '81a2cc28c3a64ee1abbf9e64f96b4f30', '速网U8C_销售订单关闭', '速网U8C_销售订单关闭', '2', NULL, '1', '/u8cloud/api/so/saleorder/close', '1', '1', '10000', '100', '[]', '[]', '1', '[]', '[]', 69, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('ef6fd4bac1ba4c43a73bdc8e07e0cbe2', 8000350020, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c78369f5e69d4338bc1c27c2122827f2', '客商管理档案-删除', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/custmandoc/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"公司编码\",\"parameterName\":\"unitcode\",\"id\":\"8ce4e367-f0b7-498f-952a-9057dc15cc86\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"客商编码\",\"parameterName\":\"custcode\",\"id\":\"d1213c87-bbf7-426e-b1f2-bcaeebd232f3\",\"example\":\"202499101111\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"5e2ee220-20b6-4f48-9723-73164ce75163\",\"parameterName\":\"body\",\"first\":true}]', '[]', 161, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f223c8f5a3b242a6a800e092db0c33da', 8000350021, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'ef3465ed2f0c4bef950d54972ce11768', '项目基本档案-新增', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdjobbasfil/save', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"是否完工*必填\",\"parameterName\":\"finishedflag\",\"id\":\"8d00c456-cb2f-4d5a-b1e9-4bee25dce595\",\"example\":\"false\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"预计完工日期\",\"parameterName\":\"forecastenddate\",\"id\":\"fb2b0a1e-63d3-4b41-81b8-b56f3d3aec50\",\"example\":\"2024-09-22\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"项目编码\",\"parameterName\":\"jobcode\",\"id\":\"7d28e5f9-7593-496f-84f7-044069f78fed\",\"example\":\"20249001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"项目名称\",\"parameterName\":\"jobname\",\"id\":\"fd78b563-3b93-4bf9-970f-80d3abb04ed7\",\"example\":\"测试项目\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"所属公司,默认0001\",\"parameterName\":\"pk_corp\",\"id\":\"a03142ad-bde3-4589-9fe0-de7f2b14bea7\",\"example\":\"0001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"项目分类\",\"parameterName\":\"pk_jobcl\",\"id\":\"3c018241-fee6-4704-ad02-8df11673bc20\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"项目类型\",\"parameterName\":\"pk_jobtype\",\"id\":\"52b080ec-689a-459c-bb4c-bbe437464f9c\",\"example\":\"01\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"jobbasfils\",\"id\":\"caccafa6-2695-43b7-aefd-5b4af0132fab\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"1c75e9b4-9176-4852-ab69-3b5b28091a33\",\"parameterName\":\"body\",\"first\":true}]', '[]', 162, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f479b033bfe240c3bc9bf1eee4894624', 8000350013, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'df25cd0136ac4a5e94ea2f820176e00c', '其他出库保存', NULL, '2', NULL, '1', '/u8cloud/api/ic/otherout/insert', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"88fffdf0-b0b2-44b8-b120-9c58fdfc2129\",\"parameterName\":\"body\",\"first\":true}]', '[]', 96, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f4d04a88ba7c431f9d4ab81465c2aae3', 8000350016, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '05b318825e1049af8f3a5703fe46351e', '部门修改', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bddept/update', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"创建日期\",\"parameterName\":\"createDate\",\"id\":\"35b3c0a6-5720-43b8-9174-14d1f2d56471\",\"example\":\"2024-04-24\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"部门属性(其他部门1,采购2,销售3,采购销售4)\",\"parameterName\":\"deptattr\",\"id\":\"c7e7992d-7027-40ab-9293-d235e263b19d\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"部门编码\",\"parameterName\":\"deptcode\",\"id\":\"31fef11e-fe45-4014-be7f-6be2f698b298\",\"example\":\"99\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"部门名称\",\"parameterName\":\"deptname\",\"id\":\"909a6c10-f098-406b-b9bd-66d40e6edb52\",\"example\":\"DEV测试一级部门1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"部门类型\",\"parameterName\":\"depttype\",\"id\":\"8a2c04b4-2e28-447c-a805-b83efbfab36a\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"是否用于零售\",\"parameterName\":\"isuseretail\",\"id\":\"51bfead8-63f9-4075-ab6b-f75450907966\",\"example\":\"false\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"公司编码\",\"parameterName\":\"pk_corp\",\"id\":\"bff76dd6-2e96-4942-a99e-873e29f4da19\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"部门主键\",\"parameterName\":\"pk_deptdoc\",\"id\":\"ec4e39a4-2f05-4c4f-96a8-9b4865c4ec70\",\"example\":\"1001F11000000000676O\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"deptdoc\",\"id\":\"f0928b26-0a47-45b4-818f-35079c76ce80\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"af3fb096-be80-4976-865e-f996a09d002f\",\"parameterName\":\"body\",\"first\":true}]', '[]', 157, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f623449f939e4fd9857eb0fba53797a3', 8000350005, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'c0b2315ff678446ab6ba390c1926fe3c', '采购付款单保存即审批', '采购付款单保存即审批', '2', NULL, '1', '/u8cloud/api/arap/fk/insertapprove', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"bbhl\",\"id\":\"7aff6eac-f575-4ae5-a027-848645ab4020\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"dfbbje\",\"id\":\"02b1c539-a6d3-46ac-9a99-b6357ea748c5\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"dfbbsj\",\"id\":\"7253200a-030b-4ddc-829c-089509eee718\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"parameterName\":\"dfbbwsje\",\"id\":\"641b56c4-00aa-4cff-b040-4e35f70a68cc\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"dfshl\",\"id\":\"a47098b5-15b9-4560-aaf1-3e661dc815ee\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"dfybje\",\"id\":\"a0adf1df-234a-414f-95d6-3fa09a2e5b91\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"dfybsj\",\"id\":\"f5b8e1be-4c5c-40d9-b867-0e26788129d2\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"dfybwsje\",\"id\":\"152fca0a-a993-48a6-a9e0-58dd23319719\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"dj\",\"id\":\"759492d1-0a54-4605-ad4a-c8f018c74de1\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"hsdj\",\"id\":\"9292797f-ca0a-49ba-834a-2e5680d78b01\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"jfbbje\",\"id\":\"a71ebdd0-643b-4ff0-8bc5-5b8baa8fca67\",\"example\":\"999\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"jfbbsj\",\"id\":\"ad930aa2-d63a-4767-bdd6-8742436ad63b\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"jfshl\",\"id\":\"8cc0c71e-aa01-428a-a9d4-981f717a6991\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"parameterName\":\"jfybje\",\"id\":\"2928980d-58a1-4345-ba95-56cab883f3e1\",\"example\":\"999\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"parameterName\":\"jfybsj\",\"id\":\"168ed4e5-0dda-439b-a6dc-9d2d222531b3\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"parameterName\":\"jfybwsje\",\"id\":\"b7d6ec64-fff6-4b88-8fd2-65e4aa7421d2\",\"example\":\"999\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":18,\"parameterName\":\"kslb\",\"id\":\"22e3190e-19db-49c5-880f-7c044e9e58ec\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":19,\"parameterName\":\"sl\",\"id\":\"6d5f9c6e-d8b7-4825-a022-2dddf03fbd14\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":20,\"parameterName\":\"tradertype\",\"id\":\"49bb7919-6d6c-499c-ad4b-a639a85a9d5b\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":21,\"parameterName\":\"wbfbbje\",\"id\":\"58c49293-fa8c-4050-bc33-b0dc4016a603\",\"example\":\"999\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"children\",\"id\":\"322e3c04-dba4-4294-bd69-8053ef534ffa\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":23,\"parameterName\":\"bzbm\",\"id\":\"df9906a7-d287-4aa5-94c6-1b59729c222d\",\"example\":\"00010000000000000001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":24,\"parameterName\":\"djbh\",\"id\":\"6254d078-334f-4466-a744-7d665722ed9a\",\"example\":\"FK2309250004\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":25,\"parameterName\":\"djlxbm\",\"id\":\"ec3f5256-59a3-4cae-96cd-a4dfeb5f3ea8\",\"example\":\"D3\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":26,\"parameterName\":\"djrq\",\"id\":\"984c54c7-8332-4eb0-843d-c205b5a688c7\",\"example\":\"2023-09-27\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":27,\"parameterName\":\"dwbm\",\"id\":\"f7cbc093-519e-491c-9817-d15a93279186\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":28,\"parameterName\":\"effectdate\",\"id\":\"152b9d89-8b2c-466d-8a1a-70674843f3f8\",\"example\":\"2023-09-27\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":29,\"parameterName\":\"hbbm\",\"id\":\"cafddd3a-dd1c-4096-86e3-7cf92c998e04\",\"example\":\"0001F81000000000HJRA\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":30,\"parameterName\":\"isreded\",\"id\":\"78b2a316-7582-44f7-ac34-3ee942abf859\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":31,\"parameterName\":\"lrr\",\"id\":\"ba039bff-8774-4101-8729-499607a0e7aa\",\"example\":\"0001F81000000000HGYQ\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":32,\"parameterName\":\"prepay\",\"id\":\"0dd31959-74c0-4d85-8fbd-f995fcf29898\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":33,\"parameterName\":\"qcbz\",\"id\":\"5619061c-20c1-46a0-9f93-8326ec3367e1\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":34,\"parameterName\":\"shr\",\"id\":\"ca33d4c4-ff37-466b-9759-09d6532929a5\",\"example\":\"0001F81000000000HGZ1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":35,\"parameterName\":\"shrq\",\"id\":\"8cdb21ec-7cdc-4e0e-943e-d8595fe99dcd\",\"example\":\"2023-09-27\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":36,\"parameterName\":\"tradertype\",\"id\":\"bec4a564-89bc-4d6a-bc3e-fee9343057a2\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":37,\"parameterName\":\"wldx\",\"id\":\"f233a73f-19d0-4b61-9fe4-669e6f6a2209\",\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":38,\"parameterName\":\"xslxbm\",\"id\":\"97b1671a-f368-4515-8790-17b3d648d6a6\",\"example\":\"00011110000000002RGT\"}],\"concreteType\":\"Object\",\"index\":22,\"parameterName\":\"parentvo\",\"id\":\"ff76661d-961a-4ccb-8555-b0814efd300a\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"billvo\",\"id\":\"ba471ce4-118f-4902-a3c1-4992c371aecd\"}]', '[]', 7, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f7c2d73bd47b40549a7f77ed15f19e8e', 8000350008, NULL, '1', '3b52dc340cad48dab548b17d3095b981', 'df25cd0136ac4a5e94ea2f820176e00c', '其他出库保存即签字', '其他出库保存即签字', '2', NULL, '1', '/u8cloud/api/ic/otherout/save/sign', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"bonroadflag\",\"id\":\"08cd9a51-837e-4f69-a7e9-a9c5ce80cc5d\",\"example\":\"N\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"cinventoryid\",\"id\":\"08f9145b-2385-46bb-8922-23d305b3ea85\",\"example\":\"0001F81000000000HJFH\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"flargess\",\"id\":\"e8e39a04-931c-40d7-b351-d06f1e3227b0\",\"example\":\"N\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"cspaceid\",\"id\":\"83e249d0-9ea9-40b0-b81e-e7ae4527f8dc\",\"example\":\"1007F81000000000I19T\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"noutspacenum\",\"id\":\"607b83a9-df01-46b7-b05a-2bf8494475ed\",\"example\":\"0\"}],\"concreteType\":\"ObjectCom\",\"index\":5,\"parameterName\":\"locator\",\"id\":\"57fb6980-b5f1-457d-b9bd-7ce036453e8e\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"noutnum\",\"id\":\"e25dac78-9055-4ec7-aca1-a584c2b21dbc\",\"example\":\"0\"}],\"concreteType\":\"ObjectCom\",\"index\":1,\"parameterName\":\"childrenvo\",\"id\":\"0adf4304-bb1d-41a1-8dd4-d945c2e226bb\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"coperatorid\",\"id\":\"6e81e723-b1af-4713-8c56-fe19a69beab7\",\"example\":\"0001F81000000000HGZ1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"cwarehouseid\",\"id\":\"a6802c07-6617-4f86-8569-6a4a244399a0\",\"example\":\"1007F81000000000I0Z7\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"pk_calbody\",\"id\":\"1e515dd9-2049-411f-b065-969cf7fa2e75\",\"example\":\"1007F81000000000I0YF\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"pk_corp\",\"id\":\"60701db0-81d6-423b-afa3-e4735f81d442\",\"example\":\"1007\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"vbillcode\",\"id\":\"6a56b584-ceaa-44ec-94d1-9f4f46442991\",\"example\":\"ceshi005\"}],\"concreteType\":\"Object\",\"index\":9,\"parameterName\":\"parentvo\",\"id\":\"84da4e56-1ea9-4e8c-b776-e84a75295471\"}],\"concreteType\":\"ObjectCom\",\"index\":0,\"parameterName\":\"GeneralBillVO_4I\",\"id\":\"4afa054e-811a-4c1c-8fb1-23e78d60d913\"}]', '[]', 10, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('fca4e31da00d47fb8a6ae6f1e185e8a2', 8000350027, NULL, '1', '3b52dc340cad48dab548b17d3095b981', '64b66d7dac3c4bc89c056c472208954d', '存货分类删除', NULL, '2', NULL, '1', '/u8cloud/api/uapbd/bdinvcl/delete', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"分类编码\",\"parameterName\":\"code\",\"id\":\"a5a198fc-5bb1-48c0-8302-40980e50c5ad\",\"example\":\"04\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"b8b3e0ba-4979-407a-88fa-e4151cf251a6\",\"parameterName\":\"body\",\"first\":true}]', '[]', 168, '1', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); + +INSERT INTO sys_application_api_para (id, app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('04c7764766504656b32176ab87ee0bd7', '3b52dc340cad48dab548b17d3095b981', 'password', '83f1ad3e7fa3617f1aae62ae7413c810', '1', 4, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_para (id, app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('0f37aef4670047febecac1cc7417d56c', '3b52dc340cad48dab548b17d3095b981', 'usercode', 'aoxing', '1', 3, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_para (id, app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('22dbefe60056444295e34005368de36c', '3b52dc340cad48dab548b17d3095b981', 'trantype', 'code', '1', 5, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_para (id, app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('315dd421ba1547fe8319773f4822129e', '3b52dc340cad48dab548b17d3095b981', 'system', '01', '1', 6, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); + +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('05b318825e1049af8f3a5703fe46351e', '3b52dc340cad48dab548b17d3095b981', '部门档案', 46, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('1f061a02e4604353b5f62e33c7307840', '3b52dc340cad48dab548b17d3095b981', '库存委托加工入库单', 90, NULL, 'Y', '2024-07-16 11:17:16', '1', '2024-07-16 11:17:16', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('2336f43a33d244959285a74c16443aa8', '3b52dc340cad48dab548b17d3095b981', '转库单', 89, NULL, 'Y', '2024-07-16 11:15:58', '1', '2024-07-16 11:15:58', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('48de5b43d1ea4f7ebfd0a18d8ac2253a', '3b52dc340cad48dab548b17d3095b981', '采购入库', 86, NULL, 'Y', '2024-07-16 11:08:28', '1', '2024-07-16 11:08:28', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('56ccfdd16c59466986caa7f778d8908c', '3b52dc340cad48dab548b17d3095b981', '采购订单', 10, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('5bfeb3fef9004a9a8df21c30ef2c3265', '3b52dc340cad48dab548b17d3095b981', '委外订单', 88, NULL, 'Y', '2024-07-16 11:15:29', '1', '2024-07-16 11:15:29', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('5e4f5bc4d6a8438ba13efc05a39bfc5c', '3b52dc340cad48dab548b17d3095b981', '其他入库单', 13, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('601f31d4350f45a0b12682050f15abb2', '3b52dc340cad48dab548b17d3095b981', '存货档案', 9, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('60788a2d84f84d9288c92b371ff65f36', '3b52dc340cad48dab548b17d3095b981', '银行类别', 49, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('64b66d7dac3c4bc89c056c472208954d', '3b52dc340cad48dab548b17d3095b981', '存货分类', 48, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('71d6de477f1e4ecc86c819fc33738bb1', '3b52dc340cad48dab548b17d3095b981', '凭证管理', 45, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('74f7cdafcc264989b6c091ac6c431e3a', '3b52dc340cad48dab548b17d3095b981', '产成品入库单', 87, NULL, 'Y', '2024-07-16 11:13:51', '1', '2024-07-16 11:13:51', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('81a2cc28c3a64ee1abbf9e64f96b4f30', '3b52dc340cad48dab548b17d3095b981', '销售订单', 12, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ae7f51130f7646fe8e704fd259f161e0', '3b52dc340cad48dab548b17d3095b981', '收款单', 85, NULL, 'Y', '2024-07-16 11:06:17', '1', '2024-07-16 11:06:17', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('b4c9b97eaa1042d2bfabb704e35fdc19', '3b52dc340cad48dab548b17d3095b981', '调拨单', 15, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('be79f584800346e8b4332db0c45d706f', '3b52dc340cad48dab548b17d3095b981', '销售出库', 83, NULL, 'Y', '2024-07-16 11:01:30', '1', '2024-07-16 11:01:30', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('c0b2315ff678446ab6ba390c1926fe3c', '3b52dc340cad48dab548b17d3095b981', '采购付款单', 11, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('c78369f5e69d4338bc1c27c2122827f2', '3b52dc340cad48dab548b17d3095b981', '客商档案', 8, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('df25cd0136ac4a5e94ea2f820176e00c', '3b52dc340cad48dab548b17d3095b981', '其他出库单', 14, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ef3465ed2f0c4bef950d54972ce11768', '3b52dc340cad48dab548b17d3095b981', '项目档案', 47, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('f3acb3c21037486b9aaaced07b24e2d2', '3b52dc340cad48dab548b17d3095b981', '人员档案', 50, NULL, 'Y', '2024-07-16 10:18:39', '1', '2024-07-16 10:18:39', '1'); + + +update sys_application_api set extension_api = '2' where extension_api is null; +update sys_application_api set return_success_field = 'status' where return_success_field is null; +update sys_application_api set return_success_value = '200' where return_success_value is null; +update sys_application_api set return_msg = 'msg' where return_msg is null; + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/dj/V3.0.13__init_app_djzyOA.sql b/buildpackage/src/main/resources/dbSql/dj/V3.0.13__init_app_djzyOA.sql new file mode 100644 index 00000000..34c80780 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/dj/V3.0.13__init_app_djzyOA.sql @@ -0,0 +1,35 @@ +INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('53936623a8bd451fb7f5fed09cb36fab', NULL, '1', '东进致远OA', '8.2', '[\"1\"]', '11', '致远', '越城区发展集团致远OA', 'http://ufidahz.com.cn:9955/', 800034, NULL, 'http://ufidahz.com.cn:9955/', 'http://ufidahz.com.cn:9955/', 'ZJYATW/MfYZX7zF0eAh4DJXbyTLwUtwSoSz5Y/o1ksAaN/dCe7eDIk+3zDUT+v578prj', '+5BUkLQh3iX3VHgEt5bE2IPh+ZeebGvDaEspsvVu739Ar6sFnwg+fpPod4t6XhoTj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://115.239.174.22:9999', '1', '1', '1', 17, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:17:56', '1'); + +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('23499f05d50b495d989208e124469eff', 8000340004, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '33406ee83887421bb1cdeb728606dcbf', '按登录名取人员信息', '按登录名取人员信息', '2', NULL, '1', '/seeyon/rest/orgMember', '1', '2', '10000', '100', '[]', '[]', '1', '[{\"id\":\"c8620cd3-7ee3-47a9-8b1d-88d26f7c21d8\",\"parameterName\":\"body\",\"first\":true}]', '[]', 228, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'enabled', 'true', 'enabled'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('539a319b80224ce6a39106324bb68ef9', 8000340005, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '81333abd92ac40d7b15b080d6d3750a9', '附件上传', '假的', '2', NULL, '1', '/seeyon/rest/attachment', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"03521015-0cf3-4b9f-b0d6-41d13b5578e4\",\"parameterName\":\"body\",\"first\":true}]', '[]', 235, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '1', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('6cc3ea97cec24265810efced08509203', 8000340007, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', '支付申请明细日志', 'OA付款推到CBS的支付申请日志', '2', '6f561dd4a5a74bba850cc37e5c287e92', '1', '/seeyon/rest/form/import/formmain_0232', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"cc04b232-1755-49ab-b5bd-451ed4e7a9cf\",\"parameterName\":\"token\"}]', '[]', '1', '[{\"index\":0,\"id\":\"e167aa7a-43c0-476c-ae0d-9fc75752fc77\",\"parameterName\":\"body\",\"first\":true}]', '[]', 237, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, 'CbsLogServiceImpl', 'getTokenExt', '1', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('8aa016962a474a54a4a8efc60f284fa3', 8000340006, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', 'CBS收款记录', '保存CBS收款记录到OA底表\n调用的是xml格式的接口', '2', '6f561dd4a5a74bba850cc37e5c287e92', '1', '/seeyon/rest/form/import/formmain_0233', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"3a5e0ff5-7790-4402-9e93-a175f35a6630\",\"parameterName\":\"token\"}]', '[]', '1', '[{\"id\":\"a09d407c-df44-46fa-ab3c-cf99f1332b17\",\"parameterName\":\"body\",\"first\":true}]', '[]', 236, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, 'CbsLogServiceImpl', 'getTokenExt', '1', '1', '1', '1'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('9f047fd9a30246b48d12844da5ab59d5', 8000340003, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '27eae7084739493c97f2da86ba5f434b', '无流程表单批量新增', NULL, '2', NULL, '1', '/seeyon/rest/cap4/form/soap/batch-add', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"ad5f0b02-d555-4f65-8856-6afbab270870\",\"parameterName\":\"body\",\"first\":true}]', '[]', 221, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', 'code'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c75bab671dc94be68bf4498d49a93951', 8000340002, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '3b45cc93711c49c6a150d3b6aeddc60f', '流程表单发起', '流程表单发起', '2', NULL, '1', '/seeyon/rest/bpm/process/start', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"c25f517e-b8b8-4fcb-9466-6952ff754a1c\",\"parameterName\":\"body\",\"first\":true}]', '[]', 220, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', 'code'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('c7ac1418cb0a4061ade501ee5614630d', 8000340000, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '75200bc1ee464e86accf4022c71cc16c', 'token', '获取oatoken', '2', NULL, '1', '/seeyon/rest/token', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"description\":\"hzya_rest\",\"id\":\"a7f634e6-4325-409f-9d4d-c05418153f13\",\"parameterName\":\"userName\",\"example\":\"hzya_rest\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"f34ec8a4-10ca-4af5-8895-0bc650f92516\",\"parameterName\":\"password\",\"example\":\"5339d0e3-b23b-45d6-b301-c59de8bd447a\"},{\"parameterType\":\"fundamental\",\"index\":2,\"concreteType\":\"String\",\"description\":\"hzya_rest\",\"id\":\"4435d5e8-20d1-4b39-9286-77589e338c1e\",\"parameterName\":\"loginName\",\"example\":\"hzya_rest\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"description\":\"hzyaRest\",\"id\":\"37d4be39-a313-4776-9b80-214bb73666aa\",\"parameterName\":\"userName\",\"example\":\"hzyaRest\"},{\"parameterType\":\"fundamental\",\"index\":2,\"concreteType\":\"String\",\"description\":\"0c92d077-03ea-4d58-92c2-c743dae957d1\",\"id\":\"9fb64713-6645-429d-b377-66f4bc72e968\",\"parameterName\":\"password\",\"example\":\"0c92d077-03ea-4d58-92c2-c743dae957d1\"},{\"parameterType\":\"fundamental\",\"index\":3,\"concreteType\":\"String\",\"description\":\"xel\",\"id\":\"16789d17-bc77-4fd5-9ca9-5dbbbed2d59b\",\"parameterName\":\"loginName\",\"example\":\"xel\"}],\"index\":0,\"concreteType\":\"Object\",\"id\":\"8aef3b7b-e4b7-4465-b0c5-88ecc5f84200\",\"parameterName\":\"body\",\"first\":true}]', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"85f455c0-eed0-4292-8130-a52c242974ec\",\"parameterName\":\"userName\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"902fce32-f09d-4ce6-ac88-a06ef1950963\",\"parameterName\":\"id\"}]', 214, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'userName', 'hzyaRest', 'id不为空说明成功'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('f3778b38d03048249e9d063abbcacc5c', 8000340001, NULL, '1', '53936623a8bd451fb7f5fed09cb36fab', '3b45cc93711c49c6a150d3b6aeddc60f', '更新表单', '更新表单', '1', NULL, '1', '/seeyon/rest/businessResource/updateForm', '1', '1', '10000', '100', '[{\"parameterType\":\"authport\",\"index\":0,\"concreteType\":\"String\",\"id\":\"fdc278ea-8981-4db0-92b4-0b067d740ab6\",\"parameterName\":\"token\",\"example\":[\"id\"]}]', '[]', '1', '[]', '[]', 215, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL, NULL, NULL, '2', 'code', '0', '0表示成功'); + +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('27eae7084739493c97f2da86ba5f434b', '53936623a8bd451fb7f5fed09cb36fab', '无流程表单', 65, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('33406ee83887421bb1cdeb728606dcbf', '53936623a8bd451fb7f5fed09cb36fab', '组织架构', 70, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('3b45cc93711c49c6a150d3b6aeddc60f', '53936623a8bd451fb7f5fed09cb36fab', '流程表单', 64, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('75200bc1ee464e86accf4022c71cc16c', '53936623a8bd451fb7f5fed09cb36fab', 'token', 63, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('81333abd92ac40d7b15b080d6d3750a9', '53936623a8bd451fb7f5fed09cb36fab', '附件', 66, NULL, 'Y', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('ced72ee34965400cbac80b8944fb9eda', '53936623a8bd451fb7f5fed09cb36fab', '销售合同', 84, NULL, 'Y', '2024-07-16 11:03:40', '1', '2024-07-16 11:03:40', '1'); + +INSERT INTO sys_application_database (id, app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('21a9e85a5dfc497a9fdd5b2e084b57ec', '53936623a8bd451fb7f5fed09cb36fab', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', 19, '1', '2024-07-16 10:17:56', '1', '2024-07-16 10:17:56', 'Y', NULL); + +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('9378e84eacb94edaafcc09f3469b37e1', '53936623a8bd451fb7f5fed09cb36fab', 'OA用户档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-24 00:00:00', '1', 11, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL); +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('98929ef5049f455db40fad55b7127b21', '53936623a8bd451fb7f5fed09cb36fab', 'OA付款单同步BIP', 'PayBillPlugin', '1', NULL, '2024-06-25 00:00:00', '1', 16, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL); +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('a58d30d71f5943e9b114001ff36c69c3', '53936623a8bd451fb7f5fed09cb36fab', 'OA客户档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-24 00:00:00', '1', 13, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL); +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('d2032b6aff7345b69553e6d0ca07c65c', '53936623a8bd451fb7f5fed09cb36fab', 'OA银行档案', 'MdmCustomerPlugin', '1.0', NULL, '2024-06-25 00:00:00', '1', 14, '1', '2024-07-16 10:15:14', '1', '2024-07-16 10:15:14', 'Y', NULL); + + +update sys_application_api set extension_api = '2' where extension_api is null; +update sys_application_api set return_success_field = 'status' where return_success_field is null; +update sys_application_api set return_success_value = '200' where return_success_value is null; +update sys_application_api set return_msg = 'msg' where return_msg is null; + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.1__sys_init_table.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.1__sys_init_table.sql new file mode 100644 index 00000000..c80400f7 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.1__sys_init_table.sql @@ -0,0 +1,1940 @@ + + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + + +DROP TABLE IF EXISTS `dict_acct_subj`; +CREATE TABLE `dict_acct_subj` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `acct_year` varchar(100) DEFAULT NULL COMMENT '年度', + `acct_subj_code` varchar(255) DEFAULT NULL COMMENT '会计科目编码', + `acct_subj_name` varchar(255) DEFAULT NULL COMMENT '会计科目名称', + `supper_code` varchar(255) DEFAULT NULL COMMENT '上级编码', + `subj_level` varchar(255) DEFAULT NULL COMMENT '科目级次', + `is_last` varchar(255) DEFAULT NULL COMMENT '是否末级', + `subj_type_code` varchar(255) DEFAULT NULL COMMENT '科目类型编码', + `subj_type_name` varchar(255) DEFAULT NULL COMMENT '科目类型名称', + `direction` varchar(255) DEFAULT NULL COMMENT '借贷方向', + `is_cash` varchar(255) DEFAULT NULL COMMENT '是否现金', + `subj_nature_code` varchar(255) DEFAULT NULL COMMENT '科目性质', + `is_check` varchar(255) DEFAULT NULL COMMENT '是否辅助核算', + `is_stop` varchar(255) DEFAULT NULL COMMENT '是否停用', + `budg_subj_code` varchar(255) DEFAULT NULL COMMENT '预算会计科目编码', + `budg_subj_name` varchar(255) DEFAULT NULL COMMENT '预算会计科目名称', + `check_type_name1` varchar(255) DEFAULT NULL COMMENT '辅助核算项1', + `check_type_name2` varchar(255) DEFAULT NULL COMMENT '辅助核算项2', + `check_type_name3` varchar(255) DEFAULT NULL COMMENT '辅助核算项3', + `check_type_name4` varchar(255) DEFAULT NULL COMMENT '辅助核算项4', + `check_type_name5` varchar(255) DEFAULT NULL COMMENT '辅助核算项5', + `check_type_name6` varchar(255) DEFAULT NULL COMMENT '辅助核算项6', + `check_type_name7` varchar(255) DEFAULT NULL COMMENT '辅助核算项7', + `check_type_name8` varchar(255) DEFAULT NULL COMMENT '辅助核算项8', + `org_code` varchar(255) DEFAULT NULL COMMENT '单位编码', + `org_name` varchar(255) DEFAULT NULL COMMENT '单位名称', + `branch_code` varchar(255) DEFAULT NULL COMMENT '院区编码', + `branch_name` varchar(255) DEFAULT NULL COMMENT '院区名称', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='子表'; + +-- ---------------------------- +-- Table structure for dict_check_type +-- ---------------------------- +DROP TABLE IF EXISTS `dict_check_type`; +CREATE TABLE `dict_check_type` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `check_type_code` varchar(100) DEFAULT NULL COMMENT '辅助核算项编码', + `check_type_name` varchar(255) DEFAULT NULL COMMENT '辅助核算项名称', + `org_code` varchar(255) DEFAULT NULL COMMENT '单位编码', + `org_name` varchar(255) DEFAULT NULL COMMENT '单位名称', + `branch_code` varchar(255) DEFAULT NULL COMMENT '院区编码', + `branch_name` varchar(255) DEFAULT NULL COMMENT '院区名称', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='子表'; + +-- ---------------------------- +-- Table structure for integration_task +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task`; +CREATE TABLE `integration_task` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `task_code` varchar(255) DEFAULT NULL COMMENT '任务编码', + `task_name` varchar(255) DEFAULT NULL COMMENT '任务名称', + `task_cron` varchar(255) DEFAULT NULL COMMENT '任务策略', + `task_status` varchar(255) DEFAULT NULL COMMENT '任务状态1、启用2、停用', + `task_app` varchar(255) DEFAULT NULL COMMENT '应用', + `task_plugin` varchar(255) DEFAULT NULL COMMENT '插件', + `fun_info` varchar(255) DEFAULT NULL COMMENT '功能介绍/任务描述', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务'; + +-- ---------------------------- +-- Table structure for integration_task_living +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_living`; +CREATE TABLE `integration_task_living` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `task_id` varchar(255) DEFAULT NULL COMMENT 'integration_task_id', + `task_code` varchar(255) DEFAULT NULL COMMENT '任务编码', + `task_name` varchar(255) DEFAULT NULL COMMENT '任务名称', + `task_status` varchar(255) DEFAULT NULL COMMENT '任务状态1、执行中2、待执行3、错误', + `old_start_time` datetime DEFAULT NULL COMMENT '上次开始时间', + `start_time` datetime DEFAULT NULL COMMENT '当前任务开始时间', + `end_time` datetime DEFAULT NULL COMMENT '结束时间', + `diff_time` varchar(255) DEFAULT NULL COMMENT '耗时', + `run_num` int DEFAULT NULL COMMENT '运行次数', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-实例'; + +-- ---------------------------- +-- Table structure for integration_task_living_details +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_living_details`; +CREATE TABLE `integration_task_living_details` ( + `id` varchar(255) NOT NULL, + `task_linving_id` varchar(255) DEFAULT NULL COMMENT '集成任务-实例_id', + `result` varchar(255) DEFAULT NULL COMMENT '返回结果', + `query_condition` varchar(255) DEFAULT NULL COMMENT '原始查询条件', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据', + `root_app_new_data` longtext COMMENT '最新源系统数据详情', + `new_transmit_info` longtext COMMENT '最新传输信息', + `new_push_date` datetime DEFAULT NULL COMMENT '最新推送时间', + `repair_pust` char(1) DEFAULT NULL COMMENT '是否补推(Y是N不是)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `sence_id` varchar(255) DEFAULT NULL COMMENT '场景id', + `new_state` varchar(255) DEFAULT NULL COMMENT '最新推送状态', + `business_date` varchar(255) DEFAULT NULL COMMENT '单据业务日期', + `plugin_id` varchar(255) DEFAULT NULL COMMENT '插件id', + `processing_time` datetime DEFAULT NULL COMMENT '处理时间', + `processing_remarks` varchar(255) DEFAULT NULL COMMENT '处理备注', + `processor_name` varchar(255) DEFAULT NULL COMMENT '处理⼈名称', + `processor` varchar(255) DEFAULT NULL COMMENT '处理⼈', + `new_system_number` varchar(255) DEFAULT NULL COMMENT '下游系统单号', + `new_system_primary` varchar(255) DEFAULT NULL COMMENT '下游系统主键', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `def1` varchar(200) DEFAULT NULL COMMENT '扩展1', + `def2` varchar(200) DEFAULT NULL COMMENT '扩展2', + `def3` varchar(200) DEFAULT NULL COMMENT '扩展3', + `def4` varchar(200) DEFAULT NULL COMMENT '扩展4', + `def5` varchar(200) DEFAULT NULL COMMENT '扩展5', + PRIMARY KEY (`sorts`,`id`) USING BTREE, + KEY `plugin_id` (`plugin_id`) USING BTREE COMMENT 'plugin_id', + KEY `root_app_pk` (`root_app_pk`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-实例详情'; + +-- ---------------------------- +-- Table structure for integration_task_living_details_success +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_living_details_success`; +CREATE TABLE `integration_task_living_details_success` ( + `id` varchar(255) NOT NULL, + `task_linving_id` varchar(255) DEFAULT NULL COMMENT '集成任务-实例_id', + `result` varchar(255) DEFAULT NULL COMMENT '返回结果', + `query_condition` varchar(255) DEFAULT NULL COMMENT '原始查询条件', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据', + `root_app_new_data` longtext COMMENT '最新源系统数据详情', + `new_transmit_info` longtext COMMENT '最新传输信息', + `new_push_date` datetime DEFAULT NULL COMMENT '最新推送时间', + `repair_pust` char(1) DEFAULT NULL COMMENT '是否补推(Y是N不是)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `sence_id` varchar(255) DEFAULT NULL COMMENT '场景id', + `new_state` varchar(255) DEFAULT NULL COMMENT '最新推送状态', + `business_date` varchar(255) DEFAULT NULL COMMENT '单据业务日期', + `plugin_id` varchar(255) DEFAULT NULL COMMENT '插件id', + `processing_time` datetime DEFAULT NULL COMMENT '处理时间', + `processing_remarks` varchar(255) DEFAULT NULL COMMENT '处理备注', + `processor_name` varchar(255) DEFAULT NULL COMMENT '处理⼈名称', + `processor` varchar(255) DEFAULT NULL COMMENT '处理⼈', + `new_system_number` varchar(255) DEFAULT NULL COMMENT '下游系统单号', + `new_system_primary` varchar(255) DEFAULT NULL COMMENT '下游系统主键', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `def1` varchar(200) DEFAULT NULL COMMENT '扩展1', + `def2` varchar(200) DEFAULT NULL COMMENT '扩展2', + `def3` varchar(200) DEFAULT NULL COMMENT '扩展3', + `def4` varchar(200) DEFAULT NULL COMMENT '扩展4', + `def5` varchar(200) DEFAULT NULL COMMENT '扩展5', + PRIMARY KEY (`sorts`,`id`) USING BTREE, + KEY `plugin_id` (`plugin_id`) USING BTREE COMMENT 'plugin_id', + KEY `root_app_pk` (`root_app_pk`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-实例详情'; + +-- ---------------------------- +-- Table structure for integration_task_log +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_log`; +CREATE TABLE `integration_task_log` ( + `id` varchar(255) NOT NULL, + `task_linving_id` varchar(255) DEFAULT NULL COMMENT '集成任务-实例_id', + `task_id` varchar(255) DEFAULT NULL COMMENT 'integration_task_id', + `task_code` varchar(255) DEFAULT NULL COMMENT '任务编码', + `task_name` varchar(255) DEFAULT NULL COMMENT '任务名称', + `task_status` varchar(255) DEFAULT NULL COMMENT '任务状态1、执行中2、执行成功 3、执行失败', + `start_time` datetime DEFAULT NULL COMMENT '当前任务开始时间', + `end_time` datetime DEFAULT NULL COMMENT '结束时间', + `diff_time` varchar(255) DEFAULT NULL COMMENT '耗时', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-实例详情'; + +-- ---------------------------- +-- Table structure for integration_task_log_details +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_log_details`; +CREATE TABLE `integration_task_log_details` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `task_linving_id` varchar(255) DEFAULT NULL COMMENT '集成任务-实例_id', + `result` varchar(255) DEFAULT NULL COMMENT '返回结果', + `query_condition` varchar(255) DEFAULT NULL COMMENT '原始查询条件', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据', + `root_app_new_data` text COMMENT '最新源系统数据详情', + `new_transmit_info` text COMMENT '最新传输信息', + `new_push_date` datetime DEFAULT NULL COMMENT '最新推送时间', + `root_app_code` varchar(255) DEFAULT NULL COMMENT '源系统编码', + `business_time` varchar(100) DEFAULT NULL COMMENT '业务日期', + `new_push_state` varchar(255) DEFAULT NULL COMMENT '最新推送状态', + `processor` varchar(255) DEFAULT NULL COMMENT '处理人', + `processor_time` varchar(255) DEFAULT NULL COMMENT '处理时间', + `processor_remark` varchar(255) DEFAULT NULL COMMENT '处理备注', + `new_metadata` varchar(255) DEFAULT NULL COMMENT '最新元数据', + `repair_pust` char(1) DEFAULT NULL COMMENT '是否补推(Y是N不是)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `def1` varchar(200) DEFAULT NULL COMMENT '扩展1', + `def2` varchar(200) DEFAULT NULL COMMENT '扩展2', + `def3` varchar(200) DEFAULT NULL COMMENT '扩展3', + `def4` varchar(200) DEFAULT NULL COMMENT '扩展4', + `def5` varchar(200) DEFAULT NULL COMMENT '扩展5', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-日志详情'; + +-- ---------------------------- +-- Table structure for integration_task_log_details_success +-- ---------------------------- +DROP TABLE IF EXISTS `integration_task_log_details_success`; +CREATE TABLE `integration_task_log_details_success` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `task_linving_id` varchar(255) DEFAULT NULL COMMENT '集成任务-实例_id', + `result` varchar(255) DEFAULT NULL COMMENT '返回结果', + `query_condition` varchar(255) DEFAULT NULL COMMENT '原始查询条件', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据', + `root_app_new_data` text COMMENT '最新源系统数据详情', + `new_transmit_info` text COMMENT '最新传输信息', + `new_push_date` datetime DEFAULT NULL COMMENT '最新推送时间', + `root_app_code` varchar(255) DEFAULT NULL COMMENT '源系统编码', + `business_time` varchar(100) DEFAULT NULL COMMENT '业务日期', + `new_push_state` varchar(255) DEFAULT NULL COMMENT '最新推送状态', + `processor` varchar(255) DEFAULT NULL COMMENT '处理人', + `processor_time` varchar(255) DEFAULT NULL COMMENT '处理时间', + `processor_remark` varchar(255) DEFAULT NULL COMMENT '处理备注', + `new_metadata` varchar(255) DEFAULT NULL COMMENT '最新元数据', + `repair_pust` char(1) DEFAULT NULL COMMENT '是否补推(Y是N不是)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `def1` varchar(200) DEFAULT NULL COMMENT '扩展1', + `def2` varchar(200) DEFAULT NULL COMMENT '扩展2', + `def3` varchar(200) DEFAULT NULL COMMENT '扩展3', + `def4` varchar(200) DEFAULT NULL COMMENT '扩展4', + `def5` varchar(200) DEFAULT NULL COMMENT '扩展5', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成任务-日志详情'; + + +-- ---------------------------- +-- Table structure for mdm_module +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module`; +CREATE TABLE `mdm_module` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_name` varchar(50) DEFAULT NULL COMMENT '主数据名称', + `mdm_logo` varchar(255) DEFAULT NULL COMMENT 'logo', + `mdm_code` bigint DEFAULT NULL COMMENT '主数据编码', + `mdm_type` varchar(50) DEFAULT NULL COMMENT '主数据类型 1、档案 2、单据', + `remark` varchar(200) DEFAULT NULL COMMENT '描述', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据模版'; + +-- ---------------------------- +-- Table structure for mdm_module_db +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_db`; +CREATE TABLE `mdm_module_db` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `db_name` varchar(50) DEFAULT NULL COMMENT '表名', + `db_type` varchar(50) DEFAULT NULL COMMENT '类型 1、主表 2、明细 3、操作日志 4、下发日志', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模版数据库表'; + +-- ---------------------------- +-- Table structure for mdm_module_db_fileds +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_db_fileds`; +CREATE TABLE `mdm_module_db_fileds` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `db_id` varchar(50) DEFAULT NULL COMMENT '模版数据库id', + `ch_name` varchar(50) DEFAULT NULL COMMENT '中文名', + `en_name` varchar(200) DEFAULT NULL COMMENT '英文名', + `filed_type` varchar(200) DEFAULT NULL COMMENT '字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME', + `add_type` varchar(200) DEFAULT NULL COMMENT '显示类型:新增', + `update_type` varchar(200) DEFAULT NULL COMMENT '显示类型:修改', + `show_type` varchar(200) DEFAULT NULL COMMENT '显示类型:查看', + `query_type` varchar(200) DEFAULT NULL COMMENT '显示类型:查询', + `list_type` varchar(200) DEFAULT NULL COMMENT '显示类型:列表', + `view_type` varchar(200) DEFAULT NULL COMMENT '显示类型:显示', + `filed_length` varchar(200) DEFAULT NULL COMMENT '长度', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模版数据库字段表'; + +-- ---------------------------- +-- Table structure for mdm_module_db_fileds_rule +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_db_fileds_rule`; +CREATE TABLE `mdm_module_db_fileds_rule` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `form_name` varchar(50) DEFAULT NULL COMMENT '前端分拣用', + `db_id` varchar(50) DEFAULT NULL COMMENT '模版数据库id', + `filed_id` varchar(50) DEFAULT NULL COMMENT '模版数据库字段id', + `rule_name` varchar(50) DEFAULT NULL COMMENT '规则名称', + `rule_code` varchar(50) DEFAULT NULL COMMENT '规则编码', + `rule_value` varchar(200) DEFAULT NULL COMMENT '规则值', + `rule_type` char(1) DEFAULT NULL COMMENT '规则类型1、表单属性 2、控件属性', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模版数据库字段规则表'; + +-- ---------------------------- +-- Table structure for mdm_module_distribute +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_distribute`; +CREATE TABLE `mdm_module_distribute` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `enabled_type` varchar(50) DEFAULT NULL COMMENT '触发类型 0、手动1、自动', + `update_api` varchar(50) DEFAULT NULL COMMENT '修改接口', + `update_script` varchar(50) DEFAULT NULL COMMENT '修改插件', + `add_api` varchar(50) DEFAULT NULL COMMENT '新增接口', + `add_script` varchar(50) DEFAULT NULL COMMENT '新增插件', + `delete_api` varchar(50) DEFAULT NULL COMMENT '删除接口', + `delete_script` varchar(50) DEFAULT NULL COMMENT '删除插件', + `enabled_state` char(1) DEFAULT NULL COMMENT '启用停用 0、停用1、启用', + `db_id` varchar(50) DEFAULT NULL COMMENT '主表ID', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据功能应用分发表'; + +-- ---------------------------- +-- Table structure for mdm_module_distribute_detail +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_distribute_detail`; +CREATE TABLE `mdm_module_distribute_detail` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `distribute_id` varchar(50) DEFAULT NULL COMMENT '应用分发id', + `api_id` varchar(50) DEFAULT NULL COMMENT '接口id', + `data_type` varchar(50) DEFAULT NULL COMMENT '数据类型 1、新增2、修改3、删除', + `left_bracket` varchar(1) DEFAULT NULL COMMENT '左括号', + `filed_id` varchar(255) DEFAULT NULL COMMENT '字段id', + `filed_name` varchar(255) DEFAULT NULL COMMENT '字段名', + `compare_type` varchar(10) DEFAULT NULL COMMENT '对比类型 1、等于 2、不等于 3、大于 4、小于', + `filed_vaule` varchar(255) DEFAULT NULL COMMENT '目标API字段默认值', + `connection_symbol` varchar(255) DEFAULT NULL COMMENT '连接符号 1\\and 2\\or', + `right_parenthesis` varchar(1) DEFAULT NULL COMMENT '右括号', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据功能应用分发明细表'; + +-- ---------------------------- +-- Table structure for mdm_module_distribute_tripartite +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_distribute_tripartite`; +CREATE TABLE `mdm_module_distribute_tripartite` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据id', + `data_id` varchar(50) DEFAULT NULL COMMENT '数据id', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `tripartite_id` varchar(255) DEFAULT NULL COMMENT '三方id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据下发三方主键表'; + +-- ---------------------------- +-- Table structure for mdm_module_role +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_role`; +CREATE TABLE `mdm_module_role` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `role_id` varchar(50) DEFAULT NULL COMMENT '角色id', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据功能角色表'; + +-- ---------------------------- +-- Table structure for mdm_module_role_button +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_role_button`; +CREATE TABLE `mdm_module_role_button` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `module_role_id` varchar(50) DEFAULT NULL COMMENT '模块角色id', + `role_id` varchar(50) DEFAULT NULL COMMENT '角色id', + `button_type` varchar(50) DEFAULT NULL COMMENT '按钮类型', + `button_name` varchar(50) DEFAULT NULL COMMENT '按钮名', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据功能角色按钮表'; + +-- ---------------------------- +-- Table structure for mdm_module_source +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_source`; +CREATE TABLE `mdm_module_source` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `source_type` varchar(50) DEFAULT NULL COMMENT '来源类型1、插件2、api', + `source_name` varchar(200) DEFAULT NULL COMMENT '来源应用', + `trigger_type` varchar(200) DEFAULT NULL COMMENT ' 触发类型 1、手动 2、自动', + `source_code` varchar(200) DEFAULT NULL COMMENT '来源编码', + `add_api` varchar(200) DEFAULT NULL COMMENT '新增接口', + `update_api` varchar(200) DEFAULT NULL COMMENT '修改接口', + `delete_api` varchar(200) DEFAULT NULL COMMENT '删除接口', + `enabled_state` varchar(200) DEFAULT NULL COMMENT '启用停用 0、停用1、启用', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据数据来源'; + +-- ---------------------------- +-- Table structure for mdm_module_user_view +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_user_view`; +CREATE TABLE `mdm_module_user_view` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `user_id` varchar(50) DEFAULT NULL COMMENT '用户id', + `view_detail_id` varchar(200) DEFAULT NULL COMMENT '视图明细id', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据用户视图表'; + +-- ---------------------------- +-- Table structure for mdm_module_view +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_view`; +CREATE TABLE `mdm_module_view` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `view_name` varchar(50) DEFAULT NULL COMMENT '显示类型', + `view_filed` varchar(50) DEFAULT NULL COMMENT '显示字段', + `up_id_filed` varchar(200) DEFAULT NULL COMMENT '上级id字段', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据视图表'; + +-- ---------------------------- +-- Table structure for mdm_module_view_button +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_view_button`; +CREATE TABLE `mdm_module_view_button` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `view_id` varchar(50) DEFAULT NULL COMMENT '视图id', + `button_type` varchar(200) DEFAULT NULL COMMENT '类型1、新建2、重置3、查询4、修改 5、删除 6、查看', + `button_value` varchar(200) DEFAULT NULL COMMENT '按钮值', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据视图按钮表'; + +-- ---------------------------- +-- Table structure for mdm_module_view_detail +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_module_view_detail`; +CREATE TABLE `mdm_module_view_detail` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `view_id` varchar(50) DEFAULT NULL COMMENT '视图id', + `view_filed` varchar(50) DEFAULT NULL COMMENT '字段', + `view_type` varchar(200) DEFAULT NULL COMMENT '类型1、查询2、列表3、新增4、修改 5、查看', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='主数据视图明细表'; + + +-- ---------------------------- +-- Table structure for mdm_table_code_rule +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_table_code_rule`; +CREATE TABLE `mdm_table_code_rule` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `mdm_id` varchar(50) DEFAULT NULL COMMENT '主数据模版ID', + `db_id` varchar(50) DEFAULT NULL COMMENT 'db_id', + `db_name` varchar(50) DEFAULT NULL COMMENT '规则', + `db_type` varchar(50) DEFAULT NULL COMMENT '类型 1、固定值 2、日期 3、流水', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `db_value` varchar(255) DEFAULT NULL COMMENT '规则值', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模版数据表编码规则表'; + + + +-- ---------------------------- +-- Table structure for sys_application +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application`; +CREATE TABLE `sys_application` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `app_logo` varchar(200) DEFAULT NULL COMMENT '应用logo(地址或者id)', + `app_status` char(1) DEFAULT NULL COMMENT '应用是否启用(1、启用 2、停用)', + `name` varchar(50) DEFAULT NULL COMMENT '应用名称', + `version_number` varchar(200) DEFAULT NULL COMMENT '版本号', + `access_mode` varchar(50) DEFAULT NULL COMMENT '接入方式(1、接口2、H53、PC网页4、PC应用程序 )', + `affiliation_field` varchar(50) DEFAULT NULL COMMENT '所属领域(枚举表)', + `manufacturer` varchar(50) DEFAULT NULL COMMENT '厂商', + `app_introduction` varchar(200) DEFAULT NULL COMMENT '应用简介', + `client_path` varchar(200) DEFAULT NULL COMMENT '应用客户端地址(PC)', + `app_id` bigint DEFAULT NULL COMMENT 'appid', + `system_address` varchar(200) DEFAULT NULL COMMENT 'ip白名单', + `web_path` varchar(200) DEFAULT NULL COMMENT '应用网页端地址(PC)', + `program_path` varchar(200) DEFAULT NULL COMMENT '应用程序地址(移动端)', + `public_key` varchar(200) DEFAULT NULL COMMENT '应用key', + `secret_key` varchar(200) DEFAULT NULL COMMENT '应用密钥', + `interface_address` varchar(200) DEFAULT NULL COMMENT '接口地址', + `interface_status` char(1) DEFAULT NULL COMMENT '接口环境是否启用(1、开启 2、关闭)', + `app_type` varchar(50) DEFAULT NULL COMMENT '系统类型 1、致远OA 2、用友U8C 3、用友BIP', + `db_status` char(1) DEFAULT NULL COMMENT '数据源是否启用(1、开启 2、关闭)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序号', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用表'; + +-- ---------------------------- +-- Table structure for sys_application_api +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_api`; +CREATE TABLE `sys_application_api` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `api_code` bigint DEFAULT NULL COMMENT '接口编码', + `api_path` varchar(200) DEFAULT NULL COMMENT 'Api接口地址(固定系统内部外放接口地址)', + `api_status` varchar(50) DEFAULT NULL COMMENT '1启用2停用', + `app_id` varchar(50) DEFAULT NULL COMMENT 'api应用', + `catalogue_id` varchar(50) DEFAULT NULL COMMENT '目录', + `api_name` varchar(50) DEFAULT NULL COMMENT 'api名称', + `api_remark` varchar(200) DEFAULT NULL COMMENT 'api描述', + `need_Login` char(1) DEFAULT NULL COMMENT '是否需要登录 1、是 2、否', + `authentication_port` varchar(50) DEFAULT NULL COMMENT '认证接口', + `parameter_passing_mode` char(1) DEFAULT NULL COMMENT '传参方式 1、query 2、data', + `destination_address` varchar(200) DEFAULT NULL COMMENT '目标地址', + `request_coding` char(1) DEFAULT NULL COMMENT '请求编码 1、UTF-8', + `request_method` char(1) DEFAULT NULL COMMENT '请求方法 1、POST 2、GET', + `timeout_period` varchar(50) DEFAULT NULL COMMENT '超时时间 6000 ms', + `current_limiting` varchar(50) DEFAULT NULL COMMENT '限流 6000 ms', + `header_in` text COMMENT 'Header入参 JSON', + `query_in` text COMMENT 'Query入参 JSON', + `body_in_type` char(1) DEFAULT NULL COMMENT 'Body 入参类型 1、Application/json', + `body_in` text COMMENT 'Body 入参 JSON', + `body_out` text COMMENT 'Body 出参 JSON', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `bean_name` varchar(255) DEFAULT NULL COMMENT 'bean名称', + `fun_name` varchar(255) DEFAULT NULL COMMENT '方法名称', + `extension_api` varchar(255) DEFAULT NULL COMMENT '是否扩展api', + `return_success_field` varchar(255) DEFAULT NULL COMMENT '返回成功字段', + `return_success_value` varchar(255) DEFAULT NULL COMMENT '返回成功值', + `return_msg` varchar(255) DEFAULT NULL COMMENT '返回描述字段', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用api'; + +-- ---------------------------- +-- Table structure for sys_application_api_auth +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_api_auth`; +CREATE TABLE `sys_application_api_auth` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `system_status` char(1) DEFAULT NULL COMMENT '状态(1、开启 2、关闭)', + `name` varchar(50) DEFAULT NULL COMMENT '系统名称', + `system_address` text COMMENT '接口地址', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='三方调用系统表'; + +-- ---------------------------- +-- Table structure for sys_application_api_auth_detail +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_api_auth_detail`; +CREATE TABLE `sys_application_api_auth_detail` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `catalogue_id` varchar(50) DEFAULT NULL COMMENT '目录id', + `api_id` varchar(50) DEFAULT NULL COMMENT '接口id', + `tripartite_system_id` varchar(50) DEFAULT NULL COMMENT '三方调用系统表id', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用api关联三方调用系统表'; + +-- ---------------------------- +-- Table structure for sys_application_api_para +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_api_para`; +CREATE TABLE `sys_application_api_para` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `interface_key` varchar(200) DEFAULT NULL COMMENT 'key', + `interface_value` varchar(200) DEFAULT NULL COMMENT 'value', + `interface_type` char(1) DEFAULT NULL COMMENT '类型(1、header2、body)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序号', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='接口环境参数表'; + +-- ---------------------------- +-- Table structure for sys_application_api_type +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_api_type`; +CREATE TABLE `sys_application_api_type` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `name` varchar(200) DEFAULT NULL COMMENT '目录名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序号', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='目录表'; + +-- ---------------------------- +-- Table structure for sys_application_database +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_database`; +CREATE TABLE `sys_application_database` ( + `id` varchar(50) CHARACTER SET utf16 COLLATE utf16_general_ci NOT NULL DEFAULT '' COMMENT '唯一标识码', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `source_code` varchar(300) DEFAULT NULL COMMENT '数据源唯一编码', + `source_name` varchar(300) DEFAULT NULL COMMENT '数据源名称', + `source_type` char(1) DEFAULT NULL COMMENT '数据源类型(1、oracle 2、sqlServer3、mysql)', + `source_ip` varchar(255) DEFAULT NULL COMMENT 'ip', + `source_port` varchar(255) DEFAULT NULL COMMENT '端口', + `login_name` varchar(200) DEFAULT NULL COMMENT '登录名', + `password` varchar(200) DEFAULT NULL COMMENT '密码', + `db_name` varchar(200) DEFAULT NULL COMMENT '库名', + `service_name` varchar(300) DEFAULT NULL COMMENT '选择oracle下服务名称', + `db_status` char(1) DEFAULT NULL COMMENT '数据源是否启用(1、开启 2、关闭)', + `sorts` bigint NOT NULL COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数据源表'; + +-- ---------------------------- +-- Table structure for sys_application_database_back +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_database_back`; +CREATE TABLE `sys_application_database_back` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `source_type` char(1) DEFAULT NULL COMMENT '数据源类型(1、oracle 2、sqlServer3、mysql)', + `source_url` varchar(500) DEFAULT NULL COMMENT '实例地址', + `login_name` varchar(200) DEFAULT NULL COMMENT '账户', + `password` varchar(200) DEFAULT NULL COMMENT '密码', + `db_name` varchar(200) DEFAULT NULL COMMENT '库名', + `db_status` char(1) DEFAULT NULL COMMENT '数据源是否启用(1、开启 2、关闭)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数据源表'; + +-- ---------------------------- +-- Table structure for sys_application_plugin +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_plugin`; +CREATE TABLE `sys_application_plugin` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `plugin_name` varchar(255) DEFAULT NULL COMMENT '插件名称', + `plugin_code` varchar(50) DEFAULT NULL COMMENT '插件编号', + `plugin_version` varchar(50) DEFAULT NULL COMMENT '插件版本', + `plugin_remark` varchar(200) DEFAULT NULL COMMENT '描述', + `release_date` datetime DEFAULT NULL COMMENT '发布日期', + `plugin_status` char(1) DEFAULT NULL COMMENT '启用停用(1启用2停用)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='插件表'; + +-- ---------------------------- +-- Table structure for sys_application_script +-- ---------------------------- +DROP TABLE IF EXISTS `sys_application_script`; +CREATE TABLE `sys_application_script` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `app_id` varchar(50) DEFAULT NULL COMMENT '应用id', + `script_name` varchar(255) DEFAULT NULL COMMENT '脚本名称', + `script_code` varchar(50) DEFAULT NULL COMMENT '脚本编号', + `script_version` varchar(50) DEFAULT NULL COMMENT '脚本版本', + `class_name` varchar(255) DEFAULT NULL COMMENT 'classname', + `script_data` longtext COMMENT '脚本内容', + `back_script_data` longtext COMMENT '返回脚本内容', + `script_remark` varchar(200) DEFAULT NULL COMMENT '描述', + `release_date` datetime DEFAULT NULL COMMENT '发布日期', + `script_status` char(1) DEFAULT NULL COMMENT '启用停用(1启用2停用)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='脚本表'; + +-- ---------------------------- +-- Table structure for sys_assets_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_assets_control`; +CREATE TABLE `sys_assets_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='资产类别'; + +-- ---------------------------- +-- Table structure for sys_bank_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_bank_control`; +CREATE TABLE `sys_bank_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='银行类别'; + +-- ---------------------------- +-- Table structure for sys_bankaccount_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_bankaccount_control`; +CREATE TABLE `sys_bankaccount_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='银行账户'; + +-- ---------------------------- +-- Table structure for sys_button_config +-- ---------------------------- +DROP TABLE IF EXISTS `sys_button_config`; +CREATE TABLE `sys_button_config` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `code` varchar(200) DEFAULT NULL COMMENT '按钮编码', + `name_ch` varchar(200) DEFAULT NULL COMMENT '中文名称', + `name_en` varchar(200) DEFAULT NULL COMMENT '英文名称', + `menu_id` varchar(50) DEFAULT NULL COMMENT '所属菜单ID', + `icon_name` varchar(50) DEFAULT NULL COMMENT '图标', + `styles` varchar(50) DEFAULT NULL COMMENT '样式', + `btn_function` varchar(50) DEFAULT NULL COMMENT '按钮事件', + `remark` varchar(200) DEFAULT NULL COMMENT '按钮备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='按钮配置表'; + +-- ---------------------------- +-- Table structure for sys_dictionaryshop +-- ---------------------------- +DROP TABLE IF EXISTS `sys_dictionaryshop`; +CREATE TABLE `sys_dictionaryshop` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `tab_name` varchar(100) DEFAULT NULL COMMENT '表名', + `column_name` varchar(100) DEFAULT NULL COMMENT '列名', + `column_content` varchar(100) DEFAULT NULL COMMENT '列说明', + `column_value` varchar(20) DEFAULT NULL COMMENT '列值', + `column_num_value` bigint DEFAULT NULL COMMENT '列数字值用于比较数据字典大小', + `up_id` bigint DEFAULT NULL COMMENT '如果数据字典上下级,通过连接上级id,当前表id', + `memo` varchar(100) DEFAULT NULL COMMENT '备注', + `used_sts` char(1) DEFAULT NULL COMMENT '使用状态,1 使用,2 不使用', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数据字典表'; + +-- ---------------------------- +-- Table structure for sys_dictionaryshop_new +-- ---------------------------- +DROP TABLE IF EXISTS `sys_dictionaryshop_new`; +CREATE TABLE `sys_dictionaryshop_new` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `tab_name` varchar(100) DEFAULT NULL COMMENT '表名', + `column_name` varchar(100) DEFAULT NULL COMMENT '列名', + `column_content` varchar(100) DEFAULT NULL COMMENT '列说明', + `column_value` varchar(20) DEFAULT NULL COMMENT '列值', + `column_num_value` bigint DEFAULT NULL COMMENT '列数字值用于比较数据字典大小', + `up_id` bigint DEFAULT NULL COMMENT '如果数据字典上下级,通过连接上级id,当前表id', + `memo` varchar(100) DEFAULT NULL COMMENT '备注', + `used_sts` char(1) DEFAULT NULL COMMENT '使用状态,1 使用,2 不使用', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `org_id` varchar(50) DEFAULT NULL COMMENT '所属组织机构', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数据字典表'; + +-- ---------------------------- +-- Table structure for sys_file +-- ---------------------------- +DROP TABLE IF EXISTS `sys_file`; +CREATE TABLE `sys_file` ( + `id` bigint NOT NULL COMMENT '主键ID', + `filename` varchar(255) DEFAULT NULL COMMENT '文件名称', + `filesavename` varchar(255) DEFAULT NULL COMMENT '文件新名称', + `type` varchar(255) DEFAULT NULL COMMENT '文件类型', + `file_size` bigint DEFAULT NULL COMMENT '文件大小(kb)', + `description` varchar(255) DEFAULT NULL COMMENT '描述', + `filepath` varchar(255) DEFAULT NULL COMMENT '文件路径', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + + `create_user_id` varchar(201) DEFAULT NULL COMMENT '创建人', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(201) DEFAULT NULL COMMENT '修改人', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态Y正常N删除', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统文件表'; + +-- ---------------------------- +-- Table structure for sys_home_component +-- ---------------------------- +DROP TABLE IF EXISTS `sys_home_component`; +CREATE TABLE `sys_home_component` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `name` varchar(50) DEFAULT NULL COMMENT '组件名称', + `code` varchar(200) DEFAULT NULL COMMENT '组件编码', + `state` char(1) DEFAULT NULL COMMENT '状态:0 启用 1 停用', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='首页组件表'; + +-- ---------------------------- +-- Table structure for sys_integrated_foreground_task +-- ---------------------------- +DROP TABLE IF EXISTS `sys_integrated_foreground_task`; +CREATE TABLE `sys_integrated_foreground_task` ( + `id` varchar(255) NOT NULL COMMENT 'id', + `workshop_name` varchar(255) DEFAULT NULL COMMENT '工坊名称', + `plug_id` varchar(255) DEFAULT NULL COMMENT '插件ID', + `plug_name` varchar(255) DEFAULT NULL COMMENT '插件名称', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成前台任务主表'; + +-- ---------------------------- +-- Table structure for sys_integrated_foreground_task_detail +-- ---------------------------- +DROP TABLE IF EXISTS `sys_integrated_foreground_task_detail`; +CREATE TABLE `sys_integrated_foreground_task_detail` ( + `id` varchar(255) NOT NULL COMMENT 'id', + `formmain_id` varchar(50) DEFAULT NULL COMMENT '主表id', + `arg_code` varchar(255) DEFAULT NULL COMMENT '参数编码', + `arg_name` varchar(255) DEFAULT NULL COMMENT '参数名称', + `arg_type` char(1) DEFAULT NULL COMMENT '参数类型', + `arg_value` varchar(255) DEFAULT NULL COMMENT '参数值', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成前台任务明细表'; + +-- ---------------------------- +-- Table structure for sys_integrated_foreground_task_parameter +-- ---------------------------- +DROP TABLE IF EXISTS `sys_integrated_foreground_task_parameter`; +CREATE TABLE `sys_integrated_foreground_task_parameter` ( + `id` varchar(255) NOT NULL COMMENT 'id', + `formmain_id` varchar(50) DEFAULT NULL COMMENT '主表id', + `in_parameter` varchar(500) DEFAULT NULL COMMENT '参数', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='集成前台任务参数表'; + +-- ---------------------------- +-- Table structure for sys_interface +-- ---------------------------- +DROP TABLE IF EXISTS `sys_interface`; +CREATE TABLE `sys_interface` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `name` varchar(200) DEFAULT NULL COMMENT '接口名称', + `bean_name` varchar(50) DEFAULT NULL COMMENT '服务名', + `interface_name` varchar(50) DEFAULT NULL COMMENT '方法名', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `state` char(1) DEFAULT NULL COMMENT '状态:0 启用 1 停用', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统接口表'; + +-- ---------------------------- +-- Table structure for sys_menu_config +-- ---------------------------- +DROP TABLE IF EXISTS `sys_menu_config`; +CREATE TABLE `sys_menu_config` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `parent_menu_id` varchar(50) DEFAULT NULL COMMENT '上级菜单ID(0表示无上级)', + `menu_name` varchar(200) DEFAULT NULL COMMENT '菜单名称', + `menu_english_name` varchar(200) DEFAULT NULL COMMENT '菜单英文名称', + `menu_icon` varchar(200) DEFAULT NULL COMMENT '图标样式', + `route` varchar(200) DEFAULT NULL COMMENT '页面路由', + `menu_page` varchar(200) DEFAULT NULL COMMENT '页面', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `visibles` char(1) DEFAULT NULL COMMENT '是否可见(1、可见2、不可见)', + `show_type` char(1) DEFAULT NULL COMMENT '显示类型(1、菜单2、弹窗)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `options` varchar(500) DEFAULT NULL COMMENT 'options', + `form_id` varchar(500) DEFAULT NULL COMMENT '表单ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单表'; + +-- ---------------------------- +-- Table structure for sys_merchant_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_merchant_control`; +CREATE TABLE `sys_merchant_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客商辅助核算'; + +-- ---------------------------- +-- Table structure for sys_message_manage +-- ---------------------------- +DROP TABLE IF EXISTS `sys_message_manage`; +CREATE TABLE `sys_message_manage` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `theme` varchar(50) DEFAULT NULL COMMENT '消息主题', + `code` varchar(50) DEFAULT NULL COMMENT '消息编码', + `send_app` varchar(50) DEFAULT NULL COMMENT '发送者应用', + `send_api` varchar(50) DEFAULT NULL COMMENT '发送者', + `data_type` char(1) DEFAULT NULL COMMENT '数据类型(1、对象 2、数组)', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息管理主表'; + +-- ---------------------------- +-- Table structure for sys_message_manage_detail +-- ---------------------------- +DROP TABLE IF EXISTS `sys_message_manage_detail`; +CREATE TABLE `sys_message_manage_detail` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `formmain_id` varchar(50) DEFAULT NULL COMMENT '消息主表主键', + `receive_name` varchar(50) DEFAULT NULL COMMENT '接收者名称', + `receive_code` varchar(50) DEFAULT NULL COMMENT '接收者编码', + `receive_app` varchar(50) DEFAULT NULL COMMENT '接收者应用', + `receive_api` varchar(50) DEFAULT NULL COMMENT '接收者', + `data_type` char(1) DEFAULT NULL COMMENT '数据类型(1、对象 2、数组)', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `return_type` varchar(255) DEFAULT NULL COMMENT '返回解析类型', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息管理明细表'; + +-- ---------------------------- +-- Table structure for sys_message_manage_log +-- ---------------------------- +DROP TABLE IF EXISTS `sys_message_manage_log`; +CREATE TABLE `sys_message_manage_log` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `message_manage_id` varchar(50) DEFAULT NULL COMMENT '消息主表主键', + `theme` varchar(50) DEFAULT NULL COMMENT '消息主题', + `message_code` varchar(50) DEFAULT NULL COMMENT '消息编码', + `send_app` varchar(50) DEFAULT NULL COMMENT '发送者应用', + `send_api` varchar(50) DEFAULT NULL COMMENT '发送者', + `receive_code` varchar(50) DEFAULT NULL COMMENT '接收者编码', + `receive_app` varchar(50) DEFAULT NULL COMMENT '接收者应用', + `receive_api` varchar(50) DEFAULT NULL COMMENT '接收者', + `source_data` longtext COMMENT '源数据', + `target_data` longtext COMMENT '目标data', + `return_data` text COMMENT '返回信息', + `status` char(1) DEFAULT NULL COMMENT '状态(1、待发送 2、发送中3、发送成功 4、发送失败)', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `return_type` varchar(255) DEFAULT NULL COMMENT '返回解析类型', + `error_status` char(1) DEFAULT NULL COMMENT '失败状态(1、需要重新发送 2、不需要重新发送)(添加一个字段,增加逻辑)', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据号', + `plugin_id` varchar(255) DEFAULT NULL COMMENT '插件ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE, + KEY `sys_message_manage_log_success_001` (`sts`,`receive_app`,`receive_api`,`send_app`,`status`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_002` (`sts`,`receive_app`,`receive_api`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_003` (`sts`,`receive_app`,`receive_api`,`send_app`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_004` (`sts`,`receive_app`,`receive_api`,`status`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_005` (`sts`,`receive_app`,`receive_api`,`status`,`error_status`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- ---------------------------- +-- Table structure for sys_message_manage_log_success +-- ---------------------------- +DROP TABLE IF EXISTS `sys_message_manage_log_success`; +CREATE TABLE `sys_message_manage_log_success` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `message_manage_id` varchar(50) DEFAULT NULL COMMENT '消息主表主键', + `theme` varchar(50) DEFAULT NULL COMMENT '消息主题', + `message_code` varchar(50) DEFAULT NULL COMMENT '消息编码', + `send_app` varchar(50) DEFAULT NULL COMMENT '发送者应用', + `send_api` varchar(50) DEFAULT NULL COMMENT '发送者', + `receive_code` varchar(50) DEFAULT NULL COMMENT '接收者编码', + `receive_app` varchar(50) DEFAULT NULL COMMENT '接收者应用', + `receive_api` varchar(50) DEFAULT NULL COMMENT '接收者', + `source_data` longtext COMMENT '源数据', + `target_data` longtext COMMENT '目标data', + `return_data` text COMMENT '返回信息', + `status` char(1) DEFAULT NULL COMMENT '状态(1、待发送 2、发送中3、发送成功 4、发送失败)', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `return_type` varchar(255) DEFAULT NULL COMMENT '返回解析类型', + `error_status` char(1) DEFAULT NULL COMMENT '失败状态(1、需要重新发送 2、不需要重新发送)(添加一个字段,增加逻辑)', + `root_app_pk` varchar(255) DEFAULT NULL COMMENT '源系统主键', + `root_app_bill` varchar(255) DEFAULT NULL COMMENT '原系统单据号', + `plugin_id` varchar(255) DEFAULT NULL COMMENT '插件ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE, + KEY `sys_message_manage_log_success_001` (`sts`,`receive_app`,`receive_api`,`send_app`,`status`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_002` (`sts`,`receive_app`,`receive_api`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_003` (`sts`,`receive_app`,`receive_api`,`send_app`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_004` (`sts`,`receive_app`,`receive_api`,`status`,`create_time`) USING BTREE, + KEY `sys_message_manage_log_success_005` (`sts`,`receive_app`,`receive_api`,`status`,`error_status`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- ---------------------------- +-- Table structure for sys_org_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_org_control`; +CREATE TABLE `sys_org_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门档案'; + +-- ---------------------------- +-- Table structure for sys_organ +-- ---------------------------- +DROP TABLE IF EXISTS `sys_organ`; +CREATE TABLE `sys_organ` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `organ_name` varchar(200) DEFAULT NULL COMMENT '机构名称', + `organ_code` varchar(50) DEFAULT NULL COMMENT '机构代码', + `parent_organ_id` varchar(50) DEFAULT NULL COMMENT '组织机构父级ID', + `state` char(1) DEFAULT NULL COMMENT '状态: 0启用 1 停用', + `company` char(1) DEFAULT NULL COMMENT '是否公司: 0 是 1 否', + `manager_id` varchar(50) DEFAULT NULL COMMENT '机构负责人', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织机构表(Sys_Organ)'; + +-- ---------------------------- +-- Table structure for sys_person +-- ---------------------------- +DROP TABLE IF EXISTS `sys_person`; +CREATE TABLE `sys_person` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `organ_id` varchar(50) DEFAULT NULL COMMENT '关联组织机构ID', + `person_code` varchar(50) DEFAULT NULL COMMENT '工号', + `person_name` varchar(50) DEFAULT NULL COMMENT '人员姓名', + `sex` char(1) DEFAULT NULL COMMENT '性别: 0女1男', + `mobile_phone` varchar(11) DEFAULT NULL COMMENT '手机号码', + `entry_time` datetime DEFAULT NULL COMMENT '入职时间', + `email` varchar(50) DEFAULT NULL COMMENT '电子邮箱', + `degree_id` varchar(55) DEFAULT NULL COMMENT '学历', + `post_id` varchar(50) DEFAULT NULL COMMENT '职务', + `level_id` varchar(50) DEFAULT NULL COMMENT '级别', + `birth_day` datetime DEFAULT NULL COMMENT '出生年月', + `tel_phone` varchar(50) DEFAULT NULL COMMENT '固定电话', + `hometown` varchar(150) DEFAULT NULL COMMENT '籍贯', + `id_card` varchar(20) DEFAULT NULL COMMENT '身份证号', + `address` varchar(200) DEFAULT NULL COMMENT '居住地址', + `leave_time` datetime DEFAULT NULL COMMENT '离职时间', + `state` char(1) DEFAULT NULL COMMENT '人员状态1停用 0\\空 启用', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `dd_user_id` varchar(50) DEFAULT NULL, + `wx_user_id` varchar(50) DEFAULT NULL, + `head_image_id` varchar(50) DEFAULT NULL COMMENT '头像id', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人员表'; + +-- ---------------------------- +-- Table structure for sys_personnel_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_personnel_control`; +CREATE TABLE `sys_personnel_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `left_tel` varchar(50) DEFAULT NULL COMMENT '左手机号', + `left_ic` varchar(50) DEFAULT NULL COMMENT '左身份证号', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `right_tel` varchar(50) DEFAULT NULL COMMENT '右手机号', + `right_ic` varchar(50) DEFAULT NULL COMMENT '右身份证号', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人员对照'; + +-- ---------------------------- +-- Table structure for sys_plug_arg +-- ---------------------------- +DROP TABLE IF EXISTS `sys_plug_arg`; +CREATE TABLE `sys_plug_arg` ( + `id` varchar(255) NOT NULL COMMENT 'id', + `plug_id` varchar(255) DEFAULT NULL COMMENT '插件id', + `plug_code` varchar(255) DEFAULT NULL COMMENT '插件编码', + `plug_name` varchar(255) DEFAULT NULL COMMENT '插件名称', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='参数设置主表'; + +-- ---------------------------- +-- Table structure for sys_plug_arg_detail +-- ---------------------------- +DROP TABLE IF EXISTS `sys_plug_arg_detail`; +CREATE TABLE `sys_plug_arg_detail` ( + `id` varchar(255) NOT NULL COMMENT 'id', + `formmain_id` varchar(50) DEFAULT NULL COMMENT '主表id', + `arg_code` varchar(255) DEFAULT NULL COMMENT '参数编码', + `arg_name` varchar(255) DEFAULT NULL COMMENT '参数名称', + `arg_type` char(1) DEFAULT NULL COMMENT '参数类型', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='参数设置明细表'; + +-- ---------------------------- +-- Table structure for sys_popedom_data +-- ---------------------------- +DROP TABLE IF EXISTS `sys_popedom_data`; +CREATE TABLE `sys_popedom_data` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `object_id` varchar(50) DEFAULT NULL COMMENT '权限赋予对象id', + `bill_kind_id` varchar(50) DEFAULT NULL, + `data_set_id` varchar(50) DEFAULT NULL COMMENT '数据权限设置id', + `pope_list` varchar(500) DEFAULT NULL COMMENT '数据权限id值集合', + `kind_id` char(1) DEFAULT NULL COMMENT '权限分类(1、人员、2、角色)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数据权限'; + +-- ---------------------------- +-- Table structure for sys_popedom_home +-- ---------------------------- +DROP TABLE IF EXISTS `sys_popedom_home`; +CREATE TABLE `sys_popedom_home` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `object_id` varchar(50) DEFAULT NULL COMMENT '权限赋予对象id', + `home_id` varchar(50) DEFAULT NULL COMMENT '首页ID', + `kind_id` char(1) DEFAULT NULL COMMENT '权限类型(1、人员、2、角色)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='首页权限'; + +-- ---------------------------- +-- Table structure for sys_popedom_interface +-- ---------------------------- +DROP TABLE IF EXISTS `sys_popedom_interface`; +CREATE TABLE `sys_popedom_interface` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `object_id` varchar(50) DEFAULT NULL COMMENT '权限赋予对象id', + `interface_id` varchar(50) DEFAULT NULL COMMENT '首页ID', + `kind_id` char(1) DEFAULT NULL COMMENT '权限类型(1、人员、2、角色)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='接口权限'; + +-- ---------------------------- +-- Table structure for sys_popedom_menu +-- ---------------------------- +DROP TABLE IF EXISTS `sys_popedom_menu`; +CREATE TABLE `sys_popedom_menu` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `object_id` varchar(50) DEFAULT NULL COMMENT '权限赋予对象id', + `menu_id` varchar(500) DEFAULT NULL COMMENT '菜单id', + `kind_id` char(1) DEFAULT NULL COMMENT '权限类型(1、人员、2、角色)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统模块权限'; + +-- ---------------------------- +-- Table structure for sys_popedom_operate +-- ---------------------------- +DROP TABLE IF EXISTS `sys_popedom_operate`; +CREATE TABLE `sys_popedom_operate` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `object_id` varchar(50) DEFAULT NULL COMMENT '权限赋予对象id', + `menu_id` varchar(50) DEFAULT NULL COMMENT '菜单id', + `operate` varchar(500) DEFAULT NULL COMMENT '操作权限', + `kind_id` char(1) DEFAULT NULL COMMENT '权限分类(1、人员、2、角色)', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='操作权限'; + +-- ---------------------------- +-- Table structure for sys_product +-- ---------------------------- +DROP TABLE IF EXISTS `sys_product`; +CREATE TABLE `sys_product` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `code` varchar(50) DEFAULT NULL COMMENT '产品编码', + `name` varchar(50) DEFAULT NULL COMMENT '产品名称', + `classify` char(2) DEFAULT NULL COMMENT '产品分类', + `description` varchar(200) DEFAULT NULL COMMENT '产品描述', + `production_company` varchar(200) DEFAULT NULL COMMENT '出品公司', + `picture_path` varchar(200) DEFAULT NULL COMMENT '产品介绍图片', + `sys_type` char(2) DEFAULT NULL COMMENT '系统类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='产品表'; + +-- ---------------------------- +-- Table structure for sys_product_api +-- ---------------------------- +DROP TABLE IF EXISTS `sys_product_api`; +CREATE TABLE `sys_product_api` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `product_id` varchar(50) DEFAULT NULL COMMENT '产品id', + `up_ids` varchar(50) DEFAULT NULL COMMENT '上级id', + `api_name` varchar(50) DEFAULT NULL COMMENT 'api名称/目录名称', + `api_code` varchar(50) DEFAULT NULL COMMENT 'api编码/目录编码', + `api_type` varchar(32) DEFAULT NULL COMMENT '类型 0、menu 1、api', + `api_remark` varchar(200) DEFAULT NULL COMMENT 'api描述', + `need_Login` varchar(1) DEFAULT NULL COMMENT '是否需要登录 1、是 2、否', + `authentication_port` varchar(50) DEFAULT NULL COMMENT '认证接口(修改为保存编码)', + `parameter_passing_mode` varchar(1) DEFAULT NULL COMMENT '传参方式 1、query 2、data', + `enable_access_entry` varchar(50) DEFAULT NULL COMMENT '允许访问入口 1、app 2、H5', + `destination_address` varchar(200) DEFAULT NULL COMMENT '目标地址', + `request_coding` varchar(1) DEFAULT NULL COMMENT '请求编码 1、UTF-8', + `request_method` varchar(1) DEFAULT NULL COMMENT '请求方法 1、POST 2、GET', + `timeout_period` varchar(50) DEFAULT NULL COMMENT '超时时间 6000 ms', + `current_limiting` varchar(50) DEFAULT NULL COMMENT '限流 6000 ms', + `header_in` text COMMENT 'Header入参 JSON', + `query_in` text COMMENT 'Query入参 JSON', + `body_in_type` varchar(1) DEFAULT NULL COMMENT 'Body 入参类型 1、Application/json', + `body_in` text COMMENT 'Body 入参 JSON', + `body_out` text COMMENT 'Body 出参 JSON', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='产品api'; + +-- ---------------------------- +-- Table structure for sys_product_version +-- ---------------------------- +DROP TABLE IF EXISTS `sys_product_version`; +CREATE TABLE `sys_product_version` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `product_id` varchar(50) DEFAULT NULL COMMENT '产品id', + `version_number` varchar(50) DEFAULT NULL COMMENT '版本号', + `version_description` varchar(200) DEFAULT NULL COMMENT '版本说明', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `org_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `sts` char(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='产品版本表'; + +-- ---------------------------- +-- Table structure for sys_project_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_project_control`; +CREATE TABLE `sys_project_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目辅助核算'; + +-- ---------------------------- +-- Table structure for sys_role +-- ---------------------------- +DROP TABLE IF EXISTS `sys_role`; +CREATE TABLE `sys_role` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `role_code` varchar(20) DEFAULT NULL COMMENT '角色编码', + `role_name` varchar(50) DEFAULT NULL COMMENT '角色名称', + `description` varchar(200) DEFAULT NULL COMMENT '角色说明', + `enable_state` char(1) DEFAULT NULL COMMENT '状态: 0启用 1 停用', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色表'; + +-- ---------------------------- +-- Table structure for sys_stock_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_stock_control`; +CREATE TABLE `sys_stock_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='存货对照'; + +-- ---------------------------- +-- Table structure for sys_taxrate_control +-- ---------------------------- +DROP TABLE IF EXISTS `sys_taxrate_control`; +CREATE TABLE `sys_taxrate_control` ( + `id` varchar(50) NOT NULL COMMENT '主键ID', + `left_app_id` varchar(50) DEFAULT NULL COMMENT '左应用id', + `left_app_code` varchar(50) DEFAULT NULL COMMENT '左应用编码', + `left_app_name` varchar(50) DEFAULT NULL COMMENT '左应用名称', + `left_api_id` varchar(50) DEFAULT NULL COMMENT '左接口ID', + `left_id` varchar(50) DEFAULT NULL COMMENT '左id', + `left_code` varchar(50) DEFAULT NULL COMMENT '左编码', + `left_name` varchar(50) DEFAULT NULL COMMENT '左名称', + `right_app_id` varchar(50) DEFAULT NULL COMMENT '右应用id', + `right_app_code` varchar(50) DEFAULT NULL COMMENT '右应用编码', + `right_app_name` varchar(50) DEFAULT NULL COMMENT '右应用名称', + `right_api_id` varchar(50) DEFAULT NULL COMMENT '右接口ID', + `right_id` varchar(50) DEFAULT NULL COMMENT '右id', + `right_code` varchar(50) DEFAULT NULL COMMENT '右编码', + `right_name` varchar(50) DEFAULT NULL COMMENT '右名称', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `left_org` varchar(50) DEFAULT NULL COMMENT '左公司', + `right_org` varchar(50) DEFAULT NULL COMMENT '右公司', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='税率'; + +-- ---------------------------- +-- Table structure for sys_user +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user`; +CREATE TABLE `sys_user` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `person_id` varchar(50) DEFAULT NULL COMMENT '外键人员ID', + `login_code` varchar(200) DEFAULT NULL COMMENT '登录账号', + `password` varchar(80) DEFAULT NULL COMMENT '登录密码', + `salt` varchar(50) DEFAULT NULL COMMENT '盐', + `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间', + `last_connection_time` datetime DEFAULT NULL COMMENT '最后链接时间', + `last_login_ip` varchar(200) DEFAULT NULL COMMENT '登录IP地址', + `state` char(1) DEFAULT NULL COMMENT '状态:0 启用 1 停用', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表'; + +-- ---------------------------- +-- Table structure for sys_user_company +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user_company`; +CREATE TABLE `sys_user_company` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `user_id` varchar(50) DEFAULT NULL COMMENT '用户id', + `user_company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `remark` varchar(200) DEFAULT NULL COMMENT '备注', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户所属公司表'; + +-- ---------------------------- +-- Table structure for sys_user_roles +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user_roles`; +CREATE TABLE `sys_user_roles` ( + `id` varchar(50) NOT NULL COMMENT '唯一ID', + `user_id` varchar(50) DEFAULT NULL COMMENT '用户id', + `role_id` varchar(50) DEFAULT NULL COMMENT '角色id', + `user_role_note` varchar(200) DEFAULT NULL COMMENT '说明', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色表'; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.2__init_sys_data.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.2__init_sys_data.sql new file mode 100644 index 00000000..d8d45770 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.2__init_sys_data.sql @@ -0,0 +1,112 @@ + +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('1', '0', '系统管理', 'systemSettings', 'icon-xitongguanli', '/systemSettings', 'Layout', NULL, '0', '1', 1, '1', '2024-04-02 09:35:56', '1', '2024-05-24 15:44:52', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('2', '1', '用户管理', 'userSettings', NULL, 'userSettings', 'ParentView', NULL, '0', '1', 2, '1', '2024-04-02 09:36:01', '1', '2024-06-29 14:20:29', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('3', '2', '角色管理', 'roleSettings', '-4989079828753399804', 'roleSettings', 'systemSettings/userSettings/roleSettings/index', NULL, '0', '1', 3, '1', '2024-04-02 09:36:04', '1', '2024-07-04 15:18:02', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('4c72e5216d744e0fb715d5d778db412b', '2', '人员管理', 'PersonnelSettings', '-7777602241705521719', 'PersonnelSettings', 'systemSettings/userSettings/PersonnelSettings/index', '1231231312312', '0', '1', 4, '1', '2024-04-02 10:10:35', '1', '2024-07-04 15:18:09', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('c05bc722e3664b428e24134965fe8dd3', '2', '用户信息', 'userInformation', '-8916277899496502779', 'userInformation', 'systemSettings/userSettings/userInformation/index', NULL, '0', '1', 5, '1', '2024-04-02 10:11:58', '1', '2024-07-04 15:18:22', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('4', '1', '组织机构', 'organization', '-217601803969409117', 'organization', 'systemSettings/organization/index', NULL, '0', '1', 6, '1', '2024-04-02 10:11:58', '1', '2024-07-04 15:21:05', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('5', '0', '系统维护', 'systemMaintenance', 'icon-danganduizhao', '/systemMaintenance', 'Layout', NULL, '0', '1', 6, '1', '2024-04-02 10:11:58', '1', '2024-05-24 16:03:46', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('6', '5', '菜单管理', 'menuManagement', '5050451005206776890', 'menuManagement', 'systemMaintenance/menuManagement', NULL, '0', '1', 7, '1', '2024-04-02 10:11:58', '1', '2024-07-04 15:19:39', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('7', '5', '按钮管理', 'buttonManagement', '-787759178487086889', 'buttonManagement', 'systemMaintenance/buttonManagement/index', NULL, '0', '1', 8, '1', '2024-04-02 10:11:58', '1', '2024-07-04 15:19:44', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('c008932b06e84ae5904e989af3d0fb07', '1', '权限管理', 'jurisdictionManage', NULL, 'jurisdictionManage', 'ParentView', NULL, '0', '1', 10, '1', '2024-04-03 14:07:29', '1', '2024-06-29 14:21:01', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('0e119cab23454d2ebf2442f0bf1a4f0b', 'c008932b06e84ae5904e989af3d0fb07', '用户权限', 'userJurisdiction', '-654050188193413581', 'userJurisdiction', 'systemSettings/jurisdictionManage/userJurisdiction/index', NULL, '0', '1', 11, '1', '2024-04-03 14:07:57', '1', '2024-07-04 15:18:42', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('11a0fd7c778a45fe9e02d0c0200dc179', 'c008932b06e84ae5904e989af3d0fb07', '角色权限', 'roleJurisdiction', '4668961960201636147', 'roleJurisdiction', 'systemSettings/jurisdictionManage/roleJurisdiction/index', NULL, '0', '1', 12, '1', '2024-04-07 09:05:00', '1', '2024-07-04 15:18:50', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('51928849267a463799cc4a336a6bee71', '0', '应用管理', 'applicationList', 'icon-caidan', '/applicationList', 'Layout', NULL, '0', '1', 13, '1', '2024-04-08 09:30:55', '1', '2024-04-08 10:44:58', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('84fd5cd21223416b942d5f79bcae5f35', '51928849267a463799cc4a336a6bee71', '应用中心', 'applicationListAdmin', '1416839922333927770', 'applicationListAdmin', 'applicationList/index', NULL, '0', '1', 14, '1', '2024-04-08 09:31:43', '1', '2024-07-04 10:27:40', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('822bbe0150ff46f982c0fa998f64f340', '51928849267a463799cc4a336a6bee71', '应用设置', 'settingMenu', '-2892170219507726319', 'settingMenu', 'applicationList/settingMenu', NULL, '1', '1', 15, '1', '2024-04-08 15:40:38', '1', '2024-07-04 10:28:33', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('3c979f6461ed42289a04e07daa85a16d', '51928849267a463799cc4a336a6bee71', '应用新增', 'applicationAdd', '1489911612727182633', 'applicationAdd', 'applicationList/applicationAdd', NULL, '1', '1', 16, '1', '2024-04-08 15:41:04', '1', '2024-07-04 10:28:38', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('46720575a73b46c8a883e3b890364c22', '0', '数据源管理', 'dataSourceManagement', 'icon-danganduizhao', '/dataSourceManagement', 'Layout', NULL, '0', '1', 17, '1', '2024-04-09 14:39:17', '1', '2024-05-24 15:45:44', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('0fd80aff8d9c4dd3810ca2d043c00ca3', '46720575a73b46c8a883e3b890364c22', '数据源管理', 'dataSourceManagements', '2319256122443123916', 'dataSourceManagement', 'dataSourceManagement/dataSourceManagement/index', NULL, '0', '1', 18, '1', '2024-04-09 14:40:04', '1', '2024-07-04 15:26:01', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('5f1182ffd4c1451291a211c4a820fb6b', '0', '集成任务管理', 'task', 'icon-renwuguanli', '/task', 'Layout', NULL, '0', '1', 22, '1', '2024-04-09 14:42:44', '1', '2024-05-24 15:46:00', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('9cf6a9fad9874da18c42f1c63c64ddbc', '5f1182ffd4c1451291a211c4a820fb6b', '集成任务部署', 'taskAdmin', '-6034541283670537998', '/', 'intergrationTask/index', NULL, '0', '1', 23, '1', '2024-04-09 14:43:15', '1', '2024-07-04 15:25:50', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('5451b1c84bd84af6af44b45ced4340a9', '5f1182ffd4c1451291a211c4a820fb6b', '集成任务日志', 'detailData', '4762289394461459349', 'logDetails', 'intergrationTask/detailData/index', NULL, '0', '1', 24, '1', '2024-04-09 14:43:43', '1', '2024-07-04 15:26:32', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('f5b3895011a54d45a3b9104e3fc28b8e', '5f1182ffd4c1451291a211c4a820fb6b', '集成任务监控', 'taskMonitoring', '-130710338222210555', 'monitoring', 'intergrationTask/monitoring', NULL, '0', '1', 26, '1', '2024-04-09 14:44:48', '1', '2024-07-04 15:26:14', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('82a8abdab323409a8eba40d2753eb4ae', '5f1182ffd4c1451291a211c4a820fb6b', '集成任务日志明细', 'logDetails', '-1928639021275134342', 'taskLogDetails', 'intergrationTask/taskLogdetailData/index', NULL, '0', '1', 27, '1', '2024-04-09 14:45:15', '1', '2024-07-04 15:26:24', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('931a97a2ea33446d9c3f4e11130279de', '5f1182ffd4c1451291a211c4a820fb6b', '日志查看', 'taskLogsView', '2796025808914499623', 'logsview', 'intergrationTask/logsViewPage', NULL, '1', '1', 28, '1', '2024-04-09 14:45:46', '1', '2024-07-04 15:26:41', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('9521483e01d14e5aa06fd246da55d2c3', '5f1182ffd4c1451291a211c4a820fb6b', '任务设置', 'taskAdd', '8524855161201509039', 'add', 'intergrationTask/taskAdd', NULL, '1', '1', 29, '1', '2024-04-09 14:46:13', '1', '2024-07-04 15:26:48', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('16faf4e100fe482888af65d3ff5e11bc', '5f1182ffd4c1451291a211c4a820fb6b', '实例查看', 'taskLivingView', '5751831597941672974', 'livingview', 'intergrationTask/livingViewPage', NULL, '1', '1', 30, '1', '2024-04-09 14:46:50', '1', '2024-07-04 15:26:55', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('4fd2f714e1a14aedb1971f80fca8b0ce', '0', '集成任务', 'newIntegrationTask', 'icon-renwujicheng', '/newIntegrationTask', 'Layout', NULL, '0', '1', 31, '1', '2024-04-09 14:47:36', '1', '2024-05-24 15:46:20', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('504e6bc41ea6456f93e69f3be668e137', '4fd2f714e1a14aedb1971f80fca8b0ce', '插件参数设置', 'plugInOptions', '1653664976964371217', 'plugInOptions', 'newIntegrationTask/plugInOptions/index', NULL, '0', '1', 32, '1', '2024-04-09 14:48:03', '1', '2024-07-04 13:48:11', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('1d00e0acc81b4e5ab65b98d91e1d4dfc', '4fd2f714e1a14aedb1971f80fca8b0ce', '集成前台任务', 'foregroundTask', '1984791001939854535', 'foregroundTask', 'newIntegrationTask/foregroundTask/index', NULL, '0', '1', 33, '1', '2024-04-09 14:48:31', '1', '2024-07-04 13:48:25', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('fe7d099ecfd94593a13dc321218749cc', 'c008932b06e84ae5904e989af3d0fb07', '接口管理', 'apiAdmin', '1190466157960907823', 'apiAdmin', 'apiAdmin/index.vue', NULL, '0', '1', 35, '1', '2024-04-11 09:30:32', '1', '2024-07-04 15:19:03', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('973fa79b42e64c9e968e9a5b1295c486', '0', '主数据中心', '主数据中心', 'icon-zhushujuzhongxin', '/integrationOption', 'Layout', NULL, '0', '1', 38, '1', '2024-05-08 17:02:23', '1', '2024-05-08 17:02:23', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('55c2c82eb1ba458d84f666784d6a13a1', '973fa79b42e64c9e968e9a5b1295c486', '主数据配置', 'masterDataOptions', '4592551509526331675', 'masterDataOptions', 'masterDataOptions/index', NULL, '0', '1', 39, '1', '2024-05-08 17:02:57', '1', '2024-07-04 10:08:14', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('19074ffd21c04e6d9961a7daea7cff2e', '973fa79b42e64c9e968e9a5b1295c486', '主数据添加', 'masterDataAdd', '-1139483645151067587', 'masterDataAdd', 'masterDataOptions/masterDataAdd', NULL, '1', '1', 40, '1', '2024-05-08 17:03:27', '1', '2024-07-04 14:14:25', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('1035eb2fbba24caca0617d3dc11c1f09', '973fa79b42e64c9e968e9a5b1295c486', '主数据设置', 'masterDataSettingMenu', '8758144563624233695', 'settingMenu', 'masterDataOptions/settingMenu', NULL, '1', '1', 41, '1', '2024-05-08 17:03:55', '1', '2024-07-04 15:27:08', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('ea22757e99c144fb9ef381dd322e233c', '973fa79b42e64c9e968e9a5b1295c486', '基础档案主数据', 'integrationOptionV2', NULL, 'integrationOptionV2', 'ParentView', NULL, '0', '1', 43, '1', '2024-05-08 17:05:13', '1', '2024-05-29 15:54:06', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('310638bad6d34e33aa53878ffbbe6cbf', '0', '报表中心', 'reportCenter', 'icon-danganduizhao', '/reportCenter', 'Layout', NULL, '1', '1', 51, '1', '2024-05-21 14:44:22', '1', '2024-07-09 14:44:06', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('df191edd5b3b4b02849b175ecd9e33e2', '310638bad6d34e33aa53878ffbbe6cbf', '报表设计', 'reportDesign', '5195426072247356303', '/reportDesign', 'Layout', NULL, '1', '1', 52, '1', '2024-05-21 14:46:40', '1', '2024-07-09 10:02:04', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('273d68853e2643c58708dc23f0502ae6', '310638bad6d34e33aa53878ffbbe6cbf', '报表管理', 'reportManagement', '4976674742449292373', '/reportManagement', 'Layout', NULL, '1', '1', 53, '1', '2024-05-21 14:47:33', '1', '2024-07-09 10:02:09', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('868caa8058e94faf944fa86087eb56bf', '0', '档案对照', 'recordContrast', 'icon-danganduizhao', '/recordContrast', 'Layout', NULL, '0', '1', 69, '1', '2024-05-28 10:15:35', '1', '2024-05-28 10:22:08', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('314f900b3e1342f8a5544203021d3694', '868caa8058e94faf944fa86087eb56bf', '档案对照', 'recordContrastAdmin', '-218852364998393496', 'recordContrastAdmin', 'recordContrast/index', NULL, '0', '1', 70, '1', '2024-05-28 10:27:23', '1', '2024-07-04 14:35:20', 'Y', '0', '0', NULL, NULL); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('9d60e91c80d741ae822f0b557da90435', '51928849267a463799cc4a336a6bee71', '接口日志', 'apiLogs', '4522505755255719521', 'apiLogs', 'apiLogs/index', NULL, '0', '1', 71, '1', '2024-05-29 09:36:49', '1', '2024-07-04 14:35:48', 'Y', '0', '0', NULL, NULL); + +INSERT INTO sys_organ (id, organ_name, organ_code, parent_organ_id, state, company, manager_id, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1', '集团', 'hzya', '0', '0', '0', '1', '集团', 1, '1', '2024-04-02 08:35:49', '1', '2024-04-02 08:44:46', 'Y', NULL, NULL); + +INSERT INTO sys_person (id, organ_id, person_code, person_name, sex, mobile_phone, entry_time, email, degree_id, post_id, level_id, birth_day, tel_phone, hometown, id_card, address, leave_time, state, remark, dd_user_id, wx_user_id, head_image_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1', '1', 'admin', 'admin', '1', 'admin', '2024-04-01 08:56:16', '999999999@qq.com', '3208c037f18711eea2cd00ffb4e96929', 'ad997865f18711eea2cd00ffb4e96929', 'feea3fd8f18711eea2cd00ffb4e96929', '2024-04-02 08:56:46', '18613130436', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, 1, '1', '2024-04-02 08:57:21', '1', '2024-05-21 08:59:04', 'Y', NULL, NULL); + +INSERT INTO sys_popedom_home (id, object_id, home_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('991ecd73b3144fc889ef7562cef03dd9', '1', '1', '2', 1, '1', '2024-04-03 14:12:39', '1', '2024-04-03 14:12:39', 'Y', '0', '0'); + +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('725c58ff5d834feab8e463c36997696e', 'e51c982747354a93abc4020b13de6da5', '1', '2', 4695, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b2bb7849bd7749efb73f20b4a4641cb6', 'e51c982747354a93abc4020b13de6da5', '2', '2', 4696, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5cc5abb5b1e14d4b8a68fbb13dc1ca48', 'e51c982747354a93abc4020b13de6da5', '3', '2', 4697, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96327954f2724353a16ddd30e0c60142', 'e51c982747354a93abc4020b13de6da5', '4c72e5216d744e0fb715d5d778db412b', '2', 4698, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c15c9e20a3694a868800abb04d137609', 'e51c982747354a93abc4020b13de6da5', 'c05bc722e3664b428e24134965fe8dd3', '2', 4699, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5c2c2f0b7341427a909ffb5a813249a6', 'e51c982747354a93abc4020b13de6da5', '51928849267a463799cc4a336a6bee71', '2', 4700, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dc279c0eca4d4432ae10b13a5579b467', 'e51c982747354a93abc4020b13de6da5', '84fd5cd21223416b942d5f79bcae5f35', '2', 4701, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9555bce6d0994d2d87cb507473cb5ad6', 'e51c982747354a93abc4020b13de6da5', '822bbe0150ff46f982c0fa998f64f340', '2', 4702, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a479909afebc44c2aab633c58e74b466', 'e51c982747354a93abc4020b13de6da5', '3c979f6461ed42289a04e07daa85a16d', '2', 4703, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('04af05f30e0c4deab15d097fbaf0a14c', 'e51c982747354a93abc4020b13de6da5', '973fa79b42e64c9e968e9a5b1295c486', '2', 4704, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4eb04331916a43eb8b536717c6baf310', 'e51c982747354a93abc4020b13de6da5', 'ea22757e99c144fb9ef381dd322e233c', '2', 4705, '1', '2024-07-09 14:06:30', '1', '2024-07-09 14:06:30', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2bf8443af272443db36943a4f6da225b', '67fc3991a633427ab26e13bf9ea35374', '1', '2', 4706, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa5439e803624182a3b09e50ad673b78', '67fc3991a633427ab26e13bf9ea35374', '2', '2', 4707, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('51cff72ef4aa47f3b972e6bee98db890', '67fc3991a633427ab26e13bf9ea35374', '3', '2', 4708, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e93369f61f4c4a9db1fa040fe8a9f56c', '67fc3991a633427ab26e13bf9ea35374', '4c72e5216d744e0fb715d5d778db412b', '2', 4709, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8f61a1ee8ba14357a518e7cb2eed8eec', '67fc3991a633427ab26e13bf9ea35374', 'c05bc722e3664b428e24134965fe8dd3', '2', 4710, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('735dd4e508104eb4b95acf07799dc96e', '67fc3991a633427ab26e13bf9ea35374', '4', '2', 4711, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01dd0dd1c68148a08cead16bca42d4ed', '67fc3991a633427ab26e13bf9ea35374', 'c008932b06e84ae5904e989af3d0fb07', '2', 4712, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de67e135b29644db9663f4d72534c60a', '67fc3991a633427ab26e13bf9ea35374', '0e119cab23454d2ebf2442f0bf1a4f0b', '2', 4713, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7f969a5269d4fe39ed20cd2f3efdf3f', '67fc3991a633427ab26e13bf9ea35374', '11a0fd7c778a45fe9e02d0c0200dc179', '2', 4714, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9b032f49712f46fc852032fddb348827', '67fc3991a633427ab26e13bf9ea35374', 'fe7d099ecfd94593a13dc321218749cc', '2', 4715, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('135d40b1f38f43499489b3881c9befb6', '67fc3991a633427ab26e13bf9ea35374', '5', '2', 4716, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee9f4f5fb9974804abae0dc4d526660b', '67fc3991a633427ab26e13bf9ea35374', '6', '2', 4717, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a425bff16f64639bb57a9c895abf37c', '67fc3991a633427ab26e13bf9ea35374', '7', '2', 4718, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('25f1ac28de7b4054928c8cf88d2a5493', '67fc3991a633427ab26e13bf9ea35374', '51928849267a463799cc4a336a6bee71', '2', 4719, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8a9e3c38004b417791666005ca82ab07', '67fc3991a633427ab26e13bf9ea35374', '84fd5cd21223416b942d5f79bcae5f35', '2', 4720, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d35582e578524b15ba017ba29e50eda7', '67fc3991a633427ab26e13bf9ea35374', '822bbe0150ff46f982c0fa998f64f340', '2', 4721, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29fd09b351c5435980e08cf766f5cbfc', '67fc3991a633427ab26e13bf9ea35374', '3c979f6461ed42289a04e07daa85a16d', '2', 4722, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ece8b7ef8144be3a5b76ea0d385e642', '67fc3991a633427ab26e13bf9ea35374', '9d60e91c80d741ae822f0b557da90435', '2', 4723, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('03c29b8f3e59467fa8eab197a60598dd', '67fc3991a633427ab26e13bf9ea35374', '5f1182ffd4c1451291a211c4a820fb6b', '2', 4724, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02de83ccd4464d67ba9fecb04591d31e', '67fc3991a633427ab26e13bf9ea35374', '9cf6a9fad9874da18c42f1c63c64ddbc', '2', 4725, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5e621ac317cb4c5bb2f8c3005abcf170', '67fc3991a633427ab26e13bf9ea35374', '5451b1c84bd84af6af44b45ced4340a9', '2', 4726, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9f9e505a05af4ff1bf5fa34600dd59e4', '67fc3991a633427ab26e13bf9ea35374', 'f5b3895011a54d45a3b9104e3fc28b8e', '2', 4727, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7fdbcfb96a6a473f976a93be2f187d1e', '67fc3991a633427ab26e13bf9ea35374', '82a8abdab323409a8eba40d2753eb4ae', '2', 4728, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d0346f1e56e446248496bb80c5996ffa', '67fc3991a633427ab26e13bf9ea35374', '931a97a2ea33446d9c3f4e11130279de', '2', 4729, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('76573856edf54b3c9b35ca079ceb2646', '67fc3991a633427ab26e13bf9ea35374', '9521483e01d14e5aa06fd246da55d2c3', '2', 4730, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ecf5886c493241afa23c7d796c12fcd7', '67fc3991a633427ab26e13bf9ea35374', '16faf4e100fe482888af65d3ff5e11bc', '2', 4731, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cae45ee61fdd40838ca13cb830578e17', '67fc3991a633427ab26e13bf9ea35374', '4fd2f714e1a14aedb1971f80fca8b0ce', '2', 4732, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5078c96bc7d442b193b3a9be50461826', '67fc3991a633427ab26e13bf9ea35374', '504e6bc41ea6456f93e69f3be668e137', '2', 4733, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a301e41a882c4bdf9f08a11e4f8f759b', '67fc3991a633427ab26e13bf9ea35374', '1d00e0acc81b4e5ab65b98d91e1d4dfc', '2', 4734, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b414508d874f452ab35ff49bedaed5e4', '67fc3991a633427ab26e13bf9ea35374', '973fa79b42e64c9e968e9a5b1295c486', '2', 4735, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd011567d5744aecbcbed58f99dd3444', '67fc3991a633427ab26e13bf9ea35374', '55c2c82eb1ba458d84f666784d6a13a1', '2', 4736, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cdfd4e4a8fa741b88e9ce9fa7ffc5dbf', '67fc3991a633427ab26e13bf9ea35374', '19074ffd21c04e6d9961a7daea7cff2e', '2', 4737, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f4bbe976c4540fbb9fe3bebd6c787d9', '67fc3991a633427ab26e13bf9ea35374', '1035eb2fbba24caca0617d3dc11c1f09', '2', 4738, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('75b6a2fbe6f849ae936b301cf6a1df0b', '67fc3991a633427ab26e13bf9ea35374', 'ea22757e99c144fb9ef381dd322e233c', '2', 4739, '1', '2024-07-18 09:42:50', '1', '2024-07-18 09:42:50', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('62a692cfffa24e2282eb07261e2f93da', '67fc3991a633427ab26e13bf9ea35374', '310638bad6d34e33aa53878ffbbe6cbf', '2', 4741, '1', '2024-07-18 09:42:51', '1', '2024-07-18 09:42:51', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('067a1f32c3b4465a8282c03eb827a04e', '67fc3991a633427ab26e13bf9ea35374', 'df191edd5b3b4b02849b175ecd9e33e2', '2', 4742, '1', '2024-07-18 09:42:51', '1', '2024-07-18 09:42:51', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('155c2b1ceab64d2591749f9396bbab32', '67fc3991a633427ab26e13bf9ea35374', '273d68853e2643c58708dc23f0502ae6', '2', 4743, '1', '2024-07-18 09:42:51', '1', '2024-07-18 09:42:51', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e9097ea0f3c044c5b21a24ce73c3cc01', '67fc3991a633427ab26e13bf9ea35374', '868caa8058e94faf944fa86087eb56bf', '2', 4744, '1', '2024-07-18 09:42:51', '1', '2024-07-18 09:42:51', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b2377030a5594f1f9439d13745ce135b', '67fc3991a633427ab26e13bf9ea35374', '314f900b3e1342f8a5544203021d3694', '2', 4745, '1', '2024-07-18 09:42:51', '1', '2024-07-18 09:42:51', 'Y', '0', '0'); + + +INSERT INTO sys_role (id, role_code, role_name, description, enable_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67fc3991a633427ab26e13bf9ea35374', 'admin', '超级管理员', '超级管理员', '0', 8, '1', '2024-04-02 14:40:09', '1', '2024-07-09 11:44:45', 'Y', '0', '0'); + +INSERT INTO sys_user (id, person_id, login_code, password, salt, last_login_time, last_connection_time, last_login_ip, state, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1', '1', 'admin', 'e1cd2194902c06412c64b66b898435ae', NULL, '2024-04-02 08:57:56', '2024-04-02 08:57:58', '127.0.0.1', '0', NULL, 1, '1', '2024-04-02 08:58:18', '1', '2024-06-05 10:13:12', 'Y', NULL, NULL); + +INSERT INTO sys_user_company (id, user_id, user_company_id, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cd2ba22a0909428786602828ee8f282a', '1', '1', NULL, 7, '1', '2024-04-07 09:29:33', '1', '2024-04-07 09:29:33', 'Y', '0', '0'); + +INSERT INTO sys_user_roles (id, user_id, role_id, user_role_note, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af4cc85ec274481586174d1dc05f0b3f', '1', '67fc3991a633427ab26e13bf9ea35374', NULL, 13, '1', '2024-04-07 09:29:33', '1', '2024-04-07 09:29:33', 'Y', '0', '0'); + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.3__init_dictionaryshop.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.3__init_dictionaryshop.sql new file mode 100644 index 00000000..71a36a3d --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.3__init_dictionaryshop.sql @@ -0,0 +1,117 @@ + +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3208c037f18711eea2cd00ffb4e96929', 'sys_person', 'degree_id', '初中', '1', 1, NULL, '学历', '1', 1, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31f07110f18711eea2cd00ffb4e96929', 'sys_person', 'degree_id', '高中', '2', 1, NULL, '学历', '1', 2, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31f5c482f18711eea2cd00ffb4e96929', 'sys_person', 'degree_id', '中专', '3', 1, NULL, '学历', '1', 3, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31f9e500f18711eea2cd00ffb4e96929', 'sys_person', 'degree_id', '大专', '4', 1, NULL, '学历', '1', 4, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3200d195f18711eea2cd00ffb4e96929', 'sys_person', 'degree_id', '大学', '5', 1, NULL, '学历', '1', 5, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ad997865f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '销售主管', '1', 1, NULL, '职务', '1', 7, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ad9ce962f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '总经理', '2', 1, NULL, '职务', '1', 8, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ada11492f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '副总', '3', 1, NULL, '职务', '1', 9, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ada57154f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '财务', '4', 1, NULL, '职务', '1', 10, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adac5305f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '出纳', '5', 1, NULL, '职务', '1', 11, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adb061abf18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '实施部总监', '6', 1, NULL, '职务', '1', 12, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adb1f704f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '研发部总监', '7', 1, NULL, '职务', '1', 13, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adb896c6f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '研发部经理', '8', 1, NULL, '职务', '1', 14, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adbe2130f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '实施部经理', '9', 1, NULL, '职务', '1', 15, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adc56199f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '项目经理', '10', 1, NULL, '职务', '1', 16, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adcc44cbf18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '研发工程师', '11', 1, NULL, '职务', '1', 17, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('add20873f18711eea2cd00ffb4e96929', 'sys_person', 'post_id', '实施工程师', '12', 1, NULL, '职务', '1', 18, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('feea3fd8f18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '资深顾问', '1', 1, NULL, '级别', '1', 19, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('feef8907f18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '研发顾问', '2', 1, NULL, '级别', '1', 20, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fef6a7bdf18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '实施顾问', '3', 1, NULL, '级别', '1', 21, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fefa2b97f18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '高级工程师', '4', 1, NULL, '级别', '1', 22, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ff010848f18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '中级工程师', '5', 1, NULL, '级别', '1', 23, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); +INSERT INTO sys_dictionaryshop (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ff082154f18711eea2cd00ffb4e96929', 'sys_person', 'level_id', '初级工程师', '6', 1, NULL, '级别', '1', 24, '1', '2024-04-03 14:34:51', '1', '2024-04-03 14:34:54', 'Y', '0', '0'); + + +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('1', 'sys_product', 'classify', 'ERP', '1', 1, NULL, '产品分类', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('10', 'sys_product', 'classify', 'Portal', '10', 10, NULL, '产品分类', '1', 10, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('11', 'sys_product', 'classify', '其他', '11', 11, NULL, '产品分类', '1', 11, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('161a15e0c6c611edb70400ffb4e96929', 'sys_thirdparty_api', 'content_type', 'application/json', '1', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('16201b7fc6c611edb70400ffb4e96929', 'sys_thirdparty_api', 'content_type', 'text/xml', '2', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('2', 'sys_product', 'classify', 'HR', '2', 2, NULL, '产品分类', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('26db733b6d9711eea2cd00ffb4e96929', 'mdm', 'db_type', '数字', 'BIGINT', 1, NULL, '主数据模版字段类型', '1', 1, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('26df45dd6d9711eea2cd00ffb4e96929', 'mdm', 'db_type', '金额', 'DECIMAL', 2, NULL, '主数据模版字段类型', '1', 2, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('26e349516d9711eea2cd00ffb4e96929', 'mdm', 'db_type', '字符串', 'VARCHAR', 3, NULL, '主数据模版字段类型', '1', 3, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('26e9e5266d9711eea2cd00ffb4e96929', 'mdm', 'db_type', '日期', 'DATETIME', 4, NULL, '主数据模版字段类型', '1', 4, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('26f738af6d9711eea2cd00ffb4e96929', 'mdm', 'db_type', '统计', 'COUNT', 5, NULL, '主数据模版字段类型', '1', 5, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('3', 'sys_product', 'classify', 'PLM', '3', 3, NULL, '产品分类', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4', 'sys_product', 'classify', 'PM', '4', 4, NULL, '产品分类', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4c6bc9e76d6411eea2cd00ffb4e96929', 'mdm', 'mdm_type', '档案', '1', 1, NULL, '主数据模版类型', '1', 1, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4dcd9927c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'api_code', 'UTF-8', '1', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4e24e7e5c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'api_code', 'GB2312', '2', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4e44f9d1c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'api_code', 'ISO-8859-1', '3', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('4e4e4070c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'api_code', 'GBK', '4', 4, NULL, '数据类型', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('5', 'sys_product', 'classify', 'CRM', '5', 5, NULL, '产品分类', '1', 5, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('54bcb59979f511eea2cd00ffb4e96929', 'mdm', 'mdm_filed_type', '数字', '1', 1, NULL, '主数据模版字段类型', '1', 1, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('54c510fc79f511eea2cd00ffb4e96929', 'mdm', 'mdm_filed_type', '金额', '2', 2, NULL, '主数据模版字段类型', '1', 2, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('54c8e19c79f511eea2cd00ffb4e96929', 'mdm', 'mdm_filed_type', '字符串', '3', 3, NULL, '主数据模版字段类型', '1', 3, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('54ce074679f511eea2cd00ffb4e96929', 'mdm', 'mdm_filed_type', '日期', '4', 4, NULL, '主数据模版字段类型', '1', 4, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('5b835d99cc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'release_type', '应用发布', '1', 1, NULL, '发布类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('5b91686bcc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_agreement', 'HTTP', '1', 1, NULL, '接口访问协议', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6', 'sys_product', 'classify', 'FI', '6', 6, NULL, '产品分类', '1', 6, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('65d776cf29c911eea2cd00ffb4e96929', 'sys_thirdparty_api_parameter', 'parameter_type', '认证接口', '5', 5, NULL, '参数类型', '1', 5, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6855f6d1c6c611edb70400ffb4e96929', 'sys_thirdparty_api', 'content_type', 'application/x-www-form-urlencoded', '3', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69dc998dcc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_agreement', 'HTTPS', '2', 2, NULL, '接口访问协议', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69dec6f2cc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_application_type', '导出接口', '1', 1, NULL, '接口应用类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69e2d8e2cc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_application_type', '取数接口', '2', 2, NULL, '接口应用类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69ebc5cbcc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_application_type', '认证接口', '3', 3, NULL, '接口应用类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69f4086acc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'api_application_type', '页面跳转', '4', 4, NULL, '接口应用类型', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('69ff5424cc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'request_method', 'POST', '1', 1, NULL, '请求方法', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a04fcaacc7d11edb70400ffb4e96929', 'sys_thirdparty_api', 'request_method', 'GET', '2', 2, NULL, '请求方法', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a0d8f37cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'parameter_type', '基本类型', '1', 1, NULL, '参数类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a161505cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'parameter_type', '复杂类型', '2', 2, NULL, '参数类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a1f4998cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'parameter_type', '基本列表', '3', 3, NULL, '参数类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a266f05cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'parameter_type', '复杂列表', '4', 4, NULL, '参数类型', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a2f5ed2cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'String', '11', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a37791fcc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'Int', '12', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a3fbd18cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'Long', '13', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a44ab04cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'Float', '14', 4, NULL, '数据类型', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a4e15adcc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'Double', '15', 5, NULL, '数据类型', '1', 5, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a561db3cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type1', 'Boolean', '16', 6, NULL, '数据类型', '1', 6, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a5f1af4cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type2', 'Object', '21', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a66ab65cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type2', 'Map', '22', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a6b8c77cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'String', '31', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a708d38cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'Int', '32', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a7615d7cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'Long', '33', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a7e5d0acc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'Float', '34', 4, NULL, '数据类型', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a850cdecc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'Double', '35', 5, NULL, '数据类型', '1', 5, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a8ac778cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type3', 'Boolean', '36', 6, NULL, '数据类型', '1', 6, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6a97d8e2cc7d11edb70400ffb4e96929', 'sys_thirdparty_api_parameter', 'data_type4', 'Object', '41', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:48', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:48', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6c319282bbbc11edb70400ffb4e96929', 'sys_database', 'db_type', 'SqlServer', '1', 1, NULL, '数据库类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6c4259c7bbbc11edb70400ffb4e96929', 'sys_database', 'db_type', 'MySql', '2', 2, NULL, '数据库类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6c577cbdbbbc11edb70400ffb4e96929', 'sys_database', 'db_type', 'Oracle', '3', 3, NULL, '数据库类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6cab52fd253f11eeb21600ffb4e96929', 'sys_app_api', 'need_Login', '是', '1', 1, NULL, '是否需要登录', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('6caea36d253f11eeb21600ffb4e96929', 'sys_app_api', 'need_Login', '否', '2', 2, NULL, '是否需要登录', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('7', 'sys_product', 'classify', 'SCM', '7', 7, NULL, '产品分类', '1', 7, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('8', 'sys_product', 'classify', '电子商务', '8', 8, NULL, '产品分类', '1', 8, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('8db73e9ac6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'accept', 'application/json', '1', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('8db91293c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'accept', 'application/xml', '2', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('8dc223c7c6c711edb70400ffb4e96929', 'sys_thirdparty_api', 'accept', 'text/plain', '3', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9', 'sys_product', 'classify', 'IM', '9', 9, NULL, '产品分类', '1', 9, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9a27f3de253f11eeb21600ffb4e96929', 'sys_app_api', 'parameter_passing_mode', 'query', '1', 1, NULL, '传参方式', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9a2c33b8253f11eeb21600ffb4e96929', 'sys_app_api', 'parameter_passing_mode', 'data', '2', 2, NULL, '传参方式', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9da8520d250c11eeb21600ffb4e96929', 'sys_app_api', 'body_in_type', 'Application/json', '1', 1, NULL, 'Body 入参类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9dab9607250c11eeb21600ffb4e96929', 'sys_app_api', 'request_coding', 'UTF-8', '1', 1, NULL, '请求编码', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9dacf9f7250c11eeb21600ffb4e96929', 'sys_app_api', 'service_access_protocol', 'HTTP', '1', 1, NULL, '服务接入协议', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:22', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9dae52e9250c11eeb21600ffb4e96929', 'sys_app_api', 'service_access_protocol', 'HTTPS', '2', 2, NULL, '服务接入协议', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:46', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9daf8856250c11eeb21600ffb4e96929', 'sys_app_api', 'request_method', 'POST', '1', 1, NULL, '请求方法', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9db0e08c250c11eeb21600ffb4e96929', 'sys_app_api', 'request_method', 'GET', '2', 2, NULL, '请求方法', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9db6328d250c11eeb21600ffb4e96929', 'sys_app_api', 'enable_access_entry', 'APP', '1', 1, NULL, '允许访问入口', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('9dbeaf2f250c11eeb21600ffb4e96929', 'sys_app_api', 'enable_access_entry', 'H5', '2', 2, NULL, '允许访问入口', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-27 16:51:47', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('b49733e86d6411eea2cd00ffb4e96929', 'mdm', 'mdm_type', '业务', '2', 2, NULL, '主数据模版类型', '1', 2, NULL, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f296b142bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', 'PC', '1', 1, NULL, '接入方式', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f29ab72bbbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', '移动URL接入应用', '2', 2, NULL, '接入方式', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f29f4a25bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', '本地H5应用', '3', 3, NULL, '接入方式', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f2a842c1bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', '本地原生应用', '4', 4, NULL, '接入方式', '1', 4, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f2ade517bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', 'PC&移动URL接入应用', '5', 5, NULL, '接入方式', '1', 5, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f2b5a9d9bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', 'PC&本地H5应用', '6', 6, NULL, '接入方式', '1', 6, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('f2ba2745bbbc11edb70400ffb4e96929', 'sys_app', 'access_mode', 'PC&本地原生应用', '7', 7, NULL, '接入方式', '1', 7, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('fff2bdcec24111edb70400ffb4e96929', 'sys_version_parameter', 'date_type', '文本', '1', 1, NULL, '数据类型', '1', 1, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('fff83f4cc24111edb70400ffb4e96929', 'sys_version_parameter', 'date_type', '数字', '2', 2, NULL, '数据类型', '1', 2, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); +INSERT INTO sys_dictionaryshop_new (id, tab_name, column_name, column_content, column_value, column_num_value, up_id, memo, used_sts, sorts, org_id, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES ('fffe9c23c24111edb70400ffb4e96929', 'sys_version_parameter', 'date_type', '密码', '3', 3, NULL, '数据类型', '1', 3, '1', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-03-06 09:02:36', 'Y'); + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.4__init_interface.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.4__init_interface.sql new file mode 100644 index 00000000..01c82b17 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.4__init_interface.sql @@ -0,0 +1,205 @@ + +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1', '查询按钮列表分页', 'sysButtonConfigService', 'queryEntityPage', '查询按钮列表分页', '0', 1, '1', '2024-04-09 10:22:06', '1', '2024-05-17 10:42:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2', '查询按钮列表', 'sysButtonConfigService', 'queryEntity', '查询按钮列表', '0', 2, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3', '保存按钮', 'sysButtonConfigService', 'saveEntity', '保存按钮', '0', 3, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4', '获取按钮', 'sysButtonConfigService', 'getEntity', '获取按钮', '0', 4, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5', '修改按钮', 'sysButtonConfigService', 'updateEntity', '修改按钮', '0', 5, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6', '删除按钮', 'sysButtonConfigService', 'deleteEntity', '删除按钮', '0', 6, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7', '查询数据字典列表分页', 'sysDictionaryshopService', 'queryEntityPage', '查询数据字典列表分页', '0', 7, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8', '查询数据字典列表', 'sysDictionaryshopService', 'queryEntity', '查询数据字典列表', '0', 8, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9', '登录', 'loginService', 'doLogin', '登录', '0', 9, '1', '2024-04-09 11:03:02', '1', '2024-05-21 10:43:20', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('10', '根据用户id查询菜单树', 'sysMenuConfigService', 'queryTreeById', '根据用户id查询菜单树', '0', 10, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('11', '查询菜单树', 'sysMenuConfigService', 'queryEntityTree', '查询菜单树', '0', 11, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('12', '保存菜单', 'sysMenuConfigService', 'saveEntity', '保存菜单', '0', 12, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('13', '获取菜单', 'sysMenuConfigService', 'getEntity', '获取菜单', '0', 13, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('14', '修改菜单', 'sysMenuConfigService', 'updateEntity', '修改菜单', '0', 14, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('15', '删除菜单', 'sysMenuConfigService', 'deleteEntity', '删除菜单', '0', 15, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('16', '启用停用菜单', 'sysMenuConfigService', 'enableDisableEntity', '启用停用菜单', '0', 16, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('17', '查询组织树', 'sysOrganService', 'queryEntityTree', '查询组织树', '0', 17, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('18', '保存组织', 'sysOrganService', 'saveEntity', '保存组织', '0', 18, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('19', '获取组织', 'sysOrganService', 'getEntity', '获取组织', '0', 19, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('20', '修改组织', 'sysOrganService', 'updateEntity', '修改组织', '0', 20, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('21', '删除组织', 'sysOrganService', 'deleteEntity', '删除组织', '0', 21, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('22', '启用停用组织', 'sysOrganService', 'enableDisableEntity', '启用停用组织', '0', 22, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('23', '查询人员列表分页', 'sysPersonService', 'queryEntityPage', '查询人员列表分页', '0', 23, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('24', '查询人员列表', 'sysPersonService', 'queryEntity', '查询人员列表', '0', 24, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('25', '保存人员', 'sysPersonService', 'saveEntity', '保存人员', '0', 25, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('26', '获取人员', 'sysPersonService', 'getEntity', '获取人员', '0', 26, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('27', '修改人员', 'sysPersonService', 'updateEntity', '修改人员', '0', 27, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('28', '删除人员', 'sysPersonService', 'deleteEntity', '删除人员', '0', 28, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29', '启用停用人员', 'sysPersonService', 'enableDisableEntity', '启用停用人员', '0', 29, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('30', '查询角色列表分页', 'sysRoleService', 'queryEntityPage', '查询角色列表分页', '0', 30, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31', '查询角色列表', 'sysRoleService', 'queryEntity', '查询角色列表', '0', 31, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('32', '保存角色', 'sysRoleService', 'saveEntity', '保存角色', '0', 32, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('33', '获取角色', 'sysRoleService', 'getEntity', '获取角色', '0', 33, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('34', '修改角色', 'sysRoleService', 'updateEntity', '修改角色', '0', 34, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('35', '删除角色', 'sysRoleService', 'deleteEntity', '删除角色', '0', 35, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('36', '启用停用角色', 'sysRoleService', 'enableDisableEntity', '启用停用角色', '0', 36, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('37', '查询接口列表分页', 'sysInterfaceService', 'queryEntityPage', '查询接口列表分页', '0', 37, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38', '查询接口列表', 'sysInterfaceService', 'queryEntity', '查询接口列表', '0', 38, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39', '保存接口', 'sysInterfaceService', 'saveEntity', '保存接口', '0', 39, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40', '获取接口', 'sysInterfaceService', 'getEntity', '获取接口', '0', 40, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('41', '修改接口', 'sysInterfaceService', 'updateEntity', '修改接口', '0', 41, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42', '删除接口', 'sysInterfaceService', 'deleteEntity', '删除接口', '0', 42, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43', '启用停用接口', 'sysInterfaceService', 'enableDisableEntity', '启用停用接口', '0', 43, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('44', '查询用户列表分页', 'sysUserService', 'queryEntityPage', '查询用户列表分页', '0', 44, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45', '查询用户列表', 'sysUserService', 'queryEntity', '查询用户列表', '0', 45, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('46', '保存用户', 'sysUserService', 'saveEntity', '保存用户', '0', 46, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('47', '获取用户', 'sysUserService', 'getEntity', '获取用户', '0', 47, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('48', '修改用户', 'sysUserService', 'updateEntity', '修改用户', '0', 48, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('49', '删除用户', 'sysUserService', 'deleteEntity', '删除用户', '0', 49, '1', '2024-04-09 11:03:02', '1', '2024-04-15 09:05:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('50', '启用停用用户', 'sysUserService', 'enableDisableEntity', '启用停用用户', '0', 50, '1', '2024-04-11 09:55:51', '1', '2024-04-11 09:58:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('51', '重置密码', 'sysUserService', 'resetPassword', '重置密码', '0', 51, '1', '2024-04-09 10:22:06', '1', '2024-04-15 09:05:17', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('52', '权限查询', 'sysUserService', 'jurisdiction', '权限查询', '0', 52, '1', '2024-04-09 10:55:19', '1', '2024-04-15 09:06:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53', '保存权限', 'sysUserService', 'saveJurisdiction', '保存权限', '0', 53, '1', '2024-04-09 11:02:40', '1', '2024-04-09 11:02:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54', '查询配置的插件参数列表', 'sysPlugArgService', 'queryPlugArg', '查询配置的插件参数列表', '0', 54, '1', '2024-04-09 11:10:01', '1', '2024-04-03 12:59:48', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55', '保存配置的插件参数列表', 'sysPlugArgService', 'savePlugArg', '保存配置的插件参数列表', '0', 55, '1', '2024-04-09 11:17:22', '1', '2024-03-28 14:56:39', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('56', '修改配置的插件参数列表', 'sysPlugArgService', 'updatePlugArg', '修改配置的插件参数列表', '0', 56, '1', '2024-04-09 11:24:43', '1', '2024-03-22 16:53:30', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('57', '删除配置的插件参数列表', 'sysPlugArgService', 'deletePlugArg', '删除配置的插件参数列表', '0', 57, '1', '2024-04-09 11:32:04', '1', '2024-03-16 18:50:21', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('58', '获取配置的插件参数列表', 'sysPlugArgService', 'getPlugArg', '获取配置的插件参数列表', '0', 58, '1', '2024-04-09 11:39:25', '1', '2024-03-10 20:47:12', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('59', '根据插件ID获取配置的插件参数列表', 'sysPlugArgService', 'getPlugArgByPlugId', '根据插件ID获取配置的插件参数列表', '0', 59, '1', '2024-04-09 11:46:46', '1', '2024-03-04 22:44:03', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('60', '查询集成前台任务列表', 'sysIntegratedForegroundTaskService', 'queryIntegratedForegroundTask', '查询集成前台任务列表', '0', 60, '1', '2024-04-09 11:54:07', '1', '2024-02-28 00:40:54', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('61', '保存集成前台任务', 'sysIntegratedForegroundTaskService', 'saveIntegratedForegroundTask', '保存集成前台任务', '0', 61, '1', '2024-04-09 12:01:28', '1', '2024-02-22 02:37:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('62', '修改集成前台任务', 'sysIntegratedForegroundTaskService', 'updateIntegratedForegroundTask', '修改集成前台任务', '0', 62, '1', '2024-04-09 12:08:49', '1', '2024-02-16 04:34:36', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('63', '删除集成前台任务', 'sysIntegratedForegroundTaskService', 'deleteIntegratedForegroundTask', '删除集成前台任务', '0', 63, '1', '2024-04-09 12:16:10', '1', '2024-02-10 06:31:27', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64', '获取集成前台任务', 'sysIntegratedForegroundTaskService', 'getIntegratedForegroundTask', '获取集成前台任务', '0', 64, '1', '2024-04-09 12:23:31', '1', '2024-02-04 08:28:18', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('65', '查询所有插件数据', 'pluginService', 'queryPlugins', '查询所有插件数据', '0', 65, '1', '2024-04-09 12:30:52', '1', '2024-01-29 10:25:09', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('66', '根据插件类型查询插件数据', 'pluginService', 'queryPluginsByType', '根据插件类型查询插件数据', '0', 66, '1', '2024-04-09 12:38:13', '1', '2024-01-23 12:22:00', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67', '根据插件ID查询插件数据', 'pluginService', 'queryPluginById', '根据插件ID查询插件数据', '0', 67, '1', '2024-04-09 12:45:34', '1', '2024-01-17 14:18:51', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('68', '根据插件ID执行相关业务逻辑方法', 'pluginService', 'executeBusinessPluginById', '根据插件ID执行相关业务逻辑方法', '0', 68, '1', '2024-04-09 12:52:55', '1', '2024-01-11 16:15:42', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69', '查询数据字典', 'generalServiceImpl', 'selectDictionaryshop', '查询数据字典', '0', 69, '1', '2024-04-09 13:00:16', '1', '2024-01-05 18:12:33', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70', '查询应用列表分页', 'sysApplicationService', 'queryApp', '查询应用列表分页', '0', 70, '1', '2024-04-09 13:07:37', '1', '2023-12-30 20:09:24', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('71', '创建应用保存接口', 'sysApplicationService', 'saveApp', '创建应用保存接口', '0', 71, '1', '2024-04-09 13:14:58', '1', '2023-12-24 22:06:15', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('72', '应用复制查询接口', 'sysApplicationService', 'getCopyApp', '应用复制查询接口', '0', 72, '1', '2024-04-09 13:22:19', '1', '2023-12-19 00:03:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('73', '应用复制接口保存接口', 'sysApplicationService', 'copyApp', '应用复制接口保存接口', '0', 73, '1', '2024-04-09 13:29:40', '1', '2023-12-13 01:59:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('74', '应用根据ID查询接口', 'sysApplicationService', 'getApp', '应用根据ID查询接口', '0', 74, '1', '2024-04-09 13:37:01', '1', '2023-12-07 03:56:48', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('75', '应用启用停用接口', 'sysApplicationService', 'enableOrDisableApp', '应用启用停用接口', '0', 75, '1', '2024-04-09 13:44:22', '1', '2023-12-01 05:53:39', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('76', '应用修改接口', 'sysApplicationService', 'updateApp', '应用修改接口', '0', 76, '1', '2024-04-09 13:51:43', '1', '2023-11-25 07:50:30', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('77', '数据源测试接口', 'sysApplicationService', 'testDatabase', '数据源测试接口', '0', 77, '1', '2024-04-09 13:59:04', '1', '2023-11-19 09:47:21', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('78', '应用目录查询接口', 'sysApplicationService', 'queryAppApiType', '应用目录查询接口', '0', 78, '1', '2024-04-09 14:06:25', '1', '2023-11-13 11:44:12', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79', '应用目录保存接口', 'sysApplicationService', 'saveAppApiType', '应用目录保存接口', '0', 79, '1', '2024-04-09 14:13:46', '1', '2023-11-07 13:41:03', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('80', '应用目录修改接口', 'sysApplicationService', 'updateAppApiType', '应用目录修改接口', '0', 80, '1', '2024-04-09 14:21:07', '1', '2023-11-01 15:37:54', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81', '应用目录删除接口', 'sysApplicationService', 'deleteAppApiType', '应用目录删除接口', '0', 81, '1', '2024-04-09 14:28:28', '1', '2023-10-26 17:34:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82', '根据应用、目录、查询条件查询api接口', 'sysApplicationService', 'queryAppApi', '根据应用、目录、查询条件查询api接口', '0', 82, '1', '2024-04-09 14:35:49', '1', '2023-10-20 19:31:36', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('83', '查询应用api接口', 'sysApplicationService', 'getAppApi', '查询应用api接口', '0', 83, '1', '2024-04-09 14:43:10', '1', '2023-10-14 21:28:27', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('84', '查询调试参数接口', 'sysApplicationService', 'debugAppApi', '查询调试参数接口', '0', 84, '1', '2024-04-09 14:50:31', '1', '2023-10-08 23:25:18', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('85', '查询接口日志', 'sysApplicationService', 'queryAppApiLog', '查询接口日志', '0', 85, '1', '2024-04-09 14:57:52', '1', '2023-10-03 01:22:09', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86', '共享保存接口', 'sysApplicationService', 'saveApiShare', '共享保存接口', '0', 86, '1', '2024-04-09 15:05:13', '1', '2023-09-27 03:19:00', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('87', 'api删除接口', 'sysApplicationService', 'deleteApi', 'api删除接口', '0', 87, '1', '2024-04-09 15:12:34', '1', '2023-09-21 05:15:51', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('88', 'api新增接口', 'sysApplicationService', 'saveApi', 'api新增接口', '0', 88, '1', '2024-04-09 15:19:55', '1', '2023-09-15 07:12:42', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('89', 'api修改接口', 'sysApplicationService', 'updateApi', 'api修改接口', '0', 89, '1', '2024-04-09 15:27:16', '1', '2023-09-09 09:09:33', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('90', '三方调用系统查询接口', 'sysApplicationService', 'queryAppApiAuth', '三方调用系统查询接口', '0', 90, '1', '2024-04-09 15:34:37', '1', '2023-09-03 11:06:24', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91', '三方调用系统保存接口', 'sysApplicationService', 'saveAppApiAuth', '三方调用系统保存接口', '0', 91, '1', '2024-04-09 15:41:58', '1', '2023-08-28 13:03:15', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('92', 'api关联三方系统保存接口', 'sysApplicationService', 'saveAppApiAuthDetail', 'api关联三方系统保存接口', '0', 92, '1', '2024-04-09 15:49:19', '1', '2023-08-22 15:00:06', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93', '查询api所有数据', 'sysApplicationService', 'queryAppAll', '查询api所有数据', '0', 93, '1', '2024-04-09 15:56:40', '1', '2023-08-16 16:56:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('94', '插件查询接口', 'sysApplicationService', 'queryAppPlugin', '插件查询接口', '0', 94, '1', '2024-04-09 16:04:01', '1', '2023-08-10 18:53:48', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95', '插件修改接口', 'sysApplicationService', 'saveAppPlugin', '插件修改接口', '0', 95, '1', '2024-04-09 16:11:22', '1', '2023-08-04 20:50:39', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96', '插件修改接口', 'sysApplicationService', 'updateAppPlugin', '插件修改接口', '0', 96, '1', '2024-04-09 16:18:43', '1', '2023-07-29 22:47:30', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('97', '插件删除接口', 'sysApplicationService', 'deleteAppPlugin', '插件删除接口', '0', 97, '1', '2024-04-09 16:26:04', '1', '2023-07-24 00:44:21', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('98', '获取插件接口', 'sysApplicationService', 'getAppPlugin', '获取插件接口', '0', 98, '1', '2024-04-09 16:33:25', '1', '2023-07-18 02:41:12', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('99', '插件启用停用接口', 'sysApplicationService', 'enableOrDisableAppPlugin', '插件启用停用接口', '0', 99, '1', '2024-04-09 16:40:46', '1', '2023-07-12 04:38:03', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('100', '应用接口启用停用接口', 'sysApplicationService', 'enableOrDisableAppApi', '应用接口启用停用接口', '0', 100, '1', '2024-04-09 16:48:07', '1', '2023-07-06 06:34:54', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('101', '应用数据源启用停用接口', 'sysApplicationService', 'enableOrDisableAppDatasource', '应用数据源启用停用接口', '0', 101, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('102', '调试接口', 'appApiService', 'debugApi', '调试接口', '0', 102, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('103', '获取用户模版数据', 'optionService', 'queryUserTemplate', '获取用户模版数据', '0', 103, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('104', '获取所有模版数据', 'optionService', 'queryAllTemplate', '获取所有模版数据', '0', 104, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('105', '获取模版所有字段', 'optionService', 'queryAllTemplateFields', '获取模版所有字段', '0', 105, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('106', '获取用户模版字段', 'optionService', 'queryUserTemplateFields', '获取用户模版字段', '0', 106, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('107', '获取用户模版按钮', 'optionService', 'queryUserTemplateButtons', '获取用户模版按钮', '0', 107, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('108', '获取模版下的数据(不分页)', 'optionService', 'queryAllData', '获取模版下的数据(不分页)', '0', 108, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('109', '获取模版下的数据(分页)', 'optionService', 'queryPageData', '获取模版下的数据(分页)', '0', 109, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('110', '添加模版以及模版类型数据结构', 'optionService', 'addTemplateAll', '添加模版以及模版类型数据结构', '0', 110, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('111', '获取模版对应service的某条数据', 'optionService', 'queryTemplateServiceData', '获取模版对应service的某条数据', '0', 111, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('112', '新增对应service的数据', 'optionService', 'addTemplateServiceData', '新增对应service的数据', '0', 112, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('113', '修改对应service的数据', 'optionService', 'updateTemplateServiceData', '修改对应service的数据', '0', 113, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('114', '删除对应service的数据', 'optionService', 'deleteTemplateServiceData', '删除对应service的数据', '0', 114, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('115', '查询数据(list 或者 分页)', 'optionService', 'queryTemplateData', '查询数据(list 或者 分页)', '0', 115, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('116', '查询数据(树结构)', 'optionService', 'queryTemplateTreeData', '查询数据(树结构)', '0', 116, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('117', '新增数据', 'optionService', 'addMasterData', '新增数据', '0', 117, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('118', '新增多数据', 'optionService', 'addMasterDataList', '新增多数据', '0', 118, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('119', '添加模版以及模版类型数据结构', 'optionService', 'testTemplateAll', '添加模版以及模版类型数据结构', '0', 119, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('120', '对照', 'optionService', 'controlData', '对照', '0', 120, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('121', '主数据列表查询接口分页', 'mdmService', 'queryMdmPage', '主数据列表查询接口分页', '0', 121, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2989c8bb9714400a9e3a395f33edf691', '小程序应用表查询', 'AppService', 'getWrapper', '测试mybatis', '0', 121, '1', '2024-04-25 09:57:04', '1', '2024-04-25 09:57:04', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('122', '主数据列表查询接口列表', 'mdmService', 'queryMdmList', '主数据列表查询接口列表', '0', 122, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5df72202229d4bf69b7974a8ec9b03bf', '查询应用', 'appServiceImpl', 'queryDemo', NULL, '0', 122, '1', '2024-04-29 15:45:00', '1', '2024-04-29 16:06:15', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('123', '主数据基本信息', 'mdmService', 'queryMdmModule', '主数据基本信息', '0', 123, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9dc3d6efdc114aa99a7e29cd9cd5fc15', '查询应用列表', 'sysApplicationService', 'queryEntity', '查询应用列表', '0', 123, '1', '2024-05-06 16:11:55', '1', '2024-05-06 16:11:55', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('124', '主数据基本信息保存', 'mdmService', 'doSaveMdmModule', '主数据基本信息保存', '0', 124, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('969dcbd163d0489998a6aed93fbf9d6a', '查询应用插件列表', 'sysApplicationPluginService', 'queryEntity', '查询应用插件列表', '0', 124, '1', '2024-05-06 16:12:15', '1', '2024-05-06 16:12:15', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('125', '主数据设置查询数据源', 'mdmService', 'queryMdmModuleDb', '主数据设置查询数据源', '0', 125, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bb3de6cbb36f433ea67e41af02360a8a', '查询任务列表分页', 'integrationTaskService', 'queryEntityPage', '查询任务列表分页', '0', 125, '1', '2024-05-07 09:48:20', '1', '2024-05-07 09:48:20', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('126', '主数据设置查询数据源的服务', 'mdmService', 'queryMdmModuleServer', '主数据设置查询数据源的服务', '0', 126, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('19a723f1c0574ea6a2ed4b4f3f05b96e', '查询任务列表', 'integrationTaskService', 'queryEntity', '查询任务列表', '0', 126, '1', '2024-05-07 09:48:45', '1', '2024-05-07 09:48:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('127', '主数据设置查询数据源字段的服务', 'mdmService', 'queryMdmModuleServerFiled', '主数据设置查询数据源字段的服务', '0', 127, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e6136d49423a4ff2bcc73e225de06922', '保存任务', 'integrationTaskService', 'saveEntity', '保存任务', '0', 127, '1', '2024-05-07 09:49:01', '1', '2024-05-07 09:49:01', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('128', '主数据设置查询主表字段', 'mdmService', 'queryMdmModuleServerMainFiled', '主数据设置查询主表字段', '0', 128, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('144d72d02ac4407aaba287cc2b4e9c94', '获取任务', 'integrationTaskService', 'getEntity', '获取任务', '0', 128, '1', '2024-05-07 09:49:18', '1', '2024-05-07 09:49:18', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('129', '主数据设置保存数据源', 'mdmService', 'saveMdmModuleDb', '主数据设置保存数据源', '0', 129, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('851c4f03412f454d9d1f85cd6c6c2259', '修改任务', 'integrationTaskService', 'updateEntity', '修改任务', '0', 129, '1', '2024-05-07 09:49:34', '1', '2024-05-07 09:49:34', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('130', '主数据设置查询显示信息', 'mdmService', 'queryMdmModuleView', '主数据设置查询显示信息', '0', 130, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9a86aae825a6476c836ae013d1ca139b', '删除任务', 'integrationTaskService', 'deleteEntity', '删除任务', '0', 130, '1', '2024-05-07 09:49:48', '1', '2024-05-07 09:49:48', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('131', '主数据设置修改显示信息', 'mdmService', 'doSaveMdmModuleView', '主数据设置修改显示信息', '0', 131, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8137afb97e6848b59c3a7a482eed02d0', '启用停用任务', 'integrationTaskService', 'enableDisableEntity', '启用停用任务', '0', 131, '1', '2024-05-07 09:50:05', '1', '2024-05-07 09:50:05', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('132', '主数据设置查询权限配置', 'mdmService', 'queryMdmModuleRule', '主数据设置查询权限配置', '0', 132, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8b83433c54ad4ab88caacfed08e48c4f', '查询任务实例列表分页', 'integrationTaskLivingService', 'queryEntityPage', '查询任务实例列表分页', '0', 132, '1', '2024-05-07 10:57:41', '1', '2024-05-07 10:57:41', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('133', '主数据设置保存权限配置', 'mdmService', 'doSaveMdmModuleRule', '主数据设置保存权限配置', '0', 133, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('451c63d99ed144cea18878a6539379e4', '查询任务日志列表分页', 'integrationTaskLogService', 'queryEntityPage', '查询任务日志列表分页', '0', 133, '1', '2024-05-07 10:58:00', '1', '2024-05-15 10:14:35', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('134', '主数据设置查询分发设置', 'mdmService', 'queryMdmModuleDistribute', '主数据设置查询分发设置', '0', 134, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('34c0191710334ba896989d8f6af41d52', '获取任务日志', 'integrationTaskLogService', 'getEntity', '获取任务日志', '0', 134, '1', '2024-05-08 16:20:49', '1', '2024-05-15 10:15:03', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('135', '主数据设置保存分发设置', 'mdmService', 'doSaveMdmModuleDistribute', '主数据设置保存分发设置', '0', 135, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f2b0c44895ba40cca0dd0f85a8ee96a0', '获取任务实例', 'integrationTaskLivingService', 'getEntity', '获取任务实例', '0', 135, '1', '2024-05-08 16:21:08', '1', '2024-05-08 16:21:08', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('136', '主数据列表显示 树、查询条件、列表字段、按钮', 'mdmService', 'queryMdmShow', '主数据列表显示 树、查询条件、列表字段、按钮', '0', 136, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('137', '主数据查询所有字段', 'mdmService', 'queryMdmShowAll', '主数据查询所有字段', '0', 137, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('138', '查询模版数据', 'mdmService', 'queryTemplateData', '查询模版数据', '0', 138, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('139', '主数据列表显示 业务数据', 'mdmService', 'queryMdmShowData', '主数据列表显示 业务数据', '0', 139, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('140', '主数据业务数据', 'mdmService', 'queryMdmShowDistribute', '主数据业务数据', '0', 140, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('141', '主数据业务数据树结构', 'mdmService', 'queryMdmShowTreeData', '主数据业务数据树结构', '0', 141, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('142', '主数据业务数据树数据', 'mdmService', 'queryMdmOptionData', '主数据业务数据树数据', '0', 142, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('143', '主数据详情 区分类型 新增、修改、查看', 'mdmService', 'queryMdmShowDetails', '主数据详情 区分类型 新增、修改、查看', '0', 143, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('144', '主数据详情数据 区分类型 新增、修改、查看', 'mdmService', 'queryMdmShowDetailsData', '主数据详情数据 区分类型 新增、修改、查看', '0', 144, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('145', '主数据详情数据修改', 'mdmService', 'updateMdmShowDetailsData', '主数据详情数据修改', '0', 145, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('146', '主数据详情数据新增', 'mdmService', 'saveMdmShowDetailsData', '主数据详情数据新增', '0', 146, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('147', '主数据删除业务数据', 'mdmService', 'deleteMdmShowDetailsData', '主数据删除业务数据', '0', 147, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('148', '主数据处理分发数据', 'mdmService', 'doMdmDistribute', '主数据处理分发数据', '0', 148, '1', '2024-04-09 16:55:28', '1', '2023-06-30 08:31:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8362f166ae9948beafd16c63768972a4', '数据源查询', 'sysDataSourceService', 'queryPage', '数据源查询', '0', 149, '1', '2024-05-13 11:17:01', '1', '2024-05-13 11:17:01', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('167e8870f7b84b5d94555f10014d8b8e', '数据源新增', 'sysDataSourceService', 'addEntity', '数据源新增', '0', 150, '1', '2024-05-13 11:25:33', '1', '2024-05-13 11:25:33', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1c30ec9075ed4d71af86333c00b795bb', '修改数据源', 'sysDataSourceService', 'editEntity', '修改数据源', '0', 151, '1', '2024-05-13 11:28:14', '1', '2024-05-13 11:28:14', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('13e10620a6574addbd8e07e2af088684', '删除数据源', 'sysDataSourceService', 'deleteEntity', '删除数据源', '0', 152, '1', '2024-05-13 11:28:45', '1', '2024-05-13 11:28:45', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67f3bafa57d94afa92bb56bffadc946f', '获取数据源', 'sysDataSourceService', 'queryEntity', '获取数据源', '0', 153, '1', '2024-05-13 11:29:16', '1', '2024-05-13 11:29:16', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('49f5a859828648f18738ba08192bff01', '首页异常日志', 'homeService', 'appErrorNum', '首页异常日志', '0', 154, '1', '2024-05-13 16:14:05', '1', '2024-05-13 16:14:05', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5f246aac13a746d7b90ff691b785d155', '首页接口运行情况', 'homeService', 'appApiNum', '首页接口运行情况', '0', 155, '1', '2024-05-13 16:14:30', '1', '2024-05-13 16:14:30', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa9084830bc648839455c04b1602f9e2', '首页任务运行情况', 'homeService', 'taskNum', '首页任务运行情况', '0', 156, '1', '2024-05-13 16:14:54', '1', '2024-05-13 16:14:54', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0797fecc12614587bd87575eefe5c583', '首页数据接入', 'homeService', 'sevenNum', '首页数据接入', '0', 157, '1', '2024-05-13 16:15:14', '1', '2024-05-13 16:15:14', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e768febaa23b4c7094bb595f4e5b9cb1', '查询应用api列表', 'sysApplicationApiService', 'queryEntity', '查询应用api列表', '0', 158, '1', '2024-05-14 16:58:30', '1', '2024-05-14 16:58:30', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('430c31e9d2ef44e790eaaefe3b29d999', '日志功能测试', 'integrationTaskLivingDetailsService', 'testLog', NULL, '0', 159, '1', '2024-05-15 15:02:52', '1', '2024-05-15 15:02:52', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fc2d958b759a4dfea5a2522f7497aa9a', '分页查询集成任务日志明细', 'integrationTaskLivingDetailsService', 'queryPage', '分页查询集成任务日志明细', '0', 160, '1', '2024-05-16 11:18:46', '1', '2024-05-16 11:18:46', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('abba8f24fe4e461e90c407a777b7a3bf', '获取集成任务日志明细', 'integrationTaskLivingDetailsService', 'queryEntity', '获取集成任务日志明细', '0', 161, '1', '2024-05-16 11:19:09', '1', '2024-05-16 11:19:09', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ee6b37f4ab1486a8707a45180598615', '集成任务日志明细批量推送', 'integrationTaskLivingDetailsService', 'batchPush', '集成任务日志明细批量推送', '0', 162, '1', '2024-05-16 11:19:42', '1', '2024-05-16 11:19:42', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6651bbe8919a46c4a7cc958f60a86f16', '集成任务日志明细重新推送', 'integrationTaskLivingDetailsService', 'repush', '集成任务日志明细重新推送', '0', 163, '1', '2024-05-16 11:20:08', '1', '2024-05-16 11:20:08', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee68d9a9df3d4f409a622cbc87185326', '集成任务日志明细手工处理', 'integrationTaskLivingDetailsService', 'manualProcessing', '集成任务日志明细手工处理', '0', 164, '1', '2024-05-16 11:20:33', '1', '2024-05-16 11:20:33', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dfe5389ad5b84a1c9ee43d4348ad29d3', '集成任务日志明细删除', 'integrationTaskLivingDetailsService', 'deleteEntity', '集成任务日志明细删除', '0', 165, '1', '2024-05-16 11:20:58', '1', '2024-05-16 11:20:58', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a03ec723c8164286abd26b67e775715c', '获取用户菜单按钮', 'sysButtonConfigService', 'getUserButton', NULL, '0', 166, '1', '2024-05-16 14:13:19', '1', '2024-05-16 14:13:19', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('77f51f10041a4334b3ad4f2dbfc048d6', '查询应用插件列表和api', 'sysApplicationService', 'queryPlugAndApi', NULL, '0', 167, '1', '2024-05-16 14:13:53', '1', '2024-05-16 14:13:53', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c1c12567d813423593a3523fdab7000d', 'groovy执行脚本', 'groovyIntegrationService', 'groovyScriptExecution', 'groovy执行脚本', '0', 168, '1', '2024-05-16 13:12:56', '1', '2024-05-16 13:12:56', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f0c91a270bbd42b0bd2575eeba327f90', '查询报表分类树', 'reportClassifyService', 'queryEntityTree', '查询报表分类树', '0', 169, '1', '2024-05-21 16:40:07', '1', '2024-05-21 16:40:52', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c4ab68b30321484ab1f710284c6e76fa', '保存报表分类', 'reportClassifyService', 'saveEntity', '保存报表分类', '0', 170, '1', '2024-05-21 16:40:39', '1', '2024-05-21 16:40:39', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9681159fa0114c57b678907c4ac99894', '获取报表分类', 'reportClassifyService', 'getEntity', '获取报表分类', '0', 171, '1', '2024-05-21 16:42:10', '1', '2024-05-21 16:42:10', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bb715450cbf247d990fdd8d74068277f', '修改报表分类', 'reportClassifyService', 'updateEntity', '修改报表分类', '0', 172, '1', '2024-05-21 16:42:37', '1', '2024-05-21 16:42:37', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0ca7dc7ebab64407b045785c7fce2dc1', '删除报表分类', 'reportClassifyService', 'deleteEntity', '删除报表分类', '0', 173, '1', '2024-05-21 16:42:57', '1', '2024-05-21 16:42:57', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67a3b788649249f0b567d0ba328700d7', '查询报表管理列表分页', 'reportManageService', 'queryEntityPage', '查询报表管理列表分页', '0', 174, '1', '2024-05-21 16:45:48', '1', '2024-05-21 16:45:48', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fffd8a61e1cf4336bf157b5257e33978', '查询报表管理列表', 'reportManageService', 'queryEntity', '查询报表管理列表', '0', 175, '1', '2024-05-21 16:46:07', '1', '2024-05-21 16:46:07', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d8152a56838f4cb99798d737ac0c8b66', '保存报表管理', 'reportManageService', 'saveEntity', '保存报表管理', '0', 176, '1', '2024-05-21 16:46:25', '1', '2024-05-21 16:46:25', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('04b56cf991114d06931a65f48f38cebc', '查询未配置的报表', 'reportManageService', 'queryReport', '查询未配置的报表', '0', 177, '1', '2024-05-21 16:46:40', '1', '2024-05-21 16:46:40', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9a3503bfbc04910a9087a884607c85c', '查询单个报表', 'reportManageService', 'queryReportEntity', '查询单个报表', '0', 178, '1', '2024-05-21 16:46:54', '1', '2024-05-21 16:46:54', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d5b636e1fa99449fae1c2b53747ebd11', '获取报表管理', 'reportManageService', 'getEntity', '获取报表管理', '0', 179, '1', '2024-05-21 16:47:08', '1', '2024-05-21 16:47:08', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('946ecfec68ac4668906410013c65b6cc', '修改报表管理', 'reportManageService', 'updateEntity', '修改报表管理', '0', 180, '1', '2024-05-21 16:47:22', '1', '2024-05-21 16:47:22', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('00e0a6e632674d6db2d92aca31ff4f41', '删除报表管理', 'reportManageService', 'deleteEntity', '删除报表管理', '0', 181, '1', '2024-05-21 16:47:35', '1', '2024-05-21 16:47:35', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f839a76ac2964901b5b2327bb59d51d2', '启用停用报表管理', 'reportManageService', 'enableDisableEntity', '启用停用报表管理', '0', 182, '1', '2024-05-21 16:47:50', '1', '2024-05-21 16:47:50', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9aaf70c8a3c048d882c83a1a0f2efc08', '报表管理权限查询', 'reportManageService', 'jurisdiction', '报表管理权限查询', '0', 183, '1', '2024-05-21 16:48:04', '1', '2024-05-21 16:48:04', 'Y', '0', '0'); +INSERT INTO sys_interface (id, name, bean_name, interface_name, remark, state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b025b0059ae842f18ba11a88cbbaa817', '保存报表管理权限查询', 'reportManageService', 'saveJurisdiction', '保存报表管理权限查询', '0', 184, '1', '2024-05-21 16:48:18', '1', '2024-05-21 16:48:18', 'Y', '0', '0'); + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.5__init_file.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.5__init_file.sql new file mode 100644 index 00000000..05b912ca --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.5__init_file.sql @@ -0,0 +1,176 @@ + +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-9028591701143699270, '微信图片_20230711162235.png', '-1716870149000049659', 'image/png', 2042683, '附件备注', '/application/2024-05-20/-1716870149000049659', '1', '2024-05-20 10:24:37', '1', '2024-05-20 10:24:37', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8963657365933964266, 'WX20231104-111803.png', '-3725885543519271992', 'image/png', 670741, '附件备注', '/application/2023-11-13/-3725885543519271992', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-11-13 10:22:41', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-11-13 10:22:41', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8916277899496502779, '用户信息.png', '-2774151408323049069', 'image/png', 18646, '附件备注', '/application/2024-07-04/-2774151408323049069', '1', '2024-07-04 15:18:22', '1', '2024-07-04 15:18:22', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8900206555643821885, '用户.png', '-6418779846063341546', 'image/png', 16864, '附件备注', '/application/2024-07-04/-6418779846063341546', '1', '2024-07-04 10:08:41', '1', '2024-07-04 10:08:41', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8889765684097759906, '测.png', '5475249368892589950', 'image/png', 1075043, '附件备注', '/application/2024-05-20/5475249368892589950', '1', '2024-05-20 10:25:55', '1', '2024-05-20 10:25:55', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8756235826150290747, 'pexels-eberhard-grossgasteiger-2310713.jpg', '2014412763827030442', 'image/jpeg', 5144923, '附件备注', '/application/2024-07-01/2014412763827030442', '1', '2024-07-01 11:00:44', '1', '2024-07-01 11:00:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8553083975233485954, '集成任务日志明细.png', '-2364009076014690548', 'image/png', 15862, '附件备注', '/application/2024-07-04/-2364009076014690548', '1', '2024-07-04 13:37:58', '1', '2024-07-04 13:37:58', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8431973904171840168, 'tx.jpeg', '-1914210030975759885', 'image/jpeg', 104597, '附件备注', '/application/2023-10-10/-1914210030975759885', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:29:31', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:29:31', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8312733178249851794, '角色管理.png', '2100416206383891796', 'image/png', 26813, '附件备注', '/application/2024-07-04/2100416206383891796', '1', '2024-07-04 09:53:32', '1', '2024-07-04 09:53:32', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8066173198245605756, '测.png', '-427709981150330669', 'image/png', 1075043, '附件备注', '/application/2024-05-20/-427709981150330669', '1', '2024-05-20 10:25:44', '1', '2024-05-20 10:25:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8012295301722192918, 'letTopBirthday.png', '-8472250700410960934', 'image/png', 31541, '附件备注', '/application/2024-07-01/-8472250700410960934', '1', '2024-07-01 17:10:50', '1', '2024-07-01 17:10:50', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-8011365417535846898, '1697783154483.jpg', '-296442655966605720', 'image/jpeg', 11566, '附件备注', '/application/2023-10-20/-296442655966605720', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:28:24', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:28:24', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-7777602241705521719, '人员管理.png', '-1451414582448599151', 'image/png', 21607, '附件备注', '/application/2024-07-04/-1451414582448599151', '1', '2024-07-04 15:18:09', '1', '2024-07-04 15:18:09', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-7421991978796695038, '数智中台.png', '3828144160056557733', 'image/png', 14687, '附件备注', '/application/2024-05-17/3828144160056557733', '1', '2024-05-17 09:16:59', '1', '2024-05-17 09:16:59', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-7394899086042182241, '测.png', '-4165217650929611535', 'image/png', 1075043, '附件备注', '/application/2024-05-20/-4165217650929611535', '1', '2024-05-20 10:26:46', '1', '2024-05-20 10:26:46', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-7320046872123126758, '角色权限.png', '-52160981938060209', 'image/png', 24757, '附件备注', '/application/2024-07-04/-52160981938060209', '1', '2024-07-04 09:53:16', '1', '2024-07-04 09:53:16', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-7067687854120678697, '人员管理.png', '3012910374587154744', 'image/png', 21156, '附件备注', '/application/2024-07-04/3012910374587154744', '1', '2024-07-04 09:54:03', '1', '2024-07-04 09:54:03', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6728207138358804350, '项目.png', '8145367269517640483', 'image/png', 15064, '附件备注', '/application/2024-07-04/8145367269517640483', '1', '2024-07-04 14:52:53', '1', '2024-07-04 14:52:53', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6607636247925469458, '客户.png', '2795693969328197275', 'image/png', 22203, '附件备注', '/application/2024-07-04/2795693969328197275', '1', '2024-07-04 10:08:33', '1', '2024-07-04 10:08:33', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6595842760771877276, 'WX20231104-111803.png', '-970824487384693464', 'image/png', 670741, '附件备注', '/application/2023-11-13/-970824487384693464', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-11-13 10:22:04', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-11-13 10:22:04', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6582407112425845183, '1717571713476.jpg', '7028702057226059936', 'image/jpeg', 310875, '附件备注', '/application/2024-06-05/7028702057226059936', '1', '2024-06-05 15:15:20', '1', '2024-06-05 15:15:20', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6507264941533674649, 'tx.jpeg', '-5712054625108407266', 'image/jpeg', 104597, '附件备注', '/application/2023-10-11/-5712054625108407266', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:08', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:08', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6466003369385636582, 'Snipaste_2024-07-09_15-10-51.png', '-8581923183000072403', 'image/png', 6467, '附件备注', '/application/2024-07-09/-8581923183000072403', '1', '2024-07-09 15:16:07', '1', '2024-07-09 15:16:07', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6373865527333796779, 'u=2438281177,2644384516&fm=253&fmt=auto&app=138&f=JPEG.webp', '-5628704025443218317', 'image/webp', 4672, '附件备注', '/application/2024-06-26/-5628704025443218317', '1', '2024-06-26 10:32:12', '1', '2024-06-26 10:32:12', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6278215835028403882, '人员.png', '-640210498345284795', 'image/png', 15719, '附件备注', '/application/2024-07-04/-640210498345284795', '1', '2024-07-04 14:52:44', '1', '2024-07-04 14:52:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6129791830182441528, '按钮管理.png', '8115743323225670013', 'image/png', 19656, '附件备注', '/application/2024-07-04/8115743323225670013', '1', '2024-07-04 09:52:00', '1', '2024-07-04 09:52:00', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-6034541283670537998, '集成任务部署.png', '-8426188338952584688', 'image/png', 15741, '附件备注', '/application/2024-07-04/-8426188338952584688', '1', '2024-07-04 15:25:49', '1', '2024-07-04 15:25:49', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5974215045453627195, 'pexels-fabian-wiktor-994605.jpg', '-668056775135639306', 'image/jpeg', 1316625, '附件备注', '/application/2024-07-01/-668056775135639306', '1', '2024-07-01 11:01:34', '1', '2024-07-01 11:01:34', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5887282136279333393, '1697783154483.jpg', '-3943840455457160993', 'image/jpeg', 11566, '附件备注', '/application/2023-10-20/-3943840455457160993', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:29:10', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:29:10', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5757129693515397700, '语雀.png', '-4440574505564680542', 'image/png', 1608, '附件备注', '/application/2023-10-10/-4440574505564680542', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:41:54', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:41:54', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5527727900472816367, '任务设置.png', '-8355486178452354475', 'image/png', 19825, '附件备注', '/application/2024-07-04/-8355486178452354475', '1', '2024-07-04 13:38:56', '1', '2024-07-04 13:38:56', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5478656885444426000, '测.png', '9216496142087900603', 'image/png', 1075043, '附件备注', '/application/2024-05-20/9216496142087900603', '1', '2024-05-20 10:30:15', '1', '2024-05-20 10:30:15', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5456979310443085760, '1.png', '-5629423210967973314', 'image/png', 29, '附件备注', '/application/2024-03-27/-5629423210967973314', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2024-03-27 10:33:18', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2024-03-27 10:33:18', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5343279879697907238, '接口日志.png', '-4644571152424745044', 'image/png', 13037, '附件备注', '/application/2024-07-04/-4644571152424745044', '1', '2024-07-04 10:28:44', '1', '2024-07-04 10:28:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5299758930842399762, 'pexels-fabian-wiktor-994605.jpg', '1940059209781167304', 'image/jpeg', 1316625, '附件备注', '/application/2024-07-01/1940059209781167304', '1', '2024-07-01 11:13:52', '1', '2024-07-01 11:13:52', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5166190851147346438, '纷享销客.png', '-7156947303782136161', 'image/png', 34866, '附件备注', '/application/2024-05-17/-7156947303782136161', '1', '2024-05-17 09:17:38', '1', '2024-05-17 09:17:38', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-5137982092052510973, 'pexels-roberto-nickson-2775196.jpg', '-669305003264161029', 'image/jpeg', 1727046, '附件备注', '/application/2024-07-01/-669305003264161029', '1', '2024-07-01 11:12:25', '1', '2024-07-01 11:12:25', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4989079828753399804, '角色管理.png', '8419739852180245021', 'image/png', 20694, '附件备注', '/application/2024-07-04/8419739852180245021', '1', '2024-07-04 15:18:01', '1', '2024-07-04 15:18:01', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4756804544105066674, '分贝通.jpg', '8814351165973218085', 'image/jpeg', 78328, '附件备注', '/application/2024-05-17/8814351165973218085', '1', '2024-05-17 09:38:24', '1', '2024-05-17 09:38:24', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4732483675668853459, '供应商.png', '-3785761746158793332', 'image/png', 12518, '附件备注', '/application/2024-07-10/-3785761746158793332', '1', '2024-07-10 14:31:15', '1', '2024-07-10 14:31:15', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4566907239285701244, '组织机构.png', '-1122033172705621084', 'image/png', 13778, '附件备注', '/application/2024-07-04/-1122033172705621084', '1', '2024-07-04 09:54:53', '1', '2024-07-04 09:54:53', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4458116979128777160, 'pexels-eberhard-grossgasteiger-844297.jpg', '-7272840290138766214', 'image/jpeg', 298662, '附件备注', '/application/2024-07-01/-7272840290138766214', '1', '2024-07-01 11:59:14', '1', '2024-07-01 11:59:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4330406226434243593, '旺店通.png', '3230899200607290', 'image/png', 142583, '附件备注', '/application/2024-05-17/3230899200607290', '1', '2024-05-17 09:17:11', '1', '2024-05-17 09:17:11', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4201216971048270045, '新建文本文档.txt', '-7497692394140712841', 'text/plain', 10, '附件备注', '/application/2024-05-20/-7497692394140712841', '1', '2024-05-20 10:32:08', '1', '2024-05-20 10:32:08', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-4113861618581551165, '测试主数据流程.png', '5246194158391411612', 'image/png', 17126, '附件备注', '/application/2024-07-04/5246194158391411612', '1', '2024-07-04 14:53:21', '1', '2024-07-04 14:53:21', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3913227078508002174, '1697783463064.jpg', '726403430987089148', 'image/jpeg', 7608, '附件备注', '/application/2023-10-20/726403430987089148', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:31:14', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:31:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3835611835756755777, '菜单管理.png', '1092920638884826314', 'image/png', 25797, '附件备注', '/application/2024-07-04/1092920638884826314', '1', '2024-07-04 09:52:09', '1', '2024-07-04 09:52:09', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3682007984364762734, '易快报.png', '-1687821855290013893', 'image/png', 9316, '附件备注', '/application/2023-10-10/-1687821855290013893', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:27:33', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:27:33', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3653692370669975482, 'u9c.png', '5074599907065088244', 'image/png', 26517, '附件备注', '/application/2024-05-17/5074599907065088244', '1', '2024-05-17 09:16:41', '1', '2024-05-17 09:16:41', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3625825383614953252, '默认.png', '5419375121386523660', 'image/png', 20465, '附件备注', '/application/2024-07-10/5419375121386523660', '1', '2024-07-10 14:36:41', '1', '2024-07-10 14:36:41', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3496079048736816178, '用户信息.png', '3472585969436215272', 'image/png', 21446, '附件备注', '/application/2024-07-04/3472585969436215272', '1', '2024-07-04 09:54:33', '1', '2024-07-04 09:54:33', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-3263750539482020551, '1717571657986.jpg', '-8005932721886834908', 'image/jpeg', 503652, '附件备注', '/application/2024-06-05/-8005932721886834908', '1', '2024-06-05 15:14:34', '1', '2024-06-05 15:14:34', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2892170219507726319, '应用设置.png', '2283810935985881862', 'image/png', 21691, '附件备注', '/application/2024-07-04/2283810935985881862', '1', '2024-07-04 10:28:32', '1', '2024-07-04 10:28:32', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2791696793814544641, '睿本云.png', '4476877312536300547', 'image/png', 39326, '附件备注', '/application/2024-05-17/4476877312536300547', '1', '2024-05-17 09:17:26', '1', '2024-05-17 09:17:26', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2770901934018247648, 'u8c.png', '-6592553237622337728', 'image/png', 11896, '附件备注', '/application/2024-05-17/-6592553237622337728', '1', '2024-05-17 09:16:01', '1', '2024-05-17 09:16:01', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2556750216458186827, '测.png', '-6714644604595976629', 'image/png', 1075043, '附件备注', '/application/2024-06-26/-6714644604595976629', '1', '2024-06-26 10:07:57', '1', '2024-06-26 10:07:57', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2436451624467804496, '客商.jpg', '-119471733111697860', 'image/jpeg', 12915, '附件备注', '/application/2024-05-24/-119471733111697860', '1', '2024-05-24 16:09:47', '1', '2024-05-24 16:09:47', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-2088125651074531013, 'BIP.png', '-1594220300384581522', 'image/png', 21917, '附件备注', '/application/2024-05-17/-1594220300384581522', '1', '2024-05-17 09:18:06', '1', '2024-05-17 09:18:06', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1928639021275134342, '集成任务日志明细.png', '-4005225956238079331', 'image/png', 15268, '附件备注', '/application/2024-07-04/-4005225956238079331', '1', '2024-07-04 15:26:24', '1', '2024-07-04 15:26:24', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1770258138146518279, '嵌入式测试.png', '-88050533563873915', 'image/png', 14357, '附件备注', '/application/2024-07-04/-88050533563873915', '1', '2024-07-04 14:22:54', '1', '2024-07-04 14:22:54', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1324082385383109713, '嵌入式测试.png', '-3845715421485052852', 'image/png', 14357, '附件备注', '/application/2024-07-11/-3845715421485052852', '1', '2024-07-11 10:53:43', '1', '2024-07-11 10:53:43', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1139483645151067587, '主数据添加.png', '-2085606626465659504', 'image/png', 23919, '附件备注', '/application/2024-07-04/-2085606626465659504', '1', '2024-07-04 14:14:24', '1', '2024-07-04 14:14:24', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1118673166822191856, '物料.png', '-207844348485220630', 'image/png', 22080, '附件备注', '/application/2024-07-10/-207844348485220630', '1', '2024-07-10 14:32:26', '1', '2024-07-10 14:32:26', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-1076010215913273792, 'pexels-roberto-nickson-2775196.jpg', '4987091290111886933', 'image/jpeg', 1727046, '附件备注', '/application/2024-07-01/4987091290111886933', '1', '2024-07-01 11:03:01', '1', '2024-07-01 11:03:01', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-787759178487086889, '按钮管理.png', '-6175055388505324178', 'image/png', 21006, '附件备注', '/application/2024-07-04/-6175055388505324178', '1', '2024-07-04 15:19:44', '1', '2024-07-04 15:19:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-654050188193413581, '用户权限.png', '7926771025882270793', 'image/png', 23329, '附件备注', '/application/2024-07-04/7926771025882270793', '1', '2024-07-04 15:18:42', '1', '2024-07-04 15:18:42', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-605338786563866516, 'u8c.png', '6088569020579138832', 'image/png', 11896, '附件备注', '/application/2024-05-17/6088569020579138832', '1', '2024-05-17 09:15:49', '1', '2024-05-17 09:15:49', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-592021584887266284, '编组 8@3x.png', '206877511978143434', 'image/png', 283378, '附件备注', '/application/2024-07-02/206877511978143434', '1', '2024-07-02 08:52:52', '1', '2024-07-02 08:52:52', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-586432939425052127, 'pexels-eberhard-grossgasteiger-1287145.jpg', '-7268134389189688655', 'image/jpeg', 953481, '附件备注', '/application/2024-07-01/-7268134389189688655', '1', '2024-07-01 11:14:58', '1', '2024-07-01 11:14:58', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-496039402364975700, '组织.png', '-6639378294277779487', 'image/png', 14317, '附件备注', '/application/2024-07-10/-6639378294277779487', '1', '2024-07-10 14:33:35', '1', '2024-07-10 14:33:35', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-452046766420308580, 'pexels-eberhard-grossgasteiger-2310713.jpg', '-3342528751098838316', 'image/jpeg', 5144923, '附件备注', '/application/2024-07-01/-3342528751098838316', '1', '2024-07-01 13:35:03', '1', '2024-07-01 13:35:03', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-396865107734346228, '测.png', '-5841977586663537412', 'image/png', 1075043, '附件备注', '/application/2024-06-28/-5841977586663537412', '1', '2024-06-28 08:46:45', '1', '2024-06-28 08:46:45', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-311440057193706651, 'u8c.png', '-175837317162318917', 'image/png', 11896, '附件备注', '/application/2024-05-17/-175837317162318917', '1', '2024-05-17 09:16:27', '1', '2024-05-17 09:16:27', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-256048490069013451, '客户.png', '-1413356341772926549', 'image/png', 22203, '附件备注', '/application/2024-07-10/-1413356341772926549', '1', '2024-07-10 14:36:07', '1', '2024-07-10 14:36:07', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-218852364998393496, '档案对照.png', '-5239416137150086877', 'image/png', 17074, '附件备注', '/application/2024-07-04/-5239416137150086877', '1', '2024-07-04 14:35:19', '1', '2024-07-04 14:35:19', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-217601803969409117, '组织架构.png', '2615087964314355790', 'image/png', 14859, '附件备注', '/application/2024-07-04/2615087964314355790', '1', '2024-07-04 15:21:04', '1', '2024-07-04 15:21:04', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-130710338222210555, '集成任务监控.png', '-642100284308175949', 'image/png', 17311, '附件备注', '/application/2024-07-04/-642100284308175949', '1', '2024-07-04 15:26:13', '1', '2024-07-04 15:26:13', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-104895094851416098, 'pexels-roberto-nickson-2486168.jpg', '-6528710020401378692', 'image/jpeg', 2228699, '附件备注', '/application/2024-07-01/-6528710020401378692', '1', '2024-07-01 11:17:14', '1', '2024-07-01 11:17:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (-23762477068892867, 'pexels-eberhard-grossgasteiger-2310713.jpg', '1887691187866390295', 'image/jpeg', 5144923, '附件备注', '/application/2024-07-01/1887691187866390295', '1', '2024-07-01 11:16:49', '1', '2024-07-01 11:16:49', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (51421024809862282, '新建文本文档.txt', '-3559500444872913435', 'text/plain', 10, '附件备注', '/application/2024-05-20/-3559500444872913435', '1', '2024-05-20 10:32:14', '1', '2024-05-20 10:32:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (80494007427286948, '组织.png', '-3855787336361358079', 'image/png', 16469, '附件备注', '/application/2024-07-04/-3855787336361358079', '1', '2024-07-04 10:08:25', '1', '2024-07-04 10:08:25', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (113065279343643259, 'pexels-eberhard-grossgasteiger-1287145.jpg', '-8007064973513571327', 'image/jpeg', 953481, '附件备注', '/application/2024-07-01/-8007064973513571327', '1', '2024-07-01 13:37:02', '1', '2024-07-01 13:37:02', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (316171623001442208, 'u8.png', '51758439817233568', 'image/png', 37617, '附件备注', '/application/2024-05-17/51758439817233568', '1', '2024-05-17 09:15:31', '1', '2024-05-17 09:15:31', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (384099124612581402, 'u8.png', '1157177815754557805', 'image/png', 37617, '附件备注', '/application/2024-05-17/1157177815754557805', '1', '2024-05-17 09:18:59', '1', '2024-05-17 09:18:59', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (483094675965299036, '组织架构.png', '-4868482990672296199', 'image/png', 14706, '附件备注', '/application/2024-07-04/-4868482990672296199', '1', '2024-07-04 15:18:32', '1', '2024-07-04 15:18:32', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (585183321051058164, '下载.jpg', '-7426058657191015796', 'image/jpeg', 14357, '附件备注', '/application/2024-07-11/-7426058657191015796', '1', '2024-07-11 11:47:35', '1', '2024-07-11 11:47:35', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (790653339325384787, '测.png', '7150824231487686427', 'image/png', 1075043, '附件备注', '/application/2024-06-26/7150824231487686427', '1', '2024-06-26 10:05:28', '1', '2024-06-26 10:05:28', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (851194943910595937, '测试.png', '-8373000739556342523', 'image/png', 435, '附件备注', '/application/2024-05-20/-8373000739556342523', '1', '2024-05-20 10:24:31', '1', '2024-05-20 10:24:31', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (935306198684419921, 'pexels-eberhard-grossgasteiger-2310713.jpg', '-7053889315781587330', 'image/jpeg', 5144923, '附件备注', '/application/2024-07-01/-7053889315781587330', '1', '2024-07-01 14:06:40', '1', '2024-07-01 14:06:40', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1038311790626883068, '用2023.3安.jpg', '-5273136513605416681', 'image/jpeg', 5608, '附件备注', '/application/2023-10-10/-5273136513605416681', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:32:19', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:32:19', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1190466157960907823, '接口管理.png', '4310063781161028584', 'image/png', 20661, '附件备注', '/application/2024-07-04/4310063781161028584', '1', '2024-07-04 15:19:02', '1', '2024-07-04 15:19:02', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1211613279442322103, '编组 12.png', '8263462477668240702', 'image/png', 1150, '附件备注', '/application/2024-07-01/8263462477668240702', '1', '2024-07-01 10:49:14', '1', '2024-07-01 10:49:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1268606159526445274, '项目.png', '-3983599542944116961', 'image/png', 13453, '附件备注', '/application/2024-07-10/-3983599542944116961', '1', '2024-07-10 14:24:05', '1', '2024-07-10 14:24:05', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1344702842992873024, '泛微.png', '2609175243117053637', 'image/png', 9497, '附件备注', '/application/2024-05-17/2609175243117053637', '1', '2024-05-17 09:28:17', '1', '2024-05-17 09:28:17', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1416839922333927770, '应用中心.png', '8827306738818894509', 'image/png', 20041, '附件备注', '/application/2024-07-04/8827306738818894509', '1', '2024-07-04 10:27:40', '1', '2024-07-04 10:27:40', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1433178867571509494, 'pexels-eberhard-grossgasteiger-844297.jpg', '1372886289454155944', 'image/jpeg', 298662, '附件备注', '/application/2024-07-01/1372886289454155944', '1', '2024-07-01 10:55:05', '1', '2024-07-01 10:55:05', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1489911612727182633, '应用新增.png', '-6352244617326411397', 'image/png', 14515, '附件备注', '/application/2024-07-04/-6352244617326411397', '1', '2024-07-04 10:28:38', '1', '2024-07-04 10:28:38', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1520611631173028937, 'sprites.png', '-8714158213481413665', 'image/png', 1176, '附件备注', '/application/2023-10-23/-8714158213481413665', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-23 08:53:50', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-23 08:53:50', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1653664976964371217, '插件参数设置.png', '3984910514252630080', 'image/png', 17091, '附件备注', '/application/2024-07-04/3984910514252630080', '1', '2024-07-04 13:48:11', '1', '2024-07-04 13:48:11', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1656714501669669824, '回归测试.png', '5156596843063889431', 'image/png', 23274, '附件备注', '/application/2024-07-04/5156596843063889431', '1', '2024-07-04 14:52:16', '1', '2024-07-04 14:52:16', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1873053712371958801, '编组 12.png', '5259351102608131414', 'image/png', 1150, '附件备注', '/application/2024-07-01/5259351102608131414', '1', '2024-07-01 11:24:38', '1', '2024-07-01 11:24:38', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1919757549827541330, '编组 12.png', '-7969723862143712802', 'image/png', 1150, '附件备注', '/application/2024-07-01/-7969723862143712802', '1', '2024-07-01 10:45:19', '1', '2024-07-01 10:45:19', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (1984791001939854535, '集成前台任务.png', '999994740825935034', 'image/png', 15488, '附件备注', '/application/2024-07-04/999994740825935034', '1', '2024-07-04 13:48:25', '1', '2024-07-04 13:48:25', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2014494600032504324, '测.png', '5128861755641449876', 'image/png', 1075043, '附件备注', '/application/2024-06-29/5128861755641449876', '1', '2024-06-29 15:31:36', '1', '2024-06-29 15:31:36', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2026229842966498083, '1a19f51133a8a1b394936b08d895bba.png', '-3706180044146390552', 'image/png', 15191, '附件备注', '/application/2023-10-19/-3706180044146390552', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-19 10:58:08', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-19 10:58:08', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2043867787885429109, '日志查看.png', '-4480854615516100533', 'image/png', 14841, '附件备注', '/application/2024-07-04/-4480854615516100533', '1', '2024-07-04 13:38:06', '1', '2024-07-04 13:38:06', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2074980835702424704, '猪猪.png', '-7754546600097726212', 'image/png', 27764, '附件备注', '/application/2024-07-08/-7754546600097726212', '1', '2024-07-08 11:13:42', '1', '2024-07-08 11:13:42', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2319256122443123916, '数据源管理.png', '2150687353120114936', 'image/png', 22337, '附件备注', '/application/2024-07-04/2150687353120114936', '1', '2024-07-04 15:26:00', '1', '2024-07-04 15:26:00', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2456335005338717571, '测.png', '-6664218145329298783', 'image/png', 1075043, '附件备注', '/application/2024-06-26/-6664218145329298783', '1', '2024-06-26 10:04:15', '1', '2024-06-26 10:04:15', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2619305377956185190, '致远OA.jpg', '7630964215511075727', 'image/jpeg', 8988, '附件备注', '/application/2024-05-17/7630964215511075727', '1', '2024-05-17 09:36:02', '1', '2024-05-17 09:36:02', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2796025808914499623, '日志查看.png', '7098797396712440266', 'image/png', 14550, '附件备注', '/application/2024-07-04/7098797396712440266', '1', '2024-07-04 15:26:41', '1', '2024-07-04 15:26:41', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2854025192590689151, 'ff4b7f9f8b016c23ea3129b94f904e7.png', '5978752186723224101', 'image/png', 4551, '附件备注', '/application/2023-10-19/5978752186723224101', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-19 16:58:03', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-19 16:58:03', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (2960241180358232576, 'tx.jpeg', '-1482495030406919475', 'image/jpeg', 104597, '附件备注', '/application/2023-10-11/-1482495030406919475', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:12', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:12', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3031902632443857509, 'tx.jpeg', '5626192002274903919', 'image/jpeg', 104597, '附件备注', '/application/2023-10-11/5626192002274903919', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:14', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3305719400944912240, 'tx.jpeg', '3725999151632566879', 'image/jpeg', 104597, '附件备注', '/application/2023-10-11/3725999151632566879', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:16', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:16', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3352266141073952132, 'pexels-eberhard-grossgasteiger-1287145.jpg', '6199167536969829466', 'image/jpeg', 953481, '附件备注', '/application/2024-07-01/6199167536969829466', '1', '2024-07-01 11:23:01', '1', '2024-07-01 11:23:01', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3355665211076595348, 'Mac_book_pro_retina057.jpg', '-5664172055087267082', 'image/jpeg', 283014, '附件备注', '/application/2024-04-16/-5664172055087267082', '1', '2024-04-16 16:11:56', '1', '2024-04-16 16:11:56', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3386068725253425374, '人员类别.png', '7043191546178322567', 'image/png', 14945, '附件备注', '/application/2024-07-10/7043191546178322567', '1', '2024-07-10 14:31:01', '1', '2024-07-10 14:31:01', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3704207675478198964, '用户.png', '7336824837028069956', 'image/png', 15312, '附件备注', '/application/2024-07-10/7336824837028069956', '1', '2024-07-10 14:25:45', '1', '2024-07-10 14:25:45', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (3776529331652349515, '用户权限.png', '-5173005685258237815', 'image/png', 22218, '附件备注', '/application/2024-07-04/-5173005685258237815', '1', '2024-07-04 09:52:52', '1', '2024-07-04 09:52:52', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4004423913990212002, 'fileUpload.jpg', '2494477193097530312', 'image/jpeg', 15191, '附件备注', '/application/2023-10-20/2494477193097530312', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 09:12:42', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 09:12:42', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4037219818581150989, '致远OA.jpg', '-3061200708149097767', 'image/jpeg', 8988, '附件备注', '/application/2024-06-05/-3061200708149097767', '1', '2024-06-05 08:38:30', '1', '2024-06-05 08:38:30', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4263122186875913919, '默认.png', '1102900828067742638', 'image/png', 20465, '附件备注', '/application/2024-07-10/1102900828067742638', '1', '2024-07-10 10:14:17', '1', '2024-07-10 10:14:17', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4522505755255719521, '接口日志.png', '5371770180671653471', 'image/png', 13037, '附件备注', '/application/2024-07-04/5371770180671653471', '1', '2024-07-04 14:35:47', '1', '2024-07-04 14:35:47', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4530106129966909860, '用户信息.png', '2357481932805851692', 'image/png', 21446, '附件备注', '/application/2024-07-04/2357481932805851692', '1', '2024-07-04 09:54:13', '1', '2024-07-04 09:54:13', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4532749125029939003, 'pexels-eberhard-grossgasteiger-844297.jpg', '-8756343341826553075', 'image/jpeg', 298662, '附件备注', '/application/2024-07-01/-8756343341826553075', '1', '2024-07-01 10:46:55', '1', '2024-07-01 10:46:55', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4574520644566598568, '易快报.png', '6575908398763363032', 'image/png', 9316, '附件备注', '/application/2023-10-10/6575908398763363032', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:42:10', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:42:10', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4592551509526331675, '主数据配置.png', '-5502398679874452149', 'image/png', 28363, '附件备注', '/application/2024-07-04/-5502398679874452149', '1', '2024-07-04 10:08:14', '1', '2024-07-04 10:08:14', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4634259854812987666, '三沟玉.jpg', '-7145038435772117347', 'image/jpeg', 78880, '附件备注', '/application/2024-07-06/-7145038435772117347', '1', '2024-07-06 10:26:16', '1', '2024-07-06 10:26:16', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4668961960201636147, '角色权限.png', '1149850936933567312', 'image/png', 26067, '附件备注', '/application/2024-07-04/1149850936933567312', '1', '2024-07-04 15:18:50', '1', '2024-07-04 15:18:50', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4669607202011956490, '实例设置.png', '7680088709163599504', 'image/png', 13517, '附件备注', '/application/2024-07-04/7680088709163599504', '1', '2024-07-04 13:38:25', '1', '2024-07-04 13:38:25', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4762289394461459349, '集成任务日志.png', '-2878813149287724413', 'image/png', 13266, '附件备注', '/application/2024-07-04/-2878813149287724413', '1', '2024-07-04 15:26:31', '1', '2024-07-04 15:26:31', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4803849883327348906, '猪猪.png', '7755279661180341268', 'image/png', 27764, '附件备注', '/application/2024-07-09/7755279661180341268', '1', '2024-07-09 13:55:32', '1', '2024-07-09 13:55:32', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (4976674742449292373, '报表管理.png', '8476663753019901558', 'image/png', 21472, '附件备注', '/application/2024-07-04/8476663753019901558', '1', '2024-07-04 14:35:11', '1', '2024-07-04 14:35:11', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5027950255690039374, '测试数据.png', '-3753313862787841185', 'image/png', 25656, '附件备注', '/application/2024-07-04/-3753313862787841185', '1', '2024-07-04 14:52:28', '1', '2024-07-04 14:52:28', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5047882909174286574, '集成任务监控.png', '-3095722558781438612', 'image/png', 18035, '附件备注', '/application/2024-07-04/-3095722558781438612', '1', '2024-07-04 13:37:47', '1', '2024-07-04 13:37:47', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5050451005206776890, '菜单管理.png', '7306688232075447264', 'image/png', 17503, '附件备注', '/application/2024-07-04/7306688232075447264', '1', '2024-07-04 15:19:39', '1', '2024-07-04 15:19:39', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5074544054751215762, 'pexels-fabian-wiktor-994605.jpg', '841918374953634973', 'image/jpeg', 1316625, '附件备注', '/application/2024-07-01/841918374953634973', '1', '2024-07-01 10:55:37', '1', '2024-07-01 10:55:37', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5129879884394350576, '测.png', '-6509779234786226955', 'image/png', 1075043, '附件备注', '/application/2024-06-26/-6509779234786226955', '1', '2024-06-26 10:05:19', '1', '2024-06-26 10:05:19', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5142338633471905620, 'NC.png', '-5289204886154950250', 'image/png', 7668, '附件备注', '/application/2024-05-17/-5289204886154950250', '1', '2024-05-17 09:27:37', '1', '2024-05-17 09:27:37', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5195426072247356303, '报表设计.png', '3677499744533106646', 'image/png', 20047, '附件备注', '/application/2024-07-04/3677499744533106646', '1', '2024-07-04 14:35:04', '1', '2024-07-04 14:35:04', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5403510979233269121, '主数据设置.png', '6574029982317760230', 'image/png', 31264, '附件备注', '/application/2024-07-04/6574029982317760230', '1', '2024-07-04 14:14:31', '1', '2024-07-04 14:14:31', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5686392025372116661, 'pexels-roberto-nickson-2486168.jpg', '-4729522311480194410', 'image/jpeg', 2228699, '附件备注', '/application/2024-07-01/-4729522311480194410', '1', '2024-07-01 13:45:22', '1', '2024-07-01 13:45:22', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5751831597941672974, '实例设置.png', '-7127311104547533699', 'image/png', 13469, '附件备注', '/application/2024-07-04/-7127311104547533699', '1', '2024-07-04 15:26:55', '1', '2024-07-04 15:26:55', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5914803768364845971, 'u8c.png', '4331229442998815074', 'image/png', 11896, '附件备注', '/application/2024-05-17/4331229442998815074', '1', '2024-05-17 09:16:16', '1', '2024-05-17 09:16:16', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (5997255158250751685, '用2023.3安.jpg', '-5859446095843079623', 'image/jpeg', 5608, '附件备注', '/application/2023-10-10/-5859446095843079623', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:36:36', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-10 17:36:36', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (6094564824165073547, 'pexels-anna-shvets-4014919.jpg', '-1800526270189450335', 'image/jpeg', 7651403, '附件备注', '/application/2024-07-01/-1800526270189450335', '1', '2024-07-01 11:15:44', '1', '2024-07-01 11:15:44', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (6490136550576572206, '测.png', '6918491157023770463', 'image/png', 1075043, '附件备注', '/application/2024-05-20/6918491157023770463', '1', '2024-05-20 10:26:54', '1', '2024-05-20 10:26:54', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (6828266762709060720, 'wallhaven-zyyx1o.jpg', '-7857684712925803121', 'image/jpeg', 1983161, '附件备注', '/application/2024-06-26/-7857684712925803121', '1', '2024-06-26 10:32:23', '1', '2024-06-26 10:32:23', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7071306410796534357, '编组 12.png', '1996438419554322214', 'image/png', 1150, '附件备注', '/application/2024-07-01/1996438419554322214', '1', '2024-07-01 10:48:52', '1', '2024-07-01 10:48:52', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7142431720611400502, '测.png', '7952620694161214147', 'image/png', 1075043, '附件备注', '/application/2024-06-28/7952620694161214147', '1', '2024-06-28 08:46:04', '1', '2024-06-28 08:46:04', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7357228942477903797, 'tx.jpeg', '-8693392110144044983', 'image/jpeg', 104597, '附件备注', '/application/2023-10-11/-8693392110144044983', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:19', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-11 08:54:19', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7525879408276949278, 'u8.png', '-5382183502186459798', 'image/png', 37617, '附件备注', '/application/2024-05-24/-5382183502186459798', '1', '2024-05-24 15:52:56', '1', '2024-05-24 15:52:56', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7529968682391846914, '集成任务日志.png', '6898957599079219276', 'image/png', 13478, '附件备注', '/application/2024-07-04/6898957599079219276', '1', '2024-07-04 13:37:23', '1', '2024-07-04 13:37:23', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7534574221705429264, '测试数据.png', '-4514426643943832871', 'image/png', 25656, '附件备注', '/application/2024-07-04/-4514426643943832871', '1', '2024-07-04 14:52:36', '1', '2024-07-04 14:52:36', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7571797593682821659, 'pexels-eberhard-grossgasteiger-2310713.jpg', '8110979977858402619', 'image/jpeg', 5144923, '附件备注', '/application/2024-07-01/8110979977858402619', '1', '2024-07-01 13:36:35', '1', '2024-07-01 13:36:35', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (7637327874047952172, 'pexels-ton-souza-18277105.jpg', '5815918067128682437', 'image/jpeg', 3617890, '附件备注', '/application/2024-07-01/5815918067128682437', '1', '2024-07-01 11:09:40', '1', '2024-07-01 11:09:40', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8301502017841088650, '编组 12.png', '-2300433603847172694', 'image/png', 1150, '附件备注', '/application/2024-07-01/-2300433603847172694', '1', '2024-07-01 11:24:52', '1', '2024-07-01 11:24:52', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8314701644286479302, 'Mac_book_pro_retina057.jpg', '-8854157616912970516', 'image/jpeg', 283014, '附件备注', '/application/2024-06-24/-8854157616912970516', '1', '2024-06-24 15:04:11', '1', '2024-06-24 15:04:11', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8346215197184182399, '测.png', '-2613091494048478646', 'image/png', 1075043, '附件备注', '/application/2024-06-26/-2613091494048478646', '1', '2024-06-26 10:05:38', '1', '2024-06-26 10:05:38', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8406482051474801134, 'pexels-fabian-wiktor-994605.jpg', '533002448480587288', 'image/jpeg', 1316625, '附件备注', '/application/2024-07-01/533002448480587288', '1', '2024-07-01 14:06:54', '1', '2024-07-01 14:06:54', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8480953296824125937, 'pexels-anna-shvets-4014919.jpg', '-3871336515871487105', 'image/jpeg', 7651403, '附件备注', '/application/2024-07-01/-3871336515871487105', '1', '2024-07-01 11:18:00', '1', '2024-07-01 11:18:00', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8524855161201509039, '任务设置.png', '6728387801157355295', 'image/png', 19023, '附件备注', '/application/2024-07-04/6728387801157355295', '1', '2024-07-04 15:26:48', '1', '2024-07-04 15:26:48', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8591890020185818789, '银行.png', '3834073199518436713', 'image/png', 18134, '附件备注', '/application/2024-07-10/3834073199518436713', '1', '2024-07-10 14:35:48', '1', '2024-07-10 14:35:48', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8673999735704338432, '银行.png', '-8004696806321401902', 'image/png', 18134, '附件备注', '/application/2024-07-04/-8004696806321401902', '1', '2024-07-04 14:53:05', '1', '2024-07-04 14:53:05', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8674400091786530616, '优时ERP.png', '5582075243135519568', 'image/png', 3199, '附件备注', '/application/2024-05-17/5582075243135519568', '1', '2024-05-17 09:34:56', '1', '2024-05-17 09:34:56', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8679675180105289490, '1697783572415.jpg', '-8512565471598262833', 'image/jpeg', 12102, '附件备注', '/application/2023-10-20/-8512565471598262833', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:32:55', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 14:32:55', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8758144563624233695, '主数据设置.png', '4814898301966567806', 'image/png', 33745, '附件备注', '/application/2024-07-04/4814898301966567806', '1', '2024-07-04 15:27:07', '1', '2024-07-04 15:27:07', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (8940942557077390274, '新建文本文档.txt', '-2145207996823287857', 'text/plain', 10, '附件备注', '/application/2024-05-20/-2145207996823287857', '1', '2024-05-20 10:33:37', '1', '2024-05-20 10:33:37', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (9152701453356778619, '1.png', '124846052502752657', 'image/png', 29, '附件备注', '/application/2024-03-27/124846052502752657', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2024-03-27 10:33:18', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2024-03-27 10:33:18', 'Y'); +INSERT INTO sys_file (id, filename, filesavename, type, file_size, description, filepath, create_user_id, create_time, modify_user_id, modify_time, sts) VALUES (9217313764294738344, '集成任务部署.png', '-2471470808405620684', 'image/png', 16979, '附件备注', '/application/2024-07-04/-2471470808405620684', '1', '2024-07-04 13:37:15', '1', '2024-07-04 13:37:15', 'Y'); + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.6__init_mdm_table.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.6__init_mdm_table.sql new file mode 100644 index 00000000..b171300a --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.6__init_mdm_table.sql @@ -0,0 +1,694 @@ + + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for mdm_org +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_org`; +CREATE TABLE `mdm_org` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `org_code` varchar(255) DEFAULT NULL COMMENT '组织编码', + `org_name` varchar(255) DEFAULT NULL COMMENT '组织名称', + `org_address` varchar(255) DEFAULT NULL COMMENT '地址', + `org_countryzone` varchar(255) DEFAULT NULL COMMENT '国家地区', + `org_innercode` varchar(255) DEFAULT NULL COMMENT '内部编码', + `org_memo` varchar(255) DEFAULT NULL COMMENT '说明', + `org_mnecode` varchar(255) DEFAULT NULL COMMENT '助记码', + `org_ncindustry` varchar(255) DEFAULT NULL COMMENT '所属行业', + `org_fatherorg` varchar(255) DEFAULT NULL COMMENT '上级业务单元', + `org_principal` varchar(255) DEFAULT NULL COMMENT '负责人', + `org_tel` varchar(255) DEFAULT NULL COMMENT '电话', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织'; + + + +-- ---------------------------- +-- Table structure for mdm_org_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_org_option_log`; +CREATE TABLE `mdm_org_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织操作日志'; + + +-- ---------------------------- +-- Table structure for mdm_org_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_org_send_log`; +CREATE TABLE `mdm_org_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='组织下发日志'; +-- ---------------------------- +-- Table structure for mdm_project +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_project`; +CREATE TABLE `mdm_project` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `project_code` varchar(255) DEFAULT NULL COMMENT '项目编码', + `project_name` varchar(255) DEFAULT NULL COMMENT '项目名称', + `project_bill_type` varchar(255) DEFAULT NULL COMMENT '单据类型', + `project_memo` varchar(255) DEFAULT NULL COMMENT '备注', + `project_currtype` varchar(255) DEFAULT NULL COMMENT '币种', + `project_dutier` varchar(255) DEFAULT NULL COMMENT '责任人', + `project_duty_dept` varchar(255) DEFAULT NULL COMMENT '责任部门', + `project_org` varchar(255) DEFAULT NULL COMMENT '管理组织', + `project_parentpro` varchar(255) DEFAULT NULL COMMENT '父项目', + `project_sh_name` varchar(255) DEFAULT NULL COMMENT '项目简称', + `data_id` varchar(125) DEFAULT NULL COMMENT '三方业务主键', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目档案'; + + +-- ---------------------------- +-- Table structure for mdm_project_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_project_option_log`; +CREATE TABLE `mdm_project_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目档案操作日志'; + +-- ---------------------------- +-- Table structure for mdm_project_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_project_send_log`; +CREATE TABLE `mdm_project_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目档案下发日志'; +-- ---------------------------- +-- Table structure for mdm_user +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_user`; +CREATE TABLE `mdm_user` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `user_name` varchar(255) DEFAULT NULL COMMENT '用户名称', + `user_code` varchar(255) DEFAULT NULL COMMENT '用户编码', + `user_password` varchar(255) DEFAULT NULL COMMENT '用户密码', + `pwdlevelcode` varchar(255) DEFAULT NULL COMMENT '密码安全级别', + `pwdparam` varchar(255) DEFAULT NULL COMMENT '密码参数', + `user_note` varchar(255) DEFAULT NULL COMMENT '备注', + `abledate` varchar(255) DEFAULT NULL COMMENT '生效日期', + `disabledate` varchar(255) DEFAULT NULL COMMENT '失效日期', + `islocked` varchar(255) DEFAULT NULL COMMENT '锁定', + `user_type` varchar(255) DEFAULT NULL COMMENT '用户类型', + `base_doc_type` varchar(255) DEFAULT NULL COMMENT '身份类型', + `pk_base_doc` varchar(255) DEFAULT NULL COMMENT '身份', + `identityverifycode` varchar(255) DEFAULT NULL COMMENT '认证类型', + `pk_org` varchar(255) DEFAULT NULL COMMENT '所属组织', + `format` varchar(255) DEFAULT NULL COMMENT '数据格式', + `isca` varchar(255) DEFAULT NULL COMMENT 'CA用户', + `enablestate` varchar(255) DEFAULT NULL COMMENT '启用状态', + `contentlang` varchar(255) DEFAULT NULL COMMENT '内容语种', + `user_code_q` varchar(255) DEFAULT NULL COMMENT '用户编码', + `data_id` varchar(100) DEFAULT NULL COMMENT 'data_id', + `mobile` varchar(255) DEFAULT NULL COMMENT '电话', + `gender` varchar(255) DEFAULT NULL COMMENT '性别', + `login_name` varchar(255) DEFAULT NULL COMMENT '登录名', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户档案'; + +-- ---------------------------- +-- Table structure for mdm_user_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_user_option_log`; +CREATE TABLE `mdm_user_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户档案操作日志'; +-- ---------------------------- +-- Table structure for mdm_user_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_user_send_log`; +CREATE TABLE `mdm_user_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户档案下发日志'; +-- ---------------------------- +-- Table structure for mdm_customer +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_customer`; +CREATE TABLE `mdm_customer` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `code` varchar(255) DEFAULT NULL COMMENT '客户编码', + `custprop` varchar(255) DEFAULT NULL COMMENT '客户类型', + `custstate` varchar(255) DEFAULT NULL COMMENT '客户状态', + `enablestate` varchar(255) DEFAULT NULL COMMENT '启用状态', + `name` varchar(255) DEFAULT NULL COMMENT '客户名称', + `pk_country` varchar(255) DEFAULT NULL COMMENT '国家/地区', + `pk_custclass` varchar(255) DEFAULT NULL COMMENT '客户基本分类', + `pk_group` varchar(255) DEFAULT NULL COMMENT '所属集团', + `pk_org` varchar(255) DEFAULT NULL COMMENT '所属组织', + `taxpayerid` varchar(255) DEFAULT NULL COMMENT '纳税人登记号', + `custprop_type` varchar(122) DEFAULT NULL COMMENT '客户分类', + `data_id` varchar(100) DEFAULT NULL COMMENT 'data_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户档案'; +-- ---------------------------- +-- Table structure for mdm_customer_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_customer_option_log`; +CREATE TABLE `mdm_customer_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户档案操作日志'; + +-- ---------------------------- +-- Table structure for mdm_customer_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_customer_send_log`; +CREATE TABLE `mdm_customer_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户档案下发日志'; +-- ---------------------------- +-- Table structure for mdm_bank +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_bank`; +CREATE TABLE `mdm_bank` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `bank_name` varchar(255) DEFAULT NULL COMMENT '网点全称', + `correspondent_number` varchar(255) DEFAULT NULL COMMENT '联行号', + `bank_code` varchar(255) DEFAULT NULL COMMENT '银行行别代码', + `province` varchar(255) DEFAULT NULL COMMENT '所在省', + `province_code` varchar(255) DEFAULT NULL COMMENT '所在省编码', + `city` varchar(255) DEFAULT NULL COMMENT '所在市', + `city_code` varchar(255) DEFAULT NULL COMMENT '所在市编码', + `data_id` varchar(100) DEFAULT NULL COMMENT 'data_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='银行档案'; +-- ---------------------------- +-- Table structure for mdm_bank_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_bank_option_log`; +CREATE TABLE `mdm_bank_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='银行档案操作日志'; + + + +-- ---------------------------- +-- Table structure for mdm_bank_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_bank_send_log`; +CREATE TABLE `mdm_bank_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='银行档案下发日志'; + + +-- ---------------------------- +-- Table structure for mdm_customer_bank +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_customer_bank`; +CREATE TABLE `mdm_customer_bank` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `bank` varchar(255) DEFAULT NULL COMMENT '银行', + `pk_bankdoc` varchar(100) DEFAULT NULL COMMENT '开户银行', + `accnum` varchar(100) DEFAULT NULL COMMENT '账号', + `combinenum` varchar(100) DEFAULT NULL COMMENT '联行号', + `data_id` varchar(100) DEFAULT NULL COMMENT 'data_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户银行'; + +-- ---------------------------- +-- Table structure for mdm_supplier +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_supplier`; +CREATE TABLE `mdm_supplier` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `code` varchar(255) DEFAULT NULL COMMENT '供应商编码', + `custprop` varchar(255) DEFAULT NULL COMMENT '供应商类型', + `custstate` varchar(255) DEFAULT NULL COMMENT '供应商状态', + `enablestate` varchar(255) DEFAULT NULL COMMENT '启用状态', + `name` varchar(255) DEFAULT NULL COMMENT '供应商名称', + `pk_country` varchar(255) DEFAULT NULL COMMENT '国家/地区', + `pk_custclass` varchar(255) DEFAULT NULL COMMENT '供应商基本分类', + `pk_group` varchar(255) DEFAULT NULL COMMENT '所属集团', + `pk_org` varchar(255) DEFAULT NULL COMMENT '所属组织', + `taxpayerid` varchar(255) DEFAULT NULL COMMENT '纳税人登记号', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商档案'; + +-- ---------------------------- +-- Table structure for mdm_supplier_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_supplier_option_log`; +CREATE TABLE `mdm_supplier_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商档案操作日志'; + +-- ---------------------------- +-- Table structure for mdm_supplier_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_supplier_send_log`; +CREATE TABLE `mdm_supplier_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商档案下发日志'; +-- Table structure for mdm_supplier_bank +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_supplier_bank`; +CREATE TABLE `mdm_supplier_bank` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `bank` varchar(255) DEFAULT NULL COMMENT '银行', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商银行'; + + +-- ---------------------------- +-- Table structure for mdm_psndoc +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_psndoc`; +CREATE TABLE `mdm_psndoc` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则', + `document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发', + `update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发', + `delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `birthdate` varchar(255) DEFAULT NULL COMMENT '出生日期', + `code` varchar(255) DEFAULT NULL COMMENT '人员编码', + `enablestate` varchar(255) DEFAULT NULL COMMENT '启用状态', + `idcard` varchar(255) DEFAULT NULL COMMENT '证件号', + `idtype` varchar(255) DEFAULT NULL COMMENT '证件类型', + `joinworkdate` varchar(255) DEFAULT NULL COMMENT '参加工作日期', + `lastname` varchar(255) DEFAULT NULL COMMENT '姓', + `mnecode` varchar(255) DEFAULT NULL COMMENT '助记码', + `mobile` varchar(255) DEFAULT NULL COMMENT '手机', + `name` varchar(255) DEFAULT NULL COMMENT '姓名', + `nickname` varchar(255) DEFAULT NULL COMMENT '昵称', + `pk_group` varchar(255) DEFAULT NULL COMMENT '所属集团', + `pk_org` varchar(255) DEFAULT NULL COMMENT '所属业务单元', + `sex` varchar(255) DEFAULT NULL COMMENT '性别', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人员档案'; +-- ---------------------------- +-- Table structure for mdm_psndoc_option_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_psndoc_option_log`; +CREATE TABLE `mdm_psndoc_option_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `source_name` varchar(255) DEFAULT NULL COMMENT '来源名称', + `code` varchar(255) DEFAULT NULL COMMENT '编码', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `option_name` varchar(255) DEFAULT NULL COMMENT '操作人', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(255) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人员档案操作日志'; + + +-- ---------------------------- +-- Table structure for mdm_psndoc_send_log +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_psndoc_send_log`; +CREATE TABLE `mdm_psndoc_send_log` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `target_app` varchar(255) DEFAULT NULL COMMENT '目标应用', + `target_api` varchar(255) DEFAULT NULL COMMENT '目标api', + `source_data` text COMMENT '源数据', + `option_type` varchar(255) DEFAULT NULL COMMENT '操作类型', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `data_type` varchar(50) DEFAULT NULL COMMENT '状态 1、成功2、失败', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `api_id` varchar(50) DEFAULT NULL COMMENT 'apiid', + `app_id` varchar(50) DEFAULT NULL COMMENT 'app_id', + `distribute_id` varchar(50) DEFAULT NULL COMMENT 'distribute_id', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='人员档案下发日志'; + + +-- ---------------------------- +-- Table structure for mdm_psnjobs +-- ---------------------------- +DROP TABLE IF EXISTS `mdm_psnjobs`; +CREATE TABLE `mdm_psnjobs` ( + `id` varchar(50) NOT NULL COMMENT '唯一标识码', + `formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id', + `data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改', + `sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序', + `create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id', + `modify_time` datetime DEFAULT NULL COMMENT '修改时间', + `sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)', + `org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID', + `company_id` varchar(50) DEFAULT NULL COMMENT '公司id', + `enddutydate` varchar(255) DEFAULT NULL COMMENT '任职结束日期', + `indutydate` varchar(255) DEFAULT NULL COMMENT '任职开始日期', + `ismainjob` varchar(255) DEFAULT NULL COMMENT '主职', + `pk_dept` varchar(255) DEFAULT NULL COMMENT '所在部门', + `pk_group` varchar(255) DEFAULT NULL COMMENT '所属集团', + `pk_org` varchar(255) DEFAULT NULL COMMENT '任职业务单元', + `pk_post` varchar(255) DEFAULT NULL COMMENT '岗位', + `pk_psncl` varchar(255) DEFAULT NULL COMMENT '人员类别', + `psncode` varchar(255) DEFAULT NULL COMMENT '员工编号', + PRIMARY KEY (`sorts`,`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='工作信息'; + + + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.7__init_mdm_data.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.7__init_mdm_data.sql new file mode 100644 index 00000000..f6e6956c --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.7__init_mdm_data.sql @@ -0,0 +1,1690 @@ +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('44662daad6a64b0fb5043339a4748a7b', '组织档案', '-496039402364975700', 10001, '1', '组织档案', 37, '1', '2024-06-17 14:07:25', '1', '2024-07-10 14:33:35', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7b134ac29de4494a82f8a9302913e596', '项目档案', '1268606159526445274', 10002, '1', '项目档案', 38, '1', '2024-06-17 14:17:05', '1', '2024-07-10 14:24:06', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8747f494dd7b4780873ad0616835a0f8', '用户档案', '3704207675478198964', 10003, '1', '用户档案', 39, '1', '2024-06-17 14:30:20', '1', '2024-07-10 14:25:46', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cad628f90f3d4c1b8b9f880e9bb5a33f', '客户档案', '-256048490069013451', 10004, '1', '客户档案', 40, '1', '2024-06-17 14:52:11', '1', '2024-07-10 14:36:08', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ae9798c45d90408da5b9d6ec96da5b47', '人员档案', '3386068725253425374', 10005, '1', '人员档案', 41, '1', '2024-06-17 14:52:26', '1', '2024-07-10 14:31:02', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('30abda9cd2ed4d01897e77d89804713a', '供应商档案', '-4732483675668853459', 10006, '1', '供应商档案', 42, '1', '2024-06-17 15:47:07', '1', '2024-07-10 14:31:16', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fab2ed90cdde44b3be09e57e640ea157', '银行档案', '8591890020185818789', 10007, '1', '银行档案', 43, '1', '2024-06-17 15:47:21', '1', '2024-07-10 14:35:50', 'Y', '0', '0'); +INSERT INTO mdm_module (id, mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c1b18eb8d55d42fe8de9177189b11511', '物料档案', '-1118673166822191856', 10011, '1', '物料档案', 47, '1', '2024-06-21 17:30:28', '1', '2024-07-10 14:32:27', 'Y', '0', '0'); + +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('522f588712954b4a867213c91372d91c', '44662daad6a64b0fb5043339a4748a7b', 'mdm_org', '1', '组织', 46, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('166759789f2b4f13b461c7279e10ebc9', '44662daad6a64b0fb5043339a4748a7b', 'mdm_org_option_log', '3', '组织操作日志', 47, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('690d7fecd8d245ff8ca67e93542ad546', '44662daad6a64b0fb5043339a4748a7b', 'mdm_org_send_log', '4', '组织下发日志', 48, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d207427df740413483e726dddab4b01e', '7b134ac29de4494a82f8a9302913e596', 'mdm_project', '1', '项目档案', 49, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9d3f1ddae2ba43afac425a0fdf85ba95', '7b134ac29de4494a82f8a9302913e596', 'mdm_project_option_log', '3', '项目档案操作日志', 50, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0729735f8629455fa9608e8d36eda3d8', '7b134ac29de4494a82f8a9302913e596', 'mdm_project_send_log', '4', '项目档案下发日志', 51, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e481af68484748cf84f2baf2c3c44cb9', '8747f494dd7b4780873ad0616835a0f8', 'mdm_user', '1', '用户档案', 52, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43fc4e4debe345e9a5e92623301d4e86', '8747f494dd7b4780873ad0616835a0f8', 'mdm_user_option_log', '3', '用户档案操作日志', 53, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f5cfef62eaa341359b034af37b9b556c', '8747f494dd7b4780873ad0616835a0f8', 'mdm_user_send_log', '4', '用户档案下发日志', 54, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b773e61e7d864553ae2429c9ec196bd6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'mdm_customer', '1', '客户档案', 55, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('852362b4c06840e08a8aa056847c14c6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'mdm_customer_option_log', '3', '客户档案操作日志', 56, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8bb344970f2a40a7babd70327dc56ec2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'mdm_customer_send_log', '4', '客户档案下发日志', 57, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2d6c2fa1448f4b81a62bf398aeff0cb9', 'fab2ed90cdde44b3be09e57e640ea157', 'mdm_bank', '1', '银行档案', 58, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8f6f856c80dc43d68f29256e49026e4d', 'fab2ed90cdde44b3be09e57e640ea157', 'mdm_bank_option_log', '3', '银行档案操作日志', 59, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('28ad056ff9e2479697c14b265cb2d33e', 'fab2ed90cdde44b3be09e57e640ea157', 'mdm_bank_send_log', '4', '银行档案下发日志', 60, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('301c18b8e2fe4f618a8c744573e2c8f1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'mdm_customer_bank', '2', '客户银行', 61, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a0e62eeed444f359c2cfc4282b2ede0', '30abda9cd2ed4d01897e77d89804713a', 'mdm_supplier', '1', '供应商档案', 62, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('18e506f1a74443ecb4e62777c4b61d34', '30abda9cd2ed4d01897e77d89804713a', 'mdm_supplier_option_log', '3', '供应商档案操作日志', 63, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d634ddae1e7f444e90d82cae98522766', '30abda9cd2ed4d01897e77d89804713a', 'mdm_supplier_send_log', '4', '供应商档案下发日志', 64, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ae4d4a2cec4437da82539d90d5def3f', '30abda9cd2ed4d01897e77d89804713a', 'mdm_supplier_bank', '2', '供应商银行', 65, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2eef41bd6a94d86a55918f03f0e3134', 'ae9798c45d90408da5b9d6ec96da5b47', 'mdm_psndoc', '1', '人员档案', 66, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7631610a9864ea3a0921ea6d642c5a1', 'ae9798c45d90408da5b9d6ec96da5b47', 'mdm_psndoc_option_log', '3', '人员档案操作日志', 67, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('59f9392fdada499795a360143b7a8227', 'ae9798c45d90408da5b9d6ec96da5b47', 'mdm_psndoc_send_log', '4', '人员档案下发日志', 68, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db (id, mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a93e823b313d4685b033f56651146e30', 'ae9798c45d90408da5b9d6ec96da5b47', 'mdm_psnjobs', '2', '工作信息', 69, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); + + + +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2460de97ea44118a21a4cb8a5b3050e', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 477, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db498ce6240a4179b7b7af1dd7b886fe', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 478, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91afebeab85048d0a141b3858980712b', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 479, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5312c67ba30c4462995fffea6bb2b0c5', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 480, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('010df8cd7afe4d568f770f84ce42582e', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 481, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8eaa234459d944a1897e782eaf52a64a', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 482, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6ec2578c6544a4990c537f1fbcc861e', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 483, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('062672c1d1f64227ae294571e0db736c', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 484, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b480bb855bc84c019e36bae386f48bfa', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 485, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8d53680be36d460baba0745e5d9df1d5', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 486, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('52d70d06ed52473eb8ec4596530fa873', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 487, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e22ceff93ca54759aab871eace1375f1', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 488, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4de16b7495f14bbc8164c54a7435a2eb', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 489, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ad5bb30d5f34147bfe4786370343b71', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 490, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f30e96ff189d4635b0238deec240a581', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 491, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af20962957fe4a0d92771b8ac24428bf', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 492, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec7a4351546f4d37b963b8e429990847', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 493, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d16d4a78ac2149c7981a405c92d13113', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 494, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4f848f4fd7a34fc786b63d3f454b1531', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bdf9e91d2dde11ef835100ffb77c303f', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be04aa332dde11ef835100ffb77c303f', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be11f9e32dde11ef835100ffb77c303f', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be2612032dde11ef835100ffb77c303f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be472be82dde11ef835100ffb77c303f', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be51d1032dde11ef835100ffb77c303f', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be5f23ed2dde11ef835100ffb77c303f', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '状态', 'data_type', '3', '1', '1', '1', '1', '1', '1', '255', 495, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ae4fc6f2d6f2474587d535209475efd3', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 496, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a91026f9fd5d412c950d006dfa642243', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 497, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4d2aa497ec37400aa9152e0c0e723d4f', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 498, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8e154271a60c40878a03df909fd0ab07', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 499, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91b476d78ad543d6819537e9368676e3', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 500, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a614dbc07aff4488a296560f6519af0f', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 501, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3633b951775640bcb4fada737f0673d4', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 502, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6449754b3be412cba561d3cbd6cd920', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 503, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('59ce52e5bc074996a805737f25912a65', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 504, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82750f777e0346e19f32ce352e01120e', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 505, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81780d567ae345c5815d5decbea3231a', '44662daad6a64b0fb5043339a4748a7b', '166759789f2b4f13b461c7279e10ebc9', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 506, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55cd9a98781045b499cdbff43e880d80', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 507, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f15bbbe3024e45949d70c730fdd141f1', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 508, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('485fe6a7799f4fc188f180ee50343e55', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 509, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db5c30c082fd4dd7b74504c14b34b11d', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 510, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('89fcc0b547f14dd89d962a609613b138', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 511, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ea11735219084927976b75a569c026c0', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 512, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e87da96ca79e4c9d8a733ae9efe8275e', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 513, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b10bbcffcdbf4f9cb26b86bb396df5bd', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 514, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b3f031f3a07b499a9c66a22bad0a7240', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 515, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ba78316e104f4ea8bf9d3770c83c30b0', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 516, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45837161d5cf41f783db3e62014f58c5', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 517, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('97a42fa406aa4ebab6f6bf0a54aaa365', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 518, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a9e17cac9c2e4e9e9df28809e7184ccb', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 519, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6ebf435fd62641fb97298b7dc2829772', '44662daad6a64b0fb5043339a4748a7b', '690d7fecd8d245ff8ca67e93542ad546', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 520, '1', '2024-06-17 14:11:07', '1', '2024-06-17 14:11:07', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d61d48043aa14f70a77320a5bd7e8044', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '组织编码', 'org_code', '3', '1', '1', '1', '1', '1', '1', '255', 521, '1', '2024-06-27 18:13:28', '1', '2024-06-27 18:13:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d4e62b2e331849eeba5b65de32caeb13', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '组织名称', 'org_name', '3', '1', '1', '1', '1', '1', '1', '255', 522, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('798d93ad4e154711a14e8234673d2cf4', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '地址', 'org_address', '3', '1', '1', '1', '1', '1', '1', '255', 523, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c974887850345afa61e406910e5106f', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '国家地区', 'org_countryzone', '3', '1', '1', '1', '1', '1', '1', '255', 524, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5b634708c6af467d94d3b7907d2f7441', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '内部编码', 'org_innercode', '3', '1', '1', '1', '1', '1', '1', '255', 525, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0d3f0ae3cf8a49bb8fd3cd3f7d855610', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '说明', 'org_memo', '3', '1', '1', '1', '1', '1', '1', '255', 526, '1', '2024-06-17 14:13:41', '1', '2024-06-17 14:13:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8963b829cdb744efb33242d138e1f00d', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '助记码', 'org_mnecode', '3', '1', '1', '1', '1', '1', '1', '255', 527, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7088acce19e7476695df4bdaf75ed09c', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '所属行业', 'org_ncindustry', '3', '1', '1', '1', '1', '1', '1', '255', 528, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e65c14922f254e2a92fee95bf96bf8e3', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '上级业务单元', 'org_fatherorg', '3', '1', '1', '1', '1', '1', '1', '255', 529, '1', '2024-06-17 15:35:17', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('88818d6b9f2c445f9f8e1d87e48eb669', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '负责人', 'org_principal', '3', '1', '1', '1', '1', '1', '1', '255', 530, '1', '2024-06-17 14:16:09', '1', '2024-06-17 14:16:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4221f21ed54a41d89961203f627b484c', '44662daad6a64b0fb5043339a4748a7b', '522f588712954b4a867213c91372d91c', '电话', 'org_tel', '3', '1', '1', '1', '1', '1', '1', '255', 531, '1', '2024-06-17 14:16:35', '1', '2024-06-17 14:16:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db34ef211fda47f197a07e1b821ede5f', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 532, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec16c8560fc941a2bd1fee813bf12e0a', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 533, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d4bf4cdbe4a44ed189fe2f2aa00fdcdc', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 534, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a63add1d004d4281a6983d567b9bf4b6', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 535, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('50895b1c423043dd9190edf69d9d69a3', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 536, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ca9a67209644653ac35299b64967d4d', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 537, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e40a3b43b53943958a2138003546cc44', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 538, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a1ce3309a2bc42789d02eb240f6c6356', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 539, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4a767fc9159847cdbb6fa80ce6449098', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 540, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0382d85d2489403e832ebd8ae184c335', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 541, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6372d571c3d049f49552e5ec6438ffcd', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 542, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69b82792fe5146d8963bb6f91b51b0b3', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 543, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8e0886bf4765430e993d2b1a3a79aa70', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 544, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e87fd317710f4ce2bd649caab1533664', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 545, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('decfa3b755b740e0aa45395b05c4df68', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 546, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cc69bfe5f9b443d9a3e5dbc221d3a104', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 547, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('239d69fdefe146f7ae9a3d4c9935631a', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 548, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b58e94dc7afe466d835be7f7b4d9a6d2', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 549, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9d6710b424ea4a8593f65b4617c69f26', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 550, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b7a02b50d82847749261516bcfcda53f', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 551, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f21c7a9fe283423489e2fb6bd69ced2c', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 552, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4aa93d2e67194c71bd77348eee6bfc93', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 553, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c5aa30cb7cd4741b15d4547bb4b1dd3', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 554, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('461373830c33448bb9fbb3c6e39c069c', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 555, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8432ee2b85de4fbf80f06ad1303f94dc', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 556, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d2d109163704ebd983f0948646733e5', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 557, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d61e1870ada24606a14fa937913ec242', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 558, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ef8649d1c9844eb5b8d2e5ac6bbf359b', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 559, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a8645e1db5443faa92570f272350277', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 560, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3d08faf840724e11a6a179417578e8dd', '7b134ac29de4494a82f8a9302913e596', '9d3f1ddae2ba43afac425a0fdf85ba95', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 561, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('25aefce8b5544acda80ce10adac66573', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 562, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac72ee6e7c3f4c8389753335a46756c2', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 563, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54caa79653d74fe1b2441f6692604254', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 564, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c2d59f274d6d49d389db02c47b94c2bf', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 565, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('944f5aa9f29b4592b16a3849568fc586', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 566, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d93a967687dd4558a9b4f6a5cd31e0ab', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 567, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5de8f56fd48e46f6a10770e201b4ba1f', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 568, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('038bd306b5ba4d9fa48e98eeefe4818e', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 569, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ad8549a712bf4a5f8912ef9e46aaf974', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 570, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a624f7036b224acd953e5103708de227', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 571, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4886f7f7ae914963896915e4f1a364f2', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 572, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b78bb4c0d81488bb4bfa5703405166f', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 573, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3172298f576c4feaab03fa62f82669b8', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 574, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e1e09d98a21b42a9b0cf9a01835a74c2', '7b134ac29de4494a82f8a9302913e596', '0729735f8629455fa9608e8d36eda3d8', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 575, '1', '2024-06-17 14:18:59', '1', '2024-06-17 14:18:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b338d4d8314a4c9f9e18092328eb8331', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '项目编码', 'project_code', '3', '1', '1', '1', '1', '1', '1', '255', 576, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e39744d0c11e47c88604c3bcf41b05a8', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '项目名称', 'project_name', '3', '1', '1', '1', '1', '1', '1', '255', 577, '1', '2024-06-17 14:19:42', '1', '2024-06-17 14:19:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('11f11ae14a13441b8a65a2835dfc3be3', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '单据类型', 'project_bill_type', '3', '1', '1', '1', '1', '1', '1', '255', 578, '1', '2024-06-17 14:19:59', '1', '2024-06-17 14:19:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0e8be21eb45b41328601415173ae7f77', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '备注', 'project_memo', '3', '1', '1', '1', '1', '1', '1', '255', 579, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b1d54e486f24585a29317a9673be9b5', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '币种', 'project_currtype', '3', '1', '1', '1', '1', '1', '1', '255', 580, '1', '2024-06-17 14:20:32', '1', '2024-06-17 14:20:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d5cc90f5ccf4460b3f384f579c27d02', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '责任人', 'project_dutier', '3', '1', '1', '1', '1', '1', '1', '255', 581, '1', '2024-06-17 14:20:49', '1', '2024-06-17 14:20:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0115deea631d4004b94f51f9195c27ee', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '责任部门', 'project_duty_dept', '3', '1', '1', '1', '1', '1', '1', '255', 582, '1', '2024-06-17 14:21:08', '1', '2024-06-17 14:21:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('169f7ff673bd4aec953385b095b616ed', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '管理组织', 'project_org', '3', '1', '1', '1', '1', '1', '1', '255', 583, '1', '2024-06-17 15:36:19', '1', '2024-06-17 15:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b8992a684d554c9298f7d4a59db4029b', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '父项目', 'project_parentpro', '3', '1', '1', '1', '1', '1', '1', '255', 584, '1', '2024-06-17 14:23:02', '1', '2024-06-17 14:23:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0e106ec96ea14e09b96d71a7841357ff', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '项目简称', 'project_sh_name', '3', '1', '1', '1', '1', '1', '1', '255', 585, '1', '2024-06-17 14:23:22', '1', '2024-06-17 14:23:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('65943dbbdc094bc5bffa5d1db9e33c90', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 586, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70d98b788a57447682cbc3a7de5f0280', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 587, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38225a88faf94dc39c0d2dc7fc11afb3', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 588, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7fb58cd6ba74dd6a91c19a9a5c48593', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 589, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('887c9bc259364a61a2200f5ed0e2ecb6', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 590, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0692a1a30866416f8aff063b6cba50a7', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 591, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4611d0cb1797492a90e5b4898e587476', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 592, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0a385d51e8f44410a4d33b8c9699a1a8', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 593, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d5969e6a11db4a0785db689bcfafe071', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 594, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('89be19d4d9c3481881412a55ca77c5ca', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 595, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e79ae6f4d1164c12b7108b2e83fd9be1', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 596, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f9a7c5be8654aa7a92c29a5365d4893', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 597, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('508b83b3c8c44b02a069498558d4d7a4', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 598, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1fcc440f75494deaa158fa1304fb2ea9', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 599, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5fa7d18a54de4599a8a87d1c4e3a337a', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 600, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eec0c22a47d7490ea090bd62d5498316', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 601, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81cb2c50f89b4446bb5c0ac02d5bda4b', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 602, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cfb132a3ae384c65a3f21fd15a15309a', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 603, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f65e677608f544fe8ba98380dce91fc7', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 604, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d0b496981204b2596c0222ffb68564e', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 605, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aa3745096a194930a7d342965b403d5e', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 606, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('78f537cedf514888907e53daa47bfe88', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 607, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d67bda5fa6824b9991ed26bef66276a8', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 608, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38af60a2e30b486dbb709a1cfc5deb0b', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 609, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c95ba7287ac480a93afa3e6dd92e8a6', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 610, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a88d556a1ab43b6a57024ffbdd41765', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 611, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('666390983552448e892175bdec18cbe2', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 612, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c4173c230721467fb04ac846b567d68a', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 613, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('732844ec65c54d48a4dddbf4db79bb5b', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 614, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8dc8e85ca4014f378aecc39085b5afb4', '8747f494dd7b4780873ad0616835a0f8', '43fc4e4debe345e9a5e92623301d4e86', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 615, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6bef177f4d62489db2f31e14e442137e', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 616, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3c99d51877c47d39636e0bff5c702d7', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 617, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4a6c62ccff1f405f972c5a5084b966fd', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 618, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca9f486bdf3b482fbd2a3c5645aac5bf', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 619, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31271523527e49739059356f102aeb6b', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 620, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7b585bd0e8a4a2bb536ebbc65cb1d20', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 621, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d2c1e78825be455082bed8af48cebaf7', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 622, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2794e4671f5d4e88bad23db1b3a6698a', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 623, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('581209aded2f48aa8e0f07629de161db', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 624, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('459ed14b61da4cd18e3bf58ef060d733', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 625, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('19cab2b52e0c4f74b98ce937d80dc1bf', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 626, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('586d508a75c34ddb9df0ef29b8d35fb7', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 627, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6c607e6a94c40a9a9e107bddbd6a649', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 628, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5cce35d6714241a08c6daab36bcd9222', '8747f494dd7b4780873ad0616835a0f8', 'f5cfef62eaa341359b034af37b9b556c', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 629, '1', '2024-06-17 14:31:28', '1', '2024-06-17 14:31:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2de601e3705e48698bbf042f15d140e7', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '用户名称', 'user_name', '3', '1', '1', '1', '1', '1', '1', '255', 630, '1', '2024-06-17 14:32:30', '1', '2024-06-17 14:32:30', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91d67896709b47fd9f28477722acc155', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '用户编码', 'user_code', '3', '1', '1', '1', '1', '1', '1', '255', 631, '1', '2024-06-17 14:32:59', '1', '2024-06-17 14:32:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('160fdc1c41e74e01a73af3b30f1bec88', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '用户密码', 'user_password', '3', '1', '1', '1', '1', '1', '1', '255', 632, '1', '2024-06-17 14:33:24', '1', '2024-06-17 14:33:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0acfd6cb91754a60955670c610b8e3ce', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '密码安全级别', 'pwdlevelcode', '3', '1', '1', '1', '1', '1', '1', '255', 633, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3ebcb0504d7414c88ce8210dba22f80', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '密码参数', 'pwdparam', '3', '1', '1', '1', '1', '1', '1', '255', 634, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c4d14f41b1941e7bd424aead7d7e774', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '备注', 'user_note', '3', '1', '1', '1', '1', '1', '1', '255', 635, '1', '2024-06-17 14:34:37', '1', '2024-06-17 14:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ab8306bd121a4c7b8e48f7f2fb63e5e7', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '生效日期', 'abledate', '3', '1', '1', '1', '1', '1', '1', '255', 636, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c1e895a2298742b0a592d7754ae64f52', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '失效日期', 'disabledate', '3', '1', '1', '1', '1', '1', '1', '255', 637, '1', '2024-06-17 14:35:31', '1', '2024-06-17 14:35:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bdaa57f29fd14a5696e9fc2fbdc5957c', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '锁定', 'islocked', '3', '1', '1', '1', '1', '1', '1', '255', 638, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4e95827cb3d245589a6f84a6ca7de2cb', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '用户类型', 'user_type', '3', '1', '1', '1', '1', '1', '1', '255', 639, '1', '2024-06-17 14:36:19', '1', '2024-06-17 14:36:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1945826d379e44089a356c5cb6fb4923', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '身份类型', 'base_doc_type', '3', '1', '1', '1', '1', '1', '1', '255', 640, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c829aa03dc9a4f02b3634d511f418975', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '身份', 'pk_base_doc', '3', '1', '1', '1', '1', '1', '1', '255', 641, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f0f76cb929c490f811d8cb2b9758976', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '认证类型', 'identityverifycode', '3', '1', '1', '1', '1', '1', '1', '255', 642, '1', '2024-06-17 14:37:35', '1', '2024-06-17 14:37:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cb1e28c0b342492db7c3418afaabf419', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '所属组织', 'pk_org', '3', '1', '1', '1', '1', '1', '1', '255', 643, '1', '2024-06-17 15:34:35', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('efd9ceb03a184d36a5126ee52b9a774f', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '数据格式', 'format', '3', '1', '1', '1', '1', '1', '1', '255', 644, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('706fbce98fbc42e68bcd4aa93a5d5c96', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', 'CA用户', 'isca', '3', '1', '1', '1', '1', '1', '1', '255', 645, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96063bc8c97b4e04af18de36abea606f', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '启用状态', 'enablestate', '3', '1', '1', '1', '1', '1', '1', '255', 646, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b8905ef81afe47b1afc22c61f880baef', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '内容语种', 'contentlang', '3', '1', '1', '1', '1', '1', '1', '255', 647, '1', '2024-06-17 14:39:44', '1', '2024-06-17 14:39:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('59bce0d42a374805b83fdd36d78aa2d3', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '用户编码', 'user_code_q', '3', '1', '1', '1', '1', '1', '1', '255', 648, '1', '2024-06-17 14:40:12', '1', '2024-06-17 14:40:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6a31527fa25b46b8adc05a5de24f1c26', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 649, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ea53604972f3453d8c66e5b7fc1d07a9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 650, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a9deeb920d3945b7b60331574cc9c574', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 651, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95bbb67816f8405da816007c6ec49f9c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 652, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('276a14975df3461c8eec78dfcc059b58', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 653, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9874f4c1c0174e1198458e360c354c80', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 654, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a9ee4134062444daa25d37c36c3cb6a1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 655, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ae994ce1df6e4c5c90fde75a6a28f3ea', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 656, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ef48f540f5134ce3b213f0482e4ac5c4', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 657, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c2b5a17b68d7478596dc13eca838526e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 658, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c3a88ce0a6941b5963788abcb66b5d5', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 659, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('815fe4fcecda4ecfa36d158908f653d8', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 660, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06def5f014a74a30bcc99dfec3aed381', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 661, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67fab76ab7bf4ce98a2b5e4414871261', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 662, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e4ecd3330e684e338d68feba3c7b0220', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 663, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('71daeee781cb4dbc9f89e531c5cd45b2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 664, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f11edf5f49ad43089539e9bef103c8d0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 665, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53751c8b8c3c420bb8f109009840de6f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 666, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9fa8cef4d27540d48b8a1b916c6a6854', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 667, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('980435a6e3914bb2949314cd98ef4ba8', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 668, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa6aa3b27719416c83cef1bc9a572b7e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 669, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7d6563b5c7464806881f2e49b2e93214', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 670, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e19d7928ad3e475e9f0910ad74a24857', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 671, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('44d9ac9ff5d44abea4eda27593ca1efb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 672, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b6bae2a5df514d01b039697fc4cb31a3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 673, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('226095c3204b4a0dad4c82dc7ce96f99', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 674, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7e010b1e1ad848acba518fa439c6ddf3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 675, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3939b06148e440039072ac7bfde2d412', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 676, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da792a0ea5424d158cba701012ca26a3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 677, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('613de43c3a814eb6a300246ded756903', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '852362b4c06840e08a8aa056847c14c6', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 678, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7e7cd57bf934b9fb2acc6996339c491', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 679, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('afd7f234dcaa4072a0a67b52a9f0461e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 680, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69bf484251814717a53d643e7b4507f2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 681, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8967d5e348274078a2719648364564ce', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 682, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d8b382263f794429990019ad3addaa39', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 683, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c66913cb70034b15b8c4bceeb0324c2e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 684, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('36d32fe4b09b4101b4069f6b68042ddb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 685, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7469b5a299354b70831aced89bd70bc1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 686, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02c193b53bd94018ba5b5dd7444304ef', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 687, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c41b2e4398094f1d950096bb096f9608', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 688, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53bfd87ba7ed405e8edd83ccd41efba7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 689, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('77251b7731104cc998e7006af1afb5d3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 690, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3dc0cfee3e1a4c9d80ef0749c94c46ea', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 691, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d9ed71b6e94b4490ad5ec90dfc2e39d0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '8bb344970f2a40a7babd70327dc56ec2', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 692, '1', '2024-06-17 15:39:01', '1', '2024-06-17 15:39:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6971e5a13a7f4f24b61cc2872a676816', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 693, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8b53711e838d43ca87eb71196a98f9fb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户类型', 'custprop', '3', '1', '1', '1', '1', '1', '1', '255', 694, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4507c25134574f1795e5bfadb14d7a72', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户状态', 'custstate', '3', '1', '1', '1', '1', '1', '1', '255', 695, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f0d5f86bcfd14a0094b630eb57723b40', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '启用状态', 'enablestate', '3', '1', '1', '1', '1', '1', '1', '255', 696, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1640bc449339460c9a7908585b55c1c2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户名称', 'name', '3', '1', '1', '1', '1', '1', '1', '255', 697, '1', '2024-06-17 15:54:12', '1', '2024-06-17 15:54:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d1c09daabd944f519f37d97396d72411', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '国家/地区', 'pk_country', '3', '1', '1', '1', '1', '1', '1', '255', 698, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b0ec59f4702c48dd9f9919ca9a44dd12', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户基本分类', 'pk_custclass', '3', '1', '1', '1', '1', '1', '1', '255', 699, '1', '2024-06-17 15:55:45', '1', '2024-06-17 15:55:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3e1b825f6e444b1ea04463462f36f1f7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '所属集团', 'pk_group', '3', '1', '1', '1', '1', '1', '1', '255', 700, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c07212e26f746369a5cbb724ad2698f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '所属组织', 'pk_org', '3', '1', '1', '1', '1', '1', '1', '255', 701, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b637be20e163468aaad0d1e493e9e7ad', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '纳税人登记号', 'taxpayerid', '3', '1', '1', '1', '1', '1', '1', '255', 702, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('153cbaa1b0104af883b05c17e710e419', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 703, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7357d0ea6d3f4a5d86b18b3931e154bb', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 704, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('50c8a8246c304f3b8fcce083b4a2239b', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 705, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2bf9eae09eb84120855d1a833c2f9d8a', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 706, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c7998daa9c74a1e9775c060ced5c3d8', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 707, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6ebd91b68eb54d0fb31c4c1e3483c698', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 708, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('46b66b05ea2f466f9d581f9cd235676a', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 709, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c45f48e6d594ba9b7f2d35079f25b5d', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 710, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c915c3b6744c4455869a51c7c94e4bf1', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 711, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e17feb3dafd749a18319660b89c9ba69', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 712, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64090182caab4b439f2667a25393d8ea', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 713, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('16d241b510364d1e9b976d34848162d3', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 714, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('081f47e7b36145adbd974449f1a37090', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 715, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('24756d1e0fa1475a9baa7b472c4019e3', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 716, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06719f445f7a4fdfbb74fcbdb9a62812', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 717, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2cced6b2241d4c37a33724697c7eb447', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 718, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1703d8ae4c3f4219b8a8a3964cd4c9a9', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 719, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2f93293d610e437997cdbd5de81e6b8d', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 720, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d3340523a0f54985b803a7947a37bbff', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 721, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('085392a4e6b8469a8a6928cdb7cd35e0', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 722, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5738638038dd4ea38a72fbd51086d1d5', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 723, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bfad5730cce84a528b004093c1ba2136', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 724, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b4cf4ca50b343b0ae31cdc166ef7303', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 725, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3748a3d180d64a66879bf58ae2193664', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 726, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('83179a23a2fa4080b70a2004532e658b', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 727, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0bf2e954d5e44407acb08e5e4a1b1659', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 728, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5cb3960a4227449494bab65a8316908d', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 729, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('201c97df51eb4e079365c21c2b0cc391', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 730, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('522f6361b8ce405796110bf51fe82c6f', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 731, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0fe13581b0ae461a9d4a8cb921a57b66', 'fab2ed90cdde44b3be09e57e640ea157', '8f6f856c80dc43d68f29256e49026e4d', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 732, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7837df2429f4b75af794818f5867f6f', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 733, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('210a77992ba5431c94179bd82e357ae5', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 734, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('998616ce9c3d42f6811abe14ec19f810', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 735, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('876c11c49e984c70a08300af16415104', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 736, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42ed08d37ffc49e9989fbc44193078a3', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 737, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4dc0e4ce34614b4a965e709a79883224', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 738, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d8553ecb24f4656a3196457e4bddd78', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 739, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d407950967aa4269acd0a12f6d987ca3', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 740, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f8bb60f8f17e45da98c595e55201519c', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 741, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d67e9958373d4e8aac49ed1ce5161645', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 742, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ffd757fda864a2f86fa2cc210c8d663', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 743, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('912604bb542d40239ef7fa37cc426bde', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 744, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4444ff237ea840cd902082aef2351803', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 745, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ffb47be088848069b832634efb561be', 'fab2ed90cdde44b3be09e57e640ea157', '28ad056ff9e2479697c14b265cb2d33e', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 746, '1', '2024-06-17 16:00:26', '1', '2024-06-17 16:00:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('602bc448cdb94072ac7b44df02ca09f9', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '网点全称', 'bank_name', '3', '1', '1', '1', '1', '1', '1', '255', 747, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fbfacad799e047cf816a492ea3b511a2', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '联行号', 'correspondent_number', '3', '1', '1', '1', '1', '1', '1', '255', 748, '1', '2024-06-17 16:02:23', '1', '2024-06-17 16:02:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a60fea18e6c041059a528cc46acc9cc1', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '银行行别代码', 'bank_code', '3', '1', '1', '1', '1', '1', '1', '255', 749, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e0ab6a9a0345485a9b755d796d2bacca', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '所在省', 'province', '3', '1', '1', '1', '1', '1', '1', '255', 750, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0cea1a2ebf0f4114b77731ed44111340', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '所在省编码', 'province_code', '3', '1', '1', '1', '1', '1', '1', '255', 751, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('861f51e9bc3d47e19ce0a034ca0cabe9', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '所在市', 'city', '3', '1', '1', '1', '1', '1', '1', '255', 752, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8e605ae1210c43a69dae9416b34823dd', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', '所在市编码', 'city_code', '3', '1', '1', '1', '1', '1', '1', '255', 753, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79a8c1a5940a42cf86e367f57aec6cd0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 754, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e5d4613142bb43489128daa4df4bdb44', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 755, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4f514ea51d624c1a8afefc8dba05df8f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 756, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f0fb2e54737a4c4892c0110c7d149c96', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 757, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4feebcd896f245de8a23992973d59dec', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 758, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('35721761724e441b92500d9f06db60ee', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 759, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ee408219882411ba23c7530caa73e8c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 760, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3ec9bdf16ef4f4b9216e4acd06dc733', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 761, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2745599086d45cdbaa8f664f1c1f873', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 762, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f43675e97766434c8b45fabce8c3233e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 763, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('880f011e15a5454796add5216c9b41a5', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 764, '1', '2024-06-17 16:05:49', '1', '2024-06-17 16:05:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4f773ae6e95e487c859db420fc3ba92b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '银行', 'bank', '3', '1', '1', '1', '1', '2', '1', '255', 765, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f28b382d1dcd481a9df41cb95480f269', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 766, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9e29699fd09344ecbfa37d519d9c60ec', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 767, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3781142fca8b442ca531a93d382f0a1a', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 768, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45e91d8b20d647c0ab1f100fe167c94a', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 769, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02d5f9c5fe864fc5b05a21925e27562e', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 770, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('804dcacd64df479f81deb568a32841af', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 771, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('97070114361c4f0ebcefc48492e7db91', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 772, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7e822f113bf6466185388fed4699e946', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 773, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('354fe6223aba4fa68e64888259c13e52', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 774, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b48cc8609319440599233c669b158086', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 775, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('34dd8a9b03f9442a8ddd4ae13568747d', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 776, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fead3c8034d84f329a7f39cb4d60e13b', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 777, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ecaf6cf3d28f45aeb71819530c44f0a6', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 778, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e8824a25e6394fdc9ccd5ebddb49e5d2', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 779, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2df1d029ee2246dab8b6345af2beb601', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 780, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a3421428d8df47ce998ab20ab34ebc4b', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 781, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('017eebd8215f4fd08e58edf09f5c551c', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 782, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd9b092a014b4cd38d6d706a27a60330', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 783, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('231ffc9a411543619014611602c0a106', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 784, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8989da4cc86a47a0bb22686ddc3d8ff4', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 785, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2a6d87872d9448f0a757b2a3bc65bd32', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 786, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2bff37a11f6b42d482f33abb0079dd92', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 787, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f7f6c80120a4fb6b385b67dda127c0b', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 788, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('57e8bef1af1b462bb46e101b0d9df3cc', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 789, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1b3ab1c8a4b347618eaf8c27897e628e', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 790, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e00e5a3afd44b71844492a1d26f50e2', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 791, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('80fccf530a884e9c97e3e14d562470c5', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 792, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9b2d7164653147878e782261cfc68f7e', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 793, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2ec7bf292f9a41f59aa756bf2dc7f69f', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 794, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a6b3e442b8b4708a5c15bb9c402c98e', '30abda9cd2ed4d01897e77d89804713a', '18e506f1a74443ecb4e62777c4b61d34', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 795, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e1fee96f695d4ebeb3e0828021d457fa', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 796, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d9413ed740314e56bd72ec14fa11ebbc', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 797, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('25b2b594777a41bea3fdadb561a17046', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 798, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5f5fab7272144b9d917d10576431c5e9', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 799, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6fa5ea061a57430892fffe95adca812d', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 800, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('691303e24ac84a818583a11b51e0c8e4', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 801, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('61fb4ec5d30e4a798910c70c939da37e', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 802, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('482b79cad62e43cba6b26efe8a0ce3e9', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 803, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e483ff10222d488cb04342cefd26ff28', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 804, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1776876aec62488098c2a61f201f9b17', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 805, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('04f74dd33a80456d840f1d74b55e77e5', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 806, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fce2e3d95c0745d6bdb32c1918abf730', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 807, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('488f6b2338024f0c8c1a32093cb01508', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 808, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0f46a78fb8c94f24a4808a0f0ff68a64', '30abda9cd2ed4d01897e77d89804713a', 'd634ddae1e7f444e90d82cae98522766', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 809, '1', '2024-06-17 16:10:43', '1', '2024-06-17 16:10:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c7cf25fcb2a147a0bf3ddefd58ba704f', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 810, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d53eb43a24064f418effe71893591a59', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 811, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91544f99dae541a28a6a31594987d950', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 812, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79190c213f1d4b278cd12a1110fc4b02', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 813, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81880faf5f5e4096af3d9009dcf66831', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 814, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3aca7201bfc94ae88e1fe9529e60fa6d', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 815, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a62bb2b70a64f2eaf44645587195f58', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 816, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee96bc6f8cb744f9a76516eeaae39af2', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 817, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54323fb5d271408782bb56e0a77ec0fd', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 818, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7823139401b74d57b5c62e0f3014dcf4', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 819, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4a72013ba20e46beba5ceb8442930605', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 820, '1', '2024-06-17 16:11:04', '1', '2024-06-17 16:11:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6c7b2dc32c7c48ddacd52d1da6c56a11', '30abda9cd2ed4d01897e77d89804713a', '5ae4d4a2cec4437da82539d90d5def3f', '银行', 'bank', '3', '1', '1', '1', '1', '2', '1', '255', 821, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('12499335252b40a895a7ffe1853720c0', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '供应商编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 822, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f728cc8206de4bf782bba3710e528019', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '供应商类型', 'custprop', '3', '1', '1', '1', '1', '1', '1', '255', 823, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3c3ed478a40640d9a4dda69d41dcd11e', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '供应商状态', 'custstate', '3', '1', '1', '1', '1', '1', '1', '255', 824, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('77c9dd675e4f4a3b877da307f6ff79de', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '启用状态', 'enablestate', '3', '1', '1', '1', '1', '1', '1', '255', 825, '1', '2024-06-17 16:13:21', '1', '2024-06-17 16:13:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('98cbc7bd413b4b618a1cefa3ef028fa3', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '供应商名称', 'name', '3', '1', '1', '1', '1', '1', '1', '255', 826, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1fb4a0945ce44a17b2d5cdb20f7e4554', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '国家/地区', 'pk_country', '3', '1', '1', '1', '1', '1', '1', '255', 827, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('57fc0e875c0046c78236a419186f9219', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '供应商基本分类', 'pk_custclass', '3', '1', '1', '1', '1', '1', '1', '255', 828, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d33e18ea98d046f782e3d3d848fc9e68', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '所属集团', 'pk_group', '3', '1', '1', '1', '1', '1', '1', '255', 829, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39a8c26b97f44878ba099436954e173f', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '所属组织', 'pk_org', '3', '1', '1', '1', '1', '1', '1', '255', 830, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c5847e6c74f342b19d2c5f7d59bbc456', '30abda9cd2ed4d01897e77d89804713a', '5a0e62eeed444f359c2cfc4282b2ede0', '纳税人登记号', 'taxpayerid', '3', '1', '1', '1', '1', '1', '1', '255', 831, '1', '2024-06-17 16:15:40', '1', '2024-06-17 16:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa8627ec30f94bc89b0d868e166e2d77', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 832, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('76be6dfeea6643f5afae9a2335a61920', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '单据规则', 'document_rule', '3', '2', '1', '1', '1', '1', '2', '50', 833, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('66ce8b71057b43ce9819e53aeae4ae06', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '单据规则流水号', 'document_rule_num', '1', '2', '2', '2', '2', '2', '2', '50', 834, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da9c91581b254edda415c7ff86ee5c1a', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 835, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69856137459345aa878bb80ca5a8cfaf', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '新增数据状态 0待下发 1已下发', 'add_status', '3', '2', '2', '2', '2', '2', '2', '1', 836, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c90b5ff6c87545ac8a78e1fcd9a24fdc', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '修改数据状态 0待下发 1已下发', 'update_status', '3', '2', '2', '2', '2', '2', '2', '1', 837, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a813810922c64d4aa7e5e33030fe4f67', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '删除数据状态 0待下发 1已下发', 'delete_status', '3', '2', '2', '2', '2', '2', '2', '1', 838, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a87b6342278c4c0292df772e84c4e64d', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 839, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('779c3dfc39f34f1eb2aa7feb490b607e', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 840, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f8e3b9038adf4f6f8d4447c5130e915a', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 841, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('41dc034d0261423f8db4d7e5c12df81e', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 842, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9e3ef6441d34bd9b80e0fe38002ee63', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 843, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('16763e6f04fa40d5a551a422a3ab063e', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 844, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bbf8b0ecec0242788ab46aaeb8e7397a', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 845, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de1e54fdb3774389a124b5752a3bb64b', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 846, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('25c847eb515f488db84403e772d9a3b8', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 847, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4df3754e733e4b418afc6d8c194cef02', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 848, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7e475ae9804349538616cf2f43729a72', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '来源名称', 'source_name', '3', '2', '2', '2', '2', '2', '2', '255', 849, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93519308bebf447ca5924e9638be8d01', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 850, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('28604bedc8d94e03b609df5e0a1a24d5', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 851, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4fa6140d32ef44e187411d6805d744e4', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 852, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e9b82182458f4e2bbffe2646c4bd5d6d', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '操作人', 'option_name', '3', '1', '1', '1', '1', '1', '1', '255', 853, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c2f85fbd11f84b7ca312f7610bda1966', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 854, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d84236a8528e4fde9c9100f46c3fdf7f', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 855, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6d2eea9281b04dc99d90e9b890edc8ee', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 856, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1dc6cd2f6f1741189a85d4e389442ebf', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 857, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('71e07dc6299d4d6a946cafde71127597', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 858, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0a8dc6e1d40c423b9032d50e7bb56349', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 859, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af17b2db70834663bcdf1accd27ca64d', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 860, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0fa4b667a98a49999f9b00794f68b7ce', 'ae9798c45d90408da5b9d6ec96da5b47', 'f7631610a9864ea3a0921ea6d642c5a1', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 861, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6348fe540da74bc0a358af2b2e14c612', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 862, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9cb4eae3e80746759e91a1c3b932fb7d', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 863, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54298ab48de54c42a5122d439fc2db44', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '目标应用', 'target_app', '3', '1', '1', '1', '1', '1', '1', '255', 864, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0fa5247d5cc0454196222a9512eeba3d', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '目标api', 'target_api', '3', '1', '1', '1', '1', '1', '1', '255', 865, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b43063399dbd4fa787177701449b08a0', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '源数据', 'source_data', '3', '1', '1', '1', '1', '1', '1', '255', 866, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b8c8b01d0c334ef38ecc5ce9baf453dd', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '操作类型', 'option_type', '3', '1', '1', '1', '1', '1', '1', '255', 867, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aa2fcd78db8040a6bc245ae65af2f578', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 868, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06eb2eba092b43cfa73e7286bea35fa6', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 869, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('72862103e6864ff0837a659bf2e95a25', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 870, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('35d1493d2d994ceb81b79472809fa7df', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 871, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7c156936eb44e1c863a42b06948a9bf', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 872, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8d387705b8aa4e3595115255bc58cf03', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 873, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('92a230e767e24f8f90b167a4d704dec5', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 874, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7f7d068fbb2f467b98edb540994593ea', 'ae9798c45d90408da5b9d6ec96da5b47', '59f9392fdada499795a360143b7a8227', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 875, '1', '2024-06-17 16:18:50', '1', '2024-06-17 16:18:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cfa9151db73b40089b19f6723750bc45', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '出生日期', 'birthdate', '3', '1', '1', '1', '1', '1', '1', '255', 876, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1330303a47ce4d36bd24cfc5b43d5a01', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '人员编码', 'code', '3', '1', '1', '1', '1', '1', '1', '255', 877, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9b6abb2b63f5473cbedcd0c92087e238', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '启用状态', 'enablestate', '3', '1', '1', '1', '1', '1', '1', '255', 878, '1', '2024-06-17 16:20:11', '1', '2024-06-17 16:20:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2e4fea80d9ab4aabbb754b999b373a27', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '证件号', 'idcard', '3', '1', '1', '1', '1', '1', '1', '255', 879, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cff95ccaab714ff3ab6091c6b1c8b335', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '证件类型', 'idtype', '3', '1', '1', '1', '1', '1', '1', '255', 880, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a00b93f6f8ff438a9863e84e2a95724a', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '参加工作日期', 'joinworkdate', '3', '1', '1', '1', '1', '1', '1', '255', 881, '1', '2024-06-17 16:21:41', '1', '2024-06-17 16:21:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f1c0f8c4b5e54aaeb40873fa25e93280', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '姓', 'lastname', '3', '1', '1', '1', '1', '1', '1', '255', 882, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6302224f47174aa0b6872f4f9253523f', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '助记码', 'mnecode', '3', '1', '1', '1', '1', '1', '1', '255', 883, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('306cb6065a8e450280af0acae1e1bfc4', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '手机', 'mobile', '3', '1', '1', '1', '1', '1', '1', '255', 884, '1', '2024-06-17 16:22:44', '1', '2024-06-17 16:22:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8f04b92dfa5949e2a18a34b00a390de1', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '姓名', 'name', '3', '1', '1', '1', '1', '1', '1', '255', 885, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('862617ad5e0c44289825b4f13db0f259', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '昵称', 'nickname', '3', '1', '1', '1', '1', '1', '1', '255', 886, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3143881b6c1e47b794194c5f3dd09d7c', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '所属集团', 'pk_group', '3', '1', '1', '1', '1', '1', '1', '255', 887, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('71877e5c1689470180d2b56e12e42455', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '所属业务单元', 'pk_org', '3', '1', '1', '1', '1', '1', '1', '255', 888, '1', '2024-06-17 16:24:22', '1', '2024-06-17 16:24:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bf1de969df8a42d3b0387f0ab0292544', 'ae9798c45d90408da5b9d6ec96da5b47', 'a2eef41bd6a94d86a55918f03f0e3134', '性别', 'sex', '3', '1', '1', '1', '1', '1', '1', '255', 889, '1', '2024-06-17 16:24:44', '1', '2024-06-17 16:24:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43dceb925bcf41f48e067bbb80f4a08a', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', 'id', 'id', '3', '2', '2', '2', '2', '2', '2', '50', 890, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6bb77636305e4734b6b8ac3b76c193c1', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '主表id', 'formmain_id', '3', '2', '2', '2', '2', '2', '2', '50', 891, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b2914eb4467a44eb80e81e92b7cbe565', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '数据状态', 'data_status', '3', '2', '2', '2', '2', '2', '2', '1', 892, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01f04eacd61948c19fb123c1745432d8', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '排序', 'sorts', '1', '2', '2', '2', '2', '2', '2', '20', 893, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01f8e85f2226468e868685bc13e57856', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '创建人id', 'create_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 894, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('788706ea6af2444db3e81ad3a4b8d945', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '创建时间', 'create_time', '4', '2', '2', '2', '2', '2', '2', NULL, 895, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6d2af8921d340ddb4466aa82bd4fcb8', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '修改人id', 'modify_user_id', '3', '2', '2', '2', '2', '2', '2', '50', 896, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb317a46676c4ee386078af44377e884', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '修改时间', 'modify_time', '4', '2', '2', '2', '2', '2', '2', NULL, 897, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('708a3f8267ad46c8afeab902d7ec91d7', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '状态(Y正常N删除)', 'sts', '3', '2', '2', '2', '2', '2', '2', '1', 898, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c0e110db828c4801952b1910e435c197', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '组织机构ID', 'org_id', '3', '2', '2', '2', '2', '2', '2', '50', 899, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81bce5de13314936847fd039964d2cf7', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '公司id', 'company_id', '3', '2', '2', '2', '2', '2', '2', '50', 900, '1', '2024-06-17 16:25:31', '1', '2024-06-17 16:25:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7cb35062557f42e7b1bebc5a7921ddf0', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '任职结束日期', 'enddutydate', '3', '1', '1', '1', '1', '2', '1', '255', 901, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5d82691c50d54200a2e2cf4dc70defe8', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '任职开始日期', 'indutydate', '3', '1', '1', '1', '1', '2', '1', '255', 902, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3ca69c4ec8714b1ab6ed1f8c4d38b4f4', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '主职', 'ismainjob', '3', '1', '1', '1', '1', '2', '1', '255', 903, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5aae049516ad41e4ad317528b35897a8', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '所在部门', 'pk_dept', '3', '1', '1', '1', '1', '2', '1', '255', 904, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9644c8cf4d2245db905e00405bb18139', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '所属集团', 'pk_group', '3', '1', '1', '1', '1', '2', '1', '255', 905, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39df334f659f41779005c422a2dcce95', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '任职业务单元', 'pk_org', '3', '1', '1', '1', '1', '2', '1', '255', 906, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('448d2c8a0a6f4d199b60054c130519c4', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '岗位', 'pk_post', '3', '1', '1', '1', '1', '2', '1', '255', 907, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a27f428aafb14b7488a9f1772687567e', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '人员类别', 'pk_psncl', '3', '1', '1', '1', '1', '2', '1', '255', 908, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4cbca1ec95c343f990811fffbcb9ddc9', 'ae9798c45d90408da5b9d6ec96da5b47', 'a93e823b313d4685b033f56651146e30', '员工编号', 'psncode', '3', '1', '1', '1', '1', '2', '1', '255', 909, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0710afd06eba45ed863b7fb598bcd1ff', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '开户银行', 'pk_bankdoc', '3', '1', '1', '1', '1', '2', '1', '100', 910, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5c2cd97fdb2c4d7ba80fe7ea53d11ceb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '账号', 'accnum', '3', '1', '1', '1', '1', '1', '1', '100', 911, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b6b28ecbe48e480d94573dd30383fd39', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', '联行号', 'combinenum', '3', '1', '1', '1', '1', '1', '1', '100', 912, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ce41de301b4740deb7b39ade148bd571', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', '客户分类', 'custprop_type', '3', '1', '1', '1', '1', '1', '1', '122', 1031, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5f6bce09d3bd4bdcbb2296bc3133ffc4', 'fab2ed90cdde44b3be09e57e640ea157', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'data_id', 'data_id', '3', '1', '1', '1', '1', '1', '1', '100', 1179, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6702dfc2a6964293bedd24057a7b6232', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', 'data_id', 'data_id', '3', '1', '1', '1', '1', '1', '1', '100', 1180, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ea2cda26ccc4b5eada2d9312b555b3c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'b773e61e7d864553ae2429c9ec196bd6', 'data_id', 'data_id', '3', '1', '1', '1', '1', '1', '1', '100', 1181, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2916b06c65294f54818c0d8477281005', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '301c18b8e2fe4f618a8c744573e2c8f1', 'data_id', 'data_id', '3', '1', '1', '1', '1', '2', '1', '100', 1182, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cfe9a7fac0ca4d6fa2b6290dd5caf288', '7b134ac29de4494a82f8a9302913e596', 'd207427df740413483e726dddab4b01e', '三方业务主键', 'data_id', '3', '1', '1', '1', '1', '1', '1', '125', 1492, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2d1f6aaf244047c9a34c56578b176a00', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '电话', 'mobile', '3', '1', '1', '1', '1', '1', '1', '255', 1493, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8df6db8e166d4761ad7fc6e0e3829f7c', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '性别', 'gender', '3', '1', '1', '1', '1', '1', '1', '255', 1494, '1', '2024-06-27 15:34:37', '1', '2024-06-27 15:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds (id, mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4bb2f414fd424f94a3504236d56ec9aa', '8747f494dd7b4780873ad0616835a0f8', 'e481af68484748cf84f2baf2c3c44cb9', '登录名', 'login_name', '3', '1', '1', '1', '1', '1', '1', '255', 1495, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); + + +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8c66bdff8d024c04aa565bad12aae426', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '显示名', 'title', '组织名称', '2', 1314, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5590dea9d8f046fdab8c97009f611341', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '宽度', 'row', '12', '2', 1315, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de00ea97e25d4a0689e39f6dc7180aac', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '单元格宽度', 'width', NULL, '2', 1316, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aca2d126077747d4bb4ab0babe59f0cc', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '数据类型', 'type', 'input', '2', 1317, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3577cc818391480f870c50d1b313b5d3', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '必填', 'required', 'false', '2', 1318, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1339861ecd4840bb9706c605a20fa648', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd4e62b2e331849eeba5b65de32caeb13', '禁止修改', 'disabled', 'false', '2', 1319, '1', '2024-06-17 14:12:19', '1', '2024-06-17 14:12:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('23dd2ad453dd4d438d0745a8c520b651', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '显示名', 'title', '地址', '2', 1320, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca61ae53edfd40cc9a848629c1fe791b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '宽度', 'row', '12', '2', 1321, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4d234912f19641e0b7efd86376b7926f', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '单元格宽度', 'width', NULL, '2', 1322, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40e5420a242f48f8afbdee16eba86a45', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '数据类型', 'type', 'input', '2', 1323, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01030886eb9a48aaba9bb4901e9ed3d6', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '必填', 'required', 'false', '2', 1324, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7cccb1c16162424fa4f3392200183546', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '798d93ad4e154711a14e8234673d2cf4', '禁止修改', 'disabled', 'false', '2', 1325, '1', '2024-06-17 14:12:41', '1', '2024-06-17 14:12:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('062fca99d68d49f3a68a0fe926fdbb42', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '显示名', 'title', '国家地区', '2', 1326, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cb2bbef0e376407d836747ab71047b6b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '宽度', 'row', '12', '2', 1327, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('895f81c28ad1471d98252290bdffb330', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '单元格宽度', 'width', NULL, '2', 1328, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bfe3f4a6175846c092b7a89812d545c6', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '数据类型', 'type', 'input', '2', 1329, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de1e9220ad6046aea29e10ae51a37342', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '必填', 'required', 'false', '2', 1330, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40af2179dbbf4811bb907b106364e406', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '2c974887850345afa61e406910e5106f', '禁止修改', 'disabled', 'false', '2', 1331, '1', '2024-06-17 14:13:00', '1', '2024-06-17 14:13:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec472e03cbe24e06b15f200ac7b97a5f', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '显示名', 'title', '内部编码', '2', 1332, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a0a500cc0544490e94ebccf38cb56990', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '宽度', 'row', '12', '2', 1333, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cd2c5ee607224e36bfa7a418937afa29', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '单元格宽度', 'width', NULL, '2', 1334, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c84f7eb7ad064d9aac01c5387889c208', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '数据类型', 'type', 'input', '2', 1335, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2113a7d204fd4d89a0b58de64123c28b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '必填', 'required', 'false', '2', 1336, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8c58bd7b638b4feab942cc366e406499', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '5b634708c6af467d94d3b7907d2f7441', '禁止修改', 'disabled', 'false', '2', 1337, '1', '2024-06-17 14:13:20', '1', '2024-06-17 14:13:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('398bc9f046644a7484f84071ff01c6b7', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '显示名', 'title', '说明', '2', 1338, '1', '2024-06-17 14:13:41', '1', '2024-06-17 14:13:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('341a85c1daaa48e8b758d0b222babda2', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '宽度', 'row', '12', '2', 1339, '1', '2024-06-17 14:13:42', '1', '2024-06-17 14:13:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3195b62bc3904178964cc3acb6fcbdd4', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '单元格宽度', 'width', NULL, '2', 1340, '1', '2024-06-17 14:13:42', '1', '2024-06-17 14:13:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3dfcaed1ba6438281024902bfc7ee23', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '数据类型', 'type', 'input', '2', 1341, '1', '2024-06-17 14:13:42', '1', '2024-06-17 14:13:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7b9440e6c53f44d1b1bb5add8d7a85e0', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '必填', 'required', 'false', '2', 1342, '1', '2024-06-17 14:13:42', '1', '2024-06-17 14:13:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('679a955a92bf4d8083c6315167055d4e', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '禁止修改', 'disabled', 'false', '2', 1343, '1', '2024-06-17 14:13:42', '1', '2024-06-17 14:13:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b8c0015a3e004cf7b3ea7e4bfcc70795', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '显示名', 'title', '助记码', '2', 1344, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db7c11d00a85430f950cb546e4680d5a', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '宽度', 'row', '12', '2', 1345, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9c124e00624949689be62abea8308159', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '单元格宽度', 'width', NULL, '2', 1346, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5656330e6563493c8e7b8d71275d2368', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '数据类型', 'type', 'input', '2', 1347, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e94133180c9d4c8eb021830bf3efef2b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '必填', 'required', 'false', '2', 1348, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('110cf2523e0642af919a0d229cd1ea05', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '8963b829cdb744efb33242d138e1f00d', '禁止修改', 'disabled', 'false', '2', 1349, '1', '2024-06-17 14:14:00', '1', '2024-06-17 14:14:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('472acf69fe7941668aad08f295c40825', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '显示名', 'title', '所属行业', '2', 1350, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('889e463c219649c7a3e977c9819261d5', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '宽度', 'row', '12', '2', 1351, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('78a1dfec51d44115b68b35472018523a', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '单元格宽度', 'width', NULL, '2', 1352, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ddf781104f5045b4812523ed7cc12b2f', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '数据类型', 'type', 'input', '2', 1353, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5482615f12fa403a998814a531a2e6f9', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '必填', 'required', 'false', '2', 1354, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('406ac7043f5d4a83bcfc932a0c02b2fd', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '7088acce19e7476695df4bdaf75ed09c', '禁止修改', 'disabled', 'false', '2', 1355, '1', '2024-06-17 14:14:22', '1', '2024-06-17 14:14:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fee86e7e00a4406a93db782d98aaad04', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '显示名', 'title', '负责人', '2', 1372, '1', '2024-06-17 14:16:09', '1', '2024-06-17 14:16:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3acee7a9703e4b6b89f7657452e8e83b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '宽度', 'row', '12', '2', 1373, '1', '2024-06-17 14:16:10', '1', '2024-06-17 14:16:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3386058637f94e1380a0b7866beba8d8', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '单元格宽度', 'width', NULL, '2', 1374, '1', '2024-06-17 14:16:10', '1', '2024-06-17 14:16:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('784765203c864a00a84cbf87b2fd7eab', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '数据类型', 'type', 'input', '2', 1375, '1', '2024-06-17 14:16:11', '1', '2024-06-17 14:16:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f150fefdd1c646a8a3da88c3ec83f4d4', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '必填', 'required', 'false', '2', 1376, '1', '2024-06-17 14:16:12', '1', '2024-06-17 14:16:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7dec865959e74dd3a95f1600ce764c03', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '88818d6b9f2c445f9f8e1d87e48eb669', '禁止修改', 'disabled', 'false', '2', 1377, '1', '2024-06-17 14:16:12', '1', '2024-06-17 14:16:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43c4ffa83972412497ef26a74ac07cc0', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '显示名', 'title', '电话', '2', 1378, '1', '2024-06-17 14:16:35', '1', '2024-06-17 14:16:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cbd5c5cebacd4c1189442779c1b1b29a', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '宽度', 'row', '12', '2', 1379, '1', '2024-06-17 14:16:35', '1', '2024-06-17 14:16:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55eaac57f45841d9b65c3f970a804da3', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '单元格宽度', 'width', NULL, '2', 1380, '1', '2024-06-17 14:16:35', '1', '2024-06-17 14:16:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c35971da76544b2e9f372c485c3c336a', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '数据类型', 'type', 'input', '2', 1381, '1', '2024-06-17 14:16:35', '1', '2024-06-17 14:16:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('05283a50ed444fb58e8cf2b11a77fc1f', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '必填', 'required', 'false', '2', 1382, '1', '2024-06-17 14:16:36', '1', '2024-06-17 14:16:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a7c3dca371e4a48acde4239883f1fa2', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', '4221f21ed54a41d89961203f627b484c', '禁止修改', 'disabled', 'false', '2', 1383, '1', '2024-06-17 14:16:36', '1', '2024-06-17 14:16:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e75c4f6e120d487eab81eb4638e5fc8d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '显示名', 'title', '项目编码', '2', 1384, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a22bad49d77148cc994b8edf5cc71df0', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '宽度', 'row', '12', '2', 1385, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4e5cf30b76894fa7ba3fecc2d2fcb376', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '单元格宽度', 'width', NULL, '2', 1386, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('072c817cf7234223ba374c8d4fb21a94', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '数据类型', 'type', 'input', '2', 1387, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4f94a71ec913467eac9e5acb02b85284', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '必填', 'required', 'false', '2', 1388, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86ec3f600df04eeea46b557ad302356e', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b338d4d8314a4c9f9e18092328eb8331', '禁止修改', 'disabled', 'false', '2', 1389, '1', '2024-06-17 14:19:23', '1', '2024-06-17 14:19:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c85c93a70ec44bd0bf2da69e6236c8a5', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '显示名', 'title', '项目名称', '2', 1390, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9233c95c3bb34ccc95a8ef7c398b7df4', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '宽度', 'row', '12', '2', 1391, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dd3392b535a342f69e793e72f95544db', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '单元格宽度', 'width', NULL, '2', 1392, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a2079b4e63f47e8a1555a7fdb05978e', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '数据类型', 'type', 'input', '2', 1393, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3aa5ce20355a44d2b4fb471d70bafc1d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '必填', 'required', 'false', '2', 1394, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('671c7a194f4a48cb81b458000ead05be', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'e39744d0c11e47c88604c3bcf41b05a8', '禁止修改', 'disabled', 'false', '2', 1395, '1', '2024-06-17 14:19:43', '1', '2024-06-17 14:19:43', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ddd43d17bf6046af8770bf41afeaf1b1', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '显示名', 'title', '单据类型', '2', 1396, '1', '2024-06-17 14:19:59', '1', '2024-06-17 14:19:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('18a12e61fe9a4af5991736851196c578', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '宽度', 'row', '12', '2', 1397, '1', '2024-06-17 14:20:00', '1', '2024-06-17 14:20:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55ee07d83cb94e2a9d07aa412ed743a6', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '单元格宽度', 'width', NULL, '2', 1398, '1', '2024-06-17 14:20:00', '1', '2024-06-17 14:20:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7fb6f3e8753a423489ef6db7fd182ed7', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '数据类型', 'type', 'input', '2', 1399, '1', '2024-06-17 14:20:00', '1', '2024-06-17 14:20:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('52aa35bb78ea4e46a973e5ed448bc4ff', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '必填', 'required', 'false', '2', 1400, '1', '2024-06-17 14:20:00', '1', '2024-06-17 14:20:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aebd631e628e4bfbbc6d5cabbef38c9f', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '11f11ae14a13441b8a65a2835dfc3be3', '禁止修改', 'disabled', 'false', '2', 1401, '1', '2024-06-17 14:20:00', '1', '2024-06-17 14:20:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8662b0b2604a4b5abc56aa7341b42240', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '显示名', 'title', '备注', '2', 1402, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('56f938d2d66c47ef85fdc613c86a1b4e', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '宽度', 'row', '12', '2', 1403, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b73a12382d714b8e8fec5398dbae466b', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '单元格宽度', 'width', NULL, '2', 1404, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('845b901d6cf24572bc37d3994432c0e4', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '数据类型', 'type', 'input', '2', 1405, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2109068adeee482f82b5ba8f1900780a', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '必填', 'required', 'false', '2', 1406, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9656c0e1bac24b558db6d7ff8f0c54d2', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e8be21eb45b41328601415173ae7f77', '禁止修改', 'disabled', 'false', '2', 1407, '1', '2024-06-17 14:20:17', '1', '2024-06-17 14:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e441555be77348ca94f5f59712b5af89', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '显示名', 'title', '币种', '2', 1408, '1', '2024-06-17 14:20:32', '1', '2024-06-17 14:20:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8934f97221044547bc8e6e8aa7bc20fe', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '宽度', 'row', '12', '2', 1409, '1', '2024-06-17 14:20:32', '1', '2024-06-17 14:20:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dbb0f89c16084eb7a1933c0f74d61f99', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '单元格宽度', 'width', NULL, '2', 1410, '1', '2024-06-17 14:20:33', '1', '2024-06-17 14:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4e5644488a5f496e9d7a29fa73c0d38d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '数据类型', 'type', 'input', '2', 1411, '1', '2024-06-17 14:20:33', '1', '2024-06-17 14:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('315562f9033d4708a8a930829ee2d0df', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '必填', 'required', 'false', '2', 1412, '1', '2024-06-17 14:20:33', '1', '2024-06-17 14:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3afec794d1f946c8818972aa3033bde7', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '6b1d54e486f24585a29317a9673be9b5', '禁止修改', 'disabled', 'false', '2', 1413, '1', '2024-06-17 14:20:33', '1', '2024-06-17 14:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79759a4740f346cabb35bcad3139f869', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '显示名', 'title', '责任人', '2', 1414, '1', '2024-06-17 14:20:50', '1', '2024-06-17 14:20:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca0054c7d8174ff2853a90be6788f08b', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '宽度', 'row', '12', '2', 1415, '1', '2024-06-17 14:20:50', '1', '2024-06-17 14:20:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('635a37d46fe94c1faede53b39321c4a2', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '单元格宽度', 'width', NULL, '2', 1416, '1', '2024-06-17 14:20:50', '1', '2024-06-17 14:20:50', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4cc83b3d1cef4016bbbbb488f53ab095', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '数据类型', 'type', 'input', '2', 1417, '1', '2024-06-17 14:20:51', '1', '2024-06-17 14:20:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1f8dabecc3ea47fcbab4e5e4429eb7ce', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '必填', 'required', 'false', '2', 1418, '1', '2024-06-17 14:20:52', '1', '2024-06-17 14:20:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53a2c9bbc7614fdc976cef5112e97c2d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '1d5cc90f5ccf4460b3f384f579c27d02', '禁止修改', 'disabled', 'false', '2', 1419, '1', '2024-06-17 14:20:52', '1', '2024-06-17 14:20:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('769a94db4be04e988e92919caba6c9fb', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '显示名', 'title', '责任部门', '2', 1420, '1', '2024-06-17 14:21:08', '1', '2024-06-17 14:21:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('286c969df2754b03b199258a19633941', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '宽度', 'row', '12', '2', 1421, '1', '2024-06-17 14:21:08', '1', '2024-06-17 14:21:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cd01ff245874425c8caf53a809b872c1', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '单元格宽度', 'width', NULL, '2', 1422, '1', '2024-06-17 14:21:09', '1', '2024-06-17 14:21:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e456636c0293471a904010697e173655', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '数据类型', 'type', 'input', '2', 1423, '1', '2024-06-17 14:21:09', '1', '2024-06-17 14:21:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af0e7bce77de42ceae308b560af4417f', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '必填', 'required', 'false', '2', 1424, '1', '2024-06-17 14:21:09', '1', '2024-06-17 14:21:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de3d5913e12c44acaa5baec61a014ef4', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0115deea631d4004b94f51f9195c27ee', '禁止修改', 'disabled', 'false', '2', 1425, '1', '2024-06-17 14:21:09', '1', '2024-06-17 14:21:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8fcfaf26e8fb47e7a9930077b7bfc8ea', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '显示名', 'title', '父项目', '2', 1432, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4722711ac71644849220b6864478ea00', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '宽度', 'row', '12', '2', 1433, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('384f48ded5584cb9bc736ac7606f885c', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '单元格宽度', 'width', NULL, '2', 1434, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0f34368d0a0e483d82291a7a320107b0', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '数据类型', 'type', 'input', '2', 1435, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('916292fc410b46789fd73451615d1006', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '必填', 'required', 'false', '2', 1436, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b7ec022df14b4a33ad294f0615410415', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'b8992a684d554c9298f7d4a59db4029b', '禁止修改', 'disabled', 'false', '2', 1437, '1', '2024-06-17 14:23:03', '1', '2024-06-17 14:23:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fe0b724a44b4418c815a1da84293fed0', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '显示名', 'title', '项目简称', '2', 1438, '1', '2024-06-17 14:23:23', '1', '2024-06-17 14:23:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a437f03a754d40d2bf7eedf5a6c8b740', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '宽度', 'row', '12', '2', 1439, '1', '2024-06-17 14:23:23', '1', '2024-06-17 14:23:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7b500828f16b4112ab75c197f2d76779', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '单元格宽度', 'width', NULL, '2', 1440, '1', '2024-06-17 14:23:23', '1', '2024-06-17 14:23:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fd97b6bfbf5142e08f51e8ce0f0c9124', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '数据类型', 'type', 'input', '2', 1441, '1', '2024-06-17 14:23:24', '1', '2024-06-17 14:23:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e7b97cbd61594eb8a6e7a5405abc6cc3', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '必填', 'required', 'false', '2', 1442, '1', '2024-06-17 14:23:24', '1', '2024-06-17 14:23:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8bba47aee42a415b98b1ec0aaff1d2f7', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '0e106ec96ea14e09b96d71a7841357ff', '禁止修改', 'disabled', 'false', '2', 1443, '1', '2024-06-17 14:23:24', '1', '2024-06-17 14:23:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6bb6ca43de6f4318a79d422d94acd1b3', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '显示名', 'title', '用户名称', '2', 1444, '1', '2024-06-17 14:32:30', '1', '2024-06-17 14:32:30', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('851596ca0b3144f6a9f713da3d058a00', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '宽度', 'row', '12', '2', 1445, '1', '2024-06-17 14:32:30', '1', '2024-06-17 14:32:30', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('800e0ed0e7be400e80d3c5362b65e123', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '单元格宽度', 'width', NULL, '2', 1446, '1', '2024-06-17 14:32:31', '1', '2024-06-17 14:32:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9dfab9c16ade40c5989766aa49abae07', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '数据类型', 'type', 'input', '2', 1447, '1', '2024-06-17 14:32:31', '1', '2024-06-17 14:32:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('09a9b9bfbb974d328dc47e94cb60bfa4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '必填', 'required', 'false', '2', 1448, '1', '2024-06-17 14:32:31', '1', '2024-06-17 14:32:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8fe8fec6659b41e28c7bd5ad0e7b8037', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2de601e3705e48698bbf042f15d140e7', '禁止修改', 'disabled', 'false', '2', 1449, '1', '2024-06-17 14:32:31', '1', '2024-06-17 14:32:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e9f1825c163d4f9fa1c70c1213364ca9', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '显示名', 'title', '用户编码', '2', 1450, '1', '2024-06-17 14:32:59', '1', '2024-06-17 14:32:59', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1f18236d73c345b6ad9ad0e69c109f5a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '宽度', 'row', '12', '2', 1451, '1', '2024-06-17 14:33:00', '1', '2024-06-17 14:33:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82946b7c54214fa78abc0628e4c76ae5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '单元格宽度', 'width', NULL, '2', 1452, '1', '2024-06-17 14:33:00', '1', '2024-06-17 14:33:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('364208e2086b476caab574a62589298c', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '数据类型', 'type', 'input', '2', 1453, '1', '2024-06-17 14:33:00', '1', '2024-06-17 14:33:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c0c0a0ca71e44daab97e79fb24d4442', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '必填', 'required', 'false', '2', 1454, '1', '2024-06-17 14:33:00', '1', '2024-06-17 14:33:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('659ff310e170433982da0eb4d576d9d3', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '91d67896709b47fd9f28477722acc155', '禁止修改', 'disabled', 'false', '2', 1455, '1', '2024-06-17 14:33:00', '1', '2024-06-17 14:33:00', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fd3448fe09904c319f1ac30fd9fd6ed0', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '显示名', 'title', '用户密码', '2', 1456, '1', '2024-06-17 14:33:24', '1', '2024-06-17 14:33:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9ba24a54b13a485d99a76d229b4d7ad6', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '宽度', 'row', '12', '2', 1457, '1', '2024-06-17 14:33:25', '1', '2024-06-17 14:33:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6678d424fb2649319abca73e61111671', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '单元格宽度', 'width', NULL, '2', 1458, '1', '2024-06-17 14:33:25', '1', '2024-06-17 14:33:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fab8ad3705bb4df1b9e2a79ee520388f', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '数据类型', 'type', 'input', '2', 1459, '1', '2024-06-17 14:33:25', '1', '2024-06-17 14:33:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d08b6346cdfa4e00b920747049bd835a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '必填', 'required', 'false', '2', 1460, '1', '2024-06-17 14:33:25', '1', '2024-06-17 14:33:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('07d185c88b514437bcd07e6f4a17c18a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '160fdc1c41e74e01a73af3b30f1bec88', '禁止修改', 'disabled', 'false', '2', 1461, '1', '2024-06-17 14:33:26', '1', '2024-06-17 14:33:26', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9873f84006934111b446e2d9bb9c8aaa', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '显示名', 'title', '密码安全级别', '2', 1462, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de53642602834b7997fa9cc152f5b846', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '宽度', 'row', '12', '2', 1463, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('90a782ab86b04f07b9617153088377aa', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '单元格宽度', 'width', NULL, '2', 1464, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6586ef9960a4670bc4f696d13e027e5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '数据类型', 'type', 'input', '2', 1465, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('146cd42343e84d1099dab7a29fb2038f', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '必填', 'required', 'false', '2', 1466, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42ad401f5b65419893650ab8b5915583', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '0acfd6cb91754a60955670c610b8e3ce', '禁止修改', 'disabled', 'false', '2', 1467, '1', '2024-06-17 14:33:46', '1', '2024-06-17 14:33:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4527f1a5a5d94608ba9a8bb0bfb6be2c', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '显示名', 'title', '密码参数', '2', 1468, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7d6ad9adf2c54ef092208df8f1907aee', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '宽度', 'row', '12', '2', 1469, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('009d9232f39c4068996c56a6a6d7c56e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '单元格宽度', 'width', NULL, '2', 1470, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('87d46baf6f394edfad3e5237d443890d', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '数据类型', 'type', 'input', '2', 1471, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c2ee9ea3b8654ed5b010eb441e0b8cac', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '必填', 'required', 'false', '2', 1472, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6b702a0e72946c38b92e9cff0ad41f3', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'f3ebcb0504d7414c88ce8210dba22f80', '禁止修改', 'disabled', 'false', '2', 1473, '1', '2024-06-17 14:34:16', '1', '2024-06-17 14:34:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e5e18815ddf7482d83b8990235435b89', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '显示名', 'title', '备注', '2', 1474, '1', '2024-06-17 14:34:37', '1', '2024-06-17 14:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b0fe02b48424ebeb4cc2bc235061432', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '宽度', 'row', '12', '2', 1475, '1', '2024-06-17 14:34:37', '1', '2024-06-17 14:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('664324f5e0d549438dc65b04f18607d9', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '单元格宽度', 'width', NULL, '2', 1476, '1', '2024-06-17 14:34:37', '1', '2024-06-17 14:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('711c3a0b3f854fa6997901240c068adf', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '数据类型', 'type', 'input', '2', 1477, '1', '2024-06-17 14:34:37', '1', '2024-06-17 14:34:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('32f6331d982c4c61826010663070721e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '必填', 'required', 'false', '2', 1478, '1', '2024-06-17 14:34:38', '1', '2024-06-17 14:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac57b73dd3e0445daf0d752179fbba31', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4c4d14f41b1941e7bd424aead7d7e774', '禁止修改', 'disabled', 'false', '2', 1479, '1', '2024-06-17 14:34:38', '1', '2024-06-17 14:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1386fad8921e4adf813bd8d55cfa3aa2', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '显示名', 'title', '生效日期', '2', 1480, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9d94f8e8ed38450d9df542d2d6e65ecc', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '宽度', 'row', '12', '2', 1481, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7769ea2be87544b4bb345b4687fa1699', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '单元格宽度', 'width', NULL, '2', 1482, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('51c44f74e72a4209913383d0530d55fd', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '数据类型', 'type', 'input', '2', 1483, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43faafa857614ae8a66178646baf24c4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '必填', 'required', 'false', '2', 1484, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f682156ecc724a318388c7a1bb8ba094', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '禁止修改', 'disabled', 'false', '2', 1485, '1', '2024-06-17 14:35:08', '1', '2024-06-17 14:35:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f4c6db9ee85f4a7394ada9ee00ab7952', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '显示名', 'title', '失效日期', '2', 1486, '1', '2024-06-17 14:35:31', '1', '2024-06-17 14:35:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7de0cf6a83242458f1d5c775f7f9e4a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '宽度', 'row', '12', '2', 1487, '1', '2024-06-17 14:35:31', '1', '2024-06-17 14:35:31', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('83b23116b30747c0890edb991d814c26', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '单元格宽度', 'width', NULL, '2', 1488, '1', '2024-06-17 14:35:33', '1', '2024-06-17 14:35:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6159c5bc69824916b3862b0dc02b4b15', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '数据类型', 'type', 'input', '2', 1489, '1', '2024-06-17 14:35:33', '1', '2024-06-17 14:35:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0158c845bf14435caece79b957c4a7fa', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '必填', 'required', 'false', '2', 1490, '1', '2024-06-17 14:35:33', '1', '2024-06-17 14:35:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c5b7d123315421a81d690335a52dc15', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c1e895a2298742b0a592d7754ae64f52', '禁止修改', 'disabled', 'false', '2', 1491, '1', '2024-06-17 14:35:33', '1', '2024-06-17 14:35:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93e7be31b5614f4bb31a5e54da0e6e70', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '显示名', 'title', '锁定', '2', 1492, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5434cc4553d54712ac6f68db22040506', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '宽度', 'row', '12', '2', 1493, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3af65ddaa06c4cd3b74f018887b7620a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '单元格宽度', 'width', NULL, '2', 1494, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91c80a9e544b44179266f105b39d7d32', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '数据类型', 'type', 'input', '2', 1495, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95260b52804e455b89de7b84778ab027', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '必填', 'required', 'false', '2', 1496, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b7d3a899d798425bb53601c4a960b656', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'bdaa57f29fd14a5696e9fc2fbdc5957c', '禁止修改', 'disabled', 'false', '2', 1497, '1', '2024-06-17 14:35:58', '1', '2024-06-17 14:35:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2357ec8bda14ab19ebd522be0a822e8', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '显示名', 'title', '用户类型', '2', 1498, '1', '2024-06-17 14:36:19', '1', '2024-06-17 14:36:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1bc86d9cb97b4ddebc14fae89c54d1c4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '宽度', 'row', '12', '2', 1499, '1', '2024-06-17 14:36:19', '1', '2024-06-17 14:36:19', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('68bbd60316ab434282a4a4bd68244a17', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '单元格宽度', 'width', NULL, '2', 1500, '1', '2024-06-17 14:36:20', '1', '2024-06-17 14:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d172c1285422445ab75927518c08fc0f', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '数据类型', 'type', 'input', '2', 1501, '1', '2024-06-17 14:36:20', '1', '2024-06-17 14:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('60963d6708374c168fb253188f2b1714', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '必填', 'required', 'false', '2', 1502, '1', '2024-06-17 14:36:20', '1', '2024-06-17 14:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86285240541e496f9ee99ac37615b7b5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4e95827cb3d245589a6f84a6ca7de2cb', '禁止修改', 'disabled', 'false', '2', 1503, '1', '2024-06-17 14:36:20', '1', '2024-06-17 14:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3cdc8ea7f1914d09b7bc2a2968e0b653', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '显示名', 'title', '身份类型', '2', 1504, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('84ec8c2d2555495f8eb5cd7049ebbb8e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '宽度', 'row', '12', '2', 1505, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bb48942aac024195b01af272fe304419', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '单元格宽度', 'width', NULL, '2', 1506, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eaa101e052914484ac79ceccbd697e62', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '数据类型', 'type', 'input', '2', 1507, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('87743ed3335446b38810653e194c292f', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '必填', 'required', 'false', '2', 1508, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29b5a305ac94492fa70519773d17b32b', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '1945826d379e44089a356c5cb6fb4923', '禁止修改', 'disabled', 'false', '2', 1509, '1', '2024-06-17 14:36:45', '1', '2024-06-17 14:36:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1f7640f5224349bc94c39002f51627b1', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '显示名', 'title', '身份', '2', 1510, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('37fcfcae6b644009982ef2646c909acd', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '宽度', 'row', '12', '2', 1511, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('37ba8fb248b54323bcd557f9aa5c93b9', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '单元格宽度', 'width', NULL, '2', 1512, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f11102fd4b6a4c428a8e33dbc1a364c4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '数据类型', 'type', 'input', '2', 1513, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('72ce679af9bf436fafc87e4aaab9c685', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '必填', 'required', 'false', '2', 1514, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('56de87b886ed438081f5ec7590c91a80', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'c829aa03dc9a4f02b3634d511f418975', '禁止修改', 'disabled', 'false', '2', 1515, '1', '2024-06-17 14:37:11', '1', '2024-06-17 14:37:11', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b1fafa2b56f44924b71757ad7ad08846', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '显示名', 'title', '认证类型', '2', 1516, '1', '2024-06-17 14:37:35', '1', '2024-06-17 14:37:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cbd68a69a19f4ebcb35581b2ccafafd4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '宽度', 'row', '12', '2', 1517, '1', '2024-06-17 14:37:36', '1', '2024-06-17 14:37:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('44230cdb01c54372a1bd13388c568641', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '单元格宽度', 'width', NULL, '2', 1518, '1', '2024-06-17 14:37:36', '1', '2024-06-17 14:37:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec7ece223da14c7988ce19874098815a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '数据类型', 'type', 'input', '2', 1519, '1', '2024-06-17 14:37:36', '1', '2024-06-17 14:37:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ad5712073bfc4feb9943dae7c77da843', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '必填', 'required', 'false', '2', 1520, '1', '2024-06-17 14:37:36', '1', '2024-06-17 14:37:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8867517550b245008ea56a62eccae75a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '3f0f76cb929c490f811d8cb2b9758976', '禁止修改', 'disabled', 'false', '2', 1521, '1', '2024-06-17 14:37:36', '1', '2024-06-17 14:37:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee15c612a13b42e58ed76f9a216989c4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '显示名', 'title', '数据格式', '2', 1528, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('19bea5477d7f4dff8b7550d899095906', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '宽度', 'row', '12', '2', 1529, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a6142a49b937410297bddc4c8568076e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '单元格宽度', 'width', NULL, '2', 1530, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('848882cfa42442698f2f5be9687c0020', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '数据类型', 'type', 'input', '2', 1531, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29d9b5affebc43d0b3686b4c7e7feaf7', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '必填', 'required', 'false', '2', 1532, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06612b4388eb419187eec94e12183092', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'efd9ceb03a184d36a5126ee52b9a774f', '禁止修改', 'disabled', 'false', '2', 1533, '1', '2024-06-17 14:38:23', '1', '2024-06-17 14:38:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42a9630cff854b8d88d016109454df0e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '显示名', 'title', 'CA用户', '2', 1534, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('738150a274084c55aa4d2758118cd175', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '宽度', 'row', '12', '2', 1535, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c45cbd04a354c69b138e52e755d70a2', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '单元格宽度', 'width', NULL, '2', 1536, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9af9bf2c14aa419c87b7c42def525ec5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '数据类型', 'type', 'input', '2', 1537, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e5c6947c8222437eb54ad53123f75645', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '必填', 'required', 'false', '2', 1538, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('85796437fb2742a4978066f303fd06e8', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '706fbce98fbc42e68bcd4aa93a5d5c96', '禁止修改', 'disabled', 'false', '2', 1539, '1', '2024-06-17 14:39:02', '1', '2024-06-17 14:39:02', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e369a856288f4af4af8a9723d44cc926', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '显示名', 'title', '启用状态', '2', 1540, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0a57571b1fdd42f595716af840057568', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '宽度', 'row', '12', '2', 1541, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b4081e23b9a34f57ba884660d020080b', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '单元格宽度', 'width', NULL, '2', 1542, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4f02e6ed69fa4ba3a9c99f65c5a45c06', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '数据类型', 'type', 'input', '2', 1543, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('65a859e5af9c4291818eeaaafba1d45e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '必填', 'required', 'false', '2', 1544, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be899e33a5524228833794e4467555b5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '96063bc8c97b4e04af18de36abea606f', '禁止修改', 'disabled', 'false', '2', 1545, '1', '2024-06-17 14:39:23', '1', '2024-06-17 14:39:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('200994fdf28b4b2a8f0f42b1c131b4a1', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '显示名', 'title', '内容语种', '2', 1546, '1', '2024-06-17 14:39:44', '1', '2024-06-17 14:39:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d477b71397144a459c3a32f5feaa5d2d', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '宽度', 'row', '12', '2', 1547, '1', '2024-06-17 14:39:44', '1', '2024-06-17 14:39:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c03a07931bf4401b85c91d3463037a7e', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '单元格宽度', 'width', NULL, '2', 1548, '1', '2024-06-17 14:39:45', '1', '2024-06-17 14:39:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('27d2bcadb46f4ac7840596ae35a4a3bd', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '数据类型', 'type', 'input', '2', 1549, '1', '2024-06-17 14:39:45', '1', '2024-06-17 14:39:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('57c6ee639f244c17a19bc2347fe0b68c', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '必填', 'required', 'false', '2', 1550, '1', '2024-06-17 14:39:45', '1', '2024-06-17 14:39:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d3a1e0e358a847debfc325bae464b899', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'b8905ef81afe47b1afc22c61f880baef', '禁止修改', 'disabled', 'false', '2', 1551, '1', '2024-06-17 14:39:45', '1', '2024-06-17 14:39:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ffa896e5a8fb4f68a54631475553d473', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '显示名', 'title', '用户编码', '2', 1552, '1', '2024-06-17 14:40:12', '1', '2024-06-17 14:40:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9af5ecf883094323bba8e62aff97e736', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '宽度', 'row', '12', '2', 1553, '1', '2024-06-17 14:40:13', '1', '2024-06-17 14:40:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('489f631515bf449399ba526f0600e5da', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '单元格宽度', 'width', NULL, '2', 1554, '1', '2024-06-17 14:40:13', '1', '2024-06-17 14:40:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('261f8fdad7c8427580dcd893405d86a6', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '数据类型', 'type', 'input', '2', 1555, '1', '2024-06-17 14:40:13', '1', '2024-06-17 14:40:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('269d6a3045da44f89a79a23858a4a32a', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '必填', 'required', 'false', '2', 1556, '1', '2024-06-17 14:40:14', '1', '2024-06-17 14:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('603e612f957a47f5bba5cd26aa41057d', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '59bce0d42a374805b83fdd36d78aa2d3', '禁止修改', 'disabled', 'false', '2', 1557, '1', '2024-06-17 14:40:14', '1', '2024-06-17 14:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('07dd8e3175f14ab8a10343a8cc807e86', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '显示名', 'title', '所属组织', '2', 1558, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a17e05a3fd754da9aa82e66f2a88011b', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '宽度', 'row', '12', '2', 1559, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('044cf83b9a044e7f90280043b951a1c2', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '单元格宽度', 'width', NULL, '2', 1560, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('89c8f8bcd10c4da8b43e2fdada8ada87', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '数据类型', 'type', 'treeselect', '2', 1561, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6f24613f52b4ea083ce238cf42ddef0', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '必填', 'required', 'false', '2', 1562, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cf419ccd98ea4982ba6a48b33343cc59', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '禁止修改', 'disabled', 'false', '2', 1563, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b997de0c1aa74e1b97f83a66eff451d1', '8747f494dd7b4780873ad0616835a0f8', 'typeOptionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', '服务名称', 'service', 'mdm_org', '2', 1564, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2e8f985b6894423b6b798330ab3857d', '8747f494dd7b4780873ad0616835a0f8', 'typeOptionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', 'label', 'label', 'org_name', '2', 1565, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6afaa3d313b4bafa5153186abee5449', '8747f494dd7b4780873ad0616835a0f8', 'typeOptionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', 'value', 'value', 'id', '2', 1566, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7f85a35f4dd540a2807c4ed41ffa1361', '8747f494dd7b4780873ad0616835a0f8', 'typeOptionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', 'cb1e28c0b342492db7c3418afaabf419', 'upId', 'upId', 'org_fatherorg', '2', 1567, '1', '2024-06-17 15:34:36', '1', '2024-06-17 15:34:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('936995d0178c4eb3a855ecee4cdd019a', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '显示名', 'title', '上级业务单元', '2', 1568, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('58d0b381fd254f06ae4dfb0df184419b', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '宽度', 'row', '12', '2', 1569, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6d8796b331994ab28b4fd532bd76017d', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '单元格宽度', 'width', NULL, '2', 1570, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3a56d114b2843cfa41ef5e844e863e7', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '数据类型', 'type', 'treeselect', '2', 1571, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('688c2460d6ea41fead16b5fcde237f99', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '必填', 'required', 'false', '2', 1572, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6d3e74222a1497fabd1da8468bd8bf3', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '禁止修改', 'disabled', 'false', '2', 1573, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fe3e0f80d7cf481fa3bbed0d0f49680e', '44662daad6a64b0fb5043339a4748a7b', 'typeOptionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', '服务名称', 'service', 'mdm_org', '2', 1574, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('adc8f2801eb64dd9afc68f36bca718f2', '44662daad6a64b0fb5043339a4748a7b', 'typeOptionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', 'label', 'label', 'org_name', '2', 1575, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7095ab74162d414d9ced30ebf3655537', '44662daad6a64b0fb5043339a4748a7b', 'typeOptionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', 'value', 'value', 'id', '2', 1576, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d1c8c5bba94b47ba802271cf4f7203f1', '44662daad6a64b0fb5043339a4748a7b', 'typeOptionRuleForm', '522f588712954b4a867213c91372d91c', 'e65c14922f254e2a92fee95bf96bf8e3', 'upId', 'upId', 'org_fatherorg', '2', 1577, '1', '2024-06-17 15:35:18', '1', '2024-06-17 15:35:18', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cf756a1e8cbc418aa05314787ccaf24b', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '显示名', 'title', '管理组织', '2', 1578, '1', '2024-06-17 15:36:20', '1', '2024-06-17 15:36:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a99a3e7a449840bf9da722f50ffbf7e6', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '宽度', 'row', '12', '2', 1579, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6f780a2cf875491a9be4e10099000725', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '单元格宽度', 'width', NULL, '2', 1580, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('caf7720f60784d18aedda63def1f499d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '数据类型', 'type', 'treeselect', '2', 1581, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7ed0a817e7b439c86536d3fa149122e', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '必填', 'required', 'false', '2', 1582, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c68d6c7c9b1b4a659d7cace72d4b603b', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '禁止修改', 'disabled', 'false', '2', 1583, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4371b281fa3c4859bdf0e0522f08d08d', '7b134ac29de4494a82f8a9302913e596', 'typeOptionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', '服务名称', 'service', 'mdm_org', '2', 1584, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29b78a7441bd48a3a1976176910cf34f', '7b134ac29de4494a82f8a9302913e596', 'typeOptionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', 'label', 'label', 'org_name', '2', 1585, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('58c9087306df4178bdd399280099fada', '7b134ac29de4494a82f8a9302913e596', 'typeOptionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', 'value', 'value', 'id', '2', 1586, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6bf57a54146a489f83a1c849eded4d9f', '7b134ac29de4494a82f8a9302913e596', 'typeOptionRuleForm', 'd207427df740413483e726dddab4b01e', '169f7ff673bd4aec953385b095b616ed', 'upId', 'upId', 'org_fatherorg', '2', 1587, '1', '2024-06-17 15:36:21', '1', '2024-06-17 15:36:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95cb04a6efe84e4cacfcbbd3e071a93b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '显示名', 'title', '客户编码', '2', 1588, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b39096e9796349469d5d5b34019181e0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '宽度', 'row', '12', '2', 1589, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96594f2c5f5347149a9e7db87d37f75b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '单元格宽度', 'width', NULL, '2', 1590, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d7b0bc609084712ac1b6eed6df0701b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '数据类型', 'type', 'input', '2', 1591, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f0de04772d0842b9af4716667934ed60', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '必填', 'required', 'false', '2', 1592, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ad72201aba5c42b3b0bbc46613f74f75', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '6971e5a13a7f4f24b61cc2872a676816', '禁止修改', 'disabled', 'false', '2', 1593, '1', '2024-06-17 15:52:15', '1', '2024-06-17 15:52:15', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('15a6bd1c63924ffeb1840ad9847a608b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '显示名', 'title', '客户类型', '2', 1594, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('839e9391c47f4d99a8813fb7130b7d62', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '宽度', 'row', '12', '2', 1595, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('33c4e781f3064054a0f560aa81de354e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '单元格宽度', 'width', NULL, '2', 1596, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('110315b6f4fe4cb981d04fe269f0b8de', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '数据类型', 'type', 'input', '2', 1597, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1dfc19c89f1243c195888d5ba9a5b680', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '必填', 'required', 'false', '2', 1598, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6bbcdf8bc4474a68902125b461cad7fc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8b53711e838d43ca87eb71196a98f9fb', '禁止修改', 'disabled', 'false', '2', 1599, '1', '2024-06-17 15:52:42', '1', '2024-06-17 15:52:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8d3ee0056e9d4484950fe4c817ea0c99', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '显示名', 'title', '客户状态', '2', 1600, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('705831a3fb0947b3a9005628d4efe21d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '宽度', 'row', '12', '2', 1601, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('568984947ab9409a944fcda262630c62', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '单元格宽度', 'width', NULL, '2', 1602, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('773a0a0d359049bba2ad3ea0c1102966', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '数据类型', 'type', 'input', '2', 1603, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ffa5b746390e4631bde218089e8727d8', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '必填', 'required', 'false', '2', 1604, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c3174b51631d4418844a6f50709bdd5b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '4507c25134574f1795e5bfadb14d7a72', '禁止修改', 'disabled', 'false', '2', 1605, '1', '2024-06-17 15:53:04', '1', '2024-06-17 15:53:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a1a6bdac8d3475c863da8a94b09f50f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '显示名', 'title', '启用状态', '2', 1606, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fef9116f141f4acd838dd643938497ed', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '宽度', 'row', '12', '2', 1607, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e73c42f0d68a4cc6a34abf899ded46a3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '单元格宽度', 'width', NULL, '2', 1608, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('610f6dc7cf3c4a309bf3587eacf5f431', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '数据类型', 'type', 'input', '2', 1609, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('619ecdd009de4545a6aea56a981ce258', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '必填', 'required', 'false', '2', 1610, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f5f249a703049d39619db3ae37405f7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'f0d5f86bcfd14a0094b630eb57723b40', '禁止修改', 'disabled', 'false', '2', 1611, '1', '2024-06-17 15:53:39', '1', '2024-06-17 15:53:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2d2e0df959bf471ea2cf498e0877f3d6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '显示名', 'title', '客户名称', '2', 1612, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a86e23b991194db886fad003be7b56e7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '宽度', 'row', '12', '2', 1613, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7f63e93347fd4d91b32d5c2868257fa1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '单元格宽度', 'width', NULL, '2', 1614, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('137f6581a3a545d5b86c25901f61d925', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '数据类型', 'type', 'input', '2', 1615, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5fa82dd794924714a3ba41bb68c12a9c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '必填', 'required', 'false', '2', 1616, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f00b9682fe9b49c9bb3a37ea2bb748c6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '1640bc449339460c9a7908585b55c1c2', '禁止修改', 'disabled', 'false', '2', 1617, '1', '2024-06-17 15:54:13', '1', '2024-06-17 15:54:13', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5fcd3fffd0664f4c811d80e12e1b726a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '显示名', 'title', '国家/地区', '2', 1618, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f39087416acd4d018e53b730bab08c80', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '宽度', 'row', '12', '2', 1619, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('67c5f9dec3004869b918060f8f3c5338', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '单元格宽度', 'width', NULL, '2', 1620, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('beddcca3e1c84dcaa3eec2a4b8b2c27d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '数据类型', 'type', 'input', '2', 1621, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2114044510e340a5a64073979240ebda', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '必填', 'required', 'false', '2', 1622, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43032889c1ab4f5fbdea688fe4a22b4b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'd1c09daabd944f519f37d97396d72411', '禁止修改', 'disabled', 'false', '2', 1623, '1', '2024-06-17 15:54:38', '1', '2024-06-17 15:54:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9d79be4201f94c5783aca8ad4c8fef18', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '显示名', 'title', '客户基本分类', '2', 1624, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d6c2779efdc74840a280b4f562e9a25a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '宽度', 'row', '12', '2', 1625, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('efc69febb48a412bafc60815b56a284d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '单元格宽度', 'width', NULL, '2', 1626, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a5abc8f88aac49b6b6f0796c3fd04407', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '数据类型', 'type', 'input', '2', 1627, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2ac527dff4804520adb43175552aeb76', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '必填', 'required', 'false', '2', 1628, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('df8355017f354a14aee814d26e35331a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b0ec59f4702c48dd9f9919ca9a44dd12', '禁止修改', 'disabled', 'false', '2', 1629, '1', '2024-06-17 15:55:46', '1', '2024-06-17 15:55:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cd25e2eabc76430ea894b0e57d33fd20', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '显示名', 'title', '所属集团', '2', 1630, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f495ec2d4fa4cc0912481beaabe374f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '宽度', 'row', '12', '2', 1631, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dbe538d5e6134859a1d6b2aa92bcab64', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '单元格宽度', 'width', NULL, '2', 1632, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2dcd76a704a14575b8c9a83af8f62dda', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '数据类型', 'type', 'input', '2', 1633, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39358bc6169642fab5325dd94ea323c9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '必填', 'required', 'false', '2', 1634, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7baea3329d04b85a374ef6b38356cf7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '3e1b825f6e444b1ea04463462f36f1f7', '禁止修改', 'disabled', 'false', '2', 1635, '1', '2024-06-17 15:56:14', '1', '2024-06-17 15:56:14', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('48b30d9d59cc4df1914a9be370b6a5e9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '显示名', 'title', '所属组织', '2', 1636, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6d015d6c0ad042d8bc4fb2fb86e88196', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '宽度', 'row', '12', '2', 1637, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1eb3f8d3959d4630bf09ee797abf5d19', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '单元格宽度', 'width', NULL, '2', 1638, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02f3b91f10f34198a2da03f97b928b31', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '数据类型', 'type', 'treeselect', '2', 1639, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('92151a8a096247c38069de7a24a9bdc0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '必填', 'required', 'false', '2', 1640, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('91c1ce9be52d4a18b594943401cd76ab', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '禁止修改', 'disabled', 'false', '2', 1641, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3ba1a9ae3f734d5391088340e5c1a035', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', '服务名称', 'service', 'mdm_org', '2', 1642, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39bfae89b9d74c659d8d4ac429050374', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', 'label', 'label', 'org_name', '2', 1643, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('faf0b3e3eee6456290b7dd1d1f40b6fc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', 'value', 'value', 'id', '2', 1644, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b5d1208d04514a6683cfc3c25ca30b4e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '2c07212e26f746369a5cbb724ad2698f', 'upId', 'upId', 'org_fatherorg', '2', 1645, '1', '2024-06-17 15:56:42', '1', '2024-06-17 15:56:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1b20c097c0fb455192c54c5a4088b2ec', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '显示名', 'title', '纳税人登记号', '2', 1646, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42006fe6613642819c69c72cf6c3445a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '宽度', 'row', '12', '2', 1647, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('595447f48d254302a40c51f5238d630b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '单元格宽度', 'width', NULL, '2', 1648, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('296d5665080a4f738e6f2b2c76f7f3dc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '数据类型', 'type', 'input', '2', 1649, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2af5542d894347a5a1a92f8624cefaa8', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '必填', 'required', 'false', '2', 1650, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('47e5032782c54b8da0221dd2c35ea8f0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'b637be20e163468aaad0d1e493e9e7ad', '禁止修改', 'disabled', 'false', '2', 1651, '1', '2024-06-17 15:57:05', '1', '2024-06-17 15:57:05', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5df883cd54074fb5bed7f9ae0f56059d', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '显示名', 'title', '网点全称', '2', 1652, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4a44c25015b9493d863703f2b7362acb', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '宽度', 'row', '12', '2', 1653, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('df1a1748cb1e4bff8031f2a9e508fafd', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '单元格宽度', 'width', NULL, '2', 1654, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('878fba1e3437472097e7d4bbb2cb99e2', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '数据类型', 'type', 'input', '2', 1655, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a82424b5958041059d8328ddfe13a3d3', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '必填', 'required', 'false', '2', 1656, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7df6db566a0a405a89b7f138d6c84cb2', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '602bc448cdb94072ac7b44df02ca09f9', '禁止修改', 'disabled', 'false', '2', 1657, '1', '2024-06-17 16:01:10', '1', '2024-06-17 16:01:10', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bdd1180ab951435db9ddcd7193e91613', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '显示名', 'title', '联行号', '2', 1658, '1', '2024-06-17 16:02:23', '1', '2024-06-17 16:02:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c046f88dfe454235bfffbd7e8121288c', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '宽度', 'row', '12', '2', 1659, '1', '2024-06-17 16:02:23', '1', '2024-06-17 16:02:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2e40159a597f48bd88a5d114f505c71c', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '单元格宽度', 'width', NULL, '2', 1660, '1', '2024-06-17 16:02:24', '1', '2024-06-17 16:02:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1c8bc0e13d384c908a5355a0be491b40', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '数据类型', 'type', 'input', '2', 1661, '1', '2024-06-17 16:02:24', '1', '2024-06-17 16:02:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4efc503c0dd4482dab06ce50e9e01d9f', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '必填', 'required', 'false', '2', 1662, '1', '2024-06-17 16:02:24', '1', '2024-06-17 16:02:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec96b6ae44c34ef9ad897291db2fae00', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'fbfacad799e047cf816a492ea3b511a2', '禁止修改', 'disabled', 'false', '2', 1663, '1', '2024-06-17 16:02:24', '1', '2024-06-17 16:02:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5311ce84c5f94442a70ce3871526bcd9', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '显示名', 'title', '银行行别代码', '2', 1664, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c650a6d2b32d486d9044f5a385cd8460', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '宽度', 'row', '12', '2', 1665, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c7df56a9e88e4ffa88caa81a2fba123b', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '单元格宽度', 'width', NULL, '2', 1666, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f34c2239ca7c458a83be112f48fb07f5', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '数据类型', 'type', 'input', '2', 1667, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5f0c2bc639174d999a9482676ebcd5f6', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '必填', 'required', 'false', '2', 1668, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('617030046c924bd98254cb341fb2548e', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'a60fea18e6c041059a528cc46acc9cc1', '禁止修改', 'disabled', 'false', '2', 1669, '1', '2024-06-17 16:02:49', '1', '2024-06-17 16:02:49', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac38a6e291d244259bb0caa083e3ca30', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '显示名', 'title', '所在省', '2', 1670, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3278eae94cb44548636a4d568267028', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '宽度', 'row', '12', '2', 1671, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('68c58c1ad1ee451d99a4f168b41b3eb3', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '单元格宽度', 'width', NULL, '2', 1672, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69b0a42271764c6bbc3cc9cf5042a551', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '数据类型', 'type', 'input', '2', 1673, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d0af5171c2a4f599bba7f78164a8b81', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '必填', 'required', 'false', '2', 1674, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('669eea62152e4a0793a8fcf4ad77fb7a', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', 'e0ab6a9a0345485a9b755d796d2bacca', '禁止修改', 'disabled', 'false', '2', 1675, '1', '2024-06-17 16:03:16', '1', '2024-06-17 16:03:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c89d0340ab874a6489d4150762c917d6', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '显示名', 'title', '所在省编码', '2', 1676, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7529aaade47443c38459d8c849c22097', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '宽度', 'row', '12', '2', 1677, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d9a5b4e5f9194efd9afd555a56b15dfa', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '单元格宽度', 'width', NULL, '2', 1678, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6ee59375c2d142638ef83827476db273', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '数据类型', 'type', 'input', '2', 1679, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7a3c4d09816447a97c6c48037f28ccf', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '必填', 'required', 'false', '2', 1680, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9ee9aeb4e24f484a9817294607ddb37a', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '0cea1a2ebf0f4114b77731ed44111340', '禁止修改', 'disabled', 'false', '2', 1681, '1', '2024-06-17 16:03:51', '1', '2024-06-17 16:03:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29c0cd00fbe844e498d86a0ac6d37082', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '显示名', 'title', '所在市', '2', 1682, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ab72135cf89a419485b5bd4063f84d0f', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '宽度', 'row', '12', '2', 1683, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ef98c83cbe2849528f20521d22b35058', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '单元格宽度', 'width', NULL, '2', 1684, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2649a62e60f44df6a004deed34f58cac', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '数据类型', 'type', 'input', '2', 1685, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2ba4d875e64d4d84bf8fca4e53b88c02', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '必填', 'required', 'false', '2', 1686, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3f4fd1cc16947aea801ab916f59deb8', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '861f51e9bc3d47e19ce0a034ca0cabe9', '禁止修改', 'disabled', 'false', '2', 1687, '1', '2024-06-17 16:04:16', '1', '2024-06-17 16:04:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2026adec19f044ebaffbf35a242547fb', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '显示名', 'title', '所在市编码', '2', 1688, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5d59d86a29474dc7a458da4dcdadc0c8', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '宽度', 'row', '12', '2', 1689, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8421d29441d347c4ba11c311ac2681d5', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '单元格宽度', 'width', NULL, '2', 1690, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('df466663e2f040dd87bf83db07f3be3e', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '数据类型', 'type', 'input', '2', 1691, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2def4b66397e47ee89b951f7906b99e8', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '必填', 'required', 'false', '2', 1692, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4b101ed41ee0431ca0baa286dbe882a7', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '8e605ae1210c43a69dae9416b34823dd', '禁止修改', 'disabled', 'false', '2', 1693, '1', '2024-06-17 16:04:39', '1', '2024-06-17 16:04:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9252fdecbb53458785534883b5ec102a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '显示名', 'title', '银行', '2', 1694, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06baab2b8fd94ec9ab7de3381ccfd70e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '宽度', 'row', '12', '2', 1695, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a1ac7db58dbb483d85d809c404a80d99', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '单元格宽度', 'width', NULL, '2', 1696, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a30334e69f2949e5a67890a9156f02fe', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '数据类型', 'type', 'select', '2', 1697, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f926de5e15534a19a9ddfa135fbabb53', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '必填', 'required', 'false', '2', 1698, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a3d062242b274785a9c492d59e47ece7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '禁止修改', 'disabled', 'false', '2', 1699, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0d82de458b214713b3dcf115dfd412d2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', '服务名称', 'service', 'mdm_bank', '2', 1700, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('18364729c5ca4af3aa6ced565053d5d0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', 'label', 'label', 'bank_name', '2', 1701, '1', '2024-06-17 16:07:35', '1', '2024-06-17 16:07:35', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('908cc53877484220a2c44fcaa158445b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'typeOptionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '4f773ae6e95e487c859db420fc3ba92b', 'value', 'value', 'id', '2', 1702, '1', '2024-06-17 16:07:36', '1', '2024-06-17 16:07:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('acba9d2fd5d34eed89c1452546856d0b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '显示名', 'title', '银行', '2', 1703, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('05c741ca1fbe4b649e8237c75d957435', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '宽度', 'row', '12', '2', 1704, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af25a096dfad4910940a9ec6646b9eb6', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '单元格宽度', 'width', NULL, '2', 1705, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cc308842110e401ca4ad50bf6e94afbc', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '数据类型', 'type', 'select', '2', 1706, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0305385cfd434a63b450ca77fcbe2a7f', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '必填', 'required', 'false', '2', 1707, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('534566fefedb43ada559b5c72621959f', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '禁止修改', 'disabled', 'false', '2', 1708, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54a1841920ce4e7fb8ecd1daa76d1399', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', '服务名称', 'service', 'mdm_bank', '2', 1709, '1', '2024-06-17 16:11:36', '1', '2024-06-17 16:11:36', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('37d0a75a009543d982dbc5f501f20389', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', 'label', 'label', 'bank_name', '2', 1710, '1', '2024-06-17 16:11:37', '1', '2024-06-17 16:11:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2f0453081a57451ea5c4b991d7397662', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5ae4d4a2cec4437da82539d90d5def3f', '6c7b2dc32c7c48ddacd52d1da6c56a11', 'value', 'value', 'id', '2', 1711, '1', '2024-06-17 16:11:37', '1', '2024-06-17 16:11:37', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7c4b4c918a7349c280a817e4ce11f49a', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '显示名', 'title', '供应商编码', '2', 1712, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c04e4ab6dfe7454cbe2f2852aadbf60c', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '宽度', 'row', '12', '2', 1713, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6d3f0c40f96466d9cf441ae6098b3ca', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '单元格宽度', 'width', NULL, '2', 1714, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9ec01a98d34640e09d168f102ec0693f', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '数据类型', 'type', 'input', '2', 1715, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('44034aa175a24139a37faf0a6eacb675', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '必填', 'required', 'false', '2', 1716, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d1f7785540c14e1596bcf54d96620c47', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '12499335252b40a895a7ffe1853720c0', '禁止修改', 'disabled', 'false', '2', 1717, '1', '2024-06-17 16:12:29', '1', '2024-06-17 16:12:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('198c0b1c27e54e5f8945e6d0770f9330', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '显示名', 'title', '供应商类型', '2', 1718, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dd72c56367d7454ca88173142c9922d2', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '宽度', 'row', '12', '2', 1719, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ef98c0050ecc4117a6587e03ae8b2cdc', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '单元格宽度', 'width', NULL, '2', 1720, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('119377871e954ae0b77e93ed6184a3b4', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '数据类型', 'type', 'input', '2', 1721, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('13b8f9097ef64daa83060dab523bdb7b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '必填', 'required', 'false', '2', 1722, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('909022b41060479bad7c8f8178d14824', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'f728cc8206de4bf782bba3710e528019', '禁止修改', 'disabled', 'false', '2', 1723, '1', '2024-06-17 16:12:48', '1', '2024-06-17 16:12:48', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ea3b28a126324ab8ad103755b9f31693', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '显示名', 'title', '供应商状态', '2', 1724, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3e120397db44ac1a15a29a850451a90', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '宽度', 'row', '12', '2', 1725, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da9a88be1dc64c95bf0b457d01be2457', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '单元格宽度', 'width', NULL, '2', 1726, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5c68a0833e654100b0f9ae68876e0de0', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '数据类型', 'type', 'input', '2', 1727, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('58fc0d5e1132487ba84a7dc00903ccda', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '必填', 'required', 'false', '2', 1728, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('683e95d6cae540d8aae0b984719543ce', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '3c3ed478a40640d9a4dda69d41dcd11e', '禁止修改', 'disabled', 'false', '2', 1729, '1', '2024-06-17 16:13:03', '1', '2024-06-17 16:13:03', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1fd2357b8690480d918d9d24a91ff7e0', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '显示名', 'title', '启用状态', '2', 1730, '1', '2024-06-17 16:13:21', '1', '2024-06-17 16:13:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8cf46783b75041f6805a081f44e5880b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '宽度', 'row', '12', '2', 1731, '1', '2024-06-17 16:13:21', '1', '2024-06-17 16:13:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('35aa74e66aa14508953b464b9aea0a78', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '单元格宽度', 'width', NULL, '2', 1732, '1', '2024-06-17 16:13:22', '1', '2024-06-17 16:13:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fdc77c58cece441b9a2746c8657d1ec2', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '数据类型', 'type', 'input', '2', 1733, '1', '2024-06-17 16:13:22', '1', '2024-06-17 16:13:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39a6f7ae1c85414a8b07312e5d19733c', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '必填', 'required', 'false', '2', 1734, '1', '2024-06-17 16:13:22', '1', '2024-06-17 16:13:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e2208c408c7b4797be8a956870caf328', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '77c9dd675e4f4a3b877da307f6ff79de', '禁止修改', 'disabled', 'false', '2', 1735, '1', '2024-06-17 16:13:22', '1', '2024-06-17 16:13:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('08e4729106624743b0e008140789398e', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '显示名', 'title', '供应商名称', '2', 1736, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a499f9e4bf2f4729b07765a1e5b65f1c', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '宽度', 'row', '12', '2', 1737, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3d40274c6323429988a24e3b9137c11e', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '单元格宽度', 'width', NULL, '2', 1738, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d6ed9ad7b3f0441982f7f42cd533c80c', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '数据类型', 'type', 'input', '2', 1739, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da69cb438ead4d06b77fda21b7ab2a44', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '必填', 'required', 'false', '2', 1740, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('75c65f1f3a21413e96d5cadb3fbd5a3d', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '98cbc7bd413b4b618a1cefa3ef028fa3', '禁止修改', 'disabled', 'false', '2', 1741, '1', '2024-06-17 16:13:38', '1', '2024-06-17 16:13:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ae3f340da94482392e8b668a3608bf3', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '显示名', 'title', '国家/地区', '2', 1742, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3789f8fd981245eeb87f5d2fd4eba2eb', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '宽度', 'row', '12', '2', 1743, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c94b64dccc9a47f7bacdf1eb30b3b785', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '单元格宽度', 'width', NULL, '2', 1744, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d6f9c71ac4340649f4a41a866e89cd1', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '数据类型', 'type', 'input', '2', 1745, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a1d78601e3e42ccbff4544846e3f983', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '必填', 'required', 'false', '2', 1746, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('60fe75437ca249e285e7d38b7086d194', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '1fb4a0945ce44a17b2d5cdb20f7e4554', '禁止修改', 'disabled', 'false', '2', 1747, '1', '2024-06-17 16:14:16', '1', '2024-06-17 16:14:16', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('74eb25eb46c54f8cbfb322ccae0b3155', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '显示名', 'title', '供应商基本分类', '2', 1748, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9b7f9c31569141f6a9815675b9cf1f8b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '宽度', 'row', '12', '2', 1749, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c852deb5362844aa9317997d13b2ade5', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '单元格宽度', 'width', NULL, '2', 1750, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be6f967ffb4144b682a2c80b4e486fe7', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '数据类型', 'type', 'input', '2', 1751, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9efa4aadd60e4602a9890ce146e9fd0d', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '必填', 'required', 'false', '2', 1752, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7e8c061222bd4173898b724086a0ee0c', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '57fc0e875c0046c78236a419186f9219', '禁止修改', 'disabled', 'false', '2', 1753, '1', '2024-06-17 16:14:34', '1', '2024-06-17 16:14:34', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39ed95c7ca7146ec8863ae85bf2f6753', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '显示名', 'title', '所属集团', '2', 1754, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9597e092138b45fc87f2b11163676d6b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '宽度', 'row', '12', '2', 1755, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fe0488a5b12d4990bac34df79585d202', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '单元格宽度', 'width', NULL, '2', 1756, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4d5a326eee8a4582a57868dd84e6c9aa', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '数据类型', 'type', 'input', '2', 1757, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8e338b4df10a44de9604cea46fd106b3', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '必填', 'required', 'false', '2', 1758, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f87615128c8949fe8cfb837aa3d885ac', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'd33e18ea98d046f782e3d3d848fc9e68', '禁止修改', 'disabled', 'false', '2', 1759, '1', '2024-06-17 16:14:52', '1', '2024-06-17 16:14:52', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ffe4fa7401b94d1e98d695ca8db91530', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '显示名', 'title', '所属组织', '2', 1760, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c510d59d3dc4ce0bf43b6ab877aaa4b', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '宽度', 'row', '12', '2', 1761, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('664a0dd4ff904c5d924a27f4869940df', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '单元格宽度', 'width', NULL, '2', 1762, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9e4d03680fb4cc58bf9b0bfdfd4c629', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '数据类型', 'type', 'treeselect', '2', 1763, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b180afd74741486da11ffd4ae0fa3f0e', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '必填', 'required', 'false', '2', 1764, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b5f50b907cfe4fb09e8926d3595607aa', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '禁止修改', 'disabled', 'false', '2', 1765, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dafceb9813554ea8ac2670c136ca957f', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', '服务名称', 'service', 'mdm_org', '2', 1766, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3accf993f79748978fcf5242f3965955', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', 'label', 'label', 'org_name', '2', 1767, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c8cc1bf625a643d080473fea27df775d', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', 'value', 'value', 'id', '2', 1768, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fc814516e9a34a15a07414c87a5f86dd', '30abda9cd2ed4d01897e77d89804713a', 'typeOptionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', '39a8c26b97f44878ba099436954e173f', 'upId', 'upId', 'org_fatherorg', '2', 1769, '1', '2024-06-17 16:15:21', '1', '2024-06-17 16:15:21', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1b4675341239411b98e077baaccfc981', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '显示名', 'title', '纳税人登记号', '2', 1770, '1', '2024-06-17 16:15:40', '1', '2024-06-17 16:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a775ae036e064be3a57c95e2dc7f09f8', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '宽度', 'row', '12', '2', 1771, '1', '2024-06-17 16:15:40', '1', '2024-06-17 16:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1637ec5e8baa4582815e36bb2da3d4cc', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '单元格宽度', 'width', NULL, '2', 1772, '1', '2024-06-17 16:15:40', '1', '2024-06-17 16:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c42c1ce1eca54b6fb25ffd7d7de91ef2', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '数据类型', 'type', 'input', '2', 1773, '1', '2024-06-17 16:15:40', '1', '2024-06-17 16:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d5d374eaf2f6458a92ce84e91eefdf29', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '必填', 'required', 'false', '2', 1774, '1', '2024-06-17 16:15:41', '1', '2024-06-17 16:15:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b1c25602cc2d4cad94bead1da48c1913', '30abda9cd2ed4d01897e77d89804713a', 'optionRuleForm', '5a0e62eeed444f359c2cfc4282b2ede0', 'c5847e6c74f342b19d2c5f7d59bbc456', '禁止修改', 'disabled', 'false', '2', 1775, '1', '2024-06-17 16:15:41', '1', '2024-06-17 16:15:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('369036c7df7c45a393ab65fc8f4a7c83', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '显示名', 'title', '出生日期', '2', 1776, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b96cfd8e7ca24f7889fa20a280610a87', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '宽度', 'row', '12', '2', 1777, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6d9baa9d17ef43b0abd880908616b9dd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '单元格宽度', 'width', NULL, '2', 1778, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd9810db805747189bb3b3e6f5d21641', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '数据类型', 'type', 'input', '2', 1779, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('28c27248cd9741e88ff62b2eedc1c2ca', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '必填', 'required', 'false', '2', 1780, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79a632fb19e0405cb6e45d34dd827e37', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cfa9151db73b40089b19f6723750bc45', '禁止修改', 'disabled', 'false', '2', 1781, '1', '2024-06-17 16:19:27', '1', '2024-06-17 16:19:27', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('99213dcb055d4bdcb8dbcf67f514cf7c', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '显示名', 'title', '人员编码', '2', 1782, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('49d6d793b5a243cba9b9acfd90856242', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '宽度', 'row', '12', '2', 1783, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0128869dfdea4f359e3f9201afcbe7e2', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '单元格宽度', 'width', NULL, '2', 1784, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cb19677334ad4cae8a460a8e9960fdbd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '数据类型', 'type', 'input', '2', 1785, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c8f2c2b6b4154075994079a0048635dd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '必填', 'required', 'false', '2', 1786, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7d26e0a83b2c43339cd09ed4b5787f11', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '1330303a47ce4d36bd24cfc5b43d5a01', '禁止修改', 'disabled', 'false', '2', 1787, '1', '2024-06-17 16:19:47', '1', '2024-06-17 16:19:47', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e6a33d403f4d46578cf33c3df9014c3f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '显示名', 'title', '启用状态', '2', 1788, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7fead7b5ae96437da611b0e2ed8acd7e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '宽度', 'row', '12', '2', 1789, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('73feff5ab20e42d58e117f280e312368', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '单元格宽度', 'width', NULL, '2', 1790, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb1be6c5015745498da92afbbd421a2b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '数据类型', 'type', 'input', '2', 1791, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42ebee174c30420ba97ea57f9428a541', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '必填', 'required', 'false', '2', 1792, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bc3ab8f6d81a4aa8811796852b3622e3', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '9b6abb2b63f5473cbedcd0c92087e238', '禁止修改', 'disabled', 'false', '2', 1793, '1', '2024-06-17 16:20:12', '1', '2024-06-17 16:20:12', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3262d078e734f39a0cc547a2ee85811', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '显示名', 'title', '证件号', '2', 1794, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5855cafa7bbe454f82240de7fac120d8', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '宽度', 'row', '12', '2', 1795, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('894777ae941a48eb93b15b95732b8782', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '单元格宽度', 'width', NULL, '2', 1796, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee0ed674b9f549449ff2acf111d89753', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '数据类型', 'type', 'input', '2', 1797, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b0115b41a4f44b4281ace43919949062', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '必填', 'required', 'false', '2', 1798, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c5ea8105a385495ea5cda640e2e34a74', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '2e4fea80d9ab4aabbb754b999b373a27', '禁止修改', 'disabled', 'false', '2', 1799, '1', '2024-06-17 16:20:56', '1', '2024-06-17 16:20:56', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7fb4b3453b3c462fa3af7722b5ebf18b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '显示名', 'title', '证件类型', '2', 1800, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93f6eb2b001d4233966b601e919f7e61', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '宽度', 'row', '12', '2', 1801, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3d8c9e2a0f064029863278ddefd216bd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '单元格宽度', 'width', NULL, '2', 1802, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bace303b42d24ec6899ddad44a9f9005', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '数据类型', 'type', 'input', '2', 1803, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e0c69cec35cf4a839a8047b528472a98', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '必填', 'required', 'false', '2', 1804, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5b2aea285bd84e2c9020bfced3373b79', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'cff95ccaab714ff3ab6091c6b1c8b335', '禁止修改', 'disabled', 'false', '2', 1805, '1', '2024-06-17 16:21:20', '1', '2024-06-17 16:21:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a2f3c056d9342c9967b8eaa14e6f889', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '显示名', 'title', '参加工作日期', '2', 1806, '1', '2024-06-17 16:21:41', '1', '2024-06-17 16:21:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd48bc30392943458ed1870352609f95', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '宽度', 'row', '12', '2', 1807, '1', '2024-06-17 16:21:41', '1', '2024-06-17 16:21:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a9950ccff324c678e86156afcbe9bc9', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '单元格宽度', 'width', NULL, '2', 1808, '1', '2024-06-17 16:21:41', '1', '2024-06-17 16:21:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('551d7321a21b42b59875f96c132fcf55', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '数据类型', 'type', 'input', '2', 1809, '1', '2024-06-17 16:21:41', '1', '2024-06-17 16:21:41', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a9acb6e54394421d87e0394feb5f7487', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '必填', 'required', 'false', '2', 1810, '1', '2024-06-17 16:21:42', '1', '2024-06-17 16:21:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('41fa11b2565e4788a05306e2df7b3422', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'a00b93f6f8ff438a9863e84e2a95724a', '禁止修改', 'disabled', 'false', '2', 1811, '1', '2024-06-17 16:21:42', '1', '2024-06-17 16:21:42', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb64ec2facae4c11b50cbbcc0a03fe0b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '显示名', 'title', '姓', '2', 1812, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81b4648b5be847c0a09980510183a8e7', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '宽度', 'row', '12', '2', 1813, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f79983b5116e4cbaa1a35e05b76473cb', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '单元格宽度', 'width', NULL, '2', 1814, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1351c4291894485ebb880328168f1609', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '数据类型', 'type', 'input', '2', 1815, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bf4ff8cda46d42f88107fdfdd49415af', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '必填', 'required', 'false', '2', 1816, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6477c7ca2370469ebb55d597d6f26ec5', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'f1c0f8c4b5e54aaeb40873fa25e93280', '禁止修改', 'disabled', 'false', '2', 1817, '1', '2024-06-17 16:22:04', '1', '2024-06-17 16:22:04', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d3357b4d626442fd808aa60a5d3ae967', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '显示名', 'title', '助记码', '2', 1818, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64ead830cabd41b98faecf6afd580740', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '宽度', 'row', '12', '2', 1819, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6aa41546a35e47338ce2d9631102867b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '单元格宽度', 'width', NULL, '2', 1820, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('abde5d0c4dc8490a99bd1e408848a622', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '数据类型', 'type', 'input', '2', 1821, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e6e52cff2c4c4c5bbdf2b990599541fe', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '必填', 'required', 'false', '2', 1822, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9af3f4a8e3714b238ed1818114617cef', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '6302224f47174aa0b6872f4f9253523f', '禁止修改', 'disabled', 'false', '2', 1823, '1', '2024-06-17 16:22:25', '1', '2024-06-17 16:22:25', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be58c986c1a748029f62b1914f2cc10d', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '显示名', 'title', '手机', '2', 1824, '1', '2024-06-17 16:22:44', '1', '2024-06-17 16:22:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('157a16935cdd4020b6d2d17937801f57', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '宽度', 'row', '12', '2', 1825, '1', '2024-06-17 16:22:44', '1', '2024-06-17 16:22:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aa42333728ee426e9abcc9ed6b22035e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '单元格宽度', 'width', NULL, '2', 1826, '1', '2024-06-17 16:22:44', '1', '2024-06-17 16:22:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a2ab28a69e694b3d8e78bdc16d1afb48', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '数据类型', 'type', 'input', '2', 1827, '1', '2024-06-17 16:22:45', '1', '2024-06-17 16:22:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bed704614b3b455092e33090c9e232f6', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '必填', 'required', 'false', '2', 1828, '1', '2024-06-17 16:22:45', '1', '2024-06-17 16:22:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4445e82f4aeb4f85b33e538d7357bce6', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '306cb6065a8e450280af0acae1e1bfc4', '禁止修改', 'disabled', 'false', '2', 1829, '1', '2024-06-17 16:22:45', '1', '2024-06-17 16:22:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('236a43c116c5437c81f267b07f6d4146', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '显示名', 'title', '姓名', '2', 1830, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('518c8f37f5314ba9866aec0ac4afd0e5', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '宽度', 'row', '12', '2', 1831, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('aa8dd6eedcf94d0c86979258512b7761', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '单元格宽度', 'width', NULL, '2', 1832, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81e059e61bc040e9ba7c564f5bf032c6', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '数据类型', 'type', 'input', '2', 1833, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('338a4770fce946618168afd87c9e535f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '必填', 'required', 'false', '2', 1834, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('df1ae8b60a5341889845601f3f6d4aca', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '8f04b92dfa5949e2a18a34b00a390de1', '禁止修改', 'disabled', 'false', '2', 1835, '1', '2024-06-17 16:23:08', '1', '2024-06-17 16:23:08', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('03136fbd7f44462e80ceed7418bcd40b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '显示名', 'title', '昵称', '2', 1836, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('13039dbbd7f64b9cbb9643e09950543a', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '宽度', 'row', '12', '2', 1837, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0175a71e2e6247c680b80bdbe0a2d01e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '单元格宽度', 'width', NULL, '2', 1838, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b2053c5d6b15436ca3772a93b27a4930', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '数据类型', 'type', 'input', '2', 1839, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6c4e0fd897df40d8939070ed9ddfa7d6', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '必填', 'required', 'false', '2', 1840, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2158409663294bbb8698c31bbb61384b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '862617ad5e0c44289825b4f13db0f259', '禁止修改', 'disabled', 'false', '2', 1841, '1', '2024-06-17 16:23:29', '1', '2024-06-17 16:23:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93a0593992284587a2eb65dca4b0ba0d', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '显示名', 'title', '所属集团', '2', 1842, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('58bd7e2321fa499abed40ed46dd8f76c', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '宽度', 'row', '12', '2', 1843, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a54e62c919394ca2a54385513e117a27', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '单元格宽度', 'width', NULL, '2', 1844, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45b31171f4b64513ab5074ee67805828', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '数据类型', 'type', 'input', '2', 1845, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('760a70de9c704aac8b4f5d712de9a31d', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '必填', 'required', 'false', '2', 1846, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4b66cd47444b485183444b831ef976da', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '3143881b6c1e47b794194c5f3dd09d7c', '禁止修改', 'disabled', 'false', '2', 1847, '1', '2024-06-17 16:23:53', '1', '2024-06-17 16:23:53', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a0bb652662e4f0f842cbb550af2ec49', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '显示名', 'title', '所属业务单元', '2', 1848, '1', '2024-06-17 16:24:22', '1', '2024-06-17 16:24:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c1b571bb273540ef9f07d4b41838161f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '宽度', 'row', '12', '2', 1849, '1', '2024-06-17 16:24:22', '1', '2024-06-17 16:24:22', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7ee2f22b71254f608f085531b5b78997', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '单元格宽度', 'width', NULL, '2', 1850, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bc51128c59b542d989ca0523934e8732', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '数据类型', 'type', 'treeselect', '2', 1851, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5c848bccb93b491897a7b85e977f2e5a', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '必填', 'required', 'false', '2', 1852, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('923ed4ebc9c54765a3ed3f45d9cc60a3', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '禁止修改', 'disabled', 'false', '2', 1853, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ece6608e499a4843b3e51aa7a54304a9', 'ae9798c45d90408da5b9d6ec96da5b47', 'typeOptionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', '服务名称', 'service', 'mdm_org', '2', 1854, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d80a48c569da48c390e57d824902099d', 'ae9798c45d90408da5b9d6ec96da5b47', 'typeOptionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', 'label', 'label', 'org_name', '2', 1855, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bce0226b62804cd792ccf0a410b7d835', 'ae9798c45d90408da5b9d6ec96da5b47', 'typeOptionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', 'value', 'value', 'id', '2', 1856, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1726e7d521654bda8c4ec0fec2748b1f', 'ae9798c45d90408da5b9d6ec96da5b47', 'typeOptionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', '71877e5c1689470180d2b56e12e42455', 'upId', 'upId', 'org_fatherorg', '2', 1857, '1', '2024-06-17 16:24:23', '1', '2024-06-17 16:24:23', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02616e214ef64bd696b8ef0d22ecb73e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '显示名', 'title', '性别', '2', 1858, '1', '2024-06-17 16:24:44', '1', '2024-06-17 16:24:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('06811eb84e514478a20ee1a4c0995335', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '宽度', 'row', '12', '2', 1859, '1', '2024-06-17 16:24:44', '1', '2024-06-17 16:24:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ac2b2d732414db885417c371cb61278', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '单元格宽度', 'width', NULL, '2', 1860, '1', '2024-06-17 16:24:44', '1', '2024-06-17 16:24:44', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('24d09e4e2f5648ecaaaf9dd97ef4a6f0', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '数据类型', 'type', 'input', '2', 1861, '1', '2024-06-17 16:24:45', '1', '2024-06-17 16:24:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2acd3b6e59454d0b9bcb501404715313', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '必填', 'required', 'false', '2', 1862, '1', '2024-06-17 16:24:45', '1', '2024-06-17 16:24:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('399cd3bc03b6467a9001305d2312ec09', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a2eef41bd6a94d86a55918f03f0e3134', 'bf1de969df8a42d3b0387f0ab0292544', '禁止修改', 'disabled', 'false', '2', 1863, '1', '2024-06-17 16:24:45', '1', '2024-06-17 16:24:45', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45893fc4dcfb43f4b6fa4bc7aa363b68', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '显示名', 'title', '任职结束日期', '2', 1864, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bf5bb015242143c7a463647e8e4f60d9', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '宽度', 'row', '12', '2', 1865, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a12a94998c244db9014ffc5ae4468c2', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '单元格宽度', 'width', NULL, '2', 1866, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5acdf37556b9402587040570e86cf427', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '数据类型', 'type', 'input', '2', 1867, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d1cd1f21cfe94f29a849c1b414dfe4a7', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '必填', 'required', 'false', '2', 1868, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de191208d6b4469ca35ecd2bad1dc0ef', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '7cb35062557f42e7b1bebc5a7921ddf0', '禁止修改', 'disabled', 'false', '2', 1869, '1', '2024-06-17 16:26:01', '1', '2024-06-17 16:26:01', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e5129f14d444b2abc8b6d6c84322441', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '显示名', 'title', '任职开始日期', '2', 1870, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a03f78ac60df4f4fb65d75455e5d0a7a', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '宽度', 'row', '12', '2', 1871, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6fec1212d52c4602b781f3b2edf8df81', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '单元格宽度', 'width', NULL, '2', 1872, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dbb1a996f9f14d30926aeb1c9d79c9ea', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '数据类型', 'type', 'input', '2', 1873, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d050d8e747394ddc89b9c48b7d0f0ed0', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '必填', 'required', 'false', '2', 1874, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a056a9348b054ed3836013ebf6346745', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5d82691c50d54200a2e2cf4dc70defe8', '禁止修改', 'disabled', 'false', '2', 1875, '1', '2024-06-17 16:26:24', '1', '2024-06-17 16:26:24', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29fdf87e713b4faa93f97b608134b75b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '显示名', 'title', '主职', '2', 1876, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e5d38dbfa0fe4cab8182f05369c3495c', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '宽度', 'row', '12', '2', 1877, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1d3c66f494e54e6191412d885079a7dd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '单元格宽度', 'width', NULL, '2', 1878, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a9b73ba3c1548229c741e13b6827526', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '数据类型', 'type', 'input', '2', 1879, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4362d6c89f3a4df192ecf3921aa1872e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '必填', 'required', 'false', '2', 1880, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('94b9e13f3e3d4eff900dc020c2ae9106', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '禁止修改', 'disabled', 'false', '2', 1881, '1', '2024-06-17 16:26:46', '1', '2024-06-17 16:26:46', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7199a8e2f43142889bf2ef38efbbb5aa', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '显示名', 'title', '所在部门', '2', 1882, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f57d6b0e8794aa5906a518113ea5c8a', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '宽度', 'row', '12', '2', 1883, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('427dc1928e3f4376a567e5c839a6b205', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '单元格宽度', 'width', NULL, '2', 1884, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('deef3e7034614b98a883a6573588676c', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '数据类型', 'type', 'input', '2', 1885, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9401d457d2af46fa904c8178fc9cd79e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '必填', 'required', 'false', '2', 1886, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0f6ee97ed296499b84e13343d6a39c49', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '5aae049516ad41e4ad317528b35897a8', '禁止修改', 'disabled', 'false', '2', 1887, '1', '2024-06-17 16:27:09', '1', '2024-06-17 16:27:09', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a46a7af3e4774c439ae476bf44df33b8', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '显示名', 'title', '所属集团', '2', 1888, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4544e22b6d53439c8e1fa208756c24e0', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '宽度', 'row', '12', '2', 1889, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4df5d72171364050ad20e24f8048db3f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '单元格宽度', 'width', NULL, '2', 1890, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('07760e961a49433ebc45bf08310015bd', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '数据类型', 'type', 'input', '2', 1891, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5f0bdef5d05445aaa75664507524df8d', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '必填', 'required', 'false', '2', 1892, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f80fb3ba9ae941a2a25e994de284f86b', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '9644c8cf4d2245db905e00405bb18139', '禁止修改', 'disabled', 'false', '2', 1893, '1', '2024-06-17 16:27:28', '1', '2024-06-17 16:27:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b56f74208ff44f098bf5047800101ed8', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '显示名', 'title', '任职业务单元', '2', 1894, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29086bf3fbc64d5f9efb3f2161dc3306', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '宽度', 'row', '12', '2', 1895, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('909ddd96d19f463aa46627d721d9791e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '单元格宽度', 'width', NULL, '2', 1896, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('340bef223ab64ddfaee64db53b39e99c', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '数据类型', 'type', 'input', '2', 1897, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('18ad18ba864f446891d1a08a1ec8f3f5', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '必填', 'required', 'false', '2', 1898, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('03f7601444d44e46a9df092d9ddaaf3a', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '39df334f659f41779005c422a2dcce95', '禁止修改', 'disabled', 'false', '2', 1899, '1', '2024-06-17 16:27:51', '1', '2024-06-17 16:27:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6dcd9f6fab274e308b1d590b5760975f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '显示名', 'title', '岗位', '2', 1900, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('138f01c5445c4b4d9d079e82cd6d6f3f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '宽度', 'row', '12', '2', 1901, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9a3f7a869266433481e23b1085602102', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '单元格宽度', 'width', NULL, '2', 1902, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('62cba0c2f1654f0cb6f3d77ca872f9db', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '数据类型', 'type', 'input', '2', 1903, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7de60684de0d461eb884bd8883c641ff', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '必填', 'required', 'false', '2', 1904, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c24b2cfbc6404d43a4d2441de7283f7e', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '448d2c8a0a6f4d199b60054c130519c4', '禁止修改', 'disabled', 'false', '2', 1905, '1', '2024-06-17 16:28:17', '1', '2024-06-17 16:28:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('33fc9c82d11a4f4a9dc070191fafe6d4', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '显示名', 'title', '人员类别', '2', 1906, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6f6db901b4b64cbab1ac28ff3753af92', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '宽度', 'row', '12', '2', 1907, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fef9107bd3eb416c9ef22cab9b1a844f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '单元格宽度', 'width', NULL, '2', 1908, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b1a99a0954d44b09ad4b0fc771d5e3a4', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '数据类型', 'type', 'input', '2', 1909, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('04fb940d17474e67b1aa2ab1703e0184', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '必填', 'required', 'false', '2', 1910, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1f622c0803ad43a2ae0d80ef6ff45a26', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', 'a27f428aafb14b7488a9f1772687567e', '禁止修改', 'disabled', 'false', '2', 1911, '1', '2024-06-17 16:28:38', '1', '2024-06-17 16:28:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6e9c14213e746feab163e28e7829a11', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '显示名', 'title', '员工编号', '2', 1912, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b327a76d65fb4874bc574945b5233195', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '宽度', 'row', '12', '2', 1913, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6446808935d4bad9dfca756ff1f122f', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '单元格宽度', 'width', NULL, '2', 1914, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('433e92882b6044d2a4e60886f136dcaa', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '数据类型', 'type', 'input', '2', 1915, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40a17663646b42a586dc02bc41908261', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '必填', 'required', 'false', '2', 1916, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9b7ce9a4341a4c09b8acca9e1656d667', 'ae9798c45d90408da5b9d6ec96da5b47', 'optionRuleForm', 'a93e823b313d4685b033f56651146e30', '4cbca1ec95c343f990811fffbcb9ddc9', '禁止修改', 'disabled', 'false', '2', 1917, '1', '2024-06-17 16:28:58', '1', '2024-06-17 16:28:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d28871daa8744a53adb03b42b6d00aef', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '必填', 'required', 'true', '2', 1922, '1', '2024-06-20 17:20:04', '1', '2024-06-20 17:20:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9d6bebd99289462eb5dfe5fd89662dac', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '显示名', 'title', '账号', '2', 1930, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8fb3fa1194c6450fb98697bad68326e1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '宽度', 'row', '3', '2', 1931, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7063807f074d423697205e135c888580', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '单元格宽度', 'width', NULL, '2', 1932, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7ef99e212314f7c926be49878678146', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '数据类型', 'type', 'input', '2', 1933, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee0bb0eb732e4bd79fa8fcca2f8ed043', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '必填', 'required', 'false', '2', 1934, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f797f13f150b4a7a902504b266a8f378', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '禁止修改', 'disabled', 'false', '2', 1935, '1', '2024-06-20 18:54:57', '1', '2024-06-20 18:54:57', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a9b6e87467b401e9bd6a4fb9bf26b25', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '显示名', 'title', '联行号', '2', 1936, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ddfcbc1aa857441f99e20927901ab2bb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '宽度', 'row', '3', '2', 1937, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('94e79be4e4e842448538dc4b0b4a04ea', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '单元格宽度', 'width', NULL, '2', 1938, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e75dbd73b0374e75a75f951c34fecce9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '数据类型', 'type', 'input', '2', 1939, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d6137901596044ff9fb4345ac53cb7c1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '必填', 'required', 'false', '2', 1940, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7cd9dc2264bd487f9b7f31ffbb2f4ab5', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', 'b6b28ecbe48e480d94573dd30383fd39', '禁止修改', 'disabled', 'false', '2', 1941, '1', '2024-06-20 18:55:39', '1', '2024-06-20 18:55:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42624048a5e744ee857d6a713627e5b9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '显示名', 'title', '开户银行', '2', 1942, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ceba7af7a0264cbcab6cb1af40c3f98a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '宽度', 'row', '6', '2', 1943, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('32fd8c0e4abf4d52bebdcb4efe561863', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '单元格宽度', 'width', NULL, '2', 1944, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2beba02edb354bcaa7106e3fdfd393b9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '数据类型', 'type', 'input', '2', 1945, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('764e96abe8a2499da5088e8d2a1023ce', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '必填', 'required', 'false', '2', 1946, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b1a745e2868e4245969bd24de1b3838f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '0710afd06eba45ed863b7fb598bcd1ff', '禁止修改', 'disabled', 'false', '2', 1947, '1', '2024-06-20 19:08:32', '1', '2024-06-20 19:08:32', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cb3220e845264946a902cb5087056dc3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '显示名', 'title', '客户分类', '2', 1948, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('63dc81aee3a84814baa38f87f61b27c3', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '宽度', 'row', '12', '2', 1949, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69fc36a8bdae493399c6d8c7966c97fc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '单元格宽度', 'width', NULL, '2', 1950, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5313640fdbe2491c907d153be03e6896', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '数据类型', 'type', 'input', '2', 1951, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7cb69a66aaa4ca28523145d4a7e99cd', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '必填', 'required', 'false', '2', 1952, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('131d13abc2c341298fcadf332a1efa01', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', 'ce41de301b4740deb7b39ade148bd571', '禁止修改', 'disabled', 'false', '2', 1953, '1', '2024-06-24 16:59:33', '1', '2024-06-24 16:59:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('448854969f2f4050b691b017e8d68aef', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '显示名', 'title', 'data_id', '2', 1954, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa74c4b1adc042fdb383efbbafca1cae', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '宽度', 'row', '3', '2', 1955, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2f8d2a362e6142c4a3d90249ab1fca4f', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '单元格宽度', 'width', NULL, '2', 1956, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5429f300950c473daf0573b81c480c1b', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '数据类型', 'type', 'input', '2', 1957, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e798e49306143a0a685bdb2222b762e', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '必填', 'required', 'false', '2', 1958, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b76a850ab15147c480c51d8df31e96e0', 'fab2ed90cdde44b3be09e57e640ea157', 'optionRuleForm', '2d6c2fa1448f4b81a62bf398aeff0cb9', '5f6bce09d3bd4bdcbb2296bc3133ffc4', '禁止修改', 'disabled', 'false', '2', 1959, '1', '2024-06-25 09:19:17', '1', '2024-06-25 09:19:17', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e41967b9c85c4331939a036a90be9cb2', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '显示名', 'title', 'data_id', '2', 1960, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a78c423ba44a4f33806d5ca3344eedcf', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '宽度', 'row', '3', '2', 1961, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd547e2ec34449f68ca9b52fa510dfa0', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '单元格宽度', 'width', NULL, '2', 1962, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('358785db251841119adf139130917d02', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '数据类型', 'type', 'input', '2', 1963, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40e0e7ddbb0c454b89ba67ba248bbb54', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '必填', 'required', 'false', '2', 1964, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eba356f6cb794aac81a183f013e8a528', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '6702dfc2a6964293bedd24057a7b6232', '禁止修改', 'disabled', 'false', '2', 1965, '1', '2024-06-25 09:19:54', '1', '2024-06-25 09:19:54', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af6eeb2606b4475ca1188a47a75c1a0a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '显示名', 'title', 'data_id', '2', 1966, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ab656797524a48e4ab5a9e213ec43709', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '宽度', 'row', '3', '2', 1967, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6475e4102e9c42df9bd3cbc9eb6416fc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '单元格宽度', 'width', NULL, '2', 1968, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('24ad2b8730be43cbb4c8b5c8395b0e1f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '数据类型', 'type', 'input', '2', 1969, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3016aef6a524a3c88580ccbd89d7ed1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '必填', 'required', 'false', '2', 1970, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4fe18fdb25b642dbb508923ebd2e2a50', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', 'b773e61e7d864553ae2429c9ec196bd6', '8ea2cda26ccc4b5eada2d9312b555b3c', '禁止修改', 'disabled', 'false', '2', 1971, '1', '2024-06-25 09:20:20', '1', '2024-06-25 09:20:20', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('acb8a963e7ca4d9cba3456f6894ef3ce', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '显示名', 'title', 'data_id', '2', 1972, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1494761826d44957bf0390065cba921e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '宽度', 'row', '3', '2', 1973, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5b6de0ec0388463495467ae95dcda5c7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '单元格宽度', 'width', NULL, '2', 1974, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3b4d73c867ca4835939313091b60c3d0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '数据类型', 'type', 'input', '2', 1975, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64669bddfd0340469bc5d9b7165b10a9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '必填', 'required', 'false', '2', 1976, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('90deb5e191174ba097eb2fa72e88c772', 'cad628f90f3d4c1b8b9f880e9bb5a33f', 'optionRuleForm', '301c18b8e2fe4f618a8c744573e2c8f1', '2916b06c65294f54818c0d8477281005', '禁止修改', 'disabled', 'false', '2', 1977, '1', '2024-06-25 09:20:33', '1', '2024-06-25 09:20:33', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7d2e0c928b2646589a1676a162584602', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '显示名', 'title', '三方业务主键', '2', 2014, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e675de21a4e4fb8a352326bac719130', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '宽度', 'row', '12', '2', 2015, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b6da76bdc92496581fb312533a9e8d4', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '单元格宽度', 'width', NULL, '2', 2016, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53944d7728204fc1ae95fd59eb6f1657', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '数据类型', 'type', 'input', '2', 2017, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('681f2f9ac3604497bf5867e59c3da047', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '必填', 'required', 'false', '2', 2018, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cebfc4400ddb4402842b048fc70afc4d', '7b134ac29de4494a82f8a9302913e596', 'optionRuleForm', 'd207427df740413483e726dddab4b01e', 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '禁止修改', 'disabled', 'false', '2', 2019, '1', '2024-06-25 14:11:58', '1', '2024-06-25 14:11:58', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5232e4eb157a4393b77d9706d2374a57', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '显示名', 'title', '电话', '2', 2020, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da79a2a9c60a4c91b74bdcf715546efc', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '宽度', 'row', '12', '2', 2021, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38cfd3bd431644ab9067a599c7646335', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '单元格宽度', 'width', NULL, '2', 2022, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('56a5ed5642a64bc78c08b630574d0661', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '数据类型', 'type', 'input', '2', 2023, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79f1d53b7d9a4b9aa6063b3490a52213', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '必填', 'required', 'true', '2', 2024, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c9e35ecb6eaa4e3e93525be66632ab51', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '2d1f6aaf244047c9a34c56578b176a00', '禁止修改', 'disabled', 'false', '2', 2025, '1', '2024-06-25 15:28:39', '1', '2024-06-25 15:28:39', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d56b491a5f26431a948fd67f462768dd', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '显示名', 'title', '登录名', '2', 2032, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c278e32a3c44546bfe18c557ee19289', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '宽度', 'row', '12', '2', 2033, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3fd08e3509cf4604acc55fc08a3cf442', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '单元格宽度', 'width', NULL, '2', 2034, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0b55c4ce9a8449568704bd7d56c0e567', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '数据类型', 'type', 'input', '2', 2035, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dface9dc066143eba4f41c1853fbefc0', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '必填', 'required', 'true', '2', 2036, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('30ab9a9f5516406e961f0c8bf329bfc5', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '4bb2f414fd424f94a3504236d56ec9aa', '禁止修改', 'disabled', 'false', '2', 2037, '1', '2024-06-25 15:29:51', '1', '2024-06-25 15:29:51', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('abda88263e9045aeba14cd1b7fce1c45', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '显示名', 'title', '性别', '2', 2200, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64d037041a95454aa5b4b075bcf8f491', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '宽度', 'row', '12', '2', 2201, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7b1d3f03f6848b0a47937e5630f2231', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '单元格宽度', 'width', NULL, '2', 2202, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac05a2b7fb3d43ef9df0b438a5934ac4', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '数据类型', 'type', 'input', '2', 2203, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac2e46cffab84e2d8eb51963eda771e1', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '必填', 'required', 'false', '2', 2204, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('97e4ef1758324dbd9529ea4265d45aba', '8747f494dd7b4780873ad0616835a0f8', 'optionRuleForm', 'e481af68484748cf84f2baf2c3c44cb9', '8df6db8e166d4761ad7fc6e0e3829f7c', '禁止修改', 'disabled', 'false', '2', 2205, '1', '2024-06-27 15:34:38', '1', '2024-06-27 15:34:38', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de228af60a014c3f8dae7ad40e22f8c1', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '显示名', 'title', '组织编码', '2', 2206, '1', '2024-06-27 18:13:28', '1', '2024-06-27 18:13:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a962a4b07f1a4df59d17c30e0b7b5347', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '宽度', 'row', '12', '2', 2207, '1', '2024-06-27 18:13:28', '1', '2024-06-27 18:13:28', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2db962bc620440cb8318828bab734bab', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '单元格宽度', 'width', NULL, '2', 2208, '1', '2024-06-27 18:13:29', '1', '2024-06-27 18:13:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ba0fd71fad5347caab47cdc63c5b0535', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '数据类型', 'type', 'input', '2', 2209, '1', '2024-06-27 18:13:29', '1', '2024-06-27 18:13:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('34be817323d6459eb5a459f8df020c6c', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '必填', 'required', 'false', '2', 2210, '1', '2024-06-27 18:13:29', '1', '2024-06-27 18:13:29', 'Y', '0', '0'); +INSERT INTO mdm_module_db_fileds_rule (id, mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('531cbc61e9e04c649ed9e7732a48210c', '44662daad6a64b0fb5043339a4748a7b', 'optionRuleForm', '522f588712954b4a867213c91372d91c', 'd61d48043aa14f70a77320a5bd7e8044', '禁止修改', 'disabled', 'false', '2', 2211, '1', '2024-06-27 18:13:29', '1', '2024-06-27 18:13:29', 'Y', '0', '0'); + + +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5e23e678400b4a6b9d7792568b5a817a', 'fab2ed90cdde44b3be09e57e640ea157', '2', 'correspondent_number', 'correspondent_number', 19, '1', '2024-06-18 09:51:14', '1', '2024-06-18 09:55:10', 'Y', '0', '0'); +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a257f2de54d34084a1a81223b5cf50de', '44662daad6a64b0fb5043339a4748a7b', '1', 'org_name', 'org_fatherorg', 20, '1', '2024-06-20 11:01:22', '1', '2024-07-10 10:45:07', 'Y', '0', '0'); +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('94101b6b440447e798b656010282a37a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', '2', NULL, NULL, 21, '1', '2024-06-20 14:36:26', '1', '2024-06-20 14:36:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2bbbcbac2ea64509ae2b9dae34fc14b3', '8747f494dd7b4780873ad0616835a0f8', '2', NULL, NULL, 22, '1', '2024-06-24 10:09:28', '1', '2024-06-24 10:11:25', 'Y', '0', '0'); +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('720e2514b0b147df91eef030e666f254', 'ae9798c45d90408da5b9d6ec96da5b47', '2', NULL, NULL, 26, '1', '2024-06-25 11:45:57', '1', '2024-06-25 11:45:57', 'Y', '0', '0'); +INSERT INTO mdm_module_view (id, mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb6fa557f39447418db805c923ef31d3', '7b134ac29de4494a82f8a9302913e596', '2', NULL, NULL, 27, '1', '2024-06-25 14:15:53', '1', '2024-06-25 14:15:53', 'Y', '0', '0'); + + +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4361902b6c4747289c26562b05e694f6', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '1', 'new', 611, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e47d479aab341a68d11e24a89002b0e', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '2', 'resize', 612, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c23636528742441c832922611419773e', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '3', 'search', 613, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ffacc7819d0744e89843ae3146ce5808', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '4', 'edit', 614, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b76ae0ca988c4ef396a3f7ddcec5db5e', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '5', 'dele', 615, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('61e139afe31041cab7750a48957582e2', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '6', 'view', 616, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6405b0ccd3234b598b31532fb585411a', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '7', 'send', 617, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9678172a1e9d4cdda6e1f9731f74ba95', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1', 'new', 625, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('901000fe81d0489ca09548c68859bbdc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2', 'resize', 626, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b4225f28c2c04134993c4a76689c4a2d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '3', 'search', 627, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e64028fac5af423e952ceabba6c4d42e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4', 'edit', 628, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4ee79ab961d646c2b1ef4ce5342fc166', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '5', 'dele', 629, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('773e0c0884ac4674ab5ff3fd285e82a7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6', 'view', 630, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2a043cda891d4a90865d696e24fd70ec', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '7', 'send', 631, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ba7fc77ce27d4f3d990b5d3c39536e4f', '8747f494dd7b4780873ad0616835a0f8', NULL, '1', 'new', 639, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7379bd96b9784a62be84afe7e17922d6', '8747f494dd7b4780873ad0616835a0f8', NULL, '3', 'search', 640, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c366a7c90f44a5ca9aea73b4932ac57', '8747f494dd7b4780873ad0616835a0f8', NULL, '2', 'resize', 641, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('195478bb591c4ef893f5e1ba0de2e66a', '8747f494dd7b4780873ad0616835a0f8', NULL, '4', 'edit', 642, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01453a8b6412431c99c998a82a1d5f9d', '8747f494dd7b4780873ad0616835a0f8', NULL, '5', 'dele', 643, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('358af69e484a4bb59de9482a4c6a9382', '8747f494dd7b4780873ad0616835a0f8', NULL, '7', 'send', 644, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('072ff13e2754488fa28b2d0f60574bfc', '8747f494dd7b4780873ad0616835a0f8', NULL, '6', 'view', 645, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c32a0fd792084ab99bcb5a515fde085d', '44662daad6a64b0fb5043339a4748a7b', NULL, '1', 'new', 646, '1', '2024-06-25 09:57:43', '1', '2024-06-25 09:57:43', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8060db766c1c4243863981d2f33ee0d4', '44662daad6a64b0fb5043339a4748a7b', NULL, '2', 'resize', 647, '1', '2024-06-25 09:57:43', '1', '2024-06-25 09:57:43', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('199b472411ba4d26ad458217996a42b0', '44662daad6a64b0fb5043339a4748a7b', NULL, '3', 'search', 648, '1', '2024-06-25 09:57:44', '1', '2024-06-25 09:57:44', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a7dab5ad8cf04b459863755bcff378d7', '44662daad6a64b0fb5043339a4748a7b', NULL, '4', 'edit', 649, '1', '2024-06-25 09:57:44', '1', '2024-06-25 09:57:44', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('88ca592b967343f98ce315317272c7e0', '44662daad6a64b0fb5043339a4748a7b', NULL, '5', 'dele', 650, '1', '2024-06-25 09:57:44', '1', '2024-06-25 09:57:44', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8b5717ddc91a47c6bd79238240920f88', '44662daad6a64b0fb5043339a4748a7b', NULL, '6', 'view', 651, '1', '2024-06-25 09:57:44', '1', '2024-06-25 09:57:44', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4001af3c04564d71801f3450f2fbb4ec', '44662daad6a64b0fb5043339a4748a7b', NULL, '7', 'send', 652, '1', '2024-06-25 09:57:44', '1', '2024-06-25 09:57:44', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8a8d2618ea2c4296ba26ac29ae32b435', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1', 'new', 660, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('de743144ecc74cdd9c752ad0f80a7d7d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2', 'resize', 661, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c9aaf14673b43ac91cf3ffa10db7703', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3', 'search', 662, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cc929b12b11240b78d3229cd9667a951', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '4', 'edit', 663, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c70abf7d32da4984a13a6529c488305d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5', 'dele', 664, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('87e9b552958844a29add85a4215fdebd', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6', 'view', 665, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('14a56fa18c704f6aa09b1ca1bb598cd9', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '7', 'send', 666, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('171452e0c7e04b1aa3e13ed250236168', '7b134ac29de4494a82f8a9302913e596', NULL, '1', 'new', 674, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c1fda50bafc44efda75f55518e634dce', '7b134ac29de4494a82f8a9302913e596', NULL, '2', 'resize', 675, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b62841d33055410ba1097b6d9fa4ab3f', '7b134ac29de4494a82f8a9302913e596', NULL, '3', 'search', 676, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2867605511fc4ee2b42c543aa6acf241', '7b134ac29de4494a82f8a9302913e596', NULL, '4', 'edit', 677, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3e419c096dca4e329ca6d992c33556b5', '7b134ac29de4494a82f8a9302913e596', NULL, '5', 'dele', 678, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70ad71d995b2400eb62536272a67a5ff', '7b134ac29de4494a82f8a9302913e596', NULL, '6', 'view', 679, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO mdm_module_view_button (id, mdm_id, view_id, button_type, button_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3866c974e24e4757a507edf10abddc16', '7b134ac29de4494a82f8a9302913e596', NULL, '7', 'send', 680, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); + + +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('013ad9344f734c5eadc50ab9dc623cfa', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '602bc448cdb94072ac7b44df02ca09f9', '1', 657, '1', '2024-06-18 09:39:42', '1', '2024-06-18 09:39:42', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c4fd3e28423463ea69802f4a09a22a4', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'fbfacad799e047cf816a492ea3b511a2', '1', 658, '1', '2024-06-18 09:39:42', '1', '2024-06-18 09:39:42', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ae40ff768334ec09f6d311c49e9aeef', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'a60fea18e6c041059a528cc46acc9cc1', '1', 659, '1', '2024-06-18 09:39:42', '1', '2024-06-18 09:39:42', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5999bfc9a1194ba5bbcdbc8e263435ea', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '602bc448cdb94072ac7b44df02ca09f9', '3', 667, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be9d693fde0641f78364f62ec3f4c962', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'fbfacad799e047cf816a492ea3b511a2', '3', 668, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('34cc34ad36b24e3887af25edbf26cb40', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'a60fea18e6c041059a528cc46acc9cc1', '3', 669, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c711324325e40abb59b366c29af3a24', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'e0ab6a9a0345485a9b755d796d2bacca', '3', 670, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4b4fa001201b452f902ed1035a3c6159', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '0cea1a2ebf0f4114b77731ed44111340', '3', 671, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c2aa786126464c758ba35bca1814e98d', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '861f51e9bc3d47e19ce0a034ca0cabe9', '3', 672, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b13cff5925ea4e56983c7fe1af1ef55f', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '8e605ae1210c43a69dae9416b34823dd', '3', 673, '1', '2024-06-18 09:40:05', '1', '2024-06-18 09:40:05', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2917ce28174e425689dc83361c25f3a1', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '602bc448cdb94072ac7b44df02ca09f9', '4', 674, '1', '2024-06-18 09:40:14', '1', '2024-06-18 09:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('951c57b102d74e6da0cf90ce5a53c31e', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'fbfacad799e047cf816a492ea3b511a2', '4', 675, '1', '2024-06-18 09:40:14', '1', '2024-06-18 09:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a521d9943b844bfa247f4a6766734e0', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'a60fea18e6c041059a528cc46acc9cc1', '4', 676, '1', '2024-06-18 09:40:14', '1', '2024-06-18 09:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('12d41a0743bd414286ee6e7fb9accd10', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'e0ab6a9a0345485a9b755d796d2bacca', '4', 677, '1', '2024-06-18 09:40:14', '1', '2024-06-18 09:40:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('53b0a22451804c698c0d8ef980183f36', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '0cea1a2ebf0f4114b77731ed44111340', '4', 678, '1', '2024-06-18 09:40:15', '1', '2024-06-18 09:40:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a67e5649b6fd4c289f95dd260bc5fdad', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '861f51e9bc3d47e19ce0a034ca0cabe9', '4', 679, '1', '2024-06-18 09:40:15', '1', '2024-06-18 09:40:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f291f34c65a4e75aefde48aac5453d0', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '8e605ae1210c43a69dae9416b34823dd', '4', 680, '1', '2024-06-18 09:40:15', '1', '2024-06-18 09:40:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4836c7723f20498c8a721a2b8e34c3e5', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '602bc448cdb94072ac7b44df02ca09f9', '5', 681, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a25da0caa4964d5bbf8c05b12b7a0d20', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'fbfacad799e047cf816a492ea3b511a2', '5', 682, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7c33045098fd4204aa2d6d8130a409e6', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'a60fea18e6c041059a528cc46acc9cc1', '5', 683, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8689eeab64684489b65b248a55ffefa9', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'e0ab6a9a0345485a9b755d796d2bacca', '5', 684, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0d1b68c4fc2c47489769591a855869c3', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '0cea1a2ebf0f4114b77731ed44111340', '5', 685, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7ff7dd18aea84bd78704e521b90a1a82', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '861f51e9bc3d47e19ce0a034ca0cabe9', '5', 686, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d1276b5ace264ab9b9e7f46661844524', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '8e605ae1210c43a69dae9416b34823dd', '5', 687, '1', '2024-06-18 09:40:24', '1', '2024-06-18 09:40:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42e51a668e984bd3b553ef851cb3028d', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '602bc448cdb94072ac7b44df02ca09f9', '2', 688, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1abe78b304054c7496e2101b25202126', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'fbfacad799e047cf816a492ea3b511a2', '2', 689, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('80f67758f50e41efa0370ca1152bbbed', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'a60fea18e6c041059a528cc46acc9cc1', '2', 690, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c61fa4b1f2f14464af14b60edfdf2bfa', 'fab2ed90cdde44b3be09e57e640ea157', NULL, 'e0ab6a9a0345485a9b755d796d2bacca', '2', 691, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('23dce1228bde46c8b498517ba2233026', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '0cea1a2ebf0f4114b77731ed44111340', '2', 692, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cc9b4219c2e148cd837e08a0e5ca8388', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '861f51e9bc3d47e19ce0a034ca0cabe9', '2', 693, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3b70fe1216224cb8b02e94eee1946784', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '8e605ae1210c43a69dae9416b34823dd', '2', 694, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0c995893de0c4d8b8f008f0d34fa0365', 'fab2ed90cdde44b3be09e57e640ea157', NULL, '2bf9eae09eb84120855d1a833c2f9d8a', '2', 695, '1', '2024-06-19 17:17:47', '1', '2024-06-19 17:17:47', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5e18f3dcbe6341038f88dd7d881b72b6', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd61d48043aa14f70a77320a5bd7e8044', '3', 779, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dd6bda49369548a7b53daf9513040af5', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd4e62b2e331849eeba5b65de32caeb13', '3', 780, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac3372c90dfb4057baef739932e12757', '44662daad6a64b0fb5043339a4748a7b', NULL, '798d93ad4e154711a14e8234673d2cf4', '3', 781, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('21d96259b5af40a688962c8a6f77482f', '44662daad6a64b0fb5043339a4748a7b', NULL, '2c974887850345afa61e406910e5106f', '3', 782, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('17f0e74984264c38848a2b173aeb4263', '44662daad6a64b0fb5043339a4748a7b', NULL, '5b634708c6af467d94d3b7907d2f7441', '3', 783, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da8263c4d47b4e108fae61733a9bf9aa', '44662daad6a64b0fb5043339a4748a7b', NULL, '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '3', 784, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f033d6d4b5e4656aa7dc65e313675ef', '44662daad6a64b0fb5043339a4748a7b', NULL, '8963b829cdb744efb33242d138e1f00d', '3', 785, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('efc97edd51de49bda35734fc51a80908', '44662daad6a64b0fb5043339a4748a7b', NULL, '7088acce19e7476695df4bdaf75ed09c', '3', 786, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8239297958db48438c7660af761f628e', '44662daad6a64b0fb5043339a4748a7b', NULL, 'e65c14922f254e2a92fee95bf96bf8e3', '3', 787, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f49bb71f6f69401c94cb1673a9cf4cb8', '44662daad6a64b0fb5043339a4748a7b', NULL, '88818d6b9f2c445f9f8e1d87e48eb669', '3', 788, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7eba2fa946724eb9b65338ee73920373', '44662daad6a64b0fb5043339a4748a7b', NULL, '4221f21ed54a41d89961203f627b484c', '3', 789, '1', '2024-06-20 13:45:17', '1', '2024-06-20 13:45:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c01f7254102347d1b6ddbc3a081ea3a9', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd61d48043aa14f70a77320a5bd7e8044', '4', 790, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a06d5fe932c42e78037a67b0986c1a4', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd4e62b2e331849eeba5b65de32caeb13', '4', 791, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8bf4efe7f521454a8d415d327635cf09', '44662daad6a64b0fb5043339a4748a7b', NULL, '798d93ad4e154711a14e8234673d2cf4', '4', 792, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('daffe4957ad341a897fe3bcea3304a3c', '44662daad6a64b0fb5043339a4748a7b', NULL, '2c974887850345afa61e406910e5106f', '4', 793, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8f6c5dfa12e143968479b5c7f120cd6a', '44662daad6a64b0fb5043339a4748a7b', NULL, '5b634708c6af467d94d3b7907d2f7441', '4', 794, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cddfead1c5024bb0a67d1e5af62243c6', '44662daad6a64b0fb5043339a4748a7b', NULL, '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '4', 795, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d79ebf3a9c6f4c3c9c97f2c90e8f32bf', '44662daad6a64b0fb5043339a4748a7b', NULL, '8963b829cdb744efb33242d138e1f00d', '4', 796, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('15e9da9ebf07441fbc45ab9b0186f979', '44662daad6a64b0fb5043339a4748a7b', NULL, '7088acce19e7476695df4bdaf75ed09c', '4', 797, '1', '2024-06-20 13:45:23', '1', '2024-06-20 13:45:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('047f88fa16be494f9b5a5d0d1a51b64d', '44662daad6a64b0fb5043339a4748a7b', NULL, 'e65c14922f254e2a92fee95bf96bf8e3', '4', 798, '1', '2024-06-20 13:45:24', '1', '2024-06-20 13:45:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('953ca2df574146ff8a126f97843155bc', '44662daad6a64b0fb5043339a4748a7b', NULL, '88818d6b9f2c445f9f8e1d87e48eb669', '4', 799, '1', '2024-06-20 13:45:24', '1', '2024-06-20 13:45:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c10a26ae51045cbbf58ad55e04b6f7e', '44662daad6a64b0fb5043339a4748a7b', NULL, '4221f21ed54a41d89961203f627b484c', '4', 800, '1', '2024-06-20 13:45:24', '1', '2024-06-20 13:45:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9696ab7693e4be7be600c69cb5c77f1', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd61d48043aa14f70a77320a5bd7e8044', '5', 801, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3c82d1e1ed2474b9bd4d47f5996da9f', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd4e62b2e331849eeba5b65de32caeb13', '5', 802, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7bbdb2c6815f4afbbf86dce0df7f4477', '44662daad6a64b0fb5043339a4748a7b', NULL, '798d93ad4e154711a14e8234673d2cf4', '5', 803, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fc50f73791fb409baca99cf9dd2fe396', '44662daad6a64b0fb5043339a4748a7b', NULL, '2c974887850345afa61e406910e5106f', '5', 804, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8457962060e0459c870077a940425cf6', '44662daad6a64b0fb5043339a4748a7b', NULL, '5b634708c6af467d94d3b7907d2f7441', '5', 805, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('131e19117c274be1bc5c9ba992ee4eb9', '44662daad6a64b0fb5043339a4748a7b', NULL, '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '5', 806, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('22139afbab454d6baa5a9853a8b9c6e7', '44662daad6a64b0fb5043339a4748a7b', NULL, '8963b829cdb744efb33242d138e1f00d', '5', 807, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e07af538b795480fb89c65b53b3f84ee', '44662daad6a64b0fb5043339a4748a7b', NULL, '7088acce19e7476695df4bdaf75ed09c', '5', 808, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a23ee215de29474998700de5cd11855e', '44662daad6a64b0fb5043339a4748a7b', NULL, 'e65c14922f254e2a92fee95bf96bf8e3', '5', 809, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8fe51a9a10d44a6f9e1769485fe36b15', '44662daad6a64b0fb5043339a4748a7b', NULL, '88818d6b9f2c445f9f8e1d87e48eb669', '5', 810, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4bd7643f3adc4dfaafd74b57b2ed2e4c', '44662daad6a64b0fb5043339a4748a7b', NULL, '4221f21ed54a41d89961203f627b484c', '5', 811, '1', '2024-06-20 13:45:27', '1', '2024-06-20 13:45:27', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d5656140a769487290681eddc774c2ef', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6971e5a13a7f4f24b61cc2872a676816', '1', 812, '1', '2024-06-20 14:36:41', '1', '2024-06-20 14:36:41', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('10c9b9ceb00643058dadb38c6a1b0fa7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1640bc449339460c9a7908585b55c1c2', '1', 813, '1', '2024-06-20 14:36:41', '1', '2024-06-20 14:36:41', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e2d149570bf847f4872fd1e217e97f76', '8747f494dd7b4780873ad0616835a0f8', NULL, '2de601e3705e48698bbf042f15d140e7', '1', 867, '1', '2024-06-24 10:08:22', '1', '2024-06-24 10:08:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('17089167f088467cab78dc51b2716269', '8747f494dd7b4780873ad0616835a0f8', NULL, '91d67896709b47fd9f28477722acc155', '1', 868, '1', '2024-06-24 10:08:22', '1', '2024-06-24 10:08:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('807c08e72b89471bade6734153a1317e', '8747f494dd7b4780873ad0616835a0f8', NULL, '160fdc1c41e74e01a73af3b30f1bec88', '1', 869, '1', '2024-06-24 10:08:22', '1', '2024-06-24 10:08:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fd0e6f03e28345e197b453874783704d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6971e5a13a7f4f24b61cc2872a676816', '2', 882, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0e2333cf915344ae88a7758bb7ac6322', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1640bc449339460c9a7908585b55c1c2', '2', 883, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c9f8cbc235ab4089bb0177b476ee407d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '8b53711e838d43ca87eb71196a98f9fb', '2', 884, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8c23fa6408d44c2bbd8d52b0347be5bb', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'd1c09daabd944f519f37d97396d72411', '2', 885, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ca10238904a4b5ab6ebcd77f85056ef', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b0ec59f4702c48dd9f9919ca9a44dd12', '2', 886, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39a5e02b98554d0083ba9726a1dc309f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2c07212e26f746369a5cbb724ad2698f', '2', 887, '1', '2024-06-24 17:00:53', '1', '2024-06-24 17:00:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('76289c032cf04e82a0e6a0ae309479d0', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b637be20e163468aaad0d1e493e9e7ad', '2', 888, '1', '2024-06-24 17:00:54', '1', '2024-06-24 17:00:54', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3da79e088245453bb832b5abbca13813', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'ce41de301b4740deb7b39ade148bd571', '2', 889, '1', '2024-06-24 17:00:54', '1', '2024-06-24 17:00:54', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('36945e08576541659963322db169b681', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4507c25134574f1795e5bfadb14d7a72', '2', 890, '1', '2024-06-24 17:00:54', '1', '2024-06-24 17:00:54', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45e3c0edc63c451990f2f03858a482b5', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'f0d5f86bcfd14a0094b630eb57723b40', '2', 891, '1', '2024-06-24 17:00:54', '1', '2024-06-24 17:00:54', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('682e07374d514c97ab6dc04a247e37f2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '3e1b825f6e444b1ea04463462f36f1f7', '2', 892, '1', '2024-06-24 17:00:54', '1', '2024-06-24 17:00:54', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('241cfaddacd241f488c576ba9e3ef1ec', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '8b53711e838d43ca87eb71196a98f9fb', '3', 893, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('482ad9cada334628af3fcb25e9dc7d9e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4507c25134574f1795e5bfadb14d7a72', '3', 894, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70be69e0f7af4ac5ab5ed6a132ecf325', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'f0d5f86bcfd14a0094b630eb57723b40', '3', 895, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('23f7a6c5997540e292c888f0ece62659', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1640bc449339460c9a7908585b55c1c2', '3', 896, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e4f0eb0abc234d239bdd63f301a956c2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'd1c09daabd944f519f37d97396d72411', '3', 897, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0f373f70a8a24b428084f5ddf75f48a6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b0ec59f4702c48dd9f9919ca9a44dd12', '3', 898, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd3df61a71b949698bd74a1c5f59982b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '3e1b825f6e444b1ea04463462f36f1f7', '3', 899, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('73104f7f8b5a42af8cce1584cfdac0cc', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2c07212e26f746369a5cbb724ad2698f', '3', 900, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a78ece57c8394b15bba2db41b0a10759', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b637be20e163468aaad0d1e493e9e7ad', '3', 901, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1728c53945cb48858bee4e32affa5ca9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4f773ae6e95e487c859db420fc3ba92b', '3', 902, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('654f57f9632d487e98332a440f1b9366', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6971e5a13a7f4f24b61cc2872a676816', '3', 903, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1b4c8da5e56f4aecb6194e2927d69555', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'ce41de301b4740deb7b39ade148bd571', '3', 904, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('21bebeccb2844b3fa216a9d1e650fc9e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '0710afd06eba45ed863b7fb598bcd1ff', '3', 905, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39e5249ff15040228eacbc0234fd7444', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '3', 906, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a29a602c2d2648069bcb7accbdef3979', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b6b28ecbe48e480d94573dd30383fd39', '3', 907, '1', '2024-06-24 17:01:12', '1', '2024-06-24 17:01:12', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('39cea2dc39554801bb97cf4bfc03c21e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6971e5a13a7f4f24b61cc2872a676816', '4', 908, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('374189d33b1746cbb270d8a333ecfd6e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '8b53711e838d43ca87eb71196a98f9fb', '4', 909, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6a3a6f3c3d94cde9188337ae8caf7b7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4507c25134574f1795e5bfadb14d7a72', '4', 910, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('90e94552ba65485f9e8b86d0eb57bd46', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'f0d5f86bcfd14a0094b630eb57723b40', '4', 911, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a98ab7eb4b84a81a83f4a9bfa97b793', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1640bc449339460c9a7908585b55c1c2', '4', 912, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('930e9f257a04444fb799fa10b4d72ab6', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'd1c09daabd944f519f37d97396d72411', '4', 913, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec6c7d3db034442d827aec7ca67edf9a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b0ec59f4702c48dd9f9919ca9a44dd12', '4', 914, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a4b5b7147ab4d48b7c806077abfd72e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '3e1b825f6e444b1ea04463462f36f1f7', '4', 915, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('54b32a9c0b8a4afa8cc11a815609981a', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2c07212e26f746369a5cbb724ad2698f', '4', 916, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bc30028b53484b3f9a3f15c427343709', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b637be20e163468aaad0d1e493e9e7ad', '4', 917, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3df0981281f24be68fb04aec7b99b28f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4f773ae6e95e487c859db420fc3ba92b', '4', 918, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('333ec76ddc9f475dbd2ea86f92ee476b', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'ce41de301b4740deb7b39ade148bd571', '4', 919, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0685c61400474b5a89b177ceda01a5b9', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '0710afd06eba45ed863b7fb598bcd1ff', '4', 920, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c94105d1cc95404eacc53d65f8970d9c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b6b28ecbe48e480d94573dd30383fd39', '4', 921, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bdf9998a029f41f195df7529b95bde2d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '4', 922, '1', '2024-06-24 17:01:19', '1', '2024-06-24 17:01:19', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86e4bfd35c234f058f505f3cdaefe755', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1330303a47ce4d36bd24cfc5b43d5a01', '1', 964, '1', '2024-06-25 11:46:16', '1', '2024-06-25 11:46:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('936da6ab0e214071a63c84f2528242fb', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9b6abb2b63f5473cbedcd0c92087e238', '1', 965, '1', '2024-06-25 11:46:16', '1', '2024-06-25 11:46:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5af68f501da34bccba92d11c7bc1af48', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2e4fea80d9ab4aabbb754b999b373a27', '1', 966, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42eda8f3e6e8487cb128de877a22ad77', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cff95ccaab714ff3ab6091c6b1c8b335', '1', 967, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6dc691a3756c487393d88c12b562415f', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '306cb6065a8e450280af0acae1e1bfc4', '1', 968, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fd5954de5a634079a1ac835ea114295d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6302224f47174aa0b6872f4f9253523f', '1', 969, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7e018e06af8a4768867509716e69d82a', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '8f04b92dfa5949e2a18a34b00a390de1', '1', 970, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a3168b1bd4544759118b72e38aefa71', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'f1c0f8c4b5e54aaeb40873fa25e93280', '1', 971, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1ec79c22d3ea4d92ac655a867e8edd8e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '862617ad5e0c44289825b4f13db0f259', '1', 972, '1', '2024-06-25 11:46:17', '1', '2024-06-25 11:46:17', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8503f07983d042338aa030012347c2b4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1330303a47ce4d36bd24cfc5b43d5a01', '2', 973, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('49fb0e753a8e49fb821bd3f3d738afbf', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2e4fea80d9ab4aabbb754b999b373a27', '2', 974, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9eb38183988a46a3b5e70f56d558a9d0', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'f1c0f8c4b5e54aaeb40873fa25e93280', '2', 975, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5fe3542c38474fbbb603eb01af71ff9e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6302224f47174aa0b6872f4f9253523f', '2', 976, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96bbf0148bf6461f809cede75be9e836', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '306cb6065a8e450280af0acae1e1bfc4', '2', 977, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b411cb82265546a1a14b024f3e73e7ab', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '8f04b92dfa5949e2a18a34b00a390de1', '2', 978, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('78d7027af86e4d3495ebf34251cefb7c', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '862617ad5e0c44289825b4f13db0f259', '2', 979, '1', '2024-06-25 11:46:26', '1', '2024-06-25 11:46:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0541182baa2148df84aa0b5f7beeaa6f', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cfa9151db73b40089b19f6723750bc45', '3', 980, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('938104eff07648f596ed92285ed83b60', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1330303a47ce4d36bd24cfc5b43d5a01', '3', 981, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('68ae5cdfc67d4676ac311e4e7f73ab0f', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9b6abb2b63f5473cbedcd0c92087e238', '3', 982, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1f2896d464274b1f9f7c42f2cbc40580', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2e4fea80d9ab4aabbb754b999b373a27', '3', 983, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('118a45b589794f05964d54e339632edb', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cff95ccaab714ff3ab6091c6b1c8b335', '3', 984, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a76d69ed5b2b477db65c741bf1756ab4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a00b93f6f8ff438a9863e84e2a95724a', '3', 985, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f21a2daf2ff746d98454d6dab388312c', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'f1c0f8c4b5e54aaeb40873fa25e93280', '3', 986, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('200f02dd553e4c159ce824120c6f5222', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6302224f47174aa0b6872f4f9253523f', '3', 987, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('17b363d6f8434980865d5f04055ae9c6', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '306cb6065a8e450280af0acae1e1bfc4', '3', 988, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('80c0cde476124727ae199b5a557d2657', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '8f04b92dfa5949e2a18a34b00a390de1', '3', 989, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('42481a362fd54bd5ac1c56f456897888', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '862617ad5e0c44289825b4f13db0f259', '3', 990, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0d662ba84c6e454f9c069fa673f2ac6d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3143881b6c1e47b794194c5f3dd09d7c', '3', 991, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1117b5449ed14b37b53d66ff4d8e1b7e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '71877e5c1689470180d2b56e12e42455', '3', 992, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2acb8b452dbf4964bf9b30c3aeb58ecc', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'bf1de969df8a42d3b0387f0ab0292544', '3', 993, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('882456c52c2a47c694ce32d37e0ac077', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '7cb35062557f42e7b1bebc5a7921ddf0', '3', 994, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('50f460ab2a094fcda13bdde24ee8d003', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5d82691c50d54200a2e2cf4dc70defe8', '3', 995, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('50122365ed4745da80ac4e0112d1d060', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '3', 996, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d7af3b02c4a8466494669bdcc8325827', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5aae049516ad41e4ad317528b35897a8', '3', 997, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8886de0f7840432fb39d2bf93659dc87', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9644c8cf4d2245db905e00405bb18139', '3', 998, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e92713e162644bca9a3871d221c0fc7c', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '39df334f659f41779005c422a2dcce95', '3', 999, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6a02450296084844b585d7f27b5949d4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '448d2c8a0a6f4d199b60054c130519c4', '3', 1000, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ff9e272b8ba24377b9564d628bdf384d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a27f428aafb14b7488a9f1772687567e', '3', 1001, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0b47bc6bfce74f40a6d2b0a9827a86ed', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '4cbca1ec95c343f990811fffbcb9ddc9', '3', 1002, '1', '2024-06-25 11:46:45', '1', '2024-06-25 11:46:45', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f3b82e83723b4078965b1d9bdb21959f', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cfa9151db73b40089b19f6723750bc45', '4', 1003, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2e1afcc0536a40d3b9f74fcf948077fb', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1330303a47ce4d36bd24cfc5b43d5a01', '4', 1004, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('531f0ff984e04ef9839c2ad5b45c8884', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9b6abb2b63f5473cbedcd0c92087e238', '4', 1005, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb88b62ade684da6a98dcd0b23986a46', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2e4fea80d9ab4aabbb754b999b373a27', '4', 1006, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('274ecc9b0ba0499398b035e688d2aa38', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a00b93f6f8ff438a9863e84e2a95724a', '4', 1007, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('96fc98eee71540268227942656585ba4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cff95ccaab714ff3ab6091c6b1c8b335', '4', 1008, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a116519293fe4fa6867a6ab6f816912a', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'f1c0f8c4b5e54aaeb40873fa25e93280', '4', 1009, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55e50a9044bf4fce8699212208e5de0d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6302224f47174aa0b6872f4f9253523f', '4', 1010, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9381ca34cc584cb4bb8dda388761b8db', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '306cb6065a8e450280af0acae1e1bfc4', '4', 1011, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ea720421b54e4c278890da391cb555e7', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '8f04b92dfa5949e2a18a34b00a390de1', '4', 1012, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cca641d6ef834b0ea9a6c0fc2853450c', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '862617ad5e0c44289825b4f13db0f259', '4', 1013, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b26b9456f66043c1b104badaf45d291d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3143881b6c1e47b794194c5f3dd09d7c', '4', 1014, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1abc8b18b9ad46f496894afe51069da8', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '71877e5c1689470180d2b56e12e42455', '4', 1015, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0e2ffd7d8612475a806e7e216eb7dfdb', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'bf1de969df8a42d3b0387f0ab0292544', '4', 1016, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7eb7b06f9b884a32bfc56c4c83cea6ff', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '7cb35062557f42e7b1bebc5a7921ddf0', '4', 1017, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9792c9665e444b08a1e147c43f1eef94', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5d82691c50d54200a2e2cf4dc70defe8', '4', 1018, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('08b707940374494fb25b28d39d71f62f', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '4', 1019, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f03a8ddbd38640a48231abb320a57a93', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5aae049516ad41e4ad317528b35897a8', '4', 1020, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('825f6a977efa4bd28680e65f1a7eed29', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9644c8cf4d2245db905e00405bb18139', '4', 1021, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c63fd842783a4400912acec5fd585e7e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '39df334f659f41779005c422a2dcce95', '4', 1022, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7bbf52c1c1934ed489d1469ed5a3bdfb', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '448d2c8a0a6f4d199b60054c130519c4', '4', 1023, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('703a7e8bdcc14685ba7a7e812988effe', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a27f428aafb14b7488a9f1772687567e', '4', 1024, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('518dc115efa14a47b516c727ee687125', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '4cbca1ec95c343f990811fffbcb9ddc9', '4', 1025, '1', '2024-06-25 11:47:08', '1', '2024-06-25 11:47:08', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('595d35b3a4c84ccbba1361f4a6a92934', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cfa9151db73b40089b19f6723750bc45', '5', 1026, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2b4eb3e4baa147229f87efcbf2709242', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '1330303a47ce4d36bd24cfc5b43d5a01', '5', 1027, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('903a254ebfdc4e668ee95ca757d61a3e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9b6abb2b63f5473cbedcd0c92087e238', '5', 1028, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('94f175f1ee6c4ec0aa184ac097ade797', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '2e4fea80d9ab4aabbb754b999b373a27', '5', 1029, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d93dca6442cd43798b5c7aefdcf2a85e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'cff95ccaab714ff3ab6091c6b1c8b335', '5', 1030, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('14f3b79756ef452a8d0fa2d085a04598', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a00b93f6f8ff438a9863e84e2a95724a', '5', 1031, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b7521bd61be94ca197cfac95123fefc4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'f1c0f8c4b5e54aaeb40873fa25e93280', '5', 1032, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c51884a824bd42d7af08bba765b83b85', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '6302224f47174aa0b6872f4f9253523f', '5', 1033, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('65b691c59b8943e5803267e2b0ffeff7', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '306cb6065a8e450280af0acae1e1bfc4', '5', 1034, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5af6ddc980874385b0e1f2a7d3ccd96d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '8f04b92dfa5949e2a18a34b00a390de1', '5', 1035, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b1ebe70d3d8149368f4c22155b07c6f6', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '862617ad5e0c44289825b4f13db0f259', '5', 1036, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82d93a923b44457d9a1a4d993b638c0a', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3143881b6c1e47b794194c5f3dd09d7c', '5', 1037, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d4755dc1c4914d929034d5df9fc8df70', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '71877e5c1689470180d2b56e12e42455', '5', 1038, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('26c60cb5644d4e568b03b4bfae650ef6', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'bf1de969df8a42d3b0387f0ab0292544', '5', 1039, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8492da5217144b4787319138d6e5270e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '7cb35062557f42e7b1bebc5a7921ddf0', '5', 1040, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('024bcdf07919476f960688bae0e4f8c7', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5d82691c50d54200a2e2cf4dc70defe8', '5', 1041, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0039ba8119b94e54a5a44e98555d68ae', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '3ca69c4ec8714b1ab6ed1f8c4d38b4f4', '5', 1042, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1b2cd3d5f4ab4da0b66a93471c502031', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '5aae049516ad41e4ad317528b35897a8', '5', 1043, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e8199486276b41ee8b8c5e63fdae554e', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '9644c8cf4d2245db905e00405bb18139', '5', 1044, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a947b608bad845f0bd4138933325c073', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '39df334f659f41779005c422a2dcce95', '5', 1045, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca6c483d3b10400884c0852e15e4612b', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '448d2c8a0a6f4d199b60054c130519c4', '5', 1046, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3668d71393474dd5a68811f764351322', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, 'a27f428aafb14b7488a9f1772687567e', '5', 1047, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c3b925ac673d4d14a63811efb13a2d2a', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, '4cbca1ec95c343f990811fffbcb9ddc9', '5', 1048, '1', '2024-06-25 11:47:26', '1', '2024-06-25 11:47:26', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('43634b64b4ad4f139a9e868529332fe3', '7b134ac29de4494a82f8a9302913e596', NULL, 'b338d4d8314a4c9f9e18092328eb8331', '1', 1049, '1', '2024-06-25 14:14:53', '1', '2024-06-25 14:14:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('46709a1b4145419bb0c30893bc1bbeb8', '7b134ac29de4494a82f8a9302913e596', NULL, 'e39744d0c11e47c88604c3bcf41b05a8', '1', 1050, '1', '2024-06-25 14:14:53', '1', '2024-06-25 14:14:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b6659c1fe8864f509a5e3896bfe360a1', '7b134ac29de4494a82f8a9302913e596', NULL, '11f11ae14a13441b8a65a2835dfc3be3', '1', 1051, '1', '2024-06-25 14:14:53', '1', '2024-06-25 14:14:53', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('822f89c85d65487c9763e07e789734c8', '7b134ac29de4494a82f8a9302913e596', NULL, 'b338d4d8314a4c9f9e18092328eb8331', '2', 1052, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69c5044fd34347de803dc45b49965d0e', '7b134ac29de4494a82f8a9302913e596', NULL, 'e39744d0c11e47c88604c3bcf41b05a8', '2', 1053, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b741f95a3aa144f0af84d5992799aa12', '7b134ac29de4494a82f8a9302913e596', NULL, '11f11ae14a13441b8a65a2835dfc3be3', '2', 1054, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ef64cc6936f4ab4a2ff0c78a9a0fd35', '7b134ac29de4494a82f8a9302913e596', NULL, '0e8be21eb45b41328601415173ae7f77', '2', 1055, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86bf53408303454f98c20cc7efcb34a6', '7b134ac29de4494a82f8a9302913e596', NULL, '6b1d54e486f24585a29317a9673be9b5', '2', 1056, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('19144ef064fc49f8ba8cad1cc0d4b380', '7b134ac29de4494a82f8a9302913e596', NULL, '1d5cc90f5ccf4460b3f384f579c27d02', '2', 1057, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6f6810ea7f0e4f06adc0e586847a18d4', '7b134ac29de4494a82f8a9302913e596', NULL, '0115deea631d4004b94f51f9195c27ee', '2', 1058, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('730656eac2ea4ce88d6efde0fc5e2259', '7b134ac29de4494a82f8a9302913e596', NULL, '169f7ff673bd4aec953385b095b616ed', '2', 1059, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('763fdc9fafbc46578fa48ff48f2d1982', '7b134ac29de4494a82f8a9302913e596', NULL, 'b8992a684d554c9298f7d4a59db4029b', '2', 1060, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82f62905874b44858f5881dbeeb54dc2', '7b134ac29de4494a82f8a9302913e596', NULL, '0e106ec96ea14e09b96d71a7841357ff', '2', 1061, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ea7799d60ef4cc3a64bb0da8a8da8ea', '7b134ac29de4494a82f8a9302913e596', NULL, 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '2', 1062, '1', '2024-06-25 14:15:03', '1', '2024-06-25 14:15:03', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b17351e6673b4825b3cf417657762ceb', '7b134ac29de4494a82f8a9302913e596', NULL, 'b338d4d8314a4c9f9e18092328eb8331', '3', 1063, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e217d2970ef04883a7a8b9c678212d29', '7b134ac29de4494a82f8a9302913e596', NULL, 'e39744d0c11e47c88604c3bcf41b05a8', '3', 1064, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e104cf2259094ce58e4344f92ff22370', '7b134ac29de4494a82f8a9302913e596', NULL, '11f11ae14a13441b8a65a2835dfc3be3', '3', 1065, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8657817005f04d22b3619fd2a82d6a18', '7b134ac29de4494a82f8a9302913e596', NULL, '0e8be21eb45b41328601415173ae7f77', '3', 1066, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('be2e0dcf0de1456c80fe5f3c4e7bfac9', '7b134ac29de4494a82f8a9302913e596', NULL, '6b1d54e486f24585a29317a9673be9b5', '3', 1067, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('65dd1c574e924f5c839fa9cf0dbc6e81', '7b134ac29de4494a82f8a9302913e596', NULL, '1d5cc90f5ccf4460b3f384f579c27d02', '3', 1068, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4a9f5d1c5307439ca8b96c4b274c4322', '7b134ac29de4494a82f8a9302913e596', NULL, '0115deea631d4004b94f51f9195c27ee', '3', 1069, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('255c4009d77e4cc8915f87c394033621', '7b134ac29de4494a82f8a9302913e596', NULL, '169f7ff673bd4aec953385b095b616ed', '3', 1070, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4cb99305548d4288a8488913bc1f561c', '7b134ac29de4494a82f8a9302913e596', NULL, 'b8992a684d554c9298f7d4a59db4029b', '3', 1071, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7307e47f0a9048e7a17bb7b6e33372b3', '7b134ac29de4494a82f8a9302913e596', NULL, '0e106ec96ea14e09b96d71a7841357ff', '3', 1072, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2a9f78f879da4a57ae639181f9533274', '7b134ac29de4494a82f8a9302913e596', NULL, 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '3', 1073, '1', '2024-06-25 14:15:16', '1', '2024-06-25 14:15:16', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86d6a8be5df14fdeb9765d4b81a8d7ae', '7b134ac29de4494a82f8a9302913e596', NULL, 'b338d4d8314a4c9f9e18092328eb8331', '4', 1074, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fcea801810fc41ad913c685025b8cb5e', '7b134ac29de4494a82f8a9302913e596', NULL, 'e39744d0c11e47c88604c3bcf41b05a8', '4', 1075, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8ecef09e8086493fa0d51863a0c2c273', '7b134ac29de4494a82f8a9302913e596', NULL, '11f11ae14a13441b8a65a2835dfc3be3', '4', 1076, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c21a500ba27c4458b5a3cde32ef14c9c', '7b134ac29de4494a82f8a9302913e596', NULL, '0e8be21eb45b41328601415173ae7f77', '4', 1077, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1c872df83d7e4982afe699fc4d9165ea', '7b134ac29de4494a82f8a9302913e596', NULL, '6b1d54e486f24585a29317a9673be9b5', '4', 1078, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eae587e8467d4f92b444248b5b0dddb4', '7b134ac29de4494a82f8a9302913e596', NULL, '1d5cc90f5ccf4460b3f384f579c27d02', '4', 1079, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6f7c6dce6f5f4c7e8d32895baa83dfc4', '7b134ac29de4494a82f8a9302913e596', NULL, '0115deea631d4004b94f51f9195c27ee', '4', 1080, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c0c16c5f47484c38b31f5a8a072c87f5', '7b134ac29de4494a82f8a9302913e596', NULL, '169f7ff673bd4aec953385b095b616ed', '4', 1081, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b91bdad4b3db4dbeb31558a70a59ca09', '7b134ac29de4494a82f8a9302913e596', NULL, 'b8992a684d554c9298f7d4a59db4029b', '4', 1082, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('93c0fe378d1f4609a5e4522e4a1ff4b8', '7b134ac29de4494a82f8a9302913e596', NULL, '0e106ec96ea14e09b96d71a7841357ff', '4', 1083, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38ea36583bc947d6a5479cb750e55783', '7b134ac29de4494a82f8a9302913e596', NULL, 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '4', 1084, '1', '2024-06-25 14:15:29', '1', '2024-06-25 14:15:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fbb32b58852b4122b0537f5c73241609', '7b134ac29de4494a82f8a9302913e596', NULL, 'b338d4d8314a4c9f9e18092328eb8331', '5', 1085, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c626fd7c76464884a9be907aaeca2580', '7b134ac29de4494a82f8a9302913e596', NULL, 'e39744d0c11e47c88604c3bcf41b05a8', '5', 1086, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec5d94be72f948998d84a412e2c5ef85', '7b134ac29de4494a82f8a9302913e596', NULL, '11f11ae14a13441b8a65a2835dfc3be3', '5', 1087, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9516bc23181345d6bac15994418c23c3', '7b134ac29de4494a82f8a9302913e596', NULL, '0e8be21eb45b41328601415173ae7f77', '5', 1088, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9e569b68ff24f2999b45bf480f288f8', '7b134ac29de4494a82f8a9302913e596', NULL, '6b1d54e486f24585a29317a9673be9b5', '5', 1089, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3b3bc5476bbd4aa2888f432ffd17f4b8', '7b134ac29de4494a82f8a9302913e596', NULL, '1d5cc90f5ccf4460b3f384f579c27d02', '5', 1090, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f95d6771cf644ec19f022f9cd6784397', '7b134ac29de4494a82f8a9302913e596', NULL, '0115deea631d4004b94f51f9195c27ee', '5', 1091, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4c9478f49f844f26b9340ba227643688', '7b134ac29de4494a82f8a9302913e596', NULL, '169f7ff673bd4aec953385b095b616ed', '5', 1092, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0157e1c264bb49b5a4d52d5bbdfc3f6e', '7b134ac29de4494a82f8a9302913e596', NULL, 'b8992a684d554c9298f7d4a59db4029b', '5', 1093, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c05eb68bd18245f494544e68dd43fb1d', '7b134ac29de4494a82f8a9302913e596', NULL, '0e106ec96ea14e09b96d71a7841357ff', '5', 1094, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b5b9d67d127947e491b56f0397a9bf88', '7b134ac29de4494a82f8a9302913e596', NULL, 'cfe9a7fac0ca4d6fa2b6290dd5caf288', '5', 1095, '1', '2024-06-25 14:15:40', '1', '2024-06-25 14:15:40', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ae2286654cba438e8c4c0c41c99c4372', '8747f494dd7b4780873ad0616835a0f8', NULL, '2de601e3705e48698bbf042f15d140e7', '2', 1116, '1', '2024-06-25 15:30:23', '1', '2024-06-25 15:30:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70dd7d84b4fd43b0940923bd2cef13ea', '8747f494dd7b4780873ad0616835a0f8', NULL, '91d67896709b47fd9f28477722acc155', '2', 1117, '1', '2024-06-25 15:30:23', '1', '2024-06-25 15:30:23', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7ccb4813fef44c09be3e16260701d2b', '8747f494dd7b4780873ad0616835a0f8', NULL, '160fdc1c41e74e01a73af3b30f1bec88', '2', 1118, '1', '2024-06-25 15:30:24', '1', '2024-06-25 15:30:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7b8c824e44c94755b95852efe48395c1', '8747f494dd7b4780873ad0616835a0f8', NULL, '2d1f6aaf244047c9a34c56578b176a00', '2', 1119, '1', '2024-06-25 15:30:24', '1', '2024-06-25 15:30:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b18e12c44e574d55b4e78d0da5d7acf5', '8747f494dd7b4780873ad0616835a0f8', NULL, '8df6db8e166d4761ad7fc6e0e3829f7c', '2', 1120, '1', '2024-06-25 15:30:24', '1', '2024-06-25 15:30:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('10380a0f2d3243fdbbcaea84c5edba3f', '8747f494dd7b4780873ad0616835a0f8', NULL, '4bb2f414fd424f94a3504236d56ec9aa', '2', 1121, '1', '2024-06-25 15:30:24', '1', '2024-06-25 15:30:24', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e1ecd4dcdc4348a4ac4f2f2e69c5ef20', '8747f494dd7b4780873ad0616835a0f8', NULL, '2de601e3705e48698bbf042f15d140e7', '5', 1134, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f3faea4eca345078a9aab2e2b6b4f59', '8747f494dd7b4780873ad0616835a0f8', NULL, '91d67896709b47fd9f28477722acc155', '5', 1135, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f68af00d41fa412c910d518895672c4f', '8747f494dd7b4780873ad0616835a0f8', NULL, '160fdc1c41e74e01a73af3b30f1bec88', '5', 1136, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cb353eac0e874a46a4cc69ad85d76948', '8747f494dd7b4780873ad0616835a0f8', NULL, '0acfd6cb91754a60955670c610b8e3ce', '5', 1137, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dbd53328db0e4ac9a9c3f2dff7392c59', '8747f494dd7b4780873ad0616835a0f8', NULL, 'f3ebcb0504d7414c88ce8210dba22f80', '5', 1138, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af8b8999e9cf4aefa4496272520e27b2', '8747f494dd7b4780873ad0616835a0f8', NULL, '4c4d14f41b1941e7bd424aead7d7e774', '5', 1139, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5af00ba239d9461f8c7cd24842c1074e', '8747f494dd7b4780873ad0616835a0f8', NULL, 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '5', 1140, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4e4cfc7bd9c0435c85dc7f20c7938670', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c1e895a2298742b0a592d7754ae64f52', '5', 1141, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9207fd5c02364ff1bb86a2d3006afa71', '8747f494dd7b4780873ad0616835a0f8', NULL, 'bdaa57f29fd14a5696e9fc2fbdc5957c', '5', 1142, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('51912227492b4ec8a69c7f1705f0d679', '8747f494dd7b4780873ad0616835a0f8', NULL, '4e95827cb3d245589a6f84a6ca7de2cb', '5', 1143, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c07c6931d15a484fa7bfc98799c96ebf', '8747f494dd7b4780873ad0616835a0f8', NULL, '1945826d379e44089a356c5cb6fb4923', '5', 1144, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f9733cd186e741a386d5da1981cbc351', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c829aa03dc9a4f02b3634d511f418975', '5', 1145, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('08eaef64943249bdad67b79220e0526c', '8747f494dd7b4780873ad0616835a0f8', NULL, '3f0f76cb929c490f811d8cb2b9758976', '5', 1146, '1', '2024-06-25 16:43:21', '1', '2024-06-25 16:43:21', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1544ef849aac4cf789b951f461a10c8b', '8747f494dd7b4780873ad0616835a0f8', NULL, 'cb1e28c0b342492db7c3418afaabf419', '5', 1147, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ef865db8ecf34b79a2a9c2970e528b76', '8747f494dd7b4780873ad0616835a0f8', NULL, 'efd9ceb03a184d36a5126ee52b9a774f', '5', 1148, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a84e9c9aa455431197cbd69cbaab0526', '8747f494dd7b4780873ad0616835a0f8', NULL, '706fbce98fbc42e68bcd4aa93a5d5c96', '5', 1149, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb10014c651b424eab13dfc84fce9904', '8747f494dd7b4780873ad0616835a0f8', NULL, '96063bc8c97b4e04af18de36abea606f', '5', 1150, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ceeb0111973744f2980c4eca72f1369b', '8747f494dd7b4780873ad0616835a0f8', NULL, 'b8905ef81afe47b1afc22c61f880baef', '5', 1151, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2d8df0493e8040e5b0aad92b42d52433', '8747f494dd7b4780873ad0616835a0f8', NULL, '59bce0d42a374805b83fdd36d78aa2d3', '5', 1152, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('929a7691ecba4b1dbd8f0bbbda57b902', '8747f494dd7b4780873ad0616835a0f8', NULL, '6702dfc2a6964293bedd24057a7b6232', '5', 1153, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a891a0d7c2f04367bee6408cec584407', '8747f494dd7b4780873ad0616835a0f8', NULL, '2d1f6aaf244047c9a34c56578b176a00', '5', 1154, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a8ca443fd2f41f789d22739057cc721', '8747f494dd7b4780873ad0616835a0f8', NULL, '8df6db8e166d4761ad7fc6e0e3829f7c', '5', 1155, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0f35e820340745ed8d12d7a3731912d4', '8747f494dd7b4780873ad0616835a0f8', NULL, '4bb2f414fd424f94a3504236d56ec9aa', '5', 1156, '1', '2024-06-25 16:43:22', '1', '2024-06-25 16:43:22', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2e68f995e24243bb912047c379d00a96', '8747f494dd7b4780873ad0616835a0f8', NULL, '2de601e3705e48698bbf042f15d140e7', '4', 1157, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b69c4b50b2604e7c867d1f0e9d907c1c', '8747f494dd7b4780873ad0616835a0f8', NULL, '91d67896709b47fd9f28477722acc155', '4', 1158, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c76bb55041cd48149e8129dfd7ac440b', '8747f494dd7b4780873ad0616835a0f8', NULL, '160fdc1c41e74e01a73af3b30f1bec88', '4', 1159, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2fc28335a4e64be581c1576310b280df', '8747f494dd7b4780873ad0616835a0f8', NULL, '4bb2f414fd424f94a3504236d56ec9aa', '4', 1160, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d60eba6b65374f88b2a171fbbb8f0e93', '8747f494dd7b4780873ad0616835a0f8', NULL, '8df6db8e166d4761ad7fc6e0e3829f7c', '4', 1161, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bac435ba47d547a89c93d715dd0e07d0', '8747f494dd7b4780873ad0616835a0f8', NULL, '2d1f6aaf244047c9a34c56578b176a00', '4', 1162, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('49c573b23fd245c4865243de12249747', '8747f494dd7b4780873ad0616835a0f8', NULL, '0acfd6cb91754a60955670c610b8e3ce', '4', 1163, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5a6251f740ed41c596ffdd57344cb199', '8747f494dd7b4780873ad0616835a0f8', NULL, 'f3ebcb0504d7414c88ce8210dba22f80', '4', 1164, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7f143933cd9a4ee3b7c9d9d6a60f56a1', '8747f494dd7b4780873ad0616835a0f8', NULL, '4c4d14f41b1941e7bd424aead7d7e774', '4', 1165, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a010e22445f04fd0a9c60de68ff1f6e7', '8747f494dd7b4780873ad0616835a0f8', NULL, 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '4', 1166, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('12956e53523d420e81dafd8ff23e1d38', '8747f494dd7b4780873ad0616835a0f8', NULL, 'bdaa57f29fd14a5696e9fc2fbdc5957c', '4', 1167, '1', '2024-06-25 16:57:00', '1', '2024-06-25 16:57:00', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f0b0fa9b4404420f8c95cffc0dec66ae', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c1e895a2298742b0a592d7754ae64f52', '4', 1168, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d5df413212824e0c8848d72fd155246f', '8747f494dd7b4780873ad0616835a0f8', NULL, '4e95827cb3d245589a6f84a6ca7de2cb', '4', 1169, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb0848d68186425aa9780745b76d3974', '8747f494dd7b4780873ad0616835a0f8', NULL, '1945826d379e44089a356c5cb6fb4923', '4', 1170, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('534c19ad917142e9825ffde95f45bb57', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c829aa03dc9a4f02b3634d511f418975', '4', 1171, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9f82df12d4ac42bdb53c9db01b559f4b', '8747f494dd7b4780873ad0616835a0f8', NULL, '3f0f76cb929c490f811d8cb2b9758976', '4', 1172, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('29df324ce5f942abb0e0d0fb793a7288', '8747f494dd7b4780873ad0616835a0f8', NULL, 'cb1e28c0b342492db7c3418afaabf419', '4', 1173, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ed25cab521cd463bb168fb0cd770a108', '8747f494dd7b4780873ad0616835a0f8', NULL, 'efd9ceb03a184d36a5126ee52b9a774f', '4', 1174, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7d0db562dd364c02a0bb53828d6987f9', '8747f494dd7b4780873ad0616835a0f8', NULL, '706fbce98fbc42e68bcd4aa93a5d5c96', '4', 1175, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('01fbf4abe2384979b6b752d0073e268e', '8747f494dd7b4780873ad0616835a0f8', NULL, '96063bc8c97b4e04af18de36abea606f', '4', 1176, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e0a65890489542ae81381ef180c65fc9', '8747f494dd7b4780873ad0616835a0f8', NULL, 'b8905ef81afe47b1afc22c61f880baef', '4', 1177, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('426678ad2dd74be5b8bc0fcab02ff5f4', '8747f494dd7b4780873ad0616835a0f8', NULL, '59bce0d42a374805b83fdd36d78aa2d3', '4', 1178, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('48196b2d44b641df902f8905563fcd7f', '8747f494dd7b4780873ad0616835a0f8', NULL, '6702dfc2a6964293bedd24057a7b6232', '4', 1179, '1', '2024-06-25 16:57:01', '1', '2024-06-25 16:57:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5bd0efeb9fe44705a14b78d02468d60f', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd61d48043aa14f70a77320a5bd7e8044', '2', 1218, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('03479d147375483087eed47fdaefdd52', '44662daad6a64b0fb5043339a4748a7b', NULL, '798d93ad4e154711a14e8234673d2cf4', '2', 1219, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0095234df9fd409f967a1cf86649d389', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd4e62b2e331849eeba5b65de32caeb13', '2', 1220, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a3561e665ab744a6a6334129d12f9af2', '44662daad6a64b0fb5043339a4748a7b', NULL, '8963b829cdb744efb33242d138e1f00d', '2', 1221, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e47969777974f0dba9c4a6f8f9ea38b', '44662daad6a64b0fb5043339a4748a7b', NULL, '7088acce19e7476695df4bdaf75ed09c', '2', 1222, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5903d31858f944ffba1409654cc6a932', '44662daad6a64b0fb5043339a4748a7b', NULL, '5b634708c6af467d94d3b7907d2f7441', '2', 1223, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ebf70121899d4a3b867557b2ec6eb511', '44662daad6a64b0fb5043339a4748a7b', NULL, '2c974887850345afa61e406910e5106f', '2', 1224, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('beba9da96b29493fab5d1f925298a11c', '44662daad6a64b0fb5043339a4748a7b', NULL, '0d3f0ae3cf8a49bb8fd3cd3f7d855610', '2', 1225, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fbc59194a1c34992a27dc63fbb7256e9', '44662daad6a64b0fb5043339a4748a7b', NULL, 'e65c14922f254e2a92fee95bf96bf8e3', '2', 1226, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e1d36aca8e6d41b4b45dfc5479d139aa', '44662daad6a64b0fb5043339a4748a7b', NULL, '88818d6b9f2c445f9f8e1d87e48eb669', '2', 1227, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('31fc0dbe3ece4e75b5666e32014734a4', '44662daad6a64b0fb5043339a4748a7b', NULL, '4221f21ed54a41d89961203f627b484c', '2', 1228, '1', '2024-06-27 18:12:01', '1', '2024-06-27 18:12:01', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55b89522734f402896bc3c4dcd0701d3', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd4e62b2e331849eeba5b65de32caeb13', '1', 1229, '1', '2024-06-27 18:12:07', '1', '2024-06-27 18:12:07', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69613cfd18564efc8f5cae62d65f3d21', '44662daad6a64b0fb5043339a4748a7b', NULL, 'd61d48043aa14f70a77320a5bd7e8044', '1', 1230, '1', '2024-06-27 18:12:07', '1', '2024-06-27 18:12:07', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('73237419b1ce4a3c8496fe4263cb63d9', '8747f494dd7b4780873ad0616835a0f8', NULL, '2de601e3705e48698bbf042f15d140e7', '3', 1489, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3b9f98ade0f24147820d2dfe53df87a3', '8747f494dd7b4780873ad0616835a0f8', NULL, '91d67896709b47fd9f28477722acc155', '3', 1490, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b21559c2c7ae483bb9cb5fec08478192', '8747f494dd7b4780873ad0616835a0f8', NULL, '160fdc1c41e74e01a73af3b30f1bec88', '3', 1491, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('38951dc9034043f79ccc34662dd4a032', '8747f494dd7b4780873ad0616835a0f8', NULL, '4bb2f414fd424f94a3504236d56ec9aa', '3', 1492, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f7d213781e7e4ef5869f65b47f4b7cdb', '8747f494dd7b4780873ad0616835a0f8', NULL, '8df6db8e166d4761ad7fc6e0e3829f7c', '3', 1493, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95a78dac29ec400885b4e44730794d58', '8747f494dd7b4780873ad0616835a0f8', NULL, '2d1f6aaf244047c9a34c56578b176a00', '3', 1494, '1', '2024-07-15 15:36:29', '1', '2024-07-15 15:36:29', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3a6c14f984404cb4b755bad89edf48ac', '8747f494dd7b4780873ad0616835a0f8', NULL, '0acfd6cb91754a60955670c610b8e3ce', '3', 1495, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bd528bff39e749f499357bbc3b50a057', '8747f494dd7b4780873ad0616835a0f8', NULL, 'f3ebcb0504d7414c88ce8210dba22f80', '3', 1496, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('076d02589e46459680bdd9c769a3624b', '8747f494dd7b4780873ad0616835a0f8', NULL, '4c4d14f41b1941e7bd424aead7d7e774', '3', 1497, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('896032b2394c43d59e3e29ef5d0e89ee', '8747f494dd7b4780873ad0616835a0f8', NULL, 'ab8306bd121a4c7b8e48f7f2fb63e5e7', '3', 1498, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5bbdc68ce7b8467c9bbc424fb218f6a3', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c1e895a2298742b0a592d7754ae64f52', '3', 1499, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('72d4d353edd14ed297d4ac77c8fedc18', '8747f494dd7b4780873ad0616835a0f8', NULL, 'bdaa57f29fd14a5696e9fc2fbdc5957c', '3', 1500, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fc5fbbaa941a4a909ebc6357856d0c65', '8747f494dd7b4780873ad0616835a0f8', NULL, '4e95827cb3d245589a6f84a6ca7de2cb', '3', 1501, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db1d88d80b96457d90898a8d837210f2', '8747f494dd7b4780873ad0616835a0f8', NULL, '1945826d379e44089a356c5cb6fb4923', '3', 1502, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2e257e48377f4b4eb55bc4ba830a8fa2', '8747f494dd7b4780873ad0616835a0f8', NULL, 'c829aa03dc9a4f02b3634d511f418975', '3', 1503, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6a8ee702faf404290d3e57c7bc28c54', '8747f494dd7b4780873ad0616835a0f8', NULL, '3f0f76cb929c490f811d8cb2b9758976', '3', 1504, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('40a352a7a4f6452b9b9f18faafcd91e1', '8747f494dd7b4780873ad0616835a0f8', NULL, 'cb1e28c0b342492db7c3418afaabf419', '3', 1505, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('70aa518c1257443c97d6dd8029ba4907', '8747f494dd7b4780873ad0616835a0f8', NULL, 'efd9ceb03a184d36a5126ee52b9a774f', '3', 1506, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8609767a0db54d2fba85661878acc448', '8747f494dd7b4780873ad0616835a0f8', NULL, '706fbce98fbc42e68bcd4aa93a5d5c96', '3', 1507, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('613b151ff1174316b43cc98070feb2d3', '8747f494dd7b4780873ad0616835a0f8', NULL, '96063bc8c97b4e04af18de36abea606f', '3', 1508, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4cbb0a8414774e418e3289ea5970f5f2', '8747f494dd7b4780873ad0616835a0f8', NULL, 'b8905ef81afe47b1afc22c61f880baef', '3', 1509, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ceb2bda8ea4542bc84742af5a90e9471', '8747f494dd7b4780873ad0616835a0f8', NULL, '59bce0d42a374805b83fdd36d78aa2d3', '3', 1510, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('868ea5c279714581aaef7424de2168a4', '8747f494dd7b4780873ad0616835a0f8', NULL, '6702dfc2a6964293bedd24057a7b6232', '3', 1511, '1', '2024-07-15 15:36:30', '1', '2024-07-15 15:36:30', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('276ee7cde9174bddbd175fbccbbe75f4', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '6971e5a13a7f4f24b61cc2872a676816', '5', 1512, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ac6463ee6ab340fcb0617e51252f130e', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '8b53711e838d43ca87eb71196a98f9fb', '5', 1513, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c72c76b634294ef4b1596fdfb6427422', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4507c25134574f1795e5bfadb14d7a72', '5', 1514, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('27c6b5e97aee4df486182d5281418eb1', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'f0d5f86bcfd14a0094b630eb57723b40', '5', 1515, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ece8aa7d472f42278dd8aa461f25ce38', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '1640bc449339460c9a7908585b55c1c2', '5', 1516, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb678f6d332d4ec6baa02b744b49c8a7', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'd1c09daabd944f519f37d97396d72411', '5', 1517, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db86350a7fd143678323d6a3e3e28613', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b0ec59f4702c48dd9f9919ca9a44dd12', '5', 1518, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('09e79a127023498093c37a9b0211501d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '3e1b825f6e444b1ea04463462f36f1f7', '5', 1519, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('11a62386ec0a48d6bb1e8a7313656a9f', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2c07212e26f746369a5cbb724ad2698f', '5', 1520, '1', '2024-07-15 17:14:14', '1', '2024-07-15 17:14:14', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0d5d3749b9ee46e293f82c4b2bcfc443', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b637be20e163468aaad0d1e493e9e7ad', '5', 1521, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6d4220c08b6464a864158e53f4e2d45', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '4f773ae6e95e487c859db420fc3ba92b', '5', 1522, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('72bb4807123448929732c7e1a192b8a2', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'ce41de301b4740deb7b39ade148bd571', '5', 1523, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('27bf62ae94c7433594e0132e46fff489', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '0710afd06eba45ed863b7fb598bcd1ff', '5', 1524, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1990aaeffc4c4605b2afb33fce952241', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '5c2cd97fdb2c4d7ba80fe7ea53d11ceb', '5', 1525, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('02cd8f26cdfb4c9f9c30278be6fcf284', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, 'b6b28ecbe48e480d94573dd30383fd39', '5', 1526, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9e4ba2d2949a43889c31729398392c2c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '8ea2cda26ccc4b5eada2d9312b555b3c', '5', 1527, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); +INSERT INTO mdm_module_view_detail (id, mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('27e72ae533fb40189daaeb08b6ea861c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, '2916b06c65294f54818c0d8477281005', '5', 1528, '1', '2024-07-15 17:14:15', '1', '2024-07-15 17:14:15', 'Y', '0', '0'); + + +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1a4758a3f5304a5596b4c90db6242bdf', '44662daad6a64b0fb5043339a4748a7b', NULL, NULL, '2', NULL, 'ZZ', 107, '1', '2024-07-06 09:49:36', '1', '2024-07-06 09:49:36', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b6449f148e6d403bad396d37b3313bc8', '44662daad6a64b0fb5043339a4748a7b', NULL, NULL, '1', NULL, '-', 108, '1', '2024-07-06 09:49:36', '1', '2024-07-06 09:49:36', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('fa62dd5d03e04c629a69cb66cd22ef15', '44662daad6a64b0fb5043339a4748a7b', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 109, '1', '2024-07-06 09:49:36', '1', '2024-07-06 09:49:36', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ee37cbb2a5c84870b5029c19e0c78951', '44662daad6a64b0fb5043339a4748a7b', NULL, NULL, '1', NULL, '-', 110, '1', '2024-07-06 09:49:36', '1', '2024-07-06 09:49:36', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d0eb75bca5de4ee6b147f5554a8d595f', '44662daad6a64b0fb5043339a4748a7b', NULL, NULL, '4', NULL, '00000', 111, '1', '2024-07-06 09:49:36', '1', '2024-07-06 09:49:36', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3db8f4a97329411ab7ce4f8616c3491d', '7b134ac29de4494a82f8a9302913e596', NULL, NULL, '2', NULL, 'XM', 112, '1', '2024-06-17 14:18:39', '1', '2024-06-17 14:18:39', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2938ec5d36014783ab3c084016dfbc05', '7b134ac29de4494a82f8a9302913e596', NULL, NULL, '1', NULL, '-', 113, '1', '2024-06-17 14:18:39', '1', '2024-06-17 14:18:39', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d2fe6d8a59a647658ec3f66d1f064a30', '7b134ac29de4494a82f8a9302913e596', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 114, '1', '2024-06-17 14:18:40', '1', '2024-06-17 14:18:40', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('476bcd73f4ad415cbc08b07df16f92ca', '7b134ac29de4494a82f8a9302913e596', NULL, NULL, '1', NULL, '-', 115, '1', '2024-06-17 14:18:40', '1', '2024-06-17 14:18:40', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9a1a376f86b342a58bd8e0a95e200648', '7b134ac29de4494a82f8a9302913e596', NULL, NULL, '4', NULL, '00000', 116, '1', '2024-06-17 14:18:40', '1', '2024-06-17 14:18:40', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('485e63e32e4a452ba06216e7d0d058d9', '8747f494dd7b4780873ad0616835a0f8', NULL, NULL, '2', NULL, 'YH', 117, '1', '2024-06-17 14:30:50', '1', '2024-06-17 14:30:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c08db54bc524402994b6493e8a44b026', '8747f494dd7b4780873ad0616835a0f8', NULL, NULL, '1', NULL, '-', 118, '1', '2024-06-17 14:30:50', '1', '2024-06-17 14:30:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('45df2ae3ad6542989db77d4180c949ba', '8747f494dd7b4780873ad0616835a0f8', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 119, '1', '2024-06-17 14:30:50', '1', '2024-06-17 14:30:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('769f615c4cea437fb0f7c20d55b9a7eb', '8747f494dd7b4780873ad0616835a0f8', NULL, NULL, '1', NULL, '-', 120, '1', '2024-06-17 14:30:50', '1', '2024-06-17 14:30:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('69686bcb5fed4f4d850e436fef7f860a', '8747f494dd7b4780873ad0616835a0f8', NULL, NULL, '4', NULL, '00000', 121, '1', '2024-06-17 14:30:50', '1', '2024-06-17 14:30:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('628e81eb9a224cabbf4db7f15a16918c', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, NULL, '2', NULL, 'KH', 122, '1', '2024-06-17 15:37:53', '1', '2024-06-17 15:37:53', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4343a514f39b4c7c937db8f6cee71d3d', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, NULL, '1', NULL, '-', 123, '1', '2024-06-17 15:37:53', '1', '2024-06-17 15:37:53', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('db6f04c4435f4a22811f6b3cb7937803', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 124, '1', '2024-06-17 15:37:53', '1', '2024-06-17 15:37:53', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1e8b0da340c14ab4ae0dcca6d8fb71af', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, NULL, '1', NULL, '-', 125, '1', '2024-06-17 15:37:53', '1', '2024-06-17 15:37:53', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e397462b65994eaab1b0800ba99a57fe', 'cad628f90f3d4c1b8b9f880e9bb5a33f', NULL, NULL, '4', NULL, '00000', 126, '1', '2024-06-17 15:37:53', '1', '2024-06-17 15:37:53', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('bb8fb4092f7c4d64864e25856294e3bd', 'fab2ed90cdde44b3be09e57e640ea157', NULL, NULL, '2', NULL, 'YH', 127, '1', '2024-06-17 15:59:50', '1', '2024-06-17 15:59:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('09b2340845dc422688a070be2f0b365b', 'fab2ed90cdde44b3be09e57e640ea157', NULL, NULL, '1', NULL, '-', 128, '1', '2024-06-17 15:59:50', '1', '2024-06-17 15:59:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d11348bd87164053b57c517c377abe1b', 'fab2ed90cdde44b3be09e57e640ea157', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 129, '1', '2024-06-17 15:59:50', '1', '2024-06-17 15:59:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2c5c3eb4db8a4fa49ce99f251f9a3fdc', 'fab2ed90cdde44b3be09e57e640ea157', NULL, NULL, '1', NULL, '-', 130, '1', '2024-06-17 15:59:50', '1', '2024-06-17 15:59:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f8656933b14e44a580ec5ca797074060', 'fab2ed90cdde44b3be09e57e640ea157', NULL, NULL, '4', NULL, '00000', 131, '1', '2024-06-17 15:59:50', '1', '2024-06-17 15:59:50', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d242c1e4141548e889d1b418c71a10e7', '30abda9cd2ed4d01897e77d89804713a', NULL, NULL, '2', NULL, 'GYS', 132, '1', '2024-06-17 16:08:33', '1', '2024-06-17 16:08:33', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cdbcfa7a2758432f82bf7dafe79d1b03', '30abda9cd2ed4d01897e77d89804713a', NULL, NULL, '1', NULL, '-', 133, '1', '2024-06-17 16:08:33', '1', '2024-06-17 16:08:33', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cab8acc83c0540aba0fbe5a8b93fec9f', '30abda9cd2ed4d01897e77d89804713a', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 134, '1', '2024-06-17 16:08:33', '1', '2024-06-17 16:08:33', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ec9e0db2992b423b83aeefed10cd5bb7', '30abda9cd2ed4d01897e77d89804713a', NULL, NULL, '1', NULL, '-', 135, '1', '2024-06-17 16:08:33', '1', '2024-06-17 16:08:33', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5dc223b1bbdc46c8b875f600882ad494', '30abda9cd2ed4d01897e77d89804713a', NULL, NULL, '4', NULL, '00000', 136, '1', '2024-06-17 16:08:33', '1', '2024-06-17 16:08:33', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dee33c048aae41cca7dae496d5a32ca1', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, NULL, '2', NULL, 'RY', 137, '1', '2024-06-17 16:16:40', '1', '2024-06-17 16:16:40', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca380447a0274d358b91ee4aa15124fe', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, NULL, '1', NULL, '-', 138, '1', '2024-06-17 16:16:41', '1', '2024-06-17 16:16:41', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f313954fb56c49a88c9182b108ff34f4', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, NULL, '3', NULL, 'yyyy-MM-dd', 139, '1', '2024-06-17 16:16:41', '1', '2024-06-17 16:16:41', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6f76844c61494cb5a31590c69f010e5d', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, NULL, '1', NULL, '-', 140, '1', '2024-06-17 16:16:41', '1', '2024-06-17 16:16:41', 'Y', '0', '0'); +INSERT INTO mdm_table_code_rule (id, mdm_id, db_id, db_name, db_type, remark, db_value, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('154ab63089db4b4799d9a29524753b1c', 'ae9798c45d90408da5b9d6ec96da5b47', NULL, NULL, '4', NULL, '00000', 141, '1', '2024-06-17 16:16:41', '1', '2024-06-17 16:16:41', 'Y', '0', '0'); + + +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('8d57493bbf294c54983a76950b9179ea', 'ea22757e99c144fb9ef381dd322e233c', '银行档案', 'integrationOptionAdmin10007', '8673999735704338432', 'integrationOptionAdmin/10007', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 75, '1', '2024-06-18 09:51:15', '1', '2024-07-10 14:35:50', 'Y', '0', '0', '{\"mdmCode\":10007,\"viewType\":\"2\",\"mdmId\":\"fab2ed90cdde44b3be09e57e640ea157\"}', 'fab2ed90cdde44b3be09e57e640ea157'); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('dcc7a84608074ef89620ae68d1337fb0', 'ea22757e99c144fb9ef381dd322e233c', '组织档案', 'integrationOptionAdmin10001', '80494007427286948', 'integrationOptionAdmin/10001', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 76, '1', '2024-06-20 11:01:22', '1', '2024-07-10 14:33:35', 'Y', '0', '0', '{\"mdmCode\":10001,\"viewType\":\"1\",\"mdmId\":\"44662daad6a64b0fb5043339a4748a7b\"}', '44662daad6a64b0fb5043339a4748a7b'); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('91c017d3910842aea36658a774860406', 'ea22757e99c144fb9ef381dd322e233c', '客户档案', 'integrationOptionAdmin10004', '-6607636247925469458', 'integrationOptionAdmin/10004', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 77, '1', '2024-06-20 14:36:26', '1', '2024-07-10 14:36:08', 'Y', '0', '0', '{\"mdmCode\":10004,\"viewType\":\"2\",\"mdmId\":\"cad628f90f3d4c1b8b9f880e9bb5a33f\"}', 'cad628f90f3d4c1b8b9f880e9bb5a33f'); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('258c9e395fa54043a6de66f2c7f2f257', 'ea22757e99c144fb9ef381dd322e233c', '用户档案', 'integrationOptionAdmin10003', '-8900206555643821885', 'integrationOptionAdmin/10003', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 78, '1', '2024-06-24 10:09:28', '1', '2024-07-10 14:25:46', 'Y', '0', '0', '{\"mdmCode\":10003,\"viewType\":\"2\",\"mdmId\":\"8747f494dd7b4780873ad0616835a0f8\"}', '8747f494dd7b4780873ad0616835a0f8'); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('b61068bd4833494a95f69f2a3b5979d2', 'ea22757e99c144fb9ef381dd322e233c', '人员档案', 'integrationOptionAdmin10005', '-6278215835028403882', 'integrationOptionAdmin/10005', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 82, '1', '2024-06-25 11:45:57', '1', '2024-07-10 14:31:02', 'Y', '0', '0', '{\"mdmCode\":10005,\"viewType\":\"2\",\"mdmId\":\"ae9798c45d90408da5b9d6ec96da5b47\"}', 'ae9798c45d90408da5b9d6ec96da5b47'); +INSERT INTO sys_menu_config (id, parent_menu_id, menu_name, menu_english_name, menu_icon, route, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, options, form_id) VALUES ('713ac39efcc74cc7abff72c9c2137fd6', 'ea22757e99c144fb9ef381dd322e233c', '项目档案', 'integrationOptionAdmin10002', '-6728207138358804350', 'integrationOptionAdmin/10002', 'integrationOptionV2/index', '主数据生成菜单', '0', '1', 83, '1', '2024-06-25 14:15:53', '1', '2024-07-10 14:24:06', 'Y', '0', '0', '{\"mdmCode\":10002,\"viewType\":\"2\",\"mdmId\":\"7b134ac29de4494a82f8a9302913e596\"}', '7b134ac29de4494a82f8a9302913e596'); + + + +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a043cf6c0f564ae8974ca3063a500f62', 'new', '新建', 'new', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'new', '主数据新建按钮', 124246, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('885de1a41d134b62967572d8b9c2a4fa', 'resize', '重置', 'resize', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'resize', '主数据重置按钮', 124247, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dafabed6b2f141739369aabe98af170e', 'search', '查询', 'search', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'search', '主数据查询按钮', 124248, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3711ca553a84413988bc7feaa3d6e8c2', 'edit', '修改', 'edit', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'edit', '主数据修改按钮', 124249, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('64916434d2ed487fae40a1f2dccfb06a', 'dele', '删除', 'dele', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'dele', '主数据删除按钮', 124250, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f968608703d4b24ba8a7f805e61f1f9', 'view', '查看', 'view', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'view', '主数据查看按钮', 124251, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9ebece32fd01425e8cf66f1178611038', 'send', '下发', 'send', '8d57493bbf294c54983a76950b9179ea', NULL, NULL, 'send', '主数据下发按钮', 124252, '1', '2024-06-18 10:05:55', '1', '2024-06-18 10:05:55', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b3242850e3464feb925e56640919ddba', 'new', '新建', 'new', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'new', '主数据新建按钮', 124253, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('036c995a3a914bad9a0abad8931147be', 'resize', '重置', 'resize', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'resize', '主数据重置按钮', 124254, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6d400dc12eb84bb29fd96241fa636846', 'search', '查询', 'search', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'search', '主数据查询按钮', 124255, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('05ac02547fae4099bc5f4f8c69dd8148', 'edit', '修改', 'edit', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'edit', '主数据修改按钮', 124256, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3dc8e36e742b4cd18225e69178f0823b', 'dele', '删除', 'dele', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'dele', '主数据删除按钮', 124257, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2a41af5490014e9a8b1bbfdda1ca1042', 'view', '查看', 'view', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'view', '主数据查看按钮', 124258, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('639ddf3512ec4a9cbbfb06725c50b42f', 'send', '下发', 'send', 'dcc7a84608074ef89620ae68d1337fb0', NULL, NULL, 'send', '主数据下发按钮', 124259, '1', '2024-06-20 11:04:55', '1', '2024-07-10 10:45:08', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5ee6419423e54e7ca98add8dfeb7fae6', 'new', '新建', 'new', '91c017d3910842aea36658a774860406', NULL, NULL, 'new', '主数据新建按钮', 124260, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da3b6de4dc3349fd8cefcc147c3b75b5', 'resize', '重置', 'resize', '91c017d3910842aea36658a774860406', NULL, NULL, 'resize', '主数据重置按钮', 124261, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e98247fbbec049af8b0e1c65f6c4d9cf', 'search', '查询', 'search', '91c017d3910842aea36658a774860406', NULL, NULL, 'search', '主数据查询按钮', 124262, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('731d7772a7354af59b11b1023258ad14', 'edit', '修改', 'edit', '91c017d3910842aea36658a774860406', NULL, NULL, 'edit', '主数据修改按钮', 124263, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b74aede966f46b4bfd87fb53a96a37c', 'dele', '删除', 'dele', '91c017d3910842aea36658a774860406', NULL, NULL, 'dele', '主数据删除按钮', 124264, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eb71f00679e040a4a340a15d0424c6ad', 'view', '查看', 'view', '91c017d3910842aea36658a774860406', NULL, NULL, 'view', '主数据查看按钮', 124265, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e17cfee54c334b8fb2192be9de3abaa5', 'send', '下发', 'send', '91c017d3910842aea36658a774860406', NULL, NULL, 'send', '主数据下发按钮', 124266, '1', '2024-06-20 14:37:37', '1', '2024-06-20 14:37:37', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82ebe885a69f4e789bc32b8fd47ee7e5', 'new', '新建', 'new', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'new', '主数据新建按钮', 124267, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b599b92f1d42438e88c3592115db69ac', 'search', '查询', 'search', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'search', '主数据查询按钮', 124268, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7f94b78be14a42a09f83513c426e26fa', 'resize', '重置', 'resize', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'resize', '主数据重置按钮', 124269, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9758387bb80b4158a8c5b05e6682ada4', 'edit', '修改', 'edit', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'edit', '主数据修改按钮', 124270, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c6f0013d3f2b41029583aa61e4d7a3d3', 'dele', '删除', 'dele', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'dele', '主数据删除按钮', 124271, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('79402d85cedb4ddd8aa5bc19999960f7', 'send', '下发', 'send', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'send', '主数据下发按钮', 124272, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b216770bba14489b8dd62cdf0c0574dc', 'view', '查看', 'view', '258c9e395fa54043a6de66f2c7f2f257', NULL, NULL, 'view', '主数据查看按钮', 124273, '1', '2024-06-24 10:11:22', '1', '2024-06-24 10:11:22', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b3ff11eecd6c48afa413bb23e21cf165', 'new', '新建', 'new', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'new', '主数据新建按钮', 124281, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f2fcd5b1ea8c46a5bf7013cefc20723f', 'resize', '重置', 'resize', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'resize', '主数据重置按钮', 124282, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2f3c1871a5e74411adde896a0cc7c902', 'search', '查询', 'search', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'search', '主数据查询按钮', 124283, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cf6e8d3a03df43e884439c4782db35e2', 'edit', '修改', 'edit', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'edit', '主数据修改按钮', 124284, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('0833a886899547a0ac245a260d47337d', 'dele', '删除', 'dele', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'dele', '主数据删除按钮', 124285, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6c499c0c4fc1444b89915b6645a1e614', 'view', '查看', 'view', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'view', '主数据查看按钮', 124286, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('af71ae762c2a468499d277a2b7402f17', 'send', '下发', 'send', 'b61068bd4833494a95f69f2a3b5979d2', NULL, NULL, 'send', '主数据下发按钮', 124287, '1', '2024-06-25 11:47:36', '1', '2024-06-25 11:47:36', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cf029f861d8a4f1281c93ef013afeb48', 'new', '新建', 'new', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'new', '主数据新建按钮', 124288, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ca6bdcd2d2d74e1cbca5f01175288032', 'resize', '重置', 'resize', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'resize', '主数据重置按钮', 124289, '1', '2024-06-25 15:26:02', '1', '2024-06-25 15:26:02', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d22305859c234bb0b4b20c3528282b22', 'search', '查询', 'search', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'search', '主数据查询按钮', 124290, '1', '2024-06-25 15:26:03', '1', '2024-06-25 15:26:03', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('ce2e590ef61a4fe0b93077e5dc123828', 'edit', '修改', 'edit', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'edit', '主数据修改按钮', 124291, '1', '2024-06-25 15:26:03', '1', '2024-06-25 15:26:03', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('30d0844dc74945d086c991abb82c1a02', 'dele', '删除', 'dele', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'dele', '主数据删除按钮', 124292, '1', '2024-06-25 15:26:03', '1', '2024-06-25 15:26:03', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('82b7c0a4acd047c19c22ae4a4823e5d0', 'view', '查看', 'view', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'view', '主数据查看按钮', 124293, '1', '2024-06-25 15:26:03', '1', '2024-06-25 15:26:03', 'Y', '0', '0'); +INSERT INTO sys_button_config (id, code, name_ch, name_en, menu_id, icon_name, styles, btn_function, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('76669b98faaa406fa5d802249463061d', 'send', '下发', 'send', '713ac39efcc74cc7abff72c9c2137fd6', NULL, NULL, 'send', '主数据下发按钮', 124294, '1', '2024-06-25 15:26:03', '1', '2024-06-25 15:26:03', 'Y', '0', '0'); + + +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d41ae104e2384f698b1f903df4178e02', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '2', 4780, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f6780d54a41649ab91076733be175789', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '2', 4781, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('9a4da9a9588345cab508404b1d9ca90b', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', '2', 4782, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('8d97d13af0c64fa68f684326e9f13d07', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', '2', 4783, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('86ebc781ba9c4be5a484a33e5065319f', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', '2', 4784, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_menu (id, object_id, menu_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d40cabaefdf64895ad43a7c44298468b', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', '2', 4785, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); + + +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2abaf96ca6b94526b9a76f6f3441c171', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', 'a043cf6c0f564ae8974ca3063a500f62', '2', 1, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('806e3d2c76f54979b4ddd49a6440bc39', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '885de1a41d134b62967572d8b9c2a4fa', '2', 2, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('616188fac1604cdcb66591c8dd61c73d', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', 'dafabed6b2f141739369aabe98af170e', '2', 3, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('b5ae99f9b9e94e4886bbcc58c1aa1dbe', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '3711ca553a84413988bc7feaa3d6e8c2', '2', 4, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('21ee66bc7b334807af763fdd56786ea9', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '64916434d2ed487fae40a1f2dccfb06a', '2', 5, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('e3e979b9074445adb7c9642b130c1cec', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '3f968608703d4b24ba8a7f805e61f1f9', '2', 6, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('55ca45224eee44999b661b4a6e07fff9', '67fc3991a633427ab26e13bf9ea35374', '8d57493bbf294c54983a76950b9179ea', '9ebece32fd01425e8cf66f1178611038', '2', 7, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f02b81874a444abbba3a922432f41540', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', 'b3242850e3464feb925e56640919ddba', '2', 8, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('da086add66194eecbec7adcb00958d8d', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '036c995a3a914bad9a0abad8931147be', '2', 9, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3f3fd2b80ae24149887fcab81dbb6980', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '6d400dc12eb84bb29fd96241fa636846', '2', 10, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1688e1949c824212943f3994bd01b337', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '05ac02547fae4099bc5f4f8c69dd8148', '2', 11, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dc569537f87e44e79789fc6ad399dd71', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '3dc8e36e742b4cd18225e69178f0823b', '2', 12, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('cc0a7289bb594eaeb0cc77597ec4bf12', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '2a41af5490014e9a8b1bbfdda1ca1042', '2', 13, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7ff0636199af44ebaf875ea48c95d02a', '67fc3991a633427ab26e13bf9ea35374', 'dcc7a84608074ef89620ae68d1337fb0', '639ddf3512ec4a9cbbfb06725c50b42f', '2', 14, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('299eff43b3d64bf79d5cc3899dfe3378', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', '5ee6419423e54e7ca98add8dfeb7fae6', '2', 15, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95773447cd6d4cd6ad4549681c8540db', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', 'da3b6de4dc3349fd8cefcc147c3b75b5', '2', 16, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('35a5277c443345208d436682bdf88f26', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', 'e98247fbbec049af8b0e1c65f6c4d9cf', '2', 17, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('95cecd8f9dd544de97a3de6e6eed0c88', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', '731d7772a7354af59b11b1023258ad14', '2', 18, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6691d2757e1b4077967bff20087a2b38', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', '6b74aede966f46b4bfd87fb53a96a37c', '2', 19, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('62c83d44f37144c79fcb93fa6aaa2ab1', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', 'eb71f00679e040a4a340a15d0424c6ad', '2', 20, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7a8e225c8d61472d89dc0146b121ea4c', '67fc3991a633427ab26e13bf9ea35374', '91c017d3910842aea36658a774860406', 'e17cfee54c334b8fb2192be9de3abaa5', '2', 21, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('81d01d51d42b476d8734edfb18ff2e9e', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', '82ebe885a69f4e789bc32b8fd47ee7e5', '2', 22, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dae292f1786b48998d6e8d9017486070', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', 'b599b92f1d42438e88c3592115db69ac', '2', 23, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('63ba029ff7f642818382f61578abeb89', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', '7f94b78be14a42a09f83513c426e26fa', '2', 24, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('92be2c66ea7d444b8a5205e9f22c9a1a', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', '9758387bb80b4158a8c5b05e6682ada4', '2', 25, '1', '2024-07-18 11:13:02', '1', '2024-07-18 11:13:02', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a66d25e3168d4971a6f4457d28384d51', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', 'c6f0013d3f2b41029583aa61e4d7a3d3', '2', 26, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f5253fce6d094cc8a0364269a8170bc3', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', '79402d85cedb4ddd8aa5bc19999960f7', '2', 27, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('4827e113ce7f4ca681400508032d535b', '67fc3991a633427ab26e13bf9ea35374', '258c9e395fa54043a6de66f2c7f2f257', 'b216770bba14489b8dd62cdf0c0574dc', '2', 28, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('7c756daac5b7410582456bae1b1698b4', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', 'b3ff11eecd6c48afa413bb23e21cf165', '2', 29, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('6b70e7f67b424804a285fffe55080d3e', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', 'f2fcd5b1ea8c46a5bf7013cefc20723f', '2', 30, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('5766bdaede3d4120bbf57a596dabe4e1', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', '2f3c1871a5e74411adde896a0cc7c902', '2', 31, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('3af5f68ded934a7198ba30009c5c419f', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', 'cf6e8d3a03df43e884439c4782db35e2', '2', 32, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('398b77ede6334ed695ef5521889234f8', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', '0833a886899547a0ac245a260d47337d', '2', 33, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('dc8748611552443bb3561978cd6cceba', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', '6c499c0c4fc1444b89915b6645a1e614', '2', 34, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('f334a7cbd154414b82f3721ffe8ab409', '67fc3991a633427ab26e13bf9ea35374', 'b61068bd4833494a95f69f2a3b5979d2', 'af71ae762c2a468499d277a2b7402f17', '2', 35, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('d0ba926e010147f1b5645652341a5744', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', 'cf029f861d8a4f1281c93ef013afeb48', '2', 36, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('579d703cf373407e9fedcd793d02a2c5', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', 'ca6bdcd2d2d74e1cbca5f01175288032', '2', 37, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('2f2a011e9ee049cc90ee0ef2dd02065e', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', 'd22305859c234bb0b4b20c3528282b22', '2', 38, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('eaf7fefa918a496f9f827f141a978358', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', 'ce2e590ef61a4fe0b93077e5dc123828', '2', 39, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('416f7cadc1fd496ba7473a9b7e398107', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', '30d0844dc74945d086c991abb82c1a02', '2', 40, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('a64388e779594ab386442f0b20f980e4', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', '82b7c0a4acd047c19c22ae4a4823e5d0', '2', 41, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +INSERT INTO sys_popedom_operate (id, object_id, menu_id, operate, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('c00a05e2ec1f4024b4971baa21483aa7', '67fc3991a633427ab26e13bf9ea35374', '713ac39efcc74cc7abff72c9c2137fd6', '76669b98faaa406fa5d802249463061d', '2', 42, '1', '2024-07-18 11:13:03', '1', '2024-07-18 11:13:03', 'Y', '0', '0'); +commit; \ No newline at end of file diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.8__init_app_szzt.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.8__init_app_szzt.sql new file mode 100644 index 00000000..2e264188 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.8__init_app_szzt.sql @@ -0,0 +1,56 @@ +INSERT INTO sys_application (id, app_logo, app_status, name, version_number, access_mode, affiliation_field, manufacturer, app_introduction, client_path, app_id, system_address, web_path, program_path, public_key, secret_key, interface_address, interface_status, app_type, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('82bd4293fda94d6896217509f11b6c4c', '-7421991978796695038', '1', '数智中台', '1.0', '[\"1\"]', '1', '用安', '默认应用', NULL, 800004, NULL, NULL, NULL, 'ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj', 'fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=', 'http://ufidahz.com.cn:9067/', '1', '', '2', 6, NULL, 'Y', '2023-10-20 11:49:23', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2024-06-21 10:35:03', '1'); + +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('01b8d8e2bc724e22a511afda7c12a610', 8000040010, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '客商删除', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"a7be5a9e-62eb-47f2-ab86-72bcf75b0396\",\"parameterName\":\"body\",\"first\":true}]', '[]', 181, '1', '2024-04-26 10:20:30', '1', '2024-04-26 10:20:30', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('0bddf53ab22c48d288384f3fa1b06c22', 8000040015, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '存货分类修改', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"41255cc5-66cd-4d43-a21d-8d0f504e5e60\",\"parameterName\":\"body\",\"first\":true}]', '[]', 186, '1', '2024-04-28 13:56:06', '1', '2024-04-28 13:56:06', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('17368c98720542f0993a69aafc6277ff', 8000040006, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '部门修改', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"d41a4d0b-fe03-42d2-9b4b-11387c8915c2\",\"parameterName\":\"body\",\"first\":true}]', '[]', 177, '1', '2024-04-28 13:51:14', '1', '2024-04-28 13:51:14', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('1a7523db19a74a539aa1ef14eda0348f', 8000040013, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '项目删除', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"8389c9fd-a253-46fe-a8b8-0986eceeda22\",\"parameterName\":\"body\",\"first\":true}]', '[]', 184, '1', '2024-04-28 13:55:04', '1', '2024-04-28 13:55:04', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('207773f783a84be490dd097b736d4f87', 8000040011, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '项目新增', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"26c95243-0167-4fc2-b4e3-0fc56e57d254\",\"parameterName\":\"body\",\"first\":true}]', '[]', 182, '1', '2024-04-28 13:54:18', '1', '2024-04-28 13:54:18', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('228e1f06f81a42b7add6563208f5f7f8', 8000040025, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '凭证修改', '凭证修改', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":0,\"parameterName\":\"tl\",\"id\":\"b26b2e68-ab50-435c-80d0-ca57fca19e9a\",\"example\":\"axServiceImpl\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"dj\",\"id\":\"146b97de-a8ac-4b3d-9b72-2b9666fbf584\",\"example\":\"thirdInterfaceVoucherInsert\"}]', '[]', '1', '[{\"id\":\"67b5575c-0c2b-469f-8740-7fbc66797ba9\",\"parameterName\":\"body\",\"first\":true}]', '[]', 199, '1', '2024-05-09 11:18:34', '1', '2024-05-09 11:18:34', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('240e6c6c6e7e4564a43d6eaffacde205', 8000040016, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '存货分类删除', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"02f2ff63-8a79-4375-9463-dfd602b93004\",\"parameterName\":\"body\",\"first\":true}]', '[]', 187, '1', '2024-04-28 13:56:28', '1', '2024-04-28 13:56:28', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('28aafcf4aba949a59739b4fa42d8a72f', 8000040000, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', 'a132acc6c2ed4f9e91f5e9f4325ba791', '获取供应商接口', NULL, '2', NULL, '1', '获取供应商接口', '1', '1', '10000', '100', '[]', '[]', '1', '[]', '[]', 44, 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 16:46:50', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 16:46:50', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('2e79301f9a284ac090a337070e200d8f', 8000040007, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '部门删除', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"95def364-2b5d-41f9-8d41-5107b96c9be5\",\"parameterName\":\"body\",\"first\":true}]', '[]', 178, '1', '2024-04-28 13:51:24', '1', '2024-04-28 13:51:24', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('312b8c428b384b0098b902076c05a194', 8000040001, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '奥星凭证新增', '奥星凭证新增', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"6335d194-d08d-4177-be19-a5fe71810719\",\"parameterName\":\"tl\",\"example\":\"axServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"f30f99cf-802f-41a9-ad37-b9a88e4b0bae\",\"parameterName\":\"dj\",\"example\":\"thirdInterfaceVoucherInsert\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"usercode\",\"id\":\"c16e4a40-49fc-40b3-9c5c-65b0a801a336\",\"example\":\"aoxing\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"parameterName\":\"password\",\"id\":\"a8053a51-5d0e-499c-b675-655f6890cad0\",\"example\":\"83f1ad3e7fa3617f1aae62ae7413c810\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"parameterName\":\"trantype\",\"id\":\"e2c7a88b-38b6-42dc-b15b-1d5d99728cb3\",\"example\":\"code\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"parameterName\":\"system\",\"id\":\"b3c3150f-da25-4513-bf65-b95757d10001\",\"example\":\"01\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":8,\"parameterName\":\"ass\",\"id\":\"bb6176b7-9835-4902-a961-6b951b6bf344\"},{\"parameterType\":\"fundamentallist\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"cashflow\",\"id\":\"4a6e7d21-41e3-4c65-bd28-7c6755b28262\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"creditamount\",\"id\":\"e9bf3049-43ec-4f20-92f5-96f9f2c986b3\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"parameterName\":\"debitamount\",\"id\":\"d8052e37-216b-493c-a28f-c53d17d32580\",\"example\":\"100\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"parameterName\":\"explanation\",\"id\":\"f7e97e48-a952-4ecc-b54a-3f4ab222b4fc\",\"example\":\"借方金额\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"parameterName\":\"localcreditamount\",\"id\":\"cf24ccb0-7c0e-4f94-bf4d-1273cbe9020d\",\"example\":\"0\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"parameterName\":\"localdebitamount\",\"id\":\"fdff27f4-7db5-4288-b2c5-479d1dadcb27\",\"example\":\"100\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"parameterName\":\"pk_accsubj\",\"id\":\"bba43e82-589b-4ca7-b100-320e301e4002\",\"example\":\"1132\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"parameterName\":\"pk_currtype\",\"id\":\"b1c2d870-d100-4312-b380-221cb11e5d96\",\"example\":\"CNY\"}],\"concreteType\":\"ObjectCom\",\"index\":7,\"parameterName\":\"details\",\"id\":\"0a64930d-2292-4f7d-8e11-7f8e6c529ed5\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"parameterName\":\"no\",\"id\":\"16ca9957-c3db-4702-a4d1-d76fa65fd3a0\",\"example\":\"4\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":18,\"parameterName\":\"pk_corp\",\"id\":\"7cd569b6-bec9-4670-8fe3-e35d392b6598\",\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":19,\"parameterName\":\"pk_glorgbook\",\"id\":\"a0461bda-555b-4fe6-8649-030154c441c9\",\"example\":\"01-01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":20,\"parameterName\":\"pk_prepared\",\"id\":\"85e48c78-2411-45f3-b52a-7ad57c9a4b18\",\"example\":\"17633965916\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":21,\"parameterName\":\"pk_vouchertype\",\"id\":\"81b18d65-1da9-4b6f-bdc4-d23bb4451451\",\"example\":\"记账\"}],\"concreteType\":\"ObjectCom\",\"index\":6,\"parameterName\":\"voucher\",\"id\":\"3bf8fd8e-3143-4f3c-a66f-dcaf97d98e33\"}],\"concreteType\":\"Object\",\"index\":5,\"parameterName\":\"data\",\"id\":\"3b6a6261-c470-4c34-a7a3-6c709fccc4f4\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"edc5e003-f964-4c59-afb7-eddc73ad7a74\",\"parameterName\":\"body\",\"first\":true}]', '[]', 169, '1', '2024-05-17 15:54:01', '1', '2024-05-17 15:54:01', 'Y', NULL, NULL, NULL, '2', 'status', 'success', 'errormsg'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('318f09d7418b43e483bd8515e930e747', 8000040020, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', 'a15437331f7a4cb4895545742547d192', '档案对照删除', '档案对照删除', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"ee42c503-84ae-4363-965a-b995eb181779\",\"parameterName\":\"tl\",\"example\":\"generalDataServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"c1c9ca3e-8f57-469c-a471-7eb7f9bfbde8\",\"parameterName\":\"dj\",\"example\":\"deleteEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"id\",\"parameterName\":\"id\",\"id\":\"c38f3f13-efd4-4d73-9be8-7addf1c28847\",\"required\":true,\"example\":\"e712bef171824285b02bd9040c8f8e6a\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"档案对照类型\",\"parameterName\":\"archivesType\",\"id\":\"52e6307e-c7e6-4570-97a4-9331629252d4\",\"required\":true,\"example\":\"1\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"710aa0d8-fb20-45d4-809f-6f17fa580759\",\"parameterName\":\"body\",\"first\":true}]', '[]', 191, '1', '2024-05-28 10:28:29', '1', '2024-05-28 10:28:29', 'Y', NULL, 'comparisonServiceImpl', 'deleteEntity', '2', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('3b1a93ff83854bbb99e8f4fc7280e693', 8000040024, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '2cb8bfafc3034806a9bb2657b300d29e', '通用数据接口删除', '通用数据接口删除', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"b0cc7b8c-73c9-4d24-87d1-13ecbf014ff2\",\"parameterName\":\"yatl\",\"example\":\"comparisonServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"8c8c936c-c404-40af-a12c-d3578823ee78\",\"parameterName\":\"yadj\",\"example\":\"deleteEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"主数据编码\",\"parameterName\":\"mdmCode\",\"id\":\"2d320e3e-4aa3-4d79-8133-d4855d61620e\",\"required\":true,\"example\":\"10001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"来源名称\",\"parameterName\":\"sourceName\",\"id\":\"a96ef2c3-d7dd-4d37-b4d2-6f2905275a3b\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"来源编码\",\"parameterName\":\"code\",\"id\":\"da34b475-9220-44e6-a421-1d68ad2f7004\",\"required\":true,\"example\":\"80000001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"负责人\",\"parameterName\":\"optionName\",\"id\":\"b1914107-a4e6-444b-80b2-a65e98eb1d43\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"id\",\"parameterName\":\"id\",\"id\":\"79aad445-3f63-48b9-ab52-9cfed079eee1\",\"required\":true,\"example\":\"37140086fbe140239e727c18c51efe76\"}],\"concreteType\":\"Object\",\"index\":5,\"description\":\"主表\",\"parameterName\":\"main\",\"id\":\"6c75a71d-be76-4a1a-9ec1-be769bf89108\",\"required\":true}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"6d1fddbd-8161-41c5-8b33-b73baa02665a\",\"parameterName\":\"body\",\"first\":true}]', '[]', 195, '1', '2024-06-11 11:59:01', '1', '2024-06-11 11:59:02', 'Y', NULL, 'comparisonServiceImpl', 'getAppNameAndCode', '1', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('438ed8a928bb41e8af86b258ff6d462b', 8000040019, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', 'a15437331f7a4cb4895545742547d192', '档案对照编辑', '档案对照编辑', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"bb39850e-7dfd-4f77-ba48-63ebd243dbca\",\"parameterName\":\"tl\",\"example\":\"generalDataServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"db17c5c0-f017-4b11-851d-41d1ebe77a56\",\"parameterName\":\"dj\",\"example\":\"updateEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"id\",\"parameterName\":\"id\",\"id\":\"97b28e4e-863f-4b0f-91fe-ec48944fc963\",\"required\":true,\"example\":\"e712bef171824285b02bd9040c8f8e6a\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"档案对照类型\",\"parameterName\":\"archivesType\",\"id\":\"76ebb86a-be5c-4fcb-916b-ce687221c233\",\"required\":true,\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"左名称\",\"parameterName\":\"leftName\",\"id\":\"975634e6-09bf-49d1-8994-b8e9b401124c\",\"example\":\"数智中台测试通用接口\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"右名称\",\"parameterName\":\"rightName\",\"id\":\"f52d4982-907f-4b0d-bebe-697bc732df88\",\"example\":\"数据通用测试更新\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"a47c28a1-bfe7-40b2-ae65-ece1f1a35981\",\"parameterName\":\"body\",\"first\":true}]', '[]', 190, '1', '2024-05-28 10:27:08', '1', '2024-05-28 10:27:08', 'Y', NULL, 'comparisonServiceImpl', 'updateEntity', '2', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('47ab9397ce6140d8ba8bc7c76a491dae', 8000040005, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '部门新增', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"6b4f5161-eabd-4139-acc0-51410fedcc92\",\"parameterName\":\"body\",\"first\":true}]', '[]', 176, '1', '2024-04-28 13:51:01', '1', '2024-04-28 13:51:01', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5224fe0b61174d47bcb30d63034a5a7e', 8000040008, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '客商新增', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"ee64c331-90ff-4e6c-b190-79296eb370fe\",\"parameterName\":\"body\",\"first\":true}]', '[]', 179, '1', '2024-04-26 10:12:17', '1', '2024-04-26 10:12:17', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('57bffa474b73467bb2325afad8fa0d98', 8000040023, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '2cb8bfafc3034806a9bb2657b300d29e', '通用数据接口编辑', '通用数据接口编辑', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"73aa2dfe-58b1-4f2d-b518-099fd08119cc\",\"parameterName\":\"yatl\",\"example\":\"comparisonServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"ad3f8eb6-dd2d-4b96-a6a7-3b260c45e088\",\"parameterName\":\"yadj\",\"example\":\"updateEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"主数据编码\",\"parameterName\":\"mdmCode\",\"id\":\"7a4865a9-05bc-48b5-8087-2a0734affe32\",\"required\":true,\"example\":\"10001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"来源名称\",\"parameterName\":\"sourceName\",\"id\":\"6a6221ae-b820-4e73-8c08-3d0a91aff01d\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"来源编码\",\"parameterName\":\"code\",\"id\":\"66732a03-b932-4fef-b2b1-d3d2ea008ad2\",\"required\":true,\"example\":\"80000001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"负责人\",\"parameterName\":\"optionName\",\"id\":\"70ae98b5-0381-482e-a771-52847a85425b\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"id\",\"id\":\"d45b172f-404f-4b66-ae26-78333e2c809d\",\"example\":\"3d60c613695146b3bbd2c617a653f870\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"project_name\",\"id\":\"6aa6b7d1-20a1-40b4-a0e5-074638fdf111\",\"example\":\"凯伍德\"}],\"concreteType\":\"Object\",\"index\":5,\"description\":\"主表\",\"parameterName\":\"main\",\"id\":\"7f4bc773-47b5-4fb9-a468-f9bbfff59d5a\",\"required\":true},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"sszz\",\"id\":\"a020ab23-d7db-4409-9de1-97cb051281dd\",\"example\":\"0001A3100000000003V2\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"bz\",\"id\":\"f5bde220-c8c2-4303-b2df-96ac41386dc9\",\"example\":\"测试更新\"}],\"concreteType\":\"ObjectCom\",\"index\":8,\"description\":\"明细表\",\"parameterName\":\"details\",\"id\":\"2e47f1f7-e489-40ad-897c-6b3394f88aad\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"205f6ff5-d8de-458f-a46f-60447c085194\",\"parameterName\":\"body\",\"first\":true}]', '[]', 194, '1', '2024-06-11 11:58:39', '1', '2024-06-11 11:58:40', 'Y', NULL, 'comparisonServiceImpl', 'getAppNameAndCode', '1', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('5c45eb99118b4404a7f0cf81f65d22ee', 8000040021, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '2cb8bfafc3034806a9bb2657b300d29e', '通用数据接口查询', '通用数据接口查询', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"4997e140-f37d-4f0f-b476-db3db77ccbca\",\"parameterName\":\"yatl\",\"example\":\"comparisonServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"9e81b470-cc07-4c73-b5cb-b231df104c11\",\"parameterName\":\"yadj\",\"example\":\"queryEntityPage\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"主数据编码\",\"parameterName\":\"mdmCode\",\"id\":\"9ee9cd67-f599-4954-b654-c8be92143ac9\",\"example\":\"10001\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"dd33535e-ea47-47b1-a7cc-eab794841e56\",\"parameterName\":\"body\",\"first\":true}]', '[]', 192, '1', '2024-06-11 11:42:16', '1', '2024-06-11 11:42:16', 'Y', NULL, 'comparisonServiceImpl', 'getAppNameAndCode', '1', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('6064dd29d4334da396a00ab112f2102f', 8000040027, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '凭证删除', '凭证删除', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":0,\"parameterName\":\"tl\",\"id\":\"30f2f420-0703-440e-bc20-ceb8159c5fa4\",\"example\":\"axServiceImpl\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"dj\",\"id\":\"07401962-9346-495e-b9d1-ce87d329909a\",\"example\":\"thirdInterfaceVoucherInsert\"}]', '[]', '1', '[{\"id\":\"bb7fefb9-4801-47d4-bfbd-f208a53d35de\",\"parameterName\":\"body\",\"first\":true}]', '[]', 201, '1', '2024-05-09 11:19:11', '1', '2024-05-09 11:19:11', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('6e38b7eb8dbd4cb7a24e3ffecbf83f86', 8000040014, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '存货分类新增', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"9d4ef7a8-3a0f-4f5f-9981-b67b5dbf2f90\",\"parameterName\":\"body\",\"first\":true}]', '[]', 185, '1', '2024-04-28 13:55:47', '1', '2024-04-28 13:55:47', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('98e5fc48e10f4f8db58276f8e9957cfa', 8000040018, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', 'a15437331f7a4cb4895545742547d192', '档案对照查询', '档案对照查询', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"length\":\"\",\"index\":0,\"concreteType\":\"String\",\"id\":\"6ae5331d-cc67-4009-9fb8-01c1edcdca2e\",\"parameterName\":\"tl\",\"required\":false,\"example\":\"generalDataServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"9f93bac8-cc7d-4f8c-886c-7cdab43da960\",\"parameterName\":\"dj\",\"example\":\"queryEntityPage\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"档案对照类型\",\"parameterName\":\"archivesType\",\"id\":\"d7610def-f3bd-4888-af71-c93e61c9c2d1\",\"required\":true,\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"左编码\",\"parameterName\":\"leftCode\",\"id\":\"b0cd1615-0339-4c85-b930-4c79d06603ec\",\"required\":false,\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"右编码\",\"parameterName\":\"rightCode\",\"id\":\"c169b2f1-9a44-49be-8a97-b2ce2bc835bb\",\"example\":\"02\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"左应用编码\",\"parameterName\":\"leftAppCode\",\"id\":\"72755a53-db92-4cb1-b72f-6baac43a6147\",\"example\":\"80004\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"右应用编码\",\"parameterName\":\"rightAppCode\",\"id\":\"0512c495-ecd4-4349-a340-f401ddda7a87\",\"example\":\"80005\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"c08f76ee-a6a8-4e62-8877-e0c2c5d4a6f2\",\"parameterName\":\"body\",\"first\":true}]', '[]', 189, '1', '2024-05-28 10:22:01', '1', '2024-05-28 10:22:01', 'Y', NULL, 'comparisonServiceImpl', 'queryEntityPage', '2', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('99402376355045e9a56629b34e1c13ca', 8000040003, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '人员修改', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"051ed9dc-a63f-4203-963b-705db724d253\",\"parameterName\":\"body\",\"first\":true}]', '[]', 174, '1', '2024-04-28 13:56:55', '1', '2024-04-28 13:56:55', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('b316d9988d004c4ca14cfc86488f2c20', 8000040022, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '2cb8bfafc3034806a9bb2657b300d29e', '通用数据接口新增', '通用数据接口新增', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"67f2e8c6-709a-42c2-a790-66ec7f4fb709\",\"parameterName\":\"yatl\",\"example\":\"comparisonServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"c50efff4-0ec7-4047-9835-1eb5e4602769\",\"parameterName\":\"yadj\",\"example\":\"saveEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"description\":\"主数据编码\",\"parameterName\":\"mdmCode\",\"id\":\"1cc37bf4-c961-4293-ad51-778edc93f1e6\",\"required\":true,\"example\":\"10002\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"来源名称\",\"parameterName\":\"sourceName\",\"id\":\"0e537fa6-0ea7-416b-80ed-1c3f54a30a4c\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"来源编码\",\"parameterName\":\"code\",\"id\":\"129c5bad-1649-4425-a454-798c54296304\",\"required\":true,\"example\":\"80000001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"负责人\",\"parameterName\":\"optionName\",\"id\":\"99a96983-8d5e-403b-8a8b-563e1c8c9a1f\",\"required\":true,\"example\":\"数智中台\"},{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"parameterName\":\"project_code\",\"id\":\"bbeca585-4f0f-40e3-aefc-c8921d2bdcfe\",\"example\":\"01003\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"parameterName\":\"project_name\",\"id\":\"ad3b8e12-cf67-4181-ab7f-b1f9c9a90622\",\"example\":\"凯伍德\"}],\"concreteType\":\"Object\",\"index\":5,\"description\":\"主表\",\"parameterName\":\"main\",\"id\":\"e3286400-82ce-4680-a4c8-07a3bcc50c03\"},{\"parameterType\":\"complexlist\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"parameterName\":\"sszz\",\"id\":\"8d2d1f59-c3d7-410b-870c-0c67dada8875\",\"example\":\"0001A3100000000003V3\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"parameterName\":\"bz\",\"id\":\"b33314bc-cdc8-4882-9175-2ef5771129a1\",\"example\":\"测试货位明细新增\"}],\"concreteType\":\"ObjectCom\",\"index\":8,\"description\":\"明细表\",\"parameterName\":\"details\",\"id\":\"4e36c172-aabd-44ff-8892-147523852b2e\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"211c422c-fe3f-47a7-bf91-34b313de876d\",\"parameterName\":\"body\",\"first\":true}]', '[]', 193, '1', '2024-06-11 11:58:24', '1', '2024-06-11 11:58:25', 'Y', NULL, 'comparisonServiceImpl', 'getAppNameAndCode', '1', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('bf29aef0177f4b4caa45075301b1a898', 8000040026, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '凭证作废', '凭证作废', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":0,\"parameterName\":\"tl\",\"id\":\"8306b150-593a-4fc0-87b7-0548ac1a7a98\",\"example\":\"axServiceImpl\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"dj\",\"id\":\"9620d7a4-abc0-4489-bcf0-dbe07eb02971\",\"example\":\"thirdInterfaceVoucherInsert\"}]', '[]', '1', '[{\"id\":\"bd140e98-dd9c-448d-963f-f62e2c497bc7\",\"parameterName\":\"body\",\"first\":true}]', '[]', 200, '1', '2024-05-09 11:18:55', '1', '2024-05-09 11:18:55', 'Y', NULL, NULL, NULL, '2', NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('cd5457aeda5447e1b9d12317e335ea7b', 8000040012, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '项目修改', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"cef20499-6e98-455f-a77c-791734706ad2\",\"parameterName\":\"body\",\"first\":true}]', '[]', 183, '1', '2024-04-28 13:54:43', '1', '2024-04-28 13:54:43', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('d90bb95f3c9c4627a0c2d806ba8d5c20', 8000040002, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '人员新增', '人员新增', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"75b67871-1cdb-485c-9207-68ffc852465e\",\"parameterName\":\"body\",\"first\":true}]', '[]', 173, '1', '2024-04-28 13:56:45', '1', '2024-04-28 13:56:45', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('de8fd520d14041b39978f0448b3de47c', 8000040017, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', 'a15437331f7a4cb4895545742547d192', '档案对照新增', '档案对照新增', '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[{\"parameterType\":\"fundamental\",\"index\":0,\"concreteType\":\"String\",\"id\":\"e0243898-e207-4add-ba68-142160c36b29\",\"parameterName\":\"tl\",\"example\":\"generalDataServiceImpl\"},{\"parameterType\":\"fundamental\",\"index\":1,\"concreteType\":\"String\",\"id\":\"4af5296e-010a-4d7c-ab86-d1a63186bb9f\",\"parameterName\":\"dj\",\"example\":\"saveEntity\"}]', '[]', '1', '[{\"parameterType\":\"complex\",\"children\":[{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":1,\"parameterName\":\"archivesType\",\"id\":\"b9e9585a-c728-4662-ab47-47dbedd9afcb\",\"required\":true,\"example\":\"1\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":2,\"description\":\"左编码\",\"parameterName\":\"leftCode\",\"id\":\"5f929d2b-5fdb-41d0-9f84-3f7bc6de151f\",\"required\":true,\"example\":\"01\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":3,\"description\":\"右编码\",\"parameterName\":\"rightCode\",\"id\":\"23316924-f62a-4953-b9c6-e5c2370ad8d7\",\"required\":true,\"example\":\"02\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":4,\"description\":\"左应用编码\",\"parameterName\":\"leftAppCode\",\"id\":\"ae0238f7-5159-48f1-bb84-c374b1b6d1cf\",\"required\":true,\"example\":\"80004\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":5,\"description\":\"右应用编码\",\"parameterName\":\"rightAppCode\",\"id\":\"dbc328a4-83b2-48f4-8a7b-5d55f8de2441\",\"required\":true,\"example\":\"80005\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":6,\"description\":\"左名称\",\"parameterName\":\"leftName\",\"id\":\"9da47514-bd57-479a-ab85-2ecf3838607a\",\"example\":\"数智中台\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":7,\"description\":\"右名称\",\"parameterName\":\"rightName\",\"id\":\"3eefc7a6-95fa-499c-8016-f96f4c3cede8\",\"example\":\"数据通用\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":8,\"description\":\"左应用名称\",\"parameterName\":\"leftAppName\",\"id\":\"d47275be-206e-42b9-b1f2-de3cbd015574\",\"example\":\"数智中台查询接口\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":9,\"description\":\"右应用名称\",\"parameterName\":\"rightAppName\",\"id\":\"35a785bc-13ba-4f3b-a856-8505579737f0\",\"example\":\"数据通用查询接口\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":10,\"description\":\"左应用ID\",\"parameterName\":\"leftAppId\",\"id\":\"39b967c1-28ea-4fac-930b-3a5344c3b58c\",\"example\":\"111111\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":11,\"description\":\"右应用ID\",\"parameterName\":\"rightAppId\",\"id\":\"40245489-deb7-4701-8fe3-301b958af651\",\"example\":\"222222\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":12,\"description\":\"左接口ID\",\"parameterName\":\"leftApiId\",\"id\":\"be5d3409-402b-4cc6-89a4-8cff6134c130\",\"example\":\"1111110001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":13,\"description\":\"右接口ID\",\"parameterName\":\"rightApiId\",\"id\":\"07601a8a-8e21-4a04-a1d5-34af5696a701\",\"example\":\"2222220001\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":14,\"description\":\"左id\",\"parameterName\":\"leftId\",\"id\":\"9a1041a4-997c-45e7-966e-a1b703a0e201\",\"example\":\"11\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":15,\"description\":\"右id\",\"parameterName\":\"rightId\",\"id\":\"1aa932d6-5ad3-4c53-a793-593efc35ac1a\",\"example\":\"22\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":16,\"description\":\"左组织\",\"parameterName\":\"leftOrg\",\"id\":\"5b9f0b90-5898-4b53-8ec6-c27cb9c383af\",\"example\":\"用安软件\"},{\"parameterType\":\"fundamental\",\"concreteType\":\"String\",\"index\":17,\"description\":\"右组织\",\"parameterName\":\"rightOrg\",\"id\":\"90bc3444-92d5-4220-a9d8-edd7fc63088a\",\"example\":\"用安信息\"}],\"concreteType\":\"Object\",\"index\":0,\"id\":\"f06e85f5-11d8-4b19-b797-b5d514ccf223\",\"parameterName\":\"body\",\"first\":true}]', '[]', 188, '1', '2024-05-28 10:25:21', '1', '2024-05-28 10:25:22', 'Y', NULL, 'comparisonServiceImpl', 'saveEntity', '2', 'status', '200', 'status'); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('e67e51085e9e4c10a4cd9e2dfacc02ea', 8000040004, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '人员删除', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"61283893-30a9-483d-9121-d02e69cfb0fa\",\"parameterName\":\"body\",\"first\":true}]', '[]', 175, '1', '2024-04-28 13:57:04', '1', '2024-04-28 13:57:04', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO sys_application_api (id, api_code, api_path, api_status, app_id, catalogue_id, api_name, api_remark, need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method, timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, bean_name, fun_name, extension_api, return_success_field, return_success_value, return_msg) VALUES ('e7a0ebb4878a45a9a388fb5b1e82642a', 8000040009, NULL, '1', '82bd4293fda94d6896217509f11b6c4c', '56c766d53d9f4de2846a16b1383c5374', '客商修改', NULL, '2', NULL, '1', 'kangarooDataCenterV3/entranceController/platformInterface', '1', '1', '10000', '100', '[]', '[]', '1', '[{\"id\":\"1edf9cdc-18d5-4f94-9336-b8724061a1b0\",\"parameterName\":\"body\",\"first\":true}]', '[]', 180, '1', '2024-04-26 10:20:16', '1', '2024-04-26 10:20:16', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL); + +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('2cb8bfafc3034806a9bb2657b300d29e', '82bd4293fda94d6896217509f11b6c4c', '通用数据', 53, NULL, 'Y', '2024-05-08 10:13:23', '1', '2024-05-08 10:13:23', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('56c766d53d9f4de2846a16b1383c5374', '82bd4293fda94d6896217509f11b6c4c', '澳星电子', 43, NULL, 'Y', '2024-04-24 11:47:38', '1', '2024-04-24 11:47:38', '1'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('a132acc6c2ed4f9e91f5e9f4325ba791', '82bd4293fda94d6896217509f11b6c4c', '博华U9C', 27, NULL, 'Y', '2023-10-20 16:46:07', 'c796fd9ba4c9f5ff3cc2fa41a040e443', '2023-10-20 16:46:07', 'c796fd9ba4c9f5ff3cc2fa41a040e443'); +INSERT INTO sys_application_api_type (id, app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) VALUES ('a15437331f7a4cb4895545742547d192', '82bd4293fda94d6896217509f11b6c4c', '档案对照', 52, NULL, 'Y', '2024-05-08 09:22:13', '1', '2024-05-08 09:22:13', '1'); + + +INSERT INTO sys_application_database (id, app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('c11bfa04c7384bd98d3e08566130fc4b', '82bd4293fda94d6896217509f11b6c4c', 'oldData', 'V2数据源', '3', 'ufidahz.com.cn', '9096', 'root', 'bd993088e8a7c3dc5f44441617f9b4bf', 'businesscenter', NULL, '2', 1, '1', '2024-05-13 13:54:12', '1', '2024-06-21 10:35:03', 'Y', NULL); + +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('11fb9d8434c04660a88527cf097c579b', '82bd4293fda94d6896217509f11b6c4c', '测试定时任务', 'SysMessageManageLogPlugin', '1.0', '测试定时任务', '2024-05-01 00:00:00', '1', 3, '1', '2024-05-07 14:32:57', '1', '2024-05-07 14:32:57', 'Y', NULL); +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('b7e0020d9ff7435196862bfa62d9ff40', '82bd4293fda94d6896217509f11b6c4c', '主数据抽取', 'MdmCustomerPlugin', '1', NULL, '2024-06-25 00:00:00', '1', 15, '1', '2024-06-25 14:45:47', '1', '2024-06-25 14:45:47', 'Y', NULL); +INSERT INTO sys_application_plugin (id, app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) VALUES ('e3a61bdf20b34126927fe1285fd80793', '82bd4293fda94d6896217509f11b6c4c', '主数据下发', 'MdmModulePlugin', '1.0', '1', '2024-06-21 00:00:00', '1', 10, '1', '2024-06-21 16:10:46', '1', '2024-06-21 16:10:46', 'Y', NULL); + +INSERT INTO sys_application_script (id, app_id, script_name, script_code, script_version, class_name, script_data, back_script_data, script_remark, release_date, script_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('1', '82bd4293fda94d6896217509f11b6c4c', '新增项目', '0001', '1', 'g_1', ' com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);\r\n com.alibaba.fastjson.JSONObject bodyObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject();\r\n ufinterfaceObject.put(\"billtype\", \"supplier\"); ufinterfaceObject.put(\"isexchange\", \"Y\");\r\n ufinterfaceObject.put(\"replace\", \"Y\"); ufinterfaceObject.put(\"sender\", \"OA\");\r\n ufinterfaceObject.put(\"account\", \"01\"); ufinterfaceObject.put(\"groupcode\", \"00\");\r\n com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject();\r\n billheadObject.put(\"code\", reqData.get(\"project_code\")); billheadObject.put(\"supprop\", \"0\");\r\n billheadObject.put(\"custstate\", \"1\"); billheadObject.put(\"pk_supplierclass\", \"S01\");\r\n billheadObject.put(\"pk_country\", \"CN\"); billheadObject.put(\"pk_timezone\", \"P0800\");\r\n billheadObject.put(\"pk_format\", \"ZH-CN\"); billheadObject.put(\"enablestate\", \"2\");\r\n billheadObject.put(\"name\", reqData.get(\"project_sh_name\")); billheadObject.put(\"pk_group\", \"00\");\r\n billheadObject.put(\"pk_org\", \"003\"); billheadObject.put(\"taxpayerid\", \"087981489021135119\");\r\n bodyObject.put(\"ufinterface\",ufinterfaceObject);\r\n billObject.put(\"billhead\", billheadObject);\r\n bodyObject.put(\"bill\",billObject);\r\n com.alibaba.fastjson.JSONObject resultObject = new com.alibaba.fastjson.JSONObject();\r\n java.util.Map headers = new java.util.HashMap<>();\r\n resultObject.put(\"headers\",headers);\r\n resultObject.put(\"querys\",\"\");\r\n resultObject.put(\"bodys\",bodyObject.toJSONString());\r\n System.out.println( resultObject.toJSONString());\r\n return resultObject.toJSONString();', NULL, '1', '2024-06-17 11:40:15', '1', 1, '1', '2024-06-20 10:59:18', '1', '2024-06-20 10:59:18', 'Y', '0', '0'); +INSERT INTO sys_application_script (id, app_id, script_name, script_code, script_version, class_name, script_data, back_script_data, script_remark, release_date, script_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('12', '82bd4293fda94d6896217509f11b6c4c', '修改项目', '0002', '1', 'g_2', ' com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);\r\n com.alibaba.fastjson.JSONObject bodyObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject();\r\n ufinterfaceObject.put(\"billtype\", \"supplier\"); ufinterfaceObject.put(\"isexchange\", \"Y\");\r\n ufinterfaceObject.put(\"replace\", \"Y\"); ufinterfaceObject.put(\"sender\", \"OA\");\r\n ufinterfaceObject.put(\"account\", \"01\"); ufinterfaceObject.put(\"groupcode\", \"00\");\r\n com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject();\r\n billheadObject.put(\"code\", reqData.get(\"project_code\")); billheadObject.put(\"supprop\", \"0\");\r\n billheadObject.put(\"custstate\", \"1\"); billheadObject.put(\"pk_supplierclass\", \"S01\");\r\n billheadObject.put(\"pk_country\", \"CN\"); billheadObject.put(\"pk_timezone\", \"P0800\");\r\n billheadObject.put(\"pk_format\", \"ZH-CN\"); billheadObject.put(\"enablestate\", \"2\");\r\n billheadObject.put(\"name\", reqData.get(\"project_sh_name\")); billheadObject.put(\"pk_group\", \"00\");\r\n billheadObject.put(\"pk_org\", \"003\"); billheadObject.put(\"taxpayerid\", \"087981489021135119\");\r\n bodyObject.put(\"ufinterface\",ufinterfaceObject);\r\n billObject.put(\"billhead\", billheadObject);\r\n bodyObject.put(\"bill\",billObject);\r\n com.alibaba.fastjson.JSONObject resultObject = new com.alibaba.fastjson.JSONObject();\r\n java.util.Map headers = new java.util.HashMap<>();\r\n resultObject.put(\"headers\",headers);\r\n resultObject.put(\"querys\",\"\");\r\n resultObject.put(\"bodys\",bodyObject.toJSONString());\r\n System.out.println( resultObject.toJSONString());\r\n return resultObject.toJSONString();', NULL, '1', '2024-06-17 11:40:15', '1', 2, '1', '2024-06-17 11:40:25', '1', '2024-06-17 11:40:27', 'Y', '0', '0'); +INSERT INTO sys_application_script (id, app_id, script_name, script_code, script_version, class_name, script_data, back_script_data, script_remark, release_date, script_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) VALUES ('122', '82bd4293fda94d6896217509f11b6c4c', '删除项目', '0003', '1', 'g_3', ' com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);\r\n com.alibaba.fastjson.JSONObject bodyObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject();\r\n ufinterfaceObject.put(\"billtype\", \"supplier\"); ufinterfaceObject.put(\"isexchange\", \"Y\");\r\n ufinterfaceObject.put(\"replace\", \"Y\"); ufinterfaceObject.put(\"sender\", \"OA\");\r\n ufinterfaceObject.put(\"account\", \"01\"); ufinterfaceObject.put(\"groupcode\", \"00\");\r\n com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject();\r\n com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject();\r\n billheadObject.put(\"code\", reqData.get(\"project_code\")); billheadObject.put(\"supprop\", \"0\");\r\n billheadObject.put(\"custstate\", \"1\"); billheadObject.put(\"pk_supplierclass\", \"S01\");\r\n billheadObject.put(\"pk_country\", \"CN\"); billheadObject.put(\"pk_timezone\", \"P0800\");\r\n billheadObject.put(\"pk_format\", \"ZH-CN\"); billheadObject.put(\"enablestate\", \"2\");\r\n billheadObject.put(\"name\", reqData.get(\"project_sh_name\")); billheadObject.put(\"pk_group\", \"00\");\r\n billheadObject.put(\"pk_org\", \"003\"); billheadObject.put(\"taxpayerid\", \"087981489021135119\");\r\n bodyObject.put(\"ufinterface\",ufinterfaceObject);\r\n billObject.put(\"billhead\", billheadObject);\r\n bodyObject.put(\"bill\",billObject);\r\n com.alibaba.fastjson.JSONObject resultObject = new com.alibaba.fastjson.JSONObject();\r\n java.util.Map headers = new java.util.HashMap<>();\r\n resultObject.put(\"headers\",headers);\r\n resultObject.put(\"querys\",\"\");\r\n resultObject.put(\"bodys\",bodyObject.toJSONString());\r\n System.out.println( resultObject.toJSONString());\r\n return resultObject.toJSONString();', NULL, '1', '2024-06-17 11:40:15', '1', 3, '1', '2024-06-17 11:40:25', '1', '2024-06-17 11:40:27', 'Y', '0', '0'); + +update sys_application_api set extension_api = '2' where extension_api is null; +update sys_application_api set return_success_field = 'status' where return_success_field is null; +update sys_application_api set return_success_value = '200' where return_success_value is null; +update sys_application_api set return_msg = 'msg' where return_msg is null; + + +commit; + + diff --git a/buildpackage/src/main/resources/dbSql/sys/V3.0.9__init_task.sql b/buildpackage/src/main/resources/dbSql/sys/V3.0.9__init_task.sql new file mode 100644 index 00000000..5cf783f7 --- /dev/null +++ b/buildpackage/src/main/resources/dbSql/sys/V3.0.9__init_task.sql @@ -0,0 +1,9 @@ + +INSERT INTO integration_task (id,task_code,task_name,task_cron,task_status,task_app,task_plugin,fun_info,remark,create_user_id,create_time,modify_user_id,modify_time,sts,org_id,company_id) VALUES ('175935a432b648e586c4f0ff1a234a07','Task-20240621-0001','主数据下发','0 0/2 * * * ?','2','82bd4293fda94d6896217509f11b6c4c','e3a61bdf20b34126927fe1285fd80793','主数据下发','主数据下发','1','2024-06-21 16:11:37','1','2024-06-21 16:26:58','Y','0','0'); +INSERT INTO integration_task (id,task_code,task_name,task_cron,task_status,task_app,task_plugin,fun_info,remark,create_user_id,create_time,modify_user_id,modify_time,sts,org_id,company_id) VALUES ('2ab139b06a504b548bca1f90243c57cc','Task-20240625-0001','主数据抽取','0 0/1 * * * ?','2','82bd4293fda94d6896217509f11b6c4c','b7e0020d9ff7435196862bfa62d9ff40','主数据统一数据抽取','MdmCustomerPlugin','1','2024-06-25 14:46:37','1','2024-07-10 11:20:35','Y','0','0'); +INSERT INTO integration_task_living (id,task_id,task_code,task_name,task_status,old_start_time,start_time,end_time,diff_time,run_num,create_user_id,create_time,modify_user_id,modify_time,sts,org_id,company_id) VALUES ('571725e79bfc4a9090e921487dbf421f','175935a432b648e586c4f0ff1a234a07','Task-20240621-0001','主数据下发','2','2024-06-21 16:52:00','2024-06-21 16:52:00','2024-06-21 16:52:01','0',0,'1','2024-06-21 16:11:37','1','2024-06-21 16:52:01','Y','0','0'); +INSERT INTO integration_task_living (id,task_id,task_code,task_name,task_status,old_start_time,start_time,end_time,diff_time,run_num,create_user_id,create_time,modify_user_id,modify_time,sts,org_id,company_id) VALUES ('3fe53b5a6e814ed98a7a29c0478d9fbb','2ab139b06a504b548bca1f90243c57cc','Task-20240625-0001','主数据抽取','2','2024-07-10 11:57:00','2024-07-10 11:57:00','2024-07-10 11:57:00','0',0,'1','2024-06-25 14:46:37','1','2024-07-10 11:57:00','Y','0','0'); + +commit; + + diff --git a/buildpackage/src/main/resources/logback-spring.xml b/buildpackage/src/main/resources/logback-spring.xml index 780f5c31..fed8a49d 100644 --- a/buildpackage/src/main/resources/logback-spring.xml +++ b/buildpackage/src/main/resources/logback-spring.xml @@ -14,8 +14,7 @@ - + @@ -24,7 +23,14 @@ - + + + + + + + + ${CONSOLE_LOG_PATTERN} ${encodings} @@ -52,8 +58,12 @@ - - %d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n @@ -77,8 +87,12 @@ ACCEPT DENY - - %d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n @@ -102,8 +116,12 @@ ACCEPT DENY - - %d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n @@ -125,8 +143,12 @@ - - %d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n diff --git a/buildpackage/src/test/java/com/hzya/frame/TestUser.java b/buildpackage/src/test/java/com/hzya/frame/TestUser.java new file mode 100644 index 00000000..a425055c --- /dev/null +++ b/buildpackage/src/test/java/com/hzya/frame/TestUser.java @@ -0,0 +1,57 @@ +package com.hzya.frame; + +import org.springframework.data.annotation.Id; +import java.io.Serializable; + + +public class TestUser implements Serializable { + + private static final long serialVersionUID = -3258839839160856614L; + @Id + private String id; + private String name; + private String code; + + @Override + public String toString() { + return "TestUser{" + + "id='" + id + '\'' + + ", name='" + name + '\'' + + ", code='" + code + '\'' + + '}'; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public TestUser() { + } + + public TestUser(String id, String name, String code) { + this.id = id; + this.name = name; + this.code = code; + } + +} diff --git a/buildpackage/src/test/java/com/hzya/frame/temButtom.java b/buildpackage/src/test/java/com/hzya/frame/temButtom.java index 5a0f030f..a711e11c 100644 --- a/buildpackage/src/test/java/com/hzya/frame/temButtom.java +++ b/buildpackage/src/test/java/com/hzya/frame/temButtom.java @@ -1,11 +1,45 @@ package com.hzya.frame; +import cn.hutool.core.convert.Convert; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.cbs8.dto.req.PayRequestDTO; +import com.hzya.frame.cbs8.dto.req.PayResultRequestDTO; +import com.hzya.frame.cbs8.dto.res.PayResultResDTO; +import com.hzya.frame.cbs8.service.ICbs8ExtService; +import com.hzya.frame.cbs8.service.ICbs8Service; +import com.hzya.frame.cbs8.util.CBSUtil; +import com.hzya.frame.cbs8.util.CbsAccessToken; +import com.hzya.frame.plugin.cbs8.plugin.PayApplyPluginInitializer; +import com.hzya.frame.plugin.cbs8.plugin.PayResultPluginInitializer; +import com.hzya.frame.plugin.cbs8.plugin.TransactionDetailPluginInitializer; +import com.hzya.frame.plugin.seeyonExt.plugin.SeeyonExtPluginInitializer; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IPaymentService; +import com.hzya.frame.stringutil.StringUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; import com.hzya.frame.util.AESUtil; +import com.mongodb.client.result.UpdateResult; +import org.apache.http.protocol.HTTP; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.data.annotation.Id; +import org.springframework.data.domain.Sort; +import org.springframework.data.mongodb.core.MongoTemplate; +import org.springframework.data.mongodb.core.mapping.Document; +import org.springframework.data.mongodb.core.query.Criteria; +import org.springframework.data.mongodb.core.query.Query; +import org.springframework.data.mongodb.core.query.Update; import org.springframework.test.context.junit4.SpringRunner; +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.*; + /** * @ClassName dsasas * @Description @@ -16,14 +50,243 @@ import org.springframework.test.context.junit4.SpringRunner; @SpringBootTest(classes = {WebappApplication.class}) public class temButtom { + @Resource + SeeyonExtPluginInitializer seeyonExtPluginInitializer; + @Resource + ICbs8Service cs8Service; + @Resource + ICbs8ExtService cbs8ExtService; + @Autowired + private IPaymentService paymentService; + @Autowired + private PayApplyPluginInitializer payApplyPluginInitializer; + + @Autowired + private TransactionDetailPluginInitializer transactionDetailPluginInitializer; + @Autowired + private PayResultPluginInitializer payResultPluginInitializer; + + + + @Test + public void cbs8PluginTest(){ + try { + //支付申请 测试通过 + //payApplyPluginInitializer.executeBusiness(new JSONObject()); + //查询交易明细 测试通过 + //transactionDetailPluginInitializer.executeBusiness(new JSONObject()); + //交易结果查询 未测试 (OA没有日志底表,无法测试) + payResultPluginInitializer.executeBusiness(new JSONObject()); + //电子回单测试 通过apipost测试过了,可以取到cbs电子回单,只是没法上传到OA + // + + }catch (Exception e){ + e.printStackTrace(); + } + } + @Test + public void queryUnpaid(){ + //查询待支付的列表 + PaymentEntity paymentEntity = new PaymentEntity(); + paymentEntity.setDataSourceCode("yc-test"); + try { + List paymentList = paymentService.queryUnpaid(paymentEntity); + System.out.println(paymentList); + } catch (Exception e) { + e.printStackTrace(); + throw new RuntimeException(e); + } + System.out.println("1111"); + } + @Test + public void queryResultTest(){ + // SysExtensionApiEntity sysExt = new SysExtensionApiEntity(); + // sysExt.setBodys("{\"referenceNum\":\"CL202406140002\"}"); + // cbs8ExtService.payResult(sysExt); + // System.out.println("11111"); + List cl202406140002 = cs8Service.queryPayResult(new PayResultRequestDTO("CL202406140002")); + System.out.println("111"); + } + + @Test + public void cbs8ExtTest(){ + PaymentEntity paymentEntity = new PaymentEntity(); + paymentEntity.setReferenceNum("CL202406140003"); + paymentEntity.setPayAccount("655905707410000"); + paymentEntity.setPayBankName(""); + paymentEntity.setAmount("99.02"); + paymentEntity.setRevAccount("123456778"); + paymentEntity.setRevBankName("中国工商银行总行清算中心"); + paymentEntity.setRevBankType("ICB"); + paymentEntity.setRevAccountName("测试账户"); + paymentEntity.setCnapsCode("102100099996"); + paymentEntity.setPurpose("测试用途"); + paymentEntity.setBusType("202"); + paymentEntity.setCurrency("10"); + if (null != paymentEntity){ + PayRequestDTO payRequestDTO = new PayRequestDTO(); + String ferenceNum = Convert.toStr(paymentEntity.getReferenceNumNew(),paymentEntity.getReferenceNum()); + payRequestDTO.setReferenceNum(ferenceNum); + payRequestDTO.setBusType(paymentEntity.getBusType()); + payRequestDTO.setAmount(paymentEntity.getAmount()); + payRequestDTO.setCurrency(paymentEntity.getCurrency()); + payRequestDTO.setPayAccount(StringUtil.replaceBlank(paymentEntity.getPayAccount())); + payRequestDTO.setRevAccount(StringUtil.replaceBlank(paymentEntity.getRevAccount())); + payRequestDTO.setRevAccountName(StringUtil.replaceBlank(paymentEntity.getRevAccountName())); + payRequestDTO.setRevBankType(StringUtil.replaceBlank((paymentEntity.getRevBankType()))); + payRequestDTO.setRevBankName(StringUtil.replaceBlank(paymentEntity.getRevBankName())); + payRequestDTO.setCnapsCode(StringUtil.replaceBlank((paymentEntity.getCnapsCode()))); + payRequestDTO.setPurpose(paymentEntity.getPurpose()); + payRequestDTO.setErpExtend1(paymentEntity.getPayType()); + //集中支付模式 + if (CBSUtil.CENTRALIZED_PAYMENT_TYPE.equals(payRequestDTO.getBusType())){ + payRequestDTO.setBusiStep("1"); + payRequestDTO.setApplyUnitCode(paymentEntity.getPayCompanyCode()); + payRequestDTO.setPayAccount(null); + } + List list = new ArrayList<>(); + list.add(payRequestDTO); + String requestData = JSONObject.toJSONString(list); + System.out.println("明文参数:"+requestData); + //签名 + long timestamp = System.currentTimeMillis(); + String sign = CBSUtil.sign(requestData,timestamp); + //加密 + byte[] encryptedData = CBSUtil.encrypt(requestData); + Map header = new HashMap(); + header.put(CBSUtil.SIGN_HEADER_NAME,sign); + header.put(CBSUtil.TIMESTAMP_HEADER,Long.toString(timestamp)); + header.put(HTTP.CONTENT_TYPE,CBSUtil.TARGET_CONTENT_TYPE); + header.put(CBSUtil.AUTHORIZATION,CBSUtil.BEARER+CbsAccessToken.getToken()); + byte[] bodyByte = HttpRequest.post("https://cbs8-openapi-reprd.csuat.cmburl.cn/openapi/payment/openapi/v1/payment-apply-common").addHeaders(header).body(encryptedData).execute().bodyBytes(); + String decrypt = CBSUtil.decrypt(bodyByte); + System.out.println(decrypt); + } + } + @Test + public void seeyonExtTest(){ + JSONObject jsonStr = new JSONObject(); + jsonStr.put("integration_task_living_details_id","4276973516873482804"); + JSONObject requestJson = new JSONObject(); + requestJson.put("jsonStr", JSON.toJSONString(jsonStr)); + try { + seeyonExtPluginInitializer.executeBusiness(requestJson); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + @Test public void test01() { String a = AESUtil.encrypt("hzya@1314"); System.out.println(a); - - //String sa= "{\n \\"status\\": \\"success\\",\n \\"data\\": \\"[{\\\\"pk_corp\\\\":\\\\"1001\\\\",\\\\"unitcode\\\\":\\\\"01\\\\",\\\\"unitname\\\\":\\\\"临安奥星电子股份有限公司\\\\",\\\\"createdate\\\\":\\\\"2024-04-24\\\\",\\\\"deptattr\\\\":\\\\"1\\\\",\\\\"deptname\\\\":\\\\"DEV测试一级部门\\\\",\\\\"deptcode\\\\":\\\\"99\\\\",\\\\"pk_deptdoc\\\\":\\\\"1001F1100000000067AS\\\\"}]\\",\n \\"taskNumber\\": \\"202404250041\\"\n}"; + String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b"); + System.out.println(b); } + @Resource + private MongoTemplate mongoTemplate; + @Test + public void mongodbTest() { + boolean flag = true; + TestUser testUser = new TestUser("1","张三","U001"); + for (int i = 0; i < 20; i++) { + int a = i+4; + TestUser user = new TestUser(String.valueOf(a),"张三"+a,"U00"+a); + //mongoTemplate.insert(user,"user"); + } + //新增数据 + //mongoTemplate.insert(testUser,"user"); + System.out.println(testUser.toString()); + + + //新增或修改数据 + testUser.setName("李四"); + //mongoTemplate.save(testUser,"user"); + System.out.println(testUser.toString()); + + //批量新增 + TestUser testUser1 = new TestUser("2","王武","U002"); + TestUser testUser2 = new TestUser("3","赵六","U003"); + List testUsers = new ArrayList<>(); + testUsers.add(testUser1); + testUsers.add(testUser2); + //mongoTemplate.insert(testUsers,"user"); + + //修改数据 + Query query= new Query(Criteria.where("id").is(testUser1.getId())); + //更新值 + Update update= new Update().set("name", testUser1.getName()+"up").set("code", testUser1.getCode()); + //更新查询满足条件的文档数据(全部) + //UpdateResult result = mongoTemplate.updateMulti(query, update, TestUser.class,"user"); + //if(result!=null){ + // System.out.println("更新条数:" + result.getMatchedCount()); + //} + + //删除数据 + Query query1 = new Query(Criteria.where("_id").is(testUser1.getId())); + //List result1= mongoTemplate.findAllAndRemove(query1, TestUser.class,"user"); + //System.out.println("删除的文档数据:" + result1.toString()); + + //查询所有 + //List list = mongoTemplate.findAll(TestUser.class, "user"); + //System.out.println(list.toString()); + + + //根据id查询,注意是文档的id,不是数据行的id + //TestUser result2 = mongoTemplate.findById("1", TestUser.class,"user"); + //System.out.println("查询结果:" + result2.toString()); + + //查询一条数据 + Query query2 = new Query(Criteria.where("name").is("赵六")); + TestUser result3 = mongoTemplate.findOne(query2, TestUser.class,"user"); + System.out.println("查询结果:" + result3.toString()); + + //模糊查询 + Query query9 = new Query(Criteria.where("name").regex("张三")); + List result9 = mongoTemplate.find(query9, TestUser.class,"user"); + System.out.println("查询结果:" + result9.toString()); + //查询列表单个查询条件 + Query query4 = new Query(Criteria.where("name").is(testUser.getName())); + List result4 = mongoTemplate.find(query4, TestUser.class,"user"); + System.out.println("查询结果:" + result4.toString()); + + // 查询列表多个查询条件 + Criteria criteriaUserName = Criteria.where("name").is(testUser.getName()); + Criteria criteriaPassWord = Criteria.where("code").is(testUser.getCode()); + // 创建条件对象,将上面条件进行 AND 关联 + Criteria criteria = new Criteria().andOperator(criteriaUserName, criteriaPassWord); + // 创建查询对象,然后将条件对象添加到其中 + Query query5 = new Query(criteria); + List result5 = mongoTemplate.find(query5, TestUser.class,"user"); + System.out.println("查询结果:" + result5.toString()); + + // 创建条件对象,将上面条件进行 OR 关联 + Criteria criteria1 = new Criteria().orOperator(criteriaUserName, criteriaPassWord); + // 创建查询对象,然后将条件对象添加到其中 + Query query6 = new Query(criteria1); + List result6 = mongoTemplate.find(query6, TestUser.class,"user"); + System.out.println("查询结果:" + result6.toString()); + + // 创建条件对象条件进行 in 关联 + List ids = Arrays.asList("1", "2"); + // 创建条件 + Criteria criteria7 = Criteria.where("id").in(ids); + // 创建查询对象,然后将条件对象添加到其中 + Query query7 = new Query(criteria7); + List result7 = mongoTemplate.find(query7, TestUser.class,"user"); + System.out.println("查询结果:" + result7.toString()); + + //从第一行开始,查询2条数据返回 + Query query8 = new Query(Criteria.where("name").is(testUser.getName())).with(Sort.by("code")).limit(2).skip(0); + List result8 = mongoTemplate.find(query8, TestUser.class,"user"); + System.out.println("查询结果:" + result8.toString()); + + Query query10 = new Query(Criteria.where("name").is(testUser.getName())); + long count = mongoTemplate.count(query10,"user"); + System.out.println("统计结果:" + count); + + } } diff --git a/common/pom.xml b/common/pom.xml index b2ea702f..5155b077 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -18,6 +18,7 @@ none execute + true diff --git a/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java b/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java index a999a9fa..1b9d09b3 100644 --- a/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java +++ b/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java @@ -73,7 +73,6 @@ public interface IBaseDao { * @return */ int delete(String paramString, Object paramObject); - /** * 修改 * @param paramString sqlMapperID @@ -178,6 +177,8 @@ public interface IBaseDao { */ Integer getCount(E paramE); + Integer getCount(String statement,Object baseEntity); + /** * 分页查询 * @param paramString mapperID diff --git a/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java b/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java index c578b60e..95e43393 100644 --- a/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java +++ b/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java @@ -276,6 +276,11 @@ public abstract class MybatisGenericDao query(Object baseEntity) { Assert.notNull(baseEntity, "query baseEntity :不能为NULL"); diff --git a/common/src/main/java/com/hzya/frame/datasource/DataSourceUtil.java b/common/src/main/java/com/hzya/frame/datasource/DataSourceUtil.java index 7ec2f1fc..b85b92e4 100644 --- a/common/src/main/java/com/hzya/frame/datasource/DataSourceUtil.java +++ b/common/src/main/java/com/hzya/frame/datasource/DataSourceUtil.java @@ -11,6 +11,7 @@ import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Lazy; import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.stereotype.Component; @@ -26,103 +27,10 @@ import java.util.Properties; * @Date: 2020/3/31 10:25 * 数据源工具类 */ -//@Component -//@Lazy(value = false) +@Component public class DataSourceUtil { - //DATASOURCECODE - public static final ThreadLocal myContextThreadLocal = new ThreadLocal<>(); - private static final Logger logger = LoggerFactory.getLogger(DataSourceUtil.class); - //SqlSessionFactory容器 - private static final Map SQLSESSIONFACTORYMAP = new HashMap<>(); - //dataSource容器 - private final Map DATASOURCEMAP = new HashMap<>(); - // 通过依赖注入获取 DynamicRoutingDataSource 对象 - @Resource - private DynamicRoutingDataSource ds; - /**** - * 根据dataSourceKey 打开 SqlSession ,如果获取不到SqlSessionFactory 会抛出异常 - * @content: - * @author 👻👻👻👻👻👻👻👻 gjh - * @date 2024-02-22 14:50 - * @param - * @return org.apache.ibatis.session.SqlSession - **/ - - public synchronized static SqlSession getSqlSession() { - String dsKey = "master"; // 根据业务逻辑确定要使用的数据源名称 - BaseEntity entity = DataSourceUtil.myContextThreadLocal.get(); - if(null != entity ){ - dsKey = entity.getDataSourceCode(); - } - // 通过 DynamicRoutingDataSource 获取当前数据源 -// ds.getDataSource(dsKey); - - SqlSessionFactory factory = getSqlSessionFactoryByCache(dsKey); - if (null == factory) { - throw new BaseSystemException("根据dataSourceKey获取SqlSessionFactory 失败!请联系管理员"); - } else { - return factory.openSession(); - } - } - - - /**** - * 根据dataSourceKey获取缓存内的SqlSessionFactory,如果获取不到会抛出异常信息 - * @content: - * @author 👻👻👻👻👻👻👻👻 gjh - * @date 2024-02-22 14:44 - * @param - * @return org.apache.ibatis.session.SqlSessionFactory - **/ - public static SqlSessionFactory getSqlSessionFactoryByCache(String dataSourceKey) { - SqlSessionFactory sqlSessionFactory = SQLSESSIONFACTORYMAP.get(dataSourceKey); - if (null == sqlSessionFactory) { - throw new BaseSystemException("根据当前dataSourceKey获取SqlSessionFactory失败,请联系系统管理员!dataSourceKey:" + dataSourceKey); - } - return sqlSessionFactory; - } - - /**** - * 根据 dataSource 创建SqlSessionFactory,并放入map缓存 dataSourceKey - * @content: - * @author 👻👻👻👻👻👻👻👻 gjh - * @date 2024-02-22 14:38 - * @param - * @return org.apache.ibatis.session.SqlSessionFactory - **/ - public static SqlSessionFactory createSqlSessionFactoryToCache(String dataSourceKey, DataSource dataSource) { - SqlSessionFactory sqlSessionFactory = createSqlSessionFactory(dataSource); - SQLSESSIONFACTORYMAP.put(dataSourceKey, sqlSessionFactory); - return sqlSessionFactory; - } - - //创建sqlSessionFactory - public static SqlSessionFactory createSqlSessionFactory(DataSource dataSource) throws BaseSystemException { - try { - if (null != dataSource) { - SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean(); - //数据源 - sqlSessionFactoryBean.setDataSource(dataSource); - //mybatis的config文件 - PathMatchingResourcePatternResolver configLocationResolver = new PathMatchingResourcePatternResolver(); - sqlSessionFactoryBean.setConfigLocation(configLocationResolver.getResource("classpath:mybatis/mybatis-config.xml")); - //xml - PathMatchingResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver(); - sqlSessionFactoryBean.setMapperLocations(resourcePatternResolver.getResources("classpath*:com/hzya/**/*.xml")); - sqlSessionFactoryBean.setDatabaseIdProvider(getDatabaseIdProvider()); - - return sqlSessionFactoryBean.getObject(); - } else { - logger.info("======================创建sqlSessionFactory失败==========================="); - throw new BaseSystemException("创建sqlSessionFactory失败"); - } - } catch (Exception e) { - logger.info("======================创建sqlSessionFactory失败==========================="); - throw new BaseSystemException("创建sqlSessionFactory失败" + e.getMessage()); - } - } - - public static DatabaseIdProvider getDatabaseIdProvider() { + @Bean + public DatabaseIdProvider getDatabaseIdProvider() { //DBMS 后缀 //Oracle oracle //DB2 db2 @@ -144,9 +52,4 @@ public class DataSourceUtil { dbProvider.setProperties(setPro); return dbProvider; } - - public Map getDataSourceMap() { - return DATASOURCEMAP; - } - } diff --git a/common/src/main/java/com/hzya/frame/datasource/DataSourceUtilProperties.java b/common/src/main/java/com/hzya/frame/datasource/DataSourceUtilProperties.java index b034c049..36a5c0df 100644 --- a/common/src/main/java/com/hzya/frame/datasource/DataSourceUtilProperties.java +++ b/common/src/main/java/com/hzya/frame/datasource/DataSourceUtilProperties.java @@ -12,7 +12,7 @@ public class DataSourceUtilProperties { public static final String MYSQLDRIVER_6 = "com.mysql.jdbc.Driver"; // mysql数据库的驱动类 public static final String MYSQLDRIVER = "com.mysql.jdbc.Driver"; // mysql数据库的驱动类 public static final String ORACLEDRIVER = "oracle.jdbc.OracleDriver"; // oracles数据库的驱动类 - public static final String SQL2005DRIVER = "net.sourceforge.jtds.jdbc.Driver"; // sqlserver数据库的驱动类 + public static final String SQL2005DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; // sqlserver数据库的驱动类 public static final String SQL2000DRIVER = "net.sourceforge.jtds.jdbc.Driver"; // sqlserver数据库的驱动类 public static final String dm = "dm.jdbc.driver.DmDriver"; // 达梦数据库的驱动类 diff --git a/common/src/main/java/com/hzya/frame/execsql/service/ExecSqlServiceImpl.java b/common/src/main/java/com/hzya/frame/execsql/service/ExecSqlServiceImpl.java index 468e0c3c..ff02bcc4 100644 --- a/common/src/main/java/com/hzya/frame/execsql/service/ExecSqlServiceImpl.java +++ b/common/src/main/java/com/hzya/frame/execsql/service/ExecSqlServiceImpl.java @@ -53,7 +53,7 @@ public class ExecSqlServiceImpl implements IExecSqlService { public List> execSelectSql(ExecSqlEntity entity) throws RuntimeException { List> list = new ArrayList<>(); logger.info("=============进入execSelectSql方法============"); - if (null != entity && ObjectUtils.isEmpty(entity.getSql())) { + if (null != entity && null!=entity.getSql()) { //sqlsession // SqlSession sqlSession = getSqlSession(entity.getDatasource_code()); // SqlSession sqlSession = new DataSourceUtil().getDefaultSqlSession(); @@ -61,7 +61,7 @@ public class ExecSqlServiceImpl implements IExecSqlService { logger.info("=============execSelectSql方法要执行的sql:============" + select_sql); if (!select_sql.contains("update") && !select_sql.contains("delete") && !select_sql.contains("insert") && !select_sql.contains("create")) { - list = sqlSession.selectList("com.hzya.frame.sysnew.execsql.entity.ExecSqlEntity.ExecSqlEntity_execsql", entity); + list = sqlSession.selectList("com.hzya.frame.execsql.entity.ExecSqlEntity.ExecSqlEntity_execsql", entity); logger.info("===========execSelectSql方法返回的结果条数=============" + list.size()); } //sqlSession.close(); diff --git a/common/src/main/java/com/hzya/frame/util/GroovyUtil.java b/common/src/main/java/com/hzya/frame/util/GroovyUtil.java new file mode 100644 index 00000000..eec3019b --- /dev/null +++ b/common/src/main/java/com/hzya/frame/util/GroovyUtil.java @@ -0,0 +1,58 @@ +package com.hzya.frame.util; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.web.exception.BaseSystemException; +import groovy.lang.GroovyClassLoader; +import groovy.lang.GroovyObject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Groovy脚本执行工具类 + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2024-05-16 13:44 + */ +public class GroovyUtil { + private static final Logger logger = LoggerFactory.getLogger(GroovyUtil.class); + + + + public static Object execute(JSONObject reqData) { + JSONObject jsonObject = JSON.parseObject(reqData.getString("jsonStr")); + //JSON参数 + String parameterJson = jsonObject.getString("parameterJson"); + String methodStr = jsonObject.getString("methodStr"); + //TODO 后续根据存储的数据库编码拼接生成 + String className = jsonObject.getString("className"); + //组装GroovyClassScript + StringBuffer stringBuffer = new StringBuffer(); + stringBuffer.append(" class "); + stringBuffer.append(className); + stringBuffer.append(" {"); + stringBuffer.append(" String execute (String jsonStr){"); + stringBuffer.append(methodStr); + stringBuffer.append(" }"); + stringBuffer.append(" }"); + logger.info("Groovy Class 组装结果 "+ stringBuffer.toString()); + // 创建GroovyClassLoader实例 + GroovyClassLoader groovyClassLoader = new GroovyClassLoader(); + + // 动态编译和加载Groovy脚本 + Class groovyClass = groovyClassLoader.parseClass(stringBuffer.toString()); + // 创建Groovy类的实例 + GroovyObject groovyObject = null; + try { + groovyObject = (GroovyObject) groovyClass.newInstance(); + + }catch (Exception e){ + logger.info("创建newInstance失败:"+ e); + throw new BaseSystemException(e); + } + Object returnObj = groovyObject.invokeMethod("execute",parameterJson); + logger.info("执行脚本结束:"+returnObj); + return returnObj; + } +} diff --git a/core/pom.xml b/core/pom.xml index bca91dfa..d3e40c3e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -26,6 +26,7 @@ none execute + true diff --git a/pom.xml b/pom.xml index 268d942d..d7c2e49a 100644 --- a/pom.xml +++ b/pom.xml @@ -23,8 +23,8 @@ 1.8 4.12 2.0.33 - 2.7.4 - 2.7.4 + 2.7.18 + 2.7.18 3.9.1 2.8.5 3.3.0 @@ -35,7 +35,7 @@ 5.1.49 1.4.6 - 2.7.4 + 2.7.18 1.30.0 3.13.0 2.6 @@ -53,18 +53,23 @@ 11.2.0.4 3.5.2 1.2.18 - 2.7.4 - 2.7.4 - 2.7.4 + 2.7.18 + 2.7.18 + 2.7.18 4.12 2.3.0 5.3.23 - + 8.0.3 + 42.2.6 + 1.7.4 + 1.3.7 + 2.1.46 + org.springframework.boot spring-boot-starter-parent - 2.7.4 + 2.7.18 @@ -171,7 +176,10 @@ mysql-connector-java ${mysql-connector-java} - + + org.springframework.boot + spring-boot-starter-data-jdbc + com.github.pagehelper pagehelper-spring-boot-starter @@ -268,6 +276,11 @@ ${lombok.version} true + + com.microsoft.sqlserver + mssql-jdbc + 6.4.0.jre8 + @@ -326,11 +339,66 @@ 1.6.1 - + org.springframework.boot spring-boot-starter-cache + + + org.postgresql + postgresql + ${postgresql.version} + runtime + + + + + org.apache.groovy + groovy-all + 4.0.21 + pom + + + + + + + + + org.flywaydb + flyway-core + 8.5.13 + + + org.flywaydb + flyway-mysql + 8.5.13 + + + com.yomahub + tlog-all-spring-boot-starter + 1.5.2 + + + org.springframework.boot + spring-boot-starter-data-mongodb + + + com.dingtalk.open + app-stream-client + ${dingtalk-stream-sdk.version} + + + com.aliyun + dingtalk + ${dingtalk-sdk.version} + + + com.aliyun + alibaba-dingtalk-service-sdk + 2.0.0 + @@ -359,14 +427,40 @@ org.springframework.boot spring-boot-maven-plugin - 2.7.4 + 2.7.18 ${project.artifactId} none execute + true + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + true + + + + org.apache.maven.plugins + maven-war-plugin + + + + ${basedir}/../service/src/main/resources/lib + WEB-INF/lib/ + false + + + **/*.jar + + + - @@ -388,6 +482,7 @@ **/*.xdb **/*.txt + **/*.sql true @@ -402,6 +497,7 @@ **/*.json **/*.txt + **/*.sql true @@ -410,10 +506,27 @@ + + + + + + + + + - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone + aliyun + aliyun Repository + https://maven.aliyun.com/repository/public + + false + + + + jeecg + jeecg Repository + https://maven.jeecg.org/nexus/content/repositories/jeecg false diff --git a/service/pom.xml b/service/pom.xml index 4f1692fd..6287f4e7 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -21,6 +21,43 @@ mysql-connector-java ${mysql-connector-java} + + com.hzya.bip + pubbaseapp_nccloud_rtLevel + 1 + system + ${basedir}/src/main/resources/lib/pubbaseapp_nccloud_rtLevel-1.jar + + + com.hzya.bipyonyoulog + yonyoulog + 1 + system + ${basedir}/src/main/resources/lib/yonyoulog.jar + + + + com.hzya.bcprov + bcprov + 1 + system + ${basedir}/src/main/resources/lib/bcprov-jdk15on-1.70.jar + + + + com.hzya.DataApiSdk + DataApiSdk + 1 + system + ${basedir}/src/main/resources/lib/DataApiSdk-jar-with-dependencies.jar + + + com.hzya.openBasicSDK + openBasicSDK + 1 + system + ${basedir}/src/main/resources/lib/openBasicSDK-2.1.230630.jar + @@ -30,6 +67,7 @@ none execute + true diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/entity/BipTokenVo.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/entity/BipTokenVo.java new file mode 100644 index 00000000..f01ede61 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/entity/BipTokenVo.java @@ -0,0 +1,13 @@ +package com.hzya.frame.bip.v3.v2207.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * com.hzya.frame.bip.v3.v2207.entity + * + * @author makejava + * @date 2024-05 -27 11:24 + */ + +public class BipTokenVo extends BaseEntity { +} diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipSsoService.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipSsoService.java new file mode 100644 index 00000000..ea1683f8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipSsoService.java @@ -0,0 +1,31 @@ +package com.hzya.frame.bip.v3.v2207.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; + +public interface IBipSsoService extends IBaseService{ +/** + * + * @content Bip单点统一认证接口 + * @author laborer + * @date 2024/5/30 0030 13:45 + * + */ + + String erpSso( HttpServletRequest request,String ticket)throws Exception; + /** + * + * @content 此方法获取sso动态加密,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + SysExtensionApiEntity ssoEncrypt(SysExtensionApiEntity entity); +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207BillService.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207BillService.java new file mode 100644 index 00000000..f9881deb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207BillService.java @@ -0,0 +1,18 @@ +package com.hzya.frame.bip.v3.v2207.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +public interface IBipV32207BillService extends IBaseService{ +/** + * + * @content 此方法获取BIPtoken,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + + SysExtensionApiEntity getBipBill(SysExtensionApiEntity entity); +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207TokenService.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207TokenService.java new file mode 100644 index 00000000..fb452978 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/IBipV32207TokenService.java @@ -0,0 +1,22 @@ +package com.hzya.frame.bip.v3.v2207.service; + + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.bip.v3.v2207.entity.BipSupplierEntity; +import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface IBipV32207TokenService extends IBaseService{ +/** + * + * @content 此方法获取BIPtoken,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + + SysExtensionApiEntity getBipToken(SysExtensionApiEntity entity); +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipSsoServiceImpl.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipSsoServiceImpl.java new file mode 100644 index 00000000..2a2b2009 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipSsoServiceImpl.java @@ -0,0 +1,119 @@ +package com.hzya.frame.bip.v3.v2207.service.impl; + + +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpException; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpUtil; +import com.alibaba.fastjson.JSON; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo; +import com.hzya.frame.bip.v3.v2207.service.IBipSsoService; +import com.hzya.frame.iputil.IPUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import nccloud.security.impl.SignatureTookKit; +import org.apache.commons.codec.binary.Base64; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import javax.servlet.http.HttpServletRequest; +import java.net.*; +import java.util.Enumeration; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; + + +@Service(value = "BipSsoServiceImpl") +public class BipSsoServiceImpl extends BaseService implements IBipSsoService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + private final String BASEURL = "http://192.168.2.237:8099/seeyon/thirdpartyController.do?ticket="; + private final String ESBURL = "http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface"; + /** + * + * @content Bip单点统一认证接口 + * @author laborer + * @date 2024/5/30 0030 13:45 + * + */ + + @Override + public String erpSso(HttpServletRequest request,String userCode)throws Exception { + logger.info("当前IP地址为"+ JSON.toJSONString(IPUtil.getIpAddress(request))); + String result = ""; + boolean flag = true; +// logger.info("接收到致远OA认证参数的ticket:{}",ticket); + //通过ticket获取OA用户信息 +// String userCode = HttpUtil.get(BASEURL+ticket); + logger.info("获取到的OA用户信息:{}",userCode); + String dsname = "ycjf"; + String client_id = "OAREST";//第三方系统id + StringBuffer sb = new StringBuffer(); + if(StrUtil.isNotEmpty(userCode)){ + try { + logger.info("开始加密"); + String security = genKey(userCode,userCode + (System.currentTimeMillis() + "").substring(0, 6)); + logger.info("加密结束:{}",security); + sb.append("type=type_security&dsname="+dsname+"&usercode="+userCode+"&client_id="+client_id+"&security="+security); + String baseUrl = "http://10.75.51.78:8899/service/genThirdPartyAccessToken?"+sb.toString(); + logger.info("请求BIPtokenbaseUrl:{}",baseUrl); + result = HttpRequest.post(baseUrl) + .header("Content-Type", "application/x-www-form-urlencoded")//头信息,多个头信息多次调用此方法即可 + .header("Content-Length", "10000")//头信息,多个头信息多次调用此方法即可 + .header("userid", "admin")//头信息,多个头信息多次调用此方法即可 + .body("{}")//表单内容 + .timeout(20000)//超时,毫秒 + .execute().body(); + logger.info("获取到的BIPtoken信息:{}",result); + } catch (HttpException e) { + flag=false; + e.printStackTrace(); + } + } + if(flag){ + String indexUR = "http://10.75.51.78:8899/nccloud/resources/uap/rbac/thirdpartylogin/main/index.html?accesstoken="+result+"&redirect_uri=http://10.75.51.78:8899/nccloud/resources/workbench/public/common/main/index.html#"; + logger.info(indexUR); + return indexUR; + }else{ + return "http://10.75.51.78:8899/nccloud/resources/uap/rbac/login/main/index.html"; + } + } + /** + * + * @content 此方法获取sso动态加密,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + + @Override + public SysExtensionApiEntity ssoEncrypt(SysExtensionApiEntity entity) { + try { + Map headers = entity.getHeaders(); + String userCode = headers.get("usercode");//用户编码 + String dsname = headers.get("dsname");//数据源 + String client_id = headers.get("client_id");//第三方系统id + StringBuffer sb = new StringBuffer(); + String security = genKey(userCode,userCode + (System.currentTimeMillis() + "").substring(0, 6)); + StringBuffer querys = new StringBuffer(); + querys.append("type=type_security"); + querys.append("&dsname="+dsname); + querys.append("&usercode="+userCode); + querys.append("&client_id="+client_id); + querys.append("&security="+security); + entity.setQuerys(querys.toString()); + headers.put("Content-Type", "application/x-www-form-urlencoded"); + headers.put("userid", "admin"); + entity.setHeaders(headers); + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } + /**获取NCC的key*/ + private static String genKey(String userid, String key) throws Exception { + return new Base64().encodeToString(SignatureTookKit.digestSign(userid.getBytes(), key.getBytes())); + } + +} diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207BillServiceImpl.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207BillServiceImpl.java new file mode 100644 index 00000000..1c59cc16 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207BillServiceImpl.java @@ -0,0 +1,62 @@ +package com.hzya.frame.bip.v3.v2207.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.bip.v3.v2207.entity.BipTokenVo; +import com.hzya.frame.bip.v3.v2207.service.IBipV32207BillService; +import com.hzya.frame.bip.v3.v2207.service.IBipV32207TokenService; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.util.bipV3.Encryption; +import com.hzya.frame.util.bipV3.SHA256Util; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import java.net.URLEncoder; +import java.util.HashMap; +import java.util.Map; + + +@Service(value = "BipV32207BillServiceImpl") +public class BipV32207BillServiceImpl extends BaseService implements IBipV32207BillService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + /** + * + * @content 此方法获取拼接单据动态加密,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + + @Override + public SysExtensionApiEntity getBipBill(SysExtensionApiEntity entity) { + try { + Map headers = entity.getHeaders(); + String client_id = headers.get("client_id"); + //token信息 + String access_token = headers.get("access_token"); + //公钥 + String pubKey = headers.get("pubKey"); + StringBuffer sb = new StringBuffer(); + sb.append(client_id); + String parm = entity.getBodys(); + if (StringUtils.isNotBlank(parm)) { + sb.append(parm); + } + sb.append(pubKey); + // 签名 + String sign = SHA256Util.getSHA256(sb.toString(), pubKey); + StringBuffer querys = new StringBuffer(); + querys.append("access_token="+access_token); + querys.append("&signature="+sign); + querys.append("&client_id="+client_id); + entity.setQuerys(querys.toString()); + headers.put("signature",sign); +// headers.put("content-type","application/x-www-form-urlencoded"); + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } +} diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207TokenServiceImpl.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207TokenServiceImpl.java new file mode 100644 index 00000000..0d6fda14 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/service/impl/BipV32207TokenServiceImpl.java @@ -0,0 +1,92 @@ +package com.hzya.frame.bip.v3.v2207.service.impl; + + +import cn.hutool.http.HttpRequest; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson2.JSON; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDao; +import com.hzya.frame.bip.v3.v2207.dao.IBipOrgsDetailsDao; +import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDao; +import com.hzya.frame.bip.v3.v2207.dao.IBipSupplierDetailsDao; +import com.hzya.frame.bip.v3.v2207.entity.*; +import com.hzya.frame.bip.v3.v2207.service.IBipV32207Service; +import com.hzya.frame.bip.v3.v2207.service.IBipV32207TokenService; +import com.hzya.frame.dateutil.DateUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.util.PluginUtils; +import com.hzya.frame.util.bipV3.Encryption; +import com.hzya.frame.util.bipV3.SHA256Util; +import com.hzya.frame.util.oldNcc.CompressUtil; +import com.hzya.frame.util.oldNcc.Decryption; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.net.URLEncoder; +import java.util.*; + + +@Service(value = "bipV32207TokenService") +public class BipV32207TokenServiceImpl extends BaseService implements IBipV32207TokenService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + /** + * + * @content 此方法获取BIPtoken,heade参数动态传入 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + + @Override + public SysExtensionApiEntity getBipToken(SysExtensionApiEntity entity) { + try { + Map headers = entity.getHeaders(); + String client_id = headers.get("client_id"); + Map paramMap = new HashMap(); + // 密码模式认证 + paramMap.put("grant_type", "client_credentials"); + // 第三方应用id + paramMap.put("client_id", client_id); + // 第三方应用secret] + String client_secret = headers.get("client_secret"); + // 账套编码 + String busi_center = headers.get("busi_center"); + //用户编码 + String usercode = headers.get("usercode"); + //数据库编码 + String dsname = headers.get("dsname"); + String pubKey = headers.get("pubKey"); + // 第三方应用secret 公钥加密] + paramMap.put("client_secret", URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8")); + // 账套编码 + paramMap.put("biz_center", busi_center); + // // TODO 传递数据源和ncc登录用户 + paramMap.put("dsname", dsname); + paramMap.put("usercode", usercode); + // 签名 + String sign = SHA256Util.getSHA256(client_id + client_secret + pubKey,pubKey); + paramMap.put("signature", sign); + StringBuffer querys = new StringBuffer(); + querys.append("biz_center="+busi_center); + querys.append("&grant_type="+"client_credentials"); + querys.append("&signature="+sign); + querys.append("&dsname="+dsname); + querys.append("&client_secret="+URLEncoder.encode(Encryption.pubEncrypt(pubKey, client_secret), "utf-8")); + querys.append("&usercode="+usercode); + querys.append("&client_id="+client_id); + entity.setQuerys(querys.toString()); + headers.put("content-type","application/x-www-form-urlencoded"); + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } +} diff --git a/service/src/main/java/com/hzya/frame/bip/v3/v2207/util/BipUtil.java b/service/src/main/java/com/hzya/frame/bip/v3/v2207/util/BipUtil.java new file mode 100644 index 00000000..a7bfe324 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/bip/v3/v2207/util/BipUtil.java @@ -0,0 +1,65 @@ +package com.hzya.frame.bip.v3.v2207.util; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; + +/** + * com.hzya.frame.bip.v3.v2207.util + * + * @author makejava + * @date 2024-05 -30 14:20 + */ + +public class BipUtil { + /** + * + * @content 发送单据到BIP系统 + * @author laborer + * @date 2024/6/21 0021 10:51 + * + */ + + public static String sendU9cTOBipEsb(String parm, String apiCode,String token){ + String baseUrl = "http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface"; + System.out.println("推送参数"+parm); + String result = HttpRequest.post(baseUrl) + .header("appId", "800023")//头信息,多个头信息多次调用此方法即可 + .header("access_token", token)//头信息,多个头信息多次调用此方法即可 + .header("apiCode", apiCode)//头信息,多个头信息多次调用此方法即可 + .header("publicKey", "ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可 + .header("secretKey", "7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可 + .body(parm)//表单内容 + .timeout(20000)//超时,毫秒 + .execute().body(); + System.out.println("返回参数"+result); + if(StrUtil.isNotEmpty(result)){ + return analytic(result); + } + return null; + } + public static String getBipToken(String userCode, String apiCode){ + String baseUrl = "http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface"; + String result = HttpRequest.post(baseUrl) + .header("appId", "800023")//头信息,多个头信息多次调用此方法即可 + .header("apiCode", apiCode)//头信息,多个头信息多次调用此方法即可 + .header("usercode", userCode)//头信息,多个头信息多次调用此方法即可 + .header("publicKey", "ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可 + .header("secretKey", "7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可 + .body("")//表单内容 + .timeout(20000)//超时,毫秒 + .execute().body(); + System.out.println("返回参数"+result); + if(StrUtil.isNotEmpty(result)){ + JSONObject obj = JSON.parseObject( analytic(result)); + JSONObject data = obj.getJSONObject("data"); + return data.getString("access_token"); + } + return null; + } + public static String analytic(String parm){ + JSONObject main = JSON.parseObject(parm); + return main.getString("attribute"); + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayRequestDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayRequestDTO.java new file mode 100644 index 00000000..1a906cba --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayRequestDTO.java @@ -0,0 +1,32 @@ +package com.hzya.frame.cbs8.dto.req; + +import java.util.List; + +/** + * @Description 代发代扣请求参数 + * @Author xiangerlin + * @Date 2024/6/18 16:20 + **/ +public class AgentPayRequestDTO { + + //代发表头 + private PaymentApplySubmitReqDTO paymentApplySubmitReqDTO; + //代发明细 + private List paymentApplyAgentDTO; + + public PaymentApplySubmitReqDTO getPaymentApplySubmitReqDTO() { + return paymentApplySubmitReqDTO; + } + + public void setPaymentApplySubmitReqDTO(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO) { + this.paymentApplySubmitReqDTO = paymentApplySubmitReqDTO; + } + + public List getPaymentApplyAgentDTO() { + return paymentApplyAgentDTO; + } + + public void setPaymentApplyAgentDTO(List paymentApplyAgentDTO) { + this.paymentApplyAgentDTO = paymentApplyAgentDTO; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayResultRequestDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayResultRequestDTO.java new file mode 100644 index 00000000..a4ef80c8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/AgentPayResultRequestDTO.java @@ -0,0 +1,20 @@ +package com.hzya.frame.cbs8.dto.req; + +/** + * @Description 代发代扣详情查询请求参数 + * @Author xiangerlin + * @Date 2024/6/18 17:40 + **/ +public class AgentPayResultRequestDTO { + + //申请单编号。 代发代扣支付接口会返回这个单号的 + private String busNum; + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/ElecRequestDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/ElecRequestDTO.java new file mode 100644 index 00000000..f318d279 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/ElecRequestDTO.java @@ -0,0 +1,134 @@ +package com.hzya.frame.cbs8.dto.req; + +import java.util.List; + +/** + * @Description 电子回单查询请求参数 + * @Author xiangerlin + * @Date 2024/1/4 17:08 + **/ +public class ElecRequestDTO { + // 开始日期 + private String startDate; + + // 结束日期 + private String endDate; + + // 账号 + private String accountNo; + + // 币种列表 + private List currencyList; + + // 银行类型列表 + private List bankTypeList; + + // 回单文件状态 1-已取回 0-未取回 + private String billStatus; + + // 借贷 1-借 2-贷 + private String loanType; + + // 单位编码列表 + private List unitCodeList; + + // 对账码列表 + private List checkCodeList; + + // ERP业务参考号 + private String settleBusinessReferenceCode; + + public ElecRequestDTO(String settleBusinessReferenceCode) { + this.settleBusinessReferenceCode = settleBusinessReferenceCode; + } + + public ElecRequestDTO(String startDate, String endDate, String settleBusinessReferenceCode) { + this.startDate = startDate; + this.endDate = endDate; + this.settleBusinessReferenceCode = settleBusinessReferenceCode; + } + + public ElecRequestDTO() { + + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getEndDate() { + return endDate; + } + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + public String getAccountNo() { + return accountNo; + } + + public void setAccountNo(String accountNo) { + this.accountNo = accountNo; + } + + public List getCurrencyList() { + return currencyList; + } + + public void setCurrencyList(List currencyList) { + this.currencyList = currencyList; + } + + public List getBankTypeList() { + return bankTypeList; + } + + public void setBankTypeList(List bankTypeList) { + this.bankTypeList = bankTypeList; + } + + public String getBillStatus() { + return billStatus; + } + + public void setBillStatus(String billStatus) { + this.billStatus = billStatus; + } + + public String getLoanType() { + return loanType; + } + + public void setLoanType(String loanType) { + this.loanType = loanType; + } + + public List getUnitCodeList() { + return unitCodeList; + } + + public void setUnitCodeList(List unitCodeList) { + this.unitCodeList = unitCodeList; + } + + public List getCheckCodeList() { + return checkCodeList; + } + + public void setCheckCodeList(List checkCodeList) { + this.checkCodeList = checkCodeList; + } + + public String getSettleBusinessReferenceCode() { + return settleBusinessReferenceCode; + } + + public void setSettleBusinessReferenceCode(String settleBusinessReferenceCode) { + this.settleBusinessReferenceCode = settleBusinessReferenceCode; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayRequestDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayRequestDTO.java new file mode 100644 index 00000000..957d18ad --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayRequestDTO.java @@ -0,0 +1,272 @@ +package com.hzya.frame.cbs8.dto.req; + +/** + * @Description 经办支付请求DTO + * @Author xiangerlin + * @Date 2024/1/3 09:02 + **/ +public class PayRequestDTO { + private String referenceNum;//业务参考号,必填 + private String busType;//业务类型 必填 + private String amount;//金额 必填 + private String currency;//币种编码,必填 + private String payAccount;//付款账号,非集中支付模式必填 + private String revAccount;//收款账号 必填 + private String revAccountName;//收款方户名 必填 + private String revBankType;//收款银行类型编码,必填 + private String revBankName;//收款开户行名称 + private String cnapsCode;//联行号 必填 + private String purpose;//支付用途 必填 + + private String innerAccount;//内部账号 + private String revBankArea;//收款银行地区名称 + private String revProvince;//收款人省 + private String revCity;//收款人市 + private String bankNum;//收款地区码|银行号 + private String summary;//该笔支付备注 + private String expectTime;//期望支付时间 + private String personalFlag;//公私标记 1对私 0对公 + private String urgentTag;//加急,1加急0不加2特急 + private String realTimeTag;//是否实时 1实时0落地 + private String cityFlag;//同城标志 0同城1异地 + private String payChannel;//支付渠道 + private String busiStep;//业务步数 集中支付需要传1,其他不用传 + private String applyUnitCode;//申请人单位号,集中支付必传 + private String displayApplyUnitCode;//申请人单位号(前端显示),集中支付如果传了,会将其转化为applyUnitCode + + private String erpExtend1;//客户备用字段1 + private String erpExtend2;//客户备用字段2 + private String erpExtend3;//客户备用字段3 + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getRevAccount() { + return revAccount; + } + + public void setRevAccount(String revAccount) { + this.revAccount = revAccount; + } + + public String getRevAccountName() { + return revAccountName; + } + + public void setRevAccountName(String revAccountName) { + this.revAccountName = revAccountName; + } + + public String getRevBankType() { + return revBankType; + } + + public void setRevBankType(String revBankType) { + this.revBankType = revBankType; + } + + public String getRevBankName() { + return revBankName; + } + + public void setRevBankName(String revBankName) { + this.revBankName = revBankName; + } + + public String getCnapsCode() { + return cnapsCode; + } + + public void setCnapsCode(String cnapsCode) { + this.cnapsCode = cnapsCode; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getInnerAccount() { + return innerAccount; + } + + public void setInnerAccount(String innerAccount) { + this.innerAccount = innerAccount; + } + + public String getRevBankArea() { + return revBankArea; + } + + public void setRevBankArea(String revBankArea) { + this.revBankArea = revBankArea; + } + + public String getRevProvince() { + return revProvince; + } + + public void setRevProvince(String revProvince) { + this.revProvince = revProvince; + } + + public String getRevCity() { + return revCity; + } + + public void setRevCity(String revCity) { + this.revCity = revCity; + } + + public String getBankNum() { + return bankNum; + } + + public void setBankNum(String bankNum) { + this.bankNum = bankNum; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getExpectTime() { + return expectTime; + } + + public void setExpectTime(String expectTime) { + this.expectTime = expectTime; + } + + public String getPersonalFlag() { + return personalFlag; + } + + public void setPersonalFlag(String personalFlag) { + this.personalFlag = personalFlag; + } + + public String getUrgentTag() { + return urgentTag; + } + + public void setUrgentTag(String urgentTag) { + this.urgentTag = urgentTag; + } + + public String getRealTimeTag() { + return realTimeTag; + } + + public void setRealTimeTag(String realTimeTag) { + this.realTimeTag = realTimeTag; + } + + public String getCityFlag() { + return cityFlag; + } + + public void setCityFlag(String cityFlag) { + this.cityFlag = cityFlag; + } + + public String getPayChannel() { + return payChannel; + } + + public void setPayChannel(String payChannel) { + this.payChannel = payChannel; + } + + public String getBusiStep() { + return busiStep; + } + + public void setBusiStep(String busiStep) { + this.busiStep = busiStep; + } + + public String getApplyUnitCode() { + return applyUnitCode; + } + + public void setApplyUnitCode(String applyUnitCode) { + this.applyUnitCode = applyUnitCode; + } + + public String getDisplayApplyUnitCode() { + return displayApplyUnitCode; + } + + public void setDisplayApplyUnitCode(String displayApplyUnitCode) { + this.displayApplyUnitCode = displayApplyUnitCode; + } + + public String getErpExtend1() { + return erpExtend1; + } + + public void setErpExtend1(String erpExtend1) { + this.erpExtend1 = erpExtend1; + } + + public String getErpExtend2() { + return erpExtend2; + } + + public void setErpExtend2(String erpExtend2) { + this.erpExtend2 = erpExtend2; + } + + public String getErpExtend3() { + return erpExtend3; + } + + public void setErpExtend3(String erpExtend3) { + this.erpExtend3 = erpExtend3; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayResultRequestDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayResultRequestDTO.java new file mode 100644 index 00000000..8180c6f0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PayResultRequestDTO.java @@ -0,0 +1,44 @@ +package com.hzya.frame.cbs8.dto.req; + +import java.util.List; + +/** + * @Description 查询交易结果请求参数 + * @Author xiangerlin + * @Date 2024/1/3 09:46 + **/ +public class PayResultRequestDTO { + public PayResultRequestDTO() { + } + public PayResultRequestDTO(String referenceNum) { + this.referenceNum = referenceNum; + } + + private String referenceNum;//业务参考号,必填 + private List statusList;//状态 + private List payStatusList;//支付状态 + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public List getStatusList() { + return statusList; + } + + public void setStatusList(List statusList) { + this.statusList = statusList; + } + + public List getPayStatusList() { + return payStatusList; + } + + public void setPayStatusList(List payStatusList) { + this.payStatusList = payStatusList; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplyAgentDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplyAgentDTO.java new file mode 100644 index 00000000..509165a3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplyAgentDTO.java @@ -0,0 +1,132 @@ +package com.hzya.frame.cbs8.dto.req; + +/** + * @Description 代发代扣明细 + * @Author xiangerlin + * @Date 2024/6/18 13:45 + **/ +public class PaymentApplyAgentDTO { + //每笔明细金额 + private String dtlAmount; + //收款账号 + private String dtlRevAccount; + //联行号 同行可不传,跨行必传 + private String dtlCnapsCode; + //收款账户名称 + private String dtlRevName; + //收款开户行 ,如果传的联行号能匹配到对应到开户行,cbs8会自动带出 + private String dtlRevBankName; + + + + //是否跨行 Y跨行 N同行 + private String dtlBankFlag; + //明细用途 + private String dtlPurpose; + //明细摘要 + private String dtlRemark; + //收款账号银行号|地区码 + private String dtlRevBankArea; + //收款开户地 + private String dtlRevBankCity; + //明细序号,从1开始递增 + private int dtlSeqNum; + //备用字段 一共6个 + private String dtlExtend1; + + public String getDtlAmount() { + return dtlAmount; + } + + public void setDtlAmount(String dtlAmount) { + this.dtlAmount = dtlAmount; + } + + public String getDtlRevAccount() { + return dtlRevAccount; + } + + public void setDtlRevAccount(String dtlRevAccount) { + this.dtlRevAccount = dtlRevAccount; + } + + public String getDtlCnapsCode() { + return dtlCnapsCode; + } + + public void setDtlCnapsCode(String dtlCnapsCode) { + this.dtlCnapsCode = dtlCnapsCode; + } + + public String getDtlRevName() { + return dtlRevName; + } + + public void setDtlRevName(String dtlRevName) { + this.dtlRevName = dtlRevName; + } + + public String getDtlRevBankName() { + return dtlRevBankName; + } + + public void setDtlRevBankName(String dtlRevBankName) { + this.dtlRevBankName = dtlRevBankName; + } + + public String getDtlBankFlag() { + return dtlBankFlag; + } + + public void setDtlBankFlag(String dtlBankFlag) { + this.dtlBankFlag = dtlBankFlag; + } + + public String getDtlPurpose() { + return dtlPurpose; + } + + public void setDtlPurpose(String dtlPurpose) { + this.dtlPurpose = dtlPurpose; + } + + public String getDtlRemark() { + return dtlRemark; + } + + public void setDtlRemark(String dtlRemark) { + this.dtlRemark = dtlRemark; + } + + public String getDtlRevBankArea() { + return dtlRevBankArea; + } + + public void setDtlRevBankArea(String dtlRevBankArea) { + this.dtlRevBankArea = dtlRevBankArea; + } + + public String getDtlRevBankCity() { + return dtlRevBankCity; + } + + public void setDtlRevBankCity(String dtlRevBankCity) { + this.dtlRevBankCity = dtlRevBankCity; + } + + public int getDtlSeqNum() { + return dtlSeqNum; + } + + public void setDtlSeqNum(int dtlSeqNum) { + this.dtlSeqNum = dtlSeqNum; + } + + public String getDtlExtend1() { + return dtlExtend1; + } + + public void setDtlExtend1(String dtlExtend1) { + this.dtlExtend1 = dtlExtend1; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplySubmitReqDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplySubmitReqDTO.java new file mode 100644 index 00000000..863ecb63 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/PaymentApplySubmitReqDTO.java @@ -0,0 +1,245 @@ +package com.hzya.frame.cbs8.dto.req; + +/** + * @Description 批量代发代扣 203代发 201代扣 + * @Author xiangerlin + * @Date 2024/6/18 11:58 + **/ +public class PaymentApplySubmitReqDTO { + //业务参考号 + private String referenceNum; + /** + * 业务类型 + * 201-代扣 + * 203-代发 + * 代发工资传203 + */ + private String busType; + //总金额 小数位2位 + private String amount; + //币种 + private String currency; + //付款账号 + private String payAccount; + //用途 + private String purpose; + // 以上是必填字段 + + + + //备注 + private String summary; + //期望支付时间 + private String expectTime; + //公私标识 1对私 0对公 + private String personalFlag; + //加急标志 1加急 0不加急 + private String urgentTag; + //是否实时 1实时 0落地 + private String realTimeTag; + /** + * 同城标志 0同城 1异地 + * 收/付账号所属同一个城市为同城,否则为异地 + */ + private String cityFlag; + //银行备用字段 一共8个 + private String bankExtend1; + private String bankExtend2; + private String bankExtend3; + private String bankExtend4; + private String bankExtend5; + private String bankExtend6; + private String bankExtend7; + private String bankExtend8; + + //客户备用字段1 + private String erpExtend1; + //客户备用字段1 + private String erpExtend2; + //客户备用字段1 + private String erpExtend3; + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getExpectTime() { + return expectTime; + } + + public void setExpectTime(String expectTime) { + this.expectTime = expectTime; + } + + public String getPersonalFlag() { + return personalFlag; + } + + public void setPersonalFlag(String personalFlag) { + this.personalFlag = personalFlag; + } + + public String getUrgentTag() { + return urgentTag; + } + + public void setUrgentTag(String urgentTag) { + this.urgentTag = urgentTag; + } + + public String getRealTimeTag() { + return realTimeTag; + } + + public void setRealTimeTag(String realTimeTag) { + this.realTimeTag = realTimeTag; + } + + public String getCityFlag() { + return cityFlag; + } + + public void setCityFlag(String cityFlag) { + this.cityFlag = cityFlag; + } + + public String getBankExtend1() { + return bankExtend1; + } + + public void setBankExtend1(String bankExtend1) { + this.bankExtend1 = bankExtend1; + } + + public String getErpExtend1() { + return erpExtend1; + } + + public void setErpExtend1(String erpExtend1) { + this.erpExtend1 = erpExtend1; + } + + public String getErpExtend2() { + return erpExtend2; + } + + public void setErpExtend2(String erpExtend2) { + this.erpExtend2 = erpExtend2; + } + + public String getErpExtend3() { + return erpExtend3; + } + + public void setErpExtend3(String erpExtend3) { + this.erpExtend3 = erpExtend3; + } + + public String getBankExtend2() { + return bankExtend2; + } + + public void setBankExtend2(String bankExtend2) { + this.bankExtend2 = bankExtend2; + } + + public String getBankExtend3() { + return bankExtend3; + } + + public void setBankExtend3(String bankExtend3) { + this.bankExtend3 = bankExtend3; + } + + public String getBankExtend4() { + return bankExtend4; + } + + public void setBankExtend4(String bankExtend4) { + this.bankExtend4 = bankExtend4; + } + + public String getBankExtend5() { + return bankExtend5; + } + + public void setBankExtend5(String bankExtend5) { + this.bankExtend5 = bankExtend5; + } + + public String getBankExtend6() { + return bankExtend6; + } + + public void setBankExtend6(String bankExtend6) { + this.bankExtend6 = bankExtend6; + } + + public String getBankExtend7() { + return bankExtend7; + } + + public void setBankExtend7(String bankExtend7) { + this.bankExtend7 = bankExtend7; + } + + public String getBankExtend8() { + return bankExtend8; + } + + public void setBankExtend8(String bankExtend8) { + this.bankExtend8 = bankExtend8; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/req/TransactionDetailReqDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/req/TransactionDetailReqDTO.java new file mode 100644 index 00000000..26f5f4bf --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/req/TransactionDetailReqDTO.java @@ -0,0 +1,164 @@ +package com.hzya.frame.cbs8.dto.req; + +import java.util.List; + +/** + * @Description 查询境内交易明细参数 + * @Author xiangerlin + * @Date 2024/1/3 09:55 + **/ +public class TransactionDetailReqDTO { + private int currentPage;//当前页码 从1开始 + private int pageSize;//本次查询的记录数,最大1000条 + private String startDate;//开始日期 + private String endDate;//结束日期 + private String dateType;//日期类型0:交易日期,1:起息日期 + private List accountNoList;//账户列表 + private List bankTypeList;//银行类型列表 + private List currencyList;//币种列表 + private String detailedSources;//明细来源 + private String currentFlag;//明细类型 + private String loanType;//借贷类型 1:借 2:贷 + private List accountNatureList;//账户性质列表 + private String bankSerialNumber;//银行流水号 + private String transactionSerialNumber;//交易流水号 + private List unitCodeList ;//单位编码列表 + private String erpSerialNumber ;//erp业务参考号 + + public TransactionDetailReqDTO() { + + } + + public TransactionDetailReqDTO(String startDate, String endDate) { + this.startDate = startDate; + this.endDate = endDate; + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getEndDate() { + return endDate; + } + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + public String getDateType() { + return dateType; + } + + public void setDateType(String dateType) { + this.dateType = dateType; + } + + public List getAccountNoList() { + return accountNoList; + } + + public void setAccountNoList(List accountNoList) { + this.accountNoList = accountNoList; + } + + public List getBankTypeList() { + return bankTypeList; + } + + public void setBankTypeList(List bankTypeList) { + this.bankTypeList = bankTypeList; + } + + public List getCurrencyList() { + return currencyList; + } + + public void setCurrencyList(List currencyList) { + this.currencyList = currencyList; + } + + public String getDetailedSources() { + return detailedSources; + } + + public void setDetailedSources(String detailedSources) { + this.detailedSources = detailedSources; + } + + public String getCurrentFlag() { + return currentFlag; + } + + public void setCurrentFlag(String currentFlag) { + this.currentFlag = currentFlag; + } + + public String getLoanType() { + return loanType; + } + + public void setLoanType(String loanType) { + this.loanType = loanType; + } + + public List getAccountNatureList() { + return accountNatureList; + } + + public void setAccountNatureList(List accountNatureList) { + this.accountNatureList = accountNatureList; + } + + public String getBankSerialNumber() { + return bankSerialNumber; + } + + public void setBankSerialNumber(String bankSerialNumber) { + this.bankSerialNumber = bankSerialNumber; + } + + public String getTransactionSerialNumber() { + return transactionSerialNumber; + } + + public void setTransactionSerialNumber(String transactionSerialNumber) { + this.transactionSerialNumber = transactionSerialNumber; + } + + public List getUnitCodeList() { + return unitCodeList; + } + + public void setUnitCodeList(List unitCodeList) { + this.unitCodeList = unitCodeList; + } + + public String getErpSerialNumber() { + return erpSerialNumber; + } + + public void setErpSerialNumber(String erpSerialNumber) { + this.erpSerialNumber = erpSerialNumber; + } + + public int getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(int currentPage) { + this.currentPage = currentPage; + } + + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayQueryDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayQueryDTO.java new file mode 100644 index 00000000..402e7895 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayQueryDTO.java @@ -0,0 +1,280 @@ +package com.hzya.frame.cbs8.dto.res; + +/** + * @Description 代发代扣查询详情 + * @Author xiangerlin + * @Date 2024/6/19 09:02 + **/ +public class AgentPayQueryDTO { + // 申请单编号 + private String busNum; + + // 代发/代扣明细序号 + private String dtlSeqNum; + + // 金额 + private String dtlAmount; // 考虑到金额计算精度,建议使用BigDecimal + + // 收款人名称 + private String dtlRevName; + + // 收款人账号 + private String dtlRevAccount; + + // 收款人开户行 + private String dtlRevBankName; + + // 银行号 + private String dtlBankNum; + + // 联行号 + private String dtlCnapsCode; + + // 是否跨行(Y:开户行是招商银行。N:开户行是他行。为空默认为招行) + private String dtlBankFlag; + + // 地区名称 + private String dtlRevBankArea; + + // 注释 + private String dtlRemark; + + // 状态 + private String dtlStatus; + + // 错误信息 + private String dtlErrorMessage; + + // 他行开户地 + private String dtlRevBankCity; + + // 备用字段1-6 + private String dtlExtend1; + private String dtlExtend2; + private String dtlExtend3; + private String dtlExtend4; + private String dtlExtend5; + private String dtlExtend6; + + // ERP备注1-3 + private String dtlErpComment1; + private String dtlErpComment2; + private String dtlErpComment3; + + // 用途 + private String dtlPurpose; + + // 银行支付时间 + private String dtlPayTime; + + // 实际扣款金额 + private String dtlActualAmount; + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } + + public String getDtlSeqNum() { + return dtlSeqNum; + } + + public void setDtlSeqNum(String dtlSeqNum) { + this.dtlSeqNum = dtlSeqNum; + } + + public String getDtlAmount() { + return dtlAmount; + } + + public void setDtlAmount(String dtlAmount) { + this.dtlAmount = dtlAmount; + } + + public String getDtlRevName() { + return dtlRevName; + } + + public void setDtlRevName(String dtlRevName) { + this.dtlRevName = dtlRevName; + } + + public String getDtlRevAccount() { + return dtlRevAccount; + } + + public void setDtlRevAccount(String dtlRevAccount) { + this.dtlRevAccount = dtlRevAccount; + } + + public String getDtlRevBankName() { + return dtlRevBankName; + } + + public void setDtlRevBankName(String dtlRevBankName) { + this.dtlRevBankName = dtlRevBankName; + } + + public String getDtlBankNum() { + return dtlBankNum; + } + + public void setDtlBankNum(String dtlBankNum) { + this.dtlBankNum = dtlBankNum; + } + + public String getDtlCnapsCode() { + return dtlCnapsCode; + } + + public void setDtlCnapsCode(String dtlCnapsCode) { + this.dtlCnapsCode = dtlCnapsCode; + } + + public String getDtlBankFlag() { + return dtlBankFlag; + } + + public void setDtlBankFlag(String dtlBankFlag) { + this.dtlBankFlag = dtlBankFlag; + } + + public String getDtlRevBankArea() { + return dtlRevBankArea; + } + + public void setDtlRevBankArea(String dtlRevBankArea) { + this.dtlRevBankArea = dtlRevBankArea; + } + + public String getDtlRemark() { + return dtlRemark; + } + + public void setDtlRemark(String dtlRemark) { + this.dtlRemark = dtlRemark; + } + + public String getDtlStatus() { + return dtlStatus; + } + + public void setDtlStatus(String dtlStatus) { + this.dtlStatus = dtlStatus; + } + + public String getDtlErrorMessage() { + return dtlErrorMessage; + } + + public void setDtlErrorMessage(String dtlErrorMessage) { + this.dtlErrorMessage = dtlErrorMessage; + } + + public String getDtlRevBankCity() { + return dtlRevBankCity; + } + + public void setDtlRevBankCity(String dtlRevBankCity) { + this.dtlRevBankCity = dtlRevBankCity; + } + + public String getDtlExtend1() { + return dtlExtend1; + } + + public void setDtlExtend1(String dtlExtend1) { + this.dtlExtend1 = dtlExtend1; + } + + public String getDtlExtend2() { + return dtlExtend2; + } + + public void setDtlExtend2(String dtlExtend2) { + this.dtlExtend2 = dtlExtend2; + } + + public String getDtlExtend3() { + return dtlExtend3; + } + + public void setDtlExtend3(String dtlExtend3) { + this.dtlExtend3 = dtlExtend3; + } + + public String getDtlExtend4() { + return dtlExtend4; + } + + public void setDtlExtend4(String dtlExtend4) { + this.dtlExtend4 = dtlExtend4; + } + + public String getDtlExtend5() { + return dtlExtend5; + } + + public void setDtlExtend5(String dtlExtend5) { + this.dtlExtend5 = dtlExtend5; + } + + public String getDtlExtend6() { + return dtlExtend6; + } + + public void setDtlExtend6(String dtlExtend6) { + this.dtlExtend6 = dtlExtend6; + } + + public String getDtlErpComment1() { + return dtlErpComment1; + } + + public void setDtlErpComment1(String dtlErpComment1) { + this.dtlErpComment1 = dtlErpComment1; + } + + public String getDtlErpComment2() { + return dtlErpComment2; + } + + public void setDtlErpComment2(String dtlErpComment2) { + this.dtlErpComment2 = dtlErpComment2; + } + + public String getDtlErpComment3() { + return dtlErpComment3; + } + + public void setDtlErpComment3(String dtlErpComment3) { + this.dtlErpComment3 = dtlErpComment3; + } + + public String getDtlPurpose() { + return dtlPurpose; + } + + public void setDtlPurpose(String dtlPurpose) { + this.dtlPurpose = dtlPurpose; + } + + public String getDtlPayTime() { + return dtlPayTime; + } + + public void setDtlPayTime(String dtlPayTime) { + this.dtlPayTime = dtlPayTime; + } + + public String getDtlActualAmount() { + return dtlActualAmount; + } + + public void setDtlActualAmount(String dtlActualAmount) { + this.dtlActualAmount = dtlActualAmount; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayResultResDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayResultResDTO.java new file mode 100644 index 00000000..5ea5d5ae --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/AgentPayResultResDTO.java @@ -0,0 +1,450 @@ +package com.hzya.frame.cbs8.dto.res; + +import java.util.List; + +/** + * @Description 代发代扣 返回参数对象 + * @Author xiangerlin + * @Date 2024/6/19 08:53 + **/ +public class AgentPayResultResDTO { + // 支付的业务类型 + private String busType; + + // 申请单编号 + private String busNum; + + // 付款账户 + private String payAccount; + + // 付款账户名称 + private String payAccountName; + + // 付款账户开户行 + private String payBankName; + + // 付款银行类型 + private String payBankType; + + // 币种 + private String currency; + + // 金额 + private String amount; + + // 收款账户 + private String revAccount; + + // 收款账户名称 + private String revAccountName; + + // 收款开户行 + private String revBankName; + + // 收款银行类型 + private String revBankType; + + // 收款人省 + private String revProvince; + + // 对账码集合(假设为String列表) + private List checkCodeList; + + // 收款人市 + private String revCity; + + // 支付渠道 + private String payChannel; + + // 付款单提示信息/银行返回信息 + private String errorMsg; + + // 支付申请状态 + private String status; + + // 经办人ID + private String createBy; + + // 经办人名称 + private String createByName; + + // 用途 + private String purpose; + + // 摘要/备注 + private String summary; + + // 期望支付时间 + private String expectTime; + + // 支付时间 + private String payDate; + + // 支付状态 + private String payStatus; + + // 客户备用字段1 + private String erpExtend1; + + // 客户备用字段2 + private String erpExtend2; + + // 客户备用字段3 + private String erpExtend3; + + // 计划流水号 + private String planNumber; + + // 资金预算编号 + private String planItemCode; + + // 预算项名称 + private String planItemName; + + // 预算所属单位编码 + private String planUnitCode; + + // 预算所属单位名称 + private String planUnitName; + + // 单位编码(前端展示) + private String displayUnitCode; + + // 预算单位编码(前端展示) + private String displayPlanUnitCode; + + // 经办用户单位编码(前端展示) + private String displayOperaterOrgCode; + + // 付方单位编码(前端展示) + private String displayPayOrgCode; + + // 客商编号 + private String revCustomerCode; + + // 结算方式 + private String payType; + + //代发代扣详情 + private List agentDetails; + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPayAccountName() { + return payAccountName; + } + + public void setPayAccountName(String payAccountName) { + this.payAccountName = payAccountName; + } + + public String getPayBankName() { + return payBankName; + } + + public void setPayBankName(String payBankName) { + this.payBankName = payBankName; + } + + public String getPayBankType() { + return payBankType; + } + + public void setPayBankType(String payBankType) { + this.payBankType = payBankType; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getRevAccount() { + return revAccount; + } + + public void setRevAccount(String revAccount) { + this.revAccount = revAccount; + } + + public String getRevAccountName() { + return revAccountName; + } + + public void setRevAccountName(String revAccountName) { + this.revAccountName = revAccountName; + } + + public String getRevBankName() { + return revBankName; + } + + public void setRevBankName(String revBankName) { + this.revBankName = revBankName; + } + + public String getRevBankType() { + return revBankType; + } + + public void setRevBankType(String revBankType) { + this.revBankType = revBankType; + } + + public String getRevProvince() { + return revProvince; + } + + public void setRevProvince(String revProvince) { + this.revProvince = revProvince; + } + + public List getCheckCodeList() { + return checkCodeList; + } + + public void setCheckCodeList(List checkCodeList) { + this.checkCodeList = checkCodeList; + } + + public String getRevCity() { + return revCity; + } + + public void setRevCity(String revCity) { + this.revCity = revCity; + } + + public String getPayChannel() { + return payChannel; + } + + public void setPayChannel(String payChannel) { + this.payChannel = payChannel; + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public String getCreateByName() { + return createByName; + } + + public void setCreateByName(String createByName) { + this.createByName = createByName; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getExpectTime() { + return expectTime; + } + + public void setExpectTime(String expectTime) { + this.expectTime = expectTime; + } + + public String getPayDate() { + return payDate; + } + + public void setPayDate(String payDate) { + this.payDate = payDate; + } + + public String getPayStatus() { + return payStatus; + } + + public void setPayStatus(String payStatus) { + this.payStatus = payStatus; + } + + public String getErpExtend1() { + return erpExtend1; + } + + public void setErpExtend1(String erpExtend1) { + this.erpExtend1 = erpExtend1; + } + + public String getErpExtend2() { + return erpExtend2; + } + + public void setErpExtend2(String erpExtend2) { + this.erpExtend2 = erpExtend2; + } + + public String getErpExtend3() { + return erpExtend3; + } + + public void setErpExtend3(String erpExtend3) { + this.erpExtend3 = erpExtend3; + } + + public String getPlanNumber() { + return planNumber; + } + + public void setPlanNumber(String planNumber) { + this.planNumber = planNumber; + } + + public String getPlanItemCode() { + return planItemCode; + } + + public void setPlanItemCode(String planItemCode) { + this.planItemCode = planItemCode; + } + + public String getPlanItemName() { + return planItemName; + } + + public void setPlanItemName(String planItemName) { + this.planItemName = planItemName; + } + + public String getPlanUnitCode() { + return planUnitCode; + } + + public void setPlanUnitCode(String planUnitCode) { + this.planUnitCode = planUnitCode; + } + + public String getPlanUnitName() { + return planUnitName; + } + + public void setPlanUnitName(String planUnitName) { + this.planUnitName = planUnitName; + } + + public String getDisplayUnitCode() { + return displayUnitCode; + } + + public void setDisplayUnitCode(String displayUnitCode) { + this.displayUnitCode = displayUnitCode; + } + + public String getDisplayPlanUnitCode() { + return displayPlanUnitCode; + } + + public void setDisplayPlanUnitCode(String displayPlanUnitCode) { + this.displayPlanUnitCode = displayPlanUnitCode; + } + + public String getDisplayOperaterOrgCode() { + return displayOperaterOrgCode; + } + + public void setDisplayOperaterOrgCode(String displayOperaterOrgCode) { + this.displayOperaterOrgCode = displayOperaterOrgCode; + } + + public String getDisplayPayOrgCode() { + return displayPayOrgCode; + } + + public void setDisplayPayOrgCode(String displayPayOrgCode) { + this.displayPayOrgCode = displayPayOrgCode; + } + + public String getRevCustomerCode() { + return revCustomerCode; + } + + public void setRevCustomerCode(String revCustomerCode) { + this.revCustomerCode = revCustomerCode; + } + + public String getPayType() { + return payType; + } + + public void setPayType(String payType) { + this.payType = payType; + } + + public List getAgentDetails() { + return agentDetails; + } + + public void setAgentDetails(List agentDetails) { + this.agentDetails = agentDetails; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResDataDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResDataDTO.java new file mode 100644 index 00000000..0bb30dc8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResDataDTO.java @@ -0,0 +1,458 @@ +package com.hzya.frame.cbs8.dto.res; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.annotation.JSONField; + +import java.util.List; + +/** + * @Description data节点 + * @Author xiangerlin + * @Date 2024/1/2 09:26 + **/ +public class CbsResDataDTO { + + + private List list;//明细数据 + //------- 交易明细字段----- + private int endRow; + private Boolean hasNextPage;//是否有下一页 + private Boolean hasPreviousPage;//是否有前一页 + @JSONField(name = "isFirstPage") + private Boolean hasFirstPage; + @JSONField(name = "isLastPage") + private Boolean hasLastPage; + private int navigateFirstPage; + private int navigateLastPage; + private int navigatePages; + private int nextPage; + private int pageNum; + private int pageSize; + private int pages; + private int prePage; + private int size; + private int startRow; + private int total; + //------- 交易明细字段----- + + //------经办支付返回参数------ + private String busNum;//申请单编号 + private String errorCode;//错误编码 + private String errorMsg;//错误信息 + private String freezeFlowNum;//内部户冻结流水号 + private String recordNum;//批量经办序号 + private String referenceNum;//业务参考号 + private Boolean successed;//是否成功 + //------经办支付返回参数------ + + + //------查询交易结果返回参数------- + + private String busType;//支付业务类型 + private String payAccount;//付款账号 + private String payAccountName;//付款户名 + private String payBankName;//付款开户行名称 + private String payBankType;//付款银行类型 + private String currency;//币种 + private String amount;//金额 + private String revAccount;//收款账户 + private String revAccountName;//收款账户名 + private String revBankName;//收款开户行 + private String revBankType;//收款银行类型 + private String payChannel;//支付渠道 + + private String status;//支付申请单状态 + private String payStatus;//支付状态 + private String payDate;//支付时间 + private String planNumber;//计划流水号 + private String planItemCode;//资金预算编号 + private String planItemName;//预算名称 + private String erpExtend1;//客户备用字段1 + private String erpExtend2;//客户备用字段1 + private String erpExtend3;//客户备用字段1 + + //------查询交易结果返回参数------- + + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public int getEndRow() { + return endRow; + } + + public void setEndRow(int endRow) { + this.endRow = endRow; + } + + public Boolean getHasNextPage() { + return hasNextPage; + } + + public void setHasNextPage(Boolean hasNextPage) { + this.hasNextPage = hasNextPage; + } + + public Boolean getHasPreviousPage() { + return hasPreviousPage; + } + + public void setHasPreviousPage(Boolean hasPreviousPage) { + this.hasPreviousPage = hasPreviousPage; + } + + public Boolean getHasFirstPage() { + return hasFirstPage; + } + + public void setHasFirstPage(Boolean hasFirstPage) { + this.hasFirstPage = hasFirstPage; + } + + public Boolean getHasLastPage() { + return hasLastPage; + } + + public void setHasLastPage(Boolean hasLastPage) { + this.hasLastPage = hasLastPage; + } + + public int getNavigateFirstPage() { + return navigateFirstPage; + } + + public void setNavigateFirstPage(int navigateFirstPage) { + this.navigateFirstPage = navigateFirstPage; + } + + public int getNavigateLastPage() { + return navigateLastPage; + } + + public void setNavigateLastPage(int navigateLastPage) { + this.navigateLastPage = navigateLastPage; + } + + public int getNavigatePages() { + return navigatePages; + } + + public void setNavigatePages(int navigatePages) { + this.navigatePages = navigatePages; + } + + public int getNextPage() { + return nextPage; + } + + public void setNextPage(int nextPage) { + this.nextPage = nextPage; + } + + public int getPageNum() { + return pageNum; + } + + public void setPageNum(int pageNum) { + this.pageNum = pageNum; + } + + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + public int getPages() { + return pages; + } + + public void setPages(int pages) { + this.pages = pages; + } + + public int getPrePage() { + return prePage; + } + + public void setPrePage(int prePage) { + this.prePage = prePage; + } + + public int getSize() { + return size; + } + + public void setSize(int size) { + this.size = size; + } + + public int getStartRow() { + return startRow; + } + + public void setStartRow(int startRow) { + this.startRow = startRow; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } + + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getFreezeFlowNum() { + return freezeFlowNum; + } + + public void setFreezeFlowNum(String freezeFlowNum) { + this.freezeFlowNum = freezeFlowNum; + } + + public String getRecordNum() { + return recordNum; + } + + public void setRecordNum(String recordNum) { + this.recordNum = recordNum; + } + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public Boolean getSuccessed() { + return successed; + } + + public void setSuccessed(Boolean successed) { + this.successed = successed; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPayAccountName() { + return payAccountName; + } + + public void setPayAccountName(String payAccountName) { + this.payAccountName = payAccountName; + } + + public String getPayBankName() { + return payBankName; + } + + public void setPayBankName(String payBankName) { + this.payBankName = payBankName; + } + + public String getPayBankType() { + return payBankType; + } + + public void setPayBankType(String payBankType) { + this.payBankType = payBankType; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getRevAccount() { + return revAccount; + } + + public void setRevAccount(String revAccount) { + this.revAccount = revAccount; + } + + public String getRevAccountName() { + return revAccountName; + } + + public void setRevAccountName(String revAccountName) { + this.revAccountName = revAccountName; + } + + public String getRevBankName() { + return revBankName; + } + + public void setRevBankName(String revBankName) { + this.revBankName = revBankName; + } + + public String getRevBankType() { + return revBankType; + } + + public void setRevBankType(String revBankType) { + this.revBankType = revBankType; + } + + public String getPayChannel() { + return payChannel; + } + + public void setPayChannel(String payChannel) { + this.payChannel = payChannel; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getPayStatus() { + return payStatus; + } + + public void setPayStatus(String payStatus) { + this.payStatus = payStatus; + } + + public String getPayDate() { + return payDate; + } + + public void setPayDate(String payDate) { + this.payDate = payDate; + } + + public String getPlanNumber() { + return planNumber; + } + + public void setPlanNumber(String planNumber) { + this.planNumber = planNumber; + } + + public String getPlanItemCode() { + return planItemCode; + } + + public void setPlanItemCode(String planItemCode) { + this.planItemCode = planItemCode; + } + + public String getPlanItemName() { + return planItemName; + } + + public void setPlanItemName(String planItemName) { + this.planItemName = planItemName; + } + + public String getErpExtend1() { + return erpExtend1; + } + + public void setErpExtend1(String erpExtend1) { + this.erpExtend1 = erpExtend1; + } + + public String getErpExtend2() { + return erpExtend2; + } + + public void setErpExtend2(String erpExtend2) { + this.erpExtend2 = erpExtend2; + } + + public String getErpExtend3() { + return erpExtend3; + } + + public void setErpExtend3(String erpExtend3) { + this.erpExtend3 = erpExtend3; + } + + /** + * 把json字符串转换成指定范型的list + * @param json + * @param list + * @param clazz + * @param + */ + private static void adaptAndAddToList(String json, List list, Class clazz) { + JSONObject jsonObject = JSON.parseObject(json); + + if (jsonObject.containsKey("list")) { + JSONArray listArray = jsonObject.getJSONArray("list"); + for (Object item : listArray) { + JSONObject itemObject = (JSONObject) item; + // 适配不同类型的节点 + list.add(JSON.toJavaObject(itemObject, clazz)); + } + } + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResponseDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResponseDTO.java new file mode 100644 index 00000000..1abae5b9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/CbsResponseDTO.java @@ -0,0 +1,44 @@ +package com.hzya.frame.cbs8.dto.res; + +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.annotation.JSONField; + +import java.util.List; + +/** + * @Description cbs响应DTO + * @Author xiangerlin + * @Date 2024/1/2 09:25 + **/ +public class CbsResponseDTO { + //private List data;//数据 + private List data;//数据 + private String code;//0表示成功 + private String msg;//消息 + + + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/ElecResponseDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/ElecResponseDTO.java new file mode 100644 index 00000000..6e77d30a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/ElecResponseDTO.java @@ -0,0 +1,305 @@ +package com.hzya.frame.cbs8.dto.res; + +/** + * @Description 电子回单查询返回参数 + * @Author xiangerlin + * @Date 2024/1/4 17:13 + **/ +public class ElecResponseDTO { + + // 账号 + private String accountNo; + + // 账号名称 + private String accountName; + + // 银行类型 + private String bankType; + + // 银行类型名称 + private String bankTypeName; + + // 开户行 + private String openingBank; + + // 交易日期 + private String transactionDate; + + // 电子回单文件状态 + private String electronicBillStatus; + + // 电子回单文件名称 + private String billFileName; + + // 回单文件下载地址 + private String bucketFileUrl; + + // 回单文件名称 + private String bucketFileName; + + // 回单类型 + private String electronicBillType; + + // 银行流水号 + private String bankSerialNumber; + + // 回单编号 + private String printInstanceNumber; + + // 币种 + private String currency; + + // 币种名称 + private String currencyName; + + // 借贷类型 + private String loanType; + + // 交易金额 + private String transactionAmount; + + // 对方账号 + private String oppositeAccount; + + // 对方账户名 + private String oppositeAccountName; + + // 对方开户地 + private String oppositeOpeningPlace; + + // 对方开户行 + private String oppositeOpeningBank; + + // 摘要 + private String digest; + + // 用途 + private String purpose; + + // 账户性质 + private String accountNatureCode; + + // 对账码 + private String checkCode; + + // 单位编码 + private String unitCode; + + // ERP业务参考号 + private String settleBusinessReferenceCode; + public String getAccountNo() { + return accountNo; + } + + public void setAccountNo(String accountNo) { + this.accountNo = accountNo; + } + + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public String getBankType() { + return bankType; + } + + public void setBankType(String bankType) { + this.bankType = bankType; + } + + public String getBankTypeName() { + return bankTypeName; + } + + public void setBankTypeName(String bankTypeName) { + this.bankTypeName = bankTypeName; + } + + public String getOpeningBank() { + return openingBank; + } + + public void setOpeningBank(String openingBank) { + this.openingBank = openingBank; + } + + public String getTransactionDate() { + return transactionDate; + } + + public void setTransactionDate(String transactionDate) { + this.transactionDate = transactionDate; + } + + public String getElectronicBillStatus() { + return electronicBillStatus; + } + + public void setElectronicBillStatus(String electronicBillStatus) { + this.electronicBillStatus = electronicBillStatus; + } + + public String getBillFileName() { + return billFileName; + } + + public void setBillFileName(String billFileName) { + this.billFileName = billFileName; + } + + public String getBucketFileUrl() { + return bucketFileUrl; + } + + public void setBucketFileUrl(String bucketFileUrl) { + this.bucketFileUrl = bucketFileUrl; + } + + public String getBucketFileName() { + return bucketFileName; + } + + public void setBucketFileName(String bucketFileName) { + this.bucketFileName = bucketFileName; + } + + public String getElectronicBillType() { + return electronicBillType; + } + + public void setElectronicBillType(String electronicBillType) { + this.electronicBillType = electronicBillType; + } + + public String getBankSerialNumber() { + return bankSerialNumber; + } + + public void setBankSerialNumber(String bankSerialNumber) { + this.bankSerialNumber = bankSerialNumber; + } + + public String getPrintInstanceNumber() { + return printInstanceNumber; + } + + public void setPrintInstanceNumber(String printInstanceNumber) { + this.printInstanceNumber = printInstanceNumber; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getCurrencyName() { + return currencyName; + } + + public void setCurrencyName(String currencyName) { + this.currencyName = currencyName; + } + + public String getLoanType() { + return loanType; + } + + public void setLoanType(String loanType) { + this.loanType = loanType; + } + + public String getTransactionAmount() { + return transactionAmount; + } + + public void setTransactionAmount(String transactionAmount) { + this.transactionAmount = transactionAmount; + } + + public String getOppositeAccount() { + return oppositeAccount; + } + + public void setOppositeAccount(String oppositeAccount) { + this.oppositeAccount = oppositeAccount; + } + + public String getOppositeAccountName() { + return oppositeAccountName; + } + + public void setOppositeAccountName(String oppositeAccountName) { + this.oppositeAccountName = oppositeAccountName; + } + + public String getOppositeOpeningPlace() { + return oppositeOpeningPlace; + } + + public void setOppositeOpeningPlace(String oppositeOpeningPlace) { + this.oppositeOpeningPlace = oppositeOpeningPlace; + } + + public String getOppositeOpeningBank() { + return oppositeOpeningBank; + } + + public void setOppositeOpeningBank(String oppositeOpeningBank) { + this.oppositeOpeningBank = oppositeOpeningBank; + } + + public String getDigest() { + return digest; + } + + public void setDigest(String digest) { + this.digest = digest; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getAccountNatureCode() { + return accountNatureCode; + } + + public void setAccountNatureCode(String accountNatureCode) { + this.accountNatureCode = accountNatureCode; + } + + public String getCheckCode() { + return checkCode; + } + + public void setCheckCode(String checkCode) { + this.checkCode = checkCode; + } + + public String getUnitCode() { + return unitCode; + } + + public void setUnitCode(String unitCode) { + this.unitCode = unitCode; + } + + public String getSettleBusinessReferenceCode() { + return settleBusinessReferenceCode; + } + + public void setSettleBusinessReferenceCode(String settleBusinessReferenceCode) { + this.settleBusinessReferenceCode = settleBusinessReferenceCode; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResponseDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResponseDTO.java new file mode 100644 index 00000000..2534d4f8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResponseDTO.java @@ -0,0 +1,73 @@ +package com.hzya.frame.cbs8.dto.res; + +/** + * @Description 经办支付接口返回参数中的data节点 + * @Author xiangerlin + * @Date 2024/1/3 14:35 + **/ +public class PayResponseDTO { + + private String busNum;//申请单编号 + private String errorCode;//错误编码 + private String errorMsg;//错误信息 + private String freezeFlowNum;//内部户冻结流水号 + private String recordNum;//批量经办序号 + private String referenceNum;//业务参考号 + private Boolean successed;//是否成功 + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } + + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getFreezeFlowNum() { + return freezeFlowNum; + } + + public void setFreezeFlowNum(String freezeFlowNum) { + this.freezeFlowNum = freezeFlowNum; + } + + public String getRecordNum() { + return recordNum; + } + + public void setRecordNum(String recordNum) { + this.recordNum = recordNum; + } + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public Boolean getSuccessed() { + return successed; + } + + public void setSuccessed(Boolean successed) { + this.successed = successed; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResultResDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResultResDTO.java new file mode 100644 index 00000000..4ab82489 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/PayResultResDTO.java @@ -0,0 +1,890 @@ +package com.hzya.frame.cbs8.dto.res; + +/** + * @Description 交易结果查询data节点响应的参数 + * @Author xiangerlin + * @Date 2024/1/3 15:45 + **/ +public class PayResultResDTO { + + private String payDate;//支付日期 + private String accountFlag; + + private String agentDetails; + + private String amount; + + private String bankExtend1; + + private String bankExtend10; + + private String bankExtend11; + + private String bankExtend2; + + private String bankExtend3; + + private String bankExtend4; + + private String bankExtend5; + + private String bankExtend6; + + private String bankExtend7; + + private String bankExtend8; + + private String bankExtend9; + + private String bankInterfaceType; + + private String bankNum; + + private String bankVersion; + + private String batchNum; + + private String busNum; + + private String busType; + + private String checkCodeList; + + private String cityFlag; + + private String cnapsCode; + + private String createBy; + + private String createByName; + + private String createTime; + + private String currency; + + private String dealPeopleList; + + private String detailNum; + + private String erpExtend1; + + private String erpExtend2; + + private String erpExtend3; + + private String errorMsg; + + private String expectTime; + + + + private String extend1; + + private String extend2; + + private String extend3; + + private String extend4; + + private String extend5; + + private String freezeFlowNum; + + private String freezeStatus; + + private String id; + + private String innerAccount; + + private String innerAccountName; + + private String inputType; + + private String isDeleted; + + private String isSaveRev; + + private String lastPrintTime; + + private String lastPrintUser; + + private String operaterOrgCode; + + private String operaterOrgCodeList; + + private String operaterOrgName; + + private String payAccount; + + private String payAccountName; + + private String payAccountSeq; + + private String payBankName; + + private String payBankType; + + private String payChannel; + + private String payOrgCode; + + private String payOrgName; + + private String payStatus;// 支付状态 + + private String paymentApplyUnionDTO; + + private String personalFlag; + + private String printTimes; + + private String procInstId; + + private String procStatus; + + private String projectCode; + + private String purpose; + + private String realName; + + private String realRevAccount; + + private String realTimeTag; + + private String referenceNum; + + private String revAccount; + + private String revAccountName; + + private String revAccountSeq; + + private String revBankArea; + + private String revBankName; + + private String revBankType; + + private String revCity; + + private String revProvince; + + private String status;//支付申请状态 + + private String summary; + + private String unitCode; + + private String unitName; + + private String updateBy; + + private String updateTime; + + private String urgentTag; + + public String getAccountFlag() { + return accountFlag; + } + + public void setAccountFlag(String accountFlag) { + this.accountFlag = accountFlag; + } + + public String getAgentDetails() { + return agentDetails; + } + + public void setAgentDetails(String agentDetails) { + this.agentDetails = agentDetails; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getBankExtend1() { + return bankExtend1; + } + + public void setBankExtend1(String bankExtend1) { + this.bankExtend1 = bankExtend1; + } + + public String getBankExtend10() { + return bankExtend10; + } + + public void setBankExtend10(String bankExtend10) { + this.bankExtend10 = bankExtend10; + } + + public String getBankExtend11() { + return bankExtend11; + } + + public void setBankExtend11(String bankExtend11) { + this.bankExtend11 = bankExtend11; + } + + public String getBankExtend2() { + return bankExtend2; + } + + public void setBankExtend2(String bankExtend2) { + this.bankExtend2 = bankExtend2; + } + + public String getBankExtend3() { + return bankExtend3; + } + + public void setBankExtend3(String bankExtend3) { + this.bankExtend3 = bankExtend3; + } + + public String getBankExtend4() { + return bankExtend4; + } + + public void setBankExtend4(String bankExtend4) { + this.bankExtend4 = bankExtend4; + } + + public String getBankExtend5() { + return bankExtend5; + } + + public void setBankExtend5(String bankExtend5) { + this.bankExtend5 = bankExtend5; + } + + public String getBankExtend6() { + return bankExtend6; + } + + public void setBankExtend6(String bankExtend6) { + this.bankExtend6 = bankExtend6; + } + + public String getBankExtend7() { + return bankExtend7; + } + + public void setBankExtend7(String bankExtend7) { + this.bankExtend7 = bankExtend7; + } + + public String getBankExtend8() { + return bankExtend8; + } + + public void setBankExtend8(String bankExtend8) { + this.bankExtend8 = bankExtend8; + } + + public String getBankExtend9() { + return bankExtend9; + } + + public void setBankExtend9(String bankExtend9) { + this.bankExtend9 = bankExtend9; + } + + public String getBankInterfaceType() { + return bankInterfaceType; + } + + public void setBankInterfaceType(String bankInterfaceType) { + this.bankInterfaceType = bankInterfaceType; + } + + public String getBankNum() { + return bankNum; + } + + public void setBankNum(String bankNum) { + this.bankNum = bankNum; + } + + public String getBankVersion() { + return bankVersion; + } + + public void setBankVersion(String bankVersion) { + this.bankVersion = bankVersion; + } + + public String getBatchNum() { + return batchNum; + } + + public void setBatchNum(String batchNum) { + this.batchNum = batchNum; + } + + public String getBusNum() { + return busNum; + } + + public void setBusNum(String busNum) { + this.busNum = busNum; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getCheckCodeList() { + return checkCodeList; + } + + public void setCheckCodeList(String checkCodeList) { + this.checkCodeList = checkCodeList; + } + + public String getCityFlag() { + return cityFlag; + } + + public void setCityFlag(String cityFlag) { + this.cityFlag = cityFlag; + } + + public String getCnapsCode() { + return cnapsCode; + } + + public void setCnapsCode(String cnapsCode) { + this.cnapsCode = cnapsCode; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public String getCreateByName() { + return createByName; + } + + public void setCreateByName(String createByName) { + this.createByName = createByName; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getDealPeopleList() { + return dealPeopleList; + } + + public void setDealPeopleList(String dealPeopleList) { + this.dealPeopleList = dealPeopleList; + } + + public String getDetailNum() { + return detailNum; + } + + public void setDetailNum(String detailNum) { + this.detailNum = detailNum; + } + + public String getErpExtend1() { + return erpExtend1; + } + + public void setErpExtend1(String erpExtend1) { + this.erpExtend1 = erpExtend1; + } + + public String getErpExtend2() { + return erpExtend2; + } + + public void setErpExtend2(String erpExtend2) { + this.erpExtend2 = erpExtend2; + } + + public String getErpExtend3() { + return erpExtend3; + } + + public void setErpExtend3(String erpExtend3) { + this.erpExtend3 = erpExtend3; + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getExpectTime() { + return expectTime; + } + + public void setExpectTime(String expectTime) { + this.expectTime = expectTime; + } + + public String getExtend1() { + return extend1; + } + + public void setExtend1(String extend1) { + this.extend1 = extend1; + } + + public String getExtend2() { + return extend2; + } + + public void setExtend2(String extend2) { + this.extend2 = extend2; + } + + public String getExtend3() { + return extend3; + } + + public void setExtend3(String extend3) { + this.extend3 = extend3; + } + + public String getExtend4() { + return extend4; + } + + public void setExtend4(String extend4) { + this.extend4 = extend4; + } + + public String getExtend5() { + return extend5; + } + + public void setExtend5(String extend5) { + this.extend5 = extend5; + } + + public String getFreezeFlowNum() { + return freezeFlowNum; + } + + public void setFreezeFlowNum(String freezeFlowNum) { + this.freezeFlowNum = freezeFlowNum; + } + + public String getFreezeStatus() { + return freezeStatus; + } + + public void setFreezeStatus(String freezeStatus) { + this.freezeStatus = freezeStatus; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInnerAccount() { + return innerAccount; + } + + public void setInnerAccount(String innerAccount) { + this.innerAccount = innerAccount; + } + + public String getInnerAccountName() { + return innerAccountName; + } + + public void setInnerAccountName(String innerAccountName) { + this.innerAccountName = innerAccountName; + } + + public String getInputType() { + return inputType; + } + + public void setInputType(String inputType) { + this.inputType = inputType; + } + + public String getIsDeleted() { + return isDeleted; + } + + public void setIsDeleted(String isDeleted) { + this.isDeleted = isDeleted; + } + + public String getIsSaveRev() { + return isSaveRev; + } + + public void setIsSaveRev(String isSaveRev) { + this.isSaveRev = isSaveRev; + } + + public String getLastPrintTime() { + return lastPrintTime; + } + + public void setLastPrintTime(String lastPrintTime) { + this.lastPrintTime = lastPrintTime; + } + + public String getLastPrintUser() { + return lastPrintUser; + } + + public void setLastPrintUser(String lastPrintUser) { + this.lastPrintUser = lastPrintUser; + } + + public String getOperaterOrgCode() { + return operaterOrgCode; + } + + public void setOperaterOrgCode(String operaterOrgCode) { + this.operaterOrgCode = operaterOrgCode; + } + + public String getOperaterOrgCodeList() { + return operaterOrgCodeList; + } + + public void setOperaterOrgCodeList(String operaterOrgCodeList) { + this.operaterOrgCodeList = operaterOrgCodeList; + } + + public String getOperaterOrgName() { + return operaterOrgName; + } + + public void setOperaterOrgName(String operaterOrgName) { + this.operaterOrgName = operaterOrgName; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPayAccountName() { + return payAccountName; + } + + public void setPayAccountName(String payAccountName) { + this.payAccountName = payAccountName; + } + + public String getPayAccountSeq() { + return payAccountSeq; + } + + public void setPayAccountSeq(String payAccountSeq) { + this.payAccountSeq = payAccountSeq; + } + + public String getPayBankName() { + return payBankName; + } + + public void setPayBankName(String payBankName) { + this.payBankName = payBankName; + } + + public String getPayBankType() { + return payBankType; + } + + public void setPayBankType(String payBankType) { + this.payBankType = payBankType; + } + + public String getPayChannel() { + return payChannel; + } + + public void setPayChannel(String payChannel) { + this.payChannel = payChannel; + } + + public String getPayOrgCode() { + return payOrgCode; + } + + public void setPayOrgCode(String payOrgCode) { + this.payOrgCode = payOrgCode; + } + + public String getPayOrgName() { + return payOrgName; + } + + public void setPayOrgName(String payOrgName) { + this.payOrgName = payOrgName; + } + + public String getPayStatus() { + return payStatus; + } + + public void setPayStatus(String payStatus) { + this.payStatus = payStatus; + } + + public String getPaymentApplyUnionDTO() { + return paymentApplyUnionDTO; + } + + public void setPaymentApplyUnionDTO(String paymentApplyUnionDTO) { + this.paymentApplyUnionDTO = paymentApplyUnionDTO; + } + + public String getPersonalFlag() { + return personalFlag; + } + + public void setPersonalFlag(String personalFlag) { + this.personalFlag = personalFlag; + } + + public String getPrintTimes() { + return printTimes; + } + + public void setPrintTimes(String printTimes) { + this.printTimes = printTimes; + } + + public String getProcInstId() { + return procInstId; + } + + public void setProcInstId(String procInstId) { + this.procInstId = procInstId; + } + + public String getProcStatus() { + return procStatus; + } + + public void setProcStatus(String procStatus) { + this.procStatus = procStatus; + } + + public String getProjectCode() { + return projectCode; + } + + public void setProjectCode(String projectCode) { + this.projectCode = projectCode; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getRealName() { + return realName; + } + + public void setRealName(String realName) { + this.realName = realName; + } + + public String getRealRevAccount() { + return realRevAccount; + } + + public void setRealRevAccount(String realRevAccount) { + this.realRevAccount = realRevAccount; + } + + public String getRealTimeTag() { + return realTimeTag; + } + + public void setRealTimeTag(String realTimeTag) { + this.realTimeTag = realTimeTag; + } + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public String getRevAccount() { + return revAccount; + } + + public void setRevAccount(String revAccount) { + this.revAccount = revAccount; + } + + public String getRevAccountName() { + return revAccountName; + } + + public void setRevAccountName(String revAccountName) { + this.revAccountName = revAccountName; + } + + public String getRevAccountSeq() { + return revAccountSeq; + } + + public void setRevAccountSeq(String revAccountSeq) { + this.revAccountSeq = revAccountSeq; + } + + public String getRevBankArea() { + return revBankArea; + } + + public void setRevBankArea(String revBankArea) { + this.revBankArea = revBankArea; + } + + public String getRevBankName() { + return revBankName; + } + + public void setRevBankName(String revBankName) { + this.revBankName = revBankName; + } + + public String getRevBankType() { + return revBankType; + } + + public void setRevBankType(String revBankType) { + this.revBankType = revBankType; + } + + public String getRevCity() { + return revCity; + } + + public void setRevCity(String revCity) { + this.revCity = revCity; + } + + public String getRevProvince() { + return revProvince; + } + + public void setRevProvince(String revProvince) { + this.revProvince = revProvince; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getUnitCode() { + return unitCode; + } + + public void setUnitCode(String unitCode) { + this.unitCode = unitCode; + } + + public String getUnitName() { + return unitName; + } + + public void setUnitName(String unitName) { + this.unitName = unitName; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public String getUrgentTag() { + return urgentTag; + } + + public void setUrgentTag(String urgentTag) { + this.urgentTag = urgentTag; + } + + public String getPayDate() { + return payDate; + } + + public void setPayDate(String payDate) { + this.payDate = payDate; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/dto/res/TransactionDetailDTO.java b/service/src/main/java/com/hzya/frame/cbs8/dto/res/TransactionDetailDTO.java new file mode 100644 index 00000000..9cd4e3cd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/dto/res/TransactionDetailDTO.java @@ -0,0 +1,207 @@ +package com.hzya.frame.cbs8.dto.res; + +/** + * @Description 境内账户交易明细 + * @Author xiangerlin + * @Date 2023/12/29 16:40 + **/ +public class TransactionDetailDTO{ + private String accountNo;//银行账号 + private String accountName;//银行名称 + private String bankType;//银行类型 + private String openBank;//开户行名称 + private String bankTransactionDate;//交易日期 + private String bankSerialNumber;//银行流水号 + private String transactionSerialNumber;//交易流水号 + private String currency;//币种 + private String loanType;//借贷类型 + private String incurredAmount;//发生额 + private String accountBalance;//交易后余额 + private String purpose;//用途 + private String digest;//摘要 + private String oppositeAccount;//对方账号 + private String oppositeName;//对方户名 + private String oppositeOpeningBank;//对方开户行 + private String associatedCustomerNumber;//关联客户号 + private String merchantNumber;//客商编号 + private String merchantName;//客商名称 + private String transactionCode;//交易代码 + private String remark;//备注 + private String erpSerialNumber;//erp业务参考号 + + public String getAccountNo() { + return accountNo; + } + + public void setAccountNo(String accountNo) { + this.accountNo = accountNo; + } + + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public String getBankType() { + return bankType; + } + + public void setBankType(String bankType) { + this.bankType = bankType; + } + + public String getOpenBank() { + return openBank; + } + + public void setOpenBank(String openBank) { + this.openBank = openBank; + } + + public String getBankTransactionDate() { + return bankTransactionDate; + } + + public void setBankTransactionDate(String bankTransactionDate) { + this.bankTransactionDate = bankTransactionDate; + } + + public String getBankSerialNumber() { + return bankSerialNumber; + } + + public void setBankSerialNumber(String bankSerialNumber) { + this.bankSerialNumber = bankSerialNumber; + } + + public String getTransactionSerialNumber() { + return transactionSerialNumber; + } + + public void setTransactionSerialNumber(String transactionSerialNumber) { + this.transactionSerialNumber = transactionSerialNumber; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getLoanType() { + return loanType; + } + + public void setLoanType(String loanType) { + this.loanType = loanType; + } + + public String getIncurredAmount() { + return incurredAmount; + } + + public void setIncurredAmount(String incurredAmount) { + this.incurredAmount = incurredAmount; + } + + public String getAccountBalance() { + return accountBalance; + } + + public void setAccountBalance(String accountBalance) { + this.accountBalance = accountBalance; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getDigest() { + return digest; + } + + public void setDigest(String digest) { + this.digest = digest; + } + + public String getOppositeAccount() { + return oppositeAccount; + } + + public void setOppositeAccount(String oppositeAccount) { + this.oppositeAccount = oppositeAccount; + } + + public String getOppositeName() { + return oppositeName; + } + + public void setOppositeName(String oppositeName) { + this.oppositeName = oppositeName; + } + + public String getOppositeOpeningBank() { + return oppositeOpeningBank; + } + + public void setOppositeOpeningBank(String oppositeOpeningBank) { + this.oppositeOpeningBank = oppositeOpeningBank; + } + + public String getAssociatedCustomerNumber() { + return associatedCustomerNumber; + } + + public void setAssociatedCustomerNumber(String associatedCustomerNumber) { + this.associatedCustomerNumber = associatedCustomerNumber; + } + + public String getMerchantNumber() { + return merchantNumber; + } + + public void setMerchantNumber(String merchantNumber) { + this.merchantNumber = merchantNumber; + } + + public String getMerchantName() { + return merchantName; + } + + public void setMerchantName(String merchantName) { + this.merchantName = merchantName; + } + + public String getTransactionCode() { + return transactionCode; + } + + public void setTransactionCode(String transactionCode) { + this.transactionCode = transactionCode; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getErpSerialNumber() { + return erpSerialNumber; + } + + public void setErpSerialNumber(String erpSerialNumber) { + this.erpSerialNumber = erpSerialNumber; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8ExtService.java b/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8ExtService.java new file mode 100644 index 00000000..5f47a625 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8ExtService.java @@ -0,0 +1,60 @@ +package com.hzya.frame.cbs8.service; + +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/7 14:20 + **/ +public interface ICbs8ExtService { + + /** + * 支付经办 + * @param entity + * @return + */ + SysExtensionApiEntity payApply(SysExtensionApiEntity entity); + + /** + * 代发代扣 支付申请 + * @param entity + * @return + */ + SysExtensionApiEntity agentPayApply(SysExtensionApiEntity entity); + + /** + * 交易结果查询 + * @param entity + * @return + */ + SysExtensionApiEntity payResult(SysExtensionApiEntity entity); + + /** + * 交易明细查询 + * @param entity + * @return + */ + SysExtensionApiEntity transactionDetailQuery(SysExtensionApiEntity entity); + /** + * 代发代扣 + * @param entity + * @return + */ + SysExtensionApiEntity payApplyAgent(SysExtensionApiEntity entity); + + /** + * 代发代扣结果查询 + * @param entity + * @return + */ + SysExtensionApiEntity payApplyAgentResult(SysExtensionApiEntity entity); + + /** + * 电子回单查询 + * @param entity + * @return + */ + SysExtensionApiEntity elecQuery(SysExtensionApiEntity entity); + +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8Service.java b/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8Service.java new file mode 100644 index 00000000..2b55c362 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/service/ICbs8Service.java @@ -0,0 +1,66 @@ +package com.hzya.frame.cbs8.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.cbs8.dto.req.*; +import com.hzya.frame.cbs8.dto.res.*; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; + +import java.util.List; + +/** + * @Description cbs8接口 + * @Author xiangerlin + * @Date 2024/6/6 15:30 + **/ +public interface ICbs8Service { + + /** + * 支付申请 + * @param paymentEntity + */ + PayResponseDTO payApply(PaymentEntity paymentEntity); + + /** + * 通过业务参考号查询交易结果 3.2.6 + * @param resultRequestDTO + * @return + * @throws Exception + */ + List queryPayResult(PayResultRequestDTO resultRequestDTO); + + /** + * 查询电子回单 + * @param elecRequestDTO + * startDate 开始日期 - 必填 + * endDate 结束日期 -必填 + * billStatus 回单状态 1-已取回 0-未取回 ,只有已取回的才能下载 + * settleBusinessReferenceCode 业务参考号 + * @return List + * bucketFileUrl 回单下载地址 + * billFileName 回单文件名称 + * settleBusinessReferenceCode 业务参考号 + */ + List queryElecBill(ElecRequestDTO elecRequestDTO); + + /** + * 查询交易明细 + * @param transactionDetailReqDTO + * @return + */ + CbsResDataDTO queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO); + + /** + * 代发代扣 支付申请 + * @param paymentApplySubmitReqDTO + * @param paymentApplyAgentList + */ + PayResponseDTO agentPayApply(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO, List paymentApplyAgentList); + + /** + * 代发代扣 详情查询 + * @param agentPayResultRequestDTO + * @return + */ + AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO); + +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ExtServiceImpl.java b/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ExtServiceImpl.java new file mode 100644 index 00000000..accce4ca --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ExtServiceImpl.java @@ -0,0 +1,216 @@ +package com.hzya.frame.cbs8.service.impl; + +import cn.hutool.core.convert.Convert; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.cbs8.dto.req.*; +import com.hzya.frame.cbs8.service.ICbs8ExtService; +import com.hzya.frame.cbs8.util.CBSUtil; +import com.hzya.frame.cbs8.util.CbsAccessToken; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.stringutil.StringUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.http.protocol.HTTP; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; +import java.util.*; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/7 14:20 + **/ + +@Service(value = "cbs8Ext") +public class Cbs8ExtServiceImpl implements ICbs8ExtService { + + Logger logger = LoggerFactory.getLogger(getClass()); + /** + * 支付经办 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity payApply(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + PaymentEntity paymentEntity = JSONObject.parseObject(bodys,PaymentEntity.class); + if (null != paymentEntity){ + PayRequestDTO payRequestDTO = new PayRequestDTO(); + String ferenceNum = Convert.toStr(paymentEntity.getReferenceNumNew(),paymentEntity.getReferenceNum()); + payRequestDTO.setReferenceNum(ferenceNum); + payRequestDTO.setBusType(paymentEntity.getBusType()); + payRequestDTO.setAmount(paymentEntity.getAmount()); + payRequestDTO.setCurrency(paymentEntity.getCurrency()); + payRequestDTO.setPayAccount(StringUtil.replaceBlank(paymentEntity.getPayAccount())); + payRequestDTO.setRevAccount(StringUtil.replaceBlank(paymentEntity.getRevAccount())); + payRequestDTO.setRevAccountName(StringUtil.replaceBlank(paymentEntity.getRevAccountName())); + payRequestDTO.setRevBankType(StringUtil.replaceBlank((paymentEntity.getRevBankType()))); + payRequestDTO.setRevBankName(StringUtil.replaceBlank(paymentEntity.getRevBankName())); + payRequestDTO.setCnapsCode(StringUtil.replaceBlank((paymentEntity.getCnapsCode()))); + payRequestDTO.setPurpose(paymentEntity.getPurpose()); + payRequestDTO.setErpExtend1(paymentEntity.getPayType()); + //集中支付模式 + if (CBSUtil.CENTRALIZED_PAYMENT_TYPE.equals(payRequestDTO.getBusType())){ + payRequestDTO.setBusiStep("1"); + payRequestDTO.setApplyUnitCode(paymentEntity.getPayCompanyCode()); + payRequestDTO.setPayAccount(null); + } + List list = Arrays.asList(payRequestDTO); + String requestData = JSONObject.toJSONString(list); + //加密 签名 + encrypAndsign(entity,requestData); + } + } + return entity; + } + + /** + * 代发代扣 支付申请 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity agentPayApply(SysExtensionApiEntity entity) { + String boyds = entity.getBodys(); + if (StrUtil.isNotEmpty(boyds)){ + AgentPayRequestDTO agentPayRequest = JSONObject.parseObject(boyds,AgentPayRequestDTO.class); + String requestData = JSONObject.toJSONString(agentPayRequest); + //加密签名 + encrypAndsign(entity, requestData); + } + return entity; + } + + /** + * 交易结果查询 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity payResult(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + PayResultRequestDTO payResultRequest = JSONObject.parseObject(bodys,PayResultRequestDTO.class); + if (null != payResultRequest && StrUtil.isNotEmpty(payResultRequest.getReferenceNum())){ + String requestData = JSONObject.toJSONString(payResultRequest); + //加密 签名 + encrypAndsign(entity,requestData); + }else { + throw new BaseSystemException("业务参考号不能为空!!!!"); + } + } + return entity; + } + + /** + * 交易明细查询 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity transactionDetailQuery(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + TransactionDetailReqDTO transactionDetailReqDTO = JSONObject.parseObject(bodys,TransactionDetailReqDTO.class); + String requestData = JSONObject.toJSONString(transactionDetailReqDTO); + ////加密签名 + encrypAndsign(entity, requestData); + } + return entity; + } + + /** + * 代发代扣 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity payApplyAgent(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + AgentPayRequestDTO agentPayRequest = JSONObject.parseObject(bodys,AgentPayRequestDTO.class); + String requestData = JSONObject.toJSONString(agentPayRequest); + ////加密签名 + encrypAndsign(entity, requestData); + } + return entity; + } + + + + /** + * 代发代扣结果查询 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity payApplyAgentResult(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + AgentPayResultRequestDTO agentPayResultRequestDTO = JSONObject.parseObject(bodys,AgentPayResultRequestDTO.class); + String requestData = JSONObject.toJSONString(agentPayResultRequestDTO); + encrypAndsign(entity,requestData); + } + return entity; + } + + /** + * 电子回单查询 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity elecQuery(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + ElecRequestDTO elecRequestDTO = JSONObject.parseObject(bodys,ElecRequestDTO.class); + String requestData = JSONObject.toJSONString(elecRequestDTO); + //加密 签名 + encrypAndsign(entity,requestData); + } + return entity; + } + + + /** + * 请求头 + * @param sign + * @param timestamp + * @return + */ + private Map headersValueOf(String sign, long timestamp){ + Map header = new HashMap(); + header.put(CBSUtil.SIGN_HEADER_NAME,sign); + header.put(CBSUtil.TIMESTAMP_HEADER,Long.toString(timestamp)); + header.put(HTTP.CONTENT_TYPE,CBSUtil.TARGET_CONTENT_TYPE); + header.put(CBSUtil.AUTHORIZATION,CBSUtil.BEARER+ CbsAccessToken.getToken()); + return header; + } + + /** + * 加密 签名 + * @param entity 接口转发参数对象 + * @param requestData 请求参数json字符串 + */ + private void encrypAndsign(SysExtensionApiEntity entity, String requestData) { + //签名 + long timestamp = System.currentTimeMillis(); + logger.info("CBS请求参数明文:{}",requestData); + String sign = CBSUtil.sign(requestData,timestamp); + //加密 + byte[] encryptedData = CBSUtil.encrypt(requestData); + Map header = headersValueOf(sign,timestamp); + entity.setByteBodys(encryptedData); + entity.setHeaders(header); + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ServiceImpl.java b/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ServiceImpl.java new file mode 100644 index 00000000..6b57738e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/service/impl/Cbs8ServiceImpl.java @@ -0,0 +1,272 @@ +package com.hzya.frame.cbs8.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.map.MapBuilder; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.serializer.SerializerFeature; +import com.hzya.frame.cbs8.dto.req.*; +import com.hzya.frame.cbs8.dto.res.*; +import com.hzya.frame.cbs8.service.ICbs8Service; +import com.hzya.frame.cbs8.util.CBSUtil; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IPaymentService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Base64; +import java.util.List; +import java.util.Map; + +/** + * @Description cbs8接口 + * @Author xiangerlin + * @Date 2024/6/7 14:44 + **/ +@Service +public class Cbs8ServiceImpl implements ICbs8Service { + Logger logger = LoggerFactory.getLogger(getClass()); + @Autowired + private IPaymentService paymentService; + @Override + public PayResponseDTO payApply(PaymentEntity paymentEntity) { + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260001") + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj") + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(JSONObject.toJSONString(paymentEntity)).timeout(60000).execute().body(); + //解密响应报文 + String result = decryptResBody(body); + if (StrUtil.isNotEmpty(result)){ + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + List dataList = cbsResponseDTO.getData(); + if (CollectionUtils.isNotEmpty(dataList)){ + JSONObject o = dataList.get(0); + PayResponseDTO payResponseDTO = JSON.toJavaObject(o, PayResponseDTO.class); + return payResponseDTO; + } + } + return new PayResponseDTO(); + } + + /** + * 通过业务参考号查询交易结果 3.2.6 + * + * @param resultRequestDTO + * @return + * @throws Exception + */ + @Override + public List queryPayResult(PayResultRequestDTO resultRequestDTO) { + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260002") + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj") + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(JSONObject.toJSONString(resultRequestDTO)).timeout(60000).execute().body(); + String result = decryptResBody(body); + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){ + List dataList = cbsResponseDTO.getData(); + List payResultList = CBSUtil.convertJsonArrayToList(dataList, PayResultResDTO.class); + return payResultList; + } + return new ArrayList(); + } + + /** + * 查询电子回单 + * + * @param elecRequestDTO startDate 开始日期 - 必填 + * endDate 结束日期 -必填 + * billStatus 回单状态 1-已取回 0-未取回 ,只有已取回的才能下载 + * settleBusinessReferenceCode 业务参考号 + * @return List + * bucketFileUrl 回单下载地址 + * billFileName 回单文件名称 + * settleBusinessReferenceCode 业务参考号 + */ + @Override + public List queryElecBill(ElecRequestDTO elecRequestDTO) { + if (null == elecRequestDTO){ + elecRequestDTO = new ElecRequestDTO(); + } + if (StrUtil.isEmpty(elecRequestDTO.getStartDate())){ + elecRequestDTO.setStartDate(DateUtil.today()); + } + if (StrUtil.isEmpty(elecRequestDTO.getEndDate())){ + elecRequestDTO.setEndDate(DateUtil.today()); + } + String params = JSON.toJSONString(elecRequestDTO, SerializerFeature.WRITE_MAP_NULL_FEATURES, SerializerFeature.QuoteFieldNames); + logger.info("电子回单查询请求参数为:{}", params); + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260005") + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj") + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + String result = decryptResBody(body); + if (StrUtil.isNotEmpty(result)){ + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + if (null != cbsResponseDTO){ + if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){ + List dataList = cbsResponseDTO.getData(); + if (CollectionUtils.isNotEmpty(dataList)){ + JSONObject jsonObject = dataList.get(0); + CbsResDataDTO dataDTO = JSON.toJavaObject(jsonObject, CbsResDataDTO.class); + List elecResponseDTOList = CBSUtil.convertJsonArrayToList(dataDTO.getList(), ElecResponseDTO.class); + return elecResponseDTOList; + } + } + } + } + return null; + } + + /** + * 查询交易明细 + * + * @param transactionDetailReqDTO + * @return + */ + @Override + public CbsResDataDTO queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO) { + //页码 + int currentPage = transactionDetailReqDTO.getCurrentPage(); + //每页条数 + int pageSize = transactionDetailReqDTO.getPageSize(); + if (currentPage == 0){ + currentPage = CBSUtil.DEFAULT_CURRENT_PAGE; + transactionDetailReqDTO.setCurrentPage(currentPage);//页码 + } + if (pageSize == 0){ + pageSize = CBSUtil.DEFAULT_PAGE_SIZE; + transactionDetailReqDTO.setPageSize(pageSize); + } + if (StrUtil.isNotEmpty(transactionDetailReqDTO.getStartDate())){ + transactionDetailReqDTO.setStartDate(DateUtil.today()); + } + if (StrUtil.isNotEmpty(transactionDetailReqDTO.getEndDate())){ + transactionDetailReqDTO.setEndDate(DateUtil.today()); + } + String params = JSON.toJSONString(transactionDetailReqDTO); + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260006") + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj") + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + String result = decryptResBody(body); + if (StrUtil.isNotEmpty(result)){ + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + if (null != cbsResponseDTO){ + if (CollectionUtils.isNotEmpty(cbsResponseDTO.getData())){ + List list = cbsResponseDTO.getData(); + if (CollectionUtils.isNotEmpty(list)){ + JSONObject jsonObject = list.get(0); + CbsResDataDTO dataDTO = JSON.toJavaObject(jsonObject, CbsResDataDTO.class); + return dataDTO; + } + } + } + } + return new CbsResDataDTO(); + } + + /** + * 代发代扣 支付申请 + * @param paymentApplySubmitReqDTO + * @param paymentApplyAgentList + */ + @Override + public PayResponseDTO agentPayApply(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO, List paymentApplyAgentList) { + AgentPayRequestDTO param = new AgentPayRequestDTO(); + param.setPaymentApplySubmitReqDTO(paymentApplySubmitReqDTO); + param.setPaymentApplyAgentDTO(paymentApplyAgentList); + String params = JSON.toJSONString(param); + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260003") + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj") + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + String result = decryptResBody(body); + if (StrUtil.isNotEmpty(result)){ + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + List dataList = cbsResponseDTO.getData(); + if (CollectionUtils.isNotEmpty(dataList)){ + JSONObject o = dataList.get(0); + PayResponseDTO payResponseDTO = JSON.toJavaObject(o, PayResponseDTO.class); + return payResponseDTO; + } + } + return new PayResponseDTO(); + } + + /** + * 代发代扣 详情查询 + * + * @param agentPayResultRequestDTO + * @return + */ + @Override + public AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO) { + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000260004")//数智办公 + .put("publicKey","ZJYA1vBeY1ai53iNmbAEsw6DImjkXGBkdMailxcBdliFC85Ce7eDIk+3zDUT+v578prj")//数智财资 + .put("secretKey","7Gp6OjHrIaQ6R3tXGPrI4morjQyWL+qu4JJschQnkBRtv26VDgGFVYKOy5kMZfd/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800026") + .build(); + String params = JSON.toJSONString(agentPayResultRequestDTO); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfaceToESB").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + //解密报文 + String result = decryptResBody(body); + if (StrUtil.isNotEmpty(result)){ + CbsResponseDTO cbsResponseDTO = JSONObject.parseObject(result, CbsResponseDTO.class); + List dataList = cbsResponseDTO.getData(); + if (CollectionUtils.isNotEmpty(dataList)){ + JSONObject o = dataList.get(0); + AgentPayResultResDTO agentPayResultResDTO = JSON.toJavaObject(o, AgentPayResultResDTO.class); + return agentPayResultResDTO; + } + } + return new AgentPayResultResDTO(); + } + + /** + * 解密响应报文 + * @param body + * @return + */ + private String decryptResBody(String body){ + if (StrUtil.isNotEmpty(body)){ + JsonResultEntity resultEntity = JSONObject.parseObject(body,JsonResultEntity.class); + String bodyBase64 = String.valueOf(resultEntity.getAttribute()); + byte[] bodyBytes = Base64.getDecoder().decode(bodyBase64); + //这里验证一下,如果系统异常 返回的报文没加密 + String test = new String(bodyBytes); + if (JSONUtil.isTypeJSON(test)){ + return test; + } + //解密报文 + String result = CBSUtil.decrypt(bodyBytes); + logger.info("银行响应参数:{}",result); + return result; + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/util/CBSUtil.java b/service/src/main/java/com/hzya/frame/cbs8/util/CBSUtil.java new file mode 100644 index 00000000..602a9124 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/util/CBSUtil.java @@ -0,0 +1,187 @@ +package com.hzya.frame.cbs8.util; + +import cn.hutool.core.util.NumberUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.TypeReference; +import org.apache.commons.codec.binary.Base64; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; + +import java.nio.charset.StandardCharsets; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/7 15:38 + **/ +@Component +public class CBSUtil { + /** + * 集中支付模式 + */ + public static final String CENTRALIZED_PAYMENT_TYPE = "401"; + /** + * 分页查询 最大条数 + */ + public static final int MAX_PAGE_SIZE = 1000; + /** + * 默认分页查询条数 + */ + public static final int DEFAULT_PAGE_SIZE = 100; + /** + * 默认页码 + */ + public static final int DEFAULT_CURRENT_PAGE = 1; + static Logger logger = LogManager.getLogger(CBSUtil.class); + + /** + * 请求参数格式 + */ + public static String TARGET_CONTENT_TYPE = "application/json"; + + /** + * 签名请求头参数名 + */ + public static String SIGN_HEADER_NAME = "X-MBCLOUD-API-SIGN"; + /** + * 时间戳请求头参数名 + */ + public static String TIMESTAMP_HEADER = "X-MBCLOUD-TIMESTAMP"; + + public static String ENCRYPTION_ENABLED_HEADER_NAME = "X-MBCLOUD-ENCRYPTION-ENABLED"; + + public static String X_MBCLOUD_COMPRESS = "X-Mbcloud-Compress"; + + /** + * 请求头token参数名 + */ + public static String AUTHORIZATION = "Authorization"; + + /** + *token前缀 + */ + public static String BEARER = "Bearer "; + + /** + * 财资管理云公钥(平台公钥) + */ + public static String bodyEncryptionKey; + + /** + * 企业私钥(加密) + */ + public static String signEncryptionPrivateKey; + + /** + * 企业私钥(解密) + */ + public static String bodyDecryptionKey; + + /** + * 财资管理云公钥(平台公钥) + */ + @Value("${cbs8.cbs_public_key:}") + public void setBodyEncryptionKey(String bodyEncryptionKey) { + CBSUtil.bodyEncryptionKey = bodyEncryptionKey; + } + /** + * 企业私钥(解密) + */ + @Value("${cbs8.ya_private_key:}") + public void setSignEncryptionPrivateKey(String signEncryptionPrivateKey) { + CBSUtil.signEncryptionPrivateKey = signEncryptionPrivateKey; + } + /** + * 企业私钥(解密) + */ + @Value("${cbs8.ya_private_key:}") + public void setBodyDecryptionKey(String bodyDecryptionKey) { + CBSUtil.bodyDecryptionKey = bodyDecryptionKey; + } + + //将json数组转为list + public static List convertJsonArrayToList(List list, Class clazz) { + String jsonArray = JSON.toJSONString(list); + List result = JSON.parseObject(jsonArray, new TypeReference>(clazz) {}); + return result; + } + + /** + * 将时间戳转换成日期字符串 + * @param timestamp + * @return + */ + public static String convertTimestampToString(String timestamp) { + if (StrUtil.isNotEmpty(timestamp) && NumberUtil.isNumber(timestamp)){ + // 创建SimpleDateFormat对象,指定日期时间格式 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + // 将时间戳转换为Date对象 + Date date = new Date(Long.valueOf(timestamp)); + + // 使用SimpleDateFormat格式化Date对象,得到字符串表示 + return sdf.format(date); + } + return null; + } + + /** + * 签名 + * @param requestData + * @return + */ + public static String sign(String requestData){ + long timestamp = System.currentTimeMillis(); + return sign(requestData,timestamp); + } + + /** + * 签名 + * @param requestData + * @param timestamp + * @return + */ + public static String sign(String requestData,long timestamp){ + + // 请求数据拼接: 报文体+时间戳 + byte[] requestDataBytes = requestData.getBytes(StandardCharsets.UTF_8); + byte[] timestampBytes = ("×tamp=" + timestamp).getBytes(StandardCharsets.UTF_8); + byte[] newBytes = new byte[requestDataBytes.length + timestampBytes.length]; + System.arraycopy(requestDataBytes, 0, newBytes, 0, requestDataBytes.length); + System.arraycopy(timestampBytes, 0, newBytes, requestDataBytes.length, timestampBytes.length); + + // 生成签名 + byte[] signature = SM2Util.sign(signEncryptionPrivateKey, newBytes); + String sign = Base64.encodeBase64String(SM2Util.encodeDERSignature(signature)); + logger.info("签名:{}", sign); + return sign; + } + + /** + * 加密 + * @param requestData + * @return + */ + public static byte[] encrypt(String requestData){ + byte[] encrypt = SM2Util.encrypt(bodyEncryptionKey, requestData.getBytes(StandardCharsets.UTF_8)); + return encrypt; + } + + public static String decrypt(byte[] cipherData){ + try { + byte[] decrypt = SM2Util.decrypt(bodyDecryptionKey, cipherData); + String text = new String(decrypt); + return text; + }catch (Exception e){ + logger.error("解密失败",e); + e.printStackTrace(); + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/util/CbsAccessToken.java b/service/src/main/java/com/hzya/frame/cbs8/util/CbsAccessToken.java new file mode 100644 index 00000000..341af450 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/util/CbsAccessToken.java @@ -0,0 +1,140 @@ +package com.hzya.frame.cbs8.util; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.web.action.ApplicationContextUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.data.relational.core.sql.In; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import java.util.HashMap; +import java.util.Map; + +/** + * @Description cbs token + * @Author xiangerlin + * @Date 2024/6/7 15:56 + **/ +@Component +public class CbsAccessToken { + + private static final Logger logger = LoggerFactory.getLogger(CbsAccessToken.class); + @Value("${cbs8.appId:}") + private String app_id; + @Value("${cbs8.appSecret:}") + private String app_secret; + @Value("${cbs8.url:}") + private String app_url; + + private static String appId; + private static String appSecret; + private static String url; + @PostConstruct + public void init() { + appId = app_id; + appSecret = app_secret; + url = app_url; + } + //刷新token用 + private static final String BEARER = "Bearer "; + /** + * 过期时间 + */ + private Long expiryTime ; + private String token; + + private CbsAccessToken(){ + + } + private static CbsAccessToken cbsAccessToken = new CbsAccessToken(); + + + public static CbsAccessToken getInstance() { + if (null == cbsAccessToken.token){ + initToken(); + }else { + //判断token有没有过期 + if (System.currentTimeMillis() >= cbsAccessToken.expiryTime){ + initToken(); + }else { + refreshToken(); + } + } + return cbsAccessToken; + } + + public static String getToken(){ + return getInstance().token; + } + /** + * 获取token + */ + private static void initToken(){ + CbsAccessToken ct = (CbsAccessToken) ApplicationContextUtil.getBeanByName("cbsAccessToken"); + logger.info("开始获取cbstoken"); + Map param = new HashMap<>(); + param.put("app_id",ct.appId); + param.put("app_secret",ct.appSecret); + param.put("grant_type","client_credentials"); + String res = HttpRequest.post(ct.url+"/openapi/app/v1/app/token").body(JSONObject.toJSONString(param)).execute().body(); + logger.info("获取cbstoken结果",res); + if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){ + JSONObject tokenObject = JSONObject.parseObject(res); + String code = tokenObject.getString("code");//0表示成功 + if ("0".equals(code)){ + JSONObject dataObj = tokenObject.getJSONObject("data"); + if (null != dataObj){ + String token = dataObj.getString("token"); + //过期时间 单位是秒 30分钟有效 + Integer expires = dataObj.getInteger("expires"); + cbsAccessToken.token = token; + //提前5分钟让token失效 所以这里设置成过期时间为当前时间+25分钟 + cbsAccessToken.expiryTime = System.currentTimeMillis()+1000*60*25L; + } + } + } + } + + /** + * 刷新token + */ + private static void refreshToken(){ + CbsAccessToken ct = (CbsAccessToken) ApplicationContextUtil.getBeanByName("cbsAccessToken"); + //token不为空,并且没过期 刷新token + if (null != cbsAccessToken.token && System.currentTimeMillis() < cbsAccessToken.expiryTime ){ + String res = HttpRequest.get(ct.url + "/openapi/app/v1/app/refresh-token").header("Authorization", BEARER + cbsAccessToken.token).execute().body(); + logger.info("刷新cbstoken结果",res); + if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){ + JSONObject tokenObject = JSONObject.parseObject(res); + String code = tokenObject.getString("code");//0表示成功 + if ("0".equals(code)){ + JSONObject dataObj = tokenObject.getJSONObject("data"); + if (null != dataObj){ + //续期的token + String token = dataObj.getString("token"); + //新token过期时间 单位是秒 30分钟有效 + Integer expires = dataObj.getInteger("expires"); + cbsAccessToken.token = token; + //提前5分钟让token失效 所以这里设置成过期时间为当前时间+25分钟 + cbsAccessToken.expiryTime = System.currentTimeMillis()+1000*60*25L; + } + }else { + initToken(); + } + } + }else { + initToken(); + } + } + + public static void main(String[] args) { + System.out.println("第1次取token:"+getToken()); + System.out.println("第2次取token:"+getToken()); + System.out.println("第3次取token:"+getToken()); + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/util/CurrencyEnum.java b/service/src/main/java/com/hzya/frame/cbs8/util/CurrencyEnum.java new file mode 100644 index 00000000..abde767c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/util/CurrencyEnum.java @@ -0,0 +1,137 @@ +package com.hzya.frame.cbs8.util; + +/** + * @Description 币种枚举表 + * @Author xiangerlin + * @Date 2024/6/25 10:20 + **/ +public enum CurrencyEnum { + + CNY("10", "人民币", "CNY", "¥"), + ASF("11", "记帐瑞士法朗", "ASF", "ASF"), + BRL("12", "巴西里亚尔", "BRL", "BRL"), + IDR("13", "印度尼西亚卢比", "IDR", "rps"), + INR("14", "印度卢比", "INR", "rs"), + IRR("15", "伊朗里亚尔", "IRR", "ri"), + JOD("16", "约旦第纳尔", "JOD", "jdr"), + KRW("17", "韩国圆", "KRW", "$"), + KWD("18", "科威特第纳尔", "KWD", "kd"), + MOP("19", "澳门元", "MOP", "pat"), + MXN("20", "墨西哥比索", "MXN", "mex$"), + HKD("21", "港币", "HKD", "HK$"), + MYR("22", "马来西亚林吉特", "MYR", "m$"), + NPR("23", "尼泊尔卢比", "NPR", "nrs"), + NZD("24", "新西兰元", "NZD", "$nz"), + PHP("25", "菲律宾比索", "PHP", "phil"), + PKR("26", "巴基斯坦卢比", "PKR", "prs"), + RUB("27", "俄罗斯卢布", "RUB", "RUB"), + AUD("29", "澳元", "AUD", "A$"), + THB("30", "泰国铢", "THB", "bt"), + TWD("31", "台湾元", "TWD", "$"), + USD("32", "美元", "USD", "US$"), + TZS("33", "坦桑尼亚先令", "TZS", "tsh"), + EUR("35", "欧元", "EUR", "EUR"), + CAD("39", "加拿大元", "CAD", "CAN$"), + GBP("43", "英镑", "GBP", "£"), + JPY("65", "日元", "JPY", "J"), + SGD("69", "新加坡元", "SGD", "S$"), + NOK("83", "挪威克朗", "NOK", "nkr"), + DKK("85", "丹麦克朗", "DKK", "DKr"), + AED("86", "阿联酋迪拉姆", "AED", "AED"), + CHF("87", "瑞士法朗", "CHF", "SF"), + SEK("88", "瑞典克朗", "SEK", "SKR"), + ZAR("89", "南非兰特", "ZAR", "ZAR"), + AOA("71", "安哥拉宽扎", "AOA", "kz"), + DZD("72", "阿尔及利亚第纳尔", "DZD", "AD."), + GHS("73", "塞地", "GHS", "¢"), + KES("74", "肯尼亚先令", "KES", "K.Sh"), + NGN("75", "奈拉", "NGN", "N"), + QAR("76", "卡塔尔里亚尔", "QAR", "QR."), + VND("77", "越南盾", "VND", "D."), + PES("78", "新索尔", "PES", "S/."), + PLZ("79", "兹罗提", "PLZ", "ZL."), + TRY("80", "土耳其镑", "TRY", "£T."), + SAR("81", "亚尔", "SAR", "SAR."), + KZT("82", "哈萨克斯坦腾格", "KZT", "〒"), + CDF("90", "刚果法郎", "CDF", "FC"), + LYD("91", "利比亚第纳尔", "LYD", "LD."), + EGP("92", "埃及镑", "EGP", "£E."), + VEF("93", "委内瑞拉玻利瓦尔", "VEF", "B"), + OMR("94", "阿曼里尔", "OMR", "RO."), + PLN("95", "波兰兹罗提", "PLN", "Zl"), + HUF("96", "匈牙利福林", "HUF", "Ft"), + BDT("97", "孟加拉塔卡", "BDT", "TK"), + LAK("98", "老挝基普", "LAK", "K"), + ZMW("37", "赞比亚克瓦查", "ZMW", "ZM"), + ETB("28", "埃塞俄比亚比尔", "ETB", "Br"), + PRK("34", "巴基斯坦卢比", "PRK", "Rs."), + BND("36", "文莱元", "BND", "B$"), + XOF("38", "西非法郎", "XOF", "XOF"), + PGK("41", "巴布亚新几内亚基纳", "PGK", "PGK"), + LKR("40", "斯里兰卡卢比", "LKR", "LK"), + GNF("46", "几内亚法郎", "GNF", "GNF"), + TND("42", "突尼斯第纳尔", "TND", "TN"), + UZS("44", "乌兹别克斯坦苏姆", "UZS", "UZ"), + XAF("45", "中非法郎", "XAF", "XA"), + SDG("49", "苏丹磅", "SDG", "£S"), + GE("47", "格鲁吉亚拉里", "GEL", "GE"), + MN("48", "蒙图", "MNT", "MN"), + TJS("50", "塔吉克索莫尼", "TJS", "TJS"), + UGX("51", "乌干达先令", "UGX", "UGX"), + CLP("52", "智利比索", "CLP", "CLP"), + MMK("53", "缅元", "MMK", "MMK"), + KHR("54", "柬埔寨瑞尔", "KHR", "KHR"), + BHD("55", "巴林第纳尔", "BHD", "BHD"), + RSD("56", "塞尔维亚第纳尔", "RSD", "RSD"), + KGS("57", "吉尔吉斯斯坦索姆", "KGS", "KGS"), + COP("58", "哥伦比亚比索", "COP", "COP"), + GYD("59", "圭亚那元", "GYD", "GYD"), + ARS("60", "阿根廷比索", "ARS", "ARS"), + CZK("61", "捷克克朗", "CZK", "CZK"), + PEN("62", "秘鲁索尔", "PEN", "PEN"), + RON("63", "罗马尼亚列伊", "RON", "RON"), + UAH("64", "乌克兰格里夫纳", "UAH", "UAH"), + ILS("66", "以色列新谢克尔", "ILS", "ILS"), + IQD("67", "伊拉克第纳尔", "IQD", "IQD"), + ERN("68", "厄立特里亚纳克法", "ERN", "ERN"), + CNH("84", "离岸人民币", "CNH", "CNH"), + MKD("99", "马其顿第纳尔", "MKD", "MKD"); + + private final String code; + private final String chineseName; + private final String internationalCode; + private final String symbol; + + CurrencyEnum(String code, String chineseName, String internationalCode, String symbol) { + this.code = code; + this.chineseName = chineseName; + this.internationalCode = internationalCode; + this.symbol = symbol; + } + + public String getCode() { + return code; + } + + public String getChineseName() { + return chineseName; + } + + public String getInternationalCode() { + return internationalCode; + } + + public String getSymbol() { + return symbol; + } + + //根据币种code获取币种中文名 + public static String getChineseNameByCode(String code) { + for (CurrencyEnum currency : values()) { + if (currency.code.equals(code)) { + return currency.chineseName; + } + } + return null; // 或者抛出异常,表示找不到对应的币种 + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/util/PayState.java b/service/src/main/java/com/hzya/frame/cbs8/util/PayState.java new file mode 100644 index 00000000..0ab494c7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/util/PayState.java @@ -0,0 +1,73 @@ +package com.hzya.frame.cbs8.util; + +/** + * @Author:hecan + * @Description:支付类型(支付状态) + * @params: + * @return: + * @Date: 2023/3/14 15:05 + */ +public enum PayState { + a("a","待提交直联"), + b("b","已提交直联"), + c("c","银行已受理"), + d("d","银行未受理"), + e("e","可疑"), + f("f","待人工确认"), + g("g","支付成功"), + h("h","支付失败"), + i("i","部分成功"), + j("j","退票"), + k("k","取消支付"), + n("n","其他"), + p("p","支付中"), + q("q","待支付"), + one("1","待处理"), + two("2","审批中"), + three("3","处理失败"), + four("4","审批完成"), + five("5","审批撤销"), + six("6","审批拒绝"), + seven("7","待发送审批"), + eight("8","集中受理中"), + nine("9","审批退回"), + ten("10","预处理中"), + eleven("11","预处理拒绝"), + twelve("12","资金监控审批中"); + + + //类型 + private String type; + //值 + private String value; + + PayState(String type, String value){ + this.type=type; + this.value=value; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public static String payStateGetValue(String type){ + for (PayState payState : PayState.values()){ + if(payState.getType()==type||payState.getType().equals(type)){ + return payState.getValue().toString(); + } + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/cbs8/util/SM2Util.java b/service/src/main/java/com/hzya/frame/cbs8/util/SM2Util.java new file mode 100644 index 00000000..46b20936 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/cbs8/util/SM2Util.java @@ -0,0 +1,237 @@ +package com.hzya.frame.cbs8.util; + +import org.bouncycastle.asn1.*; +import org.bouncycastle.crypto.engines.SM2Engine; +import org.bouncycastle.crypto.params.*; +import org.bouncycastle.crypto.signers.SM2Signer; +import org.bouncycastle.jce.ECNamedCurveTable; +import org.bouncycastle.jce.spec.ECParameterSpec; +import org.bouncycastle.math.ec.ECCurve; +import org.bouncycastle.math.ec.ECPoint; +import org.bouncycastle.util.encoders.Hex; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import java.io.ByteArrayInputStream; +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.security.SecureRandom; +import java.util.Base64; +import java.util.Enumeration; + +/** + * @author: xiang2lin + * @time: 2024/6/14 + * @description: SM2加解密工具类 + */ + +public class SM2Util { + static Logger logger = LoggerFactory.getLogger(SM2Util.class); + private SM2Util() { + throw new IllegalStateException("Utility class"); + } + + private static final String STD_NAME = "sm2p256v1"; + + /** + * SM2加密算法 + * + * @param publicKey 公钥 + * @param data 明文数据 + * @return + */ + public static byte[] encrypt(String publicKey, byte[] data) { + ECPublicKeyParameters ecPublicKeyParameters = encodePublicKey(Hex.decode(publicKey)); + SM2Engine engine = new SM2Engine(); + engine.init(true, new ParametersWithRandom(ecPublicKeyParameters, new SecureRandom())); + + byte[] bytes = null; + try { + byte[] cipherText = engine.processBlock(data, 0, data.length); + bytes = C1C2C3ToC1C3C2(cipherText); + } catch (Exception e) { + logger.warn("SM2加密时出现异常:" + e.getMessage()); + } + return bytes; + } + + /** + * SM2解密算法 + * + * @param privateKey 私钥 + * @param cipherData 密文数据 + * @return + */ + public static byte[] decrypt(String privateKey, byte[] cipherData) { + ECPrivateKeyParameters ecPrivateKeyParameters = encodePrivateKey(Hex.decode(privateKey)); + SM2Engine engine = new SM2Engine(); + engine.init(false, ecPrivateKeyParameters); + + byte[] bytes = null; + try { + cipherData = C1C3C2ToC1C2C3(cipherData); + bytes = engine.processBlock(cipherData, 0, cipherData.length); + } catch (Exception e) { + logger.warn("SM2解密时出现异常:" + e.getMessage()); + } + return bytes; + } + + /** + * 签名算法 + * + * @param privateKey 私钥 + * @param data 明文数据 + * @return + */ + public static byte[] sign(String privateKey, byte[] data) { + ECPrivateKeyParameters ecPrivateKeyParameters = encodePrivateKey(hexToByte(privateKey)); + SM2Signer signer = new SM2Signer(); + ParametersWithID parameters = new ParametersWithID(ecPrivateKeyParameters, "1234567812345678".getBytes()); + signer.init(true, parameters); + signer.update(data, 0, data.length); + + byte[] signature = null; + try { + signature = decodeDERSignature(signer.generateSignature()); + } catch (Exception e) { + logger.warn("SM2签名时出现异常:" + e.getMessage()); + } + return signature; + } + + private static byte[] hexToByte(String hex) + throws IllegalArgumentException { + if (hex.length() % 2 != 0) { + throw new IllegalArgumentException(); + } + char[] arr = hex.toCharArray(); + byte[] b = new byte[hex.length() / 2]; + for (int i = 0, j = 0, l = hex.length(); i < l; i++, j++) { + String swap = "" + arr[i++] + arr[i]; + int byteInt = Integer.parseInt(swap, 16) & 0xFF; + b[j] = BigInteger.valueOf(byteInt).byteValue(); + } + return b; + } + + private static byte[] C1C2C3ToC1C3C2(byte[] cipherText) throws Exception { + if (cipherText != null && cipherText.length >= 97) { + byte[] bytes = new byte[cipherText.length]; + System.arraycopy(cipherText, 0, bytes, 0, 65); + System.arraycopy(cipherText, cipherText.length - 32, bytes, 65, 32); + System.arraycopy(cipherText, 65, bytes, 97, cipherText.length - 97); + return bytes; + } else { + throw new Exception("SM2 cipher text error, must be more than 96 bytes and in the format C1||C3||C2."); + } + } + + private static byte[] C1C3C2ToC1C2C3(byte[] cipherText) throws Exception { + if (cipherText != null && cipherText.length >= 97) { + byte[] bytes = new byte[cipherText.length]; + System.arraycopy(cipherText, 0, bytes, 0, 65); + System.arraycopy(cipherText, 97, bytes, 65, cipherText.length - 97); + System.arraycopy(cipherText, 65, bytes, cipherText.length - 32, 32); + return bytes; + } else { + throw new Exception("SM2 cipher text error, must be more than 96 bytes and in the format C1||C3||C2."); + } + } + + private static ECPublicKeyParameters encodePublicKey(byte[] value) { + byte[] x = new byte[32]; + byte[] y = new byte[32]; + System.arraycopy(value, 1, x, 0, 32); + System.arraycopy(value, 33, y, 0, 32); + BigInteger X = new BigInteger(1, x); + BigInteger Y = new BigInteger(1, y); + ECPoint Q = getSM2Curve().createPoint(X, Y); + return new ECPublicKeyParameters(Q, getECDomainParameters()); + } + + private static ECCurve getSM2Curve() { + ECParameterSpec spec = ECNamedCurveTable.getParameterSpec(STD_NAME); + return spec.getCurve(); + } + + private static ECPrivateKeyParameters encodePrivateKey(byte[] value) { + BigInteger d = new BigInteger(1, value); + return new ECPrivateKeyParameters(d, getECDomainParameters()); + } + + private static ECDomainParameters getECDomainParameters() { + ECParameterSpec spec = ECNamedCurveTable.getParameterSpec(STD_NAME); + return new ECDomainParameters(spec.getCurve(), spec.getG(), spec.getN(), spec.getH(), spec.getSeed()); + } + + private static byte[] decodeDERSignature(byte[] signature) { + ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(signature)); + + byte[] bytes = new byte[64]; + try { + ASN1Sequence primitive = (ASN1Sequence) stream.readObject(); + Enumeration enumeration = primitive.getObjects(); + BigInteger R = ((ASN1Integer) enumeration.nextElement()).getValue(); + BigInteger S = ((ASN1Integer) enumeration.nextElement()).getValue(); + byte[] r = format(R.toByteArray()); + byte[] s = format(S.toByteArray()); + System.arraycopy(r, 0, bytes, 0, 32); + System.arraycopy(s, 0, bytes, 32, 32); + } catch (Exception e) { + logger.warn("decodeDERSignature时出现异常:" + e.getMessage()); + } + return bytes; + } + + public static byte[] encodeDERSignature(byte[] signature) { + byte[] r = new byte[32]; + byte[] s = new byte[32]; + System.arraycopy(signature, 0, r, 0, 32); + System.arraycopy(signature, 32, s, 0, 32); + ASN1EncodableVector vector = new ASN1EncodableVector(); + vector.add(new ASN1Integer(new BigInteger(1, r))); + vector.add(new ASN1Integer(new BigInteger(1, s))); + + byte[] encoded = null; + try { + encoded = (new DERSequence(vector)).getEncoded(); + } catch (Exception e) { + logger.warn("encodeDERSignature时出现异常:" + e.getMessage()); + } + return encoded; + } + + private static byte[] format(byte[] value) { + if (value.length == 32) { + return value; + } else { + byte[] bytes = new byte[32]; + if (value.length > 32) { + System.arraycopy(value, value.length - 32, bytes, 0, 32); + } else { + System.arraycopy(value, 0, bytes, 32 - value.length, value.length); + } + return bytes; + } + } + + + public static void main(String[] args) { + String requestData = "hello啊"; + byte[] encrypt = encrypt("0452d60e72f6a3050d2f8e8f4505f874ef345e15da38fda8dd64b9e756b7231c056dff1674c4826ada424cc78ea36fd58afc50bcefb5d721bf25b179efac2ebb17", requestData.getBytes(StandardCharsets.UTF_8)); + String temp = new String(encrypt); + byte[] decrypt = decrypt("c3509b6df8bdaf84c464daa1b6fa11a8fca77b0e4a6f076ee68487f288278a85", encrypt); + System.out.println("解密完成"+new String(decrypt)); + + String encodeToString = Base64.getEncoder().encodeToString(encrypt); + byte[] decode = Base64.getDecoder().decode(encodeToString); + byte[] decrypt1 = decrypt("c3509b6df8bdaf84c464daa1b6fa11a8fca77b0e4a6f076ee68487f288278a85", decode); + System.out.println("解密完成1"+new String(decrypt1)); + + String base64 = "eyJtc2ciOiLns7vnu5/lvILluLjvvIzor7fnqI3lkI7lho3or5UiLCJkYXRhIjpudWxsLCJjb2RlIjoiNTAwIn0="; + byte[] decode1 = Base64.getDecoder().decode(base64); + String decode2 = new String(decode1); + byte[] decryptbyte = decrypt("83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44", decode1); + System.out.println("解密完成"+new String(decryptbyte)); + } +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/enums/OrgEventEnum.java b/service/src/main/java/com/hzya/frame/dingtalk/enums/OrgEventEnum.java new file mode 100644 index 00000000..f01431f0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/enums/OrgEventEnum.java @@ -0,0 +1,48 @@ +package com.hzya.frame.dingtalk.enums; + +/** + * @Description 通讯录事件类型 + * @Author xiangerlin + * @Date 2024/8/27 15:58 + **/ +public enum OrgEventEnum { + USER_ADD_ORG("user_add_org","通讯录用户新增"), + USER_MODIFY_ORG("user_modify_org","通讯录用户更改"), + USER_LEAVE_ORG("user_leave_org","通讯录用户离职"), + USER_ACTIVE_ORG("user_active_org","加入企业后用户激活"), + ORG_DEPT_CREATE("org_dept_create","通讯录企业部门创建"), + ORG_DEPT_MODIFY("org_dept_modify","通讯录企业部门更改"), + ORG_DEPT_REMOVE("org_dept_remove","通讯录企业部门删除"), + ; + + + private String code; + private String explain; + + OrgEventEnum(String code, String explain) { + this.code = code; + this.explain = explain; + } + + public String getCode() { + return code; + } + + public String getExplain() { + return explain; + } + + /** + * 根据code获取事件类型 + * @param code + * @return + */ + public static OrgEventEnum getByCode(String code){ + for (OrgEventEnum org : OrgEventEnum.values()) { + if (org.getCode().equals(code)){ + return org; + } + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkExtService.java b/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkExtService.java new file mode 100644 index 00000000..ffbba432 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkExtService.java @@ -0,0 +1,32 @@ +package com.hzya.frame.dingtalk.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +/** + * @Description 钉钉集成扩展类 + * @Author xiangerlin + * @Date 2024/8/28 14:25 + **/ +public interface IDingTalkExtService { + + /** + * 调用这个方法初始化钉钉参数 + * @param entity + * @return + */ + SysExtensionApiEntity init(SysExtensionApiEntity entity); + + /** + * 查询配置在应用上的钉钉参数 + * @param sysApplication + * @return + */ + JSONObject getDingTalkConfig(SysApplicationEntity sysApplication); + + /** + * 清空配置缓存 + */ + void clearDingTalkConfigCatch(); +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkService.java b/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkService.java new file mode 100644 index 00000000..8429bc1c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/service/IDingTalkService.java @@ -0,0 +1,66 @@ +package com.hzya.frame.dingtalk.service; + +import com.dingtalk.api.request.OapiV2UserListRequest; +import com.dingtalk.api.response.OapiV2DepartmentGetResponse; +import com.dingtalk.api.response.OapiV2DepartmentListsubResponse; +import com.dingtalk.api.response.OapiV2UserGetResponse; +import com.dingtalk.api.response.OapiV2UserListResponse; + +import java.util.List; + +/** + * @Description 钉钉service + * @Author xiangerlin + * @Date 2024/8/27 16:17 + **/ +public interface IDingTalkService { + + /** + * 根据userid获取用户详情 + * @param userId 钉钉userid + * @param appKey + * @param appSecret + * @return + */ + OapiV2UserGetResponse.UserGetResponse getUserById(String userId,String appKey,String appSecret); + + /** + * 根据userid获取用户详情 + * @param userId + * @return + */ + OapiV2UserGetResponse.UserGetResponse getUserById(String userId); + + /** + * 获取部门用户列表 + * @param req 请求参数 + * @param appKey + * @param appSecret + * @return + */ + OapiV2UserListResponse.PageResult getUserListByDeptId(OapiV2UserListRequest req, String appKey, String appSecret); + /** + * 根据部门id获取部门详情 + * @param deptId 钉钉部门id + * @param appKey + * @param appSecret + * @return + */ + OapiV2DepartmentGetResponse.DeptGetResponse getDeptById(Long deptId,String appKey,String appSecret); + + /** + * 根据部门id获取部门详情 + * @param deptId + * @return + */ + OapiV2DepartmentGetResponse.DeptGetResponse getDeptById(Long deptId); + + /** + * 获取部门列表,此接口只会返回下一级部门信息 + * @param deptId 部门id,如果不传则查询一级部门 + * @param appKey + * @param appSecret + * @return + */ + List getDeptList(Long deptId,String appKey,String appSecret); +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkExtServiceImpl.java b/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkExtServiceImpl.java new file mode 100644 index 00000000..61dc97fa --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkExtServiceImpl.java @@ -0,0 +1,100 @@ +package com.hzya.frame.dingtalk.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.dingtalk.service.IDingTalkExtService; +import com.hzya.frame.dingtalk.util.DingTalkAccessToken; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; +import com.hzya.frame.sysnew.application.apiPara.dao.ISysApplicationApiParaDao; +import com.hzya.frame.sysnew.application.apiPara.entity.SysApplicationApiParaEntity; +import com.hzya.frame.sysnew.application.apiPara.service.ISysApplicationApiParaService; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * @Description 钉钉集成扩展类 + * @Author xiangerlin + * @Date 2024/8/28 14:25 + **/ +@Service +public class DingTalkExtServiceImpl implements IDingTalkExtService { + + + @Resource + private ISysApplicationApiParaDao sysApplicationApiParaDao; + private final ConcurrentHashMap dingTalkMap = new ConcurrentHashMap<>(); + /** + * 调用这个方法初始化钉钉参数 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity init(SysExtensionApiEntity entity) { + Map headers = entity.getHeaders(); + if (null == headers){ + headers = new HashMap<>(); + } + SysApplicationEntity receiveApp = entity.getReceiveApp(); + //查询应用上配置的参数 + JSONObject dingTalkConfig = getDingTalkConfig(receiveApp); + //给token赋值 + entity.setQuerys("access_token="+DingTalkAccessToken.getAccessToken(dingTalkConfig.getString("appKey"),dingTalkConfig.getString("appSecret"))); + return entity; + } + + /** + * 查询配置在应用上的钉钉参数 + * + * @param sysApplication + * @return + */ + @Override + public JSONObject getDingTalkConfig(SysApplicationEntity sysApplication) { + if (null != sysApplication && StrUtil.isNotEmpty(sysApplication.getId()) && null != sysApplication.getAppId()){ + JSONObject jsonObject = new JSONObject(); + String key = sysApplication.getAppId()+"dingTalk"; + if (null != dingTalkMap.get(key)){ + return dingTalkMap.get(key); + }else { + //查询应用上配置的参数 + SysApplicationApiParaEntity paraEntity = new SysApplicationApiParaEntity(); + paraEntity.setAppId(sysApplication.getId()); + List paraList = sysApplicationApiParaDao.query(paraEntity); + if (CollectionUtils.isNotEmpty(paraList)) { + List appKeyList = paraList.stream().filter(p -> p.getInterfaceKey().equals("appKey")).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(appKeyList)) { + jsonObject.put("appKey", appKeyList.get(0).getInterfaceValue()); + } + List appSecretList = paraList.stream().filter(p -> p.getInterfaceKey().equals("appSecret")).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(appSecretList)) { + jsonObject.put("appSecret", appSecretList.get(0).getInterfaceValue()); + } + dingTalkMap.put(key,jsonObject); + return dingTalkMap.get(key); + } + } + } + return null; + } + + /** + * 清空配置缓存 + */ + @Override + public void clearDingTalkConfigCatch() { + dingTalkMap.clear(); + } +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkServiceImpl.java b/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkServiceImpl.java new file mode 100644 index 00000000..89b4bd3e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/service/impl/DingTalkServiceImpl.java @@ -0,0 +1,164 @@ +package com.hzya.frame.dingtalk.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.dingtalk.api.DefaultDingTalkClient; +import com.dingtalk.api.DingTalkClient; +import com.dingtalk.api.request.OapiV2DepartmentGetRequest; +import com.dingtalk.api.request.OapiV2DepartmentListsubRequest; +import com.dingtalk.api.request.OapiV2UserGetRequest; +import com.dingtalk.api.request.OapiV2UserListRequest; +import com.dingtalk.api.response.OapiV2DepartmentGetResponse; +import com.dingtalk.api.response.OapiV2DepartmentListsubResponse; +import com.dingtalk.api.response.OapiV2UserGetResponse; +import com.dingtalk.api.response.OapiV2UserListResponse; +import com.hzya.frame.dingtalk.service.IDingTalkService; +import com.hzya.frame.dingtalk.util.DingTalkAccessToken; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @Description 钉钉service + * @Author xiangerlin + * @Date 2024/8/27 16:17 + **/ +@Service +public class DingTalkServiceImpl implements IDingTalkService { + Logger logger = LoggerFactory.getLogger(getClass()); + @Value("${dingtalk.appKey:}") + private String dAppKey; + @Value("${dingtalk.appSecret:}") + private String dAppSecret; + + + /** + * 根据userid获取用户详情 + * + * @param userId 钉钉userid + * @param appKey + * @param appSecret + * @return + */ + @Override + public OapiV2UserGetResponse.UserGetResponse getUserById(String userId, String appKey, String appSecret) { + DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/v2/user/get"); + OapiV2UserGetRequest req = new OapiV2UserGetRequest(); + req.setUserid(userId); + req.setLanguage("zh_CN"); + try { + OapiV2UserGetResponse rsp = client.execute(req, DingTalkAccessToken.getAccessToken(appKey,appSecret)); + if (rsp.isSuccess()){ + OapiV2UserGetResponse.UserGetResponse result = rsp.getResult(); + String s = JSONObject.toJSONString(result); + logger.info("人员详情信息:{}",s); + return result; + } + }catch (Exception e){ + logger.error("根据部门id获取钉钉用户详情出错:{}",e); + } + return null; + } + + /** + * 根据userid获取用户详情 + * + * @param userId + * @return + */ + @Override + public OapiV2UserGetResponse.UserGetResponse getUserById(String userId) { + return getUserById(userId,dAppKey,dAppSecret); + } + + /** + * 获取部门用户列表 + * + * @param req 请求参数 + * @param appKey + * @param appSecret + * @return + */ + @Override + public OapiV2UserListResponse.PageResult getUserListByDeptId(OapiV2UserListRequest req, String appKey, String appSecret) { + try { + DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/v2/user/list"); + req.setSize(100L);//每页最大只能查100条 + req.setOrderField("modify_desc"); + req.setContainAccessLimit(false); + req.setLanguage("zh_CN"); + OapiV2UserListResponse rsp = client.execute(req, DingTalkAccessToken.getAccessToken(appKey,appSecret)); + OapiV2UserListResponse.PageResult result = rsp.getResult(); + return result; + }catch (Exception e){ + e.printStackTrace(); + } + return null; + } + + /** + * 根据部门id获取部门详情 + * + * @param deptId 钉钉部门id + * @param appKey + * @param appSecret + * @return + */ + @Override + public OapiV2DepartmentGetResponse.DeptGetResponse getDeptById(Long deptId, String appKey, String appSecret) { + DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/v2/department/get"); + OapiV2DepartmentGetRequest req = new OapiV2DepartmentGetRequest(); + req.setDeptId(deptId); + req.setLanguage("zh_CN"); + try { + OapiV2DepartmentGetResponse rsp = client.execute(req, DingTalkAccessToken.getAccessToken(appKey,appSecret)); + if (rsp.isSuccess()){ + OapiV2DepartmentGetResponse.DeptGetResponse result = rsp.getResult(); + String s = JSONObject.toJSONString(result); + logger.info("部门详情信息:{}",s); + return result; + } + }catch(Exception e){ + logger.error("根据部门id获取钉钉部门出错:{}",e); + } + return null; + } + + /** + * 根据部门id获取部门详情 + * + * @param deptId + * @return + */ + @Override + public OapiV2DepartmentGetResponse.DeptGetResponse getDeptById(Long deptId) { + return getDeptById(deptId,dAppKey,dAppSecret); + } + + /** + * 获取部门列表,此接口只会返回下一级部门信息 + * @param deptId 部门id,如果不传则查询一级部门 + * @param appKey + * @param appSecret + * @return + */ + @Override + public List getDeptList(Long deptId,String appKey,String appSecret) { + try { + DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/v2/department/listsub"); + OapiV2DepartmentListsubRequest req = new OapiV2DepartmentListsubRequest(); + req.setDeptId(deptId); + req.setLanguage("zh_CN"); + OapiV2DepartmentListsubResponse rsp = client.execute(req, DingTalkAccessToken.getAccessToken(appKey,appSecret)); + if (rsp.isSuccess()){ + List result = rsp.getResult(); + return result; + } + }catch (Exception e){ + logger.error("获取部门列表接口出错:{}",e); + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/dingtalk/util/DingTalkAccessToken.java b/service/src/main/java/com/hzya/frame/dingtalk/util/DingTalkAccessToken.java new file mode 100644 index 00000000..eb951180 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/dingtalk/util/DingTalkAccessToken.java @@ -0,0 +1,103 @@ +package com.hzya.frame.dingtalk.util; + +import cn.hutool.core.util.StrUtil; +import com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenResponse; +import com.aliyun.tea.TeaException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; + +import java.time.Instant; + +/** + * @Description 钉钉获取accessToken + * @Author xiangerlin + * @Date 2024/8/27 14:05 + **/ +public class DingTalkAccessToken { + static Logger logger = LoggerFactory.getLogger(DingTalkAccessToken.class); + //token + private static String accessToken; + //过期时间 + private static Instant expireTime; + private static final Long CACHE_EXPIRY_TIME = 7000L; // 缓存有效时间(秒) + //应用key + private static String appKey; + //应用密钥 + private static String appSecret; + @Value("${dingtalk.appKey:}") + public static void setAppKey(String appKey) { + DingTalkAccessToken.appKey = appKey; + } + @Value("${dingtalk.appSecret:}") + public static void setAppSecret(String appSecret) { + DingTalkAccessToken.appSecret = appSecret; + } + + /** + * 获取token + * @return + */ + public static String getAccessToken(){ + return getAccessToken(appKey,appSecret); + } + /** + * 获取accessToken + * + * @param appKey + * @param appSecret + * @return + */ + public static String getAccessToken(String appKey,String appSecret) { + //判断是否过期 如果没过期直接返回 + if (null != accessToken && expireTime != null && Instant.now().isBefore(expireTime)) { + return accessToken; + } + //获取新的accessToken + accessToken = fetchNewAccessToken(appKey,appSecret); + //过期时间设置成当前事件+7000s,预留200s的时间 + expireTime = Instant.now().plusSeconds(CACHE_EXPIRY_TIME); + return accessToken; + } + + /** + * 获取新的accessToken + * + * @return + */ + private static String fetchNewAccessToken(String appKey,String appSecret) { + try { + //查询应用上配置的钉钉信息 + if (StrUtil.isNotEmpty(appKey) && StrUtil.isNotEmpty(appSecret)) { + //查询应用上的信息 + com.aliyun.dingtalkoauth2_1_0.Client client = DingTalkAccessToken.createClient(); + com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenRequest getAccessTokenRequest = new com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenRequest() + .setAppKey(appKey) + .setAppSecret(appSecret); + GetAccessTokenResponse accessToken = client.getAccessToken(getAccessTokenRequest); + String accessToken1 = accessToken.getBody().getAccessToken(); + return accessToken1; + } + } catch (Exception _err) { + TeaException err = new TeaException(_err.getMessage(), _err); + if (!com.aliyun.teautil.Common.empty(err.code) && !com.aliyun.teautil.Common.empty(err.message)) { + // err 中含有 code 和 message 属性,可帮助开发定位问题 + } + logger.error("获取钉钉token出错:{}", _err); + } + return null; + } + + /** + * 使用 Token 初始化账号Client + * + * @return Client + * @throws Exception + */ + private static com.aliyun.dingtalkoauth2_1_0.Client createClient() throws Exception { + com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config(); + config.protocol = "https"; + config.regionId = "central"; + return new com.aliyun.dingtalkoauth2_1_0.Client(config); + } +} diff --git a/service/src/main/java/com/hzya/frame/excel/template/dao/IExcelTemplateDao.java b/service/src/main/java/com/hzya/frame/excel/template/dao/IExcelTemplateDao.java new file mode 100644 index 00000000..0ba1ac03 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/dao/IExcelTemplateDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.excel.template.dao; + +import com.hzya.frame.excel.template.entity.ExcelTemplateEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * excel模版表(excel_template: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:42:49 + */ +public interface IExcelTemplateDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/template/dao/impl/ExcelTemplateDaoImpl.java b/service/src/main/java/com/hzya/frame/excel/template/dao/impl/ExcelTemplateDaoImpl.java new file mode 100644 index 00000000..2427d9cc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/dao/impl/ExcelTemplateDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.excel.template.dao.impl; + +import com.hzya.frame.excel.template.entity.ExcelTemplateEntity; +import com.hzya.frame.excel.template.dao.IExcelTemplateDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * excel模版表(ExcelTemplate)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:42:50 + */ +@Repository(value = "ExcelTemplateDaoImpl") +public class ExcelTemplateDaoImpl extends MybatisGenericDao implements IExcelTemplateDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.java b/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.java new file mode 100644 index 00000000..015df9bb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.java @@ -0,0 +1,76 @@ +package com.hzya.frame.excel.template.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * excel模版表(ExcelTemplate)实体类 + * + * @author makejava + * @since 2024-08-12 16:42:50 + */ +public class ExcelTemplateEntity extends BaseEntity { + + /** 模版名称 */ + private String templateName; + /** 应用id */ + private String appId; + /** 模版编码 */ + private String templateCode; + /** 绑定菜单 */ + private String menuBind; + /** 菜单按钮 */ + private String menuButton; + /** 公司id */ + private String companyId; + + + public String getTemplateName() { + return templateName; + } + + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getTemplateCode() { + return templateCode; + } + + public void setTemplateCode(String templateCode) { + this.templateCode = templateCode; + } + + public String getMenuBind() { + return menuBind; + } + + public void setMenuBind(String menuBind) { + this.menuBind = menuBind; + } + + public String getMenuButton() { + return menuButton; + } + + public void setMenuButton(String menuButton) { + this.menuButton = menuButton; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.xml b/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.xml new file mode 100644 index 00000000..91ab557a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/entity/ExcelTemplateEntity.xml @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + template_name + ,app_id + ,template_code + ,menu_bind + ,menu_button + ,sorts + ,id + ,create_user_id + ,create_time + ,modify_time + ,modify_user_id + ,org_id + ,company_id + ,sts + + + + + + + + + + + + + + + + + + + insert into excel_template( + + template_name , + app_id , + template_code , + menu_bind , + menu_button , + sorts , + id , + create_user_id , + create_time , + modify_time , + modify_user_id , + org_id , + company_id , + sts , + sts, + + )values( + + #{templateName} , + #{appId} , + #{templateCode} , + #{menuBind} , + #{menuButton} , + #{sorts} , + #{id} , + #{create_user_id} , + #{create_time} , + #{modify_time} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{sts} , + 'Y', + + ) + + + + insert into excel_template(template_name, app_id, template_code, menu_bind, menu_button, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts, sts) + values + + (#{entity.templateName},#{entity.appId},#{entity.templateCode},#{entity.menuBind},#{entity.menuButton},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}, 'Y') + + + + + insert into excel_template(template_name, app_id, template_code, menu_bind, menu_button, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.templateName},#{entity.appId},#{entity.templateCode},#{entity.menuBind},#{entity.menuButton},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}) + + on duplicate key update + template_name = values(template_name), + app_id = values(app_id), + template_code = values(template_code), + menu_bind = values(menu_bind), + menu_button = values(menu_button), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + +update excel_template set + + template_name = #{templateName}, + app_id = #{appId}, + template_code = #{templateCode}, + menu_bind = #{menuBind}, + menu_button = #{menuButton}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + org_id = #{org_id}, + company_id = #{companyId}, + sts = #{sts}, + +where sorts = #{sorts} + + + +update excel_template set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where sorts = #{sorts} + + + +update excel_template set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and template_name = #{templateName} + and app_id = #{appId} + and template_code = #{templateCode} + and menu_bind = #{menuBind} + and menu_button = #{menuButton} + and sorts = #{sorts} + and id = #{id} + and company_id = #{companyId} + and sts = #{sts} + and sts='Y' + + + + + delete from excel_template where sorts = #{sorts} + + + + diff --git a/service/src/main/java/com/hzya/frame/excel/template/service/IExcelTemplateService.java b/service/src/main/java/com/hzya/frame/excel/template/service/IExcelTemplateService.java new file mode 100644 index 00000000..ad8671d1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/service/IExcelTemplateService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.excel.template.service; + +import com.hzya.frame.excel.template.entity.ExcelTemplateEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * excel模版表(ExcelTemplate)表服务接口 + * + * @author makejava + * @since 2024-08-12 16:42:50 + */ +public interface IExcelTemplateService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/excel/template/service/impl/ExcelTemplateServiceImpl.java b/service/src/main/java/com/hzya/frame/excel/template/service/impl/ExcelTemplateServiceImpl.java new file mode 100644 index 00000000..f73a486c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/template/service/impl/ExcelTemplateServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.excel.template.service.impl; + +import com.hzya.frame.excel.template.entity.ExcelTemplateEntity; +import com.hzya.frame.excel.template.dao.IExcelTemplateDao; +import com.hzya.frame.excel.template.service.IExcelTemplateService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * excel模版表(ExcelTemplate)表服务实现类 + * + * @author makejava + * @since 2024-08-12 16:42:50 + */ +@Service(value = "excelTemplateService") +public class ExcelTemplateServiceImpl extends BaseService implements IExcelTemplateService { + + private IExcelTemplateDao excelTemplateDao; + + @Autowired + public void setExcelTemplateDao(IExcelTemplateDao dao) { + this.excelTemplateDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/IExcelTemplateConfigDao.java b/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/IExcelTemplateConfigDao.java new file mode 100644 index 00000000..ef72b230 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/IExcelTemplateConfigDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.excel.templateConfig.dao; + +import com.hzya.frame.excel.templateConfig.entity.ExcelTemplateConfigEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * excel模版配置表(excel_template_config: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:43:38 + */ +public interface IExcelTemplateConfigDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/impl/ExcelTemplateConfigDaoImpl.java b/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/impl/ExcelTemplateConfigDaoImpl.java new file mode 100644 index 00000000..ea9afd4e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/dao/impl/ExcelTemplateConfigDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.excel.templateConfig.dao.impl; + +import com.hzya.frame.excel.templateConfig.entity.ExcelTemplateConfigEntity; +import com.hzya.frame.excel.templateConfig.dao.IExcelTemplateConfigDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * excel模版配置表(ExcelTemplateConfig)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:43:38 + */ +@Repository(value = "ExcelTemplateConfigDaoImpl") +public class ExcelTemplateConfigDaoImpl extends MybatisGenericDao implements IExcelTemplateConfigDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.java b/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.java new file mode 100644 index 00000000..f75acdab --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.java @@ -0,0 +1,66 @@ +package com.hzya.frame.excel.templateConfig.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * excel模版配置表(ExcelTemplateConfig)实体类 + * + * @author makejava + * @since 2024-08-12 16:43:38 + */ +public class ExcelTemplateConfigEntity extends BaseEntity { + + /** 模版id */ + private String templateId; + /** 类型(数据库表/语句) */ + private String type; + /** 表类型(主表/明细) */ + private String tableType; + /** 数据字典id */ + private String dataDictionaryId; + /** 公司id */ + private String companyId; + + + public String getTemplateId() { + return templateId; + } + + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getTableType() { + return tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public String getDataDictionaryId() { + return dataDictionaryId; + } + + public void setDataDictionaryId(String dataDictionaryId) { + this.dataDictionaryId = dataDictionaryId; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.xml b/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.xml new file mode 100644 index 00000000..40f7605f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/entity/ExcelTemplateConfigEntity.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + template_id + ,type + ,table_type + ,data_dictionary_id + ,sorts + ,id + ,create_user_id + ,create_time + ,modify_time + ,modify_user_id + ,org_id + ,company_id + ,sts + + + + + + + + + + + + + + + + insert into excel_template_config( + + template_id , + type , + table_type , + data_dictionary_id , + sorts , + id , + create_user_id , + create_time , + modify_time , + modify_user_id , + org_id , + company_id , + sts , + sts, + + )values( + + #{templateId} , + #{type} , + #{tableType} , + #{dataDictionaryId} , + #{sorts} , + #{id} , + #{create_user_id} , + #{create_time} , + #{modify_time} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{sts} , + 'Y', + + ) + + + + insert into excel_template_config(template_id, type, table_type, data_dictionary_id, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts, sts) + values + + (#{entity.templateId},#{entity.type},#{entity.tableType},#{entity.dataDictionaryId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}, 'Y') + + + + + insert into excel_template_config(template_id, type, table_type, data_dictionary_id, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.templateId},#{entity.type},#{entity.tableType},#{entity.dataDictionaryId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}) + + on duplicate key update + template_id = values(template_id), + type = values(type), + table_type = values(table_type), + data_dictionary_id = values(data_dictionary_id), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + +update excel_template_config set + + template_id = #{templateId}, + type = #{type}, + table_type = #{tableType}, + data_dictionary_id = #{dataDictionaryId}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + org_id = #{org_id}, + company_id = #{companyId}, + sts = #{sts}, + +where sorts = #{sorts} + + + +update excel_template_config set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where sorts = #{sorts} + + + +update excel_template_config set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and template_id = #{templateId} + and type = #{type} + and table_type = #{tableType} + and data_dictionary_id = #{dataDictionaryId} + and sorts = #{sorts} + and id = #{id} + and company_id = #{companyId} + and sts = #{sts} + and sts='Y' + + + + + delete from excel_template_config where sorts = #{sorts} + + + + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/service/IExcelTemplateConfigService.java b/service/src/main/java/com/hzya/frame/excel/templateConfig/service/IExcelTemplateConfigService.java new file mode 100644 index 00000000..2f690a33 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/service/IExcelTemplateConfigService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.excel.templateConfig.service; + +import com.hzya.frame.excel.templateConfig.entity.ExcelTemplateConfigEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * excel模版配置表(ExcelTemplateConfig)表服务接口 + * + * @author makejava + * @since 2024-08-12 16:43:38 + */ +public interface IExcelTemplateConfigService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfig/service/impl/ExcelTemplateConfigServiceImpl.java b/service/src/main/java/com/hzya/frame/excel/templateConfig/service/impl/ExcelTemplateConfigServiceImpl.java new file mode 100644 index 00000000..72147b38 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfig/service/impl/ExcelTemplateConfigServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.excel.templateConfig.service.impl; + +import com.hzya.frame.excel.templateConfig.entity.ExcelTemplateConfigEntity; +import com.hzya.frame.excel.templateConfig.dao.IExcelTemplateConfigDao; +import com.hzya.frame.excel.templateConfig.service.IExcelTemplateConfigService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * excel模版配置表(ExcelTemplateConfig)表服务实现类 + * + * @author makejava + * @since 2024-08-12 16:43:38 + */ +@Service(value = "excelTemplateConfigService") +public class ExcelTemplateConfigServiceImpl extends BaseService implements IExcelTemplateConfigService { + + private IExcelTemplateConfigDao excelTemplateConfigDao; + + @Autowired + public void setExcelTemplateConfigDao(IExcelTemplateConfigDao dao) { + this.excelTemplateConfigDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/IExcelTemplateConfigDetailDao.java b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/IExcelTemplateConfigDetailDao.java new file mode 100644 index 00000000..ade61d52 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/IExcelTemplateConfigDetailDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.excel.templateConfigDetial.dao; + +import com.hzya.frame.excel.templateConfigDetial.entity.ExcelTemplateConfigDetailEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * excel模版配置明细表(excel_template_config_detail: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-13 08:39:02 + */ +public interface IExcelTemplateConfigDetailDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/impl/ExcelTemplateConfigDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/impl/ExcelTemplateConfigDetailDaoImpl.java new file mode 100644 index 00000000..60b4ff82 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/dao/impl/ExcelTemplateConfigDetailDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.excel.templateConfigDetial.dao.impl; + +import com.hzya.frame.excel.templateConfigDetial.entity.ExcelTemplateConfigDetailEntity; +import com.hzya.frame.excel.templateConfigDetial.dao.IExcelTemplateConfigDetailDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * excel模版配置明细表(ExcelTemplateConfigDetail)表数据库访问层 + * + * @author makejava + * @since 2024-08-13 08:39:02 + */ +@Repository(value = "ExcelTemplateConfigDetailDaoImpl") +public class ExcelTemplateConfigDetailDaoImpl extends MybatisGenericDao implements IExcelTemplateConfigDetailDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.java b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.java new file mode 100644 index 00000000..0119a934 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.java @@ -0,0 +1,96 @@ +package com.hzya.frame.excel.templateConfigDetial.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * excel模版配置明细表(ExcelTemplateConfigDetail)实体类 + * + * @author makejava + * @since 2024-08-13 08:39:02 + */ +public class ExcelTemplateConfigDetailEntity extends BaseEntity { + + /** 字段名称 */ + private String fieldName; + /** 字段编码 */ + private String fieldCode; + /** 字段类型 */ + private String fieldType; + /** 应用数据字典明细表id */ + private String dictionaryDetailId; + /** 显示名称 */ + private String showName; + /** 序号 */ + private Long templateSort; + /** 开关 */ + private String templateSwitch; + /** 公司id */ + private String companyId; + + + public String getFieldName() { + return fieldName; + } + + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + public String getFieldCode() { + return fieldCode; + } + + public void setFieldCode(String fieldCode) { + this.fieldCode = fieldCode; + } + + public String getFieldType() { + return fieldType; + } + + public void setFieldType(String fieldType) { + this.fieldType = fieldType; + } + + public String getDictionaryDetailId() { + return dictionaryDetailId; + } + + public void setDictionaryDetailId(String dictionaryDetailId) { + this.dictionaryDetailId = dictionaryDetailId; + } + + public String getShowName() { + return showName; + } + + public void setShowName(String showName) { + this.showName = showName; + } + + public Long getTemplateSort() { + return templateSort; + } + + public void setTemplateSort(Long templateSort) { + this.templateSort = templateSort; + } + + public String getTemplateSwitch() { + return templateSwitch; + } + + public void setTemplateSwitch(String templateSwitch) { + this.templateSwitch = templateSwitch; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.xml b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.xml new file mode 100644 index 00000000..abcd07b0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/entity/ExcelTemplateConfigDetailEntity.xml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + + + + + + + + + + field_name + ,field_code + ,field_type + ,dictionary_detail_id + ,show_name + ,template_sort + ,template_switch + ,sorts + ,id + ,create_user_id + ,create_time + ,modify_time + ,modify_user_id + ,org_id + ,company_id + ,sts + + + + + + + + + + + + + + + + insert into excel_template_config_detail( + + field_name , + field_code , + field_type , + dictionary_detail_id , + show_name , + template_sort , + template_switch , + sorts , + id , + create_user_id , + create_time , + modify_time , + modify_user_id , + org_id , + company_id , + sts , + sorts, + sts, + + )values( + + #{fieldName} , + #{fieldCode} , + #{fieldType} , + #{dictionaryDetailId} , + #{showName} , + #{templateSort} , + #{templateSwitch} , + #{sorts} , + #{id} , + #{create_user_id} , + #{create_time} , + #{modify_time} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{sts} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from excel_template_config_detail a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into excel_template_config_detail(field_name, field_code, field_type, dictionary_detail_id, show_name, template_sort, template_switch, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts, sts) + values + + (#{entity.fieldName},#{entity.fieldCode},#{entity.fieldType},#{entity.dictionaryDetailId},#{entity.showName},#{entity.templateSort},#{entity.templateSwitch},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}, 'Y') + + + + + insert into excel_template_config_detail(field_name, field_code, field_type, dictionary_detail_id, show_name, template_sort, template_switch, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.fieldName},#{entity.fieldCode},#{entity.fieldType},#{entity.dictionaryDetailId},#{entity.showName},#{entity.templateSort},#{entity.templateSwitch},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}) + + on duplicate key update + field_name = values(field_name), + field_code = values(field_code), + field_type = values(field_type), + dictionary_detail_id = values(dictionary_detail_id), + show_name = values(show_name), + template_sort = values(template_sort), + template_switch = values(template_switch), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + +update excel_template_config_detail set + + field_name = #{fieldName}, + field_code = #{fieldCode}, + field_type = #{fieldType}, + dictionary_detail_id = #{dictionaryDetailId}, + show_name = #{showName}, + template_sort = #{templateSort}, + template_switch = #{templateSwitch}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + org_id = #{org_id}, + company_id = #{companyId}, + sts = #{sts}, + +where sorts = #{sorts} + + + +update excel_template_config_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where sorts = #{sorts} + + + +update excel_template_config_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and field_name = #{fieldName} + and field_code = #{fieldCode} + and field_type = #{fieldType} + and dictionary_detail_id = #{dictionaryDetailId} + and show_name = #{showName} + and template_sort = #{templateSort} + and template_switch = #{templateSwitch} + and sorts = #{sorts} + and id = #{id} + and company_id = #{companyId} + and sts = #{sts} + and sts='Y' + + + + + delete from excel_template_config_detail where sorts = #{sorts} + + + + diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/IExcelTemplateConfigDetailService.java b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/IExcelTemplateConfigDetailService.java new file mode 100644 index 00000000..746ee7fc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/IExcelTemplateConfigDetailService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.excel.templateConfigDetial.service; + +import com.hzya.frame.excel.templateConfigDetial.entity.ExcelTemplateConfigDetailEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * excel模版配置明细表(ExcelTemplateConfigDetail)表服务接口 + * + * @author makejava + * @since 2024-08-13 08:39:02 + */ +public interface IExcelTemplateConfigDetailService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/impl/ExcelTemplateConfigDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/impl/ExcelTemplateConfigDetailServiceImpl.java new file mode 100644 index 00000000..51e02292 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/excel/templateConfigDetial/service/impl/ExcelTemplateConfigDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.excel.templateConfigDetial.service.impl; + +import com.hzya.frame.excel.templateConfigDetial.entity.ExcelTemplateConfigDetailEntity; +import com.hzya.frame.excel.templateConfigDetial.dao.IExcelTemplateConfigDetailDao; +import com.hzya.frame.excel.templateConfigDetial.service.IExcelTemplateConfigDetailService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * excel模版配置明细表(ExcelTemplateConfigDetail)表服务实现类 + * + * @author makejava + * @since 2024-08-13 08:39:02 + */ +@Service(value = "excelTemplateConfigDetailService") +public class ExcelTemplateConfigDetailServiceImpl extends BaseService implements IExcelTemplateConfigDetailService { + + private IExcelTemplateConfigDetailDao excelTemplateConfigDetailDao; + + @Autowired + public void setExcelTemplateConfigDetailDao(IExcelTemplateConfigDetailDao dao) { + this.excelTemplateConfigDetailDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/IAcctVouchInfoDao.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/IAcctVouchInfoDao.java new file mode 100644 index 00000000..f1fd76b2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/IAcctVouchInfoDao.java @@ -0,0 +1,19 @@ +package com.hzya.frame.grpU8.acctVouchInfo.dao; + +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo; + +import java.util.List; + +/** + * 子表(acct_vouch_info: table)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +public interface IAcctVouchInfoDao extends IBaseDao { + + List queryData(AcctVouchInfoEntity entity); +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/impl/AcctVouchInfoDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/impl/AcctVouchInfoDaoImpl.java new file mode 100644 index 00000000..cfbf3b6b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/dao/impl/AcctVouchInfoDaoImpl.java @@ -0,0 +1,31 @@ +package com.hzya.frame.grpU8.acctVouchInfo.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.grpU8.acctVouchInfo.dao.IAcctVouchInfoDao; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * 子表(AcctVouchInfo)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +@Repository(value = "AcctVouchInfoDaoImpl") +public class AcctVouchInfoDaoImpl extends MybatisGenericDao implements IAcctVouchInfoDao { + + @DS("#entity.dataSourceCode") + @Override + public List queryData(AcctVouchInfoEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryData", entity); + return o; + } + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.java new file mode 100644 index 00000000..8af372bb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.java @@ -0,0 +1,194 @@ +package com.hzya.frame.grpU8.acctVouchInfo.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 子表(AcctVouchInfo)实体类 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +public class AcctVouchInfoEntity extends BaseEntity { + + /** 年度 */ + private String acct_year; + /** 月份 */ + private String acct_month; + /** 科室编码 */ + private String dept_code; + /** 科室名称 */ + private String dept_name; + /** 会计科目编码 */ + private String acct_subj_code; + /** 会计科目名称 */ + private String acct_subj_name; + /** 辅助核算项编码 */ + private String check_type_code; + /** 辅助核算项名称 */ + private String check_type_name; + /** 借贷方向 */ + private String direction; + /** 金额 */ + private Double amount; + /** 资金来源编码 */ + private String fund_source_code; + /** 凭证号 */ + private String vouch_no; + /** 摘要 */ + private String summary; + /** 记账人 */ + private String bookkeeper; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getAcct_year() { + return acct_year; + } + + public void setAcct_year(String acct_year) { + this.acct_year = acct_year; + } + + public String getAcct_month() { + return acct_month; + } + + public void setAcct_month(String acct_month) { + this.acct_month = acct_month; + } + + public String getDept_code() { + return dept_code; + } + + public void setDept_code(String dept_code) { + this.dept_code = dept_code; + } + + public String getDept_name() { + return dept_name; + } + + public void setDept_name(String dept_name) { + this.dept_name = dept_name; + } + + public String getAcct_subj_code() { + return acct_subj_code; + } + + public void setAcct_subj_code(String acct_subj_code) { + this.acct_subj_code = acct_subj_code; + } + + public String getAcct_subj_name() { + return acct_subj_name; + } + + public void setAcct_subj_name(String acct_subj_name) { + this.acct_subj_name = acct_subj_name; + } + + public String getCheck_type_code() { + return check_type_code; + } + + public void setCheck_type_code(String check_type_code) { + this.check_type_code = check_type_code; + } + + public String getCheck_type_name() { + return check_type_name; + } + + public void setCheck_type_name(String check_type_name) { + this.check_type_name = check_type_name; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public Double getAmount() { + return amount; + } + + public void setAmount(Double amount) { + this.amount = amount; + } + + public String getFund_source_code() { + return fund_source_code; + } + + public void setFund_source_code(String fund_source_code) { + this.fund_source_code = fund_source_code; + } + + public String getVouch_no() { + return vouch_no; + } + + public void setVouch_no(String vouch_no) { + this.vouch_no = vouch_no; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getBookkeeper() { + return bookkeeper; + } + + public void setBookkeeper(String bookkeeper) { + this.bookkeeper = bookkeeper; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.xml new file mode 100644 index 00000000..fb76ec8a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntity.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + acct_year + ,acct_month + ,dept_code + ,dept_name + ,acct_subj_code + ,acct_subj_name + ,check_type_code + ,check_type_name + ,direction + ,amount + ,fund_source_code + ,vouch_no + ,summary + ,bookkeeper + ,org_code + ,org_name + ,branch_code + ,branch_name + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntityVo.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntityVo.java new file mode 100644 index 00000000..5ef35f28 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/entity/AcctVouchInfoEntityVo.java @@ -0,0 +1,194 @@ +package com.hzya.frame.grpU8.acctVouchInfo.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * 子表(AcctVouchInfo)实体类 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +public class AcctVouchInfoEntityVo { + + /** 年度 */ + private String acct_year; + /** 月份 */ + private String acct_month; + /** 科室编码 */ + private String dept_code; + /** 科室名称 */ + private String dept_name; + /** 会计科目编码 */ + private String acct_subj_code; + /** 会计科目名称 */ + private String acct_subj_name; + /** 辅助核算项编码 */ + private String check_type_code; + /** 辅助核算项名称 */ + private String check_type_name; + /** 借贷方向 */ + private String direction; + /** 金额 */ + private Double amount; + /** 资金来源编码 */ + private String fund_source_code; + /** 凭证号 */ + private String vouch_no; + /** 摘要 */ + private String summary; + /** 记账人 */ + private String bookkeeper; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getAcct_year() { + return acct_year; + } + + public void setAcct_year(String acct_year) { + this.acct_year = acct_year; + } + + public String getAcct_month() { + return acct_month; + } + + public void setAcct_month(String acct_month) { + this.acct_month = acct_month; + } + + public String getDept_code() { + return dept_code; + } + + public void setDept_code(String dept_code) { + this.dept_code = dept_code; + } + + public String getDept_name() { + return dept_name; + } + + public void setDept_name(String dept_name) { + this.dept_name = dept_name; + } + + public String getAcct_subj_code() { + return acct_subj_code; + } + + public void setAcct_subj_code(String acct_subj_code) { + this.acct_subj_code = acct_subj_code; + } + + public String getAcct_subj_name() { + return acct_subj_name; + } + + public void setAcct_subj_name(String acct_subj_name) { + this.acct_subj_name = acct_subj_name; + } + + public String getCheck_type_code() { + return check_type_code; + } + + public void setCheck_type_code(String check_type_code) { + this.check_type_code = check_type_code; + } + + public String getCheck_type_name() { + return check_type_name; + } + + public void setCheck_type_name(String check_type_name) { + this.check_type_name = check_type_name; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public Double getAmount() { + return amount; + } + + public void setAmount(Double amount) { + this.amount = amount; + } + + public String getFund_source_code() { + return fund_source_code; + } + + public void setFund_source_code(String fund_source_code) { + this.fund_source_code = fund_source_code; + } + + public String getVouch_no() { + return vouch_no; + } + + public void setVouch_no(String vouch_no) { + this.vouch_no = vouch_no; + } + + public String getSummary() { + return summary; + } + + public void setSummary(String summary) { + this.summary = summary; + } + + public String getBookkeeper() { + return bookkeeper; + } + + public void setBookkeeper(String bookkeeper) { + this.bookkeeper = bookkeeper; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/IAcctVouchInfoService.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/IAcctVouchInfoService.java new file mode 100644 index 00000000..0c41c1fb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/IAcctVouchInfoService.java @@ -0,0 +1,32 @@ +package com.hzya.frame.grpU8.acctVouchInfo.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 子表(AcctVouchInfo)表服务接口 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +public interface IAcctVouchInfoService extends IBaseService{ + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + Object queryData(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + SysExtensionApiEntity addDataSourceCode(SysExtensionApiEntity jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/impl/AcctVouchInfoServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/impl/AcctVouchInfoServiceImpl.java new file mode 100644 index 00000000..b639c516 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/acctVouchInfo/service/impl/AcctVouchInfoServiceImpl.java @@ -0,0 +1,105 @@ +package com.hzya.frame.grpU8.acctVouchInfo.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.user.entity.SysUserEntity; +import com.hzya.frame.util.bipV3.SHA256Util; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.grpU8.acctVouchInfo.dao.IAcctVouchInfoDao; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo; +import com.hzya.frame.grpU8.acctVouchInfo.service.IAcctVouchInfoService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.List; +import java.util.Map; + +/** + * 子表(AcctVouchInfo)表服务实现类 + * + * @author makejava + * @since 2024-07-09 11:25:15 + */ +@Service(value = "acctVouchInfoService") +public class AcctVouchInfoServiceImpl extends BaseService implements IAcctVouchInfoService { + + private IAcctVouchInfoDao acctVouchInfoDao; + + @Resource + private ISysApplicationDatabaseDao sysApplicationDatabaseDao; + + @Autowired + public void setAcctVouchInfoDao(IAcctVouchInfoDao dao) { + this.acctVouchInfoDao = dao; + this.dao = dao; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public Object queryData(JSONObject jsonObject) { + AcctVouchInfoEntity entity = getData("jsonStr", jsonObject, AcctVouchInfoEntity.class); + if(entity == null ){ + entity = new AcctVouchInfoEntity(); + } + //判断分页 + if (entity.getPageNum() != null && entity.getPageSize() != null) { + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = acctVouchInfoDao.queryData(entity); + PageInfo pageInfo = new PageInfo(list); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",pageInfo); + return object; + }else { + List list = acctVouchInfoDao.queryData(entity); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",list); + return object; } + } + + /** + * @param entity + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public SysExtensionApiEntity addDataSourceCode(SysExtensionApiEntity entity) { + try { + SysApplicationEntity applicationEntity = entity.getReceiveApp(); + SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity(); + sysApplicationDatabaseEntity.setSts("Y"); + sysApplicationDatabaseEntity.setDbStatus("1"); + sysApplicationDatabaseEntity.setAppId(applicationEntity.getId()); + sysApplicationDatabaseEntity.setDataSourceCode("master"); + List sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity); + if(sysDataSourceEntities != null && sysDataSourceEntities.size() > 0){ + String parm = entity.getBodys(); + JSONObject jsonObject = JSONObject.parseObject(parm); + jsonObject.put("dataSourceCode",sysDataSourceEntities.get(0).getSourceCode()); + entity.setBodys(jsonObject.toJSONString()); + } + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/IDictAcctSubjDao.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/IDictAcctSubjDao.java new file mode 100644 index 00000000..44744c6f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/IDictAcctSubjDao.java @@ -0,0 +1,19 @@ +package com.hzya.frame.grpU8.dictAcctSubj.dao; + +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo; + +import java.util.List; + +/** + * 子表(dict_acct_subj: table)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +public interface IDictAcctSubjDao extends IBaseDao { + + List queryData(DictAcctSubjEntity entity); +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/impl/DictAcctSubjDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/impl/DictAcctSubjDaoImpl.java new file mode 100644 index 00000000..ad55ad36 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/dao/impl/DictAcctSubjDaoImpl.java @@ -0,0 +1,30 @@ +package com.hzya.frame.grpU8.dictAcctSubj.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.grpU8.dictAcctSubj.dao.IDictAcctSubjDao; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * 子表(DictAcctSubj)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +@Repository(value = "DictAcctSubjDaoImpl") +public class DictAcctSubjDaoImpl extends MybatisGenericDao implements IDictAcctSubjDao{ + @DS("#entity.dataSourceCode") + @Override + public List queryData(DictAcctSubjEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryData", entity); + return o; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.java new file mode 100644 index 00000000..ca402cd7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.java @@ -0,0 +1,284 @@ +package com.hzya.frame.grpU8.dictAcctSubj.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 子表(DictAcctSubj)实体类 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +public class DictAcctSubjEntity extends BaseEntity { + + /** 年度 */ + private String acct_year; + /** 会计科目编码 */ + private String acct_subj_code; + /** 会计科目名称 */ + private String acct_subj_name; + /** 上级编码 */ + private String supper_code; + /** 科目级次 */ + private String subj_level; + /** 是否末级 */ + private String is_last; + /** 科目类型编码 */ + private String subj_type_code; + /** 科目类型名称 */ + private String subj_type_name; + /** 借贷方向 */ + private String direction; + /** 是否现金 */ + private String is_cash; + /** 科目性质 */ + private String subj_nature_code; + /** 是否辅助核算 */ + private String is_check; + /** 是否停用 */ + private String is_stop; + /** 预算会计科目编码 */ + private String budg_subj_code; + /** 预算会计科目名称 */ + private String budg_subj_name; + /** 辅助核算项1 */ + private String check_type_name1; + /** 辅助核算项2 */ + private String check_type_name2; + /** 辅助核算项3 */ + private String check_type_name3; + /** 辅助核算项4 */ + private String check_type_name4; + /** 辅助核算项5 */ + private String check_type_name5; + /** 辅助核算项6 */ + private String check_type_name6; + /** 辅助核算项7 */ + private String check_type_name7; + /** 辅助核算项8 */ + private String check_type_name8; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getAcct_year() { + return acct_year; + } + + public void setAcct_year(String acct_year) { + this.acct_year = acct_year; + } + + public String getAcct_subj_code() { + return acct_subj_code; + } + + public void setAcct_subj_code(String acct_subj_code) { + this.acct_subj_code = acct_subj_code; + } + + public String getAcct_subj_name() { + return acct_subj_name; + } + + public void setAcct_subj_name(String acct_subj_name) { + this.acct_subj_name = acct_subj_name; + } + + public String getSupper_code() { + return supper_code; + } + + public void setSupper_code(String supper_code) { + this.supper_code = supper_code; + } + + public String getSubj_level() { + return subj_level; + } + + public void setSubj_level(String subj_level) { + this.subj_level = subj_level; + } + + public String getIs_last() { + return is_last; + } + + public void setIs_last(String is_last) { + this.is_last = is_last; + } + + public String getSubj_type_code() { + return subj_type_code; + } + + public void setSubj_type_code(String subj_type_code) { + this.subj_type_code = subj_type_code; + } + + public String getSubj_type_name() { + return subj_type_name; + } + + public void setSubj_type_name(String subj_type_name) { + this.subj_type_name = subj_type_name; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIs_cash() { + return is_cash; + } + + public void setIs_cash(String is_cash) { + this.is_cash = is_cash; + } + + public String getSubj_nature_code() { + return subj_nature_code; + } + + public void setSubj_nature_code(String subj_nature_code) { + this.subj_nature_code = subj_nature_code; + } + + public String getIs_check() { + return is_check; + } + + public void setIs_check(String is_check) { + this.is_check = is_check; + } + + public String getIs_stop() { + return is_stop; + } + + public void setIs_stop(String is_stop) { + this.is_stop = is_stop; + } + + public String getBudg_subj_code() { + return budg_subj_code; + } + + public void setBudg_subj_code(String budg_subj_code) { + this.budg_subj_code = budg_subj_code; + } + + public String getBudg_subj_name() { + return budg_subj_name; + } + + public void setBudg_subj_name(String budg_subj_name) { + this.budg_subj_name = budg_subj_name; + } + + public String getCheck_type_name1() { + return check_type_name1; + } + + public void setCheck_type_name1(String check_type_name1) { + this.check_type_name1 = check_type_name1; + } + + public String getCheck_type_name2() { + return check_type_name2; + } + + public void setCheck_type_name2(String check_type_name2) { + this.check_type_name2 = check_type_name2; + } + + public String getCheck_type_name3() { + return check_type_name3; + } + + public void setCheck_type_name3(String check_type_name3) { + this.check_type_name3 = check_type_name3; + } + + public String getCheck_type_name4() { + return check_type_name4; + } + + public void setCheck_type_name4(String check_type_name4) { + this.check_type_name4 = check_type_name4; + } + + public String getCheck_type_name5() { + return check_type_name5; + } + + public void setCheck_type_name5(String check_type_name5) { + this.check_type_name5 = check_type_name5; + } + + public String getCheck_type_name6() { + return check_type_name6; + } + + public void setCheck_type_name6(String check_type_name6) { + this.check_type_name6 = check_type_name6; + } + + public String getCheck_type_name7() { + return check_type_name7; + } + + public void setCheck_type_name7(String check_type_name7) { + this.check_type_name7 = check_type_name7; + } + + public String getCheck_type_name8() { + return check_type_name8; + } + + public void setCheck_type_name8(String check_type_name8) { + this.check_type_name8 = check_type_name8; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.xml new file mode 100644 index 00000000..075cf3bf --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntity.xml @@ -0,0 +1,270 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + acct_year + ,acct_subj_code + ,acct_subj_name + ,supper_code + ,subj_level + ,is_last + ,subj_type_code + ,subj_type_name + ,direction + ,is_cash + ,subj_nature_code + ,is_check + ,is_stop + ,budg_subj_code + ,budg_subj_name + ,check_type_name1 + ,check_type_name2 + ,check_type_name3 + ,check_type_name4 + ,check_type_name5 + ,check_type_name6 + ,check_type_name7 + ,check_type_name8 + ,org_code + ,org_name + ,branch_code + ,branch_name + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntityVo.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntityVo.java new file mode 100644 index 00000000..2aa0f0bd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/entity/DictAcctSubjEntityVo.java @@ -0,0 +1,284 @@ +package com.hzya.frame.grpU8.dictAcctSubj.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * 子表(DictAcctSubj)实体类 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +public class DictAcctSubjEntityVo { + + /** 年度 */ + private String acct_year; + /** 会计科目编码 */ + private String acct_subj_code; + /** 会计科目名称 */ + private String acct_subj_name; + /** 上级编码 */ + private String supper_code; + /** 科目级次 */ + private String subj_level; + /** 是否末级 */ + private String is_last; + /** 科目类型编码 */ + private String subj_type_code; + /** 科目类型名称 */ + private String subj_type_name; + /** 借贷方向 */ + private String direction; + /** 是否现金 */ + private String is_cash; + /** 科目性质 */ + private String subj_nature_code; + /** 是否辅助核算 */ + private String is_check; + /** 是否停用 */ + private String is_stop; + /** 预算会计科目编码 */ + private String budg_subj_code; + /** 预算会计科目名称 */ + private String budg_subj_name; + /** 辅助核算项1 */ + private String check_type_name1; + /** 辅助核算项2 */ + private String check_type_name2; + /** 辅助核算项3 */ + private String check_type_name3; + /** 辅助核算项4 */ + private String check_type_name4; + /** 辅助核算项5 */ + private String check_type_name5; + /** 辅助核算项6 */ + private String check_type_name6; + /** 辅助核算项7 */ + private String check_type_name7; + /** 辅助核算项8 */ + private String check_type_name8; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getAcct_year() { + return acct_year; + } + + public void setAcct_year(String acct_year) { + this.acct_year = acct_year; + } + + public String getAcct_subj_code() { + return acct_subj_code; + } + + public void setAcct_subj_code(String acct_subj_code) { + this.acct_subj_code = acct_subj_code; + } + + public String getAcct_subj_name() { + return acct_subj_name; + } + + public void setAcct_subj_name(String acct_subj_name) { + this.acct_subj_name = acct_subj_name; + } + + public String getSupper_code() { + return supper_code; + } + + public void setSupper_code(String supper_code) { + this.supper_code = supper_code; + } + + public String getSubj_level() { + return subj_level; + } + + public void setSubj_level(String subj_level) { + this.subj_level = subj_level; + } + + public String getIs_last() { + return is_last; + } + + public void setIs_last(String is_last) { + this.is_last = is_last; + } + + public String getSubj_type_code() { + return subj_type_code; + } + + public void setSubj_type_code(String subj_type_code) { + this.subj_type_code = subj_type_code; + } + + public String getSubj_type_name() { + return subj_type_name; + } + + public void setSubj_type_name(String subj_type_name) { + this.subj_type_name = subj_type_name; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIs_cash() { + return is_cash; + } + + public void setIs_cash(String is_cash) { + this.is_cash = is_cash; + } + + public String getSubj_nature_code() { + return subj_nature_code; + } + + public void setSubj_nature_code(String subj_nature_code) { + this.subj_nature_code = subj_nature_code; + } + + public String getIs_check() { + return is_check; + } + + public void setIs_check(String is_check) { + this.is_check = is_check; + } + + public String getIs_stop() { + return is_stop; + } + + public void setIs_stop(String is_stop) { + this.is_stop = is_stop; + } + + public String getBudg_subj_code() { + return budg_subj_code; + } + + public void setBudg_subj_code(String budg_subj_code) { + this.budg_subj_code = budg_subj_code; + } + + public String getBudg_subj_name() { + return budg_subj_name; + } + + public void setBudg_subj_name(String budg_subj_name) { + this.budg_subj_name = budg_subj_name; + } + + public String getCheck_type_name1() { + return check_type_name1; + } + + public void setCheck_type_name1(String check_type_name1) { + this.check_type_name1 = check_type_name1; + } + + public String getCheck_type_name2() { + return check_type_name2; + } + + public void setCheck_type_name2(String check_type_name2) { + this.check_type_name2 = check_type_name2; + } + + public String getCheck_type_name3() { + return check_type_name3; + } + + public void setCheck_type_name3(String check_type_name3) { + this.check_type_name3 = check_type_name3; + } + + public String getCheck_type_name4() { + return check_type_name4; + } + + public void setCheck_type_name4(String check_type_name4) { + this.check_type_name4 = check_type_name4; + } + + public String getCheck_type_name5() { + return check_type_name5; + } + + public void setCheck_type_name5(String check_type_name5) { + this.check_type_name5 = check_type_name5; + } + + public String getCheck_type_name6() { + return check_type_name6; + } + + public void setCheck_type_name6(String check_type_name6) { + this.check_type_name6 = check_type_name6; + } + + public String getCheck_type_name7() { + return check_type_name7; + } + + public void setCheck_type_name7(String check_type_name7) { + this.check_type_name7 = check_type_name7; + } + + public String getCheck_type_name8() { + return check_type_name8; + } + + public void setCheck_type_name8(String check_type_name8) { + this.check_type_name8 = check_type_name8; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/IDictAcctSubjService.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/IDictAcctSubjService.java new file mode 100644 index 00000000..cde9e036 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/IDictAcctSubjService.java @@ -0,0 +1,22 @@ +package com.hzya.frame.grpU8.dictAcctSubj.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 子表(DictAcctSubj)表服务接口 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +public interface IDictAcctSubjService extends IBaseService{ + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + Object queryData(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/impl/DictAcctSubjServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/impl/DictAcctSubjServiceImpl.java new file mode 100644 index 00000000..04e4d78e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictAcctSubj/service/impl/DictAcctSubjServiceImpl.java @@ -0,0 +1,66 @@ +package com.hzya.frame.grpU8.dictAcctSubj.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity; +import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.grpU8.dictAcctSubj.dao.IDictAcctSubjDao; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo; +import com.hzya.frame.grpU8.dictAcctSubj.service.IDictAcctSubjService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.List; + +/** + * 子表(DictAcctSubj)表服务实现类 + * + * @author makejava + * @since 2024-07-09 11:23:36 + */ +@Service(value = "dictAcctSubjService") +public class DictAcctSubjServiceImpl extends BaseService implements IDictAcctSubjService { + + private IDictAcctSubjDao dictAcctSubjDao; + + @Autowired + public void setDictAcctSubjDao(IDictAcctSubjDao dao) { + this.dictAcctSubjDao = dao; + this.dao = dao; + } + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public Object queryData(JSONObject jsonObject) { + DictAcctSubjEntity entity = getData("jsonStr", jsonObject, DictAcctSubjEntity.class); + if(entity == null ){ + entity = new DictAcctSubjEntity(); + } + //判断分页 + if (entity.getPageNum() != null && entity.getPageSize() != null) { + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = dictAcctSubjDao.queryData(entity); + PageInfo pageInfo = new PageInfo(list); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",pageInfo); + return object; + }else { + List list = dictAcctSubjDao.queryData(entity); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",list); + return object; } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/IDictCheckTypeDao.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/IDictCheckTypeDao.java new file mode 100644 index 00000000..1033b8fe --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/IDictCheckTypeDao.java @@ -0,0 +1,19 @@ +package com.hzya.frame.grpU8.dictCheckType.dao; + +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntityVo; + +import java.util.List; + +/** + * 子表(dict_check_type: table)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +public interface IDictCheckTypeDao extends IBaseDao { + + List queryData(DictCheckTypeEntity entity); +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/impl/DictCheckTypeDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/impl/DictCheckTypeDaoImpl.java new file mode 100644 index 00000000..76955876 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/dao/impl/DictCheckTypeDaoImpl.java @@ -0,0 +1,30 @@ +package com.hzya.frame.grpU8.dictCheckType.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity; +import com.hzya.frame.grpU8.dictCheckType.dao.IDictCheckTypeDao; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntityVo; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * 子表(DictCheckType)表数据库访问层 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +@Repository(value = "DictCheckTypeDaoImpl") +public class DictCheckTypeDaoImpl extends MybatisGenericDao implements IDictCheckTypeDao{ + + @DS("#entity.dataSourceCode") + @Override + public List queryData(DictCheckTypeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryData", entity); + return o; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.java new file mode 100644 index 00000000..c4660d7e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.java @@ -0,0 +1,74 @@ +package com.hzya.frame.grpU8.dictCheckType.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 子表(DictCheckType)实体类 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +public class DictCheckTypeEntity extends BaseEntity { + + /** 辅助核算项编码 */ + private String check_type_code; + /** 辅助核算项名称 */ + private String check_type_name; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getCheck_type_code() { + return check_type_code; + } + + public void setCheck_type_code(String check_type_code) { + this.check_type_code = check_type_code; + } + + public String getCheck_type_name() { + return check_type_name; + } + + public void setCheck_type_name(String check_type_name) { + this.check_type_name = check_type_name; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.xml new file mode 100644 index 00000000..b5ca26b7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntity.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + check_type_code + ,check_type_name + ,org_code + ,org_name + ,branch_code + ,branch_name + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntityVo.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntityVo.java new file mode 100644 index 00000000..8fbbf83a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/entity/DictCheckTypeEntityVo.java @@ -0,0 +1,74 @@ +package com.hzya.frame.grpU8.dictCheckType.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * 子表(DictCheckType)实体类 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +public class DictCheckTypeEntityVo { + + /** 辅助核算项编码 */ + private String check_type_code; + /** 辅助核算项名称 */ + private String check_type_name; + /** 单位编码 */ + private String org_code; + /** 单位名称 */ + private String org_name; + /** 院区编码 */ + private String branch_code; + /** 院区名称 */ + private String branch_name; + + public String getCheck_type_code() { + return check_type_code; + } + + public void setCheck_type_code(String check_type_code) { + this.check_type_code = check_type_code; + } + + public String getCheck_type_name() { + return check_type_name; + } + + public void setCheck_type_name(String check_type_name) { + this.check_type_name = check_type_name; + } + + public String getOrg_code() { + return org_code; + } + + public void setOrg_code(String org_code) { + this.org_code = org_code; + } + + public String getOrg_name() { + return org_name; + } + + public void setOrg_name(String org_name) { + this.org_name = org_name; + } + + public String getBranch_code() { + return branch_code; + } + + public void setBranch_code(String branch_code) { + this.branch_code = branch_code; + } + + public String getBranch_name() { + return branch_name; + } + + public void setBranch_name(String branch_name) { + this.branch_name = branch_name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/IDictCheckTypeService.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/IDictCheckTypeService.java new file mode 100644 index 00000000..b47bb474 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/IDictCheckTypeService.java @@ -0,0 +1,22 @@ +package com.hzya.frame.grpU8.dictCheckType.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 子表(DictCheckType)表服务接口 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +public interface IDictCheckTypeService extends IBaseService{ + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + Object queryData(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/impl/DictCheckTypeServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/impl/DictCheckTypeServiceImpl.java new file mode 100644 index 00000000..30074dc0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/dictCheckType/service/impl/DictCheckTypeServiceImpl.java @@ -0,0 +1,67 @@ +package com.hzya.frame.grpU8.dictCheckType.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity; +import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity; +import com.hzya.frame.grpU8.dictCheckType.dao.IDictCheckTypeDao; +import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntityVo; +import com.hzya.frame.grpU8.dictCheckType.service.IDictCheckTypeService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.List; + +/** + * 子表(DictCheckType)表服务实现类 + * + * @author makejava + * @since 2024-07-09 11:24:25 + */ +@Service(value = "dictCheckTypeService") +public class DictCheckTypeServiceImpl extends BaseService implements IDictCheckTypeService { + + private IDictCheckTypeDao dictCheckTypeDao; + + @Autowired + public void setDictCheckTypeDao(IDictCheckTypeDao dao) { + this.dictCheckTypeDao = dao; + this.dao = dao; + } + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 数据表 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public Object queryData(JSONObject jsonObject) { + DictCheckTypeEntity entity = getData("jsonStr", jsonObject, DictCheckTypeEntity.class); + if(entity == null ){ + entity = new DictCheckTypeEntity(); + } + //判断分页 + if (entity.getPageNum() != null && entity.getPageSize() != null) { + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = dictCheckTypeDao.queryData(entity); + PageInfo pageInfo = new PageInfo(list); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",pageInfo); + return object; + }else { + List list = dictCheckTypeDao.queryData(entity); + JSONObject object = new JSONObject(); + object.put("status","success"); + object.put("data",list); + return object; + } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/IAttachmentFileDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/IAttachmentFileDao.java new file mode 100644 index 00000000..20867a14 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/IAttachmentFileDao.java @@ -0,0 +1,13 @@ +package com.hzya.frame.grpU8.nxproof.attachment.dao;/* +* @Description 附件 +* @Author xiangerlin + @Date 2022-10-26 11:17 +*/ + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity; + +public interface IAttachmentFileDao extends IBaseDao { + Integer saveData(AttachmentFileEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/impl/AttachmentFileDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/impl/AttachmentFileDaoImpl.java new file mode 100644 index 00000000..3de2969b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/dao/impl/AttachmentFileDaoImpl.java @@ -0,0 +1,23 @@ +package com.hzya.frame.grpU8.nxproof.attachment.dao.impl;/* +* @Description 附件 +* @Author xiangerlin + @Date 2022-10-26 11:18 +*/ + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.attachment.dao.IAttachmentFileDao; +import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; +import org.springframework.stereotype.Repository; + +@Repository +public class AttachmentFileDaoImpl extends MybatisGenericDao implements IAttachmentFileDao { + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(AttachmentFileEntity entity) { + Integer o = super.insert("com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity.AttachmentFileEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.java new file mode 100644 index 00000000..719706e4 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.java @@ -0,0 +1,120 @@ +package com.hzya.frame.grpU8.nxproof.attachment.entity;/* +* @Description 附件表 +* @Author xiangerlin + @Date 2022-10-26 10:40 +*/ + + +import com.hzya.frame.web.entity.BaseEntity; + +public class AttachmentFileEntity extends BaseEntity { + + private String aTGuid;//主键id + private String createDate;//创建日期 + private String createID;//创建人id + private String updateDate;//更新日期 + private String updateID;//更新人id + private String deleteDate;//删除日期 + private String deleteID;//删除人 + private String aTFileName;//附件名 + private String aTExtName;//附件后缀名 + private byte[] aTFile;//附件 二进制文件 + private String relationApp;//固定传 OER + private String isDELETE;//删除标记 0是未删除 + + public String getaTGuid() { + return aTGuid; + } + + public void setaTGuid(String aTGuid) { + this.aTGuid = aTGuid; + } + + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + public String getCreateID() { + return createID; + } + + public void setCreateID(String createID) { + this.createID = createID; + } + + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public String getUpdateID() { + return updateID; + } + + public void setUpdateID(String updateID) { + this.updateID = updateID; + } + + public String getDeleteDate() { + return deleteDate; + } + + public void setDeleteDate(String deleteDate) { + this.deleteDate = deleteDate; + } + + public String getDeleteID() { + return deleteID; + } + + public void setDeleteID(String deleteID) { + this.deleteID = deleteID; + } + + public String getaTFileName() { + return aTFileName; + } + + public void setaTFileName(String aTFileName) { + this.aTFileName = aTFileName; + } + + public String getaTExtName() { + return aTExtName; + } + + public void setaTExtName(String aTExtName) { + this.aTExtName = aTExtName; + } + + public byte[] getaTFile() { + return aTFile; + } + + public void setaTFile(byte[] aTFile) { + this.aTFile = aTFile; + } + + public String getRelationApp() { + return relationApp; + } + + public void setRelationApp(String relationApp) { + this.relationApp = relationApp; + } + + public String getIsDELETE() { + return isDELETE; + } + + public void setIsDELETE(String isDELETE) { + this.isDELETE = isDELETE; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.xml new file mode 100644 index 00000000..0833a4d1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/entity/AttachmentFileEntity.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + ATGuid, + CreateDate, + CreateID, + UpdateDate, + UpdateID, + DeleteDate, + DeleteID, + ATFileName, + ATExtName, + ATFile, + RelationApp, + ISDELETE + + + + + + + + + + insert into AT_AttachmentFile( + + aTGuid, + createDate, + createID, + updateDate , + updateID, + deleteDate, + deleteID, + aTFileName, + aTExtName, + aTFile, + relationApp, + isDELETE + + )values + ( + + #{aTGuid}, + #{createDate}, + #{createID}, + #{updateDate} , + #{updateID}, + #{deleteDate}, + #{deleteID}, + #{aTFileName}, + #{aTExtName}, + #{aTFile,typeHandler=org.apache.ibatis.type.BlobTypeHandler}, + 'OER', + 0 + + + ) + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/IAttachmentFileService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/IAttachmentFileService.java new file mode 100644 index 00000000..39c98d48 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/IAttachmentFileService.java @@ -0,0 +1,37 @@ +package com.hzya.frame.grpU8.nxproof.attachment.service;/* +* @Description +* @Author xiangerlin + @Date 2022-10-26 11:19 +*/ + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity; + +import java.util.List; + +public interface IAttachmentFileService { + + /** + * 保存附件 + * @param entity + */ + void saveAttachment(AttachmentFileEntity entity); + + List queryFile(AttachmentFileEntity entity)throws Exception; + + /** + * 调用http接口查询单据附件 + * @param billCode + * @return + * @throws Exception + */ + List queryFileByCode(String billCode)throws Exception; + + /** + * 附件上传 + * @param fileList + * @param mlid + * @param kjnd + */ + void uploadAttachment(List fileList,String mlid,String kjnd); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/impl/AttachmentFileServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/impl/AttachmentFileServiceImpl.java new file mode 100644 index 00000000..e0c7bef1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/attachment/service/impl/AttachmentFileServiceImpl.java @@ -0,0 +1,229 @@ +package com.hzya.frame.grpU8.nxproof.attachment.service.impl;/* +* @Description +* @Author xiangerlin + @Date 2022-10-26 11:20 +*/ + +import cn.hutool.core.convert.Convert; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.IdUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpUtil; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.attachment.dao.IAttachmentFileDao; +import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity; +import com.hzya.frame.grpU8.nxproof.attachment.service.IAttachmentFileService; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; +import com.hzya.frame.grpU8.nxproof.oerannex.service.IOerAnnexService; +import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO; +import org.apache.commons.collections.CollectionUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.io.*; +import java.net.URLDecoder; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + +@Service +public class AttachmentFileServiceImpl extends BaseService implements IAttachmentFileService { + + Logger logger = LogManager.getLogger(getClass()); + + protected IAttachmentFileDao attachmentFileDao; + + @Autowired + public void setBillLogDao(IAttachmentFileDao dao) { + this.attachmentFileDao = dao; + this.dao=dao; + } + @Autowired + private IOerAnnexService oerAnnexService; + /** + * 保存附件 + * @param entity + */ + @Override + public void saveAttachment(AttachmentFileEntity entity) { + entity.setaTGuid("A1:"+IdUtil.fastUUID()); + String date = DateUtil.format(new Date(), "yyyyMMdd HH:mm:ss"); + entity.setCreateDate(date); + entity.setUpdateDate(date); + String fileName = entity.getaTFileName(); + if (StrUtil.isNotEmpty(fileName)){ + int index = fileName.lastIndexOf("."); + if (index > 0){ + String suffix = fileName.substring(index); + entity.setaTExtName(suffix); + String prefix = fileName.substring(0,index); + entity.setaTFileName(prefix); + } + } + attachmentFileDao.save("AttachmentFileEntity_insert",entity); + } + + @Override + public List queryFile(AttachmentFileEntity entity) throws Exception { + List list = attachmentFileDao.query(entity); + return list; + } + + /** + * 调用http接口查询单据附件 + * + * @param billCode 单据号 + * @return + * @throws Exception + */ + @Override + public List queryFileByCode(String billCode) throws Exception { + List list = new ArrayList<>(); + if (StrUtil.isNotEmpty(billCode)){ + JSONObject params = new JSONObject(); + params.put("billNo",billCode); + String res = HttpRequest.post("/grp/af/findFilesBB").body(params.toString()).execute().body(); + logger.info("根据单号:{},查询到到附件列表为:{}",billCode,res); + if (StrUtil.isNotEmpty(res)){ + JSONObject resJson = JSONObject.parseObject(res); + int pageCount = resJson.getIntValue("pageCount"); + boolean success = resJson.getBoolean("success"); + if (success){ + String dataStr = resJson.getString("data"); + list = JSONObject.parseArray(dataStr,JSONObject.class); + if (null != list && list.size() >0){ + for (JSONObject jsonObject : list) { + String fileName = jsonObject.getString("fileName"); + if (StrUtil.isNotEmpty(fileName)){ + // 使用indexOf找到"."的位置 + int dotIndex = fileName.lastIndexOf('.'); + // 确保找到了".",防止indexOf返回-1的情况 + if (dotIndex != -1){ + String ext_name = fileName.substring(dotIndex); + jsonObject.put("Ext",ext_name); + } + } + } + } + } + } + } + return list; + } + + /** + * 附件上传 + * + * @param fileList + * @param mlid + * @param kjnd + */ + @Override + public void uploadAttachment(List fileList, String mlid, String kjnd) { + if (CollectionUtils.isNotEmpty(fileList) && StrUtil.isNotEmpty(mlid) && StrUtil.isNotEmpty(kjnd)){ + try { + //附件下载 + List fileInfoList = fileDownload(fileList); + //附件保存到grp库里 + if (CollectionUtils.isNotEmpty(fileInfoList)){ + //保存前先删一下历史附件 + OerAnnexEntity delete = new OerAnnexEntity(); + //delete.setGsdm(Constant.CONFIGMAP.get("gsdm")); + delete.setKjnd(kjnd); + delete.setMlid(mlid); + //oerAnnexService.deleteAnnex(delete); + int no = 1; + for (FileInfoDTO fileInfo : fileInfoList) { + try { + AttachmentFileEntity fileEntity = new AttachmentFileEntity(); + String fileName = URLDecoder.decode(fileInfo.getFile_name(), "UTF-8"); + fileEntity.setaTFileName(fileName); + fileEntity.setaTFile(fileInfo.getData()); + this.saveAttachment(fileEntity); + //保存附件关系 + OerAnnexEntity annexEntity = new OerAnnexEntity(); + annexEntity.setMlid(mlid); + annexEntity.setKjnd(kjnd); + annexEntity.setAnnexName(fileName); + annexEntity.setAnnexSize(Convert.toLong(fileInfo.getFile_size())); + annexEntity.setOnlyid(fileEntity.getaTGuid()); + annexEntity.setXh(String.valueOf(no)); + oerAnnexService.saveAnnex(annexEntity); + no++; + }catch (Exception e){ + logger.error("保存附件到grp出错:{}",e); + } + } + } + }catch (Exception e){ + logger.error("保存附件到grp出错:{}",e); + } + } + } + + private List fileDownload(List fileList){ + String dir = "1"; + List files = new ArrayList<>(); + //1、下载附件 + for (JSONObject fileObj : fileList) { + try { + FileInfoDTO fileInfoDTO = new FileInfoDTO(); + String url = fileObj.getString("url"); + String fileName = URLDecoder.decode(fileObj.getString("fileName")); + File file = HttpUtil.downloadFileFromUrl(url, dir); + if (null != file){ + String zipPath = dir + File.separator + fileName.split("\\.")[0] + ".zip"; + ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipPath), Charset.forName("GBK")); + writeZipFile(file, zos,fileName); + zos.close(); + // 获取压缩文件的字节数组 + File zipFile = new File(zipPath); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream((int) zipFile.length()); + BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(zipFile)); + int buf_size = 1024; + byte[] buffer = new byte[buf_size]; + int len = 0; + while (-1 != (len = bufferedInputStream.read(buffer, 0, buf_size))) { + byteArrayOutputStream.write(buffer, 0, len); + } + byte[] fileByte = byteArrayOutputStream.toByteArray(); + fileInfoDTO.setData(fileByte); + fileInfoDTO.setFile_size(fileObj.getString("size")); + fileInfoDTO.setFile_name(fileName); + files.add(fileInfoDTO); + } + }catch (Exception e){ + logger.error("上传附件出错:{}",e); + } + } + return files; + } + private void writeZipFile(File file,ZipOutputStream zos,String fileName){ + if (null != file && null !=zos){ + try { + logger.info("=====压缩文件====="); + zos.putNextEntry(new ZipEntry(fileName)); + FileInputStream fos = new FileInputStream(file); + BufferedInputStream bis = new BufferedInputStream(fos); + int len; + byte[] buf = new byte[1024]; + while ((len = bis.read(buf, 0, 1024)) != -1) { + zos.write(buf, 0, len); + } + bis.close(); + fos.close(); + logger.info("=====压缩完成====="); + }catch (Exception e){ + e.printStackTrace(); + logger.error("=====压缩文件出错====="); + } + } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/IControlIndexDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/IControlIndexDao.java new file mode 100644 index 00000000..4b13f1b6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/IControlIndexDao.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.controlindex.dao; + + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity; + +import java.util.List; + +public interface IControlIndexDao extends IBaseDao { + + //根据状态查询数据 + List queryControlIndexByStatus(ControlIndexEntity controlIndexEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/impl/ControlIndexDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/impl/ControlIndexDaoImpl.java new file mode 100644 index 00000000..ba206a04 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/dao/impl/ControlIndexDaoImpl.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.controlindex.dao.impl; + + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.controlindex.dao.IControlIndexDao; +import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository(value = "controlIndexDaoImpl") +public class ControlIndexDaoImpl extends MybatisGenericDao implements IControlIndexDao { + @Override + public List queryControlIndexByStatus(ControlIndexEntity controlIndexEntity) { + List list =(List) super.selectList("ControlIndexEntity_list_base", controlIndexEntity); + return list; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.java new file mode 100644 index 00000000..6b0dd200 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.java @@ -0,0 +1,71 @@ +package com.hzya.frame.grpU8.nxproof.controlindex.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +public class ControlIndexEntity extends BaseEntity { + private String YSDH; + private String ZBID; + private int JE; + private String KJND; + private String ZT; + private String ZCMC; + + private String ZBTBZT; + + public String getZBTBZT() { + return ZBTBZT; + } + + public void setZBTBZT(String ZBTBZT) { + this.ZBTBZT = ZBTBZT; + } + + public String getYSDH() { + return YSDH; + } + + public void setYSDH(String YSDH) { + this.YSDH = YSDH; + } + + public String getZBID() { + return ZBID; + } + + public void setZBID(String ZBID) { + this.ZBID = ZBID; + } + + public int getJE() { + return JE; + } + + public void setJE(int JE) { + this.JE = JE; + } + + public String getKJND() { + return KJND; + } + + public void setKJND(String KJND) { + this.KJND = KJND; + } + + public String getZT() { + return ZT; + } + + public void setZT(String ZT) { + this.ZT = ZT; + } + + public String getZCMC() { + return ZCMC; + } + + public void setZCMC(String ZCMC) { + this.ZCMC = ZCMC; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.xml new file mode 100644 index 00000000..5af1b72e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/entity/ControlIndexEntity.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + +YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT + + + + + + + + + + + + + + + + insert into T_ZCCW_CONTROLINDEX( + GSDM, + KJND, + DJLXID, + MLID, + ZT, + CRerDM, + CRerMC, + CRerDate, + FlowCode, + CurSHJD, + NextSHJD, + SHR, + SHRID, + SHRQ, + JSFS, + DJBH, + DJDate, + FJS, + BMDM, + BMMC, + GRDM, + GRMC, + TEL, + YJJE, + THJE, + BLJE, + JE, + WHJE, + JEDX + ) + values ( + #{gsdm}, + #{kjnd}, + ${djlxId}, + ${mlId}, + #{zt}, + #{crerdm}, + #{crermc}, + #{crerdate}, + #{flowcode}, + ${curshjd}, + ${nextshjd}, + #{shrs}, + #{shrId}, + #{shrq}, + #{jsfs}, + #{djbh}, + #{djdate}, + ${fjs}, + #{bmdm}, + #{bmmc}, + #{grdm}, + #{grmc}, + #{tel}, + #{yjje}, + #{thje}, + #{blje}, + #{je}, + #{whje}, + #{jedx} + ) + + + + update T_ZCCW_CONTROLINDEX set ZBTBZT= #{ZBTBZT} + where KJND = #{KJND} and YSDH=#{YSDH} and ZBID=${ZBID} + + + + + DELETE + FROM + T_ZCCW_CONTROLINDEX + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND DJLXID = #{djlxId} + AND MLID = #{mlId} + + + + + UPDATE T_ZCCW_CONTROLINDEX + SET ZT = #{zt}, + FlowCode = #{flowcode}, + CurSHJD =#{curshjd}, + NextSHJD = #{nextshjd}, + SHRID =#{shrId}, + SHR = #{shrs}, + SHRQ = #{shrq} + WHERE + gsdm = #{gsdm} + AND kjnd = #{kjnd} + AND djlxid = #{djlxId} + AND mlid = #{mlId} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/IControlIndexService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/IControlIndexService.java new file mode 100644 index 00000000..1387ed32 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/IControlIndexService.java @@ -0,0 +1,7 @@ +package com.hzya.frame.grpU8.nxproof.controlindex.service; + +public interface IControlIndexService { + + //查询数据库表状态为1的数据,写入指标执行表 + String queryControlIndexByStatus(String status); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/impl/ControlIndexServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/impl/ControlIndexServiceImpl.java new file mode 100644 index 00000000..7b118fe0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/controlindex/service/impl/ControlIndexServiceImpl.java @@ -0,0 +1,158 @@ +package com.hzya.frame.grpU8.nxproof.controlindex.service.impl; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity; +import com.hzya.frame.grpU8.nxproof.controlindex.service.IControlIndexService; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.ibatis.session.SqlSession; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Service; + +import java.util.Date; +import java.util.List; + +@Service(value = "controlIndexServiceImpl") +public class ControlIndexServiceImpl implements IControlIndexService { + + private static Logger logger= LogManager.getLogger(ControlIndexServiceImpl.class); + + @Autowired + private IGbiZbsyrecDao gbiZbsyrecDao; + @Autowired + private IOerDjmlDao oerDjmlDao; + /*@Autowired + @Qualifier("sqlSessionMaster") + private SqlSession sqlSession;*/ + //查询数据库表状态为1的数据,写入指标执行表 + @Override + public String queryControlIndexByStatus(String stauts) { + ControlIndexEntity controlIndexEntity=new ControlIndexEntity(); + List controlIndexEntities=null; + OerDjmlEntity oerDjmlEntity=new OerDjmlEntity(); + oerDjmlEntity.setGsdm("001"); + oerDjmlEntity.setDjlxId("102"); + switch (stauts){ + case "1": + logger.info("========开始查询数据库表状态为1的数据========"); + controlIndexEntity.setZT("1"); + // controlIndexEntities= sqlSession.selectList("ControlIndexEntity_list_base", controlIndexEntity); + logger.info("根据状态为1查询出来的数据有{}条",controlIndexEntities.size()); + if(CollUtil.isNotEmpty(controlIndexEntities) && controlIndexEntities.size()>0){ + for (ControlIndexEntity indexEntity : controlIndexEntities) { + logger.info("循环遍历中得验收单号为:{}",indexEntity.getYSDH()); + if(null == indexEntity.getYSDH() || null ==indexEntity.getZBID()){ + throw new BaseSystemException("验收单号或者指标id不能为空"); + } + //将查询出来的状态为1的数据写入到指标占用表中 + GbiZbsyrecEntity gbiZbsyrecEntity=new GbiZbsyrecEntity(); + gbiZbsyrecEntity.setDjId(indexEntity.getYSDH());//单据id + logger.info("开始根据编号查询指标占用表的数据"); + //根据编号查询指标占用表里面是否存在数据,如果存在,则不新增 + GbiZbsyrecEntity gbiZbsyrecEntityOne =(GbiZbsyrecEntity) gbiZbsyrecDao.selectOne("GbiZbsyrecEntity_list_base_one", gbiZbsyrecEntity); + if(null ==gbiZbsyrecEntityOne || !indexEntity.getYSDH().equals(gbiZbsyrecEntityOne.getDjId())) { + logger.info("验收单号:{}在指标占用表中不存在,开始保存到占用表中",indexEntity.getYSDH()); + try { + gbiZbsyrecEntity.setJhId(indexEntity.getZBID());//指标id + gbiZbsyrecEntity.setDjje(String.valueOf(indexEntity.getJE()));//金额 + gbiZbsyrecEntity.setKjnd(indexEntity.getKJND()); + gbiZbsyrecEntity.setGsdm("001");//公司代码 + gbiZbsyrecEntity.setModule("OER");//模块 + gbiZbsyrecEntity.setDjlx("102");//单据类型 + gbiZbsyrecEntity.setDjflh("148001");//单据分录数 + gbiZbsyrecEntity.setDjzt(indexEntity.getZT()); + gbiZbsyrecEntity.setSzfx("1"); + gbiZbsyrecEntity.setJdzb("0"); + gbiZbsyrecEntity.setCzlx("0"); + gbiZbsyrecEntity.setDjflmx(indexEntity.getYSDH()); + gbiZbsyrecDao.save(gbiZbsyrecEntity); + //保存报销单 + oerDjmlEntity.setDjdate(DateUtil.formatDate(new Date()).replace("-","")); + String djbh = oerDjmlDao.getMaxDjbgByGsdmZy(oerDjmlEntity); + oerDjmlEntity.setDjbh(djbh); + oerDjmlEntity.setMlId(indexEntity.getYSDH()); + oerDjmlEntity.setKjnd(indexEntity.getKJND()); + oerDjmlEntity.setZt("1"); + oerDjmlEntity.setJe(String.valueOf(indexEntity.getJE())); + oerDjmlEntity.setGrdm("123456"); + oerDjmlEntity.setGrmc("占用测试"); + //oerDjmlEntity.setJedx(AmountConvert.toChinese(String.valueOf(indexEntity.getJE()))); + OerDjmlEntity save = oerDjmlDao.save(oerDjmlEntity); + logger.info("验收单号:{}在指标占用表中占用成功",indexEntity.getYSDH()); + if(save!=null){ + //修改T_ZCCW_CONTROLINDEX的指标同步状态为1 + indexEntity.setZBTBZT("1"); + logger.info("保存中开始根据验收单号:{},会计年度:{},指标id:{}更新指标同步状态",indexEntity.getYSDH(),indexEntity.getKJND(),indexEntity.getZBID()); + // sqlSession.update("ControlIndexEntity_update",indexEntity); + } + }catch (Exception e){ + logger.info("指标占用失败:{}",e.getMessage()); + } + }else{ + logger.info("验收单号:{}在指标占用表中已经存在,不再保存到占用表中",indexEntity.getYSDH()); + } + } + }else { + logger.info("========没有查询到状态为1,需要写入指标占用表的数据========"); + return null; + } + break; + case "3": + logger.info("========开始查询数据库表状态为3的数据========"); + controlIndexEntity.setZT("3"); + // controlIndexEntities= sqlSession.selectList("ControlIndexEntity_list_base", controlIndexEntity); + logger.info("根据状态为3查询出来的数据有{}条",controlIndexEntities.size()); + if(CollUtil.isNotEmpty(controlIndexEntities) && controlIndexEntities.size()>0){ + for (ControlIndexEntity indexEntity : controlIndexEntities) { + if(null == indexEntity.getYSDH() || null ==indexEntity.getZBID()){ + throw new BaseSystemException("验收单号或者指标id不能为空"); + } + GbiZbsyrecEntity gbiZbsyrecEntity=new GbiZbsyrecEntity(); + gbiZbsyrecEntity.setDjId(indexEntity.getYSDH()); + //根据编号查询指标占用表中是否存在,存在就删除 + GbiZbsyrecEntity gbiZbsyrecEntityOne =(GbiZbsyrecEntity) gbiZbsyrecDao.selectOne("GbiZbsyrecEntity_list_base_one", gbiZbsyrecEntity); + if(null !=gbiZbsyrecEntityOne && indexEntity.getYSDH().equals(gbiZbsyrecEntityOne.getDjId())) { + logger.info("验收单号:{}在指标占用表中存在,开始删除指标占用表",indexEntity.getYSDH()); + try { + //根据编号删除指标占用表 + gbiZbsyrecEntity.setKjnd(indexEntity.getKJND()); + logger.info("指标占用表中的djid为:{},会计年度为:{}",gbiZbsyrecEntity.getDjId(),gbiZbsyrecEntity.getKjnd()); + gbiZbsyrecDao.delete("GbiZbsyrecEntity_delete",gbiZbsyrecEntity); + //根据编号删除报销单 + oerDjmlEntity.setKjnd(indexEntity.getKJND()); + oerDjmlEntity.setMlId(indexEntity.getYSDH()); + logger.info("报销单中的mlid为:{},会计年度为:{},公司代码为:{},单据类型id为:{}",oerDjmlEntity.getMlId(),oerDjmlEntity.getKjnd(),oerDjmlEntity.getGsdm(),oerDjmlEntity.getDjlxId()); + int delete = oerDjmlDao.delete("OerDjmlEntity_delete", oerDjmlEntity); + logger.info("根据验收单号:{}在指标占用表中已删除",indexEntity.getYSDH()); + if(delete>0){ + //修改T_ZCCW_CONTROLINDEX的指标同步状态为1 + indexEntity.setZBTBZT("1"); + logger.info("删除中开始根据验收单号:{},会计年度:{},指标id:{}更新指标同步状态",indexEntity.getYSDH(),indexEntity.getKJND(),indexEntity.getZBID()); + // sqlSession.update("ControlIndexEntity_update",indexEntity); + } + }catch (Exception e){ + logger.info("指标删除失败:{}",e.getMessage()); + } + }else { + logger.info("验收单号:{}在指标占用表中不存在",indexEntity.getYSDH()); + } + } + }else { + logger.info("========没有查询到状态为3,需要删除指标占用表的数据========"); + return null; + } + break; + default: + break; + } + return null; + } + } + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/IGbiZbsyrecDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/IGbiZbsyrecDao.java new file mode 100644 index 00000000..c77254e9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/IGbiZbsyrecDao.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:47 + */ +public interface IGbiZbsyrecDao extends IBaseDao { + Integer deleteData(GbiZbsyrecEntity oeryszb); + + Integer saveData(GbiZbsyrecEntity oeryszb); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/impl/GbiZbsyrecDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/impl/GbiZbsyrecDaoImpl.java new file mode 100644 index 00000000..98a61b5c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/dao/impl/GbiZbsyrecDaoImpl.java @@ -0,0 +1,31 @@ +package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:48 + */ +@Repository(value = "gbiZbsyrecDao") +public class GbiZbsyrecDaoImpl extends MybatisGenericDao implements IGbiZbsyrecDao { + @DS("#entity.dataSourceCode") + @Override + public Integer deleteData( GbiZbsyrecEntity entity) { + Integer o = super.delete(getSqlIdPrifx() + "GbiZbsyrecEntity_delete_mlid", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer saveData( GbiZbsyrecEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "GbiZbsyrecEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.java new file mode 100644 index 00000000..4f20762f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.java @@ -0,0 +1,186 @@ +package com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description:指标使用记录表 + * @params: + * @return: + * @Date: 2023/6/16 22:04 + */ + +public class GbiZbsyrecEntity extends BaseEntity { + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String module; + private String djlx; + private String djId; + private String djflh; + private String djflmx; + private String djywrq;//单据日期 + private String djzt; + private String jhId;//计划id + private String djje;//金额 + private String sl; + private String djzy;//摘要 + private String szfx; + private String zblb; + private String jdzb; + private String czlx; + private String zzbz; + private String ywdjId; + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getModule() { + return module; + } + + public void setModule(String module) { + this.module = module; + } + + public String getDjlx() { + return djlx; + } + + public void setDjlx(String djlx) { + this.djlx = djlx; + } + + public String getDjId() { + return djId; + } + + public void setDjId(String djId) { + this.djId = djId; + } + + public String getDjflh() { + return djflh; + } + + public void setDjflh(String djflh) { + this.djflh = djflh; + } + + public String getDjflmx() { + return djflmx; + } + + public void setDjflmx(String djflmx) { + this.djflmx = djflmx; + } + + public String getDjywrq() { + return djywrq; + } + + public void setDjywrq(String djywrq) { + this.djywrq = djywrq; + } + + public String getDjzt() { + return djzt; + } + + public void setDjzt(String djzt) { + this.djzt = djzt; + } + + public String getJhId() { + return jhId; + } + + public void setJhId(String jhId) { + this.jhId = jhId; + } + + public String getDjje() { + return djje; + } + + public void setDjje(String djje) { + this.djje = djje; + } + + public String getSl() { + return sl; + } + + public void setSl(String sl) { + this.sl = sl; + } + + public String getDjzy() { + return djzy; + } + + public void setDjzy(String djzy) { + this.djzy = djzy; + } + + public String getSzfx() { + return szfx; + } + + public void setSzfx(String szfx) { + this.szfx = szfx; + } + + public String getZblb() { + return zblb; + } + + public void setZblb(String zblb) { + this.zblb = zblb; + } + + public String getJdzb() { + return jdzb; + } + + public void setJdzb(String jdzb) { + this.jdzb = jdzb; + } + + public String getCzlx() { + return czlx; + } + + public void setCzlx(String czlx) { + this.czlx = czlx; + } + + public String getZzbz() { + return zzbz; + } + + public void setZzbz(String zzbz) { + this.zzbz = zzbz; + } + + public String getYwdjId() { + return ywdjId; + } + + public void setYwdjId(String ywdjId) { + this.ywdjId = ywdjId; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.xml new file mode 100644 index 00000000..83805dac --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/entity/GbiZbsyrecEntity.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GSDM,KJND + + + + + + + + + insert into GBI_ZBSYREC( + YWDJID, + KJND, + MODULE, + DJLX, + DJID, + DJFLH, + DJFLMX, + DJYWRQ, + DJZT, + JHID, + DJJE , + SL, + DJZY, + SZFX, + ZBLB, + JDBZ, + CZLX, + ZZBZ, + GSDM + ) + values ( + #{ywdjId}, + #{kjnd}, + #{module}, + #{djlx}, + #{djId}, + #{djflh}, + #{djflmx}, + #{djywrq}, + #{djzt}, + #{jhId}, + #{djje}, + #{sl}, + #{djzy}, + #{szfx}, + #{zblb}, + #{jdzb}, + #{czlx}, + #{zzbz}, + #{gsdm} + ) + + + + delete from GBI_ZBSYREC where KJND=#{kjnd} and DJID= #{djId} + + + + delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='GSP' and abs(DJFLMX)=${djflmx} AND DJJE > 0 + + + + delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='OER' and djlx=#{djlx} and djid=#{djId} AND DJFLMX=#{djflmx} + + + delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and djid=#{djId} + + + + + DELETE + FROM + gbi_zbsyrec + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND ( + ( + MODULE = #{module} + AND DJFLMX = #{djflmx} + ) + OR ( + MODULE = #{module} + AND DJFLMX =#{djflmx} + ) + ); + + + + DELETE + FROM + gbi_zbsyrec + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND (MODULE = #{module} OR MODULE = #{module}) + AND abs(DJFLMX) = #{djflmx} + + + + + UPDATE GBI_ZBSYREC + SET DJZT = '1' + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND MODULE = #{module} + AND DJLX = #{djlx} + AND DJID = #{djId} + AND (DJFLMX = #{djflmx}) + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/IGbiZbsyrecService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/IGbiZbsyrecService.java new file mode 100644 index 00000000..e4315904 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/IGbiZbsyrecService.java @@ -0,0 +1,11 @@ +package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service; + +/** + * @Author:hecan + * @Description:指标使用记录 + * @params: + * @return: + * @Date: 2023/6/19 14:27 + */ +public interface IGbiZbsyrecService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/impl/GbiZbsyrecServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/impl/GbiZbsyrecServiceImpl.java new file mode 100644 index 00000000..ebba6edc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbsyrec/service/impl/GbiZbsyrecServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.impl; + +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.IGbiZbsyrecService; +import org.springframework.stereotype.Service; + +/** + * @Author:hecan + * @Description:指标使用记录 + * @params: + * @return: + * @Date: 2023/6/19 14:30 + */ +@Service(value = "gbiZbsyrecService") +public class GbiZbsyrecServiceImpl implements IGbiZbsyrecService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/IGbiZbxmbDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/IGbiZbxmbDao.java new file mode 100644 index 00000000..106536d3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/IGbiZbxmbDao.java @@ -0,0 +1,41 @@ +package com.hzya.frame.grpU8.nxproof.gbizbxmb.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; + +import java.util.List; + +public interface IGbiZbxmbDao extends IBaseDao { + /** + * + * @content 查询指标id最大值加一和取指标代码 长度为8位,不够用0补 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/6 11:52 + * **/ + GbiZbxmbEntity queryZbidAndZbdm(GbiZbxmbEntity gbiZbxmbEntity); + + + /** + * + * @content 部门修改时候修改指标项目表的部门名称 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/8 16:59 + * **/ + Integer updateZbmxBmmc(GbiZbxmbEntity gbiZbxmbEntity); + + + /** + * + * @content 根据idpzh查询指标id和指标金额 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/14 17:15 + * **/ + List queryZbxmbByIdpzh(GbiZbxmbEntity gbiZbxmbEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/impl/GbiZbxmbDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/impl/GbiZbxmbDaoImpl.java new file mode 100644 index 00000000..c2c72a54 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/dao/impl/GbiZbxmbDaoImpl.java @@ -0,0 +1,40 @@ +package com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * (GbiZbxmb)表数据库访问层 + * + * @author makejava + * @since 2024-08-14 16:58:43 + */ +@Repository(value = "GbiZbxmbDaoImpl") +public class GbiZbxmbDaoImpl extends MybatisGenericDao implements IGbiZbxmbDao{ + + @Override + @DS("#gbiZbxmbEntity.dataSourceCode") + public GbiZbxmbEntity queryZbidAndZbdm(GbiZbxmbEntity gbiZbxmbEntity) { + return (GbiZbxmbEntity) super.selectOne("queryZbidAndZbdm", gbiZbxmbEntity); + } + + @Override + @DS("#gbiZbxmbEntity.dataSourceCode") + public Integer updateZbmxBmmc(GbiZbxmbEntity gbiZbxmbEntity) { + int update = super.update("updateZbmxBmmc", gbiZbxmbEntity); + return update; + } + + @Override + @DS("#gbiZbxmbEntity.dataSourceCode") + public List queryZbxmbByIdpzh(GbiZbxmbEntity gbiZbxmbEntity) { + return (List)super.selectList("queryZbxmbByIdpzh",gbiZbxmbEntity); + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.java new file mode 100644 index 00000000..242f8fd8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.java @@ -0,0 +1,1274 @@ +package com.hzya.frame.grpU8.nxproof.gbizbxmb.entity; + +import com.hzya.frame.web.entity.BaseEntity; +/** + * (GbiZbxmb)实体类 + * + * @author makejava + * @since 2024-08-14 16:58:44 + */ +public class GbiZbxmbEntity extends BaseEntity { + + private Integer zbid; + private String gsdm; + private String kjnd; + private String zbdm; + private String zblb; + private Integer sjzbid; + private String zy; + private String ysfadm; + private String ysfamc; + private String jflxdm; + private String jflxmc; + private String whdm; + private String whmc; + private String zblydm; + private String zblymc; + private String zjlydm; + private String zjlymc; + private String zjxzdm; + private String zjxzmc; + private String jsfsdm; + private String jsfsmc; + private String zffsdm; + private String zffsmc; + private String ysdwdm; + private String ysdwmc; + private String bmdm; + private String bmmc; + private String zydm; + private String zymc; + private String xmfldm; + private String xmflmc; + private String xmdm; + private String xmmc; + private String gnkmdm; + private String gnkmmc; + private String jjkmdm; + private String jjkmmc; + private String fz6dm; + private String fz6mc; + private String fz7dm; + private String fz7mc; + private String fz8dm; + private String fz8mc; + private String fz9dm; + private String fz9mc; + private String fzadm; + private String fzamc; + private String fz11dm; + private String fz11mc; + private String fz12dm; + private String fz12mc; + private String fz13dm; + private String fz13mc; + private String fz14dm; + private String fz14mc; + private String fz15dm; + private String fz15mc; + private String fz16dm; + private String fz16mc; + private String fz17dm; + private String fz17mc; + private String fz18dm; + private String fz18mc; + private String fz19dm; + private String fz19mc; + private String fz20dm; + private String fz20mc; + private String fz21dm; + private String fz21mc; + private String fz22dm; + private String fz22mc; + private String fz23dm; + private String fz23mc; + private String fz24dm; + private String fz24mc; + private String fz25dm; + private String fz25mc; + private String fz26dm; + private String fz26mc; + private String fz27dm; + private String fz27mc; + private String fz28dm; + private String fz28mc; + private String fz29dm; + private String fz29mc; + private String fz30dm; + private String fz30mc; + private String zth; + private String kmdm; + private String kmmc; + private String zt; + private String sfzfcg; + private Double je; + private Double ncysy; + private Double djje; + private Double ye; + private Integer lrrid; + private String lrr; + private String lrrq; + private String lrsj; + private Integer shrid; + private String shr; + private String shrq; + private String shsj; + private Integer pfrid; + private String pfr; + private String pfrq; + private String pfsj; + private Integer curshjd; + private Integer nextshjd; + private String flowcode; + private Double yjbfb; + private String cyskzfs; + private String sfjz; + private String module; + private String bz; + private String idzbbh; + private String xfzt; + private Integer sjly; + private String bygkz; + private Double ysje; + private String zcsxdm; + private String zcsxmc; + private Integer yf; + private String kzzl1dm; + private String kzzl1mc; + private String kzzl2dm; + private String kzzl2mc; + private String kzzl3dm; + private String kzzl3mc; + private String kzzl4dm; + private String kzzl4mc; + private String kzzl5dm; + private String kzzl5mc; + private String kzzl6dm; + private String kzzl6mc; + private String kzzl7dm; + private String kzzl7mc; + private String edwzc; + private String djId; + + public String getDjId() { + return djId; + } + + public void setDjId(String djId) { + this.djId = djId; + } + + public Integer getZbid() { + return zbid; + } + + public void setZbid(Integer zbid) { + this.zbid = zbid; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getZbdm() { + return zbdm; + } + + public void setZbdm(String zbdm) { + this.zbdm = zbdm; + } + + public String getZblb() { + return zblb; + } + + public void setZblb(String zblb) { + this.zblb = zblb; + } + + public Integer getSjzbid() { + return sjzbid; + } + + public void setSjzbid(Integer sjzbid) { + this.sjzbid = sjzbid; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getYsfadm() { + return ysfadm; + } + + public void setYsfadm(String ysfadm) { + this.ysfadm = ysfadm; + } + + public String getYsfamc() { + return ysfamc; + } + + public void setYsfamc(String ysfamc) { + this.ysfamc = ysfamc; + } + + public String getJflxdm() { + return jflxdm; + } + + public void setJflxdm(String jflxdm) { + this.jflxdm = jflxdm; + } + + public String getJflxmc() { + return jflxmc; + } + + public void setJflxmc(String jflxmc) { + this.jflxmc = jflxmc; + } + + public String getWhdm() { + return whdm; + } + + public void setWhdm(String whdm) { + this.whdm = whdm; + } + + public String getWhmc() { + return whmc; + } + + public void setWhmc(String whmc) { + this.whmc = whmc; + } + + public String getZblydm() { + return zblydm; + } + + public void setZblydm(String zblydm) { + this.zblydm = zblydm; + } + + public String getZblymc() { + return zblymc; + } + + public void setZblymc(String zblymc) { + this.zblymc = zblymc; + } + + public String getZjlydm() { + return zjlydm; + } + + public void setZjlydm(String zjlydm) { + this.zjlydm = zjlydm; + } + + public String getZjlymc() { + return zjlymc; + } + + public void setZjlymc(String zjlymc) { + this.zjlymc = zjlymc; + } + + public String getZjxzdm() { + return zjxzdm; + } + + public void setZjxzdm(String zjxzdm) { + this.zjxzdm = zjxzdm; + } + + public String getZjxzmc() { + return zjxzmc; + } + + public void setZjxzmc(String zjxzmc) { + this.zjxzmc = zjxzmc; + } + + public String getJsfsdm() { + return jsfsdm; + } + + public void setJsfsdm(String jsfsdm) { + this.jsfsdm = jsfsdm; + } + + public String getJsfsmc() { + return jsfsmc; + } + + public void setJsfsmc(String jsfsmc) { + this.jsfsmc = jsfsmc; + } + + public String getZffsdm() { + return zffsdm; + } + + public void setZffsdm(String zffsdm) { + this.zffsdm = zffsdm; + } + + public String getZffsmc() { + return zffsmc; + } + + public void setZffsmc(String zffsmc) { + this.zffsmc = zffsmc; + } + + public String getYsdwdm() { + return ysdwdm; + } + + public void setYsdwdm(String ysdwdm) { + this.ysdwdm = ysdwdm; + } + + public String getYsdwmc() { + return ysdwmc; + } + + public void setYsdwmc(String ysdwmc) { + this.ysdwmc = ysdwmc; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBmmc() { + return bmmc; + } + + public void setBmmc(String bmmc) { + this.bmmc = bmmc; + } + + public String getZydm() { + return zydm; + } + + public void setZydm(String zydm) { + this.zydm = zydm; + } + + public String getZymc() { + return zymc; + } + + public void setZymc(String zymc) { + this.zymc = zymc; + } + + public String getXmfldm() { + return xmfldm; + } + + public void setXmfldm(String xmfldm) { + this.xmfldm = xmfldm; + } + + public String getXmflmc() { + return xmflmc; + } + + public void setXmflmc(String xmflmc) { + this.xmflmc = xmflmc; + } + + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getXmmc() { + return xmmc; + } + + public void setXmmc(String xmmc) { + this.xmmc = xmmc; + } + + public String getGnkmdm() { + return gnkmdm; + } + + public void setGnkmdm(String gnkmdm) { + this.gnkmdm = gnkmdm; + } + + public String getGnkmmc() { + return gnkmmc; + } + + public void setGnkmmc(String gnkmmc) { + this.gnkmmc = gnkmmc; + } + + public String getJjkmdm() { + return jjkmdm; + } + + public void setJjkmdm(String jjkmdm) { + this.jjkmdm = jjkmdm; + } + + public String getJjkmmc() { + return jjkmmc; + } + + public void setJjkmmc(String jjkmmc) { + this.jjkmmc = jjkmmc; + } + + public String getFz6dm() { + return fz6dm; + } + + public void setFz6dm(String fz6dm) { + this.fz6dm = fz6dm; + } + + public String getFz6mc() { + return fz6mc; + } + + public void setFz6mc(String fz6mc) { + this.fz6mc = fz6mc; + } + + public String getFz7dm() { + return fz7dm; + } + + public void setFz7dm(String fz7dm) { + this.fz7dm = fz7dm; + } + + public String getFz7mc() { + return fz7mc; + } + + public void setFz7mc(String fz7mc) { + this.fz7mc = fz7mc; + } + + public String getFz8dm() { + return fz8dm; + } + + public void setFz8dm(String fz8dm) { + this.fz8dm = fz8dm; + } + + public String getFz8mc() { + return fz8mc; + } + + public void setFz8mc(String fz8mc) { + this.fz8mc = fz8mc; + } + + public String getFz9dm() { + return fz9dm; + } + + public void setFz9dm(String fz9dm) { + this.fz9dm = fz9dm; + } + + public String getFz9mc() { + return fz9mc; + } + + public void setFz9mc(String fz9mc) { + this.fz9mc = fz9mc; + } + + public String getFzadm() { + return fzadm; + } + + public void setFzadm(String fzadm) { + this.fzadm = fzadm; + } + + public String getFzamc() { + return fzamc; + } + + public void setFzamc(String fzamc) { + this.fzamc = fzamc; + } + + public String getFz11dm() { + return fz11dm; + } + + public void setFz11dm(String fz11dm) { + this.fz11dm = fz11dm; + } + + public String getFz11mc() { + return fz11mc; + } + + public void setFz11mc(String fz11mc) { + this.fz11mc = fz11mc; + } + + public String getFz12dm() { + return fz12dm; + } + + public void setFz12dm(String fz12dm) { + this.fz12dm = fz12dm; + } + + public String getFz12mc() { + return fz12mc; + } + + public void setFz12mc(String fz12mc) { + this.fz12mc = fz12mc; + } + + public String getFz13dm() { + return fz13dm; + } + + public void setFz13dm(String fz13dm) { + this.fz13dm = fz13dm; + } + + public String getFz13mc() { + return fz13mc; + } + + public void setFz13mc(String fz13mc) { + this.fz13mc = fz13mc; + } + + public String getFz14dm() { + return fz14dm; + } + + public void setFz14dm(String fz14dm) { + this.fz14dm = fz14dm; + } + + public String getFz14mc() { + return fz14mc; + } + + public void setFz14mc(String fz14mc) { + this.fz14mc = fz14mc; + } + + public String getFz15dm() { + return fz15dm; + } + + public void setFz15dm(String fz15dm) { + this.fz15dm = fz15dm; + } + + public String getFz15mc() { + return fz15mc; + } + + public void setFz15mc(String fz15mc) { + this.fz15mc = fz15mc; + } + + public String getFz16dm() { + return fz16dm; + } + + public void setFz16dm(String fz16dm) { + this.fz16dm = fz16dm; + } + + public String getFz16mc() { + return fz16mc; + } + + public void setFz16mc(String fz16mc) { + this.fz16mc = fz16mc; + } + + public String getFz17dm() { + return fz17dm; + } + + public void setFz17dm(String fz17dm) { + this.fz17dm = fz17dm; + } + + public String getFz17mc() { + return fz17mc; + } + + public void setFz17mc(String fz17mc) { + this.fz17mc = fz17mc; + } + + public String getFz18dm() { + return fz18dm; + } + + public void setFz18dm(String fz18dm) { + this.fz18dm = fz18dm; + } + + public String getFz18mc() { + return fz18mc; + } + + public void setFz18mc(String fz18mc) { + this.fz18mc = fz18mc; + } + + public String getFz19dm() { + return fz19dm; + } + + public void setFz19dm(String fz19dm) { + this.fz19dm = fz19dm; + } + + public String getFz19mc() { + return fz19mc; + } + + public void setFz19mc(String fz19mc) { + this.fz19mc = fz19mc; + } + + public String getFz20dm() { + return fz20dm; + } + + public void setFz20dm(String fz20dm) { + this.fz20dm = fz20dm; + } + + public String getFz20mc() { + return fz20mc; + } + + public void setFz20mc(String fz20mc) { + this.fz20mc = fz20mc; + } + + public String getFz21dm() { + return fz21dm; + } + + public void setFz21dm(String fz21dm) { + this.fz21dm = fz21dm; + } + + public String getFz21mc() { + return fz21mc; + } + + public void setFz21mc(String fz21mc) { + this.fz21mc = fz21mc; + } + + public String getFz22dm() { + return fz22dm; + } + + public void setFz22dm(String fz22dm) { + this.fz22dm = fz22dm; + } + + public String getFz22mc() { + return fz22mc; + } + + public void setFz22mc(String fz22mc) { + this.fz22mc = fz22mc; + } + + public String getFz23dm() { + return fz23dm; + } + + public void setFz23dm(String fz23dm) { + this.fz23dm = fz23dm; + } + + public String getFz23mc() { + return fz23mc; + } + + public void setFz23mc(String fz23mc) { + this.fz23mc = fz23mc; + } + + public String getFz24dm() { + return fz24dm; + } + + public void setFz24dm(String fz24dm) { + this.fz24dm = fz24dm; + } + + public String getFz24mc() { + return fz24mc; + } + + public void setFz24mc(String fz24mc) { + this.fz24mc = fz24mc; + } + + public String getFz25dm() { + return fz25dm; + } + + public void setFz25dm(String fz25dm) { + this.fz25dm = fz25dm; + } + + public String getFz25mc() { + return fz25mc; + } + + public void setFz25mc(String fz25mc) { + this.fz25mc = fz25mc; + } + + public String getFz26dm() { + return fz26dm; + } + + public void setFz26dm(String fz26dm) { + this.fz26dm = fz26dm; + } + + public String getFz26mc() { + return fz26mc; + } + + public void setFz26mc(String fz26mc) { + this.fz26mc = fz26mc; + } + + public String getFz27dm() { + return fz27dm; + } + + public void setFz27dm(String fz27dm) { + this.fz27dm = fz27dm; + } + + public String getFz27mc() { + return fz27mc; + } + + public void setFz27mc(String fz27mc) { + this.fz27mc = fz27mc; + } + + public String getFz28dm() { + return fz28dm; + } + + public void setFz28dm(String fz28dm) { + this.fz28dm = fz28dm; + } + + public String getFz28mc() { + return fz28mc; + } + + public void setFz28mc(String fz28mc) { + this.fz28mc = fz28mc; + } + + public String getFz29dm() { + return fz29dm; + } + + public void setFz29dm(String fz29dm) { + this.fz29dm = fz29dm; + } + + public String getFz29mc() { + return fz29mc; + } + + public void setFz29mc(String fz29mc) { + this.fz29mc = fz29mc; + } + + public String getFz30dm() { + return fz30dm; + } + + public void setFz30dm(String fz30dm) { + this.fz30dm = fz30dm; + } + + public String getFz30mc() { + return fz30mc; + } + + public void setFz30mc(String fz30mc) { + this.fz30mc = fz30mc; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getZt() { + return zt; + } + + public void setZt(String zt) { + this.zt = zt; + } + + public String getSfzfcg() { + return sfzfcg; + } + + public void setSfzfcg(String sfzfcg) { + this.sfzfcg = sfzfcg; + } + + public Double getJe() { + return je; + } + + public void setJe(Double je) { + this.je = je; + } + + public Double getNcysy() { + return ncysy; + } + + public void setNcysy(Double ncysy) { + this.ncysy = ncysy; + } + + public Double getDjje() { + return djje; + } + + public void setDjje(Double djje) { + this.djje = djje; + } + + public Double getYe() { + return ye; + } + + public void setYe(Double ye) { + this.ye = ye; + } + + public Integer getLrrid() { + return lrrid; + } + + public void setLrrid(Integer lrrid) { + this.lrrid = lrrid; + } + + public String getLrr() { + return lrr; + } + + public void setLrr(String lrr) { + this.lrr = lrr; + } + + public String getLrrq() { + return lrrq; + } + + public void setLrrq(String lrrq) { + this.lrrq = lrrq; + } + + public String getLrsj() { + return lrsj; + } + + public void setLrsj(String lrsj) { + this.lrsj = lrsj; + } + + public Integer getShrid() { + return shrid; + } + + public void setShrid(Integer shrid) { + this.shrid = shrid; + } + + public String getShr() { + return shr; + } + + public void setShr(String shr) { + this.shr = shr; + } + + public String getShrq() { + return shrq; + } + + public void setShrq(String shrq) { + this.shrq = shrq; + } + + public String getShsj() { + return shsj; + } + + public void setShsj(String shsj) { + this.shsj = shsj; + } + + public Integer getPfrid() { + return pfrid; + } + + public void setPfrid(Integer pfrid) { + this.pfrid = pfrid; + } + + public String getPfr() { + return pfr; + } + + public void setPfr(String pfr) { + this.pfr = pfr; + } + + public String getPfrq() { + return pfrq; + } + + public void setPfrq(String pfrq) { + this.pfrq = pfrq; + } + + public String getPfsj() { + return pfsj; + } + + public void setPfsj(String pfsj) { + this.pfsj = pfsj; + } + + public Integer getCurshjd() { + return curshjd; + } + + public void setCurshjd(Integer curshjd) { + this.curshjd = curshjd; + } + + public Integer getNextshjd() { + return nextshjd; + } + + public void setNextshjd(Integer nextshjd) { + this.nextshjd = nextshjd; + } + + public String getFlowcode() { + return flowcode; + } + + public void setFlowcode(String flowcode) { + this.flowcode = flowcode; + } + + public Double getYjbfb() { + return yjbfb; + } + + public void setYjbfb(Double yjbfb) { + this.yjbfb = yjbfb; + } + + public String getCyskzfs() { + return cyskzfs; + } + + public void setCyskzfs(String cyskzfs) { + this.cyskzfs = cyskzfs; + } + + public String getSfjz() { + return sfjz; + } + + public void setSfjz(String sfjz) { + this.sfjz = sfjz; + } + + public String getModule() { + return module; + } + + public void setModule(String module) { + this.module = module; + } + + public String getBz() { + return bz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + public String getIdzbbh() { + return idzbbh; + } + + public void setIdzbbh(String idzbbh) { + this.idzbbh = idzbbh; + } + + public String getXfzt() { + return xfzt; + } + + public void setXfzt(String xfzt) { + this.xfzt = xfzt; + } + + public Integer getSjly() { + return sjly; + } + + public void setSjly(Integer sjly) { + this.sjly = sjly; + } + + public String getBygkz() { + return bygkz; + } + + public void setBygkz(String bygkz) { + this.bygkz = bygkz; + } + + public Double getYsje() { + return ysje; + } + + public void setYsje(Double ysje) { + this.ysje = ysje; + } + + public String getZcsxdm() { + return zcsxdm; + } + + public void setZcsxdm(String zcsxdm) { + this.zcsxdm = zcsxdm; + } + + public String getZcsxmc() { + return zcsxmc; + } + + public void setZcsxmc(String zcsxmc) { + this.zcsxmc = zcsxmc; + } + + public Integer getYf() { + return yf; + } + + public void setYf(Integer yf) { + this.yf = yf; + } + + public String getKzzl1dm() { + return kzzl1dm; + } + + public void setKzzl1dm(String kzzl1dm) { + this.kzzl1dm = kzzl1dm; + } + + public String getKzzl1mc() { + return kzzl1mc; + } + + public void setKzzl1mc(String kzzl1mc) { + this.kzzl1mc = kzzl1mc; + } + + public String getKzzl2dm() { + return kzzl2dm; + } + + public void setKzzl2dm(String kzzl2dm) { + this.kzzl2dm = kzzl2dm; + } + + public String getKzzl2mc() { + return kzzl2mc; + } + + public void setKzzl2mc(String kzzl2mc) { + this.kzzl2mc = kzzl2mc; + } + + public String getKzzl3dm() { + return kzzl3dm; + } + + public void setKzzl3dm(String kzzl3dm) { + this.kzzl3dm = kzzl3dm; + } + + public String getKzzl3mc() { + return kzzl3mc; + } + + public void setKzzl3mc(String kzzl3mc) { + this.kzzl3mc = kzzl3mc; + } + + public String getKzzl4dm() { + return kzzl4dm; + } + + public void setKzzl4dm(String kzzl4dm) { + this.kzzl4dm = kzzl4dm; + } + + public String getKzzl4mc() { + return kzzl4mc; + } + + public void setKzzl4mc(String kzzl4mc) { + this.kzzl4mc = kzzl4mc; + } + + public String getKzzl5dm() { + return kzzl5dm; + } + + public void setKzzl5dm(String kzzl5dm) { + this.kzzl5dm = kzzl5dm; + } + + public String getKzzl5mc() { + return kzzl5mc; + } + + public void setKzzl5mc(String kzzl5mc) { + this.kzzl5mc = kzzl5mc; + } + + public String getKzzl6dm() { + return kzzl6dm; + } + + public void setKzzl6dm(String kzzl6dm) { + this.kzzl6dm = kzzl6dm; + } + + public String getKzzl6mc() { + return kzzl6mc; + } + + public void setKzzl6mc(String kzzl6mc) { + this.kzzl6mc = kzzl6mc; + } + + public String getKzzl7dm() { + return kzzl7dm; + } + + public void setKzzl7dm(String kzzl7dm) { + this.kzzl7dm = kzzl7dm; + } + + public String getKzzl7mc() { + return kzzl7mc; + } + + public void setKzzl7mc(String kzzl7mc) { + this.kzzl7mc = kzzl7mc; + } + + public String getEdwzc() { + return edwzc; + } + + public void setEdwzc(String edwzc) { + this.edwzc = edwzc; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.xml new file mode 100644 index 00000000..e23f2bfd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/entity/GbiZbxmbEntity.xml @@ -0,0 +1,1646 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ZBID + ,GSDM + ,KJND + ,ZBDM + ,ZBLB + ,SJZBID + ,ZY + ,YSFADM + ,YSFAMC + ,JFLXDM + ,JFLXMC + ,WHDM + ,WHMC + ,ZBLYDM + ,ZBLYMC + ,ZJLYDM + ,ZJLYMC + ,ZJXZDM + ,ZJXZMC + ,JSFSDM + ,JSFSMC + ,ZFFSDM + ,ZFFSMC + ,YSDWDM + ,YSDWMC + ,BMDM + ,BMMC + ,ZYDM + ,ZYMC + ,XMFLDM + ,XMFLMC + ,XMDM + ,XMMC + ,GNKMDM + ,GNKMMC + ,JJKMDM + ,JJKMMC + ,FZ6DM + ,FZ6MC + ,FZ7DM + ,FZ7MC + ,FZ8DM + ,FZ8MC + ,FZ9DM + ,FZ9MC + ,FZADM + ,FZAMC + ,FZ11DM + ,FZ11MC + ,FZ12DM + ,FZ12MC + ,FZ13DM + ,FZ13MC + ,FZ14DM + ,FZ14MC + ,FZ15DM + ,FZ15MC + ,FZ16DM + ,FZ16MC + ,FZ17DM + ,FZ17MC + ,FZ18DM + ,FZ18MC + ,FZ19DM + ,FZ19MC + ,FZ20DM + ,FZ20MC + ,FZ21DM + ,FZ21MC + ,FZ22DM + ,FZ22MC + ,FZ23DM + ,FZ23MC + ,FZ24DM + ,FZ24MC + ,FZ25DM + ,FZ25MC + ,FZ26DM + ,FZ26MC + ,FZ27DM + ,FZ27MC + ,FZ28DM + ,FZ28MC + ,FZ29DM + ,FZ29MC + ,FZ30DM + ,FZ30MC + ,ZTH + ,KMDM + ,KMMC + ,ZT + ,SFZFCG + ,JE + ,NCYSY + ,DJJE + ,YE + ,LRRID + ,LRR + ,LRRQ + ,LRSJ + ,SHRID + ,SHR + ,SHRQ + ,SHSJ + ,PFRID + ,PFR + ,PFRQ + ,PFSJ + ,CurSHJD + ,NextSHJD + ,FlowCode + ,YJBFB + ,CYSKZFS + ,SFJZ + ,MODULE + ,BZ + ,IDZBBH + ,XFZT + ,SJLY + ,BYGKZ + ,YSJE + ,ZCSXDM + ,ZCSXMC + ,YF + ,KZZL1DM + ,KZZL1MC + ,KZZL2DM + ,KZZL2MC + ,KZZL3DM + ,KZZL3MC + ,KZZL4DM + ,KZZL4MC + ,KZZL5DM + ,KZZL5MC + ,KZZL6DM + ,KZZL6MC + ,KZZL7DM + ,KZZL7MC + ,EDWZC + + + + + + + + + + + + + + + + + + + + + + insert into gbi_zbxmb( + + ZBID , + GSDM , + KJND , + ZBDM , + ZBLB , + SJZBID , + ZY , + YSFADM , + YSFAMC , + JFLXDM , + JFLXMC , + WHDM , + WHMC , + ZBLYDM , + ZBLYMC , + ZJLYDM , + ZJLYMC , + ZJXZDM , + ZJXZMC , + JSFSDM , + JSFSMC , + ZFFSDM , + ZFFSMC , + YSDWDM , + YSDWMC , + BMDM , + BMMC , + ZYDM , + ZYMC , + XMFLDM , + XMFLMC , + XMDM , + XMMC , + GNKMDM , + GNKMMC , + JJKMDM , + JJKMMC , + FZ6DM , + FZ6MC , + FZ7DM , + FZ7MC , + FZ8DM , + FZ8MC , + FZ9DM , + FZ9MC , + FZADM , + FZAMC , + FZ11DM , + FZ11MC , + FZ12DM , + FZ12MC , + FZ13DM , + FZ13MC , + FZ14DM , + FZ14MC , + FZ15DM , + FZ15MC , + FZ16DM , + FZ16MC , + FZ17DM , + FZ17MC , + FZ18DM , + FZ18MC , + FZ19DM , + FZ19MC , + FZ20DM , + FZ20MC , + FZ21DM , + FZ21MC , + FZ22DM , + FZ22MC , + FZ23DM , + FZ23MC , + FZ24DM , + FZ24MC , + FZ25DM , + FZ25MC , + FZ26DM , + FZ26MC , + FZ27DM , + FZ27MC , + FZ28DM , + FZ28MC , + FZ29DM , + FZ29MC , + FZ30DM , + FZ30MC , + ZTH , + KMDM , + KMMC , + ZT , + SFZFCG , + JE , + NCYSY , + DJJE , + YE , + LRRID , + LRR , + LRRQ , + LRSJ , + SHRID , + SHR , + SHRQ , + SHSJ , + PFRID , + PFR , + PFRQ , + PFSJ , + CurSHJD , + NextSHJD , + FlowCode , + YJBFB , + CYSKZFS , + SFJZ , + MODULE , + BZ , + IDZBBH , + XFZT , + SJLY , + BYGKZ , + YSJE , + ZCSXDM , + ZCSXMC , + YF , + KZZL1DM , + KZZL1MC , + KZZL2DM , + KZZL2MC , + KZZL3DM , + KZZL3MC , + KZZL4DM , + KZZL4MC , + KZZL5DM , + KZZL5MC , + KZZL6DM , + KZZL6MC , + KZZL7DM , + KZZL7MC , + EDWZC , + + )values( + + #{zbid} , + #{gsdm} , + #{kjnd} , + #{zbdm} , + #{zblb} , + #{sjzbid} , + #{zy} , + #{ysfadm} , + #{ysfamc} , + #{jflxdm} , + #{jflxmc} , + #{whdm} , + #{whmc} , + #{zblydm} , + #{zblymc} , + #{zjlydm} , + #{zjlymc} , + #{zjxzdm} , + #{zjxzmc} , + #{jsfsdm} , + #{jsfsmc} , + #{zffsdm} , + #{zffsmc} , + #{ysdwdm} , + #{ysdwmc} , + #{bmdm} , + #{bmmc} , + #{zydm} , + #{zymc} , + #{xmfldm} , + #{xmflmc} , + #{xmdm} , + #{xmmc} , + #{gnkmdm} , + #{gnkmmc} , + #{jjkmdm} , + #{jjkmmc} , + #{fz6dm} , + #{fz6mc} , + #{fz7dm} , + #{fz7mc} , + #{fz8dm} , + #{fz8mc} , + #{fz9dm} , + #{fz9mc} , + #{fzadm} , + #{fzamc} , + #{fz11dm} , + #{fz11mc} , + #{fz12dm} , + #{fz12mc} , + #{fz13dm} , + #{fz13mc} , + #{fz14dm} , + #{fz14mc} , + #{fz15dm} , + #{fz15mc} , + #{fz16dm} , + #{fz16mc} , + #{fz17dm} , + #{fz17mc} , + #{fz18dm} , + #{fz18mc} , + #{fz19dm} , + #{fz19mc} , + #{fz20dm} , + #{fz20mc} , + #{fz21dm} , + #{fz21mc} , + #{fz22dm} , + #{fz22mc} , + #{fz23dm} , + #{fz23mc} , + #{fz24dm} , + #{fz24mc} , + #{fz25dm} , + #{fz25mc} , + #{fz26dm} , + #{fz26mc} , + #{fz27dm} , + #{fz27mc} , + #{fz28dm} , + #{fz28mc} , + #{fz29dm} , + #{fz29mc} , + #{fz30dm} , + #{fz30mc} , + #{zth} , + #{kmdm} , + #{kmmc} , + #{zt} , + #{sfzfcg} , + #{je} , + #{ncysy} , + #{djje} , + #{ye} , + #{lrrid} , + #{lrr} , + #{lrrq} , + #{lrsj} , + #{shrid} , + #{shr} , + #{shrq} , + #{shsj} , + #{pfrid} , + #{pfr} , + #{pfrq} , + #{pfsj} , + #{curshjd} , + #{nextshjd} , + #{flowcode} , + #{yjbfb} , + #{cyskzfs} , + #{sfjz} , + #{module} , + #{bz} , + #{idzbbh} , + #{xfzt} , + #{sjly} , + #{bygkz} , + #{ysje} , + #{zcsxdm} , + #{zcsxmc} , + #{yf} , + #{kzzl1dm} , + #{kzzl1mc} , + #{kzzl2dm} , + #{kzzl2mc} , + #{kzzl3dm} , + #{kzzl3mc} , + #{kzzl4dm} , + #{kzzl4mc} , + #{kzzl5dm} , + #{kzzl5mc} , + #{kzzl6dm} , + #{kzzl6mc} , + #{kzzl7dm} , + #{kzzl7mc} , + #{edwzc} , + + ) + + + + insert into gbi_zbxmb(ZBDM, SJZBID, ZY, YSFADM, YSFAMC, JFLXDM, JFLXMC, WHDM, WHMC, ZBLYDM, ZBLYMC, ZJLYDM, ZJLYMC, ZJXZDM, ZJXZMC, JSFSDM, JSFSMC, ZFFSDM, ZFFSMC, YSDWDM, YSDWMC, BMDM, BMMC, ZYDM, ZYMC, XMFLDM, XMFLMC, XMDM, XMMC, GNKMDM, GNKMMC, JJKMDM, JJKMMC, FZ6DM, FZ6MC, FZ7DM, FZ7MC, FZ8DM, FZ8MC, FZ9DM, FZ9MC, FZADM, FZAMC, FZ11DM, FZ11MC, FZ12DM, FZ12MC, FZ13DM, FZ13MC, FZ14DM, FZ14MC, FZ15DM, FZ15MC, FZ16DM, FZ16MC, FZ17DM, FZ17MC, FZ18DM, FZ18MC, FZ19DM, FZ19MC, FZ20DM, FZ20MC, FZ21DM, FZ21MC, FZ22DM, FZ22MC, FZ23DM, FZ23MC, FZ24DM, FZ24MC, FZ25DM, FZ25MC, FZ26DM, FZ26MC, FZ27DM, FZ27MC, FZ28DM, FZ28MC, FZ29DM, FZ29MC, FZ30DM, FZ30MC, ZTH, KMDM, KMMC, ZT, SFZFCG, JE, NCYSY, DJJE, YE, LRRID, LRR, LRRQ, LRSJ, SHRID, SHR, SHRQ, SHSJ, PFRID, PFR, PFRQ, PFSJ, CurSHJD, NextSHJD, FlowCode, YJBFB, CYSKZFS, SFJZ, MODULE, BZ, IDZBBH, XFZT, SJLY, BYGKZ, YSJE, ZCSXDM, ZCSXMC, YF, KZZL1DM, KZZL1MC, KZZL2DM, KZZL2MC, KZZL3DM, KZZL3MC, KZZL4DM, KZZL4MC, KZZL5DM, KZZL5MC, KZZL6DM, KZZL6MC, KZZL7DM, KZZL7MC, EDWZC, sts) + values + + (#{entity.zbdm},#{entity.sjzbid},#{entity.zy},#{entity.ysfadm},#{entity.ysfamc},#{entity.jflxdm},#{entity.jflxmc},#{entity.whdm},#{entity.whmc},#{entity.zblydm},#{entity.zblymc},#{entity.zjlydm},#{entity.zjlymc},#{entity.zjxzdm},#{entity.zjxzmc},#{entity.jsfsdm},#{entity.jsfsmc},#{entity.zffsdm},#{entity.zffsmc},#{entity.ysdwdm},#{entity.ysdwmc},#{entity.bmdm},#{entity.bmmc},#{entity.zydm},#{entity.zymc},#{entity.xmfldm},#{entity.xmflmc},#{entity.xmdm},#{entity.xmmc},#{entity.gnkmdm},#{entity.gnkmmc},#{entity.jjkmdm},#{entity.jjkmmc},#{entity.fz6dm},#{entity.fz6mc},#{entity.fz7dm},#{entity.fz7mc},#{entity.fz8dm},#{entity.fz8mc},#{entity.fz9dm},#{entity.fz9mc},#{entity.fzadm},#{entity.fzamc},#{entity.fz11dm},#{entity.fz11mc},#{entity.fz12dm},#{entity.fz12mc},#{entity.fz13dm},#{entity.fz13mc},#{entity.fz14dm},#{entity.fz14mc},#{entity.fz15dm},#{entity.fz15mc},#{entity.fz16dm},#{entity.fz16mc},#{entity.fz17dm},#{entity.fz17mc},#{entity.fz18dm},#{entity.fz18mc},#{entity.fz19dm},#{entity.fz19mc},#{entity.fz20dm},#{entity.fz20mc},#{entity.fz21dm},#{entity.fz21mc},#{entity.fz22dm},#{entity.fz22mc},#{entity.fz23dm},#{entity.fz23mc},#{entity.fz24dm},#{entity.fz24mc},#{entity.fz25dm},#{entity.fz25mc},#{entity.fz26dm},#{entity.fz26mc},#{entity.fz27dm},#{entity.fz27mc},#{entity.fz28dm},#{entity.fz28mc},#{entity.fz29dm},#{entity.fz29mc},#{entity.fz30dm},#{entity.fz30mc},#{entity.zth},#{entity.kmdm},#{entity.kmmc},#{entity.zt},#{entity.sfzfcg},#{entity.je},#{entity.ncysy},#{entity.djje},#{entity.ye},#{entity.lrrid},#{entity.lrr},#{entity.lrrq},#{entity.lrsj},#{entity.shrid},#{entity.shr},#{entity.shrq},#{entity.shsj},#{entity.pfrid},#{entity.pfr},#{entity.pfrq},#{entity.pfsj},#{entity.curshjd},#{entity.nextshjd},#{entity.flowcode},#{entity.yjbfb},#{entity.cyskzfs},#{entity.sfjz},#{entity.module},#{entity.bz},#{entity.idzbbh},#{entity.xfzt},#{entity.sjly},#{entity.bygkz},#{entity.ysje},#{entity.zcsxdm},#{entity.zcsxmc},#{entity.yf},#{entity.kzzl1dm},#{entity.kzzl1mc},#{entity.kzzl2dm},#{entity.kzzl2mc},#{entity.kzzl3dm},#{entity.kzzl3mc},#{entity.kzzl4dm},#{entity.kzzl4mc},#{entity.kzzl5dm},#{entity.kzzl5mc},#{entity.kzzl6dm},#{entity.kzzl6mc},#{entity.kzzl7dm},#{entity.kzzl7mc},#{entity.edwzc}, 'Y') + + + + + insert into gbi_zbxmb(ZBDM, SJZBID, ZY, YSFADM, YSFAMC, JFLXDM, JFLXMC, WHDM, WHMC, ZBLYDM, ZBLYMC, ZJLYDM, ZJLYMC, ZJXZDM, ZJXZMC, JSFSDM, JSFSMC, ZFFSDM, ZFFSMC, YSDWDM, YSDWMC, BMDM, BMMC, ZYDM, ZYMC, XMFLDM, XMFLMC, XMDM, XMMC, GNKMDM, GNKMMC, JJKMDM, JJKMMC, FZ6DM, FZ6MC, FZ7DM, FZ7MC, FZ8DM, FZ8MC, FZ9DM, FZ9MC, FZADM, FZAMC, FZ11DM, FZ11MC, FZ12DM, FZ12MC, FZ13DM, FZ13MC, FZ14DM, FZ14MC, FZ15DM, FZ15MC, FZ16DM, FZ16MC, FZ17DM, FZ17MC, FZ18DM, FZ18MC, FZ19DM, FZ19MC, FZ20DM, FZ20MC, FZ21DM, FZ21MC, FZ22DM, FZ22MC, FZ23DM, FZ23MC, FZ24DM, FZ24MC, FZ25DM, FZ25MC, FZ26DM, FZ26MC, FZ27DM, FZ27MC, FZ28DM, FZ28MC, FZ29DM, FZ29MC, FZ30DM, FZ30MC, ZTH, KMDM, KMMC, ZT, SFZFCG, JE, NCYSY, DJJE, YE, LRRID, LRR, LRRQ, LRSJ, SHRID, SHR, SHRQ, SHSJ, PFRID, PFR, PFRQ, PFSJ, CurSHJD, NextSHJD, FlowCode, YJBFB, CYSKZFS, SFJZ, MODULE, BZ, IDZBBH, XFZT, SJLY, BYGKZ, YSJE, ZCSXDM, ZCSXMC, YF, KZZL1DM, KZZL1MC, KZZL2DM, KZZL2MC, KZZL3DM, KZZL3MC, KZZL4DM, KZZL4MC, KZZL5DM, KZZL5MC, KZZL6DM, KZZL6MC, KZZL7DM, KZZL7MC, EDWZC) + values + + (#{entity.zbdm},#{entity.sjzbid},#{entity.zy},#{entity.ysfadm},#{entity.ysfamc},#{entity.jflxdm},#{entity.jflxmc},#{entity.whdm},#{entity.whmc},#{entity.zblydm},#{entity.zblymc},#{entity.zjlydm},#{entity.zjlymc},#{entity.zjxzdm},#{entity.zjxzmc},#{entity.jsfsdm},#{entity.jsfsmc},#{entity.zffsdm},#{entity.zffsmc},#{entity.ysdwdm},#{entity.ysdwmc},#{entity.bmdm},#{entity.bmmc},#{entity.zydm},#{entity.zymc},#{entity.xmfldm},#{entity.xmflmc},#{entity.xmdm},#{entity.xmmc},#{entity.gnkmdm},#{entity.gnkmmc},#{entity.jjkmdm},#{entity.jjkmmc},#{entity.fz6dm},#{entity.fz6mc},#{entity.fz7dm},#{entity.fz7mc},#{entity.fz8dm},#{entity.fz8mc},#{entity.fz9dm},#{entity.fz9mc},#{entity.fzadm},#{entity.fzamc},#{entity.fz11dm},#{entity.fz11mc},#{entity.fz12dm},#{entity.fz12mc},#{entity.fz13dm},#{entity.fz13mc},#{entity.fz14dm},#{entity.fz14mc},#{entity.fz15dm},#{entity.fz15mc},#{entity.fz16dm},#{entity.fz16mc},#{entity.fz17dm},#{entity.fz17mc},#{entity.fz18dm},#{entity.fz18mc},#{entity.fz19dm},#{entity.fz19mc},#{entity.fz20dm},#{entity.fz20mc},#{entity.fz21dm},#{entity.fz21mc},#{entity.fz22dm},#{entity.fz22mc},#{entity.fz23dm},#{entity.fz23mc},#{entity.fz24dm},#{entity.fz24mc},#{entity.fz25dm},#{entity.fz25mc},#{entity.fz26dm},#{entity.fz26mc},#{entity.fz27dm},#{entity.fz27mc},#{entity.fz28dm},#{entity.fz28mc},#{entity.fz29dm},#{entity.fz29mc},#{entity.fz30dm},#{entity.fz30mc},#{entity.zth},#{entity.kmdm},#{entity.kmmc},#{entity.zt},#{entity.sfzfcg},#{entity.je},#{entity.ncysy},#{entity.djje},#{entity.ye},#{entity.lrrid},#{entity.lrr},#{entity.lrrq},#{entity.lrsj},#{entity.shrid},#{entity.shr},#{entity.shrq},#{entity.shsj},#{entity.pfrid},#{entity.pfr},#{entity.pfrq},#{entity.pfsj},#{entity.curshjd},#{entity.nextshjd},#{entity.flowcode},#{entity.yjbfb},#{entity.cyskzfs},#{entity.sfjz},#{entity.module},#{entity.bz},#{entity.idzbbh},#{entity.xfzt},#{entity.sjly},#{entity.bygkz},#{entity.ysje},#{entity.zcsxdm},#{entity.zcsxmc},#{entity.yf},#{entity.kzzl1dm},#{entity.kzzl1mc},#{entity.kzzl2dm},#{entity.kzzl2mc},#{entity.kzzl3dm},#{entity.kzzl3mc},#{entity.kzzl4dm},#{entity.kzzl4mc},#{entity.kzzl5dm},#{entity.kzzl5mc},#{entity.kzzl6dm},#{entity.kzzl6mc},#{entity.kzzl7dm},#{entity.kzzl7mc},#{entity.edwzc}) + + on duplicate key update + ZBDM = values(ZBDM), + SJZBID = values(SJZBID), + ZY = values(ZY), + YSFADM = values(YSFADM), + YSFAMC = values(YSFAMC), + JFLXDM = values(JFLXDM), + JFLXMC = values(JFLXMC), + WHDM = values(WHDM), + WHMC = values(WHMC), + ZBLYDM = values(ZBLYDM), + ZBLYMC = values(ZBLYMC), + ZJLYDM = values(ZJLYDM), + ZJLYMC = values(ZJLYMC), + ZJXZDM = values(ZJXZDM), + ZJXZMC = values(ZJXZMC), + JSFSDM = values(JSFSDM), + JSFSMC = values(JSFSMC), + ZFFSDM = values(ZFFSDM), + ZFFSMC = values(ZFFSMC), + YSDWDM = values(YSDWDM), + YSDWMC = values(YSDWMC), + BMDM = values(BMDM), + BMMC = values(BMMC), + ZYDM = values(ZYDM), + ZYMC = values(ZYMC), + XMFLDM = values(XMFLDM), + XMFLMC = values(XMFLMC), + XMDM = values(XMDM), + XMMC = values(XMMC), + GNKMDM = values(GNKMDM), + GNKMMC = values(GNKMMC), + JJKMDM = values(JJKMDM), + JJKMMC = values(JJKMMC), + FZ6DM = values(FZ6DM), + FZ6MC = values(FZ6MC), + FZ7DM = values(FZ7DM), + FZ7MC = values(FZ7MC), + FZ8DM = values(FZ8DM), + FZ8MC = values(FZ8MC), + FZ9DM = values(FZ9DM), + FZ9MC = values(FZ9MC), + FZADM = values(FZADM), + FZAMC = values(FZAMC), + FZ11DM = values(FZ11DM), + FZ11MC = values(FZ11MC), + FZ12DM = values(FZ12DM), + FZ12MC = values(FZ12MC), + FZ13DM = values(FZ13DM), + FZ13MC = values(FZ13MC), + FZ14DM = values(FZ14DM), + FZ14MC = values(FZ14MC), + FZ15DM = values(FZ15DM), + FZ15MC = values(FZ15MC), + FZ16DM = values(FZ16DM), + FZ16MC = values(FZ16MC), + FZ17DM = values(FZ17DM), + FZ17MC = values(FZ17MC), + FZ18DM = values(FZ18DM), + FZ18MC = values(FZ18MC), + FZ19DM = values(FZ19DM), + FZ19MC = values(FZ19MC), + FZ20DM = values(FZ20DM), + FZ20MC = values(FZ20MC), + FZ21DM = values(FZ21DM), + FZ21MC = values(FZ21MC), + FZ22DM = values(FZ22DM), + FZ22MC = values(FZ22MC), + FZ23DM = values(FZ23DM), + FZ23MC = values(FZ23MC), + FZ24DM = values(FZ24DM), + FZ24MC = values(FZ24MC), + FZ25DM = values(FZ25DM), + FZ25MC = values(FZ25MC), + FZ26DM = values(FZ26DM), + FZ26MC = values(FZ26MC), + FZ27DM = values(FZ27DM), + FZ27MC = values(FZ27MC), + FZ28DM = values(FZ28DM), + FZ28MC = values(FZ28MC), + FZ29DM = values(FZ29DM), + FZ29MC = values(FZ29MC), + FZ30DM = values(FZ30DM), + FZ30MC = values(FZ30MC), + ZTH = values(ZTH), + KMDM = values(KMDM), + KMMC = values(KMMC), + ZT = values(ZT), + SFZFCG = values(SFZFCG), + JE = values(JE), + NCYSY = values(NCYSY), + DJJE = values(DJJE), + YE = values(YE), + LRRID = values(LRRID), + LRR = values(LRR), + LRRQ = values(LRRQ), + LRSJ = values(LRSJ), + SHRID = values(SHRID), + SHR = values(SHR), + SHRQ = values(SHRQ), + SHSJ = values(SHSJ), + PFRID = values(PFRID), + PFR = values(PFR), + PFRQ = values(PFRQ), + PFSJ = values(PFSJ), + CurSHJD = values(CurSHJD), + NextSHJD = values(NextSHJD), + FlowCode = values(FlowCode), + YJBFB = values(YJBFB), + CYSKZFS = values(CYSKZFS), + SFJZ = values(SFJZ), + MODULE = values(MODULE), + BZ = values(BZ), + IDZBBH = values(IDZBBH), + XFZT = values(XFZT), + SJLY = values(SJLY), + BYGKZ = values(BYGKZ), + YSJE = values(YSJE), + ZCSXDM = values(ZCSXDM), + ZCSXMC = values(ZCSXMC), + YF = values(YF), + KZZL1DM = values(KZZL1DM), + KZZL1MC = values(KZZL1MC), + KZZL2DM = values(KZZL2DM), + KZZL2MC = values(KZZL2MC), + KZZL3DM = values(KZZL3DM), + KZZL3MC = values(KZZL3MC), + KZZL4DM = values(KZZL4DM), + KZZL4MC = values(KZZL4MC), + KZZL5DM = values(KZZL5DM), + KZZL5MC = values(KZZL5MC), + KZZL6DM = values(KZZL6DM), + KZZL6MC = values(KZZL6MC), + KZZL7DM = values(KZZL7DM), + KZZL7MC = values(KZZL7MC), + EDWZC = values(EDWZC) + + +update gbi_zbxmb set + + ZBDM = #{zbdm}, + SJZBID = #{sjzbid}, + ZY = #{zy}, + YSFADM = #{ysfadm}, + YSFAMC = #{ysfamc}, + JFLXDM = #{jflxdm}, + JFLXMC = #{jflxmc}, + WHDM = #{whdm}, + WHMC = #{whmc}, + ZBLYDM = #{zblydm}, + ZBLYMC = #{zblymc}, + ZJLYDM = #{zjlydm}, + ZJLYMC = #{zjlymc}, + ZJXZDM = #{zjxzdm}, + ZJXZMC = #{zjxzmc}, + JSFSDM = #{jsfsdm}, + JSFSMC = #{jsfsmc}, + ZFFSDM = #{zffsdm}, + ZFFSMC = #{zffsmc}, + YSDWDM = #{ysdwdm}, + YSDWMC = #{ysdwmc}, + BMDM = #{bmdm}, + BMMC = #{bmmc}, + ZYDM = #{zydm}, + ZYMC = #{zymc}, + XMFLDM = #{xmfldm}, + XMFLMC = #{xmflmc}, + XMDM = #{xmdm}, + XMMC = #{xmmc}, + GNKMDM = #{gnkmdm}, + GNKMMC = #{gnkmmc}, + JJKMDM = #{jjkmdm}, + JJKMMC = #{jjkmmc}, + FZ6DM = #{fz6dm}, + FZ6MC = #{fz6mc}, + FZ7DM = #{fz7dm}, + FZ7MC = #{fz7mc}, + FZ8DM = #{fz8dm}, + FZ8MC = #{fz8mc}, + FZ9DM = #{fz9dm}, + FZ9MC = #{fz9mc}, + FZADM = #{fzadm}, + FZAMC = #{fzamc}, + FZ11DM = #{fz11dm}, + FZ11MC = #{fz11mc}, + FZ12DM = #{fz12dm}, + FZ12MC = #{fz12mc}, + FZ13DM = #{fz13dm}, + FZ13MC = #{fz13mc}, + FZ14DM = #{fz14dm}, + FZ14MC = #{fz14mc}, + FZ15DM = #{fz15dm}, + FZ15MC = #{fz15mc}, + FZ16DM = #{fz16dm}, + FZ16MC = #{fz16mc}, + FZ17DM = #{fz17dm}, + FZ17MC = #{fz17mc}, + FZ18DM = #{fz18dm}, + FZ18MC = #{fz18mc}, + FZ19DM = #{fz19dm}, + FZ19MC = #{fz19mc}, + FZ20DM = #{fz20dm}, + FZ20MC = #{fz20mc}, + FZ21DM = #{fz21dm}, + FZ21MC = #{fz21mc}, + FZ22DM = #{fz22dm}, + FZ22MC = #{fz22mc}, + FZ23DM = #{fz23dm}, + FZ23MC = #{fz23mc}, + FZ24DM = #{fz24dm}, + FZ24MC = #{fz24mc}, + FZ25DM = #{fz25dm}, + FZ25MC = #{fz25mc}, + FZ26DM = #{fz26dm}, + FZ26MC = #{fz26mc}, + FZ27DM = #{fz27dm}, + FZ27MC = #{fz27mc}, + FZ28DM = #{fz28dm}, + FZ28MC = #{fz28mc}, + FZ29DM = #{fz29dm}, + FZ29MC = #{fz29mc}, + FZ30DM = #{fz30dm}, + FZ30MC = #{fz30mc}, + ZTH = #{zth}, + KMDM = #{kmdm}, + KMMC = #{kmmc}, + ZT = #{zt}, + SFZFCG = #{sfzfcg}, + JE = #{je}, + NCYSY = #{ncysy}, + DJJE = #{djje}, + YE = #{ye}, + LRRID = #{lrrid}, + LRR = #{lrr}, + LRRQ = #{lrrq}, + LRSJ = #{lrsj}, + SHRID = #{shrid}, + SHR = #{shr}, + SHRQ = #{shrq}, + SHSJ = #{shsj}, + PFRID = #{pfrid}, + PFR = #{pfr}, + PFRQ = #{pfrq}, + PFSJ = #{pfsj}, + CurSHJD = #{curshjd}, + NextSHJD = #{nextshjd}, + FlowCode = #{flowcode}, + YJBFB = #{yjbfb}, + CYSKZFS = #{cyskzfs}, + SFJZ = #{sfjz}, + MODULE = #{module}, + BZ = #{bz}, + IDZBBH = #{idzbbh}, + XFZT = #{xfzt}, + SJLY = #{sjly}, + BYGKZ = #{bygkz}, + YSJE = #{ysje}, + ZCSXDM = #{zcsxdm}, + ZCSXMC = #{zcsxmc}, + YF = #{yf}, + KZZL1DM = #{kzzl1dm}, + KZZL1MC = #{kzzl1mc}, + KZZL2DM = #{kzzl2dm}, + KZZL2MC = #{kzzl2mc}, + KZZL3DM = #{kzzl3dm}, + KZZL3MC = #{kzzl3mc}, + KZZL4DM = #{kzzl4dm}, + KZZL4MC = #{kzzl4mc}, + KZZL5DM = #{kzzl5dm}, + KZZL5MC = #{kzzl5mc}, + KZZL6DM = #{kzzl6dm}, + KZZL6MC = #{kzzl6mc}, + KZZL7DM = #{kzzl7dm}, + KZZL7MC = #{kzzl7mc}, + EDWZC = #{edwzc}, + +where ZBID = #{zbid} + + + +update gbi_zbxmb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where ZBID = #{zbid} + + + +update gbi_zbxmb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and ZBID = #{zbid} + and GSDM = #{gsdm} + and KJND = #{kjnd} + and ZBDM = #{zbdm} + and ZBLB = #{zblb} + and SJZBID = #{sjzbid} + and ZY = #{zy} + and YSFADM = #{ysfadm} + and YSFAMC = #{ysfamc} + and JFLXDM = #{jflxdm} + and JFLXMC = #{jflxmc} + and WHDM = #{whdm} + and WHMC = #{whmc} + and ZBLYDM = #{zblydm} + and ZBLYMC = #{zblymc} + and ZJLYDM = #{zjlydm} + and ZJLYMC = #{zjlymc} + and ZJXZDM = #{zjxzdm} + and ZJXZMC = #{zjxzmc} + and JSFSDM = #{jsfsdm} + and JSFSMC = #{jsfsmc} + and ZFFSDM = #{zffsdm} + and ZFFSMC = #{zffsmc} + and YSDWDM = #{ysdwdm} + and YSDWMC = #{ysdwmc} + and BMDM = #{bmdm} + and BMMC = #{bmmc} + and ZYDM = #{zydm} + and ZYMC = #{zymc} + and XMFLDM = #{xmfldm} + and XMFLMC = #{xmflmc} + and XMDM = #{xmdm} + and XMMC = #{xmmc} + and GNKMDM = #{gnkmdm} + and GNKMMC = #{gnkmmc} + and JJKMDM = #{jjkmdm} + and JJKMMC = #{jjkmmc} + and FZ6DM = #{fz6dm} + and FZ6MC = #{fz6mc} + and FZ7DM = #{fz7dm} + and FZ7MC = #{fz7mc} + and FZ8DM = #{fz8dm} + and FZ8MC = #{fz8mc} + and FZ9DM = #{fz9dm} + and FZ9MC = #{fz9mc} + and FZADM = #{fzadm} + and FZAMC = #{fzamc} + and FZ11DM = #{fz11dm} + and FZ11MC = #{fz11mc} + and FZ12DM = #{fz12dm} + and FZ12MC = #{fz12mc} + and FZ13DM = #{fz13dm} + and FZ13MC = #{fz13mc} + and FZ14DM = #{fz14dm} + and FZ14MC = #{fz14mc} + and FZ15DM = #{fz15dm} + and FZ15MC = #{fz15mc} + and FZ16DM = #{fz16dm} + and FZ16MC = #{fz16mc} + and FZ17DM = #{fz17dm} + and FZ17MC = #{fz17mc} + and FZ18DM = #{fz18dm} + and FZ18MC = #{fz18mc} + and FZ19DM = #{fz19dm} + and FZ19MC = #{fz19mc} + and FZ20DM = #{fz20dm} + and FZ20MC = #{fz20mc} + and FZ21DM = #{fz21dm} + and FZ21MC = #{fz21mc} + and FZ22DM = #{fz22dm} + and FZ22MC = #{fz22mc} + and FZ23DM = #{fz23dm} + and FZ23MC = #{fz23mc} + and FZ24DM = #{fz24dm} + and FZ24MC = #{fz24mc} + and FZ25DM = #{fz25dm} + and FZ25MC = #{fz25mc} + and FZ26DM = #{fz26dm} + and FZ26MC = #{fz26mc} + and FZ27DM = #{fz27dm} + and FZ27MC = #{fz27mc} + and FZ28DM = #{fz28dm} + and FZ28MC = #{fz28mc} + and FZ29DM = #{fz29dm} + and FZ29MC = #{fz29mc} + and FZ30DM = #{fz30dm} + and FZ30MC = #{fz30mc} + and ZTH = #{zth} + and KMDM = #{kmdm} + and KMMC = #{kmmc} + and ZT = #{zt} + and SFZFCG = #{sfzfcg} + and JE = #{je} + and NCYSY = #{ncysy} + and DJJE = #{djje} + and YE = #{ye} + and LRRID = #{lrrid} + and LRR = #{lrr} + and LRRQ = #{lrrq} + and LRSJ = #{lrsj} + and SHRID = #{shrid} + and SHR = #{shr} + and SHRQ = #{shrq} + and SHSJ = #{shsj} + and PFRID = #{pfrid} + and PFR = #{pfr} + and PFRQ = #{pfrq} + and PFSJ = #{pfsj} + and CurSHJD = #{curshjd} + and NextSHJD = #{nextshjd} + and FlowCode = #{flowcode} + and YJBFB = #{yjbfb} + and CYSKZFS = #{cyskzfs} + and SFJZ = #{sfjz} + and MODULE = #{module} + and BZ = #{bz} + and IDZBBH = #{idzbbh} + and XFZT = #{xfzt} + and SJLY = #{sjly} + and BYGKZ = #{bygkz} + and YSJE = #{ysje} + and ZCSXDM = #{zcsxdm} + and ZCSXMC = #{zcsxmc} + and YF = #{yf} + and KZZL1DM = #{kzzl1dm} + and KZZL1MC = #{kzzl1mc} + and KZZL2DM = #{kzzl2dm} + and KZZL2MC = #{kzzl2mc} + and KZZL3DM = #{kzzl3dm} + and KZZL3MC = #{kzzl3mc} + and KZZL4DM = #{kzzl4dm} + and KZZL4MC = #{kzzl4mc} + and KZZL5DM = #{kzzl5dm} + and KZZL5MC = #{kzzl5mc} + and KZZL6DM = #{kzzl6dm} + and KZZL6MC = #{kzzl6mc} + and KZZL7DM = #{kzzl7dm} + and KZZL7MC = #{kzzl7mc} + and EDWZC = #{edwzc} + + + + + + Update GBI_ZBXMB set bmmc=#{bmmc} where gsdm=#{gsdm} and kjnd=#{kjnd} and bmdm=#{bmdm} + + + + + delete from gbi_zbxmb where ZBID = #{zbid} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/IGbiZbxmbService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/IGbiZbxmbService.java new file mode 100644 index 00000000..de6dd430 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/IGbiZbxmbService.java @@ -0,0 +1,42 @@ +package com.hzya.frame.grpU8.nxproof.gbizbxmb.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * (GbiZbxmb)表服务接口 + * + * @author makejava + * @since 2024-08-14 16:58:44 + */ +public interface IGbiZbxmbService extends IBaseService{ + /** + * + * @content 项目指标新增 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/6 11:39 + * **/ + Object saveGbiZbxmb(JSONObject jsonObject); + + /** + * + * @content 项目指标更新 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/7 11:37 + * **/ + Object updateGbiZbxmb(JSONObject jsonObject); + + /** + * + * @content 项目指标删除 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/7 14:50 + * **/ + Object deleteGbiZbxmb(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/impl/GbiZbxmbServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/impl/GbiZbxmbServiceImpl.java new file mode 100644 index 00000000..dc984aac --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/gbizbxmb/service/impl/GbiZbxmbServiceImpl.java @@ -0,0 +1,339 @@ +package com.hzya.frame.grpU8.nxproof.gbizbxmb.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.service.IGbiZbxmbService; +import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao; +import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity; +import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao; +import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity; +import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; +import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao; +import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity; +import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao; +import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity; +import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao; +import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.UUID; + +/** + * (GbiZbxmb)表服务实现类 + * + * @author makejava + * @since 2024-08-14 16:58:44 + */ +@Service(value = "gbiZbxmbService") +public class GbiZbxmbServiceImpl extends BaseService implements IGbiZbxmbService { + + private IGbiZbxmbDao gbiZbxmbDao; + @Autowired + private ISenderPubbmxxDao pubbmxxDao; + @Autowired + private ISenderGlXmzlDao glXmzlDao; + @Autowired + private IZbWhszDao zbWhszDao; + @Autowired + private IZbZblyDao zbZblyDao; + @Autowired + private IGlFzxzlDao glFzxzlDao; + @Autowired + private IGlCzrzDao glCzrzDao; + + + @Autowired + public void setGbiZbxmbDao(IGbiZbxmbDao dao) { + this.gbiZbxmbDao = dao; + this.dao = dao; + } + + //保存项目指标 + @Override + public Object saveGbiZbxmb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zblb"))){ + return BaseResult.getFailureMessageEntity("请传递指标类别"); + } + GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class); + try { + //查询指标id最大值和指标代码最大值 + GbiZbxmbEntity gbiZbxmbEntityZbid = gbiZbxmbDao.queryZbidAndZbdm(gbiZbxmbEntity); + gbiZbxmbEntity.setZbid(gbiZbxmbEntityZbid.getZbid()); + gbiZbxmbEntity.setZbdm(gbiZbxmbEntityZbid.getZbdm()); + }catch (Exception e){ + logger.info("根据会计年度:{},公司代码:{},指标类别:{}获取指标id和指标代码失败:{}", + jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),jsonObject.getString("zblb"),e.getMessage()); + return BaseResult.getFailureMessageEntity("获取指标id和指标代码失败"); + } + //更新其他表得使用状态 + JsonResultEntity jsonResultEntity = updateOtherTable(gbiZbxmbEntity); + //保存指标项目表 + try { + gbiZbxmbEntity.setZt("1");//状态为1为保存 + gbiZbxmbEntity.setIdzbbh(String.valueOf(UUID.randomUUID()));//IDZBBH + gbiZbxmbEntity.setSfjz("0");//是否结转 + gbiZbxmbEntity.setCyskzfs("0");//超预算控制方式 + gbiZbxmbEntity.setYjbfb(100.00);//预警百分比 + gbiZbxmbEntity.setPfrid(-1);//批复人id + gbiZbxmbEntity.setShrid(-1);//审核人id + gbiZbxmbEntity.setSjly(1);//数据来源 + gbiZbxmbEntity.setXfzt("0");//下发状态 + gbiZbxmbEntity.setNcysy(0.00);//年初已使用 + gbiZbxmbEntity.setSjzbid(0);//上级指标id + + logger.info("=========开始保存指标项目表========="); + GbiZbxmbEntity save = gbiZbxmbDao.save(gbiZbxmbEntity); + logger.info("==========指标项目表保存完毕======"); + GlCzrzEntity glCzrzEntity=new GlCzrzEntity(); + glCzrzEntity.setStation("yusuanzhibiaobaocun"); + logger.info("==========开始查询操作日志的最大值no======"); + GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity); + logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo()); + glCzrzEntity.setNo(glCzrzEntityNo.getNo()); + glCzrzEntity.setName("0.指标保存"); + glCzrzEntity.setCznr("增加指标"+gbiZbxmbEntity.getZbid()+"(MXZB)"); + logger.info("==========开始保存操作日志======"); + glCzrzDao.save(glCzrzEntity); + logger.info("==========操作日志保存完毕======"); + JSONObject jsonObjectSave=new JSONObject(); + jsonObjectSave.put("status","200"); + jsonObjectSave.put("zbxm",save); + return jsonObjectSave; + }catch (Exception e){ + logger.info("保存预算指标失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("保存指标失败"); + } + } + + @Override + public Object updateGbiZbxmb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zblb"))){ + return BaseResult.getFailureMessageEntity("请传递指标类别"); + } + if(!checkStr(jsonObject.getString("zbid"))){ + return BaseResult.getFailureMessageEntity("请传递指标id"); + } + GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class); + try { + JsonResultEntity jsonResultEntity = updateOtherTable(gbiZbxmbEntity); + gbiZbxmbEntity.setZt("1"); + gbiZbxmbEntity.setNcysy(0.00);//年初已使用 + logger.info("=========开始更新指标项目表========="); + GbiZbxmbEntity save = gbiZbxmbDao.update(gbiZbxmbEntity); + logger.info("==========指标项目表更新完毕======"); + GlCzrzEntity glCzrzEntity=new GlCzrzEntity(); + glCzrzEntity.setStation("yusuanzhibiaobaocun"); + logger.info("==========开始查询操作日志的最大值no======"); + GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity); + logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo()); + glCzrzEntity.setNo(glCzrzEntityNo.getNo()); + glCzrzEntity.setName("0.指标修改"); + glCzrzEntity.setCznr("修改指标"+gbiZbxmbEntity.getZbid()+"(MXZB)"); + logger.info("==========开始保存操作日志======"); + glCzrzDao.save(glCzrzEntity); + logger.info("==========操作日志保存完毕======"); + JSONObject jsonObjectUpdate =new JSONObject(); + jsonObjectUpdate.put("status","200"); + jsonObjectUpdate.put("zbxm",save); + return jsonObjectUpdate; + }catch (Exception e){ + logger.info("更新预算指标失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("修改指标失败"); + } + } + + @Override + public Object deleteGbiZbxmb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zblb"))){ + return BaseResult.getFailureMessageEntity("请传递指标类别"); + } + if(!checkStr(jsonObject.getString("zbid"))){ + return BaseResult.getFailureMessageEntity("请传递指标id"); + } + GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class); + try { + gbiZbxmbEntity.setZt("1"); + logger.info("=========开始删除指标项目表========="); + int delete = gbiZbxmbDao.delete("entity_delete", gbiZbxmbEntity); + logger.info("==========指标项目表删除完毕======"); + GlCzrzEntity glCzrzEntity=new GlCzrzEntity(); + glCzrzEntity.setStation("yusuanzhibiaobaocun"); + logger.info("==========开始查询操作日志的最大值no======"); + GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity); + logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo()); + glCzrzEntity.setNo(glCzrzEntityNo.getNo()); + glCzrzEntity.setName("0.指标删除"); + glCzrzEntity.setCznr("删除指标"+gbiZbxmbEntity.getZbid()+"(MXZB)"); + logger.info("==========开始保存操作日志======"); + glCzrzDao.save(glCzrzEntity); + logger.info("==========操作日志保存完毕======"); + JSONObject jsonObjectDelete =new JSONObject(); + jsonObjectDelete.put("status","200"); + jsonObjectDelete.put("zbxm",delete); + return jsonObjectDelete; + }catch (Exception e){ + logger.info("删除指标项目失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("删除指标失败"); + } + } + + + private JsonResultEntity updateOtherTable(GbiZbxmbEntity gbiZbxmbEntity){ + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getBmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getBmmc()) ){ + logger.info("===========开始更新部门信息得使用状态========="); + //根据部门代码,会计年度,公司代码更新部门使用状态为1 + SenderPubbmxxEntity pubbmxxEntity=new SenderPubbmxxEntity(); + pubbmxxEntity.setGsdm(gbiZbxmbEntity.getGsdm()); + pubbmxxEntity.setKjnd(gbiZbxmbEntity.getKjnd()); + pubbmxxEntity.setBmdm(gbiZbxmbEntity.getBmdm()); + pubbmxxEntity.setSyzt("1"); + pubbmxxDao.update(pubbmxxEntity); + logger.info("===========更新部门信息得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新部门信息得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新部门信息得使用状态失败"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getXmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getXmmc())) { + //根据部门代码,会计年度,公司代码更新项目使用状态为1 + SenderGlXmzlEntity glXmzlEntity = new SenderGlXmzlEntity(); + glXmzlEntity.setGsdm(gbiZbxmbEntity.getGsdm()); + glXmzlEntity.setKjnd(gbiZbxmbEntity.getKjnd()); + glXmzlEntity.setXmdm(gbiZbxmbEntity.getXmdm()); + glXmzlEntity.setSyzt("1"); + logger.info("===========开始更新项目资料得使用状态========="); + glXmzlDao.update(glXmzlEntity); + logger.info("===========更新项目资料得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新项目资料得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新项目资料得使用状态失败"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getWhdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getWhmc())){ + //根据部门代码,会计年度,公司代码更新文号使用状态为1 + ZbWhszEntity zbWhszEntity=new ZbWhszEntity(); + zbWhszEntity.setGsdm(gbiZbxmbEntity.getGsdm()); + zbWhszEntity.setKjnd(gbiZbxmbEntity.getKjnd()); + zbWhszEntity.setWhdm(gbiZbxmbEntity.getWhdm()); + zbWhszEntity.setSyzt("1"); + logger.info("===========开始更新文号得使用状态========="); + zbWhszDao.update(zbWhszEntity); + logger.info("===========更新文号得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新文号得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新文号得使用状态失败"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getZblydm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getZblymc())) { + //根据部门代码,会计年度,公司代码更新指标来源使用状态为1 + ZbZblyEntity zblyEntity = new ZbZblyEntity(); + zblyEntity.setGsdm(gbiZbxmbEntity.getGsdm()); + zblyEntity.setKjnd(gbiZbxmbEntity.getKjnd()); + zblyEntity.setZblydm(gbiZbxmbEntity.getZblydm()); + zblyEntity.setSyzt("1"); + logger.info("===========开始更新指标来源得使用状态========="); + zbZblyDao.update(zblyEntity); + logger.info("===========更新指标来源得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新指标来源得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新指标来源得使用状态失败"); + } + try { + //根据类别代码,会计年度,公司代码,辅助代码更新使用状态 + //部门经济科目 + GlFzxzlEntity glFzxzlEntity=new GlFzxzlEntity(); + glFzxzlEntity.setGsdm(gbiZbxmbEntity.getGsdm()); + glFzxzlEntity.setKjnd(gbiZbxmbEntity.getKjnd()); + glFzxzlEntity.setSyzt("1"); + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getJjkmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getJjkmmc())) { + logger.info("===========开始更新辅助项资料(部门经济科目)得使用状态========="); + glFzxzlEntity.setFzdm(gbiZbxmbEntity.getJjkmdm()); + glFzxzlEntity.setLbdm("5"); + glFzxzlDao.update(glFzxzlEntity); + logger.info("===========更新辅助项资料(部门经济科目)得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新辅助项资料(部门经济科目)得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新辅助项资料(部门经济科目)得使用状态"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz6dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz6mc())){ + //资金性质 + glFzxzlEntity.setLbdm("6"); + glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz6dm()); + logger.info("===========开始更新辅助项资料(资金性质)得使用状态========="); + glFzxzlDao.update(glFzxzlEntity); + logger.info("===========更新辅助项资料(资金性质)得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新辅助项资料(资金性质)得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新辅助项资料(资金性质)得使用状态失败"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz8dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz8mc())) { + //国库项目 + glFzxzlEntity.setLbdm("8"); + glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz8dm()); + logger.info("===========开始更新辅助项资料(国库项目)得使用状态========="); + glFzxzlDao.update(glFzxzlEntity); + logger.info("===========更新辅助项资料(国库项目)得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新辅助项资料(国库项目)得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新辅助项资料(国库项目)得使用状态失败"); + } + try { + if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz9dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz9mc())){ + //经费类型I + glFzxzlEntity.setLbdm("9"); + glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz9dm()); + logger.info("===========开始更新辅助项资料(经费类型I)得使用状态========="); + glFzxzlDao.update(glFzxzlEntity); + logger.info("===========更新辅助项资料(经费类型I)得使用状态完毕========="); + } + }catch (Exception e){ + logger.info("更新辅助项资料(经费类型I)得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新辅助项资料(经费类型I)得使用状态失败"); + } + }catch (Exception e){ + logger.info("更新辅助项资料得使用状态失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新辅助项资料得使用状态失败"); + } + return BaseResult.getSuccessMessageEntity("相关得表状态都已修改"); + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/ISenderGlPzmlDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/ISenderGlPzmlDao.java new file mode 100644 index 00000000..fda53f20 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/ISenderGlPzmlDao.java @@ -0,0 +1,100 @@ +package com.hzya.frame.grpU8.nxproof.glPzml.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity; + +import java.util.List; +import java.util.Map; + +/** + * (gl_pzml: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:02:06 + */ +public interface ISenderGlPzmlDao extends IBaseDao { + + /** + * + * @content 查询凭证目录 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 保存凭证目录到凭证目录日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 16:29 + * **/ + SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 更新凭证目录到凭证目录日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 16:30 + * **/ + SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 查询凭证目录 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 保存凭证目录 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 16:29 + * **/ + SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 更新凭证目录 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 16:30 + * **/ + SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 删除凭证目录 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:44 + * **/ + Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity); + + /** + * + * @content 查询凭证 商学院 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/14 16:25 + * **/ + List queryGlPzmlSxy(SenderGlPzmlEntity senderGlPzmlEntity); + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/impl/SenderGlPzmlDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/impl/SenderGlPzmlDaoImpl.java new file mode 100644 index 00000000..ccaa162a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/dao/impl/SenderGlPzmlDaoImpl.java @@ -0,0 +1,71 @@ +package com.hzya.frame.grpU8.nxproof.glPzml.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao; +import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +/** + * (GlPzml)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:02:06 + */ +@Repository(value = "SenderGlPzmlDaoImpl") +public class SenderGlPzmlDaoImpl extends MybatisGenericDao implements ISenderGlPzmlDao { + + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public List querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.queryByLike(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.save(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.update(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public List queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.query(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.save(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.update(senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) { + return super.delete("SenderGlPzmlEntity_delete_pzml",senderGlPzmlEntity); + } + + @Override + @DS("#senderGlPzmlEntity.dataSourceCode") + public List queryGlPzmlSxy(SenderGlPzmlEntity senderGlPzmlEntity) { + return (List) super.selectList("queryGlPzmlSxy",senderGlPzmlEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.java new file mode 100644 index 00000000..11865f92 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.java @@ -0,0 +1,381 @@ +package com.hzya.frame.grpU8.nxproof.glPzml.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlPzml)实体类 + * + * @author makejava + * @since 2024-06-20 10:02:06 + */ +public class SenderGlPzmlEntity extends BaseEntity { + + private String gsdm; + private String zth; + private String kjqj; + private String pzly; + private String pzh; + private String pzrq; + private Integer fjzs; + private Integer srid; + private String sr; + private Integer shid; + private String sh; + private String jsr; + private Integer jzrid; + private String jzr; + private String srrq; + private String shrq; + private String jzrq; + private String pzhzkmdy; + private String pzhzbz; + private Integer zt; + private String pzzy; + private String pzje; + private String cn; + private String bz; + private String kjzg; + private String idpzh; + private String dyzt; + private String qzrq; + private Integer gdid; + private String gdname; + private String gdrqsj; + private Integer gdcs; + private String gdbz; + private Integer yspzzs; + + private String kjtxdm; + + private String pzlxdm; + + private String pzsbm; + private String stamp; + private String yspzje; + + private String bmdm; + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getPzsbm() { + return pzsbm; + } + + public void setPzsbm(String pzsbm) { + this.pzsbm = pzsbm; + } + + public String getStamp() { + return stamp; + } + + public void setStamp(String stamp) { + this.stamp = stamp; + } + + public String getYspzje() { + return yspzje; + } + + public void setYspzje(String yspzje) { + this.yspzje = yspzje; + } + + public String getKjtxdm() { + return kjtxdm; + } + + public void setKjtxdm(String kjtxdm) { + this.kjtxdm = kjtxdm; + } + + public String getPzlxdm() { + return pzlxdm; + } + + public void setPzlxdm(String pzlxdm) { + this.pzlxdm = pzlxdm; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getKjqj() { + return kjqj; + } + + public void setKjqj(String kjqj) { + this.kjqj = kjqj; + } + + public String getPzly() { + return pzly; + } + + public void setPzly(String pzly) { + this.pzly = pzly; + } + + public String getPzh() { + return pzh; + } + + public void setPzh(String pzh) { + this.pzh = pzh; + } + + public String getPzrq() { + return pzrq; + } + + public void setPzrq(String pzrq) { + this.pzrq = pzrq; + } + + public Integer getFjzs() { + return fjzs; + } + + public void setFjzs(Integer fjzs) { + this.fjzs = fjzs; + } + + public Integer getSrid() { + return srid; + } + + public void setSrid(Integer srid) { + this.srid = srid; + } + + public String getSr() { + return sr; + } + + public void setSr(String sr) { + this.sr = sr; + } + + public Integer getShid() { + return shid; + } + + public void setShid(Integer shid) { + this.shid = shid; + } + + public String getSh() { + return sh; + } + + public void setSh(String sh) { + this.sh = sh; + } + + public String getJsr() { + return jsr; + } + + public void setJsr(String jsr) { + this.jsr = jsr; + } + + public Integer getJzrid() { + return jzrid; + } + + public void setJzrid(Integer jzrid) { + this.jzrid = jzrid; + } + + public String getJzr() { + return jzr; + } + + public void setJzr(String jzr) { + this.jzr = jzr; + } + + public String getSrrq() { + return srrq; + } + + public void setSrrq(String srrq) { + this.srrq = srrq; + } + + public String getShrq() { + return shrq; + } + + public void setShrq(String shrq) { + this.shrq = shrq; + } + + public String getJzrq() { + return jzrq; + } + + public void setJzrq(String jzrq) { + this.jzrq = jzrq; + } + + public String getPzhzkmdy() { + return pzhzkmdy; + } + + public void setPzhzkmdy(String pzhzkmdy) { + this.pzhzkmdy = pzhzkmdy; + } + + public String getPzhzbz() { + return pzhzbz; + } + + public void setPzhzbz(String pzhzbz) { + this.pzhzbz = pzhzbz; + } + + public Integer getZt() { + return zt; + } + + public void setZt(Integer zt) { + this.zt = zt; + } + + public String getPzzy() { + return pzzy; + } + + public void setPzzy(String pzzy) { + this.pzzy = pzzy; + } + + public String getPzje() { + return pzje; + } + + public void setPzje(String pzje) { + this.pzje = pzje; + } + + public String getCn() { + return cn; + } + + public void setCn(String cn) { + this.cn = cn; + } + + public String getBz() { + return bz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + public String getKjzg() { + return kjzg; + } + + public void setKjzg(String kjzg) { + this.kjzg = kjzg; + } + + public String getIdpzh() { + return idpzh; + } + + public void setIdpzh(String idpzh) { + this.idpzh = idpzh; + } + + public String getDyzt() { + return dyzt; + } + + public void setDyzt(String dyzt) { + this.dyzt = dyzt; + } + + public String getQzrq() { + return qzrq; + } + + public void setQzrq(String qzrq) { + this.qzrq = qzrq; + } + + public Integer getGdid() { + return gdid; + } + + public void setGdid(Integer gdid) { + this.gdid = gdid; + } + + public String getGdname() { + return gdname; + } + + public void setGdname(String gdname) { + this.gdname = gdname; + } + + public String getGdrqsj() { + return gdrqsj; + } + + public void setGdrqsj(String gdrqsj) { + this.gdrqsj = gdrqsj; + } + + public Integer getGdcs() { + return gdcs; + } + + public void setGdcs(Integer gdcs) { + this.gdcs = gdcs; + } + + public String getGdbz() { + return gdbz; + } + + public void setGdbz(String gdbz) { + this.gdbz = gdbz; + } + + public Integer getYspzzs() { + return yspzzs; + } + + public void setYspzzs(Integer yspzzs) { + this.yspzzs = yspzzs; + } + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.xml new file mode 100644 index 00000000..a130f435 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/entity/SenderGlPzmlEntity.xml @@ -0,0 +1,536 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + , ZTH + , kjqj + , pzly + ,pzlxdm + ,kjtxdm + , pzh + , pzrq + , fjzs + , srID + , sr + , shID + , sh + , jsr + , jzrID + , jzr + , srrq + , shrq + , jzrq + , pzhzkmdy + , pzhzbz + , zt + , pzzy + , pzje + , CN + , BZ + , kjzg + , idpzh + , dyzt + , QZRQ + , GDID + , GDName + , GDRQSJ + , GDCS + , GDBZ + , yspzzs + , pzsbm + , stamp + , yspzje + + + + + + + + + + + + + + + + + + + insert into gl_pzml( + + gsdm , + kjqj , + pzly , + pzh , + kjtxdm , + pzlxdm , + pzrq , + fjzs , + srID , + sr , + shID , + sh , + jsr , + jzrID , + jzr , + srrq , + shrq , + jzrq , + pzhzkmdy , + pzhzbz , + zt , + pzzy , + pzje , + CN , + BZ , + kjzg , + idpzh , + dyzt , + QZRQ , + GDID , + GDName , + GDRQSJ , + GDCS , + GDBZ , + yspzzs , + pzsbm, + stamp, + yspzje, + ZTH + + )values( + + #{gsdm} , + #{kjqj} , + #{pzly} , + #{pzh} , + #{kjtxdm} , + #{pzlxdm} , + #{pzrq} , + #{fjzs} , + #{srid} , + #{sr} , + #{shid} , + #{sh} , + #{jsr} , + #{jzrid} , + #{jzr} , + #{srrq} , + #{shrq} , + #{jzrq} , + #{pzhzkmdy} , + #{pzhzbz} , + #{zt} , + #{pzzy} , + #{pzje} , + #{cn} , + #{bz} , + #{kjzg} , + #{idpzh} , + #{dyzt} , + #{qzrq} , + #{gdid} , + #{gdname} , + #{gdrqsj} , + #{gdcs} , + #{gdbz} , + #{yspzzs} , + #{pzsbm}, + #{stamp}, + #{yspzje}, + #{zth} + + ) + + + + + + + insert into gl_pzml(gsdm, ZTH, kjqj, pzly, pzh, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, yspzzs) + values + + (#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.yspzzs}) + + + + + insert into gl_pzml(gsdm, ZTH, kjqj, pzly, pzh, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, yspzzs) + values + + (#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.yspzzs}) + + on duplicate key update + gsdm = values(gsdm), + ZTH = values(ZTH), + kjqj = values(kjqj), + pzly = values(pzly), + pzh = values(pzh), + pzrq = values(pzrq), + fjzs = values(fjzs), + srID = values(srID), + sr = values(sr), + shID = values(shID), + sh = values(sh), + jsr = values(jsr), + jzrID = values(jzrID), + jzr = values(jzr), + srrq = values(srrq), + shrq = values(shrq), + jzrq = values(jzrq), + pzhzkmdy = values(pzhzkmdy), + pzhzbz = values(pzhzbz), + zt = values(zt), + pzzy = values(pzzy), + pzje = values(pzje), + CN = values(CN), + BZ = values(BZ), + kjzg = values(kjzg), + idpzh = values(idpzh), + dyzt = values(dyzt), + QZRQ = values(QZRQ), + GDID = values(GDID), + GDName = values(GDName), + GDRQSJ = values(GDRQSJ), + GDCS = values(GDCS), + GDBZ = values(GDBZ), + yspzzs = values(yspzzs) + + + update gl_pzml set + + gsdm = #{gsdm}, + ZTH = #{zth}, + kjqj = #{kjqj}, + pzly = #{pzly}, + pzh = #{pzh}, + kjtxdm = #{kjtxdm}, + pzlxdm = #{pzlxdm}, + pzrq = #{pzrq}, + fjzs = #{fjzs}, + srID = #{srid}, + sr = #{sr}, + shID = #{shid}, + sh = #{sh}, + jsr = #{jsr}, + jzrID = #{jzrid}, + jzr = #{jzr}, + srrq = #{srrq}, + shrq = #{shrq}, + jzrq = #{jzrq}, + pzhzkmdy = #{pzhzkmdy}, + pzhzbz = #{pzhzbz}, + zt = #{zt}, + pzzy = #{pzzy}, + pzje = #{pzje}, + CN = #{cn}, + BZ = #{bz}, + kjzg = #{kjzg}, + dyzt = #{dyzt}, + QZRQ = #{qzrq}, + GDID = #{gdid}, + GDName = #{gdname}, + GDRQSJ = #{gdrqsj}, + GDCS = #{gdcs}, + GDBZ = #{gdbz}, + yspzzs = #{yspzzs}, + pzsbm = #{pzsbm}, + stamp = #{stamp}, + yspzje = #{yspzje} + + where idpzh= #{idpzh} + + + + + +update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where idpzh= #{idpzh} + + + +update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and ZTH = #{zth} + and kjqj = #{kjqj} + and pzly = #{pzly} + and pzh = #{pzh} + and kjtxdm = #{kjtxdm} + and pzh = #{pzlxdm} + and pzrq = #{pzrq} + and fjzs = #{fjzs} + and srID = #{srid} + and sr = #{sr} + and shID = #{shid} + and sh = #{sh} + and jsr = #{jsr} + and jzrID = #{jzrid} + and jzr = #{jzr} + and srrq = #{srrq} + and shrq = #{shrq} + and jzrq = #{jzrq} + and pzhzkmdy = #{pzhzkmdy} + and pzhzbz = #{pzhzbz} + and zt = #{zt} + and pzzy = #{pzzy} + and pzje = #{pzje} + and CN = #{cn} + and BZ = #{bz} + and kjzg = #{kjzg} + and dyzt = #{dyzt} + and QZRQ = #{qzrq} + and GDID = #{gdid} + and GDName = #{gdname} + and GDRQSJ = #{gdrqsj} + and GDCS = #{gdcs} + and GDBZ = #{gdbz} + and yspzzs = #{yspzzs} + and sts='Y' + + + + + delete from gl_pzml where idpzh= #{idpzh} + + + + + delete from gl_pzml where gsdm= #{gsdm} and zth=#{zth} + and kjqj=#{kjqj} + and pzh = #{pzh} + and idpzh = #{idpzh} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/ISenderGlPzmlService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/ISenderGlPzmlService.java new file mode 100644 index 00000000..c0397b3b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/ISenderGlPzmlService.java @@ -0,0 +1,105 @@ +package com.hzya.frame.grpU8.nxproof.glPzml.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * (GlPzml)表服务接口 + * + * @author makejava + * @since 2024-06-20 10:02:06 + */ +public interface ISenderGlPzmlService extends IBaseService { + + /** + * + * @content 同步凭证 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 14:36 + * **/ + void glPzmlSynchronization(JSONObject jsonObject); + + /** + * + * @content 查询凭证 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:38 + * **/ + JsonResultEntity queryEntityPage(JSONObject jsonObject); + + /** + * + * @content 保存凭证到凭证日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:33 + * **/ + JsonResultEntity saveEntity(JSONObject jsonObject); + + /** + * + * @content 更新凭证到凭证日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:34 + * **/ + JsonResultEntity updateEntity(JSONObject jsonObject); + + /** + * + * @content 查询凭证 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:38 + * **/ + JsonResultEntity queryEntityPageHealthBureau(JSONObject jsonObject); + + /** + * + * @content 保存凭证 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:33 + * **/ + JsonResultEntity saveEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 更新凭证 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:34 + * **/ + JsonResultEntity updateEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 删除凭证 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:46 + * **/ + JsonResultEntity deleteEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 查询凭证 商学院 确定指标被哪些凭证使用 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/13 17:00 + * **/ + Object queryGlPzmlSxy(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/impl/SenderGlPzmlServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/impl/SenderGlPzmlServiceImpl.java new file mode 100644 index 00000000..cef50d7b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPzml/service/impl/SenderGlPzmlServiceImpl.java @@ -0,0 +1,785 @@ +package com.hzya.frame.grpU8.nxproof.glPzml.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +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.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; +import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao; +import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity; +import com.hzya.frame.grpU8.nxproof.glPzml.service.ISenderGlPzmlService; +import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao; +import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.*; + +import static org.aspectj.runtime.internal.Conversions.doubleValue; + +/** + * (GlPzml)表服务实现类 + * + * @author makejava + * @since 2024-06-20 10:02:06 + */ +@Service(value = "SenderGlPzmlServiceImpl") +public class SenderGlPzmlServiceImpl extends BaseService implements ISenderGlPzmlService { + + private static String URLTest="http://39.106.158.149/";//测试环境 + private static String URL="http://192.168.42.22/";//正式环境 + + private ISenderGlPzmlDao senderGlPzmlDao; + + @Autowired + private IGbiZbxmbDao gbiZbxmbDao; + + @Autowired + public void setSenderGlPzmlDao(ISenderGlPzmlDao dao) { + this.senderGlPzmlDao = dao; + this.dao = dao; + } + + @Autowired + private ISenderGlPznrDao senderGlPznrDao; + + + //凭证同步 + @Override + public void glPzmlSynchronization(JSONObject json) { + SenderGlPzmlEntity senderGlPzmlEntity = json.toJavaObject(SenderGlPzmlEntity.class); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if (senderGlPzmlEntity.getKjqj() == null) { + senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy")); + //senderGlPzmlEntity.setKjqj("202105"); + } + JSONObject jsonObjectStr=new JSONObject(); + /*try { + //同步南浔区人民医院001凭证信息 + senderGlPzmlEntity.setZth("001"); + senderGlPzmlEntity.setGsdm("0101010101"); + logger.info("===========开始查询南浔区人民医院凭证目录信息============="); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("南浔区人民医院GRPU8凭证同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8凭证同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003凭证信息 + senderGlPzmlEntity.setZth("003"); + senderGlPzmlEntity.setGsdm("0101010103"); + logger.info("===========开始查询南浔区练市人民医院凭证目录信息============="); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("南浔区练市人民医院GRPU8凭证同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8凭证同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005凭证信息 + senderGlPzmlEntity.setZth("005"); + senderGlPzmlEntity.setGsdm("0101010202"); + logger.info("===========开始查询南浔区练市镇中心卫生院凭证目录信息============="); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("南浔区练市镇中心卫生院GRPU8凭证同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8凭证同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007凭证信息 + senderGlPzmlEntity.setZth("007"); + senderGlPzmlEntity.setGsdm("0101010204"); + logger.info("===========开始查询南浔区善琏镇卫生院凭证目录信息============="); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("南浔区善琏镇卫生院GRPU8凭证同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8凭证同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*//同步双林镇中心卫生院004凭证信息 + senderGlPzmlEntity.setZth("004"); + senderGlPzmlEntity.setGsdm("0101010201"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("双林镇中心卫生院GRPU8凭证同步结果为:{}",result); + //同步菱湖镇中心卫生院009凭证信息 + senderGlPzmlEntity.setZth("009"); + senderGlPzmlEntity.setGsdm("0101020201"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("菱湖镇中心卫生院GRPU8凭证同步结果为:{}",result); + //同步和孚镇卫生院010凭证信息 + senderGlPzmlEntity.setZth("010"); + senderGlPzmlEntity.setGsdm("0101020202"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("和孚镇卫生院GRPU8凭证同步结果为:{}",result); + //同步千金镇卫生院011凭证信息 + senderGlPzmlEntity.setZth("011"); + senderGlPzmlEntity.setGsdm("0101020203"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("千金镇卫生院GRPU8凭证同步结果为:{}",result); + //同步石崇镇卫生院012凭证信息 + senderGlPzmlEntity.setZth("012"); + senderGlPzmlEntity.setGsdm("0101020204"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("石崇镇卫生院GRPU8凭证同步结果为:{}"); + //同步南浔镇中心卫生院014凭证信息 + senderGlPzmlEntity.setZth("014"); + senderGlPzmlEntity.setGsdm("010202"); + jsonObjectStr.put("jsonStr",senderGlPzmlEntity); + result=sendPzmlToHealthBureau(jsonObjectStr); + logger.info("南浔镇中心卫生院GRPU8凭证同步结果为:{}",result);*/ + } catch (Exception e) { + logger.info("GRPU8凭证同步失败:{}", e.getMessage()); + e.printStackTrace(); + } + } + + private String sendPzmlToHealthBureau(JSONObject jsonObjectStr){ + JsonResultEntity jsonResultEntity = queryEntityPage(jsonObjectStr); + if (jsonResultEntity.getAttribute() == null) { + logger.info("GRPU8没有需要同步得凭证目录信息信息"); + return "GRPU8没有需要同步的凭证目录信息"; + } + JSONArray jsonArray = (JSONArray) JSON.toJSON(jsonResultEntity.getAttribute()); + if (CollectionUtils.isEmpty(jsonArray)) { + logger.info("GRPU8没有需要同步得凭证目录信息信息"); + return "GRPU8没有需要同步的凭证目录信息"; + } else { + for (Object o : jsonArray) { + JSONObject jsonObjectPz = (JSONObject) JSON.toJSON(o); + //获取凭证目录信息 + JSONObject jsonObjectPzml = jsonObjectPz.getJSONObject("gl_pzml"); + JSONArray jsonArrayPznr = jsonObjectPz.getJSONArray("gl_pznr"); + SenderGlPzmlEntity receiverGlPzmlEntity = new SenderGlPzmlEntity(); + receiverGlPzmlEntity.setIdpzh(jsonObjectPzml.getString("idpzh")); + receiverGlPzmlEntity.setZth(jsonObjectPzml.getString("zth")); + JSONObject jsonObjectReceiver = new JSONObject(); + jsonObjectReceiver.put("jsonStr", receiverGlPzmlEntity); + //根据发送方的idpzh查询接收方中是否存在数据 + JsonResultEntity jsonResultEntityReceiver = queryEntityPageHealthBureau(jsonObjectReceiver); + JsonResultEntity jsonResultEntityRec=null; + //如果从接收方查询出的凭证没有,则新增,如果有,则更新凭证目录,之后再比较明细,如果接收方明细不存在,则新增明细,否则更新明细 + if (jsonResultEntityReceiver.getAttribute() == null && jsonResultEntityReceiver.isFlag()) { + JSONObject jsonReceiverSave = new JSONObject(); + jsonReceiverSave.put("main", jsonObjectPzml); + jsonReceiverSave.put("details", jsonArrayPznr); + jsonReceiverSave.put("kjqj", jsonObjectPzml.getString("kjqj")); + jsonReceiverSave.put("gsdm", jsonObjectPzml.getString("gsdm")); + jsonReceiverSave.put("zth", jsonObjectPzml.getString("zth")); + jsonReceiverSave.put("pzh", jsonObjectPzml.getString("pzh")); + JSONObject jsonObjectPznrStr = new JSONObject(); + jsonObjectPznrStr.put("jsonStr", jsonReceiverSave); + jsonResultEntityRec= saveEntityHealthBureau(jsonObjectPznrStr); + if(jsonResultEntityRec.isFlag()){ + JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute()); + logger.info("账套号:{}的GROU8得凭证同步保存卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString()); + } + /* if(jsonResultEntityReceiverSave.getStatus().equals("200")&&jsonResultEntityReceiverSave.getAttribute()!=null){ + //保存日志 + saveEntity(jsonObjectPznrStr); + }*/ + } else { + JSONArray jsonArrayResult = (JSONArray) JSON.toJSON(jsonResultEntityReceiver.getAttribute()); + //有值 将发送方的数据更新到接收方 更新凭证目录,更新凭证内容 + for (Object object : jsonArrayResult) { + JSONObject jsonObjectReceiverPz = (JSONObject) JSON.toJSON(object); + //获取凭证目录信息 + JSONObject jsonObjectReceiverPzml = jsonObjectReceiverPz.getJSONObject("main"); + //JSONArray jsonArrayReceiverPznr = jsonObjectReceiverPz.getJSONArray("details"); + if (jsonObjectPzml.getString("idpzh").equals(jsonObjectReceiverPzml.getString("idpzh"))) { + JSONObject jsonReceiverUpdate = new JSONObject(); + jsonReceiverUpdate.put("main", jsonObjectPzml); + jsonReceiverUpdate.put("details", jsonArrayPznr); + jsonReceiverUpdate.put("kjqj", jsonObjectPzml.getString("kjqj")); + jsonReceiverUpdate.put("gsdm", jsonObjectPzml.getString("gsdm")); + jsonReceiverUpdate.put("zth", jsonObjectPzml.getString("zth")); + jsonReceiverUpdate.put("pzh", jsonObjectPzml.getString("pzh")); + JSONObject jsonObjectPznrStr = new JSONObject(); + jsonObjectPznrStr.put("jsonStr", jsonReceiverUpdate); + jsonResultEntityRec=updateEntityHealthBureau(jsonObjectPznrStr); + if (jsonResultEntityRec.isFlag()){ + JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute()); + logger.info("账套号:{}的GROU8得凭证同步更新卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString()); + } + /* if(jsonResultEntityReceiverUpdate.getStatus().equals("200")&&jsonResultEntityReceiverUpdate.getAttribute()!=null){ + //更新日志 + updateEntity(jsonObjectPznrStr); + }*/ + } + } + } + } + return "同步GROU8凭证成功"; + } + } + + + //查询凭证 + @Override + public JsonResultEntity queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlPzmlEntity senderGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if (senderGlPzmlEntity.getKjqj() == null) { + senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderGlPzmlEntity.getZth())){ + logger.info("======传递的账套号为:{}=========",senderGlPzmlEntity.getZth()); + return BaseResult.getFailureMessageEntity("请传递账套号"); + } + List list=new ArrayList<>(); + List senderGlPzmlEntities=new ArrayList<>(); + try { + /*switch (senderGlPzmlEntity.getZth()){ + case "003"://练市人民医院 + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "004"://双林镇中心卫生院 + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "005"://练市镇中心卫生院 + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "007"://善琏镇卫生院 + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "009": + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "010": + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "011": + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "012": + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + case "001"://南浔区人民医院 + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + break; + default: + break; + }*/ + senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity); + if (CollectionUtils.isEmpty(senderGlPzmlEntities)) { + logger.info("{}账套GRPU8没有凭证目录信息",senderGlPzmlEntity.getZth()); + return BaseResult.getSuccessMessageEntity("GRPU8没有凭证目录信息",null); + } else { + for (SenderGlPzmlEntity pzmlEntity : senderGlPzmlEntities) { + JSONObject jsonObjectPz=new JSONObject(); + jsonObjectPz.put("gl_pzml",pzmlEntity); + //根据凭证号,会计期间,账套号查询凭证内容信息 + SenderGlPznrEntity senderGlPznrEntity = new SenderGlPznrEntity(); + senderGlPznrEntity.setKjqj(pzmlEntity.getKjqj()); + senderGlPznrEntity.setZth(pzmlEntity.getZth()); + senderGlPznrEntity.setPzh(pzmlEntity.getPzh()); + senderGlPznrEntity.setGsdm(pzmlEntity.getGsdm()); + senderGlPznrEntity.setIdpzh(pzmlEntity.getIdpzh()); + senderGlPznrEntity.setDataSourceCode(senderGlPzmlEntity.getDataSourceCode()); + List senderGlPznrEntities=new ArrayList<>(); + /*switch (senderGlPzmlEntity.getZth()){ + case "003"://练市人民医院 + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "004"://双林镇中心卫生院 + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "005"://练市镇中心卫生院 + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "007"://善琏镇卫生院 + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "009": + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "010": + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "011": + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "012": + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + case "001"://南浔区人民医院 + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + break; + default: + break; + }*/ + senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity); + jsonObjectPz.put("gl_pznr",senderGlPznrEntities); + list.add(jsonObjectPz); + } + return BaseResult.getSuccessMessageEntity("查询凭证成功",list); + } + } catch (Exception e) { + logger.info("{}账套查询GROU8凭证信息失败:{}", senderGlPzmlEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8凭证信息失败"); + } + } + + //保存凭证到凭证日志表中 发送方 + @Override + public JsonResultEntity saveEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录 + JSONArray jsonArray = jsonObject.getJSONArray("details"); + if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) { + throw new RuntimeException("会计期间为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) { + throw new RuntimeException("公司代码为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("zth"))) { + throw new RuntimeException("账套编号为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("pzh"))) { + throw new RuntimeException("凭证号为空"); + } + //生成idpzh + String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh"); + jsonObjectMain.put("kjqj",jsonObject.getString("kjqj")); + jsonObjectMain.put("idpzh",idpzh); + jsonObjectMain.put("gsdm",jsonObject.getString("gsdm")); + jsonObjectMain.put("zth",jsonObject.getString("zth")); + jsonObjectMain.put("pzh",jsonObject.getString("pzh")); + SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class); + try { + logger.info("===========开始保存凭证日志,idpzh:{},pzh:{}=========",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh()); + SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.saveSenderGlPzmlEntity(senderGlPzmlEntity); + List list=new ArrayList(); + JSONObject jsonObjectSend=new JSONObject(); + jsonObjectSend.put("pzml",glPzmlEntity); + List listPznr=new ArrayList<>(); + //遍历数组,得到凭证内容 + if(jsonArray.size()>0&&jsonArray!=null){ + for (Object o : jsonArray) { + SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o; + glPznrEntity.setKjqj(jsonObject.getString("kjqj")); + glPznrEntity.setGsdm(jsonObject.getString("gsdm")); + glPznrEntity.setZth(jsonObject.getString("zth")); + glPznrEntity.setPzh(jsonObject.getString("pzh")); + glPznrEntity.setIdpznr(glPznrEntity.getIdpznr() == null ? String.valueOf(UUID.randomUUID()) : glPznrEntity.getIdpznr() ); + SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity); + listPznr.add(senderGlPznrEntity); + } + } + jsonObjectSend.put("pznr",listPznr); + list.add(jsonObjectSend); + return BaseResult.getSuccessMessageEntity("保存凭证日志成功",list); + }catch (Exception e){ + logger.info("保存GRPU8凭证日志失败:{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("凭证日志保存失败"); + } + } + + //更新凭证到凭证日志表中 发送方 + @Override + public JsonResultEntity updateEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录 + JSONArray jsonArray = jsonObject.getJSONArray("details"); + if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) { + throw new RuntimeException("会计期间为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) { + throw new RuntimeException("公司代码为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("zth"))) { + throw new RuntimeException("账套编号为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("pzh"))) { + throw new RuntimeException("凭证号为空"); + } + if (StrUtil.isEmpty(jsonObjectMain.getString("idpzh"))) { + throw new RuntimeException("idpzh为空"); + } + SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class); + senderGlPzmlEntity.setKjqj(jsonObject.getString("kjqj")); + senderGlPzmlEntity.setGsdm(jsonObject.getString("gsdm")); + senderGlPzmlEntity.setZth(jsonObject.getString("zth")); + senderGlPzmlEntity.setPzh(jsonObject.getString("pzh")); + try { + logger.info("==========开始更新凭证日志,idpzh:{},pzh:{}",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh()); + SenderGlPzmlEntity senderGlPzmlEntitySend = senderGlPzmlDao.updateSenderGlPzmlEntity(senderGlPzmlEntity); + List list=new ArrayList<>(); + JSONObject jsonObjectPz=new JSONObject(); + jsonObjectPz.put("pzml",senderGlPzmlEntitySend); + List listPznr=new ArrayList<>(); + //遍历数组,得到凭证内容 + if(jsonArray.size()>0&&jsonArray!=null){ + for (Object o : jsonArray) { + SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o; + SenderGlPznrEntity senderGlPznr=new SenderGlPznrEntity(); + senderGlPznr.setKjqj(jsonObject.getString("kjqj")); + senderGlPznr.setGsdm(jsonObject.getString("gsdm")); + senderGlPznr.setZth(jsonObject.getString("zth")); + senderGlPznr.setPzh(jsonObject.getString("pzh")); + senderGlPznr.setIdpznr(glPznrEntity.getIdpznr()); + //根据凭证内容id等条件查询在凭证内容日志中是否存在,如果存在,则更新,如果不存在则新增 + //比如 凭证内容8条,日志中只有7条,则多余的一条新增,剩下7条更新 + SenderGlPznrEntity pznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(senderGlPznr); + if(pznrEntity==null){ + SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity); + listPznr.add(senderGlPznrEntity); + }else{ + SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.updateSenderGlPznrEntity(glPznrEntity); + listPznr.add(senderGlPznrEntity); + } + } + } + jsonObjectPz.put("pznr",listPznr); + list.add(jsonObjectPz); + return BaseResult.getSuccessMessageEntity("凭证日志更新成功",list); + }catch (Exception e){ + logger.info("更新GRPU8凭证日志失败:{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("凭证日志更新失败"); + } + } + + //查询凭证 + @Override + public JsonResultEntity queryEntityPageHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlPzmlEntity receiverGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class); + if(receiverGlPzmlEntity.getIdpzh()!=null) { + try { + List list=new ArrayList<>(); + logger.info("====开始根据账套号:{}和凭证号:{}查询卫生局里面得凭证数据",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh()); + List receiverGlPzmlEntities = senderGlPzmlDao.queryGlPzmlHealthBureau(receiverGlPzmlEntity); + if(CollectionUtils.isNotEmpty(receiverGlPzmlEntities)){ + for (SenderGlPzmlEntity glPzmlEntity : receiverGlPzmlEntities) { + JSONObject jsonObjectStr=new JSONObject(); + jsonObjectStr.put("main",glPzmlEntity); + //根据凭证号,会计期间,账套号查询凭证内容信息 + SenderGlPznrEntity receiverGlPznrEntity = new SenderGlPznrEntity(); + receiverGlPznrEntity.setKjqj(glPzmlEntity.getKjqj()); + receiverGlPznrEntity.setZth(glPzmlEntity.getZth()); + receiverGlPznrEntity.setPzh(glPzmlEntity.getPzh()); + receiverGlPznrEntity.setGsdm(glPzmlEntity.getGsdm()); + List receiverGlPznrEntities = senderGlPznrDao.queryGlPznrHealthBureau(receiverGlPznrEntity); + jsonObjectStr.put("details",receiverGlPznrEntities); + list.add(jsonObjectStr); + } + return BaseResult.getSuccessMessageEntity("查询凭证成功",list); + }else{ + logger.info("根据idpzh:{}和账套号:{}查询接收方的凭证为空",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh()); + return BaseResult.getSuccessMessageEntity("查询接收方的凭证为空"); + } + } catch (Exception e) { + logger.info("根据账套号:{}查询卫生局得GROU8凭证信息失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询接收方得GROU8凭证信息失败"); + } + } + return null; + } + + //保存凭证 + @Override + public JsonResultEntity saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//获取凭证目录 + JSONArray jsonArray = jsonObject.getJSONArray("details");//获取凭证内容 + if (!checkStr(jsonObject.getString("kjqj"))) { + return BaseResult.getFailureMessageEntity("会计期间为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("pzh"))) { + return BaseResult.getFailureMessageEntity("凭证号为空"); + } + //生成idpzh + String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh"); + jsonObjectMain.put("kjqj",jsonObject.getString("kjqj")); + jsonObjectMain.put("idpzh",idpzh); + jsonObjectMain.put("gsdm",jsonObject.getString("gsdm")); + jsonObjectMain.put("zth",jsonObject.getString("zth")); + jsonObjectMain.put("pzh",jsonObject.getString("pzh")); + SenderGlPzmlEntity glPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class); + try { + logger.info("===========根据账套号:{}开始保存凭证,idpzh:{},pzh:{}=========",glPzmlEntity.getZth(),glPzmlEntity.getIdpzh(),glPzmlEntity.getPzh()); + SenderGlPzmlEntity receiverGlPzmlEntity = senderGlPzmlDao.saveGlPzmlHealthBureau(glPzmlEntity); + List list=new ArrayList<>(); + JSONObject jsonObjectReceiver =new JSONObject(); + jsonObjectReceiver.put("gl_pzml",receiverGlPzmlEntity); + List listGlPznr=new ArrayList<>(); + //遍历数组,得到凭证内容 + if(jsonArray.size()>0&&jsonArray!=null) { + for (Object o : jsonArray) { + SenderGlPznrEntity receiverGlPznrEntity=(SenderGlPznrEntity)o; + receiverGlPznrEntity.setKjqj(jsonObject.getString("kjqj")); + receiverGlPznrEntity.setGsdm(jsonObject.getString("gsdm")); + receiverGlPznrEntity.setZth(jsonObject.getString("zth")); + receiverGlPznrEntity.setPzh(jsonObject.getString("pzh")); + receiverGlPznrEntity.setDataSourceCode(glPzmlEntity.getDataSourceCode()); + receiverGlPznrEntity.setIdpznr(receiverGlPznrEntity.getIdpznr()== null ? String.valueOf(UUID.randomUUID()) : receiverGlPznrEntity.getIdpznr()); + SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznrEntity); + listGlPznr.add(glPznrEntity); + } + } + jsonObjectReceiver.put("gl_pznr",listGlPznr); + list.add(jsonObjectReceiver); + return BaseResult.getSuccessMessageEntity("保存凭证成功",jsonObjectReceiver); + }catch (Exception e){ + logger.info("根据账套号:{}保存GRPU8凭证失败:{}",jsonObjectMain.getString("zth"),e.getMessage()); + return BaseResult.getFailureMessageEntity("凭证保存失败"); + } + } + + //更新凭证 + @Override + public JsonResultEntity updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录 + JSONArray jsonArray = jsonObject.getJSONArray("details"); + if (!checkStr(jsonObject.getString("kjqj"))) { + return BaseResult.getFailureMessageEntity("会计期间为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("pzh"))) { + return BaseResult.getFailureMessageEntity("凭证号为空"); + } + if (!checkStr(jsonObjectMain.getString("idpzh"))) { + return BaseResult.getFailureMessageEntity("idpzh为空"); + } + if(jsonArray.size()>0&&jsonArray!=null){ + for (Object o : jsonArray) { + SenderGlPznrEntity senderGlPznrEntity = (SenderGlPznrEntity)o; + if (StrUtil.isEmpty(senderGlPznrEntity.getIdpznr())) { + return BaseResult.getFailureMessageEntity("凭证内容得id为空"); + } + } + } + SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class); + receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj")); + receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm")); + receiverGlPzmlEntity.setZth(jsonObject.getString("zth")); + receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh")); + try { + logger.info("==========开始根据账套号:{}更新凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh()); + SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.updateGlPzmlHealthBureau(receiverGlPzmlEntity); + List list=new ArrayList<>(); + JSONObject jsonObjectPz=new JSONObject(); + jsonObjectPz.put("gl_pzml",glPzmlEntity); + List listPznr=new ArrayList<>(); + //遍历数组,得到凭证内容 + if(jsonArray.size()>0 && jsonArray!=null){ + for (Object o : jsonArray) { + SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o; + receiverGlPznr.setKjqj(jsonObject.getString("kjqj")); + receiverGlPznr.setGsdm(jsonObject.getString("gsdm")); + receiverGlPznr.setZth(jsonObject.getString("zth")); + receiverGlPznr.setPzh(jsonObject.getString("pzh")); + receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode()); + //根据凭证内容id等条件查询在接收方凭证内容中是否存在,如果存在,则更新,如果不存在则新增 + //比如 发送方的凭证内容8条,接收方只有7条,则多余的一条新增,剩下7条更新 + SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(receiverGlPznr); + if(senderGlPznrEntity==null){ + SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznr); + listPznr.add(glPznrEntity); + }else { + SenderGlPznrEntity glPznrEntity = senderGlPznrDao.updateGlPznrHealthBureau(receiverGlPznr); + listPznr.add(glPznrEntity); + } + } + } + jsonObjectPz.put("gl_pznr",listPznr); + list.add(jsonObjectPz); + return BaseResult.getSuccessMessageEntity("凭证更新成功",list); + }catch (Exception e){ + logger.info("根据账套号:{}更新GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("凭证更新失败"); + } + } + + //删除凭证 + @Override + public JsonResultEntity deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录 + JSONArray jsonArray = jsonObject.getJSONArray("details"); + if (!checkStr(jsonObject.getString("gsdm"))) { + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("kjqj"))) { + jsonObject.put("kjqj",DateUtil.format(new Date(),"yyyyMM")); + } + SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class); + receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj")); + receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm")); + receiverGlPzmlEntity.setZth(jsonObject.getString("zth")); + receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh")); + try { + logger.info("==========开始根据账套号:{}删除凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh()); + Integer integer = senderGlPzmlDao.deleteGlPzmlHealthBureau(receiverGlPzmlEntity); + //遍历数组,得到凭证内容 + if(jsonArray.size()>0 && jsonArray!=null){ + for (Object o : jsonArray) { + SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o; + receiverGlPznr.setKjqj(jsonObject.getString("kjqj")); + receiverGlPznr.setGsdm(jsonObject.getString("gsdm")); + receiverGlPznr.setZth(jsonObject.getString("zth")); + receiverGlPznr.setPzh(jsonObject.getString("pzh")); + receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode()); + Integer i = senderGlPznrDao.deleteGlPznrHealthBureau(receiverGlPznr); + } + } + return BaseResult.getSuccessMessageEntity("凭证删除成功",integer); + }catch (Exception e){ + logger.info("根据账套号:{}删除GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("凭证删除失败"); + } + } + + + //保存凭证 商学院,指标被哪些凭证使用 + @Override + public Object queryGlPzmlSxy(JSONObject json){ + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlPzmlEntity glPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class); + if(StrUtil.isEmpty(glPzmlEntity.getKjqj())){ + glPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyyMM")); + } + //获取token + String token = getToken(); + if(StrUtil.isEmpty(token)){ + return BaseResult.getFailureMessageEntity("token为空,请先获取token"); + } + //查询凭证数据 + List list = senderGlPzmlDao.queryGlPzmlSxy(glPzmlEntity); + if(CollectionUtils.isEmpty(list)){ + return BaseResult.getSuccessMessageEntity("没有需要同步得凭证",null); + } + try { + String result=null; + for (SenderGlPzmlEntity pzmlEntity : list) { + String pzNum = pzmlEntity.getGsdm() + "_" + pzmlEntity.getZth() + "_" + pzmlEntity.getKjqj() + "_" + pzmlEntity.getPzh(); + //转换日期,如将20240514转为2024-05-14 + SimpleDateFormat inputFormat = new SimpleDateFormat("yyyyMMdd"); + SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd"); + Date date = inputFormat.parse(pzmlEntity.getSrrq()); + String outputDateString = outputFormat.format(date); + //将金额四舍五入 + BigDecimal bigDecimalValue = new BigDecimal(pzmlEntity.getPzje()); + BigDecimal roundedValue = bigDecimalValue.setScale(2, + RoundingMode.HALF_UP); + JSONObject jsonObjectParams=new JSONObject(); + jsonObjectParams.put("code",pzmlEntity.getIdpzh());//pzid + jsonObjectParams.put("budgetYear",pzmlEntity.getKjqj().substring(0,4));//预算年度 + jsonObjectParams.put("applyDate",outputDateString);//日期 + jsonObjectParams.put("userCode",pzmlEntity.getSrid());//用户编码 + jsonObjectParams.put("depCode","A518");//部门编码 + jsonObjectParams.put("description",pzmlEntity.getPzzy());//说明 + jsonObjectParams.put("amount",roundedValue.doubleValue());//金额 + jsonObjectParams.put("pzNum",pzNum);//凭证号 例如:公司代码+账套号+会计期间+凭证号:001_001_202408_付款_1 + //根据idpzh查询指标id和指标金额 + GbiZbxmbEntity gbiZbxmbEntity=new GbiZbxmbEntity(); + gbiZbxmbEntity.setDjId(pzmlEntity.getIdpzh()); + gbiZbxmbEntity.setKjnd(pzmlEntity.getKjqj().substring(0,4)); + gbiZbxmbEntity.setDataSourceCode(glPzmlEntity.getDataSourceCode()); + List gbiZbsyrecEntities = gbiZbxmbDao.queryZbxmbByIdpzh(gbiZbxmbEntity); + logger.info("=======根据凭证idpzh:{}查询的指标金额和指标id数据有{}条",pzmlEntity.getIdpzh(),gbiZbsyrecEntities.size()); + if(CollectionUtils.isEmpty(gbiZbsyrecEntities)){ + jsonObjectParams.put("reimburseItems",new ArrayList<>()); + }else{ + JSONArray jsonArray=new JSONArray(); + for (GbiZbxmbEntity zbxmbEntity : gbiZbsyrecEntities) { + BigDecimal bigDecimalValueZbxmb = new BigDecimal(zbxmbEntity.getJe()); + BigDecimal roundedValueZbxmb = bigDecimalValueZbxmb.setScale(2, RoundingMode.HALF_UP); + JSONObject jsonObjectZbxm=new JSONObject(); + jsonObjectZbxm.put("thirdProjectCode",zbxmbEntity.getZbid()); + jsonObjectZbxm.put("amount",roundedValueZbxmb); + jsonObjectZbxm.put("financialCode",zbxmbEntity.getJjkmdm()); + jsonArray.add(jsonObjectZbxm); + } + jsonObjectParams.put("reimburseItems",jsonArray); + } + JSONArray jsonArray=new JSONArray(); + jsonArray.add(jsonObjectParams); + JSONObject jsonObjectData=new JSONObject(); + jsonObjectData.put("data",jsonArray); + String params = jsonObjectData.toJSONString(); + logger.info("调用商学院凭证保存接口请求参数:{}",params); + result = HttpRequest.post(URLTest + "/nky/service/zsApi/saveZJSYPZReimburse?accessToken="+token).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body(); + logger.info("调用商学院凭证保存接口返回参数:{}",result); + } + JSONObject jsonObjectResult=new JSONObject(); + jsonObjectResult.put("status","200"); + jsonObjectResult.put("pzml",result); + return jsonObjectResult; + }catch (Exception e){ + logger.info("根据凭证idpzh:{}查询指标失败:{}",glPzmlEntity.getIdpzh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("根据凭证查询指标失败"); + } + } + + + //获取token + private String getToken(){ + JSONObject jsonObject=new JSONObject(); + jsonObject.put("appkey","9832-b00b-babf-4d6b-9e66-f6c1-3541-a0e6"); + jsonObject.put("appsecret","fbab-16fc-348e-4151-4814-eb06-1526-5f22"); + String params = jsonObject.toJSONString(); + logger.info("=========获取凭证token请求参数:{}========",params); + String urlToken="nky/service/session/getAccessToken"; + String result = HttpRequest.post(URLTest + urlToken).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body(); + logger.info("=========获取凭证token返回结果:{}========",result); + JSONObject jsonObjectResult=JSONObject.parseObject(result); + String value=jsonObjectResult.getString("value"); + if(StrUtil.isNotEmpty(value)){ + JSONObject jsonObjectValue = JSONObject.parseObject(value); + String accessToken = jsonObjectValue.getString("accessToken"); + logger.info("=========获取得凭证token值为:{}=======",accessToken); + return accessToken; + } + return null; + } + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/ISenderGlPznrDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/ISenderGlPznrDao.java new file mode 100644 index 00000000..8c4709f0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/ISenderGlPznrDao.java @@ -0,0 +1,98 @@ +package com.hzya.frame.grpU8.nxproof.glPznr.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity; + +import java.util.List; + +/** + * (gl_pznr: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 14:14:30 + */ +public interface ISenderGlPznrDao extends IBaseDao { + + /** + * + * @content 查询凭证内容 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 保存凭证内容到凭证内容日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/29 15:08 + * **/ + SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 更新凭证内容到凭证内容表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/29 15:09 + * **/ + SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 根据凭证内容id等条件,查询在凭证日志中是否存在,如果不存在,则新增 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/1 9:20 + * **/ + SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 查询凭证内容 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 保存凭证内容 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/29 14:05 + * **/ + SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 更新凭证内容 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/29 14:06 + * **/ + SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity); + + /** + * + * @content 删除凭证内容 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:57 + * **/ + Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity); + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/impl/SenderGlPznrDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/impl/SenderGlPznrDaoImpl.java new file mode 100644 index 00000000..b682b1fb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/dao/impl/SenderGlPznrDaoImpl.java @@ -0,0 +1,74 @@ +package com.hzya.frame.grpU8.nxproof.glPznr.dao.impl; + + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao; +import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (GlPznr)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 14:14:30 + */ +@Repository(value = "SenderGlPznrDaoImpl") +public class SenderGlPznrDaoImpl extends MybatisGenericDao implements ISenderGlPznrDao { + + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public List querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) { + return super.queryByLike(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) { + return super.save(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) { + return super.update(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity) { + SenderGlPznrEntity glPznrEntity = (SenderGlPznrEntity)super.selectOne( "querySenderGlPznrEntityOne", senderGlPznrEntity); + return glPznrEntity; + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public List queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) { + return super.query(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) { + return super.save(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) { + return super.update(senderGlPznrEntity); + } + + @Override + @DS("#senderGlPznrEntity.dataSourceCode") + public Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) { + return super.delete("SenderGlPznrEntity_delete_pznr",senderGlPznrEntity); + } + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.java new file mode 100644 index 00000000..238db05c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.java @@ -0,0 +1,818 @@ +package com.hzya.frame.grpU8.nxproof.glPznr.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlPznr)实体类 + * + * @author makejava + * @since 2024-06-20 14:14:30 + */ +public class SenderGlPznrEntity extends BaseEntity { + + private String gsdm; + private String zth; + private String kjqj; + private String pzly; + private String pzh; + private Integer flh; + private String zy; + private String kmdm; + private String wbdm; + private String hl; + private String jdbz; + private String wbje; + private String je; + private String spz; + private String wldrq; + private String sl; + private String dj; + private String bmdm; + + private String wldm; + private String xmdm; + private String fzsm1; + private String fzsm2; + private String fzsm3; + private String fzsm4; + private String fzsm5; + private String fzsm6; + private String fzsm7; + private String fzsm8; + private String fzsm9; + private String cess; + private String fplx; + private String fprq; + private Integer fphfw1; + private Integer fphfw2; + private String jsfs; + private String zydm; + private String fzdm4; + private String fzdm5; + private String fzdm6; + private String fzdm7; + private String fzdm8; + private String fzdm9; + private String fzdm10; + private String fzdm11; + private String fzdm12; + private String fzdm13; + private String fzdm14; + private String fzdm15; + private String fzdm16; + private String fzdm17; + private String fzdm18; + private String fzdm19; + private String fzdm20; + private String fzdm21; + private String fzdm22; + private String fzdm23; + private String fzdm24; + private String fzdm25; + private String fzdm26; + private String fzdm27; + private String fzdm28; + private String fzdm29; + private String fzdm30; + private String idpznr; + private String wlh; + private Integer zbid; + private Integer edid; + private Integer jfsqid; + + private String kjtxdm; + + private String pzlxdm; + + private String idpzh; + + private String skrlx; + + private String skrmc; + private String skrzh; + + private String skryhdm; + private String skryhhh; + + private String skryhmc; +private String yszccy; + +private String xsflh; + +private String bxdid; +private String htid; +private String zckpbh; +private String sflx; +private String djbh; +private String hzflh; +private String cyxfx; +private String dqrq; +private String glidpznr; + + public String getBxdid() { + return bxdid; + } + + public void setBxdid(String bxdid) { + this.bxdid = bxdid; + } + + public String getHtid() { + return htid; + } + + public void setHtid(String htid) { + this.htid = htid; + } + + public String getZckpbh() { + return zckpbh; + } + + public void setZckpbh(String zckpbh) { + this.zckpbh = zckpbh; + } + + public String getSflx() { + return sflx; + } + + public void setSflx(String sflx) { + this.sflx = sflx; + } + + public String getDjbh() { + return djbh; + } + + public void setDjbh(String djbh) { + this.djbh = djbh; + } + + public String getHzflh() { + return hzflh; + } + + public void setHzflh(String hzflh) { + this.hzflh = hzflh; + } + + public String getCyxfx() { + return cyxfx; + } + + public void setCyxfx(String cyxfx) { + this.cyxfx = cyxfx; + } + + public String getDqrq() { + return dqrq; + } + + public void setDqrq(String dqrq) { + this.dqrq = dqrq; + } + + public String getGlidpznr() { + return glidpznr; + } + + public void setGlidpznr(String glidpznr) { + this.glidpznr = glidpznr; + } + + public String getFzdm11() { + return fzdm11; + } + + public void setFzdm11(String fzdm11) { + this.fzdm11 = fzdm11; + } + + public String getFzdm12() { + return fzdm12; + } + + public void setFzdm12(String fzdm12) { + this.fzdm12 = fzdm12; + } + + public String getFzdm13() { + return fzdm13; + } + + public void setFzdm13(String fzdm13) { + this.fzdm13 = fzdm13; + } + + public String getFzdm14() { + return fzdm14; + } + + public void setFzdm14(String fzdm14) { + this.fzdm14 = fzdm14; + } + + public String getFzdm15() { + return fzdm15; + } + + public void setFzdm15(String fzdm15) { + this.fzdm15 = fzdm15; + } + + public String getFzdm16() { + return fzdm16; + } + + public void setFzdm16(String fzdm16) { + this.fzdm16 = fzdm16; + } + + public String getFzdm17() { + return fzdm17; + } + + public void setFzdm17(String fzdm17) { + this.fzdm17 = fzdm17; + } + + public String getFzdm18() { + return fzdm18; + } + + public void setFzdm18(String fzdm18) { + this.fzdm18 = fzdm18; + } + + public String getFzdm19() { + return fzdm19; + } + + public void setFzdm19(String fzdm19) { + this.fzdm19 = fzdm19; + } + + public String getFzdm20() { + return fzdm20; + } + + public void setFzdm20(String fzdm20) { + this.fzdm20 = fzdm20; + } + + public String getFzdm21() { + return fzdm21; + } + + public void setFzdm21(String fzdm21) { + this.fzdm21 = fzdm21; + } + + public String getFzdm22() { + return fzdm22; + } + + public void setFzdm22(String fzdm22) { + this.fzdm22 = fzdm22; + } + + public String getFzdm23() { + return fzdm23; + } + + public void setFzdm23(String fzdm23) { + this.fzdm23 = fzdm23; + } + + public String getFzdm24() { + return fzdm24; + } + + public void setFzdm24(String fzdm24) { + this.fzdm24 = fzdm24; + } + + public String getFzdm25() { + return fzdm25; + } + + public void setFzdm25(String fzdm25) { + this.fzdm25 = fzdm25; + } + + public String getFzdm26() { + return fzdm26; + } + + public void setFzdm26(String fzdm26) { + this.fzdm26 = fzdm26; + } + + public String getFzdm27() { + return fzdm27; + } + + public void setFzdm27(String fzdm27) { + this.fzdm27 = fzdm27; + } + + public String getFzdm28() { + return fzdm28; + } + + public void setFzdm28(String fzdm28) { + this.fzdm28 = fzdm28; + } + + public String getFzdm29() { + return fzdm29; + } + + public void setFzdm29(String fzdm29) { + this.fzdm29 = fzdm29; + } + + public String getFzdm30() { + return fzdm30; + } + + public void setFzdm30(String fzdm30) { + this.fzdm30 = fzdm30; + } + + public String getKjtxdm() { + return kjtxdm; + } + + public void setKjtxdm(String kjtxdm) { + this.kjtxdm = kjtxdm; + } + + public String getPzlxdm() { + return pzlxdm; + } + + public void setPzlxdm(String pzlxdm) { + this.pzlxdm = pzlxdm; + } + + public String getIdpzh() { + return idpzh; + } + + public void setIdpzh(String idpzh) { + this.idpzh = idpzh; + } + + public String getSkrlx() { + return skrlx; + } + + public void setSkrlx(String skrlx) { + this.skrlx = skrlx; + } + + public String getSkrmc() { + return skrmc; + } + + public void setSkrmc(String skrmc) { + this.skrmc = skrmc; + } + + public String getSkrzh() { + return skrzh; + } + + public void setSkrzh(String skrzh) { + this.skrzh = skrzh; + } + + public String getSkryhdm() { + return skryhdm; + } + + public void setSkryhdm(String skryhdm) { + this.skryhdm = skryhdm; + } + + public String getSkryhhh() { + return skryhhh; + } + + public void setSkryhhh(String skryhhh) { + this.skryhhh = skryhhh; + } + + public String getSkryhmc() { + return skryhmc; + } + + public void setSkryhmc(String skryhmc) { + this.skryhmc = skryhmc; + } + + public String getYszccy() { + return yszccy; + } + + public void setYszccy(String yszccy) { + this.yszccy = yszccy; + } + + public String getXsflh() { + return xsflh; + } + + public void setXsflh(String xsflh) { + this.xsflh = xsflh; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getKjqj() { + return kjqj; + } + + public void setKjqj(String kjqj) { + this.kjqj = kjqj; + } + + public String getPzly() { + return pzly; + } + + public void setPzly(String pzly) { + this.pzly = pzly; + } + + public String getPzh() { + return pzh; + } + + public void setPzh(String pzh) { + this.pzh = pzh; + } + + public Integer getFlh() { + return flh; + } + + public void setFlh(Integer flh) { + this.flh = flh; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getWbdm() { + return wbdm; + } + + public void setWbdm(String wbdm) { + this.wbdm = wbdm; + } + + public String getHl() { + return hl; + } + + public void setHl(String hl) { + this.hl = hl; + } + + public String getJdbz() { + return jdbz; + } + + public void setJdbz(String jdbz) { + this.jdbz = jdbz; + } + + public String getWbje() { + return wbje; + } + + public void setWbje(String wbje) { + this.wbje = wbje; + } + + public String getJe() { + return je; + } + + public void setJe(String je) { + this.je = je; + } + + public String getSpz() { + return spz; + } + + public void setSpz(String spz) { + this.spz = spz; + } + + public String getWldrq() { + return wldrq; + } + + public void setWldrq(String wldrq) { + this.wldrq = wldrq; + } + + public String getSl() { + return sl; + } + + public void setSl(String sl) { + this.sl = sl; + } + + public String getDj() { + return dj; + } + + public void setDj(String dj) { + this.dj = dj; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getWldm() { + return wldm; + } + + public void setWldm(String wldm) { + this.wldm = wldm; + } + + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getFzsm1() { + return fzsm1; + } + + public void setFzsm1(String fzsm1) { + this.fzsm1 = fzsm1; + } + + public String getFzsm2() { + return fzsm2; + } + + public void setFzsm2(String fzsm2) { + this.fzsm2 = fzsm2; + } + + public String getFzsm3() { + return fzsm3; + } + + public void setFzsm3(String fzsm3) { + this.fzsm3 = fzsm3; + } + + public String getFzsm4() { + return fzsm4; + } + + public void setFzsm4(String fzsm4) { + this.fzsm4 = fzsm4; + } + + public String getFzsm5() { + return fzsm5; + } + + public void setFzsm5(String fzsm5) { + this.fzsm5 = fzsm5; + } + + public String getFzsm6() { + return fzsm6; + } + + public void setFzsm6(String fzsm6) { + this.fzsm6 = fzsm6; + } + + public String getFzsm7() { + return fzsm7; + } + + public void setFzsm7(String fzsm7) { + this.fzsm7 = fzsm7; + } + + public String getFzsm8() { + return fzsm8; + } + + public void setFzsm8(String fzsm8) { + this.fzsm8 = fzsm8; + } + + public String getFzsm9() { + return fzsm9; + } + + public void setFzsm9(String fzsm9) { + this.fzsm9 = fzsm9; + } + + public String getCess() { + return cess; + } + + public void setCess(String cess) { + this.cess = cess; + } + + public String getFplx() { + return fplx; + } + + public void setFplx(String fplx) { + this.fplx = fplx; + } + + public String getFprq() { + return fprq; + } + + public void setFprq(String fprq) { + this.fprq = fprq; + } + + public Integer getFphfw1() { + return fphfw1; + } + + public void setFphfw1(Integer fphfw1) { + this.fphfw1 = fphfw1; + } + + public Integer getFphfw2() { + return fphfw2; + } + + public void setFphfw2(Integer fphfw2) { + this.fphfw2 = fphfw2; + } + + public String getJsfs() { + return jsfs; + } + + public void setJsfs(String jsfs) { + this.jsfs = jsfs; + } + + public String getZydm() { + return zydm; + } + + public void setZydm(String zydm) { + this.zydm = zydm; + } + + public String getFzdm4() { + return fzdm4; + } + + public void setFzdm4(String fzdm4) { + this.fzdm4 = fzdm4; + } + + public String getFzdm5() { + return fzdm5; + } + + public void setFzdm5(String fzdm5) { + this.fzdm5 = fzdm5; + } + + public String getFzdm6() { + return fzdm6; + } + + public void setFzdm6(String fzdm6) { + this.fzdm6 = fzdm6; + } + + public String getFzdm7() { + return fzdm7; + } + + public void setFzdm7(String fzdm7) { + this.fzdm7 = fzdm7; + } + + public String getFzdm8() { + return fzdm8; + } + + public void setFzdm8(String fzdm8) { + this.fzdm8 = fzdm8; + } + + public String getFzdm9() { + return fzdm9; + } + + public void setFzdm9(String fzdm9) { + this.fzdm9 = fzdm9; + } + + public String getFzdm10() { + return fzdm10; + } + + public void setFzdm10(String fzdm10) { + this.fzdm10 = fzdm10; + } + + public String getIdpznr() { + return idpznr; + } + + public void setIdpznr(String idpznr) { + this.idpznr = idpznr; + } + + public String getWlh() { + return wlh; + } + + public void setWlh(String wlh) { + this.wlh = wlh; + } + + public Integer getZbid() { + return zbid; + } + + public void setZbid(Integer zbid) { + this.zbid = zbid; + } + + public Integer getEdid() { + return edid; + } + + public void setEdid(Integer edid) { + this.edid = edid; + } + + public Integer getJfsqid() { + return jfsqid; + } + + public void setJfsqid(Integer jfsqid) { + this.jfsqid = jfsqid; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.xml new file mode 100644 index 00000000..3e2eef96 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/entity/SenderGlPznrEntity.xml @@ -0,0 +1,896 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + , ZTH + , kjqj + , pzly + , pzh + ,pzlxdm + ,kjtxdm + , flh + , zy + , kmdm + , wbdm + , hl + , jdbz + , wbje + , je + , spz + , wldrq + , sl + , dj + , bmdm + , wldm + , xmdm + , fzsm1 + , fzsm2 + , fzsm3 + , fzsm4 + , fzsm5 + , fzsm6 + , fzsm7 + , fzsm8 + , fzsm9 + , cess + , fplx + , fprq + , fphfw1 + , fphfw2 + , jsfs + , zydm + , fzdm4 + , fzdm5 + , fzdm6 + , fzdm7 + , fzdm8 + , fzdm9 + , fzdm10 + , IDPZNR + , wlh + , ZBID + , EDID + , JFSQID + , fzdm10 + , fzdm11 + , fzdm12 + , fzdm13 + , fzdm14 + , fzdm15 + , fzdm16 + , fzdm17 + , fzdm18 + , fzdm19 + , fzdm20 + , fzdm21 + , fzdm22 + , fzdm23 + , fzdm24 + , fzdm25 + , fzdm26 + , fzdm27 + , fzdm28 + , fzdm29 + , fzdm30 + , idpzh + , skrlx + , skrmc + , skrzh + , skryhdm + , skryhhh + , skryhmc + , yszccy + , xsflh + , bxdid + , htid + , zckpbh + , sflx + , djbh + , hzflh + , cyxfx + , dqrq + , glidpznr + + + + + + + + + + + + + + + + + + + + insert into gl_pznr( + + gsdm , + kjqj , + pzly , + pzh , + kjtxdm , + pzlxdm , + flh , + zy , + kmdm , + wbdm , + hl , + jdbz , + wbje , + je , + spz , + wldrq , + sl , + dj , + bmdm , + wldm , + xmdm , + fzsm1 , + fzsm2 , + fzsm3 , + fzsm4 , + fzsm5 , + fzsm6 , + fzsm7 , + fzsm8 , + fzsm9 , + cess , + fplx , + fprq , + fphfw1 , + fphfw2 , + jsfs , + zydm , + fzdm4 , + fzdm5 , + fzdm6 , + fzdm7 , + fzdm8 , + fzdm9 , + fzdm10 , + IDPZNR , + wlh , + ZBID , + EDID , + JFSQID , + fzdm11 , + fzdm12 , + fzdm13 , + fzdm14 , + fzdm15 , + fzdm16 , + fzdm17 , + fzdm18 , + fzdm19 , + fzdm20 , + fzdm21 , + fzdm22 , + fzdm23 , + fzdm24 , + fzdm25 , + fzdm26 , + fzdm27 , + fzdm28 , + fzdm29 , + fzdm30 , + idpzh , + skrlx , + skrmc , + skrzh , + skryhdm , + skryhhh , + skryhmc , + yszccy , + xsflh , + bxdid , + htid , + zckpbh , + sflx , + djbh , + hzflh , + cyxfx , + dqrq , + glidpznr , + ZTH + + )values( + + #{gsdm} , + #{kjqj} , + #{pzly} , + #{pzh} , + #{kjtxdm} , + #{pzlxdm} , + #{flh} , + #{zy} , + #{kmdm} , + #{wbdm} , + #{hl} , + #{jdbz} , + #{wbje} , + #{je} , + #{spz} , + #{wldrq} , + #{sl} , + #{dj} , + #{bmdm} , + #{wldm} , + #{xmdm} , + #{fzsm1} , + #{fzsm2} , + #{fzsm3} , + #{fzsm4} , + #{fzsm5} , + #{fzsm6} , + #{fzsm7} , + #{fzsm8} , + #{fzsm9} , + #{cess} , + #{fplx} , + #{fprq} , + #{fphfw1} , + #{fphfw2} , + #{jsfs} , + #{zydm} , + #{fzdm4} , + #{fzdm5} , + #{fzdm6} , + #{fzdm7} , + #{fzdm8} , + #{fzdm9} , + #{fzdm10} , + #{idpznr} , + #{wlh} , + #{zbid} , + #{edid} , + #{jfsqid} , + #{fzdm11} , + #{fzdm12} , + #{fzdm13} , + #{fzdm14} , + #{fzdm15} , + #{fzdm16} , + #{fzdm17} , + #{fzdm18} , + #{fzdm19} , + #{fzdm20} , + #{fzdm21} , + #{fzdm22} , + #{fzdm23} , + #{fzdm24} , + #{fzdm25} , + #{fzdm26} , + #{fzdm27} , + #{fzdm28} , + #{fzdm29} , + #{fzdm30} , + #{idpzh} , + #{skrlx} , + #{skrmc} , + #{skrzh} , + #{skryhdm} , + #{skryhhh} , + #{skryhmc} , + #{yszccy} , + #{xsflh} , + #{bxdid}, + #{htid} , + #{zckpbh} , + #{sflx} , + #{djbh} , + #{hzflh} , + #{cyxfx} , + #{dqrq} , + #{glidpznr} , + #{zth} + + ) + + + + insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID) + values + + (#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid}) + + + + + insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID) + values + + (#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid}) + + on duplicate key update + gsdm = values(gsdm), + ZTH = values(ZTH), + kjqj = values(kjqj), + pzly = values(pzly), + pzh = values(pzh), + flh = values(flh), + zy = values(zy), + kmdm = values(kmdm), + wbdm = values(wbdm), + hl = values(hl), + jdbz = values(jdbz), + wbje = values(wbje), + je = values(je), + spz = values(spz), + wldrq = values(wldrq), + sl = values(sl), + dj = values(dj), + bmdm = values(bmdm), + wldm = values(wldm), + xmdm = values(xmdm), + fzsm1 = values(fzsm1), + fzsm2 = values(fzsm2), + fzsm3 = values(fzsm3), + fzsm4 = values(fzsm4), + fzsm5 = values(fzsm5), + fzsm6 = values(fzsm6), + fzsm7 = values(fzsm7), + fzsm8 = values(fzsm8), + fzsm9 = values(fzsm9), + cess = values(cess), + fplx = values(fplx), + fprq = values(fprq), + fphfw1 = values(fphfw1), + fphfw2 = values(fphfw2), + jsfs = values(jsfs), + zydm = values(zydm), + fzdm4 = values(fzdm4), + fzdm5 = values(fzdm5), + fzdm6 = values(fzdm6), + fzdm7 = values(fzdm7), + fzdm8 = values(fzdm8), + fzdm9 = values(fzdm9), + fzdm10 = values(fzdm10), + IDPZNR = values(IDPZNR), + wlh = values(wlh), + ZBID = values(ZBID), + EDID = values(EDID), + JFSQID = values(JFSQID) + + + update gl_pznr set + + gsdm = #{gsdm}, + ZTH = #{zth}, + kjqj = #{kjqj}, + pzly = #{pzly}, + pzh = #{pzh}, + kjtxdm = #{kjtxdm}, + pzlxdm = #{pzlxdm}, + flh = #{flh}, + zy = #{zy}, + kmdm = #{kmdm}, + wbdm = #{wbdm}, + hl = #{hl}, + jdbz = #{jdbz}, + wbje = #{wbje}, + je = #{je}, + spz = #{spz}, + wldrq = #{wldrq}, + sl = #{sl}, + dj = #{dj}, + bmdm = #{bmdm}, + wldm = #{wldm}, + xmdm = #{xmdm}, + fzsm1 = #{fzsm1}, + fzsm2 = #{fzsm2}, + fzsm3 = #{fzsm3}, + fzsm4 = #{fzsm4}, + fzsm5 = #{fzsm5}, + fzsm6 = #{fzsm6}, + fzsm7 = #{fzsm7}, + fzsm8 = #{fzsm8}, + fzsm9 = #{fzsm9}, + cess = #{cess}, + fplx = #{fplx}, + fprq = #{fprq}, + fphfw1 = #{fphfw1}, + fphfw2 = #{fphfw2}, + jsfs = #{jsfs}, + zydm = #{zydm}, + fzdm4 = #{fzdm4}, + fzdm5 = #{fzdm5}, + fzdm6 = #{fzdm6}, + fzdm7 = #{fzdm7}, + fzdm8 = #{fzdm8}, + fzdm9 = #{fzdm9}, + fzdm10 = #{fzdm10}, + wlh = #{wlh}, + ZBID = #{zbid}, + EDID = #{edid}, + JFSQID = #{jfsqid}, + fzdm11 = #{fzdm11} , + fzdm12 = #{fzdm12} , + fzdm13 = #{fzdm13} , + fzdm14 = #{fzdm14} , + fzdm15 = #{fzdm15} , + fzdm16 = #{fzdm16} , + fzdm17 = #{fzdm17} , + fzdm18 = #{fzdm18} , + fzdm19 = #{fzdm19} , + fzdm20 = #{fzdm20} , + fzdm21 = #{fzdm21} , + fzdm22 = #{fzdm22} , + fzdm23 = #{fzdm23} , + fzdm24 = #{fzdm24} , + fzdm25 = #{fzdm25} , + fzdm26 = #{fzdm26} , + fzdm27 = #{fzdm27} , + fzdm28 = #{fzdm28} , + fzdm29 = #{fzdm29} , + fzdm30 = #{fzdm30} , + idpzh = #{idpzh} , + skrlx = #{skrlx} , + skrmc = #{skrmc} , + skrzh = #{skrzh} , + skryhdm = #{skryhdm} , + skryhhh = #{skryhhh} , + skryhmc = #{skryhmc} , + yszccy = #{yszccy} , + xsflh = #{xsflh} , + bxdid = #{bxdid}, + htid = #{htid} , + zckpbh = #{zckpbh} , + sflx = #{sflx} , + djbh = #{djbh} , + hzflh = #{hzflh} , + cyxfx =#{cyxfx} , + dqrq = #{dqrq} , + glidpznr =#{glidpznr} + + where idpznr= #{idpznr} + + + +update gl_pznr set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where idpznr= #{idpznr} + + + +update gl_pznr set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and ZTH = #{zth} + and kjqj = #{kjqj} + and pzly = #{pzly} + and pzh = #{pzh} + and kjtxdm = #{kjtxdm} + and pzh = #{pzlxdm} + and flh = #{flh} + and zy = #{zy} + and kmdm = #{kmdm} + and wbdm = #{wbdm} + and hl = #{hl} + and jdbz = #{jdbz} + and wbje = #{wbje} + and je = #{je} + and spz = #{spz} + and wldrq = #{wldrq} + and sl = #{sl} + and dj = #{dj} + and bmdm = #{bmdm} + and wldm = #{wldm} + and xmdm = #{xmdm} + and fzsm1 = #{fzsm1} + and fzsm2 = #{fzsm2} + and fzsm3 = #{fzsm3} + and fzsm4 = #{fzsm4} + and fzsm5 = #{fzsm5} + and fzsm6 = #{fzsm6} + and fzsm7 = #{fzsm7} + and fzsm8 = #{fzsm8} + and fzsm9 = #{fzsm9} + and cess = #{cess} + and fplx = #{fplx} + and fprq = #{fprq} + and fphfw1 = #{fphfw1} + and fphfw2 = #{fphfw2} + and jsfs = #{jsfs} + and zydm = #{zydm} + and fzdm4 = #{fzdm4} + and fzdm5 = #{fzdm5} + and fzdm6 = #{fzdm6} + and fzdm7 = #{fzdm7} + and fzdm8 = #{fzdm8} + and fzdm9 = #{fzdm9} + and fzdm10 = #{fzdm10} + and IDPZNR = #{idpznr} + and wlh = #{wlh} + and ZBID = #{zbid} + and EDID = #{edid} + and JFSQID = #{jfsqid} + and sts='Y' + + + + + delete from gl_pznr where idpznr = #{idpznr} + + + + + delete from gl_pznr where gsdm= #{gsdm} and zth=#{zth} + and kjqj=#{kjqj} + and pzh = #{pzh} + and idpzh = #{idpzh} + + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/ISenderGlPznrService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/ISenderGlPznrService.java new file mode 100644 index 00000000..8d23a5b7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/ISenderGlPznrService.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.glPznr.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity; + +/** + * (GlPznr)表服务接口 + * + * @author makejava + * @since 2024-06-20 14:14:30 + */ +public interface ISenderGlPznrService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/impl/SenderGlPznrServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/impl/SenderGlPznrServiceImpl.java new file mode 100644 index 00000000..91428aa6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glPznr/service/impl/SenderGlPznrServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.grpU8.nxproof.glPznr.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao; +import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity; +import com.hzya.frame.grpU8.nxproof.glPznr.service.ISenderGlPznrService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +/** + * (GlPznr)表服务实现类 + * + * @author makejava + * @since 2024-06-20 14:14:30 + */ +@Service(value = "SenderGlPznrServiceImpl") +public class SenderGlPznrServiceImpl extends BaseService implements ISenderGlPznrService { + + private ISenderGlPznrDao senderGlPznrDao; + + @Autowired + public void setSenderGlPznrDao(ISenderGlPznrDao dao) { + this.senderGlPznrDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/ISenderGlYebDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/ISenderGlYebDao.java new file mode 100644 index 00000000..55ed3d5a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/ISenderGlYebDao.java @@ -0,0 +1,80 @@ +package com.hzya.frame.grpU8.nxproof.glYeb.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity; + +import java.util.List; + +/** + * (gl_yeb: table)表数据库访问层 + * + * @author makejava + * @since 2024-07-08 11:12:24 + */ +public interface ISenderGlYebDao extends IBaseDao { + + /** + * + * @content 查询余额数据 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:44 + * **/ + List querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity); + + /** + * + * @content 保存余额数据到余额日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:45 + * **/ + SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity); + + /** + * + * @content 更新余额数据到余额日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:46 + * **/ + SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity); + + /** + * + * @content 查询余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:55 + * **/ + List queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity); + + /** + * + * @content 保存余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:55 + * **/ + SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity); + + + + /** + * + * @content 删除余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/16 13:51 + * **/ + Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity); + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/impl/SenderGlYebDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/impl/SenderGlYebDaoImpl.java new file mode 100644 index 00000000..5f21c8a2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/dao/impl/SenderGlYebDaoImpl.java @@ -0,0 +1,57 @@ +package com.hzya.frame.grpU8.nxproof.glYeb.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao; +import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (GlYeb)表数据库访问层 + * + * @author makejava + * @since 2024-07-08 11:12:24 + */ +@Repository(value = "SenderGlYebDaoImpl") +public class SenderGlYebDaoImpl extends MybatisGenericDao implements ISenderGlYebDao { + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public List querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) { + return super.queryByLike(senderGlYebEntity); + } + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) { + return super.save(senderGlYebEntity); + } + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) { + return super.update(senderGlYebEntity); + } + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public List queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) { + return super.query(senderGlYebEntity); + } + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) { + return super.save(senderGlYebEntity); + } + + @Override + @DS("#senderGlYebEntity.dataSourceCode") + public Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) { + return super.delete(getSqlIdPrifx()+"SenderGlYebEntity_delete_yeb",senderGlYebEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.java new file mode 100644 index 00000000..7fa05d81 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.java @@ -0,0 +1,630 @@ +package com.hzya.frame.grpU8.nxproof.glYeb.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlYeb)实体类 + * + * @author makejava + * @since 2024-07-08 11:12:24 + */ +public class SenderGlYebEntity extends BaseEntity { + + private String kjnd; + private String kmdm; + private String yeblx; + private String wbdm; + private String gsdm; + private String zth; + private String fzdm0; + private String fzdm1; + private String fzdm2; + private String fzdm3; + private String fzdm4; + private String fzdm5; + private String fzdm6; + private String fzdm7; + private String fzdm8; + private String fzdm9; + private String fzdm10; +private String fzdm11; +private String fzdm12; +private String fzdm13; +private String fzdm14; +private String fzdm15; +private String fzdm16; +private String fzdm17; +private String fzdm18; +private String fzdm19; +private String fzdm20; +private String fzdm21; +private String fzdm22; +private String fzdm23; +private String fzdm24; +private String fzdm25; +private String fzdm26; +private String fzdm27; +private String fzdm28; +private String fzdm29; +private String fzdm30; + private String zdylb; + private String zdydm; + private String ncj; + private String ncd; + private String yj1; + private String yd1; + private String yj2; + private String yd2; + private String yj3; + private String yd3; + private String yj4; + private String yd4; + private String yj5; + private String yd5; + private String yj6; + private String yd6; + private String yj7; + private String yd7; + private String yj8; + private String yd8; + private String yj9; + private String yd9; + private String yj10; + private String yd10; + private String yj11; + private String yd11; + private String yj12; + private String yd12; + private String yj13; + private String yd13; + + private String kjtxdm; + + public String getFzdm11() { + return fzdm11; + } + + public void setFzdm11(String fzdm11) { + this.fzdm11 = fzdm11; + } + + public String getFzdm12() { + return fzdm12; + } + + public void setFzdm12(String fzdm12) { + this.fzdm12 = fzdm12; + } + + public String getFzdm13() { + return fzdm13; + } + + public void setFzdm13(String fzdm13) { + this.fzdm13 = fzdm13; + } + + public String getFzdm14() { + return fzdm14; + } + + public void setFzdm14(String fzdm14) { + this.fzdm14 = fzdm14; + } + + public String getFzdm15() { + return fzdm15; + } + + public void setFzdm15(String fzdm15) { + this.fzdm15 = fzdm15; + } + + public String getFzdm16() { + return fzdm16; + } + + public void setFzdm16(String fzdm16) { + this.fzdm16 = fzdm16; + } + + public String getFzdm17() { + return fzdm17; + } + + public void setFzdm17(String fzdm17) { + this.fzdm17 = fzdm17; + } + + public String getFzdm18() { + return fzdm18; + } + + public void setFzdm18(String fzdm18) { + this.fzdm18 = fzdm18; + } + + public String getFzdm19() { + return fzdm19; + } + + public void setFzdm19(String fzdm19) { + this.fzdm19 = fzdm19; + } + + public String getFzdm20() { + return fzdm20; + } + + public void setFzdm20(String fzdm20) { + this.fzdm20 = fzdm20; + } + + public String getFzdm21() { + return fzdm21; + } + + public void setFzdm21(String fzdm21) { + this.fzdm21 = fzdm21; + } + + public String getFzdm22() { + return fzdm22; + } + + public void setFzdm22(String fzdm22) { + this.fzdm22 = fzdm22; + } + + public String getFzdm23() { + return fzdm23; + } + + public void setFzdm23(String fzdm23) { + this.fzdm23 = fzdm23; + } + + public String getFzdm24() { + return fzdm24; + } + + public void setFzdm24(String fzdm24) { + this.fzdm24 = fzdm24; + } + + public String getFzdm25() { + return fzdm25; + } + + public void setFzdm25(String fzdm25) { + this.fzdm25 = fzdm25; + } + + public String getFzdm26() { + return fzdm26; + } + + public void setFzdm26(String fzdm26) { + this.fzdm26 = fzdm26; + } + + public String getFzdm27() { + return fzdm27; + } + + public void setFzdm27(String fzdm27) { + this.fzdm27 = fzdm27; + } + + public String getFzdm28() { + return fzdm28; + } + + public void setFzdm28(String fzdm28) { + this.fzdm28 = fzdm28; + } + + public String getFzdm29() { + return fzdm29; + } + + public void setFzdm29(String fzdm29) { + this.fzdm29 = fzdm29; + } + + public String getFzdm30() { + return fzdm30; + } + + public void setFzdm30(String fzdm30) { + this.fzdm30 = fzdm30; + } + + public String getKjtxdm() { + return kjtxdm; + } + + public void setKjtxdm(String kjtxdm) { + this.kjtxdm = kjtxdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getYeblx() { + return yeblx; + } + + public void setYeblx(String yeblx) { + this.yeblx = yeblx; + } + + public String getWbdm() { + return wbdm; + } + + public void setWbdm(String wbdm) { + this.wbdm = wbdm; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getFzdm0() { + return fzdm0; + } + + public void setFzdm0(String fzdm0) { + this.fzdm0 = fzdm0; + } + + public String getFzdm1() { + return fzdm1; + } + + public void setFzdm1(String fzdm1) { + this.fzdm1 = fzdm1; + } + + public String getFzdm2() { + return fzdm2; + } + + public void setFzdm2(String fzdm2) { + this.fzdm2 = fzdm2; + } + + public String getFzdm3() { + return fzdm3; + } + + public void setFzdm3(String fzdm3) { + this.fzdm3 = fzdm3; + } + + public String getFzdm4() { + return fzdm4; + } + + public void setFzdm4(String fzdm4) { + this.fzdm4 = fzdm4; + } + + public String getFzdm5() { + return fzdm5; + } + + public void setFzdm5(String fzdm5) { + this.fzdm5 = fzdm5; + } + + public String getFzdm6() { + return fzdm6; + } + + public void setFzdm6(String fzdm6) { + this.fzdm6 = fzdm6; + } + + public String getFzdm7() { + return fzdm7; + } + + public void setFzdm7(String fzdm7) { + this.fzdm7 = fzdm7; + } + + public String getFzdm8() { + return fzdm8; + } + + public void setFzdm8(String fzdm8) { + this.fzdm8 = fzdm8; + } + + public String getFzdm9() { + return fzdm9; + } + + public void setFzdm9(String fzdm9) { + this.fzdm9 = fzdm9; + } + + public String getFzdm10() { + return fzdm10; + } + + public void setFzdm10(String fzdm10) { + this.fzdm10 = fzdm10; + } + + public String getZdylb() { + return zdylb; + } + + public void setZdylb(String zdylb) { + this.zdylb = zdylb; + } + + public String getZdydm() { + return zdydm; + } + + public void setZdydm(String zdydm) { + this.zdydm = zdydm; + } + + public String getNcj() { + return ncj; + } + + public void setNcj(String ncj) { + this.ncj = ncj; + } + + public String getNcd() { + return ncd; + } + + public void setNcd(String ncd) { + this.ncd = ncd; + } + + public String getYj1() { + return yj1; + } + + public void setYj1(String yj1) { + this.yj1 = yj1; + } + + public String getYd1() { + return yd1; + } + + public void setYd1(String yd1) { + this.yd1 = yd1; + } + + public String getYj2() { + return yj2; + } + + public void setYj2(String yj2) { + this.yj2 = yj2; + } + + public String getYd2() { + return yd2; + } + + public void setYd2(String yd2) { + this.yd2 = yd2; + } + + public String getYj3() { + return yj3; + } + + public void setYj3(String yj3) { + this.yj3 = yj3; + } + + public String getYd3() { + return yd3; + } + + public void setYd3(String yd3) { + this.yd3 = yd3; + } + + public String getYj4() { + return yj4; + } + + public void setYj4(String yj4) { + this.yj4 = yj4; + } + + public String getYd4() { + return yd4; + } + + public void setYd4(String yd4) { + this.yd4 = yd4; + } + + public String getYj5() { + return yj5; + } + + public void setYj5(String yj5) { + this.yj5 = yj5; + } + + public String getYd5() { + return yd5; + } + + public void setYd5(String yd5) { + this.yd5 = yd5; + } + + public String getYj6() { + return yj6; + } + + public void setYj6(String yj6) { + this.yj6 = yj6; + } + + public String getYd6() { + return yd6; + } + + public void setYd6(String yd6) { + this.yd6 = yd6; + } + + public String getYj7() { + return yj7; + } + + public void setYj7(String yj7) { + this.yj7 = yj7; + } + + public String getYd7() { + return yd7; + } + + public void setYd7(String yd7) { + this.yd7 = yd7; + } + + public String getYj8() { + return yj8; + } + + public void setYj8(String yj8) { + this.yj8 = yj8; + } + + public String getYd8() { + return yd8; + } + + public void setYd8(String yd8) { + this.yd8 = yd8; + } + + public String getYj9() { + return yj9; + } + + public void setYj9(String yj9) { + this.yj9 = yj9; + } + + public String getYd9() { + return yd9; + } + + public void setYd9(String yd9) { + this.yd9 = yd9; + } + + public String getYj10() { + return yj10; + } + + public void setYj10(String yj10) { + this.yj10 = yj10; + } + + public String getYd10() { + return yd10; + } + + public void setYd10(String yd10) { + this.yd10 = yd10; + } + + public String getYj11() { + return yj11; + } + + public void setYj11(String yj11) { + this.yj11 = yj11; + } + + public String getYd11() { + return yd11; + } + + public void setYd11(String yd11) { + this.yd11 = yd11; + } + + public String getYj12() { + return yj12; + } + + public void setYj12(String yj12) { + this.yj12 = yj12; + } + + public String getYd12() { + return yd12; + } + + public void setYd12(String yd12) { + this.yd12 = yd12; + } + + public String getYj13() { + return yj13; + } + + public void setYj13(String yj13) { + this.yj13 = yj13; + } + + public String getYd13() { + return yd13; + } + + public void setYd13(String yd13) { + this.yd13 = yd13; + } + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.xml new file mode 100644 index 00000000..0ccb97c6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/entity/SenderGlYebEntity.xml @@ -0,0 +1,732 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + kjnd + ,kmdm + ,yeblx + ,wbdm + ,gsdm + ,ZTH + ,fzdm0 + ,fzdm1 + ,fzdm2 + ,fzdm3 + ,fzdm4 + ,fzdm5 + ,fzdm6 + ,fzdm7 + ,fzdm8 + ,fzdm9 + ,fzdm10 + ,fzdm11 + ,fzdm12 + ,fzdm13 + ,fzdm14 + ,fzdm15 + ,fzdm16 + ,fzdm17 + ,fzdm18 + ,fzdm19 + ,fzdm20 + ,fzdm21 + ,fzdm22 + ,fzdm23 + ,fzdm24 + ,fzdm25 + ,fzdm26 + ,fzdm27 + ,fzdm28 + ,fzdm29 + ,fzdm30 + ,zdylb + ,zdydm + ,ncj + ,ncd + ,yj1 + ,yd1 + ,yj2 + ,yd2 + ,yj3 + ,yd3 + ,yj4 + ,yd4 + ,yj5 + ,yd5 + ,yj6 + ,yd6 + ,yj7 + ,yd7 + ,yj8 + ,yd8 + ,yj9 + ,yd9 + ,yj10 + ,yd10 + ,yj11 + ,yd11 + ,yj12 + ,yd12 + ,yj13 + ,yd13 + ,ID + ,kjtxdm + + + + + + + + + + + + + + + + insert into gl_yeb( + + kjnd , + kmdm , + yeblx , + wbdm , + gsdm , + ZTH , + fzdm0 , + fzdm1 , + fzdm2 , + fzdm3 , + fzdm4 , + fzdm5 , + fzdm6 , + fzdm7 , + fzdm8 , + fzdm9 , + fzdm10 , + fzdm11 , + fzdm12 , + fzdm13 , + fzdm14 , + fzdm15 , + fzdm16 , + fzdm17 , + fzdm18 , + fzdm19 , + fzdm20 , + fzdm21 , + fzdm22 , + fzdm23 , + fzdm24 , + fzdm25 , + fzdm26 , + fzdm27 , + fzdm28 , + fzdm29 , + fzdm30 , + zdylb , + zdydm , + ncj , + ncd , + yj1 , + yd1 , + yj2 , + yd2 , + yj3 , + yd3 , + yj4 , + yd4 , + yj5 , + yd5 , + yj6 , + yd6 , + yj7 , + yd7 , + yj8 , + yd8 , + yj9 , + yd9 , + yj10 , + yd10 , + yj11 , + yd11 , + yj12 , + yd12 , + yj13 , + yd13, + kjtxdm + + )values( + + #{kjnd} , + #{kmdm} , + #{yeblx} , + #{wbdm} , + #{gsdm} , + #{zth} , + #{fzdm0} , + #{fzdm1} , + #{fzdm2} , + #{fzdm3} , + #{fzdm4} , + #{fzdm5} , + #{fzdm6} , + #{fzdm7} , + #{fzdm8} , + #{fzdm9} , + #{fzdm10} , + #{fzdm11} , + #{fzdm12} , + #{fzdm13} , + #{fzdm14} , + #{fzdm15} , + #{fzdm16} , + #{fzdm17} , + #{fzdm18} , + #{fzdm19} , + #{fzdm20} , + #{fzdm21} , + #{fzdm22} , + #{fzdm23} , + #{fzdm24} , + #{fzdm25} , + #{fzdm26} , + #{fzdm27} , + #{fzdm28} , + #{fzdm29} , + #{fzdm30} , + #{zdylb} , + #{zdydm} , + #{ncj} , + #{ncd} , + #{yj1} , + #{yd1} , + #{yj2} , + #{yd2} , + #{yj3} , + #{yd3} , + #{yj4} , + #{yd4} , + #{yj5} , + #{yd5} , + #{yj6} , + #{yd6} , + #{yj7} , + #{yd7} , + #{yj8} , + #{yd8} , + #{yj9} , + #{yd9} , + #{yj10} , + #{yd10} , + #{yj11} , + #{yd11} , + #{yj12} , + #{yd12} , + #{yj13} , + #{yd13}, + #{kjtxdm} + + ) + + + + insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID) + values + + (#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id}) + + + + + insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID) + values + + (#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id}) + + on duplicate key update + kjnd = values(kjnd), + kmdm = values(kmdm), + yeblx = values(yeblx), + wbdm = values(wbdm), + gsdm = values(gsdm), + ZTH = values(ZTH), + fzdm0 = values(fzdm0), + fzdm1 = values(fzdm1), + fzdm2 = values(fzdm2), + fzdm3 = values(fzdm3), + fzdm4 = values(fzdm4), + fzdm5 = values(fzdm5), + fzdm6 = values(fzdm6), + fzdm7 = values(fzdm7), + fzdm8 = values(fzdm8), + fzdm9 = values(fzdm9), + fzdm10 = values(fzdm10), + zdylb = values(zdylb), + zdydm = values(zdydm), + ncj = values(ncj), + ncd = values(ncd), + yj1 = values(yj1), + yd1 = values(yd1), + yj2 = values(yj2), + yd2 = values(yd2), + yj3 = values(yj3), + yd3 = values(yd3), + yj4 = values(yj4), + yd4 = values(yd4), + yj5 = values(yj5), + yd5 = values(yd5), + yj6 = values(yj6), + yd6 = values(yd6), + yj7 = values(yj7), + yd7 = values(yd7), + yj8 = values(yj8), + yd8 = values(yd8), + yj9 = values(yj9), + yd9 = values(yd9), + yj10 = values(yj10), + yd10 = values(yd10), + yj11 = values(yj11), + yd11 = values(yd11), + yj12 = values(yj12), + yd12 = values(yd12), + yj13 = values(yj13), + yd13 = values(yd13), + ID = values(ID) + + + update gl_yeb set + + kjnd = #{kjnd}, + kmdm = #{kmdm}, + yeblx = #{yeblx}, + wbdm = #{wbdm}, + gsdm = #{gsdm}, + ZTH = #{zth}, + fzdm0 = #{fzdm0}, + fzdm1 = #{fzdm1}, + fzdm2 = #{fzdm2}, + fzdm3 = #{fzdm3}, + fzdm4 = #{fzdm4}, + fzdm5 = #{fzdm5}, + fzdm6 = #{fzdm6}, + fzdm7 = #{fzdm7}, + fzdm8 = #{fzdm8}, + fzdm9 = #{fzdm9}, + fzdm10 = #{fzdm10}, + fzdm11 = #{fzdm11}, + fzdm12 = #{fzdm12}, + fzdm13 = #{fzdm13}, + fzdm14 = #{fzdm14}, + fzdm15 = #{fzdm15}, + fzdm16 = #{fzdm16}, + fzdm17 = #{fzdm17}, + fzdm18 = #{fzdm18}, + fzdm19 = #{fzdm19}, + fzdm20 = #{fzdm20}, + fzdm21 = #{fzdm21}, + fzdm22 = #{fzdm22}, + fzdm23 = #{fzdm23}, + fzdm24 = #{fzdm24}, + fzdm25 = #{fzdm25}, + fzdm26 = #{fzdm26}, + fzdm27 = #{fzdm27}, + fzdm28 = #{fzdm28}, + fzdm29 = #{fzdm29}, + fzdm30 = #{fzdm30}, + zdylb = #{zdylb}, + zdydm = #{zdydm}, + ncj = #{ncj}, + ncd = #{ncd}, + yj1 = #{yj1}, + yd1 = #{yd1}, + yj2 = #{yj2}, + yd2 = #{yd2}, + yj3 = #{yj3}, + yd3 = #{yd3}, + yj4 = #{yj4}, + yd4 = #{yd4}, + yj5 = #{yj5}, + yd5 = #{yd5}, + yj6 = #{yj6}, + yd6 = #{yd6}, + yj7 = #{yj7}, + yd7 = #{yd7}, + yj8 = #{yj8}, + yd8 = #{yd8}, + yj9 = #{yj9}, + yd9 = #{yd9}, + yj10 = #{yj10}, + yd10 = #{yd10}, + yj11 = #{yj11}, + yd11 = #{yd11}, + yj12 = #{yj12}, + yd12 = #{yd12}, + yj13 = #{yj13}, + yd13 = #{yd13}, + kjtxdm = #{kjtxdm} + + where ID = #{id} + + + +update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where ID = #{id} + + + +update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and kjnd = #{kjnd} + and kmdm = #{kmdm} + and yeblx = #{yeblx} + and wbdm = #{wbdm} + and gsdm = #{gsdm} + and ZTH = #{zth} + and fzdm0 = #{fzdm0} + and fzdm1 = #{fzdm1} + and fzdm2 = #{fzdm2} + and fzdm3 = #{fzdm3} + and fzdm4 = #{fzdm4} + and fzdm5 = #{fzdm5} + and fzdm6 = #{fzdm6} + and fzdm7 = #{fzdm7} + and fzdm8 = #{fzdm8} + and fzdm9 = #{fzdm9} + and fzdm10 = #{fzdm10} + and zdylb = #{zdylb} + and zdydm = #{zdydm} + and ncj = #{ncj} + and ncd = #{ncd} + and yj1 = #{yj1} + and yd1 = #{yd1} + and yj2 = #{yj2} + and yd2 = #{yd2} + and yj3 = #{yj3} + and yd3 = #{yd3} + and yj4 = #{yj4} + and yd4 = #{yd4} + and yj5 = #{yj5} + and yd5 = #{yd5} + and yj6 = #{yj6} + and yd6 = #{yd6} + and yj7 = #{yj7} + and yd7 = #{yd7} + and yj8 = #{yj8} + and yd8 = #{yd8} + and yj9 = #{yj9} + and yd9 = #{yd9} + and yj10 = #{yj10} + and yd10 = #{yd10} + and yj11 = #{yj11} + and yd11 = #{yd11} + and yj12 = #{yj12} + and yd12 = #{yd12} + and yj13 = #{yj13} + and yd13 = #{yd13} + and ID = #{id} + and kjtxdm = #{kjtxdm} + + + + + delete from gl_yeb where ID = #{id} + + + + + + delete from gl_yeb where kjnd = #{kjnd} and gsdm=#{gsdm} and zth=#{zth} + and kmdm = #{kmdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/ISenderGlYebService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/ISenderGlYebService.java new file mode 100644 index 00000000..e8e260ec --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/ISenderGlYebService.java @@ -0,0 +1,69 @@ +package com.hzya.frame.grpU8.nxproof.glYeb.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + + +/** + * (GlYeb)表服务接口 + * + * @author makejava + * @since 2024-07-08 11:12:24 + */ +public interface ISenderGlYebService extends IBaseService { + + /** + * + * @content 同步余额数据 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 11:47 + * **/ + Object glYebSynchronization(JSONObject json); + + /** + * + * @content 查询余额数据 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 11:49 + * **/ + Object queryEntityPage(JSONObject json); + + /** + * + * @content 查询余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:50 + * **/ + List queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity); + + /** + * + * @content 保存余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/8 13:51 + * **/ + Object saveEntityHealthBureau(JSONObject jsonObject); + + + /** + * + * @content 删除余额数据 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/7/16 13:48 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/impl/SenderGlYebServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/impl/SenderGlYebServiceImpl.java new file mode 100644 index 00000000..41f4bbc8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glYeb/service/impl/SenderGlYebServiceImpl.java @@ -0,0 +1,363 @@ +package com.hzya.frame.grpU8.nxproof.glYeb.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao; +import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity; +import com.hzya.frame.grpU8.nxproof.glYeb.service.ISenderGlYebService; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (GlYeb)表服务实现类 + * + * @author makejava + * @since 2024-07-08 11:12:24 + */ +@Service(value = "SenderGlYebServiceImpl") +public class SenderGlYebServiceImpl extends BaseService implements ISenderGlYebService { + + + private ISenderGlYebDao senderGlYebDao; + + + + @Autowired + public void setSenderGlYebDao(ISenderGlYebDao dao) { + this.senderGlYebDao = dao; + this.dao = dao; + } + + //同步余额数据 + @Override + public Object glYebSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class); + List senderGlYebEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlYebEntity.getKjnd()==null){ + senderGlYebEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + /*try { + //同步南浔区人民医院001余额数据 + senderGlYebEntity.setZth("001"); + senderGlYebEntity.setGsdm("0101010101"); + // senderGlYebEntity.setKmdm("1002010101"); + logger.info("================开始查询南浔区人民医院余额表数据================="); + senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("南浔区人民医院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003余额数据 + senderGlYebEntity.setZth("003"); + senderGlYebEntity.setGsdm("0101010103"); + logger.info("================开始查询南浔区练市人民医院余额表数据================="); + senderGlYebEntities= senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("南浔区练市人民医院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005余额数据 + senderGlYebEntity.setZth("005"); + senderGlYebEntity.setGsdm("0101010202"); + logger.info("================开始查询南浔区练市镇中心卫生院余额表数据================="); + senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007余额数据 + senderGlYebEntity.setZth("007"); + senderGlYebEntity.setGsdm("0101010204"); + logger.info("================开始查询南浔区善琏镇卫生院余额表数据================="); + senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("南浔区善琏镇卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004余额数据 + senderGlYebEntity.setZth("004"); + senderGlYebEntity.setGsdm("0101010201"); + senderGlYebEntities= sqlSessionSlz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("双林镇中心卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009余额数据 + senderGlYebEntity.setZth("009"); + senderGlYebEntity.setGsdm("0101020201"); + senderGlYebEntities= sqlSessionLhz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("菱湖镇中心卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010余额数据 + senderGlYebEntity.setZth("010"); + senderGlYebEntity.setGsdm("0101020202"); + senderGlYebEntities= sqlSessionHfz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("和孚镇卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + } + try { + //同步千金镇卫生院011余额数据 + senderGlYebEntity.setZth("011"); + senderGlYebEntity.setGsdm("0101020203"); + senderGlYebEntities= sqlSessionQjz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("千金镇卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + } + try { + //同步石崇镇卫生院012余额数据 + senderGlYebEntity.setZth("012"); + senderGlYebEntity.setGsdm("0101020204"); + senderGlYebEntities= sqlSessionScz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("石崇镇卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步南浔镇中心卫生院014余额数据 + senderGlYebEntity.setZth("014"); + senderGlYebEntity.setGsdm("010202"); + senderGlYebEntities= sqlSessionNxz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity); + result =sendYebToHealthBureauTwo(senderGlYebEntities); + logger.info("南浔镇中心卫生院GRPU8余额数据同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("卫生院GRPU8余额数据同步失败:{}",e.getMessage()); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + + private String sendYebToHealthBureauTwo(List senderGlYebEntities){ + if (CollectionUtils.isEmpty(senderGlYebEntities)) { + logger.info("GRPU8没有需要同步得余额数据信息"); + return "GRPU8没有需要同步得余额数据信息"; + } else { + //先删除再保存 根据会计年度,公司代码,账套号删除 + SenderGlYebEntity receiverGlYebEntity = new SenderGlYebEntity(); + receiverGlYebEntity.setKjnd(senderGlYebEntities.get(0).getKjnd()); + //receiverGlYebEntity.setKjnd("2021"); + receiverGlYebEntity.setGsdm(senderGlYebEntities.get(0).getGsdm()); + receiverGlYebEntity.setZth(senderGlYebEntities.get(0).getZth()); + try { + JSONObject jsonObjectStr=new JSONObject(); + jsonObjectStr.put("jsonStr",receiverGlYebEntity); + logger.info("========开始将卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd()); + deleteEntityHealthBureau(jsonObjectStr); + logger.info("========卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除完毕==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd()); + }catch (Exception e){ + logger.info("{}得GRPU8余额数据删除失败:{}", senderGlYebEntities.get(0).getZth(),e.getMessage()); + return "卫生院GRPU8余额数据删除失败"; + } + for (SenderGlYebEntity senderGlYebEntity : senderGlYebEntities) { + //senderGlYebEntity.setKjnd("2021"); + JSONObject jsonObjectStrSave = new JSONObject(); + jsonObjectStrSave.put("jsonStr", senderGlYebEntity); + try { + //保存数据 + logger.info("========开始将账套号为:{}得GRPU8余额数据同步新增到卫生局GRPU8余额数据中==========",senderGlYebEntity.getZth()); + saveEntityHealthBureau(jsonObjectStrSave); + }catch (Exception e){ + logger.info("账套号:{}得GRPU8余额数据新增失败:{}",senderGlYebEntity.getZth(), e.getMessage()); + e.printStackTrace(); + } + } + return "同步卫生院GROU8余额数据成功"; + } + } + + //查询余额数据 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class); + List senderGlYebEntities=new ArrayList<>(); + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlYebEntity.getKjnd()==null){ + senderGlYebEntity.setKjnd(String.valueOf(DateUtil.format(new Date(),"yyyy"))); + } + if(StrUtil.isEmpty(senderGlYebEntity.getZth())){ + logger.info("======根据账套号:{}查询余额数据为空",senderGlYebEntity.getZth()); + return BaseResult.getFailureMessageEntity("请传递账套号"); + } + /* switch (senderGlYebEntity.getGsdm()){ + case "0101010103"://练市人民医院 + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101010201"://双林镇中心卫生院 + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101010202"://练市镇中心卫生院 + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101010204"://善琏镇卫生院 + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101020201": + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101020202": + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101020203": + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101020204": + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + case "0101010101"://南浔区人民医院 + senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity); + break; + default: + break; + }*/ + senderGlYebEntities = senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity); + PageInfo pageInfo=new PageInfo(senderGlYebEntities); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("pageInfo",pageInfo); + return jsonObject1; + }catch (Exception e){ + logger.info("根据账套号:{}查询卫生院GROU8余额数据失败:",senderGlYebEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询余额数据失败"); + } + } + + + //查询余额数据 + @Override + public List queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity) { + try { + logger.info("====开始根据账套号:{}查询卫生局中得余额数据====",senderGlYebEntity.getZth()); + List receiverGlYebEntities = senderGlYebDao.queryGlYebHealthBureau(senderGlYebEntity); + return receiverGlYebEntities; + }catch (Exception e){ + logger.info("根据账套号:{}查询卫生局GRPU8余额数据错误:{}",senderGlYebEntity.getZth(),e.getMessage()); + e.printStackTrace(); + } + return null; + } + + //保存余额数据 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("========保存余额数据时会计年度为空=========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("kmdm"))) { + logger.info("========保存余额数据时科目代码为空=========="); + return BaseResult.getFailureMessageEntity("科目代码为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("========保存余额数据时公司代码为空=========="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("========保存余额数据时账套号为空=========="); + return BaseResult.getFailureMessageEntity("账套号为空"); + } + try { + logger.info("==========根据账套号:{}开始保存余额数据=========",receiverGlYebEntity.getZth()); + SenderGlYebEntity glYebEntity = senderGlYebDao.saveGlYebHealthBureau(receiverGlYebEntity); + logger.info("==========根据账套号:{}保存得余额数据id为:{}=========",receiverGlYebEntity.getZth(),glYebEntity.getId()); + /*logger.info("=========开始保存余额中间表========"); + receiverGlYebEntity.setJid(glYebEntity.getId());//卫生局的id + receiverGlYebEntity.setYid(jsonObject.getString("id")==null?String.valueOf(UUIDLong.longUUID()):jsonObject.getString("id"));//卫生院的id + receiverGlYebEntity.setId(String.valueOf(UUIDLong.longUUID()));//自己本身的id + ReceiverGlYebEntity receiverGlYeb = receiverGlYebDao.saveReceiverGlYebRelevance(receiverGlYebEntity); + logger.info("==========保存得余额中间表的数据id为:{}=========",receiverGlYeb.getId());*/ + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("yeb",glYebEntity); + return jsonObject1; + }catch (Exception e){ + logger.info("根据账套号:{}保存卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存卫生局GROU8余额数据失败"); + } + } + + + + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("========保存余额数据时会计年度为空=========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("========保存余额数据时公司代码为空=========="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("========保存余额数据时账套号为空=========="); + return BaseResult.getFailureMessageEntity("账套号为空"); + } + try { + logger.info("==========开始删除余额数据,会计年度为:{},公司代码为:{},账套号为:{},科目代码为:{}=========", + jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),jsonObject.getString("zth"),receiverGlYebEntity.getKmdm()); + Integer integer = senderGlYebDao.deleteGlYebHealthBureau(receiverGlYebEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("yeb",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("根据账套号:{},会计年度:{}删除卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),receiverGlYebEntity.getKjnd(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除卫生局GROU8余额数据失败"); + } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/ISenderGlZtcsDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/ISenderGlZtcsDao.java new file mode 100644 index 00000000..358d1af8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/ISenderGlZtcsDao.java @@ -0,0 +1,89 @@ +package com.hzya.frame.grpU8.nxproof.glZtcs.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity; + +import java.util.List; + +/** + * (gl_ztcs: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:45:03 + */ +public interface ISenderGlZtcsDao extends IBaseDao { + /** + * + * @content 查询账套信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 保存账套信息到账套日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 15:33 + * **/ + SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 更新账套信息到账套日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 15:36 + * **/ + SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 查询账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 保存账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 15:33 + * **/ + SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 更新账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 15:36 + * **/ + SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 删除账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:23 + * **/ + Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity); + + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/impl/SenderGlZtcsDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/impl/SenderGlZtcsDaoImpl.java new file mode 100644 index 00000000..6a295c99 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/dao/impl/SenderGlZtcsDaoImpl.java @@ -0,0 +1,61 @@ +package com.hzya.frame.grpU8.nxproof.glZtcs.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao; +import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + + +/** + * (GlZtcs)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:45:03 + */ +@Repository(value = "SenderGlZtcsDaoImpl") +public class SenderGlZtcsDaoImpl extends MybatisGenericDao implements ISenderGlZtcsDao { + + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public List querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.queryByLike(senderGlZtcsEntity); + } + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.save(senderGlZtcsEntity); + } + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.update(senderGlZtcsEntity); + } + + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public List queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.query(senderGlZtcsEntity); + } + + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.save(senderGlZtcsEntity); + } + + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.update(senderGlZtcsEntity); + } + + @Override + @DS("#senderGlZtcsEntity.dataSourceCode") + public Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) { + return super.delete("SenderGlZtcsEntity_delete_ztcs",senderGlZtcsEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.java new file mode 100644 index 00000000..15ccfb35 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.java @@ -0,0 +1,971 @@ +package com.hzya.frame.grpU8.nxproof.glZtcs.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlZtcs)实体类 + * + * @author makejava + * @since 2024-06-20 09:45:03 + */ +public class SenderGlZtcsEntity extends BaseEntity { + + private String kjnd;//会计年度 + private String ztbh;//账套编号 + private String ztmc;//账套名称 + private String ztmce;//账套全程 + private String ztlb;//账套类别 + private String hsdwdm;//核算单位代码 + private String hsdwmc;//核算单位名称 + private String bwbdm;//本位币代码 + private String bwbmc;//本位币名称 + private String yzkm;//预制科目模板 + private Integer sjsj;//是否复制上级基础资料 + private String bwbbf;//本位币币符 + private String bwbdw;//本位币单位 + private Integer bwbjd;//本位币金额小数位数 + private String cwzg;//财务主管 + private Integer kjqjs;//会计期间个数 + private String qykjqj;//启用会计期间 + private String wbhs;//是否外币核算 + private String hllx;//汇率类型 + private String sfyjz;//是否预记账 + private String ztkz;//账套控制参数 + private String yskz; + private String pzygkz;//凭证必输项 + private String yspzkz;//原始凭证号严格核算 + private Integer slxsws;//数量小数位数 + private Integer djxsws;//单价小数位数 + private String anyibz;//打印[安易软件]专用标志 + private String kmbmfa;//科目编码方案 + private String kmzbmfa;//科目组编码方案 + private String bmbmfa;//部门编码方案 + private String xmbmfa;//项目编码方案 + private String dqbmfa;//地区编码方案 + private String dwbmfa;//单位编码方案 + private String xjbmfa;//现金编码方案 + private String gsbmfa;//公司编码方案 + private String bbpath;//用友安易报表路径 + private String bkdtd; + private String bzdw;//报账单位 + private String zbqyrq; + private String gkjzzf; + private String zbkzmb; + private String kzfs; + private String kzqj; + private String kzyj; + private String ybksy; + private String ybjsy; + private String zfpzbh; + private String bkdbh; + private String bkpzlx; + private String bkhskm; + private String bkyhkmyz; + private String zfscbkd; + private String bkdscpz; + private String szqxkz; + private String djxg; + private String djsh; + private String dybz; + private String jhsh; + private String zpscbk; + private String zphs; + private String dzkdm; + private String headbkdh; + private String bkdfs; + private String lrzy; + private Integer mjxsxsws; + private String wjsjlj; + private String sjkzbz; + private String needjfzb; + private String zdyfzyslbdm; + private String zdyfzyskzcs; + private String needyskm; + private String gkksbmfa; + private String pzbtdf; + private String ykjhyskm; + private String bkdxssjkm; + private String pzfjpath; + private String bkdxyfscz; + private String delmaxdh; + private String bkddataqxqy; + private String ykjhcs; + private String ykjhfs; + private String cnqzkm; + private String ztsx; + private String tsxkz; + private String zbkz; + private String wjz; + private String bkdxszhmc; + private Integer maxzdycount; + private String sjly; + private String flowcontrol; + private String cs1; + private String cs2; + private String cs3; + private String cs4; + private String cs5; + private String czyjkm; + + private String kjyslbdm; + private String wbxsws; + private String hlxsws; + private String sfpxjz; + private String qyxbzw; + private String pxjzfs; + private String yzxjll; + private String nsrlx; + private String dzgd; + private String dzgdzttb; + + public String getKjyslbdm() { + return kjyslbdm; + } + + public void setKjyslbdm(String kjyslbdm) { + this.kjyslbdm = kjyslbdm; + } + + public String getWbxsws() { + return wbxsws; + } + + public void setWbxsws(String wbxsws) { + this.wbxsws = wbxsws; + } + + public String getHlxsws() { + return hlxsws; + } + + public void setHlxsws(String hlxsws) { + this.hlxsws = hlxsws; + } + + public String getSfpxjz() { + return sfpxjz; + } + + public void setSfpxjz(String sfpxjz) { + this.sfpxjz = sfpxjz; + } + + public String getQyxbzw() { + return qyxbzw; + } + + public void setQyxbzw(String qyxbzw) { + this.qyxbzw = qyxbzw; + } + + public String getPxjzfs() { + return pxjzfs; + } + + public void setPxjzfs(String pxjzfs) { + this.pxjzfs = pxjzfs; + } + + public String getYzxjll() { + return yzxjll; + } + + public void setYzxjll(String yzxjll) { + this.yzxjll = yzxjll; + } + + public String getNsrlx() { + return nsrlx; + } + + public void setNsrlx(String nsrlx) { + this.nsrlx = nsrlx; + } + + public String getDzgd() { + return dzgd; + } + + public void setDzgd(String dzgd) { + this.dzgd = dzgd; + } + + public String getDzgdzttb() { + return dzgdzttb; + } + + public void setDzgdzttb(String dzgdzttb) { + this.dzgdzttb = dzgdzttb; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getZtbh() { + return ztbh; + } + + public void setZtbh(String ztbh) { + this.ztbh = ztbh; + } + + public String getZtmc() { + return ztmc; + } + + public void setZtmc(String ztmc) { + this.ztmc = ztmc; + } + + public String getZtmce() { + return ztmce; + } + + public void setZtmce(String ztmce) { + this.ztmce = ztmce; + } + + public String getZtlb() { + return ztlb; + } + + public void setZtlb(String ztlb) { + this.ztlb = ztlb; + } + + public String getHsdwdm() { + return hsdwdm; + } + + public void setHsdwdm(String hsdwdm) { + this.hsdwdm = hsdwdm; + } + + public String getHsdwmc() { + return hsdwmc; + } + + public void setHsdwmc(String hsdwmc) { + this.hsdwmc = hsdwmc; + } + + public String getBwbdm() { + return bwbdm; + } + + public void setBwbdm(String bwbdm) { + this.bwbdm = bwbdm; + } + + public String getBwbmc() { + return bwbmc; + } + + public void setBwbmc(String bwbmc) { + this.bwbmc = bwbmc; + } + + public String getYzkm() { + return yzkm; + } + + public void setYzkm(String yzkm) { + this.yzkm = yzkm; + } + + public Integer getSjsj() { + return sjsj; + } + + public void setSjsj(Integer sjsj) { + this.sjsj = sjsj; + } + + public String getBwbbf() { + return bwbbf; + } + + public void setBwbbf(String bwbbf) { + this.bwbbf = bwbbf; + } + + public String getBwbdw() { + return bwbdw; + } + + public void setBwbdw(String bwbdw) { + this.bwbdw = bwbdw; + } + + public Integer getBwbjd() { + return bwbjd; + } + + public void setBwbjd(Integer bwbjd) { + this.bwbjd = bwbjd; + } + + public String getCwzg() { + return cwzg; + } + + public void setCwzg(String cwzg) { + this.cwzg = cwzg; + } + + public Integer getKjqjs() { + return kjqjs; + } + + public void setKjqjs(Integer kjqjs) { + this.kjqjs = kjqjs; + } + + public String getQykjqj() { + return qykjqj; + } + + public void setQykjqj(String qykjqj) { + this.qykjqj = qykjqj; + } + + public String getWbhs() { + return wbhs; + } + + public void setWbhs(String wbhs) { + this.wbhs = wbhs; + } + + public String getHllx() { + return hllx; + } + + public void setHllx(String hllx) { + this.hllx = hllx; + } + + public String getSfyjz() { + return sfyjz; + } + + public void setSfyjz(String sfyjz) { + this.sfyjz = sfyjz; + } + + public String getZtkz() { + return ztkz; + } + + public void setZtkz(String ztkz) { + this.ztkz = ztkz; + } + + public String getYskz() { + return yskz; + } + + public void setYskz(String yskz) { + this.yskz = yskz; + } + + public String getPzygkz() { + return pzygkz; + } + + public void setPzygkz(String pzygkz) { + this.pzygkz = pzygkz; + } + + public String getYspzkz() { + return yspzkz; + } + + public void setYspzkz(String yspzkz) { + this.yspzkz = yspzkz; + } + + public Integer getSlxsws() { + return slxsws; + } + + public void setSlxsws(Integer slxsws) { + this.slxsws = slxsws; + } + + public Integer getDjxsws() { + return djxsws; + } + + public void setDjxsws(Integer djxsws) { + this.djxsws = djxsws; + } + + public String getAnyibz() { + return anyibz; + } + + public void setAnyibz(String anyibz) { + this.anyibz = anyibz; + } + + public String getKmbmfa() { + return kmbmfa; + } + + public void setKmbmfa(String kmbmfa) { + this.kmbmfa = kmbmfa; + } + + public String getKmzbmfa() { + return kmzbmfa; + } + + public void setKmzbmfa(String kmzbmfa) { + this.kmzbmfa = kmzbmfa; + } + + public String getBmbmfa() { + return bmbmfa; + } + + public void setBmbmfa(String bmbmfa) { + this.bmbmfa = bmbmfa; + } + + public String getXmbmfa() { + return xmbmfa; + } + + public void setXmbmfa(String xmbmfa) { + this.xmbmfa = xmbmfa; + } + + public String getDqbmfa() { + return dqbmfa; + } + + public void setDqbmfa(String dqbmfa) { + this.dqbmfa = dqbmfa; + } + + public String getDwbmfa() { + return dwbmfa; + } + + public void setDwbmfa(String dwbmfa) { + this.dwbmfa = dwbmfa; + } + + public String getXjbmfa() { + return xjbmfa; + } + + public void setXjbmfa(String xjbmfa) { + this.xjbmfa = xjbmfa; + } + + public String getGsbmfa() { + return gsbmfa; + } + + public void setGsbmfa(String gsbmfa) { + this.gsbmfa = gsbmfa; + } + + public String getBbpath() { + return bbpath; + } + + public void setBbpath(String bbpath) { + this.bbpath = bbpath; + } + + public String getBkdtd() { + return bkdtd; + } + + public void setBkdtd(String bkdtd) { + this.bkdtd = bkdtd; + } + + public String getBzdw() { + return bzdw; + } + + public void setBzdw(String bzdw) { + this.bzdw = bzdw; + } + + public String getZbqyrq() { + return zbqyrq; + } + + public void setZbqyrq(String zbqyrq) { + this.zbqyrq = zbqyrq; + } + + public String getGkjzzf() { + return gkjzzf; + } + + public void setGkjzzf(String gkjzzf) { + this.gkjzzf = gkjzzf; + } + + public String getZbkzmb() { + return zbkzmb; + } + + public void setZbkzmb(String zbkzmb) { + this.zbkzmb = zbkzmb; + } + + public String getKzfs() { + return kzfs; + } + + public void setKzfs(String kzfs) { + this.kzfs = kzfs; + } + + public String getKzqj() { + return kzqj; + } + + public void setKzqj(String kzqj) { + this.kzqj = kzqj; + } + + public String getKzyj() { + return kzyj; + } + + public void setKzyj(String kzyj) { + this.kzyj = kzyj; + } + + public String getYbksy() { + return ybksy; + } + + public void setYbksy(String ybksy) { + this.ybksy = ybksy; + } + + public String getYbjsy() { + return ybjsy; + } + + public void setYbjsy(String ybjsy) { + this.ybjsy = ybjsy; + } + + public String getZfpzbh() { + return zfpzbh; + } + + public void setZfpzbh(String zfpzbh) { + this.zfpzbh = zfpzbh; + } + + public String getBkdbh() { + return bkdbh; + } + + public void setBkdbh(String bkdbh) { + this.bkdbh = bkdbh; + } + + public String getBkpzlx() { + return bkpzlx; + } + + public void setBkpzlx(String bkpzlx) { + this.bkpzlx = bkpzlx; + } + + public String getBkhskm() { + return bkhskm; + } + + public void setBkhskm(String bkhskm) { + this.bkhskm = bkhskm; + } + + public String getBkyhkmyz() { + return bkyhkmyz; + } + + public void setBkyhkmyz(String bkyhkmyz) { + this.bkyhkmyz = bkyhkmyz; + } + + public String getZfscbkd() { + return zfscbkd; + } + + public void setZfscbkd(String zfscbkd) { + this.zfscbkd = zfscbkd; + } + + public String getBkdscpz() { + return bkdscpz; + } + + public void setBkdscpz(String bkdscpz) { + this.bkdscpz = bkdscpz; + } + + public String getSzqxkz() { + return szqxkz; + } + + public void setSzqxkz(String szqxkz) { + this.szqxkz = szqxkz; + } + + public String getDjxg() { + return djxg; + } + + public void setDjxg(String djxg) { + this.djxg = djxg; + } + + public String getDjsh() { + return djsh; + } + + public void setDjsh(String djsh) { + this.djsh = djsh; + } + + public String getDybz() { + return dybz; + } + + public void setDybz(String dybz) { + this.dybz = dybz; + } + + public String getJhsh() { + return jhsh; + } + + public void setJhsh(String jhsh) { + this.jhsh = jhsh; + } + + public String getZpscbk() { + return zpscbk; + } + + public void setZpscbk(String zpscbk) { + this.zpscbk = zpscbk; + } + + public String getZphs() { + return zphs; + } + + public void setZphs(String zphs) { + this.zphs = zphs; + } + + public String getDzkdm() { + return dzkdm; + } + + public void setDzkdm(String dzkdm) { + this.dzkdm = dzkdm; + } + + public String getHeadbkdh() { + return headbkdh; + } + + public void setHeadbkdh(String headbkdh) { + this.headbkdh = headbkdh; + } + + public String getBkdfs() { + return bkdfs; + } + + public void setBkdfs(String bkdfs) { + this.bkdfs = bkdfs; + } + + public String getLrzy() { + return lrzy; + } + + public void setLrzy(String lrzy) { + this.lrzy = lrzy; + } + + public Integer getMjxsxsws() { + return mjxsxsws; + } + + public void setMjxsxsws(Integer mjxsxsws) { + this.mjxsxsws = mjxsxsws; + } + + public String getWjsjlj() { + return wjsjlj; + } + + public void setWjsjlj(String wjsjlj) { + this.wjsjlj = wjsjlj; + } + + public String getSjkzbz() { + return sjkzbz; + } + + public void setSjkzbz(String sjkzbz) { + this.sjkzbz = sjkzbz; + } + + public String getNeedjfzb() { + return needjfzb; + } + + public void setNeedjfzb(String needjfzb) { + this.needjfzb = needjfzb; + } + + public String getZdyfzyslbdm() { + return zdyfzyslbdm; + } + + public void setZdyfzyslbdm(String zdyfzyslbdm) { + this.zdyfzyslbdm = zdyfzyslbdm; + } + + public String getZdyfzyskzcs() { + return zdyfzyskzcs; + } + + public void setZdyfzyskzcs(String zdyfzyskzcs) { + this.zdyfzyskzcs = zdyfzyskzcs; + } + + public String getNeedyskm() { + return needyskm; + } + + public void setNeedyskm(String needyskm) { + this.needyskm = needyskm; + } + + public String getGkksbmfa() { + return gkksbmfa; + } + + public void setGkksbmfa(String gkksbmfa) { + this.gkksbmfa = gkksbmfa; + } + + public String getPzbtdf() { + return pzbtdf; + } + + public void setPzbtdf(String pzbtdf) { + this.pzbtdf = pzbtdf; + } + + public String getYkjhyskm() { + return ykjhyskm; + } + + public void setYkjhyskm(String ykjhyskm) { + this.ykjhyskm = ykjhyskm; + } + + public String getBkdxssjkm() { + return bkdxssjkm; + } + + public void setBkdxssjkm(String bkdxssjkm) { + this.bkdxssjkm = bkdxssjkm; + } + + public String getPzfjpath() { + return pzfjpath; + } + + public void setPzfjpath(String pzfjpath) { + this.pzfjpath = pzfjpath; + } + + public String getBkdxyfscz() { + return bkdxyfscz; + } + + public void setBkdxyfscz(String bkdxyfscz) { + this.bkdxyfscz = bkdxyfscz; + } + + public String getDelmaxdh() { + return delmaxdh; + } + + public void setDelmaxdh(String delmaxdh) { + this.delmaxdh = delmaxdh; + } + + public String getBkddataqxqy() { + return bkddataqxqy; + } + + public void setBkddataqxqy(String bkddataqxqy) { + this.bkddataqxqy = bkddataqxqy; + } + + public String getYkjhcs() { + return ykjhcs; + } + + public void setYkjhcs(String ykjhcs) { + this.ykjhcs = ykjhcs; + } + + public String getYkjhfs() { + return ykjhfs; + } + + public void setYkjhfs(String ykjhfs) { + this.ykjhfs = ykjhfs; + } + + public String getCnqzkm() { + return cnqzkm; + } + + public void setCnqzkm(String cnqzkm) { + this.cnqzkm = cnqzkm; + } + + public String getZtsx() { + return ztsx; + } + + public void setZtsx(String ztsx) { + this.ztsx = ztsx; + } + + public String getTsxkz() { + return tsxkz; + } + + public void setTsxkz(String tsxkz) { + this.tsxkz = tsxkz; + } + + public String getZbkz() { + return zbkz; + } + + public void setZbkz(String zbkz) { + this.zbkz = zbkz; + } + + public String getWjz() { + return wjz; + } + + public void setWjz(String wjz) { + this.wjz = wjz; + } + + public String getBkdxszhmc() { + return bkdxszhmc; + } + + public void setBkdxszhmc(String bkdxszhmc) { + this.bkdxszhmc = bkdxszhmc; + } + + public Integer getMaxzdycount() { + return maxzdycount; + } + + public void setMaxzdycount(Integer maxzdycount) { + this.maxzdycount = maxzdycount; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public String getFlowcontrol() { + return flowcontrol; + } + + public void setFlowcontrol(String flowcontrol) { + this.flowcontrol = flowcontrol; + } + + public String getCs1() { + return cs1; + } + + public void setCs1(String cs1) { + this.cs1 = cs1; + } + + public String getCs2() { + return cs2; + } + + public void setCs2(String cs2) { + this.cs2 = cs2; + } + + public String getCs3() { + return cs3; + } + + public void setCs3(String cs3) { + this.cs3 = cs3; + } + + public String getCs4() { + return cs4; + } + + public void setCs4(String cs4) { + this.cs4 = cs4; + } + + public String getCs5() { + return cs5; + } + + public void setCs5(String cs5) { + this.cs5 = cs5; + } + + public String getCzyjkm() { + return czyjkm; + } + + public void setCzyjkm(String czyjkm) { + this.czyjkm = czyjkm; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.xml new file mode 100644 index 00000000..56a899e8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/entity/SenderGlZtcsEntity.xml @@ -0,0 +1,1222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + kjnd + ,ztbh + ,ztmc + ,ztmce + ,ztlb + ,hsdwdm + ,hsdwmc + ,bwbdm + ,bwbmc + ,YZKM + ,SJSJ + ,bwbbf + ,bwbdw + ,bwbjd + ,cwzg + ,kjqjs + ,qykjqj + ,wbhs + ,hllx + ,sfyjz + ,ztkz + ,yskz + ,pzygkz + ,yspzkz + ,slxsws + ,djxsws + ,anyibz + ,kmbmfa + ,kmzbmfa + ,bmbmfa + ,xmbmfa + ,dqbmfa + ,dwbmfa + ,xjbmfa + ,gsbmfa + ,bbpath + ,BKDTD + ,BZDW + ,ZBQYRQ + ,Gkjzzf + ,ZBKZMB + ,KZFS + ,KZQJ + ,KZYJ + ,YBKSY + ,YBJSY + ,Zfpzbh + ,Bkdbh + ,BKPZLX + ,BKHSKM + ,BKYHKMYZ + ,ZFSCBKD + ,BKDSCPZ + ,SZQXKZ + ,DJXG + ,DJSH + ,DYBZ + ,JHSH + ,Zpscbk + ,ZPHS + ,DZKDM + ,HeadBKDH + ,Bkdfs + ,Lrzy + ,mjxsxsws + ,wjsjlj + ,sjkzbz + ,NeedJfzb + ,ZDYFZYSLBDM + ,ZDYFZYSKZCS + ,NeedYskm + ,GKKSBMFA + ,pzbtdf + ,ykjhyskm + ,BKDXSSJKM + ,PZFJPath + ,BKDXYFSCZ + ,DELMAXDH + ,BKDDataQXQY + ,YKJHCS + ,YKJHFS + ,CNQZKM + ,ZTSX + ,TSXKZ + ,ZBKZ + ,WJZ + ,BKDXSZHMC + ,Maxzdycount + ,SJLY + ,FlowControl + ,CS1 + ,CS2 + ,CS3 + ,CS4 + ,CS5 + ,CZYJKM + ,kjyslbdm + ,wbxsws + ,hlxsws + ,sfpxjz + ,qyxbzw + ,pxjzfs + ,yzxjll + ,nsrlx + ,dzgd + ,dzgdzttb + + + + + + + + + + + + + + + + insert into gl_ztcs( + + ztbh , + ztmc , + ztmce , + ztlb , + hsdwdm , + hsdwmc , + bwbdm , + bwbmc , + YZKM , + SJSJ , + bwbbf , + bwbdw , + bwbjd , + cwzg , + kjqjs , + qykjqj , + wbhs , + hllx , + sfyjz , + ztkz , + yskz , + pzygkz , + yspzkz , + slxsws , + djxsws , + anyibz , + kmbmfa , + kmzbmfa , + bmbmfa , + xmbmfa , + dqbmfa , + dwbmfa , + xjbmfa , + gsbmfa , + bbpath , + BKDTD , + BZDW , + ZBQYRQ , + Gkjzzf , + ZBKZMB , + KZFS , + KZQJ , + KZYJ , + YBKSY , + YBJSY , + Zfpzbh , + Bkdbh , + BKPZLX , + BKHSKM , + BKYHKMYZ , + ZFSCBKD , + BKDSCPZ , + SZQXKZ , + DJXG , + DJSH , + DYBZ , + JHSH , + Zpscbk , + ZPHS , + DZKDM , + HeadBKDH , + Bkdfs , + Lrzy , + mjxsxsws , + wjsjlj , + sjkzbz , + NeedJfzb , + ZDYFZYSLBDM , + ZDYFZYSKZCS , + NeedYskm , + GKKSBMFA , + pzbtdf , + ykjhyskm , + BKDXSSJKM , + PZFJPath , + BKDXYFSCZ , + DELMAXDH , + BKDDataQXQY , + YKJHCS , + YKJHFS , + CNQZKM , + ZTSX , + TSXKZ , + ZBKZ , + WJZ , + BKDXSZHMC , + Maxzdycount , + SJLY , + FlowControl , + CS1 , + CS2 , + CS3 , + CS4 , + CS5 , + CZYJKM , + kjyslbdm, + wbxsws, + hlxsws, + sfpxjz, + qyxbzw, + pxjzfs, + yzxjll, + nsrlx, + dzgd, + dzgdzttb, + kjnd + + )values( + + #{ztbh} , + #{ztmc} , + #{ztmce} , + #{ztlb} , + #{hsdwdm} , + #{hsdwmc} , + #{bwbdm} , + #{bwbmc} , + #{yzkm} , + #{sjsj} , + #{bwbbf} , + #{bwbdw} , + #{bwbjd} , + #{cwzg} , + #{kjqjs} , + #{qykjqj} , + #{wbhs} , + #{hllx} , + #{sfyjz} , + #{ztkz} , + #{yskz} , + #{pzygkz} , + #{yspzkz} , + #{slxsws} , + #{djxsws} , + #{anyibz} , + #{kmbmfa} , + #{kmzbmfa} , + #{bmbmfa} , + #{xmbmfa} , + #{dqbmfa} , + #{dwbmfa} , + #{xjbmfa} , + #{gsbmfa} , + #{bbpath} , + #{bkdtd} , + #{bzdw} , + #{zbqyrq} , + #{gkjzzf} , + #{zbkzmb} , + #{kzfs} , + #{kzqj} , + #{kzyj} , + #{ybksy} , + #{ybjsy} , + #{zfpzbh} , + #{bkdbh} , + #{bkpzlx} , + #{bkhskm} , + #{bkyhkmyz} , + #{zfscbkd} , + #{bkdscpz} , + #{szqxkz} , + #{djxg} , + #{djsh} , + #{dybz} , + #{jhsh} , + #{zpscbk} , + #{zphs} , + #{dzkdm} , + #{headbkdh} , + #{bkdfs} , + #{lrzy} , + #{mjxsxsws} , + #{wjsjlj} , + #{sjkzbz} , + #{needjfzb} , + #{zdyfzyslbdm} , + #{zdyfzyskzcs} , + #{needyskm} , + #{gkksbmfa} , + #{pzbtdf} , + #{ykjhyskm} , + #{bkdxssjkm} , + #{pzfjpath} , + #{bkdxyfscz} , + #{delmaxdh} , + #{bkddataqxqy} , + #{ykjhcs} , + #{ykjhfs} , + #{cnqzkm} , + #{ztsx} , + #{tsxkz} , + #{zbkz} , + #{wjz} , + #{bkdxszhmc} , + #{maxzdycount} , + #{sjly} , + #{flowcontrol} , + #{cs1} , + #{cs2} , + #{cs3} , + #{cs4} , + #{cs5} , + #{czyjkm} , + #{kjyslbdm}, + #{wbxsws}, + #{hlxsws}, + #{sfpxjz}, + #{qyxbzw}, + #{pxjzfs}, + #{yzxjll}, + #{nsrlx}, + #{dzgd}, + #{dzgdzttb}, + #{kjnd} + + ) + + + + + + insert into gl_ztcs(id,kjnd, ztbh, ztmc, ztmce, ztlb, hsdwdm, hsdwmc, bwbdm, bwbmc, YZKM, SJSJ, bwbbf, bwbdw, bwbjd, cwzg, kjqjs, qykjqj, wbhs, hllx, sfyjz, ztkz, yskz, pzygkz, yspzkz, slxsws, djxsws, anyibz, kmbmfa, kmzbmfa, bmbmfa, xmbmfa, dqbmfa, dwbmfa, xjbmfa, gsbmfa, bbpath, BKDTD, BZDW, ZBQYRQ, Gkjzzf, ZBKZMB, KZFS, KZQJ, KZYJ, YBKSY, YBJSY, Zfpzbh, Bkdbh, BKPZLX, BKHSKM, BKYHKMYZ, ZFSCBKD, BKDSCPZ, SZQXKZ, DJXG, DJSH, DYBZ, JHSH, Zpscbk, ZPHS, DZKDM, HeadBKDH, Bkdfs, Lrzy, mjxsxsws, wjsjlj, sjkzbz, NeedJfzb, ZDYFZYSLBDM, ZDYFZYSKZCS, NeedYskm, GKKSBMFA, pzbtdf, ykjhyskm, BKDXSSJKM, PZFJPath, BKDXYFSCZ, DELMAXDH, BKDDataQXQY, YKJHCS, YKJHFS, CNQZKM, ZTSX, TSXKZ, ZBKZ, WJZ, BKDXSZHMC, Maxzdycount, SJLY, FlowControl, CS1, CS2, CS3, CS4, CS5, CZYJKM) + values + + (#{entity.id},#{entity.kjnd},#{entity.ztbh},#{entity.ztmc},#{entity.ztmce},#{entity.ztlb},#{entity.hsdwdm},#{entity.hsdwmc},#{entity.bwbdm},#{entity.bwbmc},#{entity.yzkm},#{entity.sjsj},#{entity.bwbbf},#{entity.bwbdw},#{entity.bwbjd},#{entity.cwzg},#{entity.kjqjs},#{entity.qykjqj},#{entity.wbhs},#{entity.hllx},#{entity.sfyjz},#{entity.ztkz},#{entity.yskz},#{entity.pzygkz},#{entity.yspzkz},#{entity.slxsws},#{entity.djxsws},#{entity.anyibz},#{entity.kmbmfa},#{entity.kmzbmfa},#{entity.bmbmfa},#{entity.xmbmfa},#{entity.dqbmfa},#{entity.dwbmfa},#{entity.xjbmfa},#{entity.gsbmfa},#{entity.bbpath},#{entity.bkdtd},#{entity.bzdw},#{entity.zbqyrq},#{entity.gkjzzf},#{entity.zbkzmb},#{entity.kzfs},#{entity.kzqj},#{entity.kzyj},#{entity.ybksy},#{entity.ybjsy},#{entity.zfpzbh},#{entity.bkdbh},#{entity.bkpzlx},#{entity.bkhskm},#{entity.bkyhkmyz},#{entity.zfscbkd},#{entity.bkdscpz},#{entity.szqxkz},#{entity.djxg},#{entity.djsh},#{entity.dybz},#{entity.jhsh},#{entity.zpscbk},#{entity.zphs},#{entity.dzkdm},#{entity.headbkdh},#{entity.bkdfs},#{entity.lrzy},#{entity.mjxsxsws},#{entity.wjsjlj},#{entity.sjkzbz},#{entity.needjfzb},#{entity.zdyfzyslbdm},#{entity.zdyfzyskzcs},#{entity.needyskm},#{entity.gkksbmfa},#{entity.pzbtdf},#{entity.ykjhyskm},#{entity.bkdxssjkm},#{entity.pzfjpath},#{entity.bkdxyfscz},#{entity.delmaxdh},#{entity.bkddataqxqy},#{entity.ykjhcs},#{entity.ykjhfs},#{entity.cnqzkm},#{entity.ztsx},#{entity.tsxkz},#{entity.zbkz},#{entity.wjz},#{entity.bkdxszhmc},#{entity.maxzdycount},#{entity.sjly},#{entity.flowcontrol},#{entity.cs1},#{entity.cs2},#{entity.cs3},#{entity.cs4},#{entity.cs5},#{entity.czyjkm}) + + + + + insert into gl_ztcs(id,kjnd, ztbh, ztmc, ztmce, ztlb, hsdwdm, hsdwmc, bwbdm, bwbmc, YZKM, SJSJ, bwbbf, bwbdw, bwbjd, cwzg, kjqjs, qykjqj, wbhs, hllx, sfyjz, ztkz, yskz, pzygkz, yspzkz, slxsws, djxsws, anyibz, kmbmfa, kmzbmfa, bmbmfa, xmbmfa, dqbmfa, dwbmfa, xjbmfa, gsbmfa, bbpath, BKDTD, BZDW, ZBQYRQ, Gkjzzf, ZBKZMB, KZFS, KZQJ, KZYJ, YBKSY, YBJSY, Zfpzbh, Bkdbh, BKPZLX, BKHSKM, BKYHKMYZ, ZFSCBKD, BKDSCPZ, SZQXKZ, DJXG, DJSH, DYBZ, JHSH, Zpscbk, ZPHS, DZKDM, HeadBKDH, Bkdfs, Lrzy, mjxsxsws, wjsjlj, sjkzbz, NeedJfzb, ZDYFZYSLBDM, ZDYFZYSKZCS, NeedYskm, GKKSBMFA, pzbtdf, ykjhyskm, BKDXSSJKM, PZFJPath, BKDXYFSCZ, DELMAXDH, BKDDataQXQY, YKJHCS, YKJHFS, CNQZKM, ZTSX, TSXKZ, ZBKZ, WJZ, BKDXSZHMC, Maxzdycount, SJLY, FlowControl, CS1, CS2, CS3, CS4, CS5, CZYJKM) + values + + (#{entity.id},#{entity.kjnd},#{entity.ztbh},#{entity.ztmc},#{entity.ztmce},#{entity.ztlb},#{entity.hsdwdm},#{entity.hsdwmc},#{entity.bwbdm},#{entity.bwbmc},#{entity.yzkm},#{entity.sjsj},#{entity.bwbbf},#{entity.bwbdw},#{entity.bwbjd},#{entity.cwzg},#{entity.kjqjs},#{entity.qykjqj},#{entity.wbhs},#{entity.hllx},#{entity.sfyjz},#{entity.ztkz},#{entity.yskz},#{entity.pzygkz},#{entity.yspzkz},#{entity.slxsws},#{entity.djxsws},#{entity.anyibz},#{entity.kmbmfa},#{entity.kmzbmfa},#{entity.bmbmfa},#{entity.xmbmfa},#{entity.dqbmfa},#{entity.dwbmfa},#{entity.xjbmfa},#{entity.gsbmfa},#{entity.bbpath},#{entity.bkdtd},#{entity.bzdw},#{entity.zbqyrq},#{entity.gkjzzf},#{entity.zbkzmb},#{entity.kzfs},#{entity.kzqj},#{entity.kzyj},#{entity.ybksy},#{entity.ybjsy},#{entity.zfpzbh},#{entity.bkdbh},#{entity.bkpzlx},#{entity.bkhskm},#{entity.bkyhkmyz},#{entity.zfscbkd},#{entity.bkdscpz},#{entity.szqxkz},#{entity.djxg},#{entity.djsh},#{entity.dybz},#{entity.jhsh},#{entity.zpscbk},#{entity.zphs},#{entity.dzkdm},#{entity.headbkdh},#{entity.bkdfs},#{entity.lrzy},#{entity.mjxsxsws},#{entity.wjsjlj},#{entity.sjkzbz},#{entity.needjfzb},#{entity.zdyfzyslbdm},#{entity.zdyfzyskzcs},#{entity.needyskm},#{entity.gkksbmfa},#{entity.pzbtdf},#{entity.ykjhyskm},#{entity.bkdxssjkm},#{entity.pzfjpath},#{entity.bkdxyfscz},#{entity.delmaxdh},#{entity.bkddataqxqy},#{entity.ykjhcs},#{entity.ykjhfs},#{entity.cnqzkm},#{entity.ztsx},#{entity.tsxkz},#{entity.zbkz},#{entity.wjz},#{entity.bkdxszhmc},#{entity.maxzdycount},#{entity.sjly},#{entity.flowcontrol},#{entity.cs1},#{entity.cs2},#{entity.cs3},#{entity.cs4},#{entity.cs5},#{entity.czyjkm}) + + on duplicate key update + kjnd = values(kjnd), + ztbh = values(ztbh), + ztmc = values(ztmc), + ztmce = values(ztmce), + ztlb = values(ztlb), + hsdwdm = values(hsdwdm), + hsdwmc = values(hsdwmc), + bwbdm = values(bwbdm), + bwbmc = values(bwbmc), + YZKM = values(YZKM), + SJSJ = values(SJSJ), + bwbbf = values(bwbbf), + bwbdw = values(bwbdw), + bwbjd = values(bwbjd), + cwzg = values(cwzg), + kjqjs = values(kjqjs), + qykjqj = values(qykjqj), + wbhs = values(wbhs), + hllx = values(hllx), + sfyjz = values(sfyjz), + ztkz = values(ztkz), + yskz = values(yskz), + pzygkz = values(pzygkz), + yspzkz = values(yspzkz), + slxsws = values(slxsws), + djxsws = values(djxsws), + anyibz = values(anyibz), + kmbmfa = values(kmbmfa), + kmzbmfa = values(kmzbmfa), + bmbmfa = values(bmbmfa), + xmbmfa = values(xmbmfa), + dqbmfa = values(dqbmfa), + dwbmfa = values(dwbmfa), + xjbmfa = values(xjbmfa), + gsbmfa = values(gsbmfa), + bbpath = values(bbpath), + BKDTD = values(BKDTD), + BZDW = values(BZDW), + ZBQYRQ = values(ZBQYRQ), + Gkjzzf = values(Gkjzzf), + ZBKZMB = values(ZBKZMB), + KZFS = values(KZFS), + KZQJ = values(KZQJ), + KZYJ = values(KZYJ), + YBKSY = values(YBKSY), + YBJSY = values(YBJSY), + Zfpzbh = values(Zfpzbh), + Bkdbh = values(Bkdbh), + BKPZLX = values(BKPZLX), + BKHSKM = values(BKHSKM), + BKYHKMYZ = values(BKYHKMYZ), + ZFSCBKD = values(ZFSCBKD), + BKDSCPZ = values(BKDSCPZ), + SZQXKZ = values(SZQXKZ), + DJXG = values(DJXG), + DJSH = values(DJSH), + DYBZ = values(DYBZ), + JHSH = values(JHSH), + Zpscbk = values(Zpscbk), + ZPHS = values(ZPHS), + DZKDM = values(DZKDM), + HeadBKDH = values(HeadBKDH), + Bkdfs = values(Bkdfs), + Lrzy = values(Lrzy), + mjxsxsws = values(mjxsxsws), + wjsjlj = values(wjsjlj), + sjkzbz = values(sjkzbz), + NeedJfzb = values(NeedJfzb), + ZDYFZYSLBDM = values(ZDYFZYSLBDM), + ZDYFZYSKZCS = values(ZDYFZYSKZCS), + NeedYskm = values(NeedYskm), + GKKSBMFA = values(GKKSBMFA), + pzbtdf = values(pzbtdf), + ykjhyskm = values(ykjhyskm), + BKDXSSJKM = values(BKDXSSJKM), + PZFJPath = values(PZFJPath), + BKDXYFSCZ = values(BKDXYFSCZ), + DELMAXDH = values(DELMAXDH), + BKDDataQXQY = values(BKDDataQXQY), + YKJHCS = values(YKJHCS), + YKJHFS = values(YKJHFS), + CNQZKM = values(CNQZKM), + ZTSX = values(ZTSX), + TSXKZ = values(TSXKZ), + ZBKZ = values(ZBKZ), + WJZ = values(WJZ), + BKDXSZHMC = values(BKDXSZHMC), + Maxzdycount = values(Maxzdycount), + SJLY = values(SJLY), + FlowControl = values(FlowControl), + CS1 = values(CS1), + CS2 = values(CS2), + CS3 = values(CS3), + CS4 = values(CS4), + CS5 = values(CS5), + CZYJKM = values(CZYJKM) + + + update gl_ztcs set + + kjnd = #{kjnd}, + ztbh = #{ztbh}, + ztmc = #{ztmc}, + ztmce = #{ztmce}, + ztlb = #{ztlb}, + hsdwdm = #{hsdwdm}, + hsdwmc = #{hsdwmc}, + bwbdm = #{bwbdm}, + bwbmc = #{bwbmc}, + YZKM = #{yzkm}, + SJSJ = #{sjsj}, + bwbbf = #{bwbbf}, + bwbdw = #{bwbdw}, + bwbjd = #{bwbjd}, + cwzg = #{cwzg}, + kjqjs = #{kjqjs}, + qykjqj = #{qykjqj}, + wbhs = #{wbhs}, + hllx = #{hllx}, + sfyjz = #{sfyjz}, + ztkz = #{ztkz}, + yskz = #{yskz}, + pzygkz = #{pzygkz}, + yspzkz = #{yspzkz}, + slxsws = #{slxsws}, + djxsws = #{djxsws}, + anyibz = #{anyibz}, + kmbmfa = #{kmbmfa}, + kmzbmfa = #{kmzbmfa}, + bmbmfa = #{bmbmfa}, + xmbmfa = #{xmbmfa}, + dqbmfa = #{dqbmfa}, + dwbmfa = #{dwbmfa}, + xjbmfa = #{xjbmfa}, + gsbmfa = #{gsbmfa}, + bbpath = #{bbpath}, + BKDTD = #{bkdtd}, + BZDW = #{bzdw}, + ZBQYRQ = #{zbqyrq}, + Gkjzzf = #{gkjzzf}, + ZBKZMB = #{zbkzmb}, + KZFS = #{kzfs}, + KZQJ = #{kzqj}, + KZYJ = #{kzyj}, + YBKSY = #{ybksy}, + YBJSY = #{ybjsy}, + Zfpzbh = #{zfpzbh}, + Bkdbh = #{bkdbh}, + BKPZLX = #{bkpzlx}, + BKHSKM = #{bkhskm}, + BKYHKMYZ = #{bkyhkmyz}, + ZFSCBKD = #{zfscbkd}, + BKDSCPZ = #{bkdscpz}, + SZQXKZ = #{szqxkz}, + DJXG = #{djxg}, + DJSH = #{djsh}, + DYBZ = #{dybz}, + JHSH = #{jhsh}, + Zpscbk = #{zpscbk}, + ZPHS = #{zphs}, + DZKDM = #{dzkdm}, + HeadBKDH = #{headbkdh}, + Bkdfs = #{bkdfs}, + Lrzy = #{lrzy}, + mjxsxsws = #{mjxsxsws}, + wjsjlj = #{wjsjlj}, + sjkzbz = #{sjkzbz}, + NeedJfzb = #{needjfzb}, + ZDYFZYSLBDM = #{zdyfzyslbdm}, + ZDYFZYSKZCS = #{zdyfzyskzcs}, + NeedYskm = #{needyskm}, + GKKSBMFA = #{gkksbmfa}, + pzbtdf = #{pzbtdf}, + ykjhyskm = #{ykjhyskm}, + BKDXSSJKM = #{bkdxssjkm}, + PZFJPath = #{pzfjpath}, + BKDXYFSCZ = #{bkdxyfscz}, + DELMAXDH = #{delmaxdh}, + BKDDataQXQY = #{bkddataqxqy}, + YKJHCS = #{ykjhcs}, + YKJHFS = #{ykjhfs}, + CNQZKM = #{cnqzkm}, + ZTSX = #{ztsx}, + TSXKZ = #{tsxkz}, + ZBKZ = #{zbkz}, + WJZ = #{wjz}, + BKDXSZHMC = #{bkdxszhmc}, + Maxzdycount = #{maxzdycount}, + SJLY = #{sjly}, + FlowControl = #{flowcontrol}, + CS1 = #{cs1}, + CS2 = #{cs2}, + CS3 = #{cs3}, + CS4 = #{cs4}, + CS5 = #{cs5}, + CZYJKM = #{czyjkm}, + kjyslbdm = #{kjyslbdm}, + wbxsws = #{wbxsws}, + hlxsws = #{hlxsws}, + sfpxjz = #{sfpxjz}, + qyxbzw = #{qyxbzw}, + pxjzfs = #{pxjzfs}, + yzxjll = #{yzxjll}, + nsrlx = #{nsrlx}, + dzgd = #{dzgd}, + dzgdzttb = #{dzgdzttb} + + where kjnd= #{kjnd} and ztbh=#{ztbh} and hsdwdm=#{hsdwdm} + + + + + + +update gl_ztcs set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update gl_ztcs set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and kjnd = #{kjnd} + and ztbh = #{ztbh} + and ztmc = #{ztmc} + and ztmce = #{ztmce} + and ztlb = #{ztlb} + and hsdwdm = #{hsdwdm} + and hsdwmc = #{hsdwmc} + and bwbdm = #{bwbdm} + and bwbmc = #{bwbmc} + and YZKM = #{yzkm} + and SJSJ = #{sjsj} + and bwbbf = #{bwbbf} + and bwbdw = #{bwbdw} + and bwbjd = #{bwbjd} + and cwzg = #{cwzg} + and kjqjs = #{kjqjs} + and qykjqj = #{qykjqj} + and wbhs = #{wbhs} + and hllx = #{hllx} + and sfyjz = #{sfyjz} + and ztkz = #{ztkz} + and yskz = #{yskz} + and pzygkz = #{pzygkz} + and yspzkz = #{yspzkz} + and slxsws = #{slxsws} + and djxsws = #{djxsws} + and anyibz = #{anyibz} + and kmbmfa = #{kmbmfa} + and kmzbmfa = #{kmzbmfa} + and bmbmfa = #{bmbmfa} + and xmbmfa = #{xmbmfa} + and dqbmfa = #{dqbmfa} + and dwbmfa = #{dwbmfa} + and xjbmfa = #{xjbmfa} + and gsbmfa = #{gsbmfa} + and bbpath = #{bbpath} + and BKDTD = #{bkdtd} + and BZDW = #{bzdw} + and ZBQYRQ = #{zbqyrq} + and Gkjzzf = #{gkjzzf} + and ZBKZMB = #{zbkzmb} + and KZFS = #{kzfs} + and KZQJ = #{kzqj} + and KZYJ = #{kzyj} + and YBKSY = #{ybksy} + and YBJSY = #{ybjsy} + and Zfpzbh = #{zfpzbh} + and Bkdbh = #{bkdbh} + and BKPZLX = #{bkpzlx} + and BKHSKM = #{bkhskm} + and BKYHKMYZ = #{bkyhkmyz} + and ZFSCBKD = #{zfscbkd} + and BKDSCPZ = #{bkdscpz} + and SZQXKZ = #{szqxkz} + and DJXG = #{djxg} + and DJSH = #{djsh} + and DYBZ = #{dybz} + and JHSH = #{jhsh} + and Zpscbk = #{zpscbk} + and ZPHS = #{zphs} + and DZKDM = #{dzkdm} + and HeadBKDH = #{headbkdh} + and Bkdfs = #{bkdfs} + and Lrzy = #{lrzy} + and mjxsxsws = #{mjxsxsws} + and wjsjlj = #{wjsjlj} + and sjkzbz = #{sjkzbz} + and NeedJfzb = #{needjfzb} + and ZDYFZYSLBDM = #{zdyfzyslbdm} + and ZDYFZYSKZCS = #{zdyfzyskzcs} + and NeedYskm = #{needyskm} + and GKKSBMFA = #{gkksbmfa} + and pzbtdf = #{pzbtdf} + and ykjhyskm = #{ykjhyskm} + and BKDXSSJKM = #{bkdxssjkm} + and PZFJPath = #{pzfjpath} + and BKDXYFSCZ = #{bkdxyfscz} + and DELMAXDH = #{delmaxdh} + and BKDDataQXQY = #{bkddataqxqy} + and YKJHCS = #{ykjhcs} + and YKJHFS = #{ykjhfs} + and CNQZKM = #{cnqzkm} + and ZTSX = #{ztsx} + and TSXKZ = #{tsxkz} + and ZBKZ = #{zbkz} + and WJZ = #{wjz} + and BKDXSZHMC = #{bkdxszhmc} + and Maxzdycount = #{maxzdycount} + and SJLY = #{sjly} + and FlowControl = #{flowcontrol} + and CS1 = #{cs1} + and CS2 = #{cs2} + and CS3 = #{cs3} + and CS4 = #{cs4} + and CS5 = #{cs5} + and CZYJKM = #{czyjkm} + and sts='Y' + + + + + delete from gl_ztcs where id= #{id} + + + + + delete from gl_ztcs where ztbh= #{ztbh} and kjnd=#{kjnd} and hsdwdm=#{hsdwdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/ISenderGlZtcsService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/ISenderGlZtcsService.java new file mode 100644 index 00000000..765d550a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/ISenderGlZtcsService.java @@ -0,0 +1,80 @@ +package com.hzya.frame.grpU8.nxproof.glZtcs.service; + + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity; +import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + +/** + * (GlZtcs)表服务接口 + * + * @author makejava + * @since 2024-06-20 09:45:04 + */ +public interface ISenderGlZtcsService extends IBaseService { + + /** + * + * @content 同步账套信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 11:33 + * **/ + Object glZtcsSynchronization(JSONObject json); + + /** + * + * @content 查询账套信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:55 + * **/ + Object queryEntityPage(JSONObject json); + + /** + * + * @content 查询账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:55 + * **/ + List queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity); + + /** + * + * @content 保存账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:02 + * **/ + Object saveEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 更新账套信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:09 + * **/ + Object updateEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 删除账套信息 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:21 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/impl/SenderGlZtcsServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/impl/SenderGlZtcsServiceImpl.java new file mode 100644 index 00000000..a829029e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glZtcs/service/impl/SenderGlZtcsServiceImpl.java @@ -0,0 +1,491 @@ +package com.hzya.frame.grpU8.nxproof.glZtcs.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao; +import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity; +import com.hzya.frame.grpU8.nxproof.glZtcs.service.ISenderGlZtcsService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (GlZtcs)表服务实现类 + * + * @author makejava + * @since 2024-06-20 09:45:04 + */ +@Service(value = "SenderGlZtcsServiceImpl") +public class SenderGlZtcsServiceImpl extends BaseService implements ISenderGlZtcsService { + + + private ISenderGlZtcsDao senderGlZtcsDao; + + + + + @Autowired + public void setSenderGlZtcsDao(ISenderGlZtcsDao dao) { + this.senderGlZtcsDao = dao; + this.dao = dao; + } + + @Override + public Object glZtcsSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class); + List senderGlZtcsEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlZtcsEntity.getKjnd()==null){ + senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + /*try { + //同步南浔区人民医院001账套信息 + senderGlZtcsEntity.setZtbh("001"); + senderGlZtcsEntity.setHsdwdm("0101010101"); + logger.info("===========开始查询南浔区人民医院账套信息============="); + senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003账套信息 + senderGlZtcsEntity.setZtbh("003"); + senderGlZtcsEntity.setHsdwdm("0101010103"); + logger.info("===========开始查询南浔区练市人民医院账套信息============="); + senderGlZtcsEntities= senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005账套信息 + senderGlZtcsEntity.setZtbh("005"); + senderGlZtcsEntity.setHsdwdm("0101010202"); + logger.info("===========开始查询南浔区练市镇中心卫生院账套信息============="); + senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007账套信息 + senderGlZtcsEntity.setZtbh("007"); + senderGlZtcsEntity.setHsdwdm("0101010204"); + logger.info("===========开始查询南浔区善琏镇卫生院账套信息============="); + senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("南浔区善琏镇卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004账套信息 + senderGlZtcsEntity.setZtbh("004"); + senderGlZtcsEntity.setHsdwdm("0101010201"); + senderGlZtcsEntities= sqlSessionSlz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("双林镇中心卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009账套信息 + senderGlZtcsEntity.setZtbh("009"); + senderGlZtcsEntity.setHsdwdm("0101020201"); + senderGlZtcsEntities= sqlSessionLhz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("菱湖镇中心卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010账套信息 + senderGlZtcsEntity.setZtbh("010"); + senderGlZtcsEntity.setHsdwdm("0101020202"); + senderGlZtcsEntities= sqlSessionHfz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("和孚镇卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011账套信息 + senderGlZtcsEntity.setZtbh("011"); + senderGlZtcsEntity.setHsdwdm("0101020203"); + senderGlZtcsEntities= sqlSessionQjz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("千金镇卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012账套信息 + senderGlZtcsEntity.setZtbh("012"); + senderGlZtcsEntity.setHsdwdm("0101020204"); + senderGlZtcsEntities= sqlSessionScz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("石崇镇卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步南浔镇中心卫生院014账套信息 + senderGlZtcsEntity.setZtbh("014"); + senderGlZtcsEntity.setHsdwdm("010202"); + senderGlZtcsEntities= sqlSessionNxz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity); + result=sendZtcsToHealthBureau(senderGlZtcsEntities); + logger.info("南浔镇中心卫生院GRPU8账套信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("GRPU8账套信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + private String sendZtcsToHealthBureau(List senderGlZtcsEntities){ + if (CollectionUtils.isEmpty(senderGlZtcsEntities)) { + logger.info("GRPU8没有需要同步得账套信息信息"); + return "GRPU8没有需要同步得账套信息信息"; + } else { + for (SenderGlZtcsEntity ztcsEntity : senderGlZtcsEntities) { + //ztcsEntity.setKjnd("2021"); + //ztcsEntity.setQykjqj(ztcsEntity.getQykjqj().replace("2024","2021")); + //根据会计年度,公司代码,核算单位代码查询数据是否已经同步过 + SenderGlZtcsEntity receiverGlZtcsEntity = new SenderGlZtcsEntity(); + receiverGlZtcsEntity.setKjnd(ztcsEntity.getKjnd()); + receiverGlZtcsEntity.setZtbh(ztcsEntity.getZtbh()); + receiverGlZtcsEntity.setHsdwdm(ztcsEntity.getHsdwdm()); + try { + List receiverGlZtcsEntities = queryEntityPageHealthBureau(receiverGlZtcsEntity); + //设置id为会计年度,账套号,核算单位代码拼接,测试时候这样,具体看情况 + ztcsEntity.setId(ztcsEntity.getKjnd() + '-' + ztcsEntity.getZtbh() + '-' + ztcsEntity.getHsdwdm()); + JsonResultEntity jsonResultEntity=null; + if (CollectionUtils.isEmpty(receiverGlZtcsEntities)) { + //将数据保存 + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", ztcsEntity); + logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步新增到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc()); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equals("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("========账套编码{}得GROU8账套信息同步保存返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs")); + } + /*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) { + logger.info("===========开始将发送方得GRPU8账套数据新增到账套信息日志中============="); + //保存发送方得日志 + ztcsEntity.setDataSourceCode(grp_data_source_code); + senderGlZtcsDao.saveSenderGlZtcsEntity(ztcsEntity); + }*/ + } else { + //将数据更新 + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", ztcsEntity); + logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步更新到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc()); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("========账套编码:{}得GROU8账套信息同步更新返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs")); + } + /*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) { + logger.info("===========开始将发送方得GRPU8账套数据更新到账套信息日志中============="); + //保存发送方得日志 + ztcsEntity.setDataSourceCode(grp_data_source_code); + senderGlZtcsDao.updateSenderGlZtcsEntity(ztcsEntity); + }*/ + } + } catch (Exception e) { + logger.info("账套编码:{}得GRPU8账套信息同步失败:{}",ztcsEntity.getZtmc(), e.getMessage()); + e.printStackTrace(); + } + } + return "同步GROU8账套信息成功"; + } + } + + //查询账套信息 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class); + List senderGlZtcsEntities=new ArrayList<>(); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlZtcsEntity.getKjnd()==null){ + senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderGlZtcsEntity.getZtbh())){ + logger.info("======根据账套号:{}查询账套信息为空",senderGlZtcsEntity.getZtbh()); + return BaseResult.getFailureMessageEntity("请传递账套号"); + } + try { + /*switch (senderGlZtcsEntity.getZtbh()){ + case "003"://练市人民医院 + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "004"://双林镇中心卫生院 + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "005"://练市镇中心卫生院 + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "007"://善琏镇卫生院 + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "009": + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "010": + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "011": + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "012": + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + case "001"://南浔区人民医院 + senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity); + break; + default: + break; + }*/ + senderGlZtcsEntities = senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity); + PageInfo pageInfo=new PageInfo(senderGlZtcsEntities); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("pageInfo",pageInfo); + return jsonObject1; + }catch (Exception e){ + logger.info("账套编码:{}查询GROU8账套信息失败:{}",senderGlZtcsEntity.getZtbh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8账套信息失败"); + } + } + + + //查询账套信息 + @Override + public List queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) { + try { + logger.info("=======根据账套号:{}查询卫生局得账套信息======",senderGlZtcsEntity.getZtbh()); + List receiverGlZtcsEntities = senderGlZtcsDao.queryGlZtcsHealthBureau(senderGlZtcsEntity); + return receiverGlZtcsEntities; + }catch (Exception e){ + logger.info("查询卫生局GROU8账套信息失败:{}",e.getMessage()); + e.printStackTrace(); + } + return null; + } + + //保存账套信息 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("===========保存账套信息时会计年度为空========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("ztbh"))) { + logger.info("===========保存账套信息时账套编号为空========="); + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("ztmc"))) { + logger.info("===========保存账套信息时账套名称为空========="); + return BaseResult.getFailureMessageEntity("账套名称为空"); + } + if (!checkStr(jsonObject.getString("ztmce"))) { + logger.info("===========保存账套信息时账套全称为空========="); + return BaseResult.getFailureMessageEntity("账套全称为空"); + } + if (!checkStr(jsonObject.getString("hsdwdm"))) { + logger.info("===========保存账套信息时核算单位代码为空========="); + return BaseResult.getFailureMessageEntity("核算单位代码为空"); + } + if (!checkStr(jsonObject.getString("hsdwmc"))) { + logger.info("===========保存账套信息时核算单位名称为空========="); + return BaseResult.getFailureMessageEntity("核算单位名称为空"); + } + if (!checkStr(jsonObject.getString("bwbdm"))) { + logger.info("===========保存账套信息时本位币代码为空========="); + return BaseResult.getFailureMessageEntity("本位币代码为空"); + } + if (!checkStr(jsonObject.getString("bwbmc"))) { + logger.info("===========保存账套信息时本位币名称为空========="); + return BaseResult.getFailureMessageEntity("本位币名称为空"); + } + try { + receiverGlZtcsEntity.setCwzg("1"); + receiverGlZtcsEntity.setKjqjs(12); + receiverGlZtcsEntity.setWbhs("0"); + receiverGlZtcsEntity.setHllx("G"); + receiverGlZtcsEntity.setSfyjz("1"); + receiverGlZtcsEntity.setYskz("0"); + receiverGlZtcsEntity.setYspzkz("0"); + receiverGlZtcsEntity.setSlxsws(4); + receiverGlZtcsEntity.setDjxsws(2); + receiverGlZtcsEntity.setAnyibz("1"); + receiverGlZtcsEntity.setXjbmfa("8"); + receiverGlZtcsEntity.setBkdtd("0"); + receiverGlZtcsEntity.setGkjzzf("0"); + receiverGlZtcsEntity.setZbkzmb("0"); + receiverGlZtcsEntity.setKzfs("0"); + receiverGlZtcsEntity.setKzqj("0"); + receiverGlZtcsEntity.setKzyj("0"); + receiverGlZtcsEntity.setYbksy("01"); + receiverGlZtcsEntity.setYbjsy("03"); + receiverGlZtcsEntity.setZfpzbh("M"); + receiverGlZtcsEntity.setBkdbh("M"); + receiverGlZtcsEntity.setBkhskm("0"); + receiverGlZtcsEntity.setBkyhkmyz("0"); + receiverGlZtcsEntity.setZfscbkd("0"); + receiverGlZtcsEntity.setBkdscpz("0"); + receiverGlZtcsEntity.setSzqxkz("0"); + receiverGlZtcsEntity.setDjxg("0"); + receiverGlZtcsEntity.setDjsh("0"); + receiverGlZtcsEntity.setDybz("0"); + receiverGlZtcsEntity.setJhsh("0"); + receiverGlZtcsEntity.setZpscbk("0"); + receiverGlZtcsEntity.setZphs("0"); + receiverGlZtcsEntity.setHeadbkdh("0"); + receiverGlZtcsEntity.setBkdfs("0"); + receiverGlZtcsEntity.setLrzy("0"); + receiverGlZtcsEntity.setMjxsxsws(2); + receiverGlZtcsEntity.setNeedjfzb("0"); + receiverGlZtcsEntity.setNeedyskm("5"); + receiverGlZtcsEntity.setPzbtdf("0"); + receiverGlZtcsEntity.setYkjhyskm("0"); + receiverGlZtcsEntity.setBkdxssjkm("0"); + receiverGlZtcsEntity.setBkdxyfscz("0"); + receiverGlZtcsEntity.setDelmaxdh("0"); + receiverGlZtcsEntity.setBkddataqxqy("0"); + receiverGlZtcsEntity.setYkjhcs("0"); + receiverGlZtcsEntity.setYkjhfs("0"); + receiverGlZtcsEntity.setBkdxszhmc("0"); + receiverGlZtcsEntity.setMaxzdycount(20); + SenderGlZtcsEntity senderGlZtcsEntity=new SenderGlZtcsEntity(); + senderGlZtcsEntity.setKjnd(receiverGlZtcsEntity.getKjnd()); + senderGlZtcsEntity.setZtbh(receiverGlZtcsEntity.getZtbh()); + senderGlZtcsEntity.setHsdwdm(receiverGlZtcsEntity.getHsdwdm()); + List senderGlZtcsEntities = queryEntityPageHealthBureau(senderGlZtcsEntity); + if(CollectionUtils.isEmpty(senderGlZtcsEntities)){ + receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm()); + logger.info("==========开始根据账套号为:{}保存账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId()); + SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.saveGlZtcsHealthBureau(receiverGlZtcsEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("ztcs",receiverGlZtcsEntity1); + return jsonObject1; + }else { + SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.updateGlZtcsHealthBureau(receiverGlZtcsEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("ztcs",receiverGlZtcsEntity1); + return jsonObject1; + } + }catch (Exception e){ + logger.info("根据账套编号:{}保存GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8账套信息失败"); + } + } + + //更新账套信息 + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("===========更新账套信息时会计年度为空========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("ztbh"))) { + logger.info("===========更新账套信息时账套编号为空========="); + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("hsdwdm"))) { + logger.info("===========更新账套信息时核算单位代码========="); + return BaseResult.getFailureMessageEntity("核算单位代码"); + } + try { + receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm()); + logger.info("==========开始根据账套号:{}更新账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId()); + SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.updateGlZtcsHealthBureau(receiverGlZtcsEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("ztcs",receiverGlZtcsEntity1); + return jsonObject1; + }catch (Exception e){ + logger.info("根据账套编号:{}更新GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8账套信息失败"); + } + } + + //删除账套信息 + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("===========删除账套信息时会计年度为空========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("ztbh"))) { + logger.info("===========删除账套信息时账套编号为空========="); + return BaseResult.getFailureMessageEntity("账套编号为空"); + } + if (!checkStr(jsonObject.getString("hsdwdm"))) { + logger.info("===========删除账套信息时核算单位代码========="); + return BaseResult.getFailureMessageEntity("核算单位代码"); + } + try { + receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm()); + logger.info("==========开始根据账套号:{}和会计年度:{}删除账套信息=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getKjnd()); + Integer integer = senderGlZtcsDao.deleteGlZtcsHealthBureau(receiverGlZtcsEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("ztcs",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("根据账套编号:{}删除GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8账套信息失败"); + } + } + + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/IGlCzrzDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/IGlCzrzDao.java new file mode 100644 index 00000000..519fc008 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/IGlCzrzDao.java @@ -0,0 +1,25 @@ +package com.hzya.frame.grpU8.nxproof.glczrz.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity; + +/** + * (GL_Czrz: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 15:27:05 + */ +public interface IGlCzrzDao extends IBaseDao { + + /** + * + * @content 查询操作日志的最大no值+1 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/6 15:45 + * **/ + GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity); +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/impl/GlCzrzDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/impl/GlCzrzDaoImpl.java new file mode 100644 index 00000000..7c7d01de --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/dao/impl/GlCzrzDaoImpl.java @@ -0,0 +1,22 @@ +package com.hzya.frame.grpU8.nxproof.glczrz.dao.impl; + + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao; +import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity; +import org.springframework.stereotype.Repository; +/** + * (GlCzrz)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 15:27:05 + */ +@Repository(value = "GlCzrzDaoImpl") +public class GlCzrzDaoImpl extends MybatisGenericDao implements IGlCzrzDao { + + @Override + public GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity) { + return (GlCzrzEntity)super.selectOne("queryCzrzNo",glCzrzEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.java new file mode 100644 index 00000000..1ec0533c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.java @@ -0,0 +1,98 @@ +package com.hzya.frame.grpU8.nxproof.glczrz.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlCzrz)实体类 + * + * @author makejava + * @since 2024-08-06 15:27:05 + */ +public class GlCzrzEntity extends BaseEntity { + + private String station; + private Integer no; + private String name; + private String date; + private String zwrq; + private String qssj; + private String zzsj; + private String cznr; + private String cznrkz; + + + public String getStation() { + return station; + } + + public void setStation(String station) { + this.station = station; + } + + public Integer getNo() { + return no; + } + + public void setNo(Integer no) { + this.no = no; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getZwrq() { + return zwrq; + } + + public void setZwrq(String zwrq) { + this.zwrq = zwrq; + } + + public String getQssj() { + return qssj; + } + + public void setQssj(String qssj) { + this.qssj = qssj; + } + + public String getZzsj() { + return zzsj; + } + + public void setZzsj(String zzsj) { + this.zzsj = zzsj; + } + + public String getCznr() { + return cznr; + } + + public void setCznr(String cznr) { + this.cznr = cznr; + } + + public String getCznrkz() { + return cznrkz; + } + + public void setCznrkz(String cznrkz) { + this.cznrkz = cznrkz; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.xml new file mode 100644 index 00000000..e7fb2dba --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/entity/GlCzrzEntity.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + station + ,no + ,name + ,date + ,zwrq + ,qssj + ,zzsj + ,cznr + ,CZNRKZ + + + + + + + + + + + + + + + + + + + insert into GL_Czrz( + + no , + name , + date , + zwrq , + qssj , + zzsj , + cznr , + CZNRKZ , + station + + )values( + + #{no} , + #{name} , + select convert(char(8),getdate(),112), + select convert(char(8),getdate(),112) , + select convert(char(8),getdate(),108) , + select convert(char(8),getdate(),108) , + #{cznr} , + #{cznrkz} , + #{station} + + ) + + + + insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ, sts) + values + + (#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz}, 'Y') + + + + + insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ) + values + + (#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz}) + + on duplicate key update + name = values(name), + date = values(date), + zwrq = values(zwrq), + qssj = values(qssj), + zzsj = values(zzsj), + cznr = values(cznr), + CZNRKZ = values(CZNRKZ) + + +update GL_Czrz set + + name = #{name}, + date = #{date}, + zwrq = #{zwrq}, + qssj = #{qssj}, + zzsj = #{zzsj}, + cznr = #{cznr}, + CZNRKZ = #{cznrkz}, + +where station = #{station} + + + +update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where station = #{station} + + + +update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and station = #{station} + and no = #{no} + and name = #{name} + and date = #{date} + and zwrq = #{zwrq} + and qssj = #{qssj} + and zzsj = #{zzsj} + and cznr = #{cznr} + and CZNRKZ = #{cznrkz} + + + + + delete from GL_Czrz where station = #{station} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/IGlCzrzService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/IGlCzrzService.java new file mode 100644 index 00000000..584fbd9e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/IGlCzrzService.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.glczrz.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity; + +/** + * (GlCzrz)表服务接口 + * + * @author makejava + * @since 2024-08-06 15:27:05 + */ +public interface IGlCzrzService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/impl/GlCzrzServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/impl/GlCzrzServiceImpl.java new file mode 100644 index 00000000..bd36fef7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glczrz/service/impl/GlCzrzServiceImpl.java @@ -0,0 +1,27 @@ +package com.hzya.frame.grpU8.nxproof.glczrz.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao; +import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity; +import com.hzya.frame.grpU8.nxproof.glczrz.service.IGlCzrzService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * (GlCzrz)表服务实现类 + * + * @author makejava + * @since 2024-08-06 15:27:05 + */ +@Service(value = "glCzrzService") +public class GlCzrzServiceImpl extends BaseService implements IGlCzrzService { + + private IGlCzrzDao glCzrzDao; + + @Autowired + public void setGlCzrzDao(IGlCzrzDao dao) { + this.glCzrzDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/IGlFzxzlDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/IGlFzxzlDao.java new file mode 100644 index 00000000..44bdbe8c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/IGlFzxzlDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.grpU8.nxproof.glfzxzl.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity; + +/** + * (GL_Fzxzl: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:56:28 + */ +public interface IGlFzxzlDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/impl/GlFzxzlDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/impl/GlFzxzlDaoImpl.java new file mode 100644 index 00000000..93466835 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/dao/impl/GlFzxzlDaoImpl.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.glfzxzl.dao.impl; + + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao; +import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity; +import org.springframework.stereotype.Repository; +/** + * (GlFzxzl)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:56:28 + */ +@Repository(value = "GlFzxzlDaoImpl") +public class GlFzxzlDaoImpl extends MybatisGenericDao implements IGlFzxzlDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.java new file mode 100644 index 00000000..580a495e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.java @@ -0,0 +1,179 @@ +package com.hzya.frame.grpU8.nxproof.glfzxzl.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlFzxzl)实体类 + * + * @author makejava + * @since 2024-08-06 10:56:29 + */ +public class GlFzxzlEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String lbdm; + private String fzdm; + private String fzmc; + private String zjm; + private String f1; + private String f2; + private String syzt; + private String bz; + private String sjly; + private Integer jlrId; + private String jlRq; + private Integer xgrId; + private String xgRq; + private String sfmx; + private String gnlb; + private String gnlbmc; + + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getLbdm() { + return lbdm; + } + + public void setLbdm(String lbdm) { + this.lbdm = lbdm; + } + + public String getFzdm() { + return fzdm; + } + + public void setFzdm(String fzdm) { + this.fzdm = fzdm; + } + + public String getFzmc() { + return fzmc; + } + + public void setFzmc(String fzmc) { + this.fzmc = fzmc; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getF1() { + return f1; + } + + public void setF1(String f1) { + this.f1 = f1; + } + + public String getF2() { + return f2; + } + + public void setF2(String f2) { + this.f2 = f2; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getBz() { + return bz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public Integer getJlrId() { + return jlrId; + } + + public void setJlrId(Integer jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public Integer getXgrId() { + return xgrId; + } + + public void setXgrId(Integer xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSfmx() { + return sfmx; + } + + public void setSfmx(String sfmx) { + this.sfmx = sfmx; + } + + public String getGnlb() { + return gnlb; + } + + public void setGnlb(String gnlb) { + this.gnlb = gnlb; + } + + public String getGnlbmc() { + return gnlbmc; + } + + public void setGnlbmc(String gnlbmc) { + this.gnlbmc = gnlbmc; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.xml new file mode 100644 index 00000000..d35707fd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/entity/GlFzxzlEntity.xml @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + ,kjnd + ,lbdm + ,fzdm + ,fzmc + ,zjm + ,f1 + ,f2 + ,syzt + ,bz + ,Sjly + ,Jlr_ID + ,Jl_RQ + ,Xgr_ID + ,Xg_RQ + ,SFMX + ,GNLB + ,GNLBMC + + + + + + + + + + + + + + + + insert into GL_Fzxzl( + + gsdm , + kjnd , + lbdm , + fzdm , + fzmc , + zjm , + f1 , + f2 , + syzt , + bz , + Sjly , + Jlr_ID , + Jl_RQ , + Xgr_ID , + Xg_RQ , + SFMX , + GNLB , + GNLBMC , + + )values( + + #{gsdm} , + #{kjnd} , + #{lbdm} , + #{fzdm} , + #{fzmc} , + #{zjm} , + #{f1} , + #{f2} , + #{syzt} , + #{bz} , + #{sjly} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sfmx} , + #{gnlb} , + #{gnlbmc} , + + ) + + + + insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC, sts) + values + + (#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc}, 'Y') + + + + + insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC) + values + + (#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc}) + + on duplicate key update + fzmc = values(fzmc), + zjm = values(zjm), + f1 = values(f1), + f2 = values(f2), + syzt = values(syzt), + bz = values(bz), + Sjly = values(Sjly), + Jlr_ID = values(Jlr_ID), + Jl_RQ = values(Jl_RQ), + Xgr_ID = values(Xgr_ID), + Xg_RQ = values(Xg_RQ), + SFMX = values(SFMX), + GNLB = values(GNLB), + GNLBMC = values(GNLBMC) + + +update GL_Fzxzl set + + fzmc = #{fzmc}, + zjm = #{zjm}, + f1 = #{f1}, + f2 = #{f2}, + syzt = #{syzt}, + bz = #{bz}, + Sjly = #{sjly}, + Jlr_ID = #{jlrId}, + Jl_RQ = #{jlRq}, + Xgr_ID = #{xgrId}, + Xg_RQ = #{xgRq}, + SFMX = #{sfmx}, + GNLB = #{gnlb}, + GNLBMC = #{gnlbmc}, + +where gsdm = #{gsdm} and kjnd=#{kjnd} and lbdm=#{lbdm} and fzdm=#{fzdm} + + + +update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where gsdm = #{gsdm} + + + +update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and kjnd = #{kjnd} + and lbdm = #{lbdm} + and fzdm = #{fzdm} + and fzmc = #{fzmc} + and zjm = #{zjm} + and f1 = #{f1} + and f2 = #{f2} + and syzt = #{syzt} + and bz = #{bz} + and Sjly = #{sjly} + and Jlr_ID = #{jlrId} + and Jl_RQ = #{jlRq} + and Xgr_ID = #{xgrId} + and Xg_RQ = #{xgRq} + and SFMX = #{sfmx} + and GNLB = #{gnlb} + and GNLBMC = #{gnlbmc} + + + + + delete from GL_Fzxzl where gsdm = #{gsdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/IGlFzxzlService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/IGlFzxzlService.java new file mode 100644 index 00000000..7aa8398c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/IGlFzxzlService.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.glfzxzl.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity; + +/** + * (GlFzxzl)表服务接口 + * + * @author makejava + * @since 2024-08-06 10:56:29 + */ +public interface IGlFzxzlService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/impl/GlFzxzlServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/impl/GlFzxzlServiceImpl.java new file mode 100644 index 00000000..8d81d7bb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glfzxzl/service/impl/GlFzxzlServiceImpl.java @@ -0,0 +1,27 @@ +package com.hzya.frame.grpU8.nxproof.glfzxzl.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao; +import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity; +import com.hzya.frame.grpU8.nxproof.glfzxzl.service.IGlFzxzlService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * (GlFzxzl)表服务实现类 + * + * @author makejava + * @since 2024-08-06 10:56:29 + */ +@Service(value = "glFzxzlService") +public class GlFzxzlServiceImpl extends BaseService implements IGlFzxzlService { + + private IGlFzxzlDao glFzxzlDao; + + @Autowired + public void setGlFzxzlDao(IGlFzxzlDao dao) { + this.glFzxzlDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/ISenderGlKmxxDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/ISenderGlKmxxDao.java new file mode 100644 index 00000000..90bace5d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/ISenderGlKmxxDao.java @@ -0,0 +1,91 @@ +package com.hzya.frame.grpU8.nxproof.glkmxx.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity; + +import java.util.List; + +/** + * (gl_kmxx: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:01:13 + */ +public interface ISenderGlKmxxDao extends IBaseDao { + + /** + * + * @content 查询科目信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity); + + /** + * + * @content 保存科目信息到科目日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:12 + * **/ + SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity); + + /** + * + * @content 更新科目信息到科目日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:12 + * **/ + SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity); + + + /** + * + * @content 查询科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity); + + /** + * + * @content 保存科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:12 + * **/ + SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity ); + + /** + * + * @content 更新科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:12 + * **/ + SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity ); + + /** + * + * @content 删除科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 16:58 + * **/ + Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity); + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/impl/SenderGlKmxxDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/impl/SenderGlKmxxDaoImpl.java new file mode 100644 index 00000000..a5bd55a6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/dao/impl/SenderGlKmxxDaoImpl.java @@ -0,0 +1,65 @@ +package com.hzya.frame.grpU8.nxproof.glkmxx.dao.impl; + + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao; +import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (GlKmxx)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:01:13 + */ +@Repository(value = "SenderGlKmxxDaoImpl") +public class SenderGlKmxxDaoImpl extends MybatisGenericDao implements ISenderGlKmxxDao { + + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public List querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.queryByLike(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.save(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.update(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public List queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.query(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.save(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.update(senderGlKmxxEntity); + } + + @Override + @DS("#senderGlKmxxEntity.dataSourceCode") + public Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) { + return super.delete("SenderGlKmxxEntity_delete_kmxx",senderGlKmxxEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.java new file mode 100644 index 00000000..c5fbf7c2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.java @@ -0,0 +1,396 @@ +package com.hzya.frame.grpU8.nxproof.glkmxx.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlKmxx)实体类 + * + * @author makejava + * @since 2024-06-20 10:01:13 + */ +public class SenderGlKmxxEntity extends BaseEntity { + + private String gsdm; + private String zth; + private String kjnd; + private String kmdm; + private String zjm; + private String kmmc; + private String syzt; + private String kmxz; + private String kmmxlb; + private String kmmx; + private String kmgs; + private String kmbz; + private String kmdw; + private Integer kmslxsws; + private String kmlb; + private String kmhdfx; + private String kmsyfx; + private String syzcfs; + private String kmpz; + private String yefx; + private String fzsm; + private String fzhs; + private String jfmax; + private String dfmax; + private String yemax; + private String accNa; + private String kmjx; + private String kmqx; + private Integer jlrId; + private String jlRq; + private Integer xgrId; + private String xgRq; + private String sjly; + private String zdyfzhs; + + private String kjtxdm; + private String dwlxdm; + private String kmsm; + private String bcdj; + private String czyjkz; + private String qycyx; + private String qyrjz; + private String djdqrq; + + + public String getKjtxdm() { + return kjtxdm; + } + + public void setKjtxdm(String kjtxdm) { + this.kjtxdm = kjtxdm; + } + + public String getDwlxdm() { + return dwlxdm; + } + + public void setDwlxdm(String dwlxdm) { + this.dwlxdm = dwlxdm; + } + + public String getKmsm() { + return kmsm; + } + + public void setKmsm(String kmsm) { + this.kmsm = kmsm; + } + + public String getBcdj() { + return bcdj; + } + + public void setBcdj(String bcdj) { + this.bcdj = bcdj; + } + + public String getCzyjkz() { + return czyjkz; + } + + public void setCzyjkz(String czyjkz) { + this.czyjkz = czyjkz; + } + + public String getQycyx() { + return qycyx; + } + + public void setQycyx(String qycyx) { + this.qycyx = qycyx; + } + + public String getQyrjz() { + return qyrjz; + } + + public void setQyrjz(String qyrjz) { + this.qyrjz = qyrjz; + } + + public String getDjdqrq() { + return djdqrq; + } + + public void setDjdqrq(String djdqrq) { + this.djdqrq = djdqrq; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getKmxz() { + return kmxz; + } + + public void setKmxz(String kmxz) { + this.kmxz = kmxz; + } + + public String getKmmxlb() { + return kmmxlb; + } + + public void setKmmxlb(String kmmxlb) { + this.kmmxlb = kmmxlb; + } + + public String getKmmx() { + return kmmx; + } + + public void setKmmx(String kmmx) { + this.kmmx = kmmx; + } + + public String getKmgs() { + return kmgs; + } + + public void setKmgs(String kmgs) { + this.kmgs = kmgs; + } + + public String getKmbz() { + return kmbz; + } + + public void setKmbz(String kmbz) { + this.kmbz = kmbz; + } + + public String getKmdw() { + return kmdw; + } + + public void setKmdw(String kmdw) { + this.kmdw = kmdw; + } + + public Integer getKmslxsws() { + return kmslxsws; + } + + public void setKmslxsws(Integer kmslxsws) { + this.kmslxsws = kmslxsws; + } + + public String getKmlb() { + return kmlb; + } + + public void setKmlb(String kmlb) { + this.kmlb = kmlb; + } + + public String getKmhdfx() { + return kmhdfx; + } + + public void setKmhdfx(String kmhdfx) { + this.kmhdfx = kmhdfx; + } + + public String getKmsyfx() { + return kmsyfx; + } + + public void setKmsyfx(String kmsyfx) { + this.kmsyfx = kmsyfx; + } + + public String getSyzcfs() { + return syzcfs; + } + + public void setSyzcfs(String syzcfs) { + this.syzcfs = syzcfs; + } + + public String getKmpz() { + return kmpz; + } + + public void setKmpz(String kmpz) { + this.kmpz = kmpz; + } + + public String getYefx() { + return yefx; + } + + public void setYefx(String yefx) { + this.yefx = yefx; + } + + public String getFzsm() { + return fzsm; + } + + public void setFzsm(String fzsm) { + this.fzsm = fzsm; + } + + public String getFzhs() { + return fzhs; + } + + public void setFzhs(String fzhs) { + this.fzhs = fzhs; + } + + public String getJfmax() { + return jfmax; + } + + public void setJfmax(String jfmax) { + this.jfmax = jfmax; + } + + public String getDfmax() { + return dfmax; + } + + public void setDfmax(String dfmax) { + this.dfmax = dfmax; + } + + public String getYemax() { + return yemax; + } + + public void setYemax(String yemax) { + this.yemax = yemax; + } + + public String getAccNa() { + return accNa; + } + + public void setAccNa(String accNa) { + this.accNa = accNa; + } + + public String getKmjx() { + return kmjx; + } + + public void setKmjx(String kmjx) { + this.kmjx = kmjx; + } + + public String getKmqx() { + return kmqx; + } + + public void setKmqx(String kmqx) { + this.kmqx = kmqx; + } + + public Integer getJlrId() { + return jlrId; + } + + public void setJlrId(Integer jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public Integer getXgrId() { + return xgrId; + } + + public void setXgrId(Integer xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public String getZdyfzhs() { + return zdyfzhs; + } + + public void setZdyfzhs(String zdyfzhs) { + this.zdyfzhs = zdyfzhs; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.xml new file mode 100644 index 00000000..a07a595f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/entity/SenderGlKmxxEntity.xml @@ -0,0 +1,529 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + , ZTH + , kjnd + , kmdm + , zjm + , kmmc + , syzt + , kmxz + , kmmxlb + , kmmx + , kmgs + , kmbz + , kmdw + , kmslxsws + , kmlb + , kmhdfx + , kmsyfx + , syzcfs + , kmpz + , yefx + , fzsm + , fzhs + , jfmax + , dfmax + , yemax + , acc_na + , kmjx + , kmqx + , JLR_ID + , JL_RQ + , XGR_ID + , XG_RQ + , Sjly + , zdyfzhs + , kjtxdm + , dwlxdm + , kmsm + , bcdj + , czyjkz + , qycyx + , qyrjz + , djdqrq + + + + + + + + + + + + + + + + insert into gl_kmxx( + + ZTH , + kjnd , + kmdm , + zjm , + kmmc , + syzt , + kmxz , + kmmxlb , + kmmx , + kmgs , + kmbz , + kmdw , + kmslxsws , + kmlb , + kmhdfx , + kmsyfx , + syzcfs , + kmpz , + yefx , + fzsm , + fzhs , + jfmax , + dfmax , + yemax , + acc_na , + kmjx , + kmqx , + JLR_ID , + JL_RQ , + XGR_ID , + XG_RQ , + Sjly , + zdyfzhs , + gsdm, + kjtxdm, + dwlxdm, + kmsm, + bcdj, + czyjkz, + qycyx, + qyrjz, + djdqrq + + )values( + + #{zth} , + #{kjnd} , + #{kmdm} , + #{zjm} , + #{kmmc} , + #{syzt} , + #{kmxz} , + #{kmmxlb} , + #{kmmx} , + #{kmgs} , + #{kmbz} , + #{kmdw} , + #{kmslxsws} , + #{kmlb} , + #{kmhdfx} , + #{kmsyfx} , + #{syzcfs} , + #{kmpz} , + #{yefx} , + #{fzsm} , + #{fzhs} , + #{jfmax} , + #{dfmax} , + #{yemax} , + #{accNa} , + #{kmjx} , + #{kmqx} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sjly} , + #{zdyfzhs} , + #{gsdm}, + #{kjtxdm}, + #{dwlxdm}, + #{kmsm}, + #{bcdj}, + #{czyjkz}, + #{qycyx}, + #{qyrjz}, + #{djdqrq} + + ) + + + + + + insert into gl_kmxx(id,gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs) + values + + (#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs}) + + + + + insert into gl_kmxx(id,gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs) + values + + (#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs}) + + on duplicate key update + gsdm = values(gsdm), + ZTH = values(ZTH), + kjnd = values(kjnd), + kmdm = values(kmdm), + zjm = values(zjm), + kmmc = values(kmmc), + syzt = values(syzt), + kmxz = values(kmxz), + kmmxlb = values(kmmxlb), + kmmx = values(kmmx), + kmgs = values(kmgs), + kmbz = values(kmbz), + kmdw = values(kmdw), + kmslxsws = values(kmslxsws), + kmlb = values(kmlb), + kmhdfx = values(kmhdfx), + kmsyfx = values(kmsyfx), + syzcfs = values(syzcfs), + kmpz = values(kmpz), + yefx = values(yefx), + fzsm = values(fzsm), + fzhs = values(fzhs), + jfmax = values(jfmax), + dfmax = values(dfmax), + yemax = values(yemax), + acc_na = values(acc_na), + kmjx = values(kmjx), + kmqx = values(kmqx), + JLR_ID = values(JLR_ID), + JL_RQ = values(JL_RQ), + XGR_ID = values(XGR_ID), + XG_RQ = values(XG_RQ), + Sjly = values(Sjly), + zdyfzhs = values(zdyfzhs) + + + update gl_kmxx set + + gsdm = #{gsdm}, + ZTH = #{zth}, + kjnd = #{kjnd}, + kmdm = #{kmdm}, + zjm = #{zjm}, + kmmc = #{kmmc}, + syzt = #{syzt}, + kmxz = #{kmxz}, + kmmxlb = #{kmmxlb}, + kmmx = #{kmmx}, + kmgs = #{kmgs}, + kmbz = #{kmbz}, + kmdw = #{kmdw}, + kmslxsws = #{kmslxsws}, + kmlb = #{kmlb}, + kmhdfx = #{kmhdfx}, + kmsyfx = #{kmsyfx}, + syzcfs = #{syzcfs}, + kmpz = #{kmpz}, + yefx = #{yefx}, + fzsm = #{fzsm}, + fzhs = #{fzhs}, + jfmax = #{jfmax}, + dfmax = #{dfmax}, + yemax = #{yemax}, + acc_na = #{accNa}, + kmjx = #{kmjx}, + kmqx = #{kmqx}, + JLR_ID = #{jlrId}, + JL_RQ = #{jlRq}, + XGR_ID = #{xgrId}, + XG_RQ = #{xgRq}, + Sjly = #{sjly}, + zdyfzhs = #{zdyfzhs}, + kjtxdm = #{kjtxdm}, + dwlxdm = #{dwlxdm}, + kmsm = #{kmsm}, + bcdj = #{bcdj}, + czyjkz = #{czyjkz}, + qycyx = #{qycyx}, + qyrjz = #{qyrjz}, + djdqrq = #{djdqrq} + + where gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth} and kmdm=#{kmdm} + + + + + +update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and ZTH = #{zth} + and kjnd = #{kjnd} + and kmdm = #{kmdm} + and zjm = #{zjm} + and kmmc = #{kmmc} + and syzt = #{syzt} + and kmxz = #{kmxz} + and kmmxlb = #{kmmxlb} + and kmmx = #{kmmx} + and kmgs = #{kmgs} + and kmbz = #{kmbz} + and kmdw = #{kmdw} + and kmslxsws = #{kmslxsws} + and kmlb = #{kmlb} + and kmhdfx = #{kmhdfx} + and kmsyfx = #{kmsyfx} + and syzcfs = #{syzcfs} + and kmpz = #{kmpz} + and yefx = #{yefx} + and fzsm = #{fzsm} + and fzhs = #{fzhs} + and jfmax = #{jfmax} + and dfmax = #{dfmax} + and yemax = #{yemax} + and acc_na = #{accNa} + and kmjx = #{kmjx} + and kmqx = #{kmqx} + and JLR_ID = #{jlrId} + and JL_RQ = #{jlRq} + and XGR_ID = #{xgrId} + and XG_RQ = #{xgRq} + and Sjly = #{sjly} + and zdyfzhs = #{zdyfzhs} + and sts='Y' + + + + + delete from gl_kmxx where id= #{id} + + + + + delete from gl_kmxx where + gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth} + and kmdm=#{kmdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/ISenderGlKmxxService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/ISenderGlKmxxService.java new file mode 100644 index 00000000..0aee3a36 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/ISenderGlKmxxService.java @@ -0,0 +1,92 @@ +package com.hzya.frame.grpU8.nxproof.glkmxx.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + + +/** + * (GlKmxx)表服务接口 + * + * @author makejava + * @since 2024-06-20 10:01:13 + */ +public interface ISenderGlKmxxService extends IBaseService { + + /** + * + * @content 科目信息同步 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:27 + * **/ + Object kmxxSynchronization(JSONObject jsonObject); + + /** + * + * @content 查询科目信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:33 + * **/ + Object queryEntityPage(JSONObject json); + + + /** + * + * @content 查询科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:33 + * **/ + List queryEntityPageHealthBureau(SenderGlKmxxEntity receiverGlKmxxEntity); + + /** + * + * @content 保存科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 11:54 + * **/ + Object saveEntityHealthBureau(JSONObject json); + + /** + * + * @content 更新科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 13:37 + * **/ + Object updateEntityHealthBureau(JSONObject json); + + /** + * + * @content 删除科目信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 16:55 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 获取数据源编码 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/13 14:59 + * **/ + SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity sysExtensionApiEntity); + + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/impl/SenderGlKmxxServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/impl/SenderGlKmxxServiceImpl.java new file mode 100644 index 00000000..358e068f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glkmxx/service/impl/SenderGlKmxxServiceImpl.java @@ -0,0 +1,469 @@ +package com.hzya.frame.grpU8.nxproof.glkmxx.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; + +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao; +import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity; +import com.hzya.frame.grpU8.nxproof.glkmxx.service.ISenderGlKmxxService; +import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (GlKmxx)表服务实现类 + * + * @author makejava + * @since 2024-06-20 10:01:13 + */ +@Service(value = "SenderGlKmxxServiceImpl") +public class SenderGlKmxxServiceImpl extends BaseService implements ISenderGlKmxxService { + + + @Autowired + private ISysApplicationDatabaseDao sysApplicationDatabaseDao; + private ISenderGlKmxxDao senderGlKmxxDao; + + + @Autowired + public void setSenderGlKmxxDao(ISenderGlKmxxDao dao) { + this.senderGlKmxxDao = dao; + this.dao = dao; + } + + //科目信息同步接口 + @Override + public Object kmxxSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class); + String result = null; + List senderGlKmxxEntities = new ArrayList<>(); + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if (senderGlKmxxEntity.getKjnd() == null) { + senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy")); + } + /*try { + //同步南浔区人民医院001科目信息 + senderGlKmxxEntity.setZth("001"); + senderGlKmxxEntity.setGsdm("0101010101"); + logger.info("==========开始查询南浔区人民医院科目信息========"); + senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result = sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("南浔区人民医院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003科目信息 + senderGlKmxxEntity.setZth("003"); + senderGlKmxxEntity.setGsdm("0101010103"); + logger.info("==========开始查询南浔区练市人民医院科目信息========"); + senderGlKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity); + //senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result = sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("南浔区练市人民医院GRPU8科目信息同步结果为:{}", result); + } catch (Exception e) { + logger.info("南浔区练市人民医院GRPU8科目信息同步失败:{}", e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005科目信息 + senderGlKmxxEntity.setZth("005"); + senderGlKmxxEntity.setGsdm("0101010202"); + logger.info("==========开始查询南浔区练市镇中心卫生院科目信息========"); + senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步南浔区善琏镇卫生院007科目信息 + senderGlKmxxEntity.setZth("007"); + senderGlKmxxEntity.setGsdm("0101010204"); + logger.info("==========开始查询南浔区善琏镇卫生院科目信息========"); + senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("南浔区善琏镇卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004科目信息 + senderGlKmxxEntity.setZth("004"); + senderGlKmxxEntity.setGsdm("0101010201"); + senderGlKmxxEntities = sqlSessionSlz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("双林镇中心卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009科目信息 + senderGlKmxxEntity.setZth("009"); + senderGlKmxxEntity.setGsdm("0101020201"); + senderGlKmxxEntities = sqlSessionLhz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("菱湖镇中心卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010科目信息 + senderGlKmxxEntity.setZth("010"); + senderGlKmxxEntity.setGsdm("0101020202"); + senderGlKmxxEntities = sqlSessionHfz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("和孚镇卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011科目信息 + senderGlKmxxEntity.setZth("011"); + senderGlKmxxEntity.setGsdm("0101020203"); + senderGlKmxxEntities = sqlSessionQjz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("千金镇卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012科目信息 + senderGlKmxxEntity.setZth("012"); + senderGlKmxxEntity.setGsdm("0101020204"); + senderGlKmxxEntities = sqlSessionScz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("石崇镇卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步南浔镇中心卫生院014科目信息 + senderGlKmxxEntity.setZth("014"); + senderGlKmxxEntity.setGsdm("010202"); + senderGlKmxxEntities = sqlSessionNxz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity); + result =sendKmxxToHealthBureau(senderGlKmxxEntities); + logger.info("南浔镇中心卫生院GRPU8科目信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + } catch (Exception e) { + logger.info("GRPU8科目信息同步失败:{}", e.getMessage()); + e.printStackTrace(); + } + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", "200"); + jsonObject1.put("result", result); + return jsonObject1; + } + + private String sendKmxxToHealthBureau(List senderGlKmxxEntities) { + if (CollectionUtils.isEmpty(senderGlKmxxEntities)) { + logger.info("GRPU8没有需要同步得科目信息"); + return "GRPU8没有需要同步得科目信息"; + } else { + for (SenderGlKmxxEntity kmxxEntity : senderGlKmxxEntities) { + // kmxxEntity.setKjnd("2021"); + //根据会计年度,公司代码,账套号,科目代码查询接收方数据是否已经同步过 + SenderGlKmxxEntity receiverGlKmxxEntity = new SenderGlKmxxEntity(); + receiverGlKmxxEntity.setKjnd(kmxxEntity.getKjnd()); + receiverGlKmxxEntity.setZth(kmxxEntity.getZth()); + receiverGlKmxxEntity.setGsdm(kmxxEntity.getGsdm()); + receiverGlKmxxEntity.setKmdm(kmxxEntity.getKmdm()); + try { + //查询接收方中是否存在 + List receiverGlKmxxEntities = queryEntityPageHealthBureau(receiverGlKmxxEntity); + //设置id为会计年度,公司代码,账套号,科目代码拼接,测试时候这样,具体看情况 + kmxxEntity.setId(kmxxEntity.getGsdm() + '-' + kmxxEntity.getZth() + '-' + kmxxEntity.getKjnd() + '-' + kmxxEntity.getKmdm()); + JsonResultEntity jsonResultEntity = null; + //如果在接收方信息中不存在,则保存数据到接收方 + if (CollectionUtils.isEmpty(receiverGlKmxxEntities)) { + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", kmxxEntity); + logger.info("===========开始将账套号为:{}的GRPU8科目信息数据新增到卫生局得GRPU8中=============", kmxxEntity.getZth()); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if (json.getString("status").equalsIgnoreCase("200")) { + //JSONObject jsonObject =(JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("账套号:{}的GROU8得科目信息同步卫生局保存返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx")); + } + //日志暂时不保存和更新 + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方得GRPU8数据新增到科目信息日志中============="); + //保存发送方得日志 + kmxxEntity.setDataSourceCode(grp_data_source_code); + senderGlKmxxDao.saveSenderGlKmxxEntity(kmxxEntity); + }*/ + } else { + //如果存在,则更新 + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", kmxxEntity); + logger.info("===========开始将账套号:{}得GRPU8科目信息数据更新到卫生局GRPU8中=============", kmxxEntity.getZth()); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if (json.getString("status").equalsIgnoreCase("200")) { + //JSONObject jsonObject = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("账套号:{}的GROU8得科目信息同步卫生局更新返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方得GRPU8数据更新到科目信息日志中============="); + //更新发送方得日志 + kmxxEntity.setDataSourceCode(grp_data_source_code); + senderGlKmxxDao.updateSenderGlKmxxEntity(kmxxEntity); + }*/ + } + } catch (Exception e) { + logger.info("{}的GRPU8科目信息同步失败:{}", kmxxEntity.getZth(), e.getMessage()); + e.printStackTrace(); + } + } + return "同步GRPU8科目信息成功"; + } + } + + //查询科目信息 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class); + List glKmxxEntities = new ArrayList<>(); + if (StrUtil.isEmpty(senderGlKmxxEntity.getZth())) { + logger.info("======传入的账套号为:{}", senderGlKmxxEntity.getZth()); + return BaseResult.getFailureMessageEntity("请传递账套号"); + } + //如果没有传入年度,则查询当年得,避免数据查询太大 + if (senderGlKmxxEntity.getKjnd() == null) { + senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy")); + } + try { + /*switch (senderGlKmxxEntity.getZth()){ + case "003"://练市人民医院 + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "004"://双林镇中心卫生院 + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "005"://练市镇中心卫生院 + glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "007"://善琏镇卫生院 + glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "009": + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "010": + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "011": + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "012": + glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + case "001"://南浔人民医院 + glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity); + break; + default: + break; + }*/ + glKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity); + PageInfo pageInfo = new PageInfo(glKmxxEntities); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", 200); + jsonObject1.put("pageInfo", pageInfo); + return jsonObject1; + } catch (Exception e) { + logger.info("查询GROU8科目信息失败:{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8科目信息失败"); + } + } + + //查询科目信息 + @Override + public List queryEntityPageHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) { + try { + logger.info("====开始根据账套号:{}查询卫生局中得科目信息数据====", senderGlKmxxEntity.getZth()); + List senderGlKmxxEntities = senderGlKmxxDao.queryGlKmxxHealthBureau(senderGlKmxxEntity); + return senderGlKmxxEntities; + } catch (Exception e) { + logger.info("根据账套号:{}查询得卫生局GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage()); + e.printStackTrace(); + } + return null; + } + + //保存科目信息 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("======保存科目信息会计年度为空====="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("======保存科目信息公司代码为空====="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("======保存科目信息账套号为空====="); + return BaseResult.getFailureMessageEntity("账套号为空"); + } + if (!checkStr(jsonObject.getString("kmdm"))) { + logger.info("======保存科目信息科目代码为空====="); + return BaseResult.getFailureMessageEntity("科目代码为空"); + } + if (!checkStr(jsonObject.getString("kmmc"))) { + logger.info("======保存科目信息科目名称为空====="); + return BaseResult.getFailureMessageEntity("科目名称为空"); + } + try { + SenderGlKmxxEntity senderGlKmxxQuery=new SenderGlKmxxEntity(); + senderGlKmxxQuery.setZth(senderGlKmxxEntity.getZth()); + senderGlKmxxQuery.setGsdm(senderGlKmxxEntity.getGsdm()); + senderGlKmxxQuery.setKjnd(senderGlKmxxEntity.getKjnd()); + senderGlKmxxQuery.setKmdm(senderGlKmxxEntity.getKmdm()); + //先查询数据是否存在,如果存在则更新,不存在则更新 + List senderGlKmxxEntities = queryEntityPageHealthBureau(senderGlKmxxQuery); + if(CollectionUtils.isEmpty(senderGlKmxxEntities)){ + senderGlKmxxEntity.setId(senderGlKmxxEntity.getGsdm() + '-' + senderGlKmxxEntity.getZth() + '-' + senderGlKmxxEntity.getKjnd() + '-' + senderGlKmxxEntity.getKmdm()); + logger.info("=======开始根据账套号:{}保存科目信息,id为:{}", senderGlKmxxEntity.getZth(), senderGlKmxxEntity.getId()); + SenderGlKmxxEntity senderGlKmxx = senderGlKmxxDao.saveGlKmxxHealthBureau(senderGlKmxxEntity); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", "200"); + jsonObject1.put("kmxx", senderGlKmxx); + return jsonObject1; + }else{ + SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(senderGlKmxxEntity); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", "200"); + jsonObject1.put("kmxx", receiverGlKmxx); + return jsonObject1; + } + } catch (Exception e) { + logger.info("根据账套号:{}保存GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8科目信息失败"); + } + } + + //更新科目信息 + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("======更新科目信息会计年度为空====="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("======更新科目信息公司代码为空====="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("======更新科目信息账套号为空====="); + return BaseResult.getFailureMessageEntity("账套号为空"); + } + if (!checkStr(jsonObject.getString("kmdm"))) { + logger.info("======更新科目信息科目代码为空====="); + return BaseResult.getFailureMessageEntity("科目代码为空"); + } + try { + receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm()); + logger.info("=======开始根据账套号:{}更新科目信息,id为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getId()); + SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(receiverGlKmxxEntity); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", "200"); + jsonObject1.put("kmxx", receiverGlKmxx); + return jsonObject1; + } catch (Exception e) { + logger.info("根据账套号:{}更新GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8科目信息失败"); + } + } + + //删除科目信息 卫生局 + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("======删除科目信息会计年度为空====="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("======删除科目信息公司代码为空====="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("======删除科目信息账套号为空====="); + return BaseResult.getFailureMessageEntity("账套号为空"); + } + /*if (!checkStr(jsonObject.getString("kmdm"))) { + logger.info("======删除科目信息科目代码为空====="); + return BaseResult.getFailureMessageEntity("科目代码为空"); + }*/ + try { + receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm()); + logger.info("=======开始根据账套号:{}和会计年度:{}删除科目信息,科目代码为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKjnd(), receiverGlKmxxEntity.getKmdm()); + Integer integer = senderGlKmxxDao.deleteGlKmxxHealthBureau(receiverGlKmxxEntity); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("status", "200"); + jsonObject1.put("kmxx", integer); + return jsonObject1; + } catch (Exception e) { + logger.info("根据账套号:{}和科目代码:{}以及会计年度:{}删除GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKmdm(), receiverGlKmxxEntity.getKjnd(), e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8科目信息失败"); + } + } + + //获取数据源编码 + @Override + public SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity entity) { + try { + SysApplicationEntity applicationEntity = entity.getReceiveApp(); + SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity(); + sysApplicationDatabaseEntity.setSts("Y"); + sysApplicationDatabaseEntity.setAppId(applicationEntity.getId()); + sysApplicationDatabaseEntity.setDataSourceCode("master"); + List sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity); + if (sysDataSourceEntities != null && sysDataSourceEntities.size() > 0) { + String parm = entity.getBodys(); + JSONObject jsonObject = JSONObject.parseObject(parm); + jsonObject.put("dataSourceCode", sysDataSourceEntities.get(0).getSourceCode()); + entity.setBodys(jsonObject.toJSONString()); + } + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/ISenderGlXmzlDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/ISenderGlXmzlDao.java new file mode 100644 index 00000000..e64f3fde --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/ISenderGlXmzlDao.java @@ -0,0 +1,89 @@ +package com.hzya.frame.grpU8.nxproof.glxmzl.dao; + + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; + +import java.util.List; + +/** + * (gl_xmzl: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:02:38 + */ +public interface ISenderGlXmzlDao extends IBaseDao { + + /** + * + * @content 查询项目资料 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 保存项目资料到项目日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:55 + * **/ + SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 更新项目资料到项目日志中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:55 + * **/ + SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 查询项目资料 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 保存项目资料到项目日志中 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:55 + * **/ + SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 更新项目资料到项目日志中 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 16:55 + * **/ + SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 删除项目资料 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:15 + * **/ + Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity); + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/impl/SenderGlXmzlDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/impl/SenderGlXmzlDaoImpl.java new file mode 100644 index 00000000..bcfa3f52 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/dao/impl/SenderGlXmzlDaoImpl.java @@ -0,0 +1,62 @@ +package com.hzya.frame.grpU8.nxproof.glxmzl.dao.impl; + + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (GlXmzl)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 10:02:38 + */ +@Repository(value = "SenderGlXmzlDaoImpl") +public class SenderGlXmzlDaoImpl extends MybatisGenericDao implements ISenderGlXmzlDao { + + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public List querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.queryByLike(senderGlXmzlEntity); + } + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.save(senderGlXmzlEntity); + } + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.update(senderGlXmzlEntity); + } + + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public List queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.query(senderGlXmzlEntity); + } + + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.save(senderGlXmzlEntity); + } + + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.update(senderGlXmzlEntity); + } + + @Override + @DS("#senderGlXmzlEntity.dataSourceCode") + public Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) { + return super.delete("SenderGlXmzlEntity_delete_xmzl",senderGlXmzlEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.java new file mode 100644 index 00000000..1929b03c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.java @@ -0,0 +1,296 @@ +package com.hzya.frame.grpU8.nxproof.glxmzl.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (GlXmzl)实体类 + * + * @author makejava + * @since 2024-06-20 10:02:38 + */ +public class SenderGlXmzlEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String xmdm; + private String xmmc; + private String zjm; + private String ksrq; + private String jsrq; + private String bmdm; + private String bm; + private String ren; + private String zy; + private String syzt; + private Long jlrId; + private String jlRq; + private Integer xgrId; + private String xgRq; + private String sjly; + private String sfmx; + private String projobjid; + private String zdxmbz; + private String kzfs; + private String isjbzc; + private String lxnd; + private String zjly; + private String xmfl; + private String sfjt; + private String ren2; + private String ren3; + private Double ysje; + private String glh; + + private String sfjjxm; + + public String getSfjjxm() { + return sfjjxm; + } + + public void setSfjjxm(String sfjjxm) { + this.sfjjxm = sfjjxm; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getXmmc() { + return xmmc; + } + + public void setXmmc(String xmmc) { + this.xmmc = xmmc; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getKsrq() { + return ksrq; + } + + public void setKsrq(String ksrq) { + this.ksrq = ksrq; + } + + public String getJsrq() { + return jsrq; + } + + public void setJsrq(String jsrq) { + this.jsrq = jsrq; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBm() { + return bm; + } + + public void setBm(String bm) { + this.bm = bm; + } + + public String getRen() { + return ren; + } + + public void setRen(String ren) { + this.ren = ren; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public Long getJlrId() { + return jlrId; + } + + public void setJlrId(Long jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public Integer getXgrId() { + return xgrId; + } + + public void setXgrId(Integer xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public String getSfmx() { + return sfmx; + } + + public void setSfmx(String sfmx) { + this.sfmx = sfmx; + } + + public String getProjobjid() { + return projobjid; + } + + public void setProjobjid(String projobjid) { + this.projobjid = projobjid; + } + + public String getZdxmbz() { + return zdxmbz; + } + + public void setZdxmbz(String zdxmbz) { + this.zdxmbz = zdxmbz; + } + + public String getKzfs() { + return kzfs; + } + + public void setKzfs(String kzfs) { + this.kzfs = kzfs; + } + + public String getIsjbzc() { + return isjbzc; + } + + public void setIsjbzc(String isjbzc) { + this.isjbzc = isjbzc; + } + + public String getLxnd() { + return lxnd; + } + + public void setLxnd(String lxnd) { + this.lxnd = lxnd; + } + + public String getZjly() { + return zjly; + } + + public void setZjly(String zjly) { + this.zjly = zjly; + } + + public String getXmfl() { + return xmfl; + } + + public void setXmfl(String xmfl) { + this.xmfl = xmfl; + } + + public String getSfjt() { + return sfjt; + } + + public void setSfjt(String sfjt) { + this.sfjt = sfjt; + } + + public String getRen2() { + return ren2; + } + + public void setRen2(String ren2) { + this.ren2 = ren2; + } + + public String getRen3() { + return ren3; + } + + public void setRen3(String ren3) { + this.ren3 = ren3; + } + + public Double getYsje() { + return ysje; + } + + public void setYsje(Double ysje) { + this.ysje = ysje; + } + + public String getGlh() { + return glh; + } + + public void setGlh(String glh) { + this.glh = glh; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.xml new file mode 100644 index 00000000..7e306174 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/entity/SenderGlXmzlEntity.xml @@ -0,0 +1,440 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GSDM + ,KJND + ,XMDM + ,XMMC + ,ZJM + ,KSRQ + ,JSRQ + ,BMDM + ,BM + ,REN + ,ZY + ,SYZT + ,JLR_ID + ,JL_RQ + ,XGR_ID + ,XG_RQ + ,SJLY + ,SFMX + ,PROJOBJID + ,ZDXMBZ + ,KZFS + ,ISJBZC + ,LXND + ,ZJLY + ,XMFL + ,SFJT + ,REN2 + ,REN3 + ,YSJE + ,GLH + ,sfjjxm + + + + + + + + + + + + + + + + insert into gl_xmzl( + + KJND , + XMDM , + XMMC , + ZJM , + KSRQ , + JSRQ , + BMDM , + BM , + REN , + ZY , + SYZT , + JLR_ID , + JL_RQ , + XGR_ID , + XG_RQ , + SJLY , + SFMX , + PROJOBJID , + ZDXMBZ , + KZFS , + ISJBZC , + LXND , + ZJLY , + XMFL , + SFJT , + REN2 , + REN3 , + YSJE , + GLH, + sfjjxm, + GSDM + + )values( + + #{kjnd} , + #{xmdm} , + #{xmmc} , + #{zjm} , + #{ksrq} , + #{jsrq} , + #{bmdm} , + #{bm} , + #{ren} , + #{zy} , + #{syzt} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sjly} , + #{sfmx} , + #{projobjid} , + #{zdxmbz} , + #{kzfs} , + #{isjbzc} , + #{lxnd} , + #{zjly} , + #{xmfl} , + #{sfjt} , + #{ren2} , + #{ren3} , + #{ysje} , + #{glh} , + #{sfjjxm} , + #{gsdm} + + ) + + + + + + insert into gl_xmzl(id,GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH) + values + + (#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh}) + + + + + insert into gl_xmzl(id,GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH) + values + + (#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh}) + + on duplicate key update + GSDM = values(GSDM), + KJND = values(KJND), + XMDM = values(XMDM), + XMMC = values(XMMC), + ZJM = values(ZJM), + KSRQ = values(KSRQ), + JSRQ = values(JSRQ), + BMDM = values(BMDM), + BM = values(BM), + REN = values(REN), + ZY = values(ZY), + SYZT = values(SYZT), + JLR_ID = values(JLR_ID), + JL_RQ = values(JL_RQ), + XGR_ID = values(XGR_ID), + XG_RQ = values(XG_RQ), + SJLY = values(SJLY), + SFMX = values(SFMX), + PROJOBJID = values(PROJOBJID), + ZDXMBZ = values(ZDXMBZ), + KZFS = values(KZFS), + ISJBZC = values(ISJBZC), + LXND = values(LXND), + ZJLY = values(ZJLY), + XMFL = values(XMFL), + SFJT = values(SFJT), + REN2 = values(REN2), + REN3 = values(REN3), + YSJE = values(YSJE), + GLH = values(GLH) + + + update gl_xmzl set + + GSDM = #{gsdm}, + KJND = #{kjnd}, + XMDM = #{xmdm}, + XMMC = #{xmmc}, + ZJM = #{zjm}, + KSRQ = #{ksrq}, + JSRQ = #{jsrq}, + BMDM = #{bmdm}, + BM = #{bm}, + REN = #{ren}, + ZY = #{zy}, + SYZT = #{syzt}, + JLR_ID = #{jlrId}, + JL_RQ = #{jlRq}, + XGR_ID = #{xgrId}, + XG_RQ = #{xgRq}, + SJLY = #{sjly}, + SFMX = #{sfmx}, + PROJOBJID = #{projobjid}, + ZDXMBZ = #{zdxmbz}, + KZFS = #{kzfs}, + ISJBZC = #{isjbzc}, + LXND = #{lxnd}, + ZJLY = #{zjly}, + XMFL = #{xmfl}, + SFJT = #{sfjt}, + REN2 = #{ren2}, + REN3 = #{ren3}, + YSJE = #{ysje}, + sfjjxm = #{sfjjxm}, + GLH = #{glh} + + where kjnd= #{kjnd} and gsdm=#{gsdm} and xmdm=#{xmdm} + + + + +update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and GSDM = #{gsdm} + and KJND = #{kjnd} + and XMDM = #{xmdm} + and XMMC = #{xmmc} + and ZJM = #{zjm} + and KSRQ = #{ksrq} + and JSRQ = #{jsrq} + and BMDM = #{bmdm} + and BM = #{bm} + and REN = #{ren} + and ZY = #{zy} + and SYZT = #{syzt} + and JLR_ID = #{jlrId} + and JL_RQ = #{jlRq} + and XGR_ID = #{xgrId} + and XG_RQ = #{xgRq} + and SJLY = #{sjly} + and SFMX = #{sfmx} + and PROJOBJID = #{projobjid} + and ZDXMBZ = #{zdxmbz} + and KZFS = #{kzfs} + and ISJBZC = #{isjbzc} + and LXND = #{lxnd} + and ZJLY = #{zjly} + and XMFL = #{xmfl} + and SFJT = #{sfjt} + and REN2 = #{ren2} + and REN3 = #{ren3} + and YSJE = #{ysje} + and GLH = #{glh} + and sts='Y' + + + + + delete from gl_xmzl where id= #{id} + + + + + delete from gl_xmzl where gsdm= #{gsdm} and kjnd=#{kjnd} + and xmdm = #{xmdm} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/ISenderGlXmzlService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/ISenderGlXmzlService.java new file mode 100644 index 00000000..eeac16eb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/ISenderGlXmzlService.java @@ -0,0 +1,79 @@ +package com.hzya.frame.grpU8.nxproof.glxmzl.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + + +/** + * (GlXmzl)表服务接口 + * + * @author makejava + * @since 2024-06-20 10:02:38 + */ +public interface ISenderGlXmzlService extends IBaseService { + + /** + * + * @content 同步项目资料 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 11:53 + * **/ + Object glXmzlSynchronization(JSONObject json); + + /** + * + * @content 查询项目资料 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:48 + * **/ + Object queryEntityPage(JSONObject json); + + /** + * + * @content 查询项目资料 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:48 + * **/ + List queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity); + + /** + * + * @content 保存项目资料 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 13:43 + * **/ + Object saveEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 更新项目资料 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:00 + * **/ + Object updateEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 删除项目资料 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:08 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/impl/SenderGlXmzlServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/impl/SenderGlXmzlServiceImpl.java new file mode 100644 index 00000000..2ce043a8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/glxmzl/service/impl/SenderGlXmzlServiceImpl.java @@ -0,0 +1,407 @@ +package com.hzya.frame.grpU8.nxproof.glxmzl.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao; +import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity; +import com.hzya.frame.grpU8.nxproof.glxmzl.service.ISenderGlXmzlService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (GlXmzl)表服务实现类 + * + * @author makejava + * @since 2024-06-20 10:02:38 + */ +@Service(value = "SenderGlXmzlServiceImpl") +public class SenderGlXmzlServiceImpl extends BaseService implements ISenderGlXmzlService { + + + + private ISenderGlXmzlDao senderGlXmzlDao; + + @Autowired + public void setSenderGlXmzlDao(ISenderGlXmzlDao dao) { + this.senderGlXmzlDao = dao; + this.dao = dao; + } + + //同步项目资料 + @Override + public Object glXmzlSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class); + List senderGlXmzlEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlXmzlEntity.getKjnd()==null){ + senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + logger.info("===========开始查询GRPU8项目资料信息============="); + /*try { + //同步南浔区人民医院001项目资料 + senderGlXmzlEntity.setGsdm("0101010101"); + logger.info("==========开始查询南浔区人民医院项目资料========"); + senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("南浔区人民医院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003项目资料 + senderGlXmzlEntity.setGsdm("0101010103"); + logger.info("==========开始查询南浔区练市人民医院项目资料========"); + senderGlXmzlEntities=senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("南浔区练市人民医院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005项目资料 + senderGlXmzlEntity.setGsdm("0101010202"); + logger.info("==========开始查询南浔区练市镇中心卫生院项目资料========"); + senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("练市镇中心卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("练市镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007项目资料 + senderGlXmzlEntity.setGsdm("0101010204"); + logger.info("==========开始查询南浔区善琏镇卫生院项目资料========"); + senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("南浔区善琏镇卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004项目资料 + senderGlXmzlEntity.setGsdm("0101010201"); + senderGlXmzlEntities = sqlSessionSlz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("双林镇中心卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009项目资料 + senderGlXmzlEntity.setGsdm("0101020201"); + senderGlXmzlEntities = sqlSessionLhz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("菱湖镇中心卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010项目资料 + senderGlXmzlEntity.setGsdm("0101020202"); + senderGlXmzlEntities = sqlSessionHfz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("和孚镇卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011项目资料 + senderGlXmzlEntity.setGsdm("0101020203"); + senderGlXmzlEntities = sqlSessionQjz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("千金镇卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012项目资料 + senderGlXmzlEntity.setGsdm("0101020204"); + senderGlXmzlEntities = sqlSessionScz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result=sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("石崇镇卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8项目资料同步失败:{}",result); + e.printStackTrace(); + }try { + //同步南浔镇中心卫生院014项目资料 + senderGlXmzlEntity.setGsdm("010202"); + senderGlXmzlEntities = sqlSessionNxz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity); + result= sendXmzlToHealthBureau(senderGlXmzlEntities); + logger.info("南浔镇中心卫生院GRPU8项目资料同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("GRPU8项目资料同步失败:{}",e.getMessage()); + throw new RuntimeException(e.getMessage()); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + private String sendXmzlToHealthBureau(List senderGlXmzlEntities){ + if (CollectionUtils.isEmpty(senderGlXmzlEntities)) { + logger.info("GRPU8没有需要同步得项目资料信息"); + return "GRPU8没有需要同步得项目资料信息"; + } else { + for (SenderGlXmzlEntity xmzlEntity : senderGlXmzlEntities) { + //xmzlEntity.setKjnd("2021"); + //根据会计年度,公司代码,项目代码查询数据是否已经同步过 + SenderGlXmzlEntity receiverGlXmzlEntity = new SenderGlXmzlEntity(); + receiverGlXmzlEntity.setKjnd(xmzlEntity.getKjnd()); + receiverGlXmzlEntity.setGsdm(xmzlEntity.getGsdm()); + receiverGlXmzlEntity.setXmdm(xmzlEntity.getXmdm()); + try { + List receiverGlXmzlEntities=queryEntityPageHealthBureau(receiverGlXmzlEntity); + //设置id为会计年度,公司代码,项目代码拼接,测试时候这样,具体看情况 + xmzlEntity.setId(xmzlEntity.getGsdm() + '-' + xmzlEntity.getKjnd() + '-' + xmzlEntity.getXmdm()); + JsonResultEntity jsonResultEntity=null; + if (CollectionUtils.isEmpty(receiverGlXmzlEntities)) { + logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步保存到卫生局GRPU8中=============",xmzlEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", xmzlEntity); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("======公司代码为:{}得GROU8项目资料信息同步保存到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8项目资料信息新增到项目资料日志中============="); + //保存发送方得日志 + xmzlEntity.setDataSourceCode(grp_data_source_code); + senderGlXmzlDao.saveSenderGlXmzlEntity(xmzlEntity); + }*/ + } else { + logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步更新到卫生局GRPU8中=============",xmzlEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", xmzlEntity); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("======公司代码:{}得GROU8项目资料信息同步更新到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8项目资料信息更新到项目资料日志中============="); + //保存发送方得日志 + xmzlEntity.setDataSourceCode(grp_data_source_code); + senderGlXmzlDao.updateSenderGlXmzlEntity(xmzlEntity); + }*/ + } + } catch (Exception e) { + logger.info("公司代码为:{}得GRPU8项目资料同步失败:{}", xmzlEntity.getGsdm(),e.getMessage()); + e.printStackTrace(); + } + } + return "同步GROU8项目资料成功"; + } + } + + //查询项目资料 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class); + List senderGlXmzlEntities=new ArrayList<>(); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderGlXmzlEntity.getKjnd()==null){ + senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderGlXmzlEntity.getGsdm())){ + logger.info("======根据公司编码:{}查询项目资料为空",senderGlXmzlEntity.getGsdm()); + return BaseResult.getFailureMessageEntity("请传递公司编码"); + } + try { + /*switch (senderGlXmzlEntity.getGsdm()){ + case "0101010103"://练市人民医院 + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101010201"://双林镇中心卫生院 + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101010202"://练市镇中心卫生院 + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101010204"://善琏镇卫生院 + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101020201": + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101020202": + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101020203": + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101020204": + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + case "0101010101"://南浔区人民医院 + senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity); + break; + default: + break; + }*/ + senderGlXmzlEntities = senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity); + PageInfo pageInfo=new PageInfo(senderGlXmzlEntities); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("pageInfo",pageInfo); + return jsonObject1; + }catch (Exception e){ + logger.info("根据公司代码:{}查询GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8项目资料失败"); + } + } + + //保存项目资料 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class); + if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) { + logger.info("保存项目资料时会计年度为空"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) { + logger.info("保存项目资料时公司代码为空"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) { + logger.info("保存项目资料时项目资料代码为空"); + return BaseResult.getFailureMessageEntity("项目资料代码为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("xmmc"))) { + logger.info("保存项目资料时项目资料名称为空"); + return BaseResult.getFailureMessageEntity("项目资料名称为空"); + } + try { + SenderGlXmzlEntity senderGlXmzlEntity=new SenderGlXmzlEntity(); + senderGlXmzlEntity.setGsdm(receiverGlXmzlEntity.getGsdm()); + senderGlXmzlEntity.setKjnd(receiverGlXmzlEntity.getKjnd()); + senderGlXmzlEntity.setXmdm(receiverGlXmzlEntity.getXmdm()); + List senderGlXmzlEntities = queryEntityPageHealthBureau(senderGlXmzlEntity); + if(CollectionUtils.isEmpty(senderGlXmzlEntities)){ + receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm()); + logger.info("=======开始根据公司代码:{}保存项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId()); + SenderGlXmzlEntity receiverGlXmzlEntitySave = senderGlXmzlDao.saveGlXmzlHealthBureau(receiverGlXmzlEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("xmzl",receiverGlXmzlEntitySave); + return jsonObject1; + }else{ + logger.info("=======开始根据公司代码:{}更新项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId()); + SenderGlXmzlEntity receiverGlXmzlEntity1 = senderGlXmzlDao.updateGlXmzlHealthBureau(receiverGlXmzlEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("xmzl",receiverGlXmzlEntity1); + return jsonObject1; + } + }catch (Exception e){ + logger.info("根据公司代码:{}保存GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8项目资料失败"); + } + } + + //更新项目资料 + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class); + if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) { + logger.info("更新项目资料时会计年度为空"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) { + logger.info("更新项目资料时公司代码为空"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) { + logger.info("更新项目资料时项目资料代码为空"); + return BaseResult.getFailureMessageEntity("项目资料代码为空"); + } + try { + receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm()); + logger.info("=======开始根据公司代码:{}更新项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId()); + SenderGlXmzlEntity receiverGlXmzlEntity1 = senderGlXmzlDao.updateGlXmzlHealthBureau(receiverGlXmzlEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("xmzl",receiverGlXmzlEntity1); + return jsonObject1; + }catch (Exception e){ + logger.info("根据公司代码:{}更新GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8项目资料失败"); + } + } + + //删除项目资料 + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class); + if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) { + logger.info("删除项目资料时会计年度为空"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) { + logger.info("删除项目资料时公司代码为空"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + try { + receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm()); + logger.info("=======开始根据公司代码:{}删除项目资料为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm()); + Integer integer = senderGlXmzlDao.deleteGlXmzlHealthBureau(receiverGlXmzlEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("xmzl",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("根据公司代码:{}删除GROU8项目资料:{}失败:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8项目资料失败"); + } + } + + //查询项目资料 + @Override + public List queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) { + try { + logger.info("====根据公司代码:{}查询卫生局中得项目资料数据====",senderGlXmzlEntity.getGsdm()); + List receiverGlXmzlEntities = senderGlXmzlDao.queryGlXmzlHealthBureau(senderGlXmzlEntity); + return receiverGlXmzlEntities; + }catch (Exception e){ + logger.info("根据公司代码:{}查询卫生局的GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage()); + e.printStackTrace(); + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/IOerAnnexDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/IOerAnnexDao.java new file mode 100644 index 00000000..cbd78980 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/IOerAnnexDao.java @@ -0,0 +1,17 @@ +package com.hzya.frame.grpU8.nxproof.oerannex.dao;/* +* @Description 附件关系表 +* @Author xiangerlin + @Date 2022-10-26 10:04 +*/ + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; + +public interface IOerAnnexDao extends IBaseDao { + Integer deleteAnnex(OerAnnexEntity delete); + + OerAnnexEntity queryMaxId(OerAnnexEntity entity); + + Integer saveData(OerAnnexEntity annexEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/impl/OerAnnexDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/impl/OerAnnexDaoImpl.java new file mode 100644 index 00000000..bb6c8eb9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/dao/impl/OerAnnexDaoImpl.java @@ -0,0 +1,40 @@ +package com.hzya.frame.grpU8.nxproof.oerannex.dao.impl;/* +* @Description 附件关系表 +* @Author xiangerlin + @Date 2022-10-26 10:05 +*/ + + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.oerannex.dao.IOerAnnexDao; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository +public class OerAnnexDaoImpl extends MybatisGenericDao implements IOerAnnexDao { + @DS("#entity.dataSourceCode") + @Override + public Integer deleteAnnex(OerAnnexEntity entity) { + Integer o = super.delete( "com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_delete", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public OerAnnexEntity queryMaxId(OerAnnexEntity entity) { + OerAnnexEntity o = super.query(entity,"com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_max_id"); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(OerAnnexEntity entity) { + Integer o = super.insert("com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_insert",entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.java new file mode 100644 index 00000000..ebbddd5a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.java @@ -0,0 +1,149 @@ +package com.hzya.frame.grpU8.nxproof.oerannex.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/* +* @Description 附件关系表 +* @Author xiangerlin + @Date 2022-10-26 8:44 +*/ +public class OerAnnexEntity extends BaseEntity { + + private String annexid; //主键id + private String mlid;//报销单id + private String gsdm;//公司代码 默认001 + private String kjnd;//会计年度 + private String bnxid;// 不知道是什么 填0 + private String xh;//序号 + private String onlyid;// AT_AttachmentFile 表的主键ATGuid + private String annexName;//附件名 + private Long annexSize;//附件大小 + private String showSize;//附件大小显示值 + private String ole;// 不知道是什么,填空 + private String fjType;//附件类型, 数据库中只有 其他、其他其他(&Z)、合同3种类型 + private String fpid;//不知道是什么 填空 + + private String maxAnnexid;//最大id + + private String aTextName;//后缀名 + + public String getAnnexid() { + return annexid; + } + + public void setAnnexid(String annexid) { + this.annexid = annexid; + } + + public String getMlid() { + return mlid; + } + + public void setMlid(String mlid) { + this.mlid = mlid; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getBnxid() { + return bnxid; + } + + public void setBnxid(String bnxid) { + this.bnxid = bnxid; + } + + public String getXh() { + return xh; + } + + public void setXh(String xh) { + this.xh = xh; + } + + public String getOnlyid() { + return onlyid; + } + + public void setOnlyid(String onlyid) { + this.onlyid = onlyid; + } + + public String getAnnexName() { + return annexName; + } + + public void setAnnexName(String annexName) { + this.annexName = annexName; + } + + public Long getAnnexSize() { + return annexSize; + } + + public void setAnnexSize(Long annexSize) { + this.annexSize = annexSize; + } + + public String getShowSize() { + return showSize; + } + + public void setShowSize(String showSize) { + this.showSize = showSize; + } + + public String getOle() { + return ole; + } + + public void setOle(String ole) { + this.ole = ole; + } + + public String getFjType() { + return fjType; + } + + public void setFjType(String fjType) { + this.fjType = fjType; + } + + public String getFpid() { + return fpid; + } + + public void setFpid(String fpid) { + this.fpid = fpid; + } + + public String getMaxAnnexid() { + return maxAnnexid; + } + + public void setMaxAnnexid(String maxAnnexid) { + this.maxAnnexid = maxAnnexid; + } + + public String getaTextName() { + return aTextName; + } + + public void setaTextName(String aTextName) { + this.aTextName = aTextName; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.xml new file mode 100644 index 00000000..d9bd9cdd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/entity/OerAnnexEntity.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + AnnexID, + MLID, + GSDM, + KJND, + BNXID, + XH, + OnlyID, + AnnexName, + AnnexSize, + ShowSize, + OLE, + FJType, + FPID + + + + + + + + + + + + + + + + insert into OER_ANNEX( + + AnnexID, + MLID, + gsdm, + kjnd , + xh, + onlyid, + annexName, + annexSize, + showSize, + fjType, + bnxid, + ole, + fpid + + )values + ( + + #{annexid}, + #{mlid}, + #{gsdm}, + #{kjnd} , + #{xh}, + #{onlyid}, + #{annexName}, + #{annexSize}, + #{showSize}, + #{fjType}, + 0, + null, + '' + + ) + + + + delete from OER_ANNEX where mlid = #{mlid} and kjnd = #{kjnd} and gsdm = #{gsdm} + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/IOerAnnexService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/IOerAnnexService.java new file mode 100644 index 00000000..4f1ffaa9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/IOerAnnexService.java @@ -0,0 +1,51 @@ +package com.hzya.frame.grpU8.nxproof.oerannex.service; +/* +* @Description 附件关系表 +* @Author xiangerlin + @Date 2022-10-26 10:06 +*/ + + +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; + +import java.util.List; + +public interface IOerAnnexService { + + /** + * 查询附件关系 + * @param entity + * @return + * @throws Exception + */ + List queryAnnex(OerAnnexEntity entity)throws Exception; + /** + * 查询最大id + * @param entity + * @return + * @throws Exception + */ + String queryMaxId(OerAnnexEntity entity)throws Exception; + + /** + * 保存附件关系 + * @param entity + * @throws Exception + */ + void saveAnnex(OerAnnexEntity entity)throws Exception; + + /** + * 删除附件关系 + * @param entity + * @throws Exception + */ + void deleteAnnex(OerAnnexEntity entity)throws Exception; + + /** + * 查询附件关系,联查附件对象表 + * @param mlid + * @return + * @throws Exception + */ + List queryAnnexAndFile(String mlid)throws Exception; +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/impl/OerAnnexServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/impl/OerAnnexServiceImpl.java new file mode 100644 index 00000000..5691cc0e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerannex/service/impl/OerAnnexServiceImpl.java @@ -0,0 +1,132 @@ +package com.hzya.frame.grpU8.nxproof.oerannex.service.impl;/* +* @Description 附件关系表 +* @Author xiangerlin + @Date 2022-10-26 10:07 +*/ + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.oerannex.dao.IOerAnnexDao; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; +import com.hzya.frame.grpU8.nxproof.oerannex.service.IOerAnnexService; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.commons.collections.CollectionUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +@Service +public class OerAnnexServiceImpl extends BaseService implements IOerAnnexService { + + Logger logger = LogManager.getLogger(getClass()); + + protected IOerAnnexDao oerAnnexDao; + + @Autowired + public void setBillLogDao(IOerAnnexDao dao) { + this.oerAnnexDao = dao; + this.dao=dao; + } + + /** + * 查询附件关系 + * + * @param entity + * @return + * @throws Exception + */ + @Override + public List queryAnnex(OerAnnexEntity entity) throws Exception { + List annexList = oerAnnexDao.query(entity); + return annexList; + } + + /** + * 删除附件关系 + * + * @param entity + * @throws Exception + */ + @Override + public void deleteAnnex(OerAnnexEntity entity){ + if (null != entity && StrUtil.isNotEmpty(entity.getMlid()) && StrUtil.isNotEmpty(entity.getKjnd())){ + oerAnnexDao.delete("OerAnnexEntity_delete",entity); + } + } + + /** + * 查询最大id + * @param entity + * @return + * @throws Exception + */ + @Override + public String queryMaxId(OerAnnexEntity entity) throws Exception { + if (null == entity){ + entity = new OerAnnexEntity(); + } + if (StrUtil.isEmpty(entity.getKjnd())){ + entity.setKjnd(String.valueOf(DateUtil.year(new Date()))); + } + OerAnnexEntity max = oerAnnexDao.query(entity,"OerAnnexEntity_max_id"); + if (null != max){ + Long max_value = Long.valueOf(max.getMaxAnnexid()); + return String.valueOf(max_value+1); + } + return null; + } + + /** + * 保存附件关系 + * @param entity + * @throws Exception + */ + @Override + public void saveAnnex(OerAnnexEntity entity) throws Exception { + if (null == entity){ + throw new BaseSystemException("参数不能为空"); + } + //entity.setAcc_name(Constant.CONFIGMAP.get("file_acc_name")); + entity.setAnnexid(queryMaxId(entity)); + if (null != entity.getAnnexSize()){ + int fileSize = entity.getAnnexSize().intValue(); + String showSize = ""; + if (fileSize < 1000) { + showSize = fileSize + "b"; + } else if (1000 < fileSize && fileSize < 1000000) { + showSize = (fileSize / 1000) + " KB"; + } else { + showSize = (fileSize / 1000000) + " MB"; + } + entity.setShowSize(showSize); + } + /* if (!entity.getAnnexName().contains("合同")) { + entity.setFjType("其它"); + }else { + entity.setFjType("合同"); + }*/ + entity.setFjType("其它"); + oerAnnexDao.save(entity); + } + + /** + * 查询附件关系,联查附件对象表 + * + * @param mlid + * @return + * @throws Exception + */ + @Override + public List queryAnnexAndFile(String mlid) throws Exception { + OerAnnexEntity entity = new OerAnnexEntity(); + entity.setMlid(mlid); + List oerAnnexList = oerAnnexDao.queryList(entity, "OerAnnexEntity_list_base_join_attachment"); + return oerAnnexList; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/IOerDjjsfsDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/IOerDjjsfsDao.java new file mode 100644 index 00000000..787cab3a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/IOerDjjsfsDao.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:52 + */ +public interface IOerDjjsfsDao extends IBaseDao { + Integer deleteData(OerDjjsfsEntity oerDjjsfsEntity); + + Integer saveData(OerDjjsfsEntity oerdjjsfs); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/impl/OerDjjsfsDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/impl/OerDjjsfsDaoImpl.java new file mode 100644 index 00000000..41fdb08c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/dao/impl/OerDjjsfsDaoImpl.java @@ -0,0 +1,31 @@ +package com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.IOerDjjsfsDao; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:53 + */ +@Repository(value = "oerDjjsfsDao") +public class OerDjjsfsDaoImpl extends MybatisGenericDao implements IOerDjjsfsDao { + @DS("#entity.dataSourceCode") + @Override + public Integer deleteData(OerDjjsfsEntity entity) { + Integer o = super.delete(getSqlIdPrifx() + "OerDjjsfsEntity_delete_delMlid", entity); + return o; + } + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(OerDjjsfsEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "OerDjjsfsEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.java new file mode 100644 index 00000000..2a030f82 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.java @@ -0,0 +1,240 @@ +package com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description:费用报销结算方式栏 + * @params: + * @return: + * @Date: 2023/6/16 22:07 + */ + +public class OerDjjsfsEntity extends BaseEntity { + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String djlxId; + private String mlId; + private String bnxid; + private String xh;//序号 + private String jsfsdm;//结算方式编码 + private String jsfsmc;//结算方式名称 + private String kmdm;//科目代码 + private String kmmc;//科目名称 + private String skr;//收款人 + private String khyh;//开户银行 + private String yhzh;//银行账号 + private String gwkh;//公务卡号 + private String gwkxfsj; + private String zph;//支票号 + private String je;//金额 + private String province;//省份 + private String city;//城市 + private String yh;//银行机构 + private String yhhh;//银行行号 + private String rytype;//人员类型 + private String grdm; + private String yt;//用途 + private String skrbz; + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getDjlxId() { + return djlxId; + } + + public void setDjlxId(String djlxId) { + this.djlxId = djlxId; + } + + public String getMlId() { + return mlId; + } + + public void setMlId(String mlId) { + this.mlId = mlId; + } + + public String getXh() { + return xh; + } + + public void setXh(String xh) { + this.xh = xh; + } + + public String getJsfsdm() { + return jsfsdm; + } + + public void setJsfsdm(String jsfsdm) { + this.jsfsdm = jsfsdm; + } + + public String getJsfsmc() { + return jsfsmc; + } + + public void setJsfsmc(String jsfsmc) { + this.jsfsmc = jsfsmc; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getSkr() { + return skr; + } + + public void setSkr(String skr) { + this.skr = skr; + } + + public String getKhyh() { + return khyh; + } + + public void setKhyh(String khyh) { + this.khyh = khyh; + } + + public String getYhzh() { + return yhzh; + } + + public void setYhzh(String yhzh) { + this.yhzh = yhzh; + } + + public String getGwkh() { + return gwkh; + } + + public void setGwkh(String gwkh) { + this.gwkh = gwkh; + } + + public String getGwkxfsj() { + return gwkxfsj; + } + + public void setGwkxfsj(String gwkxfsj) { + this.gwkxfsj = gwkxfsj; + } + + public String getZph() { + return zph; + } + + public void setZph(String zph) { + this.zph = zph; + } + + public String getJe() { + return je; + } + + public void setJe(String je) { + this.je = je; + } + + public String getProvince() { + return province; + } + + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public String getYh() { + return yh; + } + + public void setYh(String yh) { + this.yh = yh; + } + + public String getYhhh() { + return yhhh; + } + + public void setYhhh(String yhhh) { + this.yhhh = yhhh; + } + + public String getRytype() { + return rytype; + } + + public void setRytype(String rytype) { + this.rytype = rytype; + } + + public String getGrdm() { + return grdm; + } + + public void setGrdm(String grdm) { + this.grdm = grdm; + } + + public String getYt() { + return yt; + } + + public void setYt(String yt) { + this.yt = yt; + } + + public String getSkrbz() { + return skrbz; + } + + public void setSkrbz(String skrbz) { + this.skrbz = skrbz; + } + + public String getBnxid() { + return bnxid; + } + + public void setBnxid(String bnxid) { + this.bnxid = bnxid; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.xml new file mode 100644 index 00000000..1373b9b4 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/entity/OerDjjsfsEntity.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GSDM,KJND + + + + insert into OER_DJJSFS( + KJND, + DJLXID, + MLID, + XH, + JSFSDM, + JSFSMC, + KMDM, + KMMC, + SKR, + KHYH, + YHZH, + GWKH, + GWKXFSJ, + ZPH, + JE, + PROVINCE, + CITY, + YH, + YHHH, + RYType, + GRDM, + yt, + SKRBZ, + GSDM + ) + values ( + #{kjnd}, + #{djlxId}, + #{mlId}, + #{xh}, + #{jsfsdm}, + #{jsfsmc}, + #{kmdm}, + #{kmmc}, + #{skr}, + #{khyh}, + #{yhzh}, + #{gwkh}, + #{gwkxfsj}, + #{zph}, + #{je}, + #{province}, + #{city}, + #{yh}, + #{yhhh}, + #{rytype}, + #{grdm}, + #{yt}, + #{skrbz}, + #{gsdm} + ) + + + + update oer_djjsfs set skrbz = '1' + where gsdm = #{gsdm} and kjnd <> '-1' + AND EXISTS ( + SELECT + 1 + FROM + oer_djjsfs a + WHERE + gsdm = #{gsdm} + AND kjnd = '-1' + AND oer_djjsfs.skr = a.skr + AND oer_djjsfs.khyh = a.KHYH + AND oer_djjsfs.yhzh = a.yhzh + ) + + + + update Pub_fp set zt = '1',BXDID = #{mlId} + WHERE + FPID IN ( + SELECT + FPID + FROM + oer_annex + WHERE + gsdm = #{gsdm} + AND kjnd = #{kjnd} + AND MLID = ${mlId} + AND FJType = '电子发票' + ); + + + + + delete FROM oer_djjsfs where GSDM =#{gsdm} and KJND=#{kjnd} and MLID=${mlId} and DJLXID=${djlxId} + + + + + DELETE FROM oer_djjsfs WHERE GSDM = #{gsdm} AND KJND = #{kjnd} AND DJLXID = #{djlxId} AND MLID = #{mlId} + + + + DELETE FROM oer_djjsfs WHERE GSDM = #{gsdm} AND MLID = #{mlId} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/IOerDjjsfsService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/IOerDjjsfsService.java new file mode 100644 index 00000000..91db7d7b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/IOerDjjsfsService.java @@ -0,0 +1,11 @@ +package com.hzya.frame.grpU8.nxproof.oerdjjsfs.service; + +/** + * @Author:hecan + * @Description:费用报销结算方式栏 + * @params: + * @return: + * @Date: 2023/6/19 14:27 + */ +public interface IOerDjjsfsService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/impl/OerDjjsfsServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/impl/OerDjjsfsServiceImpl.java new file mode 100644 index 00000000..920a9cfd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjjsfs/service/impl/OerDjjsfsServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.oerdjjsfs.service.impl; + +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.service.IOerDjjsfsService; +import org.springframework.stereotype.Service; + +/** + * @Author:hecan + * @Description:费用报销结算方式栏 + * @params: + * @return: + * @Date: 2023/6/19 14:30 + */ +@Service(value = "oerDjjsfsService") +public class OerDjjsfsServiceImpl implements IOerDjjsfsService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/controller/OerDjmlController.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/controller/OerDjmlController.java new file mode 100644 index 00000000..a7181e2f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/controller/OerDjmlController.java @@ -0,0 +1,122 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.controller; + + +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlService; +import com.hzya.frame.web.action.DefaultController; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +/** + * @Author:hecan + * @Description:费用报销报销明细总 + * @params: + * @return: + * @Date: 2023/6/19 15:52 + */ +@RequestMapping("/grp/api") +@Controller +public class OerDjmlController extends DefaultController { + @Autowired + private IOerDjmlService iOerDjmlService; + + /*** + * @Content:费用报销单发起保存 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 11:23 + * @Param [jsonObject] + * @return java.lang.String + **/ + /*@ResponseBody + //@RequestMapping("/saveExpenseDocuments") + public JsonResultEntity saveExpenseDocuments(@RequestBody JSONObject jsonObject){ + try { + String result = null;//iOerDjmlService.saveExpenseDocuments(jsonObject); + return getSuccessMessageEntity("报销单保存成功","报销单保存","报销单单据编号为:"+result); + }catch (Exception e){ + *//* String message=""; + if(e instanceof BaseSystemException){ + message=e.getMessage(); + }*//* + return getFailureMessageEntity("报销单保存失败,错误原因为:"+e.getMessage(),"报销单保存"); + } + + }*/ + + @ResponseBody + @RequestMapping("/queryOerDjmlEntity") + public JsonResultEntity test(@RequestBody OerDjmlEntity oerDjmlEntity) throws Exception{ + OerDjmlEntity oerDjmlEntity1 = iOerDjmlService.queryOerDjmlEntity(oerDjmlEntity); + logger.info("查询出来的Rpt_Rt_content只为:{}",oerDjmlEntity1.getRptRtContent()); + String str=new String(oerDjmlEntity1.getRptRtContent(),"ISO-8859-1"); + /*try { + + // 将byte[]转换成InputStream + ByteArrayInputStream bais = new ByteArrayInputStream(oerDjmlEntity1.getRptRtContent()); + + // 创建ZipInputStream + ZipInputStream zis = new ZipInputStream(bais); + + // 获取第一个条目 + ZipEntry entry = zis.getNextEntry(); + + if (entry != null) { + // 创建一个新的ByteArrayOutputStream来存储解压缩后的数据 + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + byte[] buffer = new byte[1024]; + int len; + + // 读取解压缩的数据并写入ByteArrayOutputStream + while ((len = zis.read(buffer)) > 0) { + baos.write(buffer, 0, len); + } + + // 关闭资源 + zis.closeEntry(); + zis.close(); + bais.close(); + + // 将解压缩后的数据转换成字符串 + String decompressedString = new String(baos.toByteArray(), "UTF-8"); + + System.out.println("Decompressed String: " + decompressedString); + } else { + System.out.println("No entries found in the ZIP data."); + } + } catch (IOException e) { + e.printStackTrace(); + }*/ + + /* String outputImagePath = "C:\\Users\\笃曙\\Desktop\\项目相关\\南浔卫生局\\image.png"; // 输出图片路径 + + try (FileOutputStream fos = new FileOutputStream(outputImagePath)) { + fos.write(oerDjmlEntity1.getRptRtContent()); + logger.info("图片路径:{}",outputImagePath); + } catch (IOException e) { + e.printStackTrace(); + }*/ + + + + /* byte[] data = oerDjmlEntity1.getRptRtContent(); + File file = new File("C:\\Users\\笃曙\\Desktop\\项目相关\\南浔卫生局\\IMG_20181213_154235.png"); // 要写入的文件 + try (FileOutputStream fos = new FileOutputStream(file)) { + fos.write(data); // 将字节数组写入文件 + } catch (IOException e) { + e.printStackTrace(); + } + System.out.println("File saved successfully.");*/ + + + logger.info("转换之后的值:{}",str); + + return getFailureMessageEntity("成功",str); + } + + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/IOerDjmlDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/IOerDjmlDao.java new file mode 100644 index 00000000..37904ec8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/IOerDjmlDao.java @@ -0,0 +1,53 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.GbiZbsyrecAllEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; + +import java.util.List; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:54 + */ +public interface IOerDjmlDao extends IBaseDao { + + + /*** + * 根据公司代码获取单据最大号 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 15:17 + * @param oerDjmlEntity + * @return java.lang.String + **/ + String getMaxDjbgByGsdm(OerDjmlEntity oerDjmlEntity); + + /**** + * 根据公司代码获取最大MLID + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 15:24 + * @Param [gsdm] + * @return java.lang.String + **/ + String getMaxMlIdByGsdm(OerDjmlEntity oerDjmlEntity); + + //获取最大单据编号,指标被占用时候 + String getMaxDjbgByGsdmZy(OerDjmlEntity oerDjmlEntity); + + OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity); + + List queryOerDjml(OerDjmlEntity oerDjmlAllEntity); + + Integer updateOerDjmlZt(OerDjmlEntity oerDjmlAllEntity); + Integer updateOerDjml(OerDjmlEntity oerDjmlAllEntity); + + Integer updateGbiZbsyrecByDjid(GbiZbsyrecAllEntity gbiZbsyrecAllEntity); + + Integer updateData(OerDjmlEntity oerdjml); + + Integer saveData(OerDjmlEntity oerdjml); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/impl/OerDjmlDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/impl/OerDjmlDaoImpl.java new file mode 100644 index 00000000..6c6f81bc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dao/impl/OerDjmlDaoImpl.java @@ -0,0 +1,101 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.GbiZbsyrecAllEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:55 + */ +@Repository(value = "oerDjmlDao") +public class OerDjmlDaoImpl extends MybatisGenericDao implements IOerDjmlDao { + @DS("#oerDjmlEntity.dataSourceCode") + @Override + public String getMaxDjbgByGsdm(OerDjmlEntity oerDjmlEntity) { + oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_djbhMax",oerDjmlEntity); + if(null == oerDjmlEntity){ + throw new RuntimeException("查询最大单据号错误!请联系管理员"); + }else{ + return oerDjmlEntity.getDjbh(); + } + } + @DS("#oerDjmlEntity.dataSourceCode") + @Override + public String getMaxMlIdByGsdm(OerDjmlEntity oerDjmlEntity) { + oerDjmlEntity= (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_mlidMax",oerDjmlEntity); + if(null == oerDjmlEntity){ + throw new RuntimeException("查询最大MlId错误!请联系管理员"); + }else{ + return oerDjmlEntity.getMlId(); + } + } + + @Override + public String getMaxDjbgByGsdmZy(OerDjmlEntity oerDjmlEntity) { + oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_djbhMax_zy",oerDjmlEntity); + if(null == oerDjmlEntity){ + throw new RuntimeException("指标占用查询最大单据号错误!请联系管理员"); + }else{ + return oerDjmlEntity.getDjbh(); + } + } + + @Override + public OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity) { + oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_Rpt_Rt_content",oerDjmlEntity); + if(null == oerDjmlEntity){ + throw new RuntimeException("查询失败"); + }else{ + return oerDjmlEntity; + } + } + @DS("#entity.dataSourceCode") + @Override + public List queryOerDjml(OerDjmlEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryOerDjml", entity); + return o; + } + @DS("#entity.dataSourceCode") + @Override + public Integer updateOerDjmlZt(OerDjmlEntity entity) { + Integer o = super.update(getSqlIdPrifx() + "updateOerDjmlZt", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer updateOerDjml(OerDjmlEntity entity) { + Integer o = super.update(getSqlIdPrifx() + "updateOerDjml", entity); + return o; + } + @DS("#entity.dataSourceCode") + @Override + public Integer updateGbiZbsyrecByDjid(GbiZbsyrecAllEntity entity) { + Integer o = super.update(getSqlIdPrifx() + "updateGbiZbsyrecByDjid", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer updateData(OerDjmlEntity entity) { + Integer o = super.update(getSqlIdPrifx() + "OerDjmlEntity_update_data", entity); + return o; + } + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(OerDjmlEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "OerDjmlEntity_insert", entity); + return o; + } + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dto/FileInfoDTO.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dto/FileInfoDTO.java new file mode 100644 index 00000000..9604dd9d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/dto/FileInfoDTO.java @@ -0,0 +1,36 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.dto; + +/** + * @Description 附件对象 + * @Author xiangerlin + * @Date 2024/8/16 10:28 + **/ +public class FileInfoDTO { + private byte[] data;//附件压缩成zip后的数据 + private String file_name;//附件名字 + private String file_size;//附件大小 + + public byte[] getData() { + return data; + } + + public void setData(byte[] data) { + this.data = data; + } + + public String getFile_name() { + return file_name; + } + + public void setFile_name(String file_name) { + this.file_name = file_name; + } + + public String getFile_size() { + return file_size; + } + + public void setFile_size(String file_size) { + this.file_size = file_size; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/GbiZbsyrecAllEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/GbiZbsyrecAllEntity.java new file mode 100644 index 00000000..ee3798c6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/GbiZbsyrecAllEntity.java @@ -0,0 +1,189 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.math.BigDecimal; + +/** + * (GbiZbsyrec)实体类 + * + * @author makejava + * @since 2024-08-14 10:17:39 + */ +public class GbiZbsyrecAllEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String module; + private String djlx; + private String djid; + private Integer djflh; + private Integer djflmx; + private String djywrq; + private String djzt; + private Integer jhid; + private BigDecimal djje; + private String djzy; + private String szfx; + private String zblb; + private String czlx; + private String jdbz; + private String zzbz; + private BigDecimal sl; + private String ywdjid; + + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getModule() { + return module; + } + + public void setModule(String module) { + this.module = module; + } + + public String getDjlx() { + return djlx; + } + + public void setDjlx(String djlx) { + this.djlx = djlx; + } + + public String getDjid() { + return djid; + } + + public void setDjid(String djid) { + this.djid = djid; + } + + public Integer getDjflh() { + return djflh; + } + + public void setDjflh(Integer djflh) { + this.djflh = djflh; + } + + public Integer getDjflmx() { + return djflmx; + } + + public void setDjflmx(Integer djflmx) { + this.djflmx = djflmx; + } + + public String getDjywrq() { + return djywrq; + } + + public void setDjywrq(String djywrq) { + this.djywrq = djywrq; + } + + public String getDjzt() { + return djzt; + } + + public void setDjzt(String djzt) { + this.djzt = djzt; + } + + public Integer getJhid() { + return jhid; + } + + public void setJhid(Integer jhid) { + this.jhid = jhid; + } + + public BigDecimal getDjje() { + return djje; + } + + public void setDjje(BigDecimal djje) { + this.djje = djje; + } + + public String getDjzy() { + return djzy; + } + + public void setDjzy(String djzy) { + this.djzy = djzy; + } + + public String getSzfx() { + return szfx; + } + + public void setSzfx(String szfx) { + this.szfx = szfx; + } + + public String getZblb() { + return zblb; + } + + public void setZblb(String zblb) { + this.zblb = zblb; + } + + public String getCzlx() { + return czlx; + } + + public void setCzlx(String czlx) { + this.czlx = czlx; + } + + public String getJdbz() { + return jdbz; + } + + public void setJdbz(String jdbz) { + this.jdbz = jdbz; + } + + public String getZzbz() { + return zzbz; + } + + public void setZzbz(String zzbz) { + this.zzbz = zzbz; + } + + public BigDecimal getSl() { + return sl; + } + + public void setSl(BigDecimal sl) { + this.sl = sl; + } + + public String getYwdjid() { + return ywdjid; + } + + public void setYwdjid(String ywdjid) { + this.ywdjid = ywdjid; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.java new file mode 100644 index 00000000..bfd53363 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.java @@ -0,0 +1,510 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO; +import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +import java.util.List; + +/** + * @Author:hecan + * @Description:费用报销报销明细总 + * @params: + * @return: + * @Date: 2023/6/16 21:49 + */ +public class OerDjmlEntity extends BaseEntity { + //流程类别 1、流程发起 2、流程撤销 3、流程终止 4、流程结束 + private String lclb; + + private String mlId; + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String djlxId; + private String zt; + private String crerdm;//制单人代码 + private String crermc;//制单人名称 + private String crerdate;//日期 + private String flowcode; + private String curshjd; + private String nextshjd; + private String shrs; + private String shrId; + private String shrq; + private String jsfs; + private String djbh;//单据号 + private String djdate;//单据日期 + private String fjs;//附件数 + private String bmdm;//部门代码 + private String bmmc;//部门名称 + private String grdm;//报销人代码 + private String grmc;//报销人名称 + private String tel;//联系电话 + private String yjje;//预借金额 + private String thje;//退还金额 + private String blje;//补领金额 + private String je;//报销金额 + private String whje; + private String jedx;//金额大写 + private String zy;//摘要 + + private String pzh;//凭证号 + private String fph;//发票号 + + private byte[] RptRtContent; + //项目代码 + private String xmdm; + //项目名称 + private String xmmc; + //经济代码 + private String jjdm; + //经济名称 + private String jjmc; + private String yhzh;//银行账户 + private String khyh;//开户银行 + //差旅费出差人 + private String clf_ccr; + //出差类别 + private String clf_cclb; + //送审日期 + private String ssrq; + //送审人id + private String ssrid; + //送审人 + private String ssr; + //经费类型代码 + private String jflxdm; + //经费类型名称 + private String jflxmc; + //附件对象 + @JSONField(ordinal = 9995) + private List fileInfoList; + @JSONField(ordinal = 9996) + private List oerDjnrEntityList; + @JSONField(ordinal = 9997) + private List oerYszbEntityList; + @JSONField(ordinal = 9998) + private List oerDjjsfsEntityList; + @JSONField(ordinal = 9999) + private List gbiZbsyrecEntitylist; + + public String getMlId() { + return mlId; + } + + public void setMlId(String mlId) { + this.mlId = mlId; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getDjlxId() { + return djlxId; + } + + public void setDjlxId(String djlxId) { + this.djlxId = djlxId; + } + + public String getZt() { + return zt; + } + + public void setZt(String zt) { + this.zt = zt; + } + + public String getCrerdm() { + return crerdm; + } + + public void setCrerdm(String crerdm) { + this.crerdm = crerdm; + } + + public String getCrermc() { + return crermc; + } + + public void setCrermc(String crermc) { + this.crermc = crermc; + } + + public String getCrerdate() { + return crerdate; + } + + public void setCrerdate(String crerdate) { + this.crerdate = crerdate; + } + + public String getFlowcode() { + return flowcode; + } + + public void setFlowcode(String flowcode) { + this.flowcode = flowcode; + } + + public String getCurshjd() { + return curshjd; + } + + public void setCurshjd(String curshjd) { + this.curshjd = curshjd; + } + + public String getNextshjd() { + return nextshjd; + } + + public void setNextshjd(String nextshjd) { + this.nextshjd = nextshjd; + } + + public String getShrs() { + return shrs; + } + + public void setShrs(String shrs) { + this.shrs = shrs; + } + + public String getShrId() { + return shrId; + } + + public void setShrId(String shrId) { + this.shrId = shrId; + } + + public String getShrq() { + return shrq; + } + + public void setShrq(String shrq) { + this.shrq = shrq; + } + + public String getJsfs() { + return jsfs; + } + + public void setJsfs(String jsfs) { + this.jsfs = jsfs; + } + + public String getDjbh() { + return djbh; + } + + public void setDjbh(String djbh) { + this.djbh = djbh; + } + + public String getDjdate() { + return djdate; + } + + public void setDjdate(String djdate) { + this.djdate = djdate; + } + + public String getFjs() { + return fjs; + } + + public void setFjs(String fjs) { + this.fjs = fjs; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBmmc() { + return bmmc; + } + + public void setBmmc(String bmmc) { + this.bmmc = bmmc; + } + + public String getGrdm() { + return grdm; + } + + public void setGrdm(String grdm) { + this.grdm = grdm; + } + + public String getGrmc() { + return grmc; + } + + public void setGrmc(String grmc) { + this.grmc = grmc; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getYjje() { + return yjje; + } + + public void setYjje(String yjje) { + this.yjje = yjje; + } + + public String getThje() { + return thje; + } + + public void setThje(String thje) { + this.thje = thje; + } + + public String getBlje() { + return blje; + } + + public void setBlje(String blje) { + this.blje = blje; + } + + public String getJe() { + return je; + } + + public void setJe(String je) { + this.je = je; + } + + public String getWhje() { + return whje; + } + + public void setWhje(String whje) { + this.whje = whje; + } + + public String getJedx() { + return jedx; + } + + public void setJedx(String jedx) { + this.jedx = jedx; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getPzh() { + return pzh; + } + + public void setPzh(String pzh) { + this.pzh = pzh; + } + + public String getFph() { + return fph; + } + + public void setFph(String fph) { + this.fph = fph; + } + + public byte[] getRptRtContent() { + return RptRtContent; + } + + public void setRptRtContent(byte[] rptRtContent) { + RptRtContent = rptRtContent; + } + + public String getLclb() { + return lclb; + } + + public void setLclb(String lclb) { + this.lclb = lclb; + } + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getXmmc() { + return xmmc; + } + + public void setXmmc(String xmmc) { + this.xmmc = xmmc; + } + + public String getJjdm() { + return jjdm; + } + + public void setJjdm(String jjdm) { + this.jjdm = jjdm; + } + + public String getJjmc() { + return jjmc; + } + + public void setJjmc(String jjmc) { + this.jjmc = jjmc; + } + + public String getYhzh() { + return yhzh; + } + + public void setYhzh(String yhzh) { + this.yhzh = yhzh; + } + + public String getKhyh() { + return khyh; + } + + public void setKhyh(String khyh) { + this.khyh = khyh; + } + + public String getClf_ccr() { + return clf_ccr; + } + + public void setClf_ccr(String clf_ccr) { + this.clf_ccr = clf_ccr; + } + + public String getSsrq() { + return ssrq; + } + + public void setSsrq(String ssrq) { + this.ssrq = ssrq; + } + + public String getSsrid() { + return ssrid; + } + + public void setSsrid(String ssrid) { + this.ssrid = ssrid; + } + + public String getSsr() { + return ssr; + } + + public void setSsr(String ssr) { + this.ssr = ssr; + } + + public List getOerDjjsfsEntityList() { + return oerDjjsfsEntityList; + } + + public void setOerDjjsfsEntityList(List oerDjjsfsEntityList) { + this.oerDjjsfsEntityList = oerDjjsfsEntityList; + } + + public List getGbiZbsyrecEntitylist() { + return gbiZbsyrecEntitylist; + } + + public void setGbiZbsyrecEntitylist(List gbiZbsyrecEntitylist) { + this.gbiZbsyrecEntitylist = gbiZbsyrecEntitylist; + } + + public List getOerDjnrEntityList() { + return oerDjnrEntityList; + } + + public void setOerDjnrEntityList(List oerDjnrEntityList) { + this.oerDjnrEntityList = oerDjnrEntityList; + } + + public List getOerYszbEntityList() { + return oerYszbEntityList; + } + + public void setOerYszbEntityList(List oerYszbEntityList) { + this.oerYszbEntityList = oerYszbEntityList; + } + + public List getFileInfoList() { + return fileInfoList; + } + + public void setFileInfoList(List fileInfoList) { + this.fileInfoList = fileInfoList; + } + + public String getClf_cclb() { + return clf_cclb; + } + + public void setClf_cclb(String clf_cclb) { + this.clf_cclb = clf_cclb; + } + + public String getJflxdm() { + return jflxdm; + } + + public void setJflxdm(String jflxdm) { + this.jflxdm = jflxdm; + } + + public String getJflxmc() { + return jflxmc; + } + + public void setJflxmc(String jflxmc) { + this.jflxmc = jflxmc; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.xml new file mode 100644 index 00000000..8330f9e8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjmlEntity.xml @@ -0,0 +1,549 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GSDM,KJND,mlId + + + + + + + + + + + + + + + + + insert into OER_DJML( + + + GSDM, + KJND, + DJLXID, + MLID, + ZT, + CRerDM, + CRerMC, + CRerDate, + FlowCode, + CurSHJD, + NextSHJD, + SHR, + SHRID, + SHRQ, + JSFS, + DJBH, + DJDate, + FJS, + BMDM, + BMMC, + GRDM, + GRMC, + TEL, + YJJE, + THJE, + BLJE, + JE, + WHJE, + JEDX, + ZY, + clf_ccr, + clf_cclb, + jjdm, + jjmc, + khyh, + yhzh, + ssr, + ssrid, + ssrq, + jflxdm, + jflxmc, + xmdm, + xmmc, + + ) + values ( + + #{gsdm}, + #{kjnd}, + ${djlxId}, + ${mlId}, + #{zt}, + #{crerdm}, + #{crermc}, + #{crerdate}, + #{flowcode}, + ${curshjd}, + ${nextshjd}, + #{shrs}, + #{shrId}, + #{shrq}, + #{jsfs}, + #{djbh}, + #{djdate}, + ${fjs}, + #{bmdm}, + #{bmmc}, + #{grdm}, + #{grmc}, + #{tel}, + #{yjje}, + #{thje}, + #{blje}, + #{je}, + #{whje}, + #{jedx}, + #{zy}, + #{clf_ccr}, + #{clf_cclb}, + #{jjdm}, + #{jjmc}, + #{khyh}, + #{yhzh}, + #{ssr}, + #{ssrid}, + #{ssrq}, + #{jflxdm}, + #{jflxmc}, + #{xmdm}, + #{xmmc}, + + ) + + + + update oer_djml set zy= #{zy} + where GSDM = #{gsdm} and KJND=#{kjnd} and DJLXID=${djlxId} and MLID=${mlId} + + + + + update oer_djml set + + GSDM = #{gsdm}, + KJND = #{kjnd}, + DJLXID = #{djlxId}, + MLID = #{mlId}, + ZT = #{zt}, + CRerDM = #{crerdm}, + CRerMC = #{crermc}, + CRerDate = #{crerdate}, + FlowCode = #{flowcode}, + CurSHJD = #{curshjd}, + NextSHJD = #{nextshjd}, + SHR = #{shrs}, + SHRID = #{shrId}, + SHRQ = #{shrq}, + JSFS = #{jsfs}, + DJBH = #{djbh}, + DJDate = #{djdate}, + FJS = #{fjs}, + BMDM = #{bmdm}, + BMMC = #{bmmc}, + GRDM = #{grdm}, + GRMC = #{grmc}, + TEL = #{tel}, + YJJE = #{yjje}, + THJE = #{thje}, + BLJE = #{blje}, + JE = #{je}, + WHJE = #{whje}, + JEDX = #{jedx}, + ZY = #{zy}, + clf_ccr = #{clf_ccr}, + clf_cclb = #{clf_cclb}, + jjdm = #{jjdm}, + jjmc = #{jjmc}, + khyh = #{khyh}, + yhzh = #{yhzh}, + ssr = #{ssr}, + ssrid = #{ssrid}, + xmdm = #{xmdm}, + xmmc = #{xmmc}, + + where DJBH = #{djbh} and MLID=${mlId} + + + + + + DELETE + FROM + oer_djml + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND DJLXID = #{djlxId} + AND MLID = #{mlId} + + + + + UPDATE OER_DJML + SET ZT = #{zt}, + FlowCode = #{flowcode}, + CurSHJD =#{curshjd}, + NextSHJD = #{nextshjd}, + SHRID =#{shrId}, + SHR = #{shrs}, + SHRQ = #{shrq} + WHERE + gsdm = #{gsdm} + AND kjnd = #{kjnd} + AND djlxid = #{djlxId} + AND mlid = #{mlId} + + + + + + + + + update OER_DJML set + + GSDM = #{gsdm}, + KJND = #{kjnd}, + DJLXID = #{djlxId}, + DQRQ = #{dqrq}, + ZT = #{zt}, + CRERDM = #{crerdm}, + CRERMC = #{crermc}, + CRERDATE = #{crerdate}, + FKDH = #{fkdh}, + FKRID = #{fkrid}, + FKR = #{fkr}, + FKRQ = #{fkrq}, + IDPZH = #{idpzh}, + PZRID = #{pzrid}, + PZR = #{pzr}, + PZRQ = #{pzrq}, + DJBH = #{djbh}, + DJDATE = #{djdate}, + JE = #{je}, + JEDX = #{jedx}, + WHJE = #{whje}, + FJS = #{fjs}, + ZY = #{zy}, + YJJE = #{yjje}, + THJE = #{thje}, + BLJE = #{blje}, + BMDM = #{bmdm}, + BMMC = #{bmmc}, + XMDM = #{xmdm}, + XMMC = #{xmmc}, + GRDM = #{grdm}, + GRMC = #{grmc}, + DWDM = #{dwdm}, + DWMC = #{dwmc}, + GNDM = #{gndm}, + GNMC = #{gnmc}, + JJDM = #{jjdm}, + JJMC = #{jjmc}, + FZX6DM = #{fzx6dm}, + FZX6MC = #{fzx6mc}, + FZX7DM = #{fzx7dm}, + FZX7MC = #{fzx7mc}, + FZX8DM = #{fzx8dm}, + FZX8MC = #{fzx8mc}, + FZX9DM = #{fzx9dm}, + FZX9MC = #{fzx9mc}, + FZXADM = #{fzxadm}, + FZXAMC = #{fzxamc}, + KMDM = #{kmdm}, + KMMC = #{kmmc}, + HTBH = #{htbh}, + HTJH = #{htjh}, + SKR = #{skr}, + YHZH = #{yhzh}, + KHYH = #{khyh}, + CURSHJD = #{curshjd}, + NEXTSHJD = #{nextshjd}, + FLOWCODE = #{flowcode}, + SHRID = #{shrid}, + SHR = #{shr}, + SHRQ = #{shrq}, + SFTH = #{sfth}, + THXX = #{thxx}, + JSFS = #{jsfs}, + FQRID = #{fqrid}, + FQR = #{fqr}, + FQRQ = #{fqrq}, + WX00000051 = #{wx00000051}, + WX00000052 = #{wx00000052}, + WX00000053 = #{wx00000053}, + WX00000054 = #{wx00000054}, + WX00000055 = #{wx00000055}, + WX00000056 = #{wx00000056}, + WX00000057 = #{wx00000057}, + WX00000058 = #{wx00000058}, + WX00000059 = #{wx00000059}, + XQ = #{xq}, + WX00000060 = #{wx00000060}, + SKZH = #{skzh}, + FKZH = #{fkzh}, + JSDH = #{jsdh}, + JSRID = #{jsrid}, + JSR = #{jsr}, + JSRQ = #{jsrq}, + WX00000061 = #{wx00000061}, + WX00000062 = #{wx00000062}, + LYBXSX = #{lybxsx}, + WX00000065 = #{wx00000065}, + WX00000066 = #{wx00000066}, + WX00000063 = #{wx00000063}, + WX00000064 = #{wx00000064}, + WX00000067 = #{wx00000067}, + WX00000068 = #{wx00000068}, + WX00000069 = #{wx00000069}, + JFLXDM = #{jflxdm}, + JFLXMC = #{jflxmc}, + GZDM = #{gzdm}, + GZMC = #{gzmc}, + MXXMDM = #{mxxmdm}, + MXXMMC = #{mxxmmc}, + JXSE = #{jxse}, + POSRQ = #{posrq}, + POSDH = #{posdh}, + SFZH = #{sfzh}, + PROVINCE = #{province}, + CITY = #{city}, + YH = #{yh}, + YHHH = #{yhhh}, + KHDQ = #{khdq}, + WYZFGUID = #{wyzfguid}, + FKRNAME = #{fkrname}, + FKRKHYH = #{fkrkhyh}, + FKRYHZH = #{fkryhzh}, + TEL = #{tel}, + CLF_CCR = #{clfCcr}, + WLYWGUID = #{wlywguid}, + YYBH = #{yybh}, + ZJXZDM = #{zjxzdm}, + ZJXZMC = #{zjxzmc}, + ZJLYDM = #{zjlydm}, + ZJLYMC = #{zjlymc}, + YSDWDM = #{ysdwdm}, + YSDWMC = #{ysdwmc}, + SFKGSDM = #{sfkgsdm}, + wlh = #{wlh}, + wlhDisplay = #{wlhdisplay}, + CLF_CCLB = #{clfCclb}, + KZZL1DM = #{kzzl1dm}, + KZZL1MC = #{kzzl1mc}, + KZZL2DM = #{kzzl2dm}, + KZZL2MC = #{kzzl2mc}, + KZZL3DM = #{kzzl3dm}, + KZZL3MC = #{kzzl3mc}, + KZZL4DM = #{kzzl4dm}, + KZZL4MC = #{kzzl4mc}, + KZZL5DM = #{kzzl5dm}, + KZZL5MC = #{kzzl5mc}, + KZZL6DM = #{kzzl6dm}, + KZZL6MC = #{kzzl6mc}, + KZZL7DM = #{kzzl7dm}, + KZZL7MC = #{kzzl7mc}, + ZCSXDM = #{zcsxdm}, + ZCSXMC = #{zcsxmc}, + FYBZ = #{fybz}, + TS = #{ts}, + HDKSRQ = #{hdksrq}, + HDJSRQ = #{hdjsrq}, + StartDate = #{startdate}, + EndDate = #{enddate}, + SFDD = #{sfdd}, + FDDSM = #{fddsm}, + ZWJB = #{zwjb}, + JDDXDW = #{jddxdw}, + ZBXM = #{zbxm}, + HYLB = #{hylb}, + PXMC = #{pxmc}, + PXLB = #{pxlb}, + ZYRS = #{zyrs}, + FZRS = #{fzrs}, + DD = #{dd}, + HYMC = #{hymc}, + SmsSendFlag = #{smssendflag}, + BillMODS = #{billmods}, + DX_LWFDH = #{dxLwfdh}, + DX_CLSPDH = #{dxClspdh}, + DX_HYJH = #{dxHyjh}, + DX_ZCLX = #{dxZclx}, + ZFFSXX = #{zffsxx}, + CLF_QZF = #{clfQzf}, + CLF_BXF = #{clfBxf}, + CLF_QTF = #{clfQtf}, + CLF_JTF = #{clfJtf}, + CLF_CCTS = #{clfCcts}, + DYRID = #{dyrid}, + DYR = #{dyr}, + DYRQ = #{dyrq}, + DYCS = #{dycs}, + IDSFPD = #{idsfpd}, + YSKJKMDM = #{yskjkmdm}, + YSKJKMMC = #{yskjkmmc}, + DJGUID = #{djguid}, + SSRQ = #{ssrq}, + SSRID = #{ssrid}, + SSR = #{ssr}, + XMFLDM = #{xmfldm}, + XMFLMC = #{xmflmc}, + ZCBH = #{zcbh}, + GWZJBXDBH = #{gwzjbxdbh}, + WBDJBH = #{wbdjbh}, + FZX11DM = #{fzx11dm}, + FZX11MC = #{fzx11mc}, + FZX12DM = #{fzx12dm}, + FZX12MC = #{fzx12mc}, + FZX13DM = #{fzx13dm}, + FZX13MC = #{fzx13mc}, + FZX14DM = #{fzx14dm}, + FZX14MC = #{fzx14mc}, + FZX15DM = #{fzx15dm}, + FZX15MC = #{fzx15mc}, + FZX16DM = #{fzx16dm}, + FZX16MC = #{fzx16mc}, + FZX17DM = #{fzx17dm}, + FZX17MC = #{fzx17mc}, + FZX18DM = #{fzx18dm}, + FZX18MC = #{fzx18mc}, + FZX19DM = #{fzx19dm}, + FZX19MC = #{fzx19mc}, + FZX20DM = #{fzx20dm}, + FZX20MC = #{fzx20mc}, + FZX21DM = #{fzx21dm}, + FZX21MC = #{fzx21mc}, + FZX22DM = #{fzx22dm}, + FZX22MC = #{fzx22mc}, + FZX23DM = #{fzx23dm}, + FZX23MC = #{fzx23mc}, + FZX24DM = #{fzx24dm}, + FZX24MC = #{fzx24mc}, + FZX25DM = #{fzx25dm}, + FZX25MC = #{fzx25mc}, + FZX26DM = #{fzx26dm}, + FZX26MC = #{fzx26mc}, + FZX27DM = #{fzx27dm}, + FZX27MC = #{fzx27mc}, + FZX28DM = #{fzx28dm}, + FZX28MC = #{fzx28mc}, + FZX29DM = #{fzx29dm}, + FZX29MC = #{fzx29mc}, + FZX30DM = #{fzx30dm}, + FZX30MC = #{fzx30mc}, + TDUSER = #{tduser}, + TDDATE = #{tddate}, + + where MLID = #{mlid} + + + update OER_DJML set + + ZT = #{zt}, + curshjd = #{curshjd}, + nextshjd = #{nextshjd}, + ssrid = #{ssrid}, + ssr = #{ssr}, + ssrq = #{ssrq}, + shrid = #{ssrid}, + shrq = #{shrq} + + where MLID = #{mlId} and DJBH = #{djbh} + + + update GBI_ZBSYREC set + + DJZT = #{djzt}, + + where djid = #{djid} and djlx = #{djlx} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjnrAllEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjnrAllEntity.java new file mode 100644 index 00000000..a87ee839 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerDjnrAllEntity.java @@ -0,0 +1,1917 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.math.BigDecimal; + +/** + * (OerDjnr)实体类 + * + * @author makejava + * @since 2024-08-14 10:14:58 + */ +public class OerDjnrAllEntity extends BaseEntity { + + private Integer xh; + private Integer mlid; + private String gsdm; + private String kjnd; + private Integer djlxid; + private Integer bnxid; + private BigDecimal je; + private String bmdm; + private String bmmc; + private String xmdm; + private String xmmc; + private String grdm; + private String grmc; + private String dwdm; + private String dwmc; + private String gndm; + private String gnmc; + private String jjdm; + private String jjmc; + private String fzx6dm; + private String fzx6mc; + private String fzx7dm; + private String fzx7mc; + private String fzx8dm; + private String fzx8mc; + private String fzx9dm; + private String fzx9mc; + private String fzxadm; + private String fzxamc; + private String kmdm; + private String kmmc; + private String bxbz; + private String zbid; + private String jflxdm; + private String jflxmc; + private String ys00000051; + private String ys00000052; + private String ys00000053; + private String ys00000054; + private String ys00000055; + private String ys00000056; + private String ys00000057; + private String ys00000058; + private String ys00000059; + private String ys00000060; + private String ys00000061; + private String ys00000062; + private String ys00000063; + private String ys00000064; + private String ys00000065; + private String ys00000066; + private String ys00000067; + private String ys00000068; + private String ys00000069; + private String ys00000070; + private String ys00000071; + private String ys00000072; + private String zy; + private BigDecimal jxse; + private String skzh; + private String fkzh; + private Integer gzdm; + private String gzmc; + private String mxxmdm; + private String mxxmmc; + private String sfzh; + private String ffzh; + private Double sds; + private String skr; + private String yhzh; + private String khyh; + private BigDecimal sfje; + private String zjlx; + private String jsfs; + private String zjxzdm; + private String zjxzmc; + private String zjlydm; + private String zjlymc; + private String ysdwdm; + private String ysdwmc; + private String province; + private String city; + private String yh; + private String yhhh; + private String khdq; + private String clfStartdate; + private String clfEnddate; + private String clfCcdd; + private String clfCcksd; + private Integer clfDjzs; + private Integer clfCcts; + private Integer clfCcrs; + private String clfZw; + private String clfJtgj; + private BigDecimal clfJtf; + private BigDecimal clfZsbz; + private BigDecimal clfZsf; + private BigDecimal clfHsbz; + private BigDecimal clfHsf; + private BigDecimal clfJtbz; + private BigDecimal clfJtbzf; + private BigDecimal clfQtf; + private Integer fjs; + private BigDecimal clfCctsbz; + private String kzzl1dm; + private String kzzl1mc; + private String kzzl2dm; + private String kzzl2mc; + private String kzzl3dm; + private String kzzl3mc; + private String kzzl4dm; + private String kzzl4mc; + private String kzzl5dm; + private String kzzl5mc; + private String kzzl6dm; + private String kzzl6mc; + private String kzzl7dm; + private String kzzl7mc; + private String zcsxdm; + private String zcsxmc; + private String jfmxguid; + private Integer kzzbid; + private String htbh; + private String htjh; + private String sqmx; + private BigDecimal sl; + private BigDecimal dj; + private BigDecimal sqje; + private BigDecimal ye; + private BigDecimal bxdj; + private BigDecimal bxsl; + private String clfZsd; + private BigDecimal clfZsbzmt; + private BigDecimal clfHsbzmt; + private BigDecimal clfJtbzmt; + private String fyxm; + private BigDecimal fybz; + private BigDecimal ts; + private Integer rs; + private String czsqzfm; + private BigDecimal clfQzf; + private BigDecimal clfBxf; + private BigDecimal clfCjjp; + private BigDecimal clfCjhc; + private BigDecimal clfCjqt; + private BigDecimal clfZsts; + private String zbdm; + private BigDecimal wbje; + private String clfMoneytype; + private String clfOutmoneytype; + private BigDecimal clfZsyrytbz; + private BigDecimal hl; + private String clfCcr; + private String dxZclx; + private String dxJfly; + private String dxCcxz; + private Integer dxDjzs; + private String dxZsfs; + private String jtjjkm; + private Integer clfJtbzrs; + private BigDecimal clfJtbzts; + private Integer clfHsbzrs; + private BigDecimal clfHsbzts; + private String bzjjkm; + private String dxZcxz; + private String fkjd; + private String yskjkmdm; + private String yskjkmmc; + private String xmfldm; + private String xmflmc; + private String fzx11dm; + private String fzx11mc; + private String fzx12dm; + private String fzx12mc; + private String fzx13dm; + private String fzx13mc; + private String fzx14dm; + private String fzx14mc; + private String fzx15dm; + private String fzx15mc; + private String fzx16dm; + private String fzx16mc; + private String fzx17dm; + private String fzx17mc; + private String fzx18dm; + private String fzx18mc; + private String fzx19dm; + private String fzx19mc; + private String fzx20dm; + private String fzx20mc; + private String fzx21dm; + private String fzx21mc; + private String fzx22dm; + private String fzx22mc; + private String fzx23dm; + private String fzx23mc; + private String fzx24dm; + private String fzx24mc; + private String fzx25dm; + private String fzx25mc; + private String fzx26dm; + private String fzx26mc; + private String fzx27dm; + private String fzx27mc; + private String fzx28dm; + private String fzx28mc; + private String fzx29dm; + private String fzx29mc; + private String fzx30dm; + private String fzx30mc; + private Integer czyszbid; + + + public Integer getXh() { + return xh; + } + + public void setXh(Integer xh) { + this.xh = xh; + } + + public Integer getMlid() { + return mlid; + } + + public void setMlid(Integer mlid) { + this.mlid = mlid; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public Integer getDjlxid() { + return djlxid; + } + + public void setDjlxid(Integer djlxid) { + this.djlxid = djlxid; + } + + public Integer getBnxid() { + return bnxid; + } + + public void setBnxid(Integer bnxid) { + this.bnxid = bnxid; + } + + public BigDecimal getJe() { + return je; + } + + public void setJe(BigDecimal je) { + this.je = je; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBmmc() { + return bmmc; + } + + public void setBmmc(String bmmc) { + this.bmmc = bmmc; + } + + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getXmmc() { + return xmmc; + } + + public void setXmmc(String xmmc) { + this.xmmc = xmmc; + } + + public String getGrdm() { + return grdm; + } + + public void setGrdm(String grdm) { + this.grdm = grdm; + } + + public String getGrmc() { + return grmc; + } + + public void setGrmc(String grmc) { + this.grmc = grmc; + } + + public String getDwdm() { + return dwdm; + } + + public void setDwdm(String dwdm) { + this.dwdm = dwdm; + } + + public String getDwmc() { + return dwmc; + } + + public void setDwmc(String dwmc) { + this.dwmc = dwmc; + } + + public String getGndm() { + return gndm; + } + + public void setGndm(String gndm) { + this.gndm = gndm; + } + + public String getGnmc() { + return gnmc; + } + + public void setGnmc(String gnmc) { + this.gnmc = gnmc; + } + + public String getJjdm() { + return jjdm; + } + + public void setJjdm(String jjdm) { + this.jjdm = jjdm; + } + + public String getJjmc() { + return jjmc; + } + + public void setJjmc(String jjmc) { + this.jjmc = jjmc; + } + + public String getFzx6dm() { + return fzx6dm; + } + + public void setFzx6dm(String fzx6dm) { + this.fzx6dm = fzx6dm; + } + + public String getFzx6mc() { + return fzx6mc; + } + + public void setFzx6mc(String fzx6mc) { + this.fzx6mc = fzx6mc; + } + + public String getFzx7dm() { + return fzx7dm; + } + + public void setFzx7dm(String fzx7dm) { + this.fzx7dm = fzx7dm; + } + + public String getFzx7mc() { + return fzx7mc; + } + + public void setFzx7mc(String fzx7mc) { + this.fzx7mc = fzx7mc; + } + + public String getFzx8dm() { + return fzx8dm; + } + + public void setFzx8dm(String fzx8dm) { + this.fzx8dm = fzx8dm; + } + + public String getFzx8mc() { + return fzx8mc; + } + + public void setFzx8mc(String fzx8mc) { + this.fzx8mc = fzx8mc; + } + + public String getFzx9dm() { + return fzx9dm; + } + + public void setFzx9dm(String fzx9dm) { + this.fzx9dm = fzx9dm; + } + + public String getFzx9mc() { + return fzx9mc; + } + + public void setFzx9mc(String fzx9mc) { + this.fzx9mc = fzx9mc; + } + + public String getFzxadm() { + return fzxadm; + } + + public void setFzxadm(String fzxadm) { + this.fzxadm = fzxadm; + } + + public String getFzxamc() { + return fzxamc; + } + + public void setFzxamc(String fzxamc) { + this.fzxamc = fzxamc; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getBxbz() { + return bxbz; + } + + public void setBxbz(String bxbz) { + this.bxbz = bxbz; + } + + public String getZbid() { + return zbid; + } + + public void setZbid(String zbid) { + this.zbid = zbid; + } + + public String getJflxdm() { + return jflxdm; + } + + public void setJflxdm(String jflxdm) { + this.jflxdm = jflxdm; + } + + public String getJflxmc() { + return jflxmc; + } + + public void setJflxmc(String jflxmc) { + this.jflxmc = jflxmc; + } + + public String getYs00000051() { + return ys00000051; + } + + public void setYs00000051(String ys00000051) { + this.ys00000051 = ys00000051; + } + + public String getYs00000052() { + return ys00000052; + } + + public void setYs00000052(String ys00000052) { + this.ys00000052 = ys00000052; + } + + public String getYs00000053() { + return ys00000053; + } + + public void setYs00000053(String ys00000053) { + this.ys00000053 = ys00000053; + } + + public String getYs00000054() { + return ys00000054; + } + + public void setYs00000054(String ys00000054) { + this.ys00000054 = ys00000054; + } + + public String getYs00000055() { + return ys00000055; + } + + public void setYs00000055(String ys00000055) { + this.ys00000055 = ys00000055; + } + + public String getYs00000056() { + return ys00000056; + } + + public void setYs00000056(String ys00000056) { + this.ys00000056 = ys00000056; + } + + public String getYs00000057() { + return ys00000057; + } + + public void setYs00000057(String ys00000057) { + this.ys00000057 = ys00000057; + } + + public String getYs00000058() { + return ys00000058; + } + + public void setYs00000058(String ys00000058) { + this.ys00000058 = ys00000058; + } + + public String getYs00000059() { + return ys00000059; + } + + public void setYs00000059(String ys00000059) { + this.ys00000059 = ys00000059; + } + + public String getYs00000060() { + return ys00000060; + } + + public void setYs00000060(String ys00000060) { + this.ys00000060 = ys00000060; + } + + public String getYs00000061() { + return ys00000061; + } + + public void setYs00000061(String ys00000061) { + this.ys00000061 = ys00000061; + } + + public String getYs00000062() { + return ys00000062; + } + + public void setYs00000062(String ys00000062) { + this.ys00000062 = ys00000062; + } + + public String getYs00000063() { + return ys00000063; + } + + public void setYs00000063(String ys00000063) { + this.ys00000063 = ys00000063; + } + + public String getYs00000064() { + return ys00000064; + } + + public void setYs00000064(String ys00000064) { + this.ys00000064 = ys00000064; + } + + public String getYs00000065() { + return ys00000065; + } + + public void setYs00000065(String ys00000065) { + this.ys00000065 = ys00000065; + } + + public String getYs00000066() { + return ys00000066; + } + + public void setYs00000066(String ys00000066) { + this.ys00000066 = ys00000066; + } + + public String getYs00000067() { + return ys00000067; + } + + public void setYs00000067(String ys00000067) { + this.ys00000067 = ys00000067; + } + + public String getYs00000068() { + return ys00000068; + } + + public void setYs00000068(String ys00000068) { + this.ys00000068 = ys00000068; + } + + public String getYs00000069() { + return ys00000069; + } + + public void setYs00000069(String ys00000069) { + this.ys00000069 = ys00000069; + } + + public String getYs00000070() { + return ys00000070; + } + + public void setYs00000070(String ys00000070) { + this.ys00000070 = ys00000070; + } + + public String getYs00000071() { + return ys00000071; + } + + public void setYs00000071(String ys00000071) { + this.ys00000071 = ys00000071; + } + + public String getYs00000072() { + return ys00000072; + } + + public void setYs00000072(String ys00000072) { + this.ys00000072 = ys00000072; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public BigDecimal getJxse() { + return jxse; + } + + public void setJxse(BigDecimal jxse) { + this.jxse = jxse; + } + + public String getSkzh() { + return skzh; + } + + public void setSkzh(String skzh) { + this.skzh = skzh; + } + + public String getFkzh() { + return fkzh; + } + + public void setFkzh(String fkzh) { + this.fkzh = fkzh; + } + + public Integer getGzdm() { + return gzdm; + } + + public void setGzdm(Integer gzdm) { + this.gzdm = gzdm; + } + + public String getGzmc() { + return gzmc; + } + + public void setGzmc(String gzmc) { + this.gzmc = gzmc; + } + + public String getMxxmdm() { + return mxxmdm; + } + + public void setMxxmdm(String mxxmdm) { + this.mxxmdm = mxxmdm; + } + + public String getMxxmmc() { + return mxxmmc; + } + + public void setMxxmmc(String mxxmmc) { + this.mxxmmc = mxxmmc; + } + + public String getSfzh() { + return sfzh; + } + + public void setSfzh(String sfzh) { + this.sfzh = sfzh; + } + + public String getFfzh() { + return ffzh; + } + + public void setFfzh(String ffzh) { + this.ffzh = ffzh; + } + + public Double getSds() { + return sds; + } + + public void setSds(Double sds) { + this.sds = sds; + } + + public String getSkr() { + return skr; + } + + public void setSkr(String skr) { + this.skr = skr; + } + + public String getYhzh() { + return yhzh; + } + + public void setYhzh(String yhzh) { + this.yhzh = yhzh; + } + + public String getKhyh() { + return khyh; + } + + public void setKhyh(String khyh) { + this.khyh = khyh; + } + + public BigDecimal getSfje() { + return sfje; + } + + public void setSfje(BigDecimal sfje) { + this.sfje = sfje; + } + + public String getZjlx() { + return zjlx; + } + + public void setZjlx(String zjlx) { + this.zjlx = zjlx; + } + + public String getJsfs() { + return jsfs; + } + + public void setJsfs(String jsfs) { + this.jsfs = jsfs; + } + + public String getZjxzdm() { + return zjxzdm; + } + + public void setZjxzdm(String zjxzdm) { + this.zjxzdm = zjxzdm; + } + + public String getZjxzmc() { + return zjxzmc; + } + + public void setZjxzmc(String zjxzmc) { + this.zjxzmc = zjxzmc; + } + + public String getZjlydm() { + return zjlydm; + } + + public void setZjlydm(String zjlydm) { + this.zjlydm = zjlydm; + } + + public String getZjlymc() { + return zjlymc; + } + + public void setZjlymc(String zjlymc) { + this.zjlymc = zjlymc; + } + + public String getYsdwdm() { + return ysdwdm; + } + + public void setYsdwdm(String ysdwdm) { + this.ysdwdm = ysdwdm; + } + + public String getYsdwmc() { + return ysdwmc; + } + + public void setYsdwmc(String ysdwmc) { + this.ysdwmc = ysdwmc; + } + + public String getProvince() { + return province; + } + + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public String getYh() { + return yh; + } + + public void setYh(String yh) { + this.yh = yh; + } + + public String getYhhh() { + return yhhh; + } + + public void setYhhh(String yhhh) { + this.yhhh = yhhh; + } + + public String getKhdq() { + return khdq; + } + + public void setKhdq(String khdq) { + this.khdq = khdq; + } + + public String getClfStartdate() { + return clfStartdate; + } + + public void setClfStartdate(String clfStartdate) { + this.clfStartdate = clfStartdate; + } + + public String getClfEnddate() { + return clfEnddate; + } + + public void setClfEnddate(String clfEnddate) { + this.clfEnddate = clfEnddate; + } + + public String getClfCcdd() { + return clfCcdd; + } + + public void setClfCcdd(String clfCcdd) { + this.clfCcdd = clfCcdd; + } + + public String getClfCcksd() { + return clfCcksd; + } + + public void setClfCcksd(String clfCcksd) { + this.clfCcksd = clfCcksd; + } + + public Integer getClfDjzs() { + return clfDjzs; + } + + public void setClfDjzs(Integer clfDjzs) { + this.clfDjzs = clfDjzs; + } + + public Integer getClfCcts() { + return clfCcts; + } + + public void setClfCcts(Integer clfCcts) { + this.clfCcts = clfCcts; + } + + public Integer getClfCcrs() { + return clfCcrs; + } + + public void setClfCcrs(Integer clfCcrs) { + this.clfCcrs = clfCcrs; + } + + public String getClfZw() { + return clfZw; + } + + public void setClfZw(String clfZw) { + this.clfZw = clfZw; + } + + public String getClfJtgj() { + return clfJtgj; + } + + public void setClfJtgj(String clfJtgj) { + this.clfJtgj = clfJtgj; + } + + public BigDecimal getClfJtf() { + return clfJtf; + } + + public void setClfJtf(BigDecimal clfJtf) { + this.clfJtf = clfJtf; + } + + public BigDecimal getClfZsbz() { + return clfZsbz; + } + + public void setClfZsbz(BigDecimal clfZsbz) { + this.clfZsbz = clfZsbz; + } + + public BigDecimal getClfZsf() { + return clfZsf; + } + + public void setClfZsf(BigDecimal clfZsf) { + this.clfZsf = clfZsf; + } + + public BigDecimal getClfHsbz() { + return clfHsbz; + } + + public void setClfHsbz(BigDecimal clfHsbz) { + this.clfHsbz = clfHsbz; + } + + public BigDecimal getClfHsf() { + return clfHsf; + } + + public void setClfHsf(BigDecimal clfHsf) { + this.clfHsf = clfHsf; + } + + public BigDecimal getClfJtbz() { + return clfJtbz; + } + + public void setClfJtbz(BigDecimal clfJtbz) { + this.clfJtbz = clfJtbz; + } + + public BigDecimal getClfJtbzf() { + return clfJtbzf; + } + + public void setClfJtbzf(BigDecimal clfJtbzf) { + this.clfJtbzf = clfJtbzf; + } + + public BigDecimal getClfQtf() { + return clfQtf; + } + + public void setClfQtf(BigDecimal clfQtf) { + this.clfQtf = clfQtf; + } + + public Integer getFjs() { + return fjs; + } + + public void setFjs(Integer fjs) { + this.fjs = fjs; + } + + public BigDecimal getClfCctsbz() { + return clfCctsbz; + } + + public void setClfCctsbz(BigDecimal clfCctsbz) { + this.clfCctsbz = clfCctsbz; + } + + public String getKzzl1dm() { + return kzzl1dm; + } + + public void setKzzl1dm(String kzzl1dm) { + this.kzzl1dm = kzzl1dm; + } + + public String getKzzl1mc() { + return kzzl1mc; + } + + public void setKzzl1mc(String kzzl1mc) { + this.kzzl1mc = kzzl1mc; + } + + public String getKzzl2dm() { + return kzzl2dm; + } + + public void setKzzl2dm(String kzzl2dm) { + this.kzzl2dm = kzzl2dm; + } + + public String getKzzl2mc() { + return kzzl2mc; + } + + public void setKzzl2mc(String kzzl2mc) { + this.kzzl2mc = kzzl2mc; + } + + public String getKzzl3dm() { + return kzzl3dm; + } + + public void setKzzl3dm(String kzzl3dm) { + this.kzzl3dm = kzzl3dm; + } + + public String getKzzl3mc() { + return kzzl3mc; + } + + public void setKzzl3mc(String kzzl3mc) { + this.kzzl3mc = kzzl3mc; + } + + public String getKzzl4dm() { + return kzzl4dm; + } + + public void setKzzl4dm(String kzzl4dm) { + this.kzzl4dm = kzzl4dm; + } + + public String getKzzl4mc() { + return kzzl4mc; + } + + public void setKzzl4mc(String kzzl4mc) { + this.kzzl4mc = kzzl4mc; + } + + public String getKzzl5dm() { + return kzzl5dm; + } + + public void setKzzl5dm(String kzzl5dm) { + this.kzzl5dm = kzzl5dm; + } + + public String getKzzl5mc() { + return kzzl5mc; + } + + public void setKzzl5mc(String kzzl5mc) { + this.kzzl5mc = kzzl5mc; + } + + public String getKzzl6dm() { + return kzzl6dm; + } + + public void setKzzl6dm(String kzzl6dm) { + this.kzzl6dm = kzzl6dm; + } + + public String getKzzl6mc() { + return kzzl6mc; + } + + public void setKzzl6mc(String kzzl6mc) { + this.kzzl6mc = kzzl6mc; + } + + public String getKzzl7dm() { + return kzzl7dm; + } + + public void setKzzl7dm(String kzzl7dm) { + this.kzzl7dm = kzzl7dm; + } + + public String getKzzl7mc() { + return kzzl7mc; + } + + public void setKzzl7mc(String kzzl7mc) { + this.kzzl7mc = kzzl7mc; + } + + public String getZcsxdm() { + return zcsxdm; + } + + public void setZcsxdm(String zcsxdm) { + this.zcsxdm = zcsxdm; + } + + public String getZcsxmc() { + return zcsxmc; + } + + public void setZcsxmc(String zcsxmc) { + this.zcsxmc = zcsxmc; + } + + public String getJfmxguid() { + return jfmxguid; + } + + public void setJfmxguid(String jfmxguid) { + this.jfmxguid = jfmxguid; + } + + public Integer getKzzbid() { + return kzzbid; + } + + public void setKzzbid(Integer kzzbid) { + this.kzzbid = kzzbid; + } + + public String getHtbh() { + return htbh; + } + + public void setHtbh(String htbh) { + this.htbh = htbh; + } + + public String getHtjh() { + return htjh; + } + + public void setHtjh(String htjh) { + this.htjh = htjh; + } + + public String getSqmx() { + return sqmx; + } + + public void setSqmx(String sqmx) { + this.sqmx = sqmx; + } + + public BigDecimal getSl() { + return sl; + } + + public void setSl(BigDecimal sl) { + this.sl = sl; + } + + public BigDecimal getDj() { + return dj; + } + + public void setDj(BigDecimal dj) { + this.dj = dj; + } + + public BigDecimal getSqje() { + return sqje; + } + + public void setSqje(BigDecimal sqje) { + this.sqje = sqje; + } + + public BigDecimal getYe() { + return ye; + } + + public void setYe(BigDecimal ye) { + this.ye = ye; + } + + public BigDecimal getBxdj() { + return bxdj; + } + + public void setBxdj(BigDecimal bxdj) { + this.bxdj = bxdj; + } + + public BigDecimal getBxsl() { + return bxsl; + } + + public void setBxsl(BigDecimal bxsl) { + this.bxsl = bxsl; + } + + public String getClfZsd() { + return clfZsd; + } + + public void setClfZsd(String clfZsd) { + this.clfZsd = clfZsd; + } + + public BigDecimal getClfZsbzmt() { + return clfZsbzmt; + } + + public void setClfZsbzmt(BigDecimal clfZsbzmt) { + this.clfZsbzmt = clfZsbzmt; + } + + public BigDecimal getClfHsbzmt() { + return clfHsbzmt; + } + + public void setClfHsbzmt(BigDecimal clfHsbzmt) { + this.clfHsbzmt = clfHsbzmt; + } + + public BigDecimal getClfJtbzmt() { + return clfJtbzmt; + } + + public void setClfJtbzmt(BigDecimal clfJtbzmt) { + this.clfJtbzmt = clfJtbzmt; + } + + public String getFyxm() { + return fyxm; + } + + public void setFyxm(String fyxm) { + this.fyxm = fyxm; + } + + public BigDecimal getFybz() { + return fybz; + } + + public void setFybz(BigDecimal fybz) { + this.fybz = fybz; + } + + public BigDecimal getTs() { + return ts; + } + + public void setTs(BigDecimal ts) { + this.ts = ts; + } + + public Integer getRs() { + return rs; + } + + public void setRs(Integer rs) { + this.rs = rs; + } + + public String getCzsqzfm() { + return czsqzfm; + } + + public void setCzsqzfm(String czsqzfm) { + this.czsqzfm = czsqzfm; + } + + public BigDecimal getClfQzf() { + return clfQzf; + } + + public void setClfQzf(BigDecimal clfQzf) { + this.clfQzf = clfQzf; + } + + public BigDecimal getClfBxf() { + return clfBxf; + } + + public void setClfBxf(BigDecimal clfBxf) { + this.clfBxf = clfBxf; + } + + public BigDecimal getClfCjjp() { + return clfCjjp; + } + + public void setClfCjjp(BigDecimal clfCjjp) { + this.clfCjjp = clfCjjp; + } + + public BigDecimal getClfCjhc() { + return clfCjhc; + } + + public void setClfCjhc(BigDecimal clfCjhc) { + this.clfCjhc = clfCjhc; + } + + public BigDecimal getClfCjqt() { + return clfCjqt; + } + + public void setClfCjqt(BigDecimal clfCjqt) { + this.clfCjqt = clfCjqt; + } + + public BigDecimal getClfZsts() { + return clfZsts; + } + + public void setClfZsts(BigDecimal clfZsts) { + this.clfZsts = clfZsts; + } + + public String getZbdm() { + return zbdm; + } + + public void setZbdm(String zbdm) { + this.zbdm = zbdm; + } + + public BigDecimal getWbje() { + return wbje; + } + + public void setWbje(BigDecimal wbje) { + this.wbje = wbje; + } + + public String getClfMoneytype() { + return clfMoneytype; + } + + public void setClfMoneytype(String clfMoneytype) { + this.clfMoneytype = clfMoneytype; + } + + public String getClfOutmoneytype() { + return clfOutmoneytype; + } + + public void setClfOutmoneytype(String clfOutmoneytype) { + this.clfOutmoneytype = clfOutmoneytype; + } + + public BigDecimal getClfZsyrytbz() { + return clfZsyrytbz; + } + + public void setClfZsyrytbz(BigDecimal clfZsyrytbz) { + this.clfZsyrytbz = clfZsyrytbz; + } + + public BigDecimal getHl() { + return hl; + } + + public void setHl(BigDecimal hl) { + this.hl = hl; + } + + public String getClfCcr() { + return clfCcr; + } + + public void setClfCcr(String clfCcr) { + this.clfCcr = clfCcr; + } + + public String getDxZclx() { + return dxZclx; + } + + public void setDxZclx(String dxZclx) { + this.dxZclx = dxZclx; + } + + public String getDxJfly() { + return dxJfly; + } + + public void setDxJfly(String dxJfly) { + this.dxJfly = dxJfly; + } + + public String getDxCcxz() { + return dxCcxz; + } + + public void setDxCcxz(String dxCcxz) { + this.dxCcxz = dxCcxz; + } + + public Integer getDxDjzs() { + return dxDjzs; + } + + public void setDxDjzs(Integer dxDjzs) { + this.dxDjzs = dxDjzs; + } + + public String getDxZsfs() { + return dxZsfs; + } + + public void setDxZsfs(String dxZsfs) { + this.dxZsfs = dxZsfs; + } + + public String getJtjjkm() { + return jtjjkm; + } + + public void setJtjjkm(String jtjjkm) { + this.jtjjkm = jtjjkm; + } + + public Integer getClfJtbzrs() { + return clfJtbzrs; + } + + public void setClfJtbzrs(Integer clfJtbzrs) { + this.clfJtbzrs = clfJtbzrs; + } + + public BigDecimal getClfJtbzts() { + return clfJtbzts; + } + + public void setClfJtbzts(BigDecimal clfJtbzts) { + this.clfJtbzts = clfJtbzts; + } + + public Integer getClfHsbzrs() { + return clfHsbzrs; + } + + public void setClfHsbzrs(Integer clfHsbzrs) { + this.clfHsbzrs = clfHsbzrs; + } + + public BigDecimal getClfHsbzts() { + return clfHsbzts; + } + + public void setClfHsbzts(BigDecimal clfHsbzts) { + this.clfHsbzts = clfHsbzts; + } + + public String getBzjjkm() { + return bzjjkm; + } + + public void setBzjjkm(String bzjjkm) { + this.bzjjkm = bzjjkm; + } + + public String getDxZcxz() { + return dxZcxz; + } + + public void setDxZcxz(String dxZcxz) { + this.dxZcxz = dxZcxz; + } + + public String getFkjd() { + return fkjd; + } + + public void setFkjd(String fkjd) { + this.fkjd = fkjd; + } + + public String getYskjkmdm() { + return yskjkmdm; + } + + public void setYskjkmdm(String yskjkmdm) { + this.yskjkmdm = yskjkmdm; + } + + public String getYskjkmmc() { + return yskjkmmc; + } + + public void setYskjkmmc(String yskjkmmc) { + this.yskjkmmc = yskjkmmc; + } + + public String getXmfldm() { + return xmfldm; + } + + public void setXmfldm(String xmfldm) { + this.xmfldm = xmfldm; + } + + public String getXmflmc() { + return xmflmc; + } + + public void setXmflmc(String xmflmc) { + this.xmflmc = xmflmc; + } + + public String getFzx11dm() { + return fzx11dm; + } + + public void setFzx11dm(String fzx11dm) { + this.fzx11dm = fzx11dm; + } + + public String getFzx11mc() { + return fzx11mc; + } + + public void setFzx11mc(String fzx11mc) { + this.fzx11mc = fzx11mc; + } + + public String getFzx12dm() { + return fzx12dm; + } + + public void setFzx12dm(String fzx12dm) { + this.fzx12dm = fzx12dm; + } + + public String getFzx12mc() { + return fzx12mc; + } + + public void setFzx12mc(String fzx12mc) { + this.fzx12mc = fzx12mc; + } + + public String getFzx13dm() { + return fzx13dm; + } + + public void setFzx13dm(String fzx13dm) { + this.fzx13dm = fzx13dm; + } + + public String getFzx13mc() { + return fzx13mc; + } + + public void setFzx13mc(String fzx13mc) { + this.fzx13mc = fzx13mc; + } + + public String getFzx14dm() { + return fzx14dm; + } + + public void setFzx14dm(String fzx14dm) { + this.fzx14dm = fzx14dm; + } + + public String getFzx14mc() { + return fzx14mc; + } + + public void setFzx14mc(String fzx14mc) { + this.fzx14mc = fzx14mc; + } + + public String getFzx15dm() { + return fzx15dm; + } + + public void setFzx15dm(String fzx15dm) { + this.fzx15dm = fzx15dm; + } + + public String getFzx15mc() { + return fzx15mc; + } + + public void setFzx15mc(String fzx15mc) { + this.fzx15mc = fzx15mc; + } + + public String getFzx16dm() { + return fzx16dm; + } + + public void setFzx16dm(String fzx16dm) { + this.fzx16dm = fzx16dm; + } + + public String getFzx16mc() { + return fzx16mc; + } + + public void setFzx16mc(String fzx16mc) { + this.fzx16mc = fzx16mc; + } + + public String getFzx17dm() { + return fzx17dm; + } + + public void setFzx17dm(String fzx17dm) { + this.fzx17dm = fzx17dm; + } + + public String getFzx17mc() { + return fzx17mc; + } + + public void setFzx17mc(String fzx17mc) { + this.fzx17mc = fzx17mc; + } + + public String getFzx18dm() { + return fzx18dm; + } + + public void setFzx18dm(String fzx18dm) { + this.fzx18dm = fzx18dm; + } + + public String getFzx18mc() { + return fzx18mc; + } + + public void setFzx18mc(String fzx18mc) { + this.fzx18mc = fzx18mc; + } + + public String getFzx19dm() { + return fzx19dm; + } + + public void setFzx19dm(String fzx19dm) { + this.fzx19dm = fzx19dm; + } + + public String getFzx19mc() { + return fzx19mc; + } + + public void setFzx19mc(String fzx19mc) { + this.fzx19mc = fzx19mc; + } + + public String getFzx20dm() { + return fzx20dm; + } + + public void setFzx20dm(String fzx20dm) { + this.fzx20dm = fzx20dm; + } + + public String getFzx20mc() { + return fzx20mc; + } + + public void setFzx20mc(String fzx20mc) { + this.fzx20mc = fzx20mc; + } + + public String getFzx21dm() { + return fzx21dm; + } + + public void setFzx21dm(String fzx21dm) { + this.fzx21dm = fzx21dm; + } + + public String getFzx21mc() { + return fzx21mc; + } + + public void setFzx21mc(String fzx21mc) { + this.fzx21mc = fzx21mc; + } + + public String getFzx22dm() { + return fzx22dm; + } + + public void setFzx22dm(String fzx22dm) { + this.fzx22dm = fzx22dm; + } + + public String getFzx22mc() { + return fzx22mc; + } + + public void setFzx22mc(String fzx22mc) { + this.fzx22mc = fzx22mc; + } + + public String getFzx23dm() { + return fzx23dm; + } + + public void setFzx23dm(String fzx23dm) { + this.fzx23dm = fzx23dm; + } + + public String getFzx23mc() { + return fzx23mc; + } + + public void setFzx23mc(String fzx23mc) { + this.fzx23mc = fzx23mc; + } + + public String getFzx24dm() { + return fzx24dm; + } + + public void setFzx24dm(String fzx24dm) { + this.fzx24dm = fzx24dm; + } + + public String getFzx24mc() { + return fzx24mc; + } + + public void setFzx24mc(String fzx24mc) { + this.fzx24mc = fzx24mc; + } + + public String getFzx25dm() { + return fzx25dm; + } + + public void setFzx25dm(String fzx25dm) { + this.fzx25dm = fzx25dm; + } + + public String getFzx25mc() { + return fzx25mc; + } + + public void setFzx25mc(String fzx25mc) { + this.fzx25mc = fzx25mc; + } + + public String getFzx26dm() { + return fzx26dm; + } + + public void setFzx26dm(String fzx26dm) { + this.fzx26dm = fzx26dm; + } + + public String getFzx26mc() { + return fzx26mc; + } + + public void setFzx26mc(String fzx26mc) { + this.fzx26mc = fzx26mc; + } + + public String getFzx27dm() { + return fzx27dm; + } + + public void setFzx27dm(String fzx27dm) { + this.fzx27dm = fzx27dm; + } + + public String getFzx27mc() { + return fzx27mc; + } + + public void setFzx27mc(String fzx27mc) { + this.fzx27mc = fzx27mc; + } + + public String getFzx28dm() { + return fzx28dm; + } + + public void setFzx28dm(String fzx28dm) { + this.fzx28dm = fzx28dm; + } + + public String getFzx28mc() { + return fzx28mc; + } + + public void setFzx28mc(String fzx28mc) { + this.fzx28mc = fzx28mc; + } + + public String getFzx29dm() { + return fzx29dm; + } + + public void setFzx29dm(String fzx29dm) { + this.fzx29dm = fzx29dm; + } + + public String getFzx29mc() { + return fzx29mc; + } + + public void setFzx29mc(String fzx29mc) { + this.fzx29mc = fzx29mc; + } + + public String getFzx30dm() { + return fzx30dm; + } + + public void setFzx30dm(String fzx30dm) { + this.fzx30dm = fzx30dm; + } + + public String getFzx30mc() { + return fzx30mc; + } + + public void setFzx30mc(String fzx30mc) { + this.fzx30mc = fzx30mc; + } + + public Integer getCzyszbid() { + return czyszbid; + } + + public void setCzyszbid(Integer czyszbid) { + this.czyszbid = czyszbid; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerYszbAllEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerYszbAllEntity.java new file mode 100644 index 00000000..ffc8fabe --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/entity/OerYszbAllEntity.java @@ -0,0 +1,666 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.math.BigDecimal; + +/** + * (OerYszb)实体类 + * + * @author makejava + * @since 2024-08-14 10:15:58 + */ +public class OerYszbAllEntity extends BaseEntity { + + private Integer mlid; + private String gsdm; + private String kjnd; + private Integer bnxid; + private Integer dataid; + private Integer xh; + private String zbdm; + private BigDecimal je; + private Integer zbid; + private Integer jhid; + private String zy; + private String kmdm; + private String kmmc; + private Integer djlxid; + private String zbgnkmdm; + private String zbgnkmmc; + private String zbjjkmdm; + private String zbjjkmmc; + private Integer kzzbid; + private String zbfz6dm; + private String zbfz6mc; + private String zbfz7dm; + private String zbfz7mc; + private String zbfz8dm; + private String zbfz8mc; + private String zbfz9dm; + private String zbfz9mc; + private String zbfzadm; + private String zbfzamc; + private String yskjkmdm; + private String yskjkmmc; + private Integer czyszbid; + private String zbfz11dm; + private String zbfz11mc; + private String zbfz12dm; + private String zbfz12mc; + private String zbfz13dm; + private String zbfz13mc; + private String zbfz14dm; + private String zbfz14mc; + private String zbfz15dm; + private String zbfz15mc; + private String zbfz16dm; + private String zbfz16mc; + private String zbfz17dm; + private String zbfz17mc; + private String zbfz18dm; + private String zbfz18mc; + private String zbfz19dm; + private String zbfz19mc; + private String zbfz20dm; + private String zbfz20mc; + private String zbfz21dm; + private String zbfz21mc; + private String zbfz22dm; + private String zbfz22mc; + private String zbfz23dm; + private String zbfz23mc; + private String zbfz24dm; + private String zbfz24mc; + private String zbfz25dm; + private String zbfz25mc; + private String zbfz26dm; + private String zbfz26mc; + private String zbfz27dm; + private String zbfz27mc; + private String zbfz28dm; + private String zbfz28mc; + private String zbfz29dm; + private String zbfz29mc; + private String zbfz30dm; + private String zbfz30mc; + + + public Integer getMlid() { + return mlid; + } + + public void setMlid(Integer mlid) { + this.mlid = mlid; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public Integer getBnxid() { + return bnxid; + } + + public void setBnxid(Integer bnxid) { + this.bnxid = bnxid; + } + + public Integer getDataid() { + return dataid; + } + + public void setDataid(Integer dataid) { + this.dataid = dataid; + } + + public Integer getXh() { + return xh; + } + + public void setXh(Integer xh) { + this.xh = xh; + } + + public String getZbdm() { + return zbdm; + } + + public void setZbdm(String zbdm) { + this.zbdm = zbdm; + } + + public BigDecimal getJe() { + return je; + } + + public void setJe(BigDecimal je) { + this.je = je; + } + + public Integer getZbid() { + return zbid; + } + + public void setZbid(Integer zbid) { + this.zbid = zbid; + } + + public Integer getJhid() { + return jhid; + } + + public void setJhid(Integer jhid) { + this.jhid = jhid; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public Integer getDjlxid() { + return djlxid; + } + + public void setDjlxid(Integer djlxid) { + this.djlxid = djlxid; + } + + public String getZbgnkmdm() { + return zbgnkmdm; + } + + public void setZbgnkmdm(String zbgnkmdm) { + this.zbgnkmdm = zbgnkmdm; + } + + public String getZbgnkmmc() { + return zbgnkmmc; + } + + public void setZbgnkmmc(String zbgnkmmc) { + this.zbgnkmmc = zbgnkmmc; + } + + public String getZbjjkmdm() { + return zbjjkmdm; + } + + public void setZbjjkmdm(String zbjjkmdm) { + this.zbjjkmdm = zbjjkmdm; + } + + public String getZbjjkmmc() { + return zbjjkmmc; + } + + public void setZbjjkmmc(String zbjjkmmc) { + this.zbjjkmmc = zbjjkmmc; + } + + public Integer getKzzbid() { + return kzzbid; + } + + public void setKzzbid(Integer kzzbid) { + this.kzzbid = kzzbid; + } + + public String getZbfz6dm() { + return zbfz6dm; + } + + public void setZbfz6dm(String zbfz6dm) { + this.zbfz6dm = zbfz6dm; + } + + public String getZbfz6mc() { + return zbfz6mc; + } + + public void setZbfz6mc(String zbfz6mc) { + this.zbfz6mc = zbfz6mc; + } + + public String getZbfz7dm() { + return zbfz7dm; + } + + public void setZbfz7dm(String zbfz7dm) { + this.zbfz7dm = zbfz7dm; + } + + public String getZbfz7mc() { + return zbfz7mc; + } + + public void setZbfz7mc(String zbfz7mc) { + this.zbfz7mc = zbfz7mc; + } + + public String getZbfz8dm() { + return zbfz8dm; + } + + public void setZbfz8dm(String zbfz8dm) { + this.zbfz8dm = zbfz8dm; + } + + public String getZbfz8mc() { + return zbfz8mc; + } + + public void setZbfz8mc(String zbfz8mc) { + this.zbfz8mc = zbfz8mc; + } + + public String getZbfz9dm() { + return zbfz9dm; + } + + public void setZbfz9dm(String zbfz9dm) { + this.zbfz9dm = zbfz9dm; + } + + public String getZbfz9mc() { + return zbfz9mc; + } + + public void setZbfz9mc(String zbfz9mc) { + this.zbfz9mc = zbfz9mc; + } + + public String getZbfzadm() { + return zbfzadm; + } + + public void setZbfzadm(String zbfzadm) { + this.zbfzadm = zbfzadm; + } + + public String getZbfzamc() { + return zbfzamc; + } + + public void setZbfzamc(String zbfzamc) { + this.zbfzamc = zbfzamc; + } + + public String getYskjkmdm() { + return yskjkmdm; + } + + public void setYskjkmdm(String yskjkmdm) { + this.yskjkmdm = yskjkmdm; + } + + public String getYskjkmmc() { + return yskjkmmc; + } + + public void setYskjkmmc(String yskjkmmc) { + this.yskjkmmc = yskjkmmc; + } + + public Integer getCzyszbid() { + return czyszbid; + } + + public void setCzyszbid(Integer czyszbid) { + this.czyszbid = czyszbid; + } + + public String getZbfz11dm() { + return zbfz11dm; + } + + public void setZbfz11dm(String zbfz11dm) { + this.zbfz11dm = zbfz11dm; + } + + public String getZbfz11mc() { + return zbfz11mc; + } + + public void setZbfz11mc(String zbfz11mc) { + this.zbfz11mc = zbfz11mc; + } + + public String getZbfz12dm() { + return zbfz12dm; + } + + public void setZbfz12dm(String zbfz12dm) { + this.zbfz12dm = zbfz12dm; + } + + public String getZbfz12mc() { + return zbfz12mc; + } + + public void setZbfz12mc(String zbfz12mc) { + this.zbfz12mc = zbfz12mc; + } + + public String getZbfz13dm() { + return zbfz13dm; + } + + public void setZbfz13dm(String zbfz13dm) { + this.zbfz13dm = zbfz13dm; + } + + public String getZbfz13mc() { + return zbfz13mc; + } + + public void setZbfz13mc(String zbfz13mc) { + this.zbfz13mc = zbfz13mc; + } + + public String getZbfz14dm() { + return zbfz14dm; + } + + public void setZbfz14dm(String zbfz14dm) { + this.zbfz14dm = zbfz14dm; + } + + public String getZbfz14mc() { + return zbfz14mc; + } + + public void setZbfz14mc(String zbfz14mc) { + this.zbfz14mc = zbfz14mc; + } + + public String getZbfz15dm() { + return zbfz15dm; + } + + public void setZbfz15dm(String zbfz15dm) { + this.zbfz15dm = zbfz15dm; + } + + public String getZbfz15mc() { + return zbfz15mc; + } + + public void setZbfz15mc(String zbfz15mc) { + this.zbfz15mc = zbfz15mc; + } + + public String getZbfz16dm() { + return zbfz16dm; + } + + public void setZbfz16dm(String zbfz16dm) { + this.zbfz16dm = zbfz16dm; + } + + public String getZbfz16mc() { + return zbfz16mc; + } + + public void setZbfz16mc(String zbfz16mc) { + this.zbfz16mc = zbfz16mc; + } + + public String getZbfz17dm() { + return zbfz17dm; + } + + public void setZbfz17dm(String zbfz17dm) { + this.zbfz17dm = zbfz17dm; + } + + public String getZbfz17mc() { + return zbfz17mc; + } + + public void setZbfz17mc(String zbfz17mc) { + this.zbfz17mc = zbfz17mc; + } + + public String getZbfz18dm() { + return zbfz18dm; + } + + public void setZbfz18dm(String zbfz18dm) { + this.zbfz18dm = zbfz18dm; + } + + public String getZbfz18mc() { + return zbfz18mc; + } + + public void setZbfz18mc(String zbfz18mc) { + this.zbfz18mc = zbfz18mc; + } + + public String getZbfz19dm() { + return zbfz19dm; + } + + public void setZbfz19dm(String zbfz19dm) { + this.zbfz19dm = zbfz19dm; + } + + public String getZbfz19mc() { + return zbfz19mc; + } + + public void setZbfz19mc(String zbfz19mc) { + this.zbfz19mc = zbfz19mc; + } + + public String getZbfz20dm() { + return zbfz20dm; + } + + public void setZbfz20dm(String zbfz20dm) { + this.zbfz20dm = zbfz20dm; + } + + public String getZbfz20mc() { + return zbfz20mc; + } + + public void setZbfz20mc(String zbfz20mc) { + this.zbfz20mc = zbfz20mc; + } + + public String getZbfz21dm() { + return zbfz21dm; + } + + public void setZbfz21dm(String zbfz21dm) { + this.zbfz21dm = zbfz21dm; + } + + public String getZbfz21mc() { + return zbfz21mc; + } + + public void setZbfz21mc(String zbfz21mc) { + this.zbfz21mc = zbfz21mc; + } + + public String getZbfz22dm() { + return zbfz22dm; + } + + public void setZbfz22dm(String zbfz22dm) { + this.zbfz22dm = zbfz22dm; + } + + public String getZbfz22mc() { + return zbfz22mc; + } + + public void setZbfz22mc(String zbfz22mc) { + this.zbfz22mc = zbfz22mc; + } + + public String getZbfz23dm() { + return zbfz23dm; + } + + public void setZbfz23dm(String zbfz23dm) { + this.zbfz23dm = zbfz23dm; + } + + public String getZbfz23mc() { + return zbfz23mc; + } + + public void setZbfz23mc(String zbfz23mc) { + this.zbfz23mc = zbfz23mc; + } + + public String getZbfz24dm() { + return zbfz24dm; + } + + public void setZbfz24dm(String zbfz24dm) { + this.zbfz24dm = zbfz24dm; + } + + public String getZbfz24mc() { + return zbfz24mc; + } + + public void setZbfz24mc(String zbfz24mc) { + this.zbfz24mc = zbfz24mc; + } + + public String getZbfz25dm() { + return zbfz25dm; + } + + public void setZbfz25dm(String zbfz25dm) { + this.zbfz25dm = zbfz25dm; + } + + public String getZbfz25mc() { + return zbfz25mc; + } + + public void setZbfz25mc(String zbfz25mc) { + this.zbfz25mc = zbfz25mc; + } + + public String getZbfz26dm() { + return zbfz26dm; + } + + public void setZbfz26dm(String zbfz26dm) { + this.zbfz26dm = zbfz26dm; + } + + public String getZbfz26mc() { + return zbfz26mc; + } + + public void setZbfz26mc(String zbfz26mc) { + this.zbfz26mc = zbfz26mc; + } + + public String getZbfz27dm() { + return zbfz27dm; + } + + public void setZbfz27dm(String zbfz27dm) { + this.zbfz27dm = zbfz27dm; + } + + public String getZbfz27mc() { + return zbfz27mc; + } + + public void setZbfz27mc(String zbfz27mc) { + this.zbfz27mc = zbfz27mc; + } + + public String getZbfz28dm() { + return zbfz28dm; + } + + public void setZbfz28dm(String zbfz28dm) { + this.zbfz28dm = zbfz28dm; + } + + public String getZbfz28mc() { + return zbfz28mc; + } + + public void setZbfz28mc(String zbfz28mc) { + this.zbfz28mc = zbfz28mc; + } + + public String getZbfz29dm() { + return zbfz29dm; + } + + public void setZbfz29dm(String zbfz29dm) { + this.zbfz29dm = zbfz29dm; + } + + public String getZbfz29mc() { + return zbfz29mc; + } + + public void setZbfz29mc(String zbfz29mc) { + this.zbfz29mc = zbfz29mc; + } + + public String getZbfz30dm() { + return zbfz30dm; + } + + public void setZbfz30dm(String zbfz30dm) { + this.zbfz30dm = zbfz30dm; + } + + public String getZbfz30mc() { + return zbfz30mc; + } + + public void setZbfz30mc(String zbfz30mc) { + this.zbfz30mc = zbfz30mc; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlExtService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlExtService.java new file mode 100644 index 00000000..5fec3a91 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlExtService.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.service; + +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +/** + * @Description 报销单扩展类,api接口配置的扩展方法调这个类 + * @Author xiangerlin + * @Date 2024/8/16 13:49 + **/ +public interface IOerDjmlExtService { + + /** + * 保存方法前,先调这个方法 组装参数 + * @param entity + * @return + */ + SysExtensionApiEntity saveExpensePre(SysExtensionApiEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlService.java new file mode 100644 index 00000000..88efa180 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/IOerDjmlService.java @@ -0,0 +1,38 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.service; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +/** + * @Author:hecan + * @Description:费用报销报销明细总 + * @params: + * @return: + * @Date: 2023/6/19 14:28 + */ +public interface IOerDjmlService { + + /***** + * 费用报销单保存方法,三方系统传JSON数据,解析完成后保存到GRP费用报销单 + * @author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 11:24 + * @param jsonObject 三方系统传递JSON对象数据 + * @return Result + **/ + String saveExpenseDocuments(JSONObject jsonObject); + + + OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity); + + /** + * @Author lvleigang + * @Description 费用报销单处理 + * @Date 9:54 上午 2024/8/14 + * @param jsonObject + * @return java.lang.Object + **/ + @DSTransactional() + Object handleOerDjml(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlExtServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlExtServiceImpl.java new file mode 100644 index 00000000..78d409be --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlExtServiceImpl.java @@ -0,0 +1,586 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.convert.Convert; +import cn.hutool.core.date.DateTime; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.io.FileUtil; +import cn.hutool.core.util.NumberUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlExtService; +import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; +import com.hzya.frame.seeyon.entity.CollAttachmentResDTO; +import com.hzya.frame.seeyon.enums.ColEventTypeEnum; +import com.hzya.frame.seeyon.util.RestUtil; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; +import com.hzya.frame.sysnew.application.database.service.ISysApplicationDatabaseService; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import org.apache.commons.collections.CollectionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.io.*; +import java.net.URLDecoder; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + +/** + * @Description 扩展类,api接口上配置的扩展方法 + * @Author xiangerlin + * @Date 2024/8/16 13:45 + **/ +@Service(value = "oerDjmlExtServiceImpl") +public class OerDjmlExtServiceImpl implements IOerDjmlExtService { + + Logger logger = LoggerFactory.getLogger(getClass()); + @Autowired + private RestUtil restUtil; + @Value("${savefile.path:}") + public String DSK; + @Autowired + private ISysApplicationDatabaseService sysApplicationDatabaseService; + /** + * 保存方法前,先调这个方法 组装参数 + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity saveExpensePre(SysExtensionApiEntity entity) { + try { + String bodys = entity.getBodys(); + String grpDataSourceCode = ""; + SysApplicationEntity receiveApp = entity.getReceiveApp(); + if (null != receiveApp){ + SysApplicationDatabaseEntity sysDatabaseEntity = new SysApplicationDatabaseEntity(); + sysDatabaseEntity.setAppId(receiveApp.getId()); + List dataBaseList = sysApplicationDatabaseService.query(sysDatabaseEntity); + if (CollectionUtils.isNotEmpty(dataBaseList)){ + grpDataSourceCode = dataBaseList.get(0).getSourceCode(); + } + } + Map headers = entity.getHeaders(); + String formmainTableName = headers.get("formmainTableName"); + String forsonTableName = headers.get("forsonTableName"); + String djlx = headers.get("djlx"); + JSONObject bodyObj = JSONObject.parseObject(bodys); + //事件类型 + String eventType = bodyObj.getString("eventType"); + //summaryId + String summaryId = bodyObj.getString("summaryId"); + JSONObject seeyonData = bodyObj.getJSONObject("businessDataStr"); + if (null != seeyonData){ + /** + * 流程发起 保存/更新单据 要全部数据 + * 流程撤销 只更新状态,传单号和状态就好了 + * 流程终止 只更新状态,传单号和状态就好了 + * 流程结束 更新状态 并上传附件 + */ + JSONObject formmainData = seeyonData.getJSONObject(formmainTableName); + JSONArray forsonData = seeyonData.getJSONArray(forsonTableName); + String res = ""; + if (DjlxEnum.TRAVEL.type.equals(djlx)) { + //差旅报销 travel + res = travel(headers,eventType,summaryId,grpDataSourceCode,formmainData,forsonData); + }else if(DjlxEnum.EXPENSE.type.equals(djlx)){ + //费用报销 expense + res = expense(headers,eventType,summaryId,grpDataSourceCode, formmainData, forsonData); + }else if (DjlxEnum.LABOR.type.equals(djlx)){ + //劳务费 labor + } + if (StrUtil.isNotEmpty(res)){ + entity.setBodys(res); + return entity; + } + } + }catch (Exception ex ){ + logger.error("保存报销单之前组装参数出错",ex); + } + return null; + } + + /** + * 费用报销单 + * @param headers 请求头 + * @param eventType 事件类型 + * @param summaryId 流程id + * @param dataSourceCode + * @param formmainData 主表数据 + * @param forsonData 子表数据 + */ + private String expense(Map headers, String eventType,String summaryId, String dataSourceCode,JSONObject formmainData, JSONArray forsonData) { + String djlxid = headers.get("djlxid"); + String flowcode = headers.get("flowcode"); + String fileApiCode = headers.get("file_api_code"); + OerDjmlEntity djml = new OerDjmlEntity(); + djml.setLclb(eventType); + djml.setDjbh(formmainData.getString("field0001")); + djml.setDjlxId(djlxid); + djml.setDataSourceCode(dataSourceCode); + JSONObject forsonData0 = forsonData.getJSONObject(0); + //流程发起 + if (ColEventTypeEnum.ONSTART.getType().equals(eventType)){ + djml.setGsdm(""); + djml.setKjnd(""); + djml.setZt("2"); + djml.setCrerdm(""); + djml.setCrermc(""); + djml.setCrerdate(timestampConvert(formmainData.getString("start_date"),"yyyyMMdd")); + djml.setDjdate(timestampConvert(formmainData.getString("field0016"),"yyyyMMdd")); + djml.setJe(formmainData.getString("field0052")); + djml.setJedx(formmainData.getString("field0071")); + djml.setYjje("0.00"); + djml.setThje("0.00"); + djml.setBlje(formmainData.getString("field0052")); + djml.setFjs(formmainData.getString("field0018")); + djml.setZy(formmainData.getString("field0027")); + djml.setBmdm(""); + djml.setBmmc(""); + djml.setXmdm(""); + djml.setXmmc(""); + djml.setGrdm(""); + djml.setGrmc(""); + djml.setJjdm(""); + djml.setJjmc(""); + djml.setYhzh(forsonData0.getString("field0078")); + djml.setKhyh(forsonData0.getString("field0077")); + djml.setCurshjd("-9"); + djml.setNextshjd("999"); + djml.setFlowcode(flowcode); + djml.setJsfs(""); + djml.setTel(""); + djml.setSsrq(DateUtil.format(formmainData.getDate("startDate"),"yyyyMMddHHmmssSSS")); + djml.setSsrid(""); + djml.setSsr(""); + //报销明细 + List djnrList = new ArrayList<>(); + //结算方式 + List jsfsList = new ArrayList<>(); + //预算指标 + List yszbList = new ArrayList<>(); + int xh = 1; + for (int i = 0; i< forsonData.size(); i++) { + JSONObject forson = forsonData.getJSONObject(i); + String gsdm = forson.getString(""); + String kjnd = forson.getString(""); + String je = forson.getString("field0063"); + //单据内容 + OerDjnrEntity djnr = new OerDjnrEntity(); + djnr.setXh(String.valueOf(xh)); + djnr.setGsdm(gsdm); + djnr.setKjnd(kjnd); + djnr.setDjlxId(djlxid); + djnr.setBnxId(headers.get("bxmx_bnxid")); + djnr.setJe(je); + djnr.setBmdm(""); + djnr.setBmmc(""); + djnr.setXmdm(""); + djnr.setXmmc(""); + djnr.setJjdm(""); + djnr.setJjmc(""); + djnr.setFzx8dm(""); + djnr.setFzx8mc(""); + djnr.setZbId(""); + djnr.setJflxdm(""); + djnr.setJflxmc(""); + djnr.setZy(forson.getString("field0079")); + djnr.setFjs(djml.getFjs()); + djnrList.add(djnr); + //结算方式 + OerDjjsfsEntity jsfs = new OerDjjsfsEntity(); + jsfs.setGsdm(gsdm); + jsfs.setKjnd(kjnd); + jsfs.setDjlxId(djlxid); + jsfs.setBnxid(headers.get("jsfs_bnxid")); + jsfs.setXh(String.valueOf(xh)); + jsfs.setJsfsdm(""); + jsfs.setJsfsmc(""); + jsfs.setKmdm(""); + jsfs.setKmmc(""); + jsfs.setSkr(forson.getString("field0076")); + jsfs.setKhyh(forson.getString("field0077")); + jsfs.setYhzh(forson.getString("field0078")); + jsfs.setJe(je); + jsfs.setYh(""); + jsfs.setYhhh(""); + jsfs.setProvince(""); + jsfs.setCity(""); + jsfs.setRytype(""); + jsfs.setYt(forson.getString("field0079")); + jsfsList.add(jsfs); + //预算指标 + OerYszbEntity yszb = new OerYszbEntity(); + BeanUtil.copyProperties(djnr,yszb); + yszb.setBnxId(headers.get("yszb_bnxid")); + yszb.setZbdm(""); + yszb.setZy(forson.getString("field0079")); + yszb.setKmdm(""); + yszb.setKmmc(""); + yszb.setXh(String.valueOf(xh)); + yszbList.add(yszb); + xh++; + } + } + return null; + } + + /** + * 差旅报销单 + * @param headers 请求头 + * @param eventType 事件类型 + * @param summaryId 流程id + * @param dataSourceCode + * @param formmainData 主表数据 + * @param forsonData 子表数据 + */ + private String travel(Map headers, String eventType,String summaryId, String dataSourceCode,JSONObject formmainData, JSONArray forsonData) { + String djlxid = headers.get("djlxid"); + String flowcode = headers.get("flowcode"); + String fileApiCode = headers.get("file_api_code"); + OerDjmlEntity djml = new OerDjmlEntity(); + djml.setLclb(eventType); + djml.setDjbh(formmainData.getString("field0001")); + djml.setDataSourceCode(dataSourceCode); + //流程发起 + if (ColEventTypeEnum.ONSTART.getType().equals(eventType)){ + JSONObject forjsonData0 = forsonData.getJSONObject(0); + djml.setGsdm(forjsonData0.getString("field0084")); + djml.setKjnd(forjsonData0.getString("field0082")); + djml.setDjlxId(djlxid); + djml.setZt("2"); + djml.setCrerdm(formmainData.getString("field0107")); + djml.setCrermc(formmainData.getString("field0114")); + djml.setCrerdate(timestampConvert(formmainData.getString("start_date"),"yyyyMMdd")); + djml.setDjdate((timestampConvert(formmainData.getString("field0002"),"yyyyMMdd"))); + djml.setJe(formmainData.getString("field0033")); + djml.setJedx(formmainData.getString("field0034")); + djml.setYjje("0.00"); + djml.setThje("0.00"); + djml.setBlje(formmainData.getString("field0080")); + djml.setFjs( formmainData.getString("field0004")); + djml.setZy( formmainData.getString("field0009")); + //部门代码 + djml.setBmdm(formmainData.getString("field0109")); + djml.setBmmc(formmainData.getString("field0120")); + //项目代码 + djml.setXmdm(forjsonData0.getString("field0074")); + djml.setXmmc(forjsonData0.getString("field0075")); + //个人代码 + djml.setGrdm(formmainData.getString("field0108")); + djml.setGrmc(formmainData.getString("field0115")); + //经济代码 + djml.setJjdm(""); + djml.setJjmc(""); + //银行帐号 开户银行 + djml.setYhzh(forjsonData0.getString("field0079")); + djml.setKhyh(forjsonData0.getString("field0078")); + //当前审核节点、下个审核节点 ,不在grp审批,是不是不用填了 + djml.setCurshjd("-9"); + djml.setNextshjd("999"); + djml.setFlowcode(flowcode); + djml.setJsfs(spliceStr(forjsonData0.getString("field0095"), forjsonData0.getString("field0094"))); + //电话,oa上没有 + djml.setTel(formmainData.getString("field0110")); + djml.setClf_ccr(formmainData.getString("field0113")); + //送审日期 + djml.setSsrq( DateUtil.format(formmainData.getDate("startDate"),"yyyyMMddHHmmssSSS")); + djml.setSsrid(formmainData.getString("field0108")); + djml.setSsr(formmainData.getString("field0115")); + djml.setClf_cclb(forjsonData0.getString("field0098")); + //报销明细 + List djnrList = new ArrayList<>(); + //结算方式 + List jsfsList = new ArrayList<>(); + //预算指标 + List yszbList = new ArrayList<>(); + int xh = 1; + for (int i = 0; i< forsonData.size(); i++) { + JSONObject forson = forsonData.getJSONObject(i); + String gsdm = forson.getString("field0084"); + String kjnd = forson.getString("field0082"); + String je = forson.getString("field0029"); + //单据内容 + OerDjnrEntity djnr = new OerDjnrEntity(); + djnr.setXh(String.valueOf(xh)); + djnr.setGsdm(gsdm); + djnr.setKjnd(kjnd); + djnr.setDjlxId(djlxid); + djnr.setBnxId(headers.get("bxmx_bnxid")); + djnr.setJe(je); + djnr.setBmdm(forson.getString("field0088")); + djnr.setBmmc(forson.getString("field0087")); + djnr.setXmdm(forson.getString("field0074")); + djnr.setXmmc(forson.getString("field0075")); + djnr.setJjdm(""); + djnr.setJjmc(""); + //grp库里有,不知道是什么 1001基本支出 2001项目支出(网银) + djnr.setFzx8dm(""); + djnr.setFzx8mc(""); + //指标id + djnr.setZbId(forson.getString("field0085")); + djnr.setJflxdm(""); + djnr.setJflxmc(""); + djnr.setZy(forson.getString("field0030")); + djnr.setClf_startdate(timestampConvert(forson.getString("field0016"),"yyyy-MM-dd")); + djnr.setClf_enddate(timestampConvert(forson.getString("field0017"),"yyyy-MM-dd")); + djnr.setClf_ccdd(forson.getString("field0019")); + djnr.setClf_ccksd(forson.getString("field0018")); + djnr.setClf_djzs(djml.getFjs()); + djnr.setClf_ccts(forson.getString("field0023")); + djnr.setClf_cctsbz(forson.getString("field0023")); + djnr.setClf_ccrs(forson.getString("field0021")); + djnr.setClf_zw(forson.getString("field0092")); + djnr.setClf_jtgj(forson.getString("field0119")); + //住宿费 + djnr.setClf_zsbz(forson.getString("field0070")); + djnr.setClf_zsf(forson.getString("field0025")); + //伙食补助 + djnr.setClf_hsbz(forson.getString("field0026")); + djnr.setClf_hsf(forson.getString("field0116")); + //交通补助 + djnr.setClf_jtbz(forson.getString("field0024")); + djnr.setClf_jtbzf(forson.getString("field0117")); + djnr.setClf_jtf(forson.getString("field0117")); + //其他 + djnr.setClf_qtf(forson.getString("field0028")); + //公杂 + + djnr.setFjs(djml.getFjs()); + djnrList.add(djnr); + //结算方式 + OerDjjsfsEntity jsfs = new OerDjjsfsEntity(); + jsfs.setGsdm(gsdm); + jsfs.setKjnd(kjnd); + jsfs.setDjlxId(djlxid); + jsfs.setBnxid(headers.get("jsfs_bnxid")); + jsfs.setXh(String.valueOf(xh)); + jsfs.setJsfsdm(forson.getString("field0095")); + jsfs.setJsfsmc(forson.getString("field0094")); + jsfs.setKmdm(forson.getString("field0089")); + jsfs.setKmmc(forson.getString("field0066")); + jsfs.setSkr(forson.getString("field0096")); + jsfs.setKhyh(forson.getString("field0078")); + jsfs.setYhzh(forson.getString("field0079")); + jsfs.setJe(je); + jsfs.setYh(""); + jsfs.setYhhh(""); + jsfs.setProvince(""); + jsfs.setCity(""); + //支付方式为个人、公务卡时 可以选择 经办人、负责人、其他 + jsfs.setRytype(""); + //oa没有 + jsfs.setYt(forson.getString("field0030")); + jsfsList.add(jsfs); + //预算指标 + OerYszbEntity yszb = new OerYszbEntity(); + BeanUtil.copyProperties(djnr,yszb); + yszb.setBnxId(headers.get("yszb_bnxid")); + yszb.setZbdm(forson.getString("field0085")); + yszb.setZy(forson.getString("field0111")); + yszb.setKmdm(forson.getString("field0089")); + yszb.setKmmc(forson.getString("field0066")); + yszb.setXh(String.valueOf(xh)); + yszbList.add(yszb); + xh++; + } + logger.info("报销单主表:{}",JSONObject.toJSONString(djml)); + logger.info("报销单明细表:{}",JSONObject.toJSONString(djnrList)); + logger.info("报销单结算方式:{}",JSONObject.toJSONString(jsfsList)); + logger.info("报销单预算指标:{}",JSONObject.toJSONString(yszbList)); + djml.setOerDjnrEntityList(djnrList); + djml.setOerDjjsfsEntityList(jsfsList); + djml.setOerYszbEntityList(yszbList); + }else if (ColEventTypeEnum.ONSTOP.getType().equals(eventType)){ + //流程终止 修改状态,释放指标 + djml.setZt("0"); + djml.setCurshjd("0"); + djml.setNextshjd("-9"); + djml.setSsrid(null); + djml.setSsr(null); + djml.setSsrq(null); + djml.setShrId(null); + djml.setShrq(null); + }else if (ColEventTypeEnum.ONCANCEL.getType().equals(eventType)){ + //流程撤销 修改状态,释放指标 + djml.setZt("1"); + djml.setCurshjd("0"); + djml.setNextshjd("-9"); + djml.setSsrid(null); + djml.setSsr(null); + djml.setSsrq(null); + djml.setShrId(null); + djml.setShrq(null); + }else if (ColEventTypeEnum.ONPROCESSFINISHED.getType().equals(eventType)){ + //流程结束事件 + djml.setZt("3"); + djml.setCurshjd("999"); + djml.setNextshjd("-1"); + //查询协同附件 + List fileInfoList = fileDownload(summaryId, fileApiCode); + djml.setFileInfoList(fileInfoList); + } + String djmlStr = JSONObject.toJSONString(djml); + logger.info("差旅报销单报文:{}",djmlStr); + return djmlStr; + } + + /** + * 时间戳转成 指定格式 + * @param timestamp 时间戳 + * @param format 格式 + * @return + */ + private String timestampConvert(String timestamp,String format){ + if (StrUtil.isNotEmpty(timestamp) && NumberUtil.isNumber(timestamp)){ + try { + DateTime date = DateUtil.date(Long.valueOf(timestamp)); + String formattedDate = DateUtil.format(date, "yyyyMMdd"); + return formattedDate; + }catch (Exception e){ + logger.error("日期转换出错:{}",e); + } + } + return timestamp; + } + + /** + * 附件下载并压缩成zip + * @param summaryId + * @param apiCode + * @return + */ + private List fileDownload(String summaryId,String apiCode){ + try { + List colAttachmentList = restUtil.getColAttachments(summaryId, "0", apiCode, null); + //下载协同附件 + if (CollectionUtils.isNotEmpty(colAttachmentList)){ + String token = restUtil.getToken(null, apiCode); + List fileList = new ArrayList<>(); + for (CollAttachmentResDTO att : colAttachmentList) { + FileInfoDTO fileInfoDTO = new FileInfoDTO(); + + String fileName = URLDecoder.decode(att.getFilename(), "UTF-8"); + byte[] bytes = restUtil.downloadFileBytes(null, apiCode, att.getFileUrl(), fileName,token); + if (!FileUtil.isDirectory(DSK+ File.separator+DateUtil.today())){ + FileUtil.mkdir(DSK+ File.separator+DateUtil.today()); + } + String filePath = DSK+ File.separator+DateUtil.today()+File.separator+att.getFileUrl()+"."+att.getExtension(); + File file = new File(filePath); + // 使用 FileOutputStream 写入字节数组到文件 + try (FileOutputStream fos = new FileOutputStream(file)) { + fos.write(bytes); + } + if (null != file){ + String zipPath = DSK+File.separator+DateUtil.today()+File.separator+att.getFileUrl()+".zip"; + ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipPath), Charset.forName("GBK")); + writeZipFile(file, zos, fileName); + zos.close(); + // 获取压缩文件的字节数组 + File zipFile = new File(zipPath); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream((int) zipFile.length()); + BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(zipFile)); + int buf_size = 1024; + byte[] buffer = new byte[buf_size]; + int len = 0; + while (-1 != (len = bufferedInputStream.read(buffer, 0, buf_size))) { + byteArrayOutputStream.write(buffer, 0, len); + } + byte[] fileByte = byteArrayOutputStream.toByteArray(); + fileInfoDTO.setData(fileByte); + fileInfoDTO.setFile_size(att.getSize()); + fileInfoDTO.setFile_name(fileName); + fileList.add(fileInfoDTO); + } + } + return fileList; + } + }catch (Exception e){ + logger.error("下载附件出错:{}",e); + } + return null; + } + /** + * 把文件压缩成zip + * @param file 要压缩的文件 + * @param zos 文件压缩流 + * @param fileName 文件名 + */ + private void writeZipFile(File file, ZipOutputStream zos, String fileName) { + if (null != file && null != zos) { + try { + logger.info("=====压缩文件====="); + zos.putNextEntry(new ZipEntry(fileName)); + FileInputStream fos = new FileInputStream(file); + BufferedInputStream bis = new BufferedInputStream(fos); + int len; + byte[] buf = new byte[1024]; + while ((len = bis.read(buf, 0, 1024)) != -1) { + zos.write(buf, 0, len); + } + bis.close(); + fos.close(); + logger.info("=====压缩完成====="); + } catch (Exception e) { + e.printStackTrace(); + logger.error("=====压缩文件出错====="); + } + } + } + + /** + * code和name拼接[] + * @param code + * @param name + * @return 格式:03[公务卡] + */ + private String spliceStr(String code,String name){ + String template = "{}[{}]"; + return StrUtil.format(template,code,name); + } + + public enum DjlxEnum { + TRAVEL("travel","差旅报销单"), + EXPENSE("expense","费用报销单"), + LABOR("labor","劳务费报销单"), + ; + + private String type; + private String name; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + DjlxEnum(String type, String name) { + this.type = type; + this.name = name; + } + } + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlServiceImpl.java new file mode 100644 index 00000000..2b0c256f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjml/service/impl/OerDjmlServiceImpl.java @@ -0,0 +1,1323 @@ +package com.hzya.frame.grpU8.nxproof.oerdjml.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.convert.Convert; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.IdUtil; +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.grpU8.nxproof.attachment.dao.IAttachmentFileDao; +import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao; +import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity; +import com.hzya.frame.grpU8.nxproof.oerannex.dao.IOerAnnexDao; +import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity; +import com.hzya.frame.grpU8.nxproof.oerannex.service.IOerAnnexService; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.IOerDjjsfsDao; +import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao; +import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.GbiZbsyrecAllEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity; +import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlService; +import com.hzya.frame.grpU8.nxproof.oerdjnr.dao.IOerDjnrDao; +import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity; +import com.hzya.frame.grpU8.nxproof.oeryszb.dao.IOerYszbDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; +import com.hzya.frame.grpU8.nxproof.pubauditlog.dao.IPubAuditLogDao; +import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity; +import com.hzya.frame.grpU8.nxproof.pubobjflow.dao.IPubObjFlowDao; +import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity; +import com.hzya.frame.mdm.entity.MdmDto; +import com.hzya.frame.seeyon.enums.ColEventTypeEnum; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.commons.collections.CollectionUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.net.URLDecoder; +import java.util.ArrayList; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * @Author:hecan + * @Description:费用报销报销明细总 + * @params: + * @return: + * @Date: 2023/6/19 14:31 + */ +@Service(value = "oerDjmlService") +public class OerDjmlServiceImpl implements IOerDjmlService { + private static Logger logger= LogManager.getLogger(OerDjmlServiceImpl.class); + + @Autowired + private IGbiZbsyrecDao iGbiZbsyrecDao; + @Autowired + private IOerDjjsfsDao iOerDjjsfsDao; + @Autowired + private IOerDjmlDao iOerDjmlDao; + @Autowired + private IOerAnnexDao oerAnnexDao; + @Autowired + private IAttachmentFileDao attachmentFileDao; + @Autowired + private IOerDjnrDao iOerDjnrDao; + @Autowired + private IOerYszbDao iOerYszbDao; + @Autowired + private IPubAuditLogDao iPubAuditLogDao; + @Autowired + private IPubObjFlowDao iPubObjFlowDao; + + @Override + public String saveExpenseDocuments(JSONObject jsonObject) { + + //jsonObject = createTestData(); + logger.info("费用报销单开始保存,接收三方系统参数:------>"+jsonObject.toJSONString()); + //获取主表数据 + logger.info("开始处理数据:------>"); + String gsdm = jsonObject.getString("gsdm"); + logger.info("根据公司代码查询最大单据编号,公司代码:------>"+gsdm); + if(StrUtil.isEmpty(gsdm)){ + throw new BaseSystemException("公司代码不能为空!请排查参数gsdm"); + } + if(StrUtil.isEmpty(jsonObject.getString("djdate"))){ + throw new BaseSystemException("单据日期不能为空!请排查参数djdate"); + } + /* logger.info("国子系统传递过来的发票号为:------>"+jsonObject.getString("fph")); + if(StrUtil.isEmpty(jsonObject.getString("fph")) || "".equals(jsonObject.getString("fph"))){ + jsonObject.put("fph",""); + }else{ + jsonObject.put("fph",jsonObject.getString("fph")+"-"); + } + logger.info("调整之后的发票号为:------>"+jsonObject.getString("fph")); + if(StrUtil.isEmpty(jsonObject.getString("zy")) || "".equals(jsonObject.getString("zy"))){ + StringBuffer stringBuffer=new StringBuffer(); + if(StrUtil.isNotEmpty(jsonObject.getString("fph")) || !"".equals(jsonObject.getString("fph"))){ + stringBuffer.append(jsonObject.getString("fph")); + } + if(StrUtil.isNotEmpty(jsonObject.getString("bmmc")) || !"".equals(jsonObject.getString("bmmc"))){ + stringBuffer.append(jsonObject.getString("bmmc")+"-"); + } + if(StrUtil.isNotEmpty(jsonObject.getString("zcmc")) || !"".equals(jsonObject.getString("zcmc"))){ + stringBuffer.append(jsonObject.getString("zcmc")); + } + jsonObject.put("zy",stringBuffer); + }*/ + logger.info("主表摘要为:{}",jsonObject.getString("zy")); + OerDjmlEntity oerDjmlEntity=new OerDjmlEntity(); + oerDjmlEntity.setGsdm(gsdm); + oerDjmlEntity.setDjdate(jsonObject.getString("djdate")); + oerDjmlEntity.setFph(nullConvert(jsonObject.getString("fph"))); + String maxDjbh = iOerDjmlDao.getMaxDjbgByGsdm(oerDjmlEntity); + logger.info("获取到最大单据编号:------>"+maxDjbh); + //查询最大单据ID mlid + String maxMlId = iOerDjmlDao.getMaxMlIdByGsdm(oerDjmlEntity); + logger.info("获取到最大单据ID MLID:------>"+maxMlId); + logger.info("组装单据主表数据开始:------>"); + + OerDjmlEntity oerdjml = createMainData(jsonObject,maxDjbh,maxMlId); + logger.info("保存主表信息:------>"); + iOerDjmlDao.save("OerDjmlEntity_insert",oerdjml); + logger.info("保存完主表信息后,更新主表摘要:------>"); + OerDjmlEntity oerDjml = updateOerDjmlZy(jsonObject, maxMlId); + logger.info("更新主表摘要开始----->"); + iOerDjmlDao.update("OerDjmlEntity_update",oerDjml); + logger.info("组装单据报销明细开始:------>"); + List oerDjnrEntityList = creatOerDjnrEntity(jsonObject,maxDjbh,maxMlId); + logger.info("保存报销明细开始:------>"); + for(OerDjnrEntity djnrEntity : oerDjnrEntityList){ + if(djnrEntity.getZy()==null||("").equals(djnrEntity.getZy())){ + StringBuffer stringBuffer=new StringBuffer(); + if(StrUtil.isNotEmpty(jsonObject.getString("fph")) || !"".equals(jsonObject.getString("fph"))){ + stringBuffer.append(jsonObject.getString("fph")); + } + if(StrUtil.isNotEmpty(jsonObject.getString("bmmc")) || !"".equals(jsonObject.getString("bmmc"))){ + stringBuffer.append(jsonObject.getString("bmmc")+"-"); + } + if(StrUtil.isNotEmpty(jsonObject.getString("zcmc")) || !"".equals(jsonObject.getString("zcmc"))){ + stringBuffer.append(jsonObject.getString("zcmc")); + } + djnrEntity.setZy(stringBuffer.toString()); + } + logger.info("明细表摘要为:{}",djnrEntity.getZy()); + iOerDjnrDao.save("OerDjnrEntity_insert",djnrEntity); + logger.info("保存完报销明细后,根据明细数据生成预算指标数据:------>"); + OerYszbEntity yszbEntity = createOerYszbEntity(djnrEntity,maxMlId); + logger.info("保存预算指标开始:------>"); + iOerYszbDao.save("OerYszbEntity_insert",yszbEntity); + logger.info("保存预算指标记录:------>"); + GbiZbsyrecEntity oeryszb= creteOerYszbEntity(jsonObject,djnrEntity); + iGbiZbsyrecDao.save("GbiZbsyrecEntity_insert",oeryszb); + } + logger.info("组装单据结算方式明细开始:------>"); + List oerDjjsfsEntityList = creatOerDjjsfsEntityList(jsonObject,maxDjbh,maxMlId); + logger.info("保存结算方式明细开始:------>"); + for(OerDjjsfsEntity oerdjjsfs :oerDjjsfsEntityList){ + iOerDjjsfsDao.save("OerDjjsfsEntity_insert",oerdjjsfs); + } + //保存日志表PubAuditLog + List pubAuditLogEntityList = createPubAuditLog(jsonObject, maxMlId); + for (PubAuditLogEntity pubAuditLog : pubAuditLogEntityList) { + iPubAuditLogDao.save("PubAuditLogEntity_insert",pubAuditLog); + } + //保存节点PUB_OBJ_FLOW + PubObjFlowEntity pubObjFlowEntity = createPubObjFlow(jsonObject, maxMlId); + iPubObjFlowDao.save("PubObjFlowEntity_insert",pubObjFlowEntity); + return maxDjbh; + } + + @Override + public OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity) { + OerDjmlEntity oerDjmlEntity1 = iOerDjmlDao.queryOerDjmlEntity(oerDjmlEntity); + return oerDjmlEntity1; + } + + + + /** + * 保存节点PUB_OBJ_FLOW + * @param jsonObject + * @param maxMlId + */ + public PubObjFlowEntity createPubObjFlow(JSONObject jsonObject, String maxMlId){ + PubObjFlowEntity pubObjFlowEntity = jsonObject.toJavaObject(PubObjFlowEntity.class); + PubObjFlowEntity pubObjFlowEntityPofid=iPubObjFlowDao.query(pubObjFlowEntity, "PubObjFlowEntity_list_base"); + pubObjFlowEntity.setDjh(maxMlId); + pubObjFlowEntity.setPofId(pubObjFlowEntityPofid.getPofId()); + pubObjFlowEntity.setModCode("OER"); + pubObjFlowEntity.setDjlx(jsonObject.getString("djlxId")); + pubObjFlowEntity.setShrs(jsonObject.getString("crerdm")); + pubObjFlowEntity.setShrmc(jsonObject.getString("crermc")); + pubObjFlowEntity.setFlowcode("000006"); + pubObjFlowEntity.setAuditFlag("999"); + pubObjFlowEntity.setAuditAftFlag("-1"); + pubObjFlowEntity.setIsaudit("1"); + return pubObjFlowEntity; + } + + /** + * 保存节点PUB_OBJ_FLOW + * @param entity + * @param maxMlId + */ + public PubObjFlowEntity setPubObjFlow(OerDjmlEntity entity, String maxMlId){ + PubObjFlowEntity pubObjFlowEntity = new PubObjFlowEntity(); + pubObjFlowEntity.setDataSourceCode(entity.getDataSourceCode()); + PubObjFlowEntity pubObjFlowEntityPofid=iPubObjFlowDao.query(pubObjFlowEntity, "PubObjFlowEntity_list_base"); + pubObjFlowEntity.setDjh(maxMlId); + pubObjFlowEntity.setPofId(pubObjFlowEntityPofid.getPofId()); + pubObjFlowEntity.setModCode("OER"); + pubObjFlowEntity.setDjlx(entity.getDjlxId()); + pubObjFlowEntity.setShrs(entity.getCrerdm()); + pubObjFlowEntity.setShrmc(entity.getCrermc()); + pubObjFlowEntity.setFlowcode(entity.getFlowcode()); + pubObjFlowEntity.setAuditFlag("999"); + pubObjFlowEntity.setAuditAftFlag("-1"); + pubObjFlowEntity.setIsaudit("1"); + return pubObjFlowEntity; + } + + /** + * 新增日志表PubAuditLog + * @param jsonObject + * @param maxMlId + */ + public List createPubAuditLog(JSONObject jsonObject,String maxMlId){ + List pubAuditLogEntityList=new ArrayList<>(); + //拼接送审参数 + PubAuditLogEntity pubAuditLogEntity = new PubAuditLogEntity(); + pubAuditLogEntity.setBillname("费用报销[向导式]"); + pubAuditLogEntity.setFlowname("暂时费用报销审批流"); + pubAuditLogEntity.setNodeseq("-9"); + pubAuditLogEntity.setNodename("送审"); + pubAuditLogEntity.setAuditorId("1"); + pubAuditLogEntity.setAuditor("系统管理员"); + pubAuditLogEntity.setAmt(jsonObject.getString("je")); + pubAuditLogEntity.setRemark("国子系统送审成功"); + pubAuditLogEntity.setAtype("国子系统通过"); + pubAuditLogEntity.setBillId(maxMlId); + pubAuditLogEntity.setModname("OER"); + pubAuditLogEntity.setFlowcode("000006"); + pubAuditLogEntity.setGsdm(jsonObject.getString("gsdm")); + pubAuditLogEntity.setKjnd(jsonObject.getString("kjnd")); + pubAuditLogEntity.setServdatetime("1"); + pubAuditLogEntity.setAdatetime("1"); + //获取最大值logid + PubAuditLogEntity pubAuditLogEntityLogid = iPubAuditLogDao.query(pubAuditLogEntity, "PubAuditLogEntity_list_base_max"); + pubAuditLogEntity.setLogId(pubAuditLogEntityLogid.getLogId()); + //获取最大值logseq + PubAuditLogEntity pubAuditLogEntityLogseq=iPubAuditLogDao.query(pubAuditLogEntity,"PubAuditLogEntity_list_base_logseq"); + pubAuditLogEntity.setLogseq(pubAuditLogEntityLogseq.getLogseq()); + + /* //拼接审核参数 + PubAuditLogEntity pubAuditLogEntityTwo = new PubAuditLogEntity(); + pubAuditLogEntityTwo.setBillname("费用报销[向导式]"); + pubAuditLogEntityTwo.setFlowname("暂时费用报销审批流"); + pubAuditLogEntityTwo.setBizname("费用报销[向导式]"); + pubAuditLogEntityTwo.setNodeseq("999"); + pubAuditLogEntityTwo.setNodename("财务稽核"); + pubAuditLogEntityTwo.setAuditorId("1"); + pubAuditLogEntityTwo.setAuditor("系统管理员"); + pubAuditLogEntityTwo.setAmt(jsonObject.getString("je")); + pubAuditLogEntityTwo.setRemark("国子系统审核通过"); + pubAuditLogEntityTwo.setAtype("通过"); + pubAuditLogEntityTwo.setBillId(maxMlId); + pubAuditLogEntityTwo.setModname("OER"); + pubAuditLogEntityTwo.setFlowcode(jsonObject.getString("flowcode")); + pubAuditLogEntityTwo.setGsdm(jsonObject.getString("gsdm")); + pubAuditLogEntityTwo.setKjnd(jsonObject.getString("kjnd")); + pubAuditLogEntityTwo.setServdatetime("1"); + pubAuditLogEntityTwo.setAdatetime("1"); + //获取最大值logid + PubAuditLogEntity pubAuditLogEntityLogids = iPubAuditLogDao.query(pubAuditLogEntityTwo, "PubAuditLogEntity_list_base_max"); + pubAuditLogEntityTwo.setLogId(pubAuditLogEntityLogids.getLogId()); + //获取最大值logseq + PubAuditLogEntity pubAuditLogEntityLogseqs=iPubAuditLogDao.query(pubAuditLogEntityTwo,"PubAuditLogEntity_list_base_logseq"); + pubAuditLogEntityTwo.setLogseq(pubAuditLogEntityLogseqs.getLogseq()); + pubAuditLogEntityList.add(pubAuditLogEntity); + pubAuditLogEntityList.add(pubAuditLogEntityTwo);*/ + + pubAuditLogEntityList.add(pubAuditLogEntity); + return pubAuditLogEntityList; + } + /** + * 新增日志表PubAuditLog + * @param entity + * @param maxMlId + */ + public List setPubAuditLog(OerDjmlEntity entity,String maxMlId){ + List pubAuditLogEntityList=new ArrayList<>(); + //拼接送审参数 + PubAuditLogEntity pubAuditLogEntity = new PubAuditLogEntity(); + pubAuditLogEntity.setBillname("费用报销[向导式]"); + pubAuditLogEntity.setFlowname("暂时费用报销审批流"); + pubAuditLogEntity.setNodeseq("-9"); + pubAuditLogEntity.setNodename("送审"); + pubAuditLogEntity.setAuditorId("1"); + pubAuditLogEntity.setAuditor("系统管理员"); + pubAuditLogEntity.setAmt(entity.getJe()); + pubAuditLogEntity.setRemark("国子系统送审成功"); + pubAuditLogEntity.setAtype("国子系统通过"); + pubAuditLogEntity.setBillId(maxMlId); + pubAuditLogEntity.setModname("OER"); + pubAuditLogEntity.setFlowcode(entity.getFlowcode()); + pubAuditLogEntity.setGsdm(entity.getGsdm()); + pubAuditLogEntity.setKjnd(entity.getKjnd()); + pubAuditLogEntity.setServdatetime("1"); + pubAuditLogEntity.setAdatetime("1"); + //获取最大值logid + pubAuditLogEntity.setDataSourceCode(entity.getDataSourceCode()); + PubAuditLogEntity pubAuditLogEntityLogid = iPubAuditLogDao.query(pubAuditLogEntity, "PubAuditLogEntity_list_base_max"); + pubAuditLogEntity.setLogId(pubAuditLogEntityLogid.getLogId()); + //获取最大值logseq + PubAuditLogEntity pubAuditLogEntityLogseq=iPubAuditLogDao.query(pubAuditLogEntity,"PubAuditLogEntity_list_base_logseq"); + pubAuditLogEntity.setLogseq(pubAuditLogEntityLogseq.getLogseq()); + + + + pubAuditLogEntityList.add(pubAuditLogEntity); + return pubAuditLogEntityList; + } + + /** + * 更新主表摘要内容 + * @param jsonObject + * @return + */ + private OerDjmlEntity updateOerDjmlZy(JSONObject jsonObject,String maxMlId){ + OerDjmlEntity oerDjml=new OerDjmlEntity(); + oerDjml.setZy(jsonObject.getString("zy")); + oerDjml.setGsdm(jsonObject.getString("gsdm")); + oerDjml.setKjnd(jsonObject.getString("kjnd")); + oerDjml.setDjlxId(jsonObject.getString("djlxId")); + oerDjml.setMlId(maxMlId); + return oerDjml; + } + + /***** + * 根据预算指标,生成指标生成指标使用记录 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 16:43 + * @Param [djnrEntity] + * @return com.hzya.frame.online.expense.insert.oerYszb.entity.oerYszbEntity + **/ + private GbiZbsyrecEntity creteOerYszbEntity(JSONObject jsonObject,OerDjnrEntity djnrEntity) { + GbiZbsyrecEntity yszbEntity = new GbiZbsyrecEntity(); + BeanUtil.copyProperties(djnrEntity,yszbEntity); + yszbEntity.setModule(djnrEntity.getModule()); + yszbEntity.setDjlx(djnrEntity.getDjlxId()); + yszbEntity.setDjId(djnrEntity.getMlId()); + yszbEntity.setDjflh(djnrEntity.getDjflh()); + yszbEntity.setDjflmx(djnrEntity.getMlId()); + yszbEntity.setDjywrq(jsonObject.getString("djdate")); + //yszbEntity.setDjzt("1");//审核中 + yszbEntity.setDjzt("2");//已审核 + yszbEntity.setJhId(djnrEntity.getZbId()); + yszbEntity.setDjje(djnrEntity.getJe()); + yszbEntity.setSl("0"); + yszbEntity.setDjzy(djnrEntity.getZy()); + yszbEntity.setSzfx("1"); + yszbEntity.setZblb("MXZB"); + yszbEntity.setJdzb("0"); + yszbEntity.setCzlx("0"); + yszbEntity.setZzbz("0"); + return yszbEntity; + } + + /***** + * 根据预算指标,生成指标生成指标使用记录 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 16:43 + * @Param [djnrEntity] + * @return com.hzya.frame.online.expense.insert.oerYszb.entity.oerYszbEntity + **/ + private GbiZbsyrecEntity setOerYszbEntity(OerDjmlEntity entity,OerDjnrEntity djnrEntity) { + GbiZbsyrecEntity yszbEntity = new GbiZbsyrecEntity(); + BeanUtil.copyProperties(djnrEntity,yszbEntity); + yszbEntity.setModule("OER"); + yszbEntity.setDjlx(djnrEntity.getDjlxId()); + yszbEntity.setDjId(djnrEntity.getMlId()); + yszbEntity.setDjflh(djnrEntity.getXh()); + yszbEntity.setDjflmx(djnrEntity.getMlId()); + yszbEntity.setDjywrq(entity.getDjdate()); + yszbEntity.setDjzt(entity.getZt()); + yszbEntity.setJhId(djnrEntity.getZbId()); + yszbEntity.setDjje(djnrEntity.getJe()); + yszbEntity.setSl("0"); + yszbEntity.setDjzy(djnrEntity.getZy()); + yszbEntity.setSzfx("1"); + yszbEntity.setZblb("MXZB"); + yszbEntity.setJdzb("0"); + yszbEntity.setCzlx("0"); + yszbEntity.setZzbz("0"); + return yszbEntity; + } + + + /**** + * 组装结算方式集合 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 16:08 + * @param jsonObject 三方json数据, maxDjbh, maxMlId] + * @return java.util.List + **/ + private List creatOerDjjsfsEntityList(JSONObject jsonObject, String maxDjbh, String maxMlId) { + List oerDjjsfsEntityList = null; + JSONArray jsonArray = jsonObject.getJSONArray("oer_djjsfs_array"); + if(jsonArray.size() == 0){ + throw new BaseSystemException("报销单结算明细数据为空!请检查参数:oer_djjsfs_array"); + }else{ + oerDjjsfsEntityList = new ArrayList<>(); + for(Object object :jsonArray){ + String detailsStr = JSON.toJSONString(object); + logger.info("当前明细行json数据:"+detailsStr); + JSONObject details = JSON.parseObject(detailsStr); + OerDjjsfsEntity djjsfsEntity = details.toJavaObject(OerDjjsfsEntity.class); + djjsfsEntity.setMlId(maxMlId); + djjsfsEntity.setGsdm(jsonObject.getString("gsdm")); + oerDjjsfsEntityList.add(djjsfsEntity); + } + + return oerDjjsfsEntityList; + } + } + /**** + * 组装结算方式集合 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 16:08 + * @param entity 三方json数据, maxDjbh, maxMlId] + * @return java.util.List + **/ + private List setOerDjjsfsEntityList(OerDjmlEntity entity, String maxDjbh, String maxMlId) { + List oerDjjsfsEntityList = entity.getOerDjjsfsEntityList(); + for (int i = 0; i < oerDjjsfsEntityList.size(); i++) { + oerDjjsfsEntityList.get(i).setMlId(maxMlId); + oerDjjsfsEntityList.get(i).setGsdm(entity.getGsdm()); + } + return oerDjjsfsEntityList; + +} + + /**** + * 根据报销明细生成预算指标数据 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 16:00 + * @param djnrEntity 报销明细数据, maxMlId 最大id + * @return com.hzya.frame.online.expense.insert.oerYszb.entity.oerYszbEntity + **/ + private OerYszbEntity createOerYszbEntity(OerDjnrEntity djnrEntity, String maxMlId) { + OerYszbEntity oerYszbEntity = new OerYszbEntity(); + BeanUtil.copyProperties(djnrEntity,oerYszbEntity); + oerYszbEntity.setDataId("0"); + oerYszbEntity.setZbdm("00000295"); + oerYszbEntity.setJhId("0"); + oerYszbEntity.setMlId(maxMlId); + return oerYszbEntity; + } + + /***** + * 组装报销明细数据 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 15:40 + * @param jsonObject 三方json对象, maxDjbh 主表最大编号, maxMlId 组表最大ID] + * @return java.util.List + **/ + private List creatOerDjnrEntity(JSONObject jsonObject, String maxDjbh, String maxMlId) { + List djnrEntityList = null; + JSONArray jsonArray = jsonObject.getJSONArray("oer_djnr_array"); + if(jsonArray.size() == 0){ + throw new BaseSystemException("报销单明细数据为空!请检查参数:oer_djnr_array"); + }else{ + djnrEntityList = new ArrayList<>(); + for(Object object :jsonArray){ + String detailsStr = JSON.toJSONString(object); + logger.info("当前明细行json数据:"+detailsStr); + JSONObject details = JSON.parseObject(detailsStr); + /* //根据指标id查询指标信息 + GbiZbxmbEntity gbiZbxmbEntity=new GbiZbxmbEntity(); + gbiZbxmbEntity.setZbid(details.getString("zbid")); + GbiZbxmbEntity gbiZbxmbEntitie = iGbiZbxmbDao.selectGbiZbxmb(gbiZbxmbEntity); + details.put("fzx7dm",gbiZbxmbEntitie.getFz7dm()); + details.put("xmdm",gbiZbxmbEntitie.getXmdm()); + details.put("fzx6dm",gbiZbxmbEntitie.getFz6dm()); + details.put("bmmc",gbiZbxmbEntitie.getBmmc()); + details.put("xmmc",gbiZbxmbEntitie.getXmmc()); + details.put("fzx6mc",gbiZbxmbEntitie.getFz6mc()); + details.put("fzx7mc",gbiZbxmbEntitie.getFz7mc()); + details.put("bmdm",gbiZbxmbEntitie.getBmdm());*/ + OerDjnrEntity djnrEntity = details.toJavaObject(OerDjnrEntity.class); + djnrEntity.setMlId(maxMlId); + djnrEntity.setGsdm(jsonObject.getString("gsdm")); + djnrEntityList.add(djnrEntity); + } + + return djnrEntityList; + } + + } + + /**** + * 组装主表数据 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 15:34 + * @param jsonObject 三方JSON对象, maxDjbh 最大单据号, maxMlId 最大id + * @return com.hzya.frame.online.expense.insert.oerDjml.entity.oerDjmlEntity + **/ + private OerDjmlEntity createMainData(JSONObject jsonObject, String maxDjbh, String maxMlId) { + OerDjmlEntity oerDjmlEntity = jsonObject.toJavaObject(OerDjmlEntity.class); + //审核中 + /*oerDjmlEntity.setDjbh(maxDjbh); + oerDjmlEntity.setMlId(maxMlId); + oerDjmlEntity.setZt("2"); + oerDjmlEntity.setFlowcode("000006"); + oerDjmlEntity.setCurshjd("-9"); + oerDjmlEntity.setNextshjd("999"); + oerDjmlEntity.setShrId("-1");*/ + //已审核 + oerDjmlEntity.setDjbh(maxDjbh); + oerDjmlEntity.setMlId(maxMlId); + oerDjmlEntity.setZt("3"); + oerDjmlEntity.setFlowcode("000006"); + oerDjmlEntity.setCurshjd("999"); + oerDjmlEntity.setNextshjd("-1"); + logger.info("主表数据组装完成:"+JSON.toJSONString(oerDjmlEntity)); + return oerDjmlEntity; + } + + public static String nullConvert(String str){ + if (null == str){ + return ""; + } + return str; + } + + /***** + * @Content:测试data数据 + * @Author 👻👻👻👻👻👻👻👻 gjh + * @Date 2023-06-29 15:09 + * @Param [] + * @return com.alibaba.fastjson.JSONObject + **/ + private JSONObject createTestData( ) { + JSONObject main = new JSONObject(); + //公司代码 + main.put("gsdm","001"); + //会计年度 + main.put("kjnd","2023"); + //单据类型ID默认 102 + main.put("djlxid","102"); + //zt 默认 1 + main.put("zt","1"); + //制单人代码 + main.put("crerdm","1"); + //制单人名称 + main.put("crermc","系统管理员"); + //制单日期 crerdate + main.put("crerdate","20230616"); + //流程编码 flowcode 流程编码,默认空 + main.put("flowcode",""); + + //默认空 + main.put("curshjd",""); + //默认 -9 + main.put("nextshjd","-9"); + //默认 -1 + main.put("shrid","-1"); + //默认空 + main.put("shr","-1"); + //默认空 + main.put("shrq","-1"); + //结算方式默认空 + main.put("jsfs",""); + //单据编号 系统生成 + main.put("djbh","bxd202306160003"); + //单据日期 + main.put("djdate","20230616"); + //附件数 默认0 + main.put("fjs",0); + //部门代码 + main.put("bmdm",30); + //部门名称 + main.put("bmmc","学生处"); + //报销人代码 + main.put("grdm","2006001019"); + //报销人名称 + main.put("grmc","方烨枫"); + //联系电话 + main.put("tel","12345678910"); + //预借金额 + main.put("yjje",0); + //退还金额 + main.put("thje",0); + //补领金额 + main.put("blje",0); + //报销金额 + main.put("je",0); + //补领金额 + main.put("whje",0); + //金额大写 + main.put("jedx","肆元壹角贰分"); + //摘要 + main.put("zy","测试单据"); + + //报销明细 + //oer_djnr + //结算方式 + //oer_djjsfs + //报销明细集合 + JSONArray oer_djnrArray = new JSONArray(); + + //报销明细行 + JSONObject djnr = new JSONObject(); + //序号 + djnr.put("xh","1"); + //主表ID,默认主表 + djnr.put("mlid",""); + //公司代码,默认主表 + djnr.put("gsdm",""); + //会计年度,默认主表 + djnr.put("kjnd","2023"); + //单据类型,默认主表 + djnr.put("djlxid","102"); + //待确认 + djnr.put("bnxid","148"); + //指标ID + djnr.put("zbid","89"); + //摘要 + djnr.put("zy","测试使用,不做处理"); + //附件数,应该是不用的 + djnr.put("fjs","0"); + //金额 + djnr.put("je","4.12"); + //辅助项6代码 + djnr.put("fzx6dm","509040101"); + //辅助项6名称 + djnr.put("fzx6mc","行政)办公耗材"); + //经费部门代码 + djnr.put("bmdm","30"); + //经费部门名称 + djnr.put("bmmc","学生处"); + //项目代码 + djnr.put("xmdm","00"); + //项目名称 + djnr.put("xmmc","部门日常经费"); + //经费类型代码 + djnr.put("fzx7dm","702"); + //经费名称名称 + djnr.put("fzx7mc","自筹资金"); + //科目代码 + djnr.put("kmdm","10101"); + //科目名称 + djnr.put("kmmc","人民币"); + //待确认 + djnr.put("kzzbid",""); + + + oer_djnrArray.add(djnr); + //添加报销明细到集合 + main.put("oer_djnr_array",oer_djnrArray); + + //结算方式对象 + JSONObject jsfs = new JSONObject(); + + //序号 + jsfs.put("xh","1"); + //主表ID,默认主表 + jsfs.put("mlid","2023060163"); + //公司代码,默认主表 + jsfs.put("gsdm","2023060163"); + //会计年度,默认主表 + jsfs.put("kjnd","2023"); + //单据类型,默认主表 + jsfs.put("djlxid","102"); + //结算方式代码 + jsfs.put("jsfsdm","01"); + //结算方式名称 + jsfs.put("jsfsdm","现金"); + //科目代码 + jsfs.put("kmdm","10101"); + //科目名称 + jsfs.put("kmmc","人民币"); + //收款人 + jsfs.put("skr","001[中石化公司]"); + //开户银行 + jsfs.put("khyh","中国人民银行长沙中心支行营业部"); + //银行账户 + jsfs.put("yhzh",""); + //公务卡号 + jsfs.put("gwkh",""); + //公务卡支付时间 + jsfs.put("gwkxfsj",""); + //支票号 + jsfs.put("zph",""); + //金额 + jsfs.put("je","4.12"); + //省份 + jsfs.put("province","43[湖南省]"); + //城市 + jsfs.put("city","5510[长沙市]"); + //银行 + jsfs.put("yh","001[中国人民银行]"); + //银行行号 + jsfs.put("yhhh","001551068617[中国人民银行长沙中心支行营业部]"); + //负责人 + jsfs.put("rytype",""); + + //报销人代码 + jsfs.put("grdm",""); + //用途 + jsfs.put("yt","用途"); + //收款人编制 + jsfs.put("skrbz",""); + //结算方式集合 + JSONArray oer_djjsfs_array = new JSONArray(); + oer_djjsfs_array.add(jsfs); + main.put("oer_djjsfs_array",oer_djjsfs_array); + return main; + } + + + /** + * @param jsonObject + * @return java.lang.Object + * @Author lvleigang + * @Description 费用报销单处理 + * @Date 9:54 上午 2024/8/14 + **/ + @Override + public Object handleOerDjml(JSONObject jsonObject) { + OerDjmlEntity entity = getData("jsonStr", jsonObject, OerDjmlEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getDataSourceCode() == null || "".equals(entity.getDataSourceCode())) { + return BaseResult.getFailureMessageEntity("数据源编码不允许为空"); + } + String dataSourceCode = entity.getDataSourceCode(); + if (entity.getLclb() == null || "".equals(entity.getLclb())) { + return BaseResult.getFailureMessageEntity("流程类别不允许为空"); + } + if (entity.getZt() == null || "".equals(entity.getZt())) { + return BaseResult.getFailureMessageEntity("状态不允许为空"); + } + + if(ColEventTypeEnum.ONSTART.getType().equals(entity.getLclb())){//流程发起 + return saveOrUpdateData(dataSourceCode,entity); + }else if(ColEventTypeEnum.ONCANCEL.getType().equals(entity.getLclb())){//流程撤销 + if (entity.getDjbh() == null || "".equals(entity.getDjbh())) { + return BaseResult.getFailureMessageEntity("单据编号不允许为空"); + } + OerDjmlEntity oerDjmlAllEntity = new OerDjmlEntity(); + oerDjmlAllEntity.setDataSourceCode(dataSourceCode); + oerDjmlAllEntity.setDjbh(entity.getDjbh()); + List oerDjmlAllEntities = iOerDjmlDao.queryOerDjml(oerDjmlAllEntity); + if(oerDjmlAllEntities != null && oerDjmlAllEntities.size() == 1){ + //修改状态 + oerDjmlAllEntity.setMlId(oerDjmlAllEntities.get(0).getMlId()); + oerDjmlAllEntity.setZt(entity.getZt()); + oerDjmlAllEntity.setCurshjd(entity.getCurshjd()); + oerDjmlAllEntity.setNextshjd(entity.getNextshjd()); + oerDjmlAllEntity.setSsrid(entity.getSsrid()); + oerDjmlAllEntity.setSsr(entity.getSsr()); + oerDjmlAllEntity.setSsrq(entity.getSsrq()); + oerDjmlAllEntity.setShrId(entity.getShrId()); + oerDjmlAllEntity.setShrq(entity.getShrq()); + iOerDjmlDao.updateOerDjml(oerDjmlAllEntity); + //释放指标 + GbiZbsyrecAllEntity gbiZbsyrecAllEntity = new GbiZbsyrecAllEntity(); + gbiZbsyrecAllEntity.setDjlx(oerDjmlAllEntities.get(0).getDjlxId()); + gbiZbsyrecAllEntity.setDjid(oerDjmlAllEntities.get(0).getMlId()); + gbiZbsyrecAllEntity.setGsdm(oerDjmlAllEntities.get(0).getGsdm()); + gbiZbsyrecAllEntity.setKjnd(oerDjmlAllEntities.get(0).getKjnd()); + gbiZbsyrecAllEntity.setDjflmx(Integer.valueOf(oerDjmlAllEntities.get(0).getMlId())); + gbiZbsyrecAllEntity.setModule("'OER'"); + gbiZbsyrecAllEntity.setDjzt("0"); + gbiZbsyrecAllEntity.setDataSourceCode(dataSourceCode); + iOerDjmlDao.updateGbiZbsyrecByDjid(gbiZbsyrecAllEntity); + }else { + return BaseResult.getFailureMessageEntity("根据单据编号存在多条报销单"); + } + }else if(ColEventTypeEnum.ONSTOP.getType().equals(entity.getLclb())){//流程终止 + if (entity.getDjbh() == null || "".equals(entity.getDjbh())) { + return BaseResult.getFailureMessageEntity("单据编号不允许为空"); + } + OerDjmlEntity oerDjmlAllEntity = new OerDjmlEntity(); + oerDjmlAllEntity.setDataSourceCode(dataSourceCode); + oerDjmlAllEntity.setDjbh(entity.getDjbh()); + List oerDjmlAllEntities = iOerDjmlDao.queryOerDjml(oerDjmlAllEntity); + if(oerDjmlAllEntities != null && oerDjmlAllEntities.size() == 1){ + //修改状态 + oerDjmlAllEntity.setMlId(oerDjmlAllEntities.get(0).getMlId()); + oerDjmlAllEntity.setZt(entity.getZt()); + iOerDjmlDao.updateOerDjml(oerDjmlAllEntity); + //释放指标 + GbiZbsyrecAllEntity gbiZbsyrecAllEntity = new GbiZbsyrecAllEntity(); + gbiZbsyrecAllEntity.setDjlx(oerDjmlAllEntities.get(0).getDjlxId()); + gbiZbsyrecAllEntity.setDjid(oerDjmlAllEntities.get(0).getMlId()); + gbiZbsyrecAllEntity.setGsdm(oerDjmlAllEntities.get(0).getGsdm()); + gbiZbsyrecAllEntity.setKjnd(oerDjmlAllEntities.get(0).getKjnd()); + gbiZbsyrecAllEntity.setDjflmx(Integer.valueOf(oerDjmlAllEntities.get(0).getMlId())); + gbiZbsyrecAllEntity.setModule("'OER'"); + gbiZbsyrecAllEntity.setDjzt("0"); + gbiZbsyrecAllEntity.setDataSourceCode(dataSourceCode); + iOerDjmlDao.updateGbiZbsyrecByDjid(gbiZbsyrecAllEntity); + }else { + return BaseResult.getFailureMessageEntity("根据单据编号存在多条报销单"); + } + }else if(ColEventTypeEnum.ONPROCESSFINISHED.getType().equals(entity.getLclb())){//流程结束 + if (entity.getDjbh() == null || "".equals(entity.getDjbh())) { + return BaseResult.getFailureMessageEntity("单据编号不允许为空"); + } + OerDjmlEntity oerDjmlAllEntity = new OerDjmlEntity(); + oerDjmlAllEntity.setDataSourceCode(dataSourceCode); + oerDjmlAllEntity.setDjbh(entity.getDjbh()); + List oerDjmlAllEntities = iOerDjmlDao.queryOerDjml(oerDjmlAllEntity); + if(oerDjmlAllEntities != null && oerDjmlAllEntities.size() == 1){ + //修改状态 + oerDjmlAllEntity.setMlId(oerDjmlAllEntities.get(0).getMlId()); + oerDjmlAllEntity.setZt(entity.getZt()); + oerDjmlAllEntity.setCurshjd(entity.getCurshjd()); + oerDjmlAllEntity.setNextshjd(entity.getNextshjd()); + iOerDjmlDao.updateOerDjml(oerDjmlAllEntity); + //保存附件 + if(entity.getFileInfoList() != null && entity.getFileInfoList().size() > 0){ + OerAnnexEntity delete = new OerAnnexEntity(); + delete.setKjnd(oerDjmlAllEntities.get(0).getKjnd()); + delete.setMlid(oerDjmlAllEntities.get(0).getMlId()); + delete.setGsdm(oerDjmlAllEntities.get(0).getGsdm()); + delete.setDataSourceCode(entity.getDataSourceCode()); + oerAnnexDao.deleteAnnex(delete); + int no = 1; + for (FileInfoDTO fileInfo : entity.getFileInfoList()) { + try { + AttachmentFileEntity fileEntity = new AttachmentFileEntity(); + fileEntity.setDataSourceCode(entity.getDataSourceCode()); + String fileName = URLDecoder.decode(fileInfo.getFile_name(), "UTF-8"); + fileEntity.setaTFileName(fileName); + fileEntity.setaTFile(fileInfo.getData()); + saveAttachment(fileEntity); + //保存附件关系 + OerAnnexEntity annexEntity = new OerAnnexEntity(); + annexEntity.setDataSourceCode(entity.getDataSourceCode()); + annexEntity.setMlid(oerDjmlAllEntities.get(0).getMlId()); + annexEntity.setKjnd(oerDjmlAllEntities.get(0).getKjnd()); + annexEntity.setGsdm(oerDjmlAllEntities.get(0).getGsdm()); + annexEntity.setAnnexName(fileName); + annexEntity.setAnnexSize(Convert.toLong(fileInfo.getFile_size())); + annexEntity.setOnlyid(fileEntity.getaTGuid()); + annexEntity.setXh(String.valueOf(no)); + annexEntity.setAnnexid(queryMaxId(annexEntity)); + if (null != annexEntity.getAnnexSize()){ + int fileSize = annexEntity.getAnnexSize().intValue(); + String showSize = ""; + if (fileSize < 1000) { + showSize = fileSize + "b"; + } else if (1000 < fileSize && fileSize < 1000000) { + showSize = (fileSize / 1000) + " KB"; + } else { + showSize = (fileSize / 1000000) + " MB"; + } + annexEntity.setShowSize(showSize); + } + + annexEntity.setFjType("其它"); + oerAnnexDao.saveData(annexEntity); + no++; + }catch (Exception e){ + logger.error("保存附件到grp出错:{}",e); + } + } + } + }else { + return BaseResult.getFailureMessageEntity("根据单据编号存在多条报销单"); + } + }else { + return BaseResult.getFailureMessageEntity("流程类别错误"); + } + return BaseResult.getSuccessMessageEntity("处理成功"); + } + + public String queryMaxId(OerAnnexEntity entity) { + if (null == entity){ + entity = new OerAnnexEntity(); + } + if (StrUtil.isEmpty(entity.getKjnd())){ + entity.setKjnd(String.valueOf(DateUtil.year(new Date()))); + } + OerAnnexEntity max = oerAnnexDao.queryMaxId(entity); + if (null != max){ + Long max_value = Long.valueOf(max.getMaxAnnexid()); + return String.valueOf(max_value+1); + } + return null; + } + public void saveAttachment(AttachmentFileEntity entity) { + entity.setaTGuid("A1:"+ IdUtil.fastUUID()); + String date = DateUtil.format(new Date(), "yyyyMMdd HH:mm:ss"); + entity.setCreateDate(date); + entity.setUpdateDate(date); + String fileName = entity.getaTFileName(); + if (StrUtil.isNotEmpty(fileName)){ + int index = fileName.lastIndexOf("."); + if (index > 0){ + String suffix = fileName.substring(index); + entity.setaTExtName(suffix); + String prefix = fileName.substring(0,index); + entity.setaTFileName(prefix); + } + } + attachmentFileDao.saveData(entity); + } + /** + * 保存方法前,先调这个方法 组装参数 + * + * @param entity + * @return + */ + public SysExtensionApiEntity saveExpensePre(SysExtensionApiEntity entity) { + try { + String bodys = entity.getBodys(); + Map headers = entity.getHeaders(); + String eventType = headers.get("eventType"); + String formmainTableName = headers.get("formmainTableName"); + String forsonTableName = headers.get("forsonTableName"); + String djlxid = headers.get("djlxid"); + String flowcode = headers.get("flowcode"); + JSONObject bodyObj = JSONObject.parseObject(bodys); + JSONObject seeyonData = bodyObj.getJSONObject("businessDataStr"); + if (null != seeyonData){ + /** + * 流程发起 保存/更新单据 要全部数据 + * 流程撤销 只更新状态,传单号和状态就好了 + * 流程终止 只更新状态,传单号和状态就好了 + * 流程结束 更新状态 并上传附件 + */ + JSONObject formmainData = seeyonData.getJSONObject(formmainTableName); + JSONArray forsonData = seeyonData.getJSONArray(forsonTableName); + JSONObject forjsonData0 = forsonData.getJSONObject(0); + OerDjmlEntity djml = new OerDjmlEntity(); + djml.setDjbh(formmainData.getString("field0001")); + //流程发起 + if (ColEventTypeEnum.ONSTART.getType().equals(eventType)){ + djml.setGsdm(forjsonData0.getString("field0084")); + djml.setKjnd(forjsonData0.getString("field0082")); + djml.setDjlxId(djlxid); + djml.setZt("2"); + djml.setCrerdm(formmainData.getString("field0107")); + djml.setCrermc(""); + djml.setCrerdate(formmainData.getString("startDate")); + djml.setDjdate(formmainData.getString("field0002")); + djml.setJe(formmainData.getString("field0080")); + djml.setJedx( Convert.numberToChinese(Double.valueOf(formmainData.getString("field0080")),true)); + djml.setYjje("0.00"); + djml.setThje("0.00"); + djml.setBlje(formmainData.getString("field0080")); + djml.setFjs( formmainData.getString("field0004")); + djml.setZy( formmainData.getString("field0009")); + //部门代码 + djml.setBmdm( formmainData.getString("field0006")); + djml.setBmmc( formmainData.getString("field0006")); + //项目代码 + djml.setXmdm(forjsonData0.getString("field0074")); + djml.setXmmc(forjsonData0.getString("field0075")); + //个人代码 + djml.setGrdm(formmainData.getString("field0108")); + djml.setGrmc(""); + //经济代码 + djml.setJjdm(""); + djml.setJjmc(""); + //银行帐号 开户银行 + djml.setYhzh(forjsonData0.getString("field0079")); + djml.setKhyh(forjsonData0.getString("field0078")); + //当前审核节点、下个审核节点 ,不在grp审批,是不是不用填了 + djml.setCurshjd("-9"); + djml.setNextshjd("999"); + djml.setFlowcode(flowcode); + djml.setJsfs(spliceStr(forjsonData0.getString("field0095"),forjsonData0.getString("field0094"))); + //电话,oa上没有 + djml.setTel(formmainData.getString("field0110")); + djml.setClf_ccr(formmainData.getString("field0010")); + //送审日期 + djml.setSsrq( DateUtil.format(formmainData.getDate("startDate"),"yyyyMMddHHmmssSSS")); + djml.setSsrid(""); + djml.setSsr(""); + + //报销明细 + List djnrList = new ArrayList<>(); + //结算方式 + List jsfsList = new ArrayList<>(); + //预算指标 + List yszbList = new ArrayList<>(); + //指标记录 + int xh = 1; + for (int i=0; i()); + param = JSONObject.parseObject(djmlStr); + param.put("lclb",eventType); + param.put("oerDjnrEntityList",djnrList); + param.put("oerYszbEntityList",yszbList); + param.put("oerDjjsfsEntityList",jsfsList); + //param.put("gbiZbsyrecEntitylist",null); + logger.info("差旅报销单报文:{}",param.toString()); + } + } + }catch (Exception ex ){ + logger.error("保存报销单之前组装参数出错",ex); + } + return null; + } + + + + /** + * @Author lvleigang + * @Description 保存或修改主表以及指标 + * @Date 4:44 下午 2024/8/14 + * @param entity + * @return java.lang.Object + **/ + private Object saveOrUpdateData(String dataSourceCode,OerDjmlEntity entity) { + //获取主表数据 + logger.info("开始处理数据:------>"); + String gsdm = entity.getGsdm(); + logger.info("根据公司代码查询最大单据编号,公司代码:------>"+gsdm); + if(StrUtil.isEmpty(gsdm)){ + return BaseResult.getFailureMessageEntity("公司代码不能为空!请排查参数gsdm"); + } + if(StrUtil.isEmpty(entity.getDjdate())){ + return BaseResult.getFailureMessageEntity("单据日期不能为空!请排查参数djdate"); + } + if(entity.getOerDjnrEntityList() == null || entity.getOerDjnrEntityList().size() == 0 ){ + return BaseResult.getFailureMessageEntity("报销单明细数据为空!请检查参数"); + } + if(entity.getOerDjjsfsEntityList() == null || entity.getOerDjjsfsEntityList().size() == 0 ){ + return BaseResult.getFailureMessageEntity("报销单结算明细数据为空!请检查参数"); + } + boolean flag = false; + String maxDjbh = null; + String maxMlId = null; + if (entity.getDjbh() == null || "".equals(entity.getDjbh())) { + OerDjmlEntity oerDjmlEntity = new OerDjmlEntity(); + oerDjmlEntity.setDataSourceCode(dataSourceCode); + oerDjmlEntity.setGsdm(gsdm); + oerDjmlEntity.setDjdate(entity.getDjdate()); + oerDjmlEntity.setFph(nullConvert(entity.getFph())); + maxDjbh = iOerDjmlDao.getMaxDjbgByGsdm(oerDjmlEntity); + entity.setDjbh(maxDjbh); + }else { + OerDjmlEntity oerDjmlAllEntity = new OerDjmlEntity(); + oerDjmlAllEntity.setDataSourceCode(dataSourceCode); + oerDjmlAllEntity.setDjbh(entity.getDjbh()); + List oerDjmlAllEntities = iOerDjmlDao.queryOerDjml(oerDjmlAllEntity); + if(oerDjmlAllEntities != null && oerDjmlAllEntities.size() == 1){ + flag = true; + maxDjbh = oerDjmlAllEntities.get(0).getDjbh(); + maxMlId = oerDjmlAllEntities.get(0).getMlId(); + } + } + + + if(!flag){ + //logger.info("获取最大单据编号"); + OerDjmlEntity oerDjmlEntity = new OerDjmlEntity(); + oerDjmlEntity.setDataSourceCode(dataSourceCode); + oerDjmlEntity.setGsdm(gsdm); + oerDjmlEntity.setDjdate(entity.getDjdate()); + oerDjmlEntity.setFph(nullConvert(entity.getFph())); + //maxDjbh = iOerDjmlDao.getMaxDjbgByGsdm(oerDjmlEntity); + maxDjbh = entity.getDjbh(); + logger.info("获取到最大单据编号:------>"+maxDjbh); + //查询最大单据ID mlid + maxMlId = iOerDjmlDao.getMaxMlIdByGsdm(oerDjmlEntity); + logger.info("获取到最大单据ID MLID:------>"+maxMlId); + } + + logger.info("组装单据主表数据开始:------>"); + OerDjmlEntity oerdjml = setMainData(entity,maxDjbh,maxMlId); + logger.info("保存主表信息:------>"); + if(flag){ + oerdjml.setDataSourceCode(dataSourceCode); + iOerDjmlDao.updateData(oerdjml); + //删除明细 + OerDjnrEntity oerDjnrEntity = new OerDjnrEntity(); + oerDjnrEntity.setMlId(maxMlId); + oerDjnrEntity.setGsdm(entity.getGsdm()); + oerDjnrEntity.setKjnd(entity.getKjnd()); + oerDjnrEntity.setDjlxId(entity.getDjlxId()); + oerDjnrEntity.setDataSourceCode(dataSourceCode); + iOerDjnrDao.deleteData(oerDjnrEntity); + //删除预算指标 + OerYszbEntity oerYszbEntity = new OerYszbEntity(); + oerYszbEntity.setGsdm(entity.getGsdm()); + oerYszbEntity.setKjnd(entity.getKjnd()); + oerYszbEntity.setMlId(maxMlId); + oerYszbEntity.setDataSourceCode(dataSourceCode); + iOerYszbDao.deleteData(oerYszbEntity); + //删除预算指标记录 + GbiZbsyrecEntity oeryszb= new GbiZbsyrecEntity(); + oeryszb.setGsdm(entity.getGsdm()); + oeryszb.setKjnd(entity.getKjnd()); + oeryszb.setDjId(maxMlId); + oeryszb.setDataSourceCode(dataSourceCode); + iGbiZbsyrecDao.deleteData(oeryszb); + //删除单据结算方式 + OerDjjsfsEntity oerDjjsfsEntity = new OerDjjsfsEntity(); + oerDjjsfsEntity.setMlId(maxMlId); + oerDjjsfsEntity.setGsdm(entity.getGsdm()); + oerDjjsfsEntity.setDataSourceCode(dataSourceCode); + iOerDjjsfsDao.deleteData(oerDjjsfsEntity); + //删除日志 + //删除节点 + }else { + oerdjml.setDataSourceCode(dataSourceCode); + iOerDjmlDao.saveData(oerdjml); + } + + logger.info("组装单据报销明细开始:------>"); + List oerDjnrEntityList = setOerDjnrEntity(entity,maxDjbh,maxMlId); + logger.info("保存报销明细开始:------>"); + if(oerDjnrEntityList != null && oerDjnrEntityList.size() > 0){ + for(OerDjnrEntity djnrEntity : oerDjnrEntityList){ + djnrEntity.setDataSourceCode(dataSourceCode); + iOerDjnrDao.saveData(djnrEntity); + logger.info("保存完报销明细后,根据明细数据生成预算指标数据:------>"); + OerYszbEntity yszbEntity = createOerYszbEntity(djnrEntity,maxMlId); + logger.info("保存预算指标开始:------>"); + yszbEntity.setDataSourceCode(dataSourceCode); + iOerYszbDao.saveData(yszbEntity); + logger.info("保存预算指标记录:------>"); + GbiZbsyrecEntity oeryszb= setOerYszbEntity(entity,djnrEntity); + oeryszb.setDataSourceCode(dataSourceCode); + iGbiZbsyrecDao.saveData(oeryszb); + } + } + + logger.info("组装单据结算方式明细开始:------>"); + List oerDjjsfsEntityList = setOerDjjsfsEntityList(entity,maxDjbh,maxMlId); + logger.info("保存结算方式明细开始:------>"); + if(oerDjjsfsEntityList != null && oerDjjsfsEntityList.size() > 0){ + for(OerDjjsfsEntity oerdjjsfs :oerDjjsfsEntityList){ + oerdjjsfs.setDataSourceCode(dataSourceCode); + iOerDjjsfsDao.saveData(oerdjjsfs); + } + } + + //保存日志表PubAuditLog + List pubAuditLogEntityList = setPubAuditLog(entity, maxMlId); + if(pubAuditLogEntityList != null&& pubAuditLogEntityList.size() > 0){ + for (PubAuditLogEntity pubAuditLog : pubAuditLogEntityList) { + pubAuditLog.setDataSourceCode(dataSourceCode); + iPubAuditLogDao.saveData(pubAuditLog); + } + } + if(!flag){ + //保存节点PUB_OBJ_FLOW + PubObjFlowEntity pubObjFlowEntity = setPubObjFlow(entity, maxMlId); + pubObjFlowEntity.setDataSourceCode(dataSourceCode); + iPubObjFlowDao.saveData(pubObjFlowEntity); + } + return BaseResult.getSuccessMessageEntity("保存报销单成功",maxDjbh); + } + + /** + * @Author lvleigang + * @Description 设置报销单明细 + * @Date 3:39 下午 2024/8/15 + * @param entity + * @param maxDjbh + * @param maxMlId + * @return java.util.List + **/ + private List setOerDjnrEntity(OerDjmlEntity entity, String maxDjbh, String maxMlId) { + List djnrEntityList = entity.getOerDjnrEntityList(); + if(djnrEntityList != null && djnrEntityList.size() > 0){ + for (int i = 0; i < djnrEntityList.size(); i++) { + djnrEntityList.get(i).setMlId(maxMlId); + djnrEntityList.get(i).setGsdm(entity.getGsdm()); + } + } + return djnrEntityList; + } + + /** + * @Author lvleigang + * @Description 设置值 + * @Date 3:30 下午 2024/8/15 + * @param oerDjmlEntity + * @param maxDjbh + * @param maxMlId + * @return com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity + **/ + private OerDjmlEntity setMainData(OerDjmlEntity oerDjmlEntity, String maxDjbh, String maxMlId) { + oerDjmlEntity.setDjbh(maxDjbh); + oerDjmlEntity.setMlId(maxMlId); + //oerDjmlEntity.setZt("3"); + //oerDjmlEntity.setFlowcode("000006"); + //oerDjmlEntity.setCurshjd("999"); + //oerDjmlEntity.setNextshjd("-1"); + logger.info("主表数据组装完成:"+JSON.toJSONString(oerDjmlEntity)); + return oerDjmlEntity; + } + + protected T getData(String key, JSONObject jsonObject, Class clz) { + if (checkStr(jsonObject.getString(key))) { + return jsonObject.getJSONObject(key).toJavaObject(clz); + } + return null; + } + protected Boolean checkStr(String str) { + Boolean flag = true; + if (str == null || "".equals(str)) { + flag = false; + } + return flag; + } + /** + * code和name拼接[] + * @param code + * @param name + * @return 格式:03[公务卡] + */ + private String spliceStr(String code,String name){ + String template = "{}[{}]"; + return StrUtil.format(template,code,name); + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/IOerDjnrDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/IOerDjnrDao.java new file mode 100644 index 00000000..e0258de9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/IOerDjnrDao.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.oerdjnr.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:57 + */ +public interface IOerDjnrDao extends IBaseDao { + Integer deleteData(OerDjnrEntity oerDjnrEntity); + + Integer saveData(OerDjnrEntity djnrEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/impl/OerDjnrDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/impl/OerDjnrDaoImpl.java new file mode 100644 index 00000000..7de2552a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/dao/impl/OerDjnrDaoImpl.java @@ -0,0 +1,31 @@ +package com.hzya.frame.grpU8.nxproof.oerdjnr.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.oerdjnr.dao.IOerDjnrDao; +import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:57 + */ +@Repository(value = "oerDjnrDao") +public class OerDjnrDaoImpl extends MybatisGenericDao implements IOerDjnrDao { + @DS("#entity.dataSourceCode") + @Override + public Integer deleteData(OerDjnrEntity entity) { + Integer o = super.delete(getSqlIdPrifx() + "OerDjnrEntity_delete", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(OerDjnrEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "OerDjnrEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.java new file mode 100644 index 00000000..41ef94dc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.java @@ -0,0 +1,475 @@ +package com.hzya.frame.grpU8.nxproof.oerdjnr.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description:费用报销明细栏 + * @params: + * @return: + * @Date: 2023/6/16 21:58 + */ + +public class OerDjnrEntity extends BaseEntity { + private String xh;//序号 + private String mlId; + private String module; + private String djflh; + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String djlxId; + private String bnxId; + private String zbId;//预算指标id + private String zy;//摘要 + private String fjs;//附件数 + private String je;//金额 + private String fzx6dm;//支出项目代码 + private String fzx6mc;//支出项目名称 + private String bmdm;//部门代码 + private String bmmc;//部门名称 + private String xmdm;//项目代码 + private String xmmc;//项目名称 + private String fzx7dm;//资金来源代码 + private String fzx7mc;//资金来源名称 + private String kmdm;//支出科目代码 + private String kmmc;//支出科目名称 + private String kzzbId; + private String jjdm;//经济代码 + private String jjmc;//经济名称 + private String fzx8dm;//固定项8代码 + private String fzx8mc;//固定项8名称 + private String fzx9dm;//固定项9代码 + private String fzx9mc;//固定项9名称 + //经费类型代码 + private String jflxdm; + //经费类型名称 + private String jflxmc; + //差旅费-出差开始日期 + private String clf_startdate; + //差旅费-出差结束日期 + private String clf_enddate; + //差旅费-出差目的地 + private String clf_ccdd; + //差旅费-出差开始地点 + private String clf_ccksd; + //差旅费-单据张数 + private String clf_djzs; + //差旅费-出差天数 + private String clf_ccts; + //差旅费-出差补助天数 + private String clf_cctsbz; + //差旅费-出差人数 + private String clf_ccrs; + //差旅费-职务 + private String clf_zw; + //差旅费-交通工具 + private String clf_jtgj; + //差旅费-交通费 + private String clf_jtf; + //差旅费-住宿费标准 + private String clf_zsbz; + //差旅费-住宿费 + private String clf_zsf; + //差旅费-伙食费标准 + private String clf_hsbz; + //差旅费-伙食费 + private String clf_hsf; + //差旅费-交通补助标准 + private String clf_jtbz; + //差旅费-交通补助 + private String clf_jtbzf; + //差旅费-其他费用 + private String clf_qtf; + public String getXh() { + return xh; + } + + public void setXh(String xh) { + this.xh = xh; + } + + public String getMlId() { + return mlId; + } + + public void setMlId(String mlId) { + this.mlId = mlId; + } + + public String getModule() { + return module; + } + + public void setModule(String module) { + this.module = module; + } + + public String getDjflh() { + return djflh; + } + + public void setDjflh(String djflh) { + this.djflh = djflh; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getDjlxId() { + return djlxId; + } + + public void setDjlxId(String djlxId) { + this.djlxId = djlxId; + } + + public String getBnxId() { + return bnxId; + } + + public void setBnxId(String bnxId) { + this.bnxId = bnxId; + } + + public String getZbId() { + return zbId; + } + + public void setZbId(String zbId) { + this.zbId = zbId; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } + + public String getFjs() { + return fjs; + } + + public void setFjs(String fjs) { + this.fjs = fjs; + } + + public String getJe() { + return je; + } + + public void setJe(String je) { + this.je = je; + } + + public String getFzx6dm() { + return fzx6dm; + } + + public void setFzx6dm(String fzx6dm) { + this.fzx6dm = fzx6dm; + } + + public String getFzx6mc() { + return fzx6mc; + } + + public void setFzx6mc(String fzx6mc) { + this.fzx6mc = fzx6mc; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBmmc() { + return bmmc; + } + + public void setBmmc(String bmmc) { + this.bmmc = bmmc; + } + + public String getXmdm() { + return xmdm; + } + + public void setXmdm(String xmdm) { + this.xmdm = xmdm; + } + + public String getXmmc() { + return xmmc; + } + + public void setXmmc(String xmmc) { + this.xmmc = xmmc; + } + + public String getFzx7dm() { + return fzx7dm; + } + + public void setFzx7dm(String fzx7dm) { + this.fzx7dm = fzx7dm; + } + + public String getFzx7mc() { + return fzx7mc; + } + + public void setFzx7mc(String fzx7mc) { + this.fzx7mc = fzx7mc; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getKzzbId() { + return kzzbId; + } + + public void setKzzbId(String kzzbId) { + this.kzzbId = kzzbId; + } + + public String getJjdm() { + return jjdm; + } + + public void setJjdm(String jjdm) { + this.jjdm = jjdm; + } + + public String getJjmc() { + return jjmc; + } + + public void setJjmc(String jjmc) { + this.jjmc = jjmc; + } + + public String getFzx8dm() { + return fzx8dm; + } + + public void setFzx8dm(String fzx8dm) { + this.fzx8dm = fzx8dm; + } + + public String getFzx8mc() { + return fzx8mc; + } + + public void setFzx8mc(String fzx8mc) { + this.fzx8mc = fzx8mc; + } + + public String getFzx9dm() { + return fzx9dm; + } + + public void setFzx9dm(String fzx9dm) { + this.fzx9dm = fzx9dm; + } + + public String getFzx9mc() { + return fzx9mc; + } + + public void setFzx9mc(String fzx9mc) { + this.fzx9mc = fzx9mc; + } + + public String getJflxdm() { + return jflxdm; + } + + public void setJflxdm(String jflxdm) { + this.jflxdm = jflxdm; + } + + public String getJflxmc() { + return jflxmc; + } + + public void setJflxmc(String jflxmc) { + this.jflxmc = jflxmc; + } + + public String getClf_startdate() { + return clf_startdate; + } + + public void setClf_startdate(String clf_startdate) { + this.clf_startdate = clf_startdate; + } + + public String getClf_enddate() { + return clf_enddate; + } + + public void setClf_enddate(String clf_enddate) { + this.clf_enddate = clf_enddate; + } + + public String getClf_ccdd() { + return clf_ccdd; + } + + public void setClf_ccdd(String clf_ccdd) { + this.clf_ccdd = clf_ccdd; + } + + public String getClf_ccksd() { + return clf_ccksd; + } + + public void setClf_ccksd(String clf_ccksd) { + this.clf_ccksd = clf_ccksd; + } + + public String getClf_djzs() { + return clf_djzs; + } + + public void setClf_djzs(String clf_djzs) { + this.clf_djzs = clf_djzs; + } + + public String getClf_ccts() { + return clf_ccts; + } + + public void setClf_ccts(String clf_ccts) { + this.clf_ccts = clf_ccts; + } + + public String getClf_ccrs() { + return clf_ccrs; + } + + public void setClf_ccrs(String clf_ccrs) { + this.clf_ccrs = clf_ccrs; + } + + public String getClf_zw() { + return clf_zw; + } + + public void setClf_zw(String clf_zw) { + this.clf_zw = clf_zw; + } + + public String getClf_jtgj() { + return clf_jtgj; + } + + public void setClf_jtgj(String clf_jtgj) { + this.clf_jtgj = clf_jtgj; + } + + public String getClf_jtf() { + return clf_jtf; + } + + public void setClf_jtf(String clf_jtf) { + this.clf_jtf = clf_jtf; + } + + public String getClf_zsbz() { + return clf_zsbz; + } + + public void setClf_zsbz(String clf_zsbz) { + this.clf_zsbz = clf_zsbz; + } + + public String getClf_zsf() { + return clf_zsf; + } + + public void setClf_zsf(String clf_zsf) { + this.clf_zsf = clf_zsf; + } + + public String getClf_hsbz() { + return clf_hsbz; + } + + public void setClf_hsbz(String clf_hsbz) { + this.clf_hsbz = clf_hsbz; + } + + public String getClf_hsf() { + return clf_hsf; + } + + public void setClf_hsf(String clf_hsf) { + this.clf_hsf = clf_hsf; + } + + public String getClf_jtbz() { + return clf_jtbz; + } + + public void setClf_jtbz(String clf_jtbz) { + this.clf_jtbz = clf_jtbz; + } + + public String getClf_jtbzf() { + return clf_jtbzf; + } + + public void setClf_jtbzf(String clf_jtbzf) { + this.clf_jtbzf = clf_jtbzf; + } + + public String getClf_qtf() { + return clf_qtf; + } + + public void setClf_qtf(String clf_qtf) { + this.clf_qtf = clf_qtf; + } + + public String getClf_cctsbz() { + return clf_cctsbz; + } + + public void setClf_cctsbz(String clf_cctsbz) { + this.clf_cctsbz = clf_cctsbz; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.xml new file mode 100644 index 00000000..effdc908 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/entity/OerDjnrEntity.xml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MLID,DJLXID,GSDM,KJND,BNXID + + + insert into OER_DJNR( + + + MLID, + DJLXID, + KJND, + BNXID, + XH, + ZBID, + KMDM, + KMMC, + JE, + ZY, + FJS, + FZX6DM, + FZX6MC, + BMDM, + BMMC, + XMDM, + XMMC, + FZX7DM, + FZX7MC, + KZZBID, + GSDM, + jjdm, + jjmc, + fzx8dm, + fzx8mc, + fzx9dm, + fzx9mc, + jflxdm, + jflxmc, + clf_startdate, + clf_enddate, + clf_ccdd, + clf_ccksd, + clf_djzs, + clf_cctsbz, + clf_ccts, + clf_ccrs, + clf_zw, + clf_jtgj, + clf_jtf, + clf_zsbz, + clf_zsf, + clf_hsf, + clf_hsbz, + clf_jtbz, + clf_jtbzf, + clf_qtf + + ) + values ( + + + #{mlId}, + #{djlxId}, + #{kjnd}, + #{bnxId}, + #{xh}, + #{zbId}, + #{kmdm}, + #{kmmc}, + #{je}, + #{zy}, + #{fjs}, + #{fzx6dm}, + #{fzx6mc}, + #{bmdm}, + #{bmmc}, + #{xmdm}, + #{xmmc}, + #{fzx7dm}, + #{fzx7mc}, + #{kzzbId}, + #{gsdm}, + #{fzx8dm}, + #{fzx8mc}, + #{fzx9dm}, + #{fzx9mc}, + #{jflxdm}, + #{jflxmc}, + #{clf_startdate}, + #{clf_enddate}, + #{clf_ccdd}, + #{clf_ccksd}, + #{clf_djzs}, + #{clf_cctsbz}, + #{clf_ccts}, + #{clf_ccrs}, + #{clf_zw}, + #{clf_jtgj}, + #{clf_jtf}, + #{clf_zsbz}, + #{clf_zsf}, + #{clf_hsf}, + #{clf_hsbz}, + #{clf_jtbz}, + #{clf_jtbzf}, + #{clf_qtf} + + ) + + + + + DELETE + FROM + oer_djnr + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND DJLXID = #{djlxId} + AND MLID = #{mlId} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/IOerDjnrService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/IOerDjnrService.java new file mode 100644 index 00000000..7ad9e4b2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/IOerDjnrService.java @@ -0,0 +1,11 @@ +package com.hzya.frame.grpU8.nxproof.oerdjnr.service; + +/** + * @Author:hecan + * @Description:费用报销明细栏 + * @params: + * @return: + * @Date: 2023/6/19 14:28 + */ +public interface IOerDjnrService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/impl/OerDjnrServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/impl/OerDjnrServiceImpl.java new file mode 100644 index 00000000..fbb1fafd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oerdjnr/service/impl/OerDjnrServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.oerdjnr.service.impl; + +import com.hzya.frame.grpU8.nxproof.oerdjnr.service.IOerDjnrService; +import org.springframework.stereotype.Service; + +/** + * @Author:hecan + * @Description:费用报销明细栏 + * @params: + * @return: + * @Date: 2023/6/19 14:31 + */ +@Service(value = "oerDjnrService") +public class OerDjnrServiceImpl implements IOerDjnrService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/IOerYszbDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/IOerYszbDao.java new file mode 100644 index 00000000..41f24564 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/IOerYszbDao.java @@ -0,0 +1,26 @@ +package com.hzya.frame.grpU8.nxproof.oeryszb.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +public interface IOerYszbDao extends IBaseDao { + //保存预算指标 + OerYszbEntity saveOerYszbEntity(OerYszbEntity oerYszbEntity); + + //更新预算指标 + Integer updateOerYszbEntity(OerYszbEntity oerYszbEntity); + + //删除预算指标 + Integer deleteOerYszbEntity(OerYszbEntity oerYszbEntity); + + Integer saveData(OerYszbEntity oerYszbEntity); + + Integer deleteData(OerYszbEntity oerYszbEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/impl/OerYszbDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/impl/OerYszbDaoImpl.java new file mode 100644 index 00000000..d712e472 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/dao/impl/OerYszbDaoImpl.java @@ -0,0 +1,50 @@ +package com.hzya.frame.grpU8.nxproof.oeryszb.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.dao.IOerYszbDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +@Repository(value = "oerYszbDao") +public class OerYszbDaoImpl extends MybatisGenericDao implements IOerYszbDao { + @DS("#entity.dataSourceCode") + @Override + public Integer deleteData(OerYszbEntity entity) { + Integer o = super.delete(getSqlIdPrifx() + "OerYszbEntity_delete", entity); + return o; + } + + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(OerYszbEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "OerYszbEntity_insert", entity); + return o; + } + + @Override + @DS("#entity.dataSourceCode") + public OerYszbEntity saveOerYszbEntity(OerYszbEntity oerYszbEntity) { + return super.save(oerYszbEntity); + } + + @Override + @DS("#entity.dataSourceCode") + public Integer updateOerYszbEntity(OerYszbEntity oerYszbEntity) { + return super.update("OerYszbEntity_update_yszb",oerYszbEntity); + } + + @Override + @DS("#entity.dataSourceCode") + public Integer deleteOerYszbEntity(OerYszbEntity oerYszbEntity) { + return super.delete("OerYszbEntity_delete_yszb",oerYszbEntity); + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.java new file mode 100644 index 00000000..25cacac9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.java @@ -0,0 +1,150 @@ +package com.hzya.frame.grpU8.nxproof.oeryszb.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/16 22:02 + */ + +public class OerYszbEntity extends BaseEntity { + private String mlId; + private String djlxId; + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String bnxId; + private String dataId; + private String xh; + private String zbdm; + private String zbId;//指标id + private String jhId;//计划id + private String kzzbId; + private String kmdm;//支出科目代码 + private String kmmc;//支出科目名称 + private String je;//金额 + private String zy;//摘要 + + public String getMlId() { + return mlId; + } + + public void setMlId(String mlId) { + this.mlId = mlId; + } + + public String getDjlxId() { + return djlxId; + } + + public void setDjlxId(String djlxId) { + this.djlxId = djlxId; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getBnxId() { + return bnxId; + } + + public void setBnxId(String bnxId) { + this.bnxId = bnxId; + } + + public String getDataId() { + return dataId; + } + + public void setDataId(String dataId) { + this.dataId = dataId; + } + + public String getXh() { + return xh; + } + + public void setXh(String xh) { + this.xh = xh; + } + + public String getZbdm() { + return zbdm; + } + + public void setZbdm(String zbdm) { + this.zbdm = zbdm; + } + + public String getZbId() { + return zbId; + } + + public void setZbId(String zbId) { + this.zbId = zbId; + } + + public String getJhId() { + return jhId; + } + + public void setJhId(String jhId) { + this.jhId = jhId; + } + + public String getKzzbId() { + return kzzbId; + } + + public void setKzzbId(String kzzbId) { + this.kzzbId = kzzbId; + } + + public String getKmdm() { + return kmdm; + } + + public void setKmdm(String kmdm) { + this.kmdm = kmdm; + } + + public String getKmmc() { + return kmmc; + } + + public void setKmmc(String kmmc) { + this.kmmc = kmmc; + } + + public String getJe() { + return je; + } + + public void setJe(String je) { + this.je = je; + } + + public String getZy() { + return zy; + } + + public void setZy(String zy) { + this.zy = zy; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.xml new file mode 100644 index 00000000..59481614 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/entity/OerYszbEntity.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + MLID,DJLXID,GSDM,KJND,BNXID + + + insert into OER_YSZB( + MLID, + DJLXID, + KJND, + BNXID, + DataID, + XH, + ZBDM, + ZBID, + JHID, + KZZBID, + KMDM, + KMMC, + JE, + ZY, + GSDM + ) + values ( + #{mlId}, + #{djlxId}, + #{kjnd}, + #{bnxId}, + #{dataId}, + #{xh}, + #{zbdm}, + #{zbId}, + #{jhId}, + #{kzzbId}, + #{kmdm}, + #{kmmc}, + #{je}, + #{zy}, + #{gsdm} + ) + + + + update OER_YSZB set + + MLID=#{mlId}, + DJLXID=#{djlxId}, + KJND=#{kjnd}, + BNXID=#{bnxId}, + DataID=#{dataId}, + XH= #{xh}, + ZBDM= #{zbdm}, + ZBID=#{zbId}, + JHID= #{jhId}, + KZZBID=#{kzzbId}, + KMDM= #{kmdm}, + KMMC=#{kmmc}, + JE=#{je}, + ZY=#{zy}, + GSDM #{gsdm} + + where mlId= #{mlId} + + + + update OER_YSZB set + + DJLXID=#{djlxId}, + BNXID=#{bnxId}, + DataID=#{dataId}, + XH= #{xh}, + ZBDM= #{zbdm}, + JHID= #{jhId}, + KZZBID=#{kzzbId}, + KMDM= #{kmdm}, + KMMC=#{kmmc}, + JE=#{je}, + ZY=#{zy}, + + where mlId= #{mlId} and kjnd=#{kjnd} and gsdm=#{gsdm} and ZBID=#{zbId} + and XH= #{xh} + + + + DELETE + FROM + oer_yszb + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND MLID = #{mlId} + + + + DELETE + FROM + oer_yszb + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND MLID = #{mlId} + and ZBID=#{zbId} + and XH= #{xh} + + + DELETE + FROM + oer_yszb + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND MLID = #{mlId} + + + insert into OER_YSZB( + MLID, + DJLXID, + KJND, + BNXID, + DataID, + XH, + ZBDM, + ZBID, + JHID, + KZZBID, + KMDM, + KMMC, + JE, + ZY, + GSDM + ) + values ( + #{mlId}, + #{djlxId}, + #{kjnd}, + #{bnxId}, + #{dataId}, + #{xh}, + #{zbdm}, + #{zbId}, + #{jhId}, + #{kzzbId}, + #{kmdm}, + #{kmmc}, + #{je}, + #{zy}, + #{gsdm} + ) + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/IOerYszbService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/IOerYszbService.java new file mode 100644 index 00000000..7eeba7de --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/IOerYszbService.java @@ -0,0 +1,45 @@ +package com.hzya.frame.grpU8.nxproof.oeryszb.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:28 + */ +public interface IOerYszbService extends IBaseService { + + /** + * + * @content 预算指标新增 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/16 10:42 + * **/ + Object saveOerYszb(JSONObject jsonObject); + + /** + * + * @content 预算指标修改 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/16 10:42 + * **/ + Object updateOerYszb(JSONObject jsonObject); + + /** + * + * @content 预算指标删除 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/16 10:43 + * **/ + Object deleteOerYszb(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/impl/OerYszbServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/impl/OerYszbServiceImpl.java new file mode 100644 index 00000000..0789d54b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/oeryszb/service/impl/OerYszbServiceImpl.java @@ -0,0 +1,131 @@ +package com.hzya.frame.grpU8.nxproof.oeryszb.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.dao.IOerYszbDao; +import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity; +import com.hzya.frame.grpU8.nxproof.oeryszb.service.IOerYszbService; +import com.hzya.frame.web.entity.BaseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.awt.*; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:32 + */ +@Service(value = "oerYszbService") +public class OerYszbServiceImpl extends BaseService implements IOerYszbService { + + private IOerYszbDao oerYszbDao; + + @Autowired + public void setOerYszbDao(IOerYszbDao dao) { + this.oerYszbDao = dao; + this.dao = dao; + } + + + //预算指标新增 + @Override + public Object saveOerYszb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("mlId"))){ + return BaseResult.getFailureMessageEntity("请传递mlid"); + } + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zbId"))){ + return BaseResult.getFailureMessageEntity("请传递指标id"); + } + if(!checkStr(jsonObject.getString("zbdm"))){ + return BaseResult.getFailureMessageEntity("请传递指标代码"); + } + OerYszbEntity oerYszbEntity = jsonObject.toJavaObject(OerYszbEntity.class); + try { + logger.info("======开始保存预算指标======="); + oerYszbEntity.setDataId("0"); + oerYszbEntity.setBnxId("0"); + OerYszbEntity save = oerYszbDao.saveOerYszbEntity(oerYszbEntity); + JSONObject jsonObjectYszb=new JSONObject(); + jsonObjectYszb.put("status","200"); + jsonObjectYszb.put("yszb",save); + logger.info("======预算指标保存完毕,返回值:{}=======",jsonObjectYszb.toJSONString()); + return jsonObjectYszb; + }catch (Exception e){ + logger.info("根据mlid:{},会计年度:{},公司代码:{},指标id:{}保存预算指标失败:{}",oerYszbEntity.getMlId(),oerYszbEntity.getKjnd(),oerYszbEntity.getGsdm(),oerYszbEntity.getZbId(),e.getMessage()); + return BaseResult.getFailureMessageEntity("预算指标保存失败"); + } + + } + + //预算指标修改 + @Override + public Object updateOerYszb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("mlId"))){ + return BaseResult.getFailureMessageEntity("请传递mlid"); + } + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zbId"))){ + return BaseResult.getFailureMessageEntity("请传递指标id"); + } + OerYszbEntity oerYszbEntity = jsonObject.toJavaObject(OerYszbEntity.class); + try { + logger.info("======开始保存预算指标======="); + Integer integer = oerYszbDao.updateOerYszbEntity(oerYszbEntity); + JSONObject jsonObjectYszb=new JSONObject(); + jsonObjectYszb.put("status","200"); + jsonObjectYszb.put("yszb",integer); + return jsonObjectYszb; + }catch (Exception e){ + logger.info("根据mlid:{},会计年度:{},公司代码:{},指标id:{},序号:{}更新预算指标失败:{}",oerYszbEntity.getMlId(),oerYszbEntity.getKjnd(),oerYszbEntity.getGsdm(),oerYszbEntity.getZbId(),oerYszbEntity.getXh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("预算指标更新失败"); + } + + } + + //预算指标删除 + @Override + public Object deleteOerYszb(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(!checkStr(jsonObject.getString("mlId"))){ + return BaseResult.getFailureMessageEntity("请传递mlid"); + } + if(!checkStr(jsonObject.getString("gsdm"))){ + return BaseResult.getFailureMessageEntity("请传递公司代码"); + } + if(!checkStr(jsonObject.getString("kjnd"))){ + return BaseResult.getFailureMessageEntity("请传递会计年度"); + } + if(!checkStr(jsonObject.getString("zbId"))){ + return BaseResult.getFailureMessageEntity("请传递指标id"); + } + OerYszbEntity oerYszbEntity = jsonObject.toJavaObject(OerYszbEntity.class); + try { + logger.info("======开始保存预算指标======="); + Integer integer = oerYszbDao.deleteOerYszbEntity(oerYszbEntity); + JSONObject jsonObjectYszb=new JSONObject(); + jsonObjectYszb.put("status","200"); + jsonObjectYszb.put("yszb",integer); + return jsonObjectYszb; + }catch (Exception e){ + logger.info("根据mlid:{},会计年度:{},公司代码:{},指标id:{},序号:{}删除预算指标失败:{}",oerYszbEntity.getMlId(),oerYszbEntity.getKjnd(),oerYszbEntity.getGsdm(),oerYszbEntity.getZbId(),oerYszbEntity.getXh(),e.getMessage()); + return BaseResult.getFailureMessageEntity("预算指标删除失败"); + } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/IPubAuditLogDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/IPubAuditLogDao.java new file mode 100644 index 00000000..77f73e0d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/IPubAuditLogDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.pubauditlog.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +public interface IPubAuditLogDao extends IBaseDao { + Integer saveData(PubAuditLogEntity pubAuditLog); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/impl/PubAuditLogDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/impl/PubAuditLogDaoImpl.java new file mode 100644 index 00000000..c6165975 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/dao/impl/PubAuditLogDaoImpl.java @@ -0,0 +1,25 @@ +package com.hzya.frame.grpU8.nxproof.pubauditlog.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.pubauditlog.dao.IPubAuditLogDao; +import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +@Repository(value = "pubAuditLogDao") +public class PubAuditLogDaoImpl extends MybatisGenericDao implements IPubAuditLogDao { + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(PubAuditLogEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "PubAuditLogEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.java new file mode 100644 index 00000000..4c88f7fb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.java @@ -0,0 +1,195 @@ +package com.hzya.frame.grpU8.nxproof.pubauditlog.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/16 22:02 + */ + +public class PubAuditLogEntity extends BaseEntity { + private String billId; + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String logId; + private String billname; + private String flowcode; + private String flowname; + private String modname; + private String bizname; + private String nodename; + private String nodeseq; + private String auditorId; + private String auditor; + private String adatetime; + private String remark; + private String atype; + private String amt; + private String logseq; + private String servdatetime; + private String computername; + + public String getBillId() { + return billId; + } + + public void setBillId(String billId) { + this.billId = billId; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getLogId() { + return logId; + } + + public void setLogId(String logId) { + this.logId = logId; + } + + public String getBillname() { + return billname; + } + + public void setBillname(String billname) { + this.billname = billname; + } + + public String getFlowcode() { + return flowcode; + } + + public void setFlowcode(String flowcode) { + this.flowcode = flowcode; + } + + public String getFlowname() { + return flowname; + } + + public void setFlowname(String flowname) { + this.flowname = flowname; + } + + public String getModname() { + return modname; + } + + public void setModname(String modname) { + this.modname = modname; + } + + public String getBizname() { + return bizname; + } + + public void setBizname(String bizname) { + this.bizname = bizname; + } + + public String getNodename() { + return nodename; + } + + public void setNodename(String nodename) { + this.nodename = nodename; + } + + public String getNodeseq() { + return nodeseq; + } + + public void setNodeseq(String nodeseq) { + this.nodeseq = nodeseq; + } + + public String getAuditorId() { + return auditorId; + } + + public void setAuditorId(String auditorId) { + this.auditorId = auditorId; + } + + public String getAuditor() { + return auditor; + } + + public void setAuditor(String auditor) { + this.auditor = auditor; + } + + public String getAdatetime() { + return adatetime; + } + + public void setAdatetime(String adatetime) { + this.adatetime = adatetime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getAtype() { + return atype; + } + + public void setAtype(String atype) { + this.atype = atype; + } + + public String getAmt() { + return amt; + } + + public void setAmt(String amt) { + this.amt = amt; + } + + public String getLogseq() { + return logseq; + } + + public void setLogseq(String logseq) { + this.logseq = logseq; + } + + public String getServdatetime() { + return servdatetime; + } + + public void setServdatetime(String servdatetime) { + this.servdatetime = servdatetime; + } + + public String getComputername() { + return computername; + } + + public void setComputername(String computername) { + this.computername = computername; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.xml new file mode 100644 index 00000000..c023f1d1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/entity/PubAuditLogEntity.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +GSDM,KJN + + + + + + + + + + + insert into PubAuditLog( + BillID, + LOGID, + BILLNAME, + FLOWCODE, + FLOWNAME, + MODNAME, + BIZNAME, + NODENAME, + NODESEQ, + AUDITORID, + AUDITOR, + ADATETIME, + REMARK, + ATYPE, + AMT, + ServDateTime, + ComputerName, + GSDM, + KJND + ) + values ( + #{billId}, + #{logId}, + #{billname}, + #{flowcode}, + #{flowname}, + #{modname}, + #{bizname}, + #{nodename}, + #{nodeseq}, + #{auditorId}, + #{auditor}, + replace(replace(replace(CONVERT (VARCHAR, getdate(), 120),'-',''),':',''),' ',''), + #{remark}, + #{atype}, + #{amt}, + CONVERT (VARCHAR, getdate(), 120), + #{computername}, + #{gsdm}, + #{kjnd} + ) + + + + + DELETE + FROM + PubAuditLog + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND BillID = #{billId} + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/IPubAuditLogService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/IPubAuditLogService.java new file mode 100644 index 00000000..e11bae73 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/IPubAuditLogService.java @@ -0,0 +1,11 @@ +package com.hzya.frame.grpU8.nxproof.pubauditlog.service; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:28 + */ +public interface IPubAuditLogService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/impl/PubAuditLogServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/impl/PubAuditLogServiceImpl.java new file mode 100644 index 00000000..8e990b55 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubauditlog/service/impl/PubAuditLogServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.pubauditlog.service.impl; + +import com.hzya.frame.grpU8.nxproof.pubauditlog.service.IPubAuditLogService; +import org.springframework.stereotype.Service; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:32 + */ +@Service(value = "pubAuditLogService") +public class PubAuditLogServiceImpl implements IPubAuditLogService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/ISenderPubbmxxDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/ISenderPubbmxxDao.java new file mode 100644 index 00000000..530749e2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/ISenderPubbmxxDao.java @@ -0,0 +1,92 @@ +package com.hzya.frame.grpU8.nxproof.pubbmxx.dao; + + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity; + +import java.util.List; + +/** + * (pubbmxx: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:48:44 + */ +public interface ISenderPubbmxxDao extends IBaseDao { + + /** + * + * @content 查询部门信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity); + + /** + * + * @content 保存部门信息到日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 15:26 + * **/ + SenderPubbmxxEntity saveSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity); + + /** + * + * @content 更新部门信息到日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 15:26 + * **/ + SenderPubbmxxEntity updateSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity); + + + /** + * + * @content 查询部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryPubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity); + + /** + * + * @content 保存部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 15:26 + * **/ + SenderPubbmxxEntity savePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity); + + /** + * + * @content 更新部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/26 15:26 + * **/ + SenderPubbmxxEntity updatePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity ); + + /** + * + * @content 删除部门信息 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:27 + * **/ + Integer deletePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity ); + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/impl/SenderPubbmxxDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/impl/SenderPubbmxxDaoImpl.java new file mode 100644 index 00000000..d9e22148 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/dao/impl/SenderPubbmxxDaoImpl.java @@ -0,0 +1,61 @@ +package com.hzya.frame.grpU8.nxproof.pubbmxx.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao; +import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (Pubbmxx)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:48:44 + */ +@Repository(value = "SenderPubbmxxDaoImpl") +public class SenderPubbmxxDaoImpl extends MybatisGenericDao implements ISenderPubbmxxDao { + + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public List querySenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.queryByLike(senderPubbmxxEntity); + } + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public SenderPubbmxxEntity saveSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.save(senderPubbmxxEntity); + } + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public SenderPubbmxxEntity updateSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.update(senderPubbmxxEntity); + } + + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public List queryPubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.query(senderPubbmxxEntity); + } + + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public SenderPubbmxxEntity savePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.save(senderPubbmxxEntity); + } + + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public SenderPubbmxxEntity updatePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.update(senderPubbmxxEntity); + } + + @Override + @DS("#senderPubbmxxEntity.dataSourceCode") + public Integer deletePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) { + return super.delete("SenderPubbmxxEntity_delete_bmxx",senderPubbmxxEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.java new file mode 100644 index 00000000..9dbec879 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.java @@ -0,0 +1,196 @@ +package com.hzya.frame.grpU8.nxproof.pubbmxx.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (Pubbmxx)实体类 + * + * @author makejava + * @since 2024-06-20 09:48:44 + */ +public class SenderPubbmxxEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String bmdm; + private String bmmc; + private String bmlb; + private String fzrdm; + private String tel; + private Integer xjbms; + private Integer zgrs; + private String syzt; + private Integer jlrId; + private String jlRq; + private Integer xgrId; + private String xgRq; + private String sjly; + private String sfmx; + private String zjm; + private String fzrdm2; + private String fzrdm3; + private String sftck; + + public String getSftck() { + return sftck; + } + + public void setSftck(String sftck) { + this.sftck = sftck; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getBmmc() { + return bmmc; + } + + public void setBmmc(String bmmc) { + this.bmmc = bmmc; + } + + public String getBmlb() { + return bmlb; + } + + public void setBmlb(String bmlb) { + this.bmlb = bmlb; + } + + public String getFzrdm() { + return fzrdm; + } + + public void setFzrdm(String fzrdm) { + this.fzrdm = fzrdm; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public Integer getXjbms() { + return xjbms; + } + + public void setXjbms(Integer xjbms) { + this.xjbms = xjbms; + } + + public Integer getZgrs() { + return zgrs; + } + + public void setZgrs(Integer zgrs) { + this.zgrs = zgrs; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public Integer getJlrId() { + return jlrId; + } + + public void setJlrId(Integer jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public Integer getXgrId() { + return xgrId; + } + + public void setXgrId(Integer xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public String getSfmx() { + return sfmx; + } + + public void setSfmx(String sfmx) { + this.sfmx = sfmx; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getFzrdm2() { + return fzrdm2; + } + + public void setFzrdm2(String fzrdm2) { + this.fzrdm2 = fzrdm2; + } + + public String getFzrdm3() { + return fzrdm3; + } + + public void setFzrdm3(String fzrdm3) { + this.fzrdm3 = fzrdm3; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.xml new file mode 100644 index 00000000..c7bb916b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/entity/SenderPubbmxxEntity.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + ,kjnd + ,bmdm + ,bmmc + ,bmlb + ,fzrdm + ,tel + ,xjbms + ,zgrs + ,syzt + ,Jlr_ID + ,Jl_RQ + ,Xgr_ID + ,Xg_RQ + ,Sjly + ,SFMX + ,zjm + ,fzrdm2 + ,fzrdm3 + ,sftck + + + + + + + + + + + + + + + + insert into pubbmxx( + + kjnd , + bmdm , + bmmc , + bmlb , + fzrdm , + tel , + xjbms , + zgrs , + syzt , + Jlr_ID , + Jl_RQ , + Xgr_ID , + Xg_RQ , + Sjly , + SFMX , + zjm , + fzrdm2 , + fzrdm3 , + sftck , + gsdm + + )values( + + #{kjnd} , + #{bmdm} , + #{bmmc} , + #{bmlb} , + #{fzrdm} , + #{tel} , + #{xjbms} , + #{zgrs} , + #{syzt} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sjly} , + #{sfmx} , + #{zjm} , + #{fzrdm2} , + #{fzrdm3} , + #{sftck} , + #{gsdm} + + ) + + + + + + insert into pubbmxx(id,gsdm, kjnd, bmdm, bmmc, bmlb, fzrdm, tel, xjbms, zgrs, syzt, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, SFMX, zjm, fzrdm2, fzrdm3) + values + + (#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.bmdm},#{entity.bmmc},#{entity.bmlb},#{entity.fzrdm},#{entity.tel},#{entity.xjbms},#{entity.zgrs},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.zjm},#{entity.fzrdm2},#{entity.fzrdm3}) + + + + + insert into pubbmxx(id,gsdm, kjnd, bmdm, bmmc, bmlb, fzrdm, tel, xjbms, zgrs, syzt, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, SFMX, zjm, fzrdm2, fzrdm3) + values + + (#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.bmdm},#{entity.bmmc},#{entity.bmlb},#{entity.fzrdm},#{entity.tel},#{entity.xjbms},#{entity.zgrs},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.zjm},#{entity.fzrdm2},#{entity.fzrdm3}) + + on duplicate key update + gsdm = values(gsdm), + kjnd = values(kjnd), + bmdm = values(bmdm), + bmmc = values(bmmc), + bmlb = values(bmlb), + fzrdm = values(fzrdm), + tel = values(tel), + xjbms = values(xjbms), + zgrs = values(zgrs), + syzt = values(syzt), + Jlr_ID = values(Jlr_ID), + Jl_RQ = values(Jl_RQ), + Xgr_ID = values(Xgr_ID), + Xg_RQ = values(Xg_RQ), + Sjly = values(Sjly), + SFMX = values(SFMX), + zjm = values(zjm), + fzrdm2 = values(fzrdm2), + fzrdm3 = values(fzrdm3) + + + update pubbmxx set + + gsdm = #{gsdm}, + kjnd = #{kjnd}, + bmdm = #{bmdm}, + bmmc = #{bmmc}, + bmlb = #{bmlb}, + fzrdm = #{fzrdm}, + tel = #{tel}, + xjbms = #{xjbms}, + zgrs = #{zgrs}, + syzt = #{syzt}, + Jlr_ID = #{jlrId}, + Jl_RQ = #{jlRq}, + Xgr_ID = #{xgrId}, + Xg_RQ = #{xgRq}, + Sjly = #{sjly}, + SFMX = #{sfmx}, + zjm = #{zjm}, + fzrdm2 = #{fzrdm2}, + fzrdm3 = #{fzrdm3}, + sftck = #{sftck} + + where kjnd= #{kjnd} and gsdm=#{gsdm} and bmdm=#{bmdm} + + + + + +update pubbmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update pubbmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and kjnd = #{kjnd} + and bmdm = #{bmdm} + and bmmc = #{bmmc} + and bmlb = #{bmlb} + and fzrdm = #{fzrdm} + and tel = #{tel} + and xjbms = #{xjbms} + and zgrs = #{zgrs} + and syzt = #{syzt} + and Jlr_ID = #{jlrId} + and Jl_RQ = #{jlRq} + and Xgr_ID = #{xgrId} + and Xg_RQ = #{xgRq} + and Sjly = #{sjly} + and SFMX = #{sfmx} + and zjm = #{zjm} + and fzrdm2 = #{fzrdm2} + and fzrdm3 = #{fzrdm3} + and sts='Y' + + + + + delete from pubbmxx where id= #{id} + + + + + delete from pubbmxx where kjnd= #{kjnd} and gsdm=#{gsdm} + and bmdm = #{bmdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/ISenderPubbmxxService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/ISenderPubbmxxService.java new file mode 100644 index 00000000..8470a2cc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/ISenderPubbmxxService.java @@ -0,0 +1,78 @@ +package com.hzya.frame.grpU8.nxproof.pubbmxx.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + +/** + * (Pubbmxx)表服务接口 + * + * @author makejava + * @since 2024-06-20 09:48:44 + */ +public interface ISenderPubbmxxService extends IBaseService { + + /** + * + * @content 同步部门信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:51 + * **/ + Object pubbmxxSynchronization(JSONObject jsonObject); + + /** + * + * @content 查询部门信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:57 + * **/ + Object queryEntityPage(JSONObject jsonObject); + + /** + * + * @content 查询部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 18:57 + * **/ + List queryEntityPageHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity); + + /** + * + * @content 保存部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:12 + * **/ + Object saveEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 更新部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:16 + * **/ + Object updateEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 删除部门信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:29 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/impl/SenderPubbmxxServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/impl/SenderPubbmxxServiceImpl.java new file mode 100644 index 00000000..05efb880 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubbmxx/service/impl/SenderPubbmxxServiceImpl.java @@ -0,0 +1,431 @@ +package com.hzya.frame.grpU8.nxproof.pubbmxx.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao; +import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity; +import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao; +import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity; +import com.hzya.frame.grpU8.nxproof.pubbmxx.service.ISenderPubbmxxService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (Pubbmxx)表服务实现类 + * + * @author makejava + * @since 2024-06-20 09:48:44 + */ +@Service(value = "SenderPubbmxxServiceImpl") +public class SenderPubbmxxServiceImpl extends BaseService implements ISenderPubbmxxService { + + + @Autowired + private IGbiZbxmbDao gbiZbxmbDao; + + private ISenderPubbmxxDao senderPubbmxxDao; + + @Autowired + public void setSenderPubbmxxDao(ISenderPubbmxxDao dao) { + this.senderPubbmxxDao = dao; + this.dao = dao; + } + + @Override + public Object pubbmxxSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubbmxxEntity senderPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class); + List senderPubbmxxEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubbmxxEntity.getKjnd()==null){ + senderPubbmxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + /*try { + //同步南浔区人民医院001部门信息 + senderPubbmxxEntity.setGsdm("0101010101"); + logger.info("==========开始查询南浔区人民医院部门信息========"); + senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("南浔区人民医院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003部门信息 + senderPubbmxxEntity.setGsdm("0101010204"); + logger.info("==========开始查询南浔区练市人民医院部门信息========"); + senderPubbmxxEntities = senderPubbmxxDao.querySenderPubbmxxEntity(senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("南浔区练市人民医院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005部门信息 + senderPubbmxxEntity.setGsdm("0101010202"); + logger.info("==========开始查询南浔区练市镇中心卫生院部门信息========"); + senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("南浔区练市镇中心卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007部门信息 + senderPubbmxxEntity.setGsdm("0101010204"); + logger.info("==========开始查询南浔区善琏镇卫生院部门信息========"); + senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("南浔区善琏镇卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004部门信息 + SenderPubbmxxEntity.setGsdm("0101010201"); + senderPubbmxxEntities = sqlSessionSlz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("双林镇中心卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009部门信息 + SenderPubbmxxEntity.setGsdm("0101020201"); + senderPubbmxxEntities = sqlSessionLhz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("菱湖镇中心卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010部门信息 + SenderPubbmxxEntity.setGsdm("0101020202"); + senderPubbmxxEntities = sqlSessionHfz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("和孚镇卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011部门信息 + SenderPubbmxxEntity.setGsdm("0101020203"); + senderPubbmxxEntities = sqlSessionQjz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("千金镇卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012部门信息 + SenderPubbmxxEntity.setGsdm("0101020204"); + senderPubbmxxEntities = sqlSessionScz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("石崇镇卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步南浔镇中心卫生院014部门信息 + SenderPubbmxxEntity.setGsdm("010202"); + senderPubbmxxEntities = sqlSessionNxz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity); + result =sendBmxxToHealthBureau(senderPubbmxxEntities); + logger.info("南浔镇中心卫生院GRPU8部门信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("GRPU8部门信息同步失败:{}",e.getMessage()); + throw new RuntimeException(e.getMessage()); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + private String sendBmxxToHealthBureau(List senderPubbmxxEntities){ + //查询发送方得部门信息数据 + if (CollectionUtils.isEmpty(senderPubbmxxEntities)) { + logger.info("GRPU8没有需要同步得部门信息"); + return "GRPU8没有需要同步得部门信息"; + } else { + for (SenderPubbmxxEntity bmxxEntity : senderPubbmxxEntities) { + //bmxxEntity.setKjnd("2021"); + //根据会计年度,公司代码,部门代码查询数据是否已经同步过 + SenderPubbmxxEntity receiverPubbmxxEntity = new SenderPubbmxxEntity(); + receiverPubbmxxEntity.setKjnd(bmxxEntity.getKjnd()); + receiverPubbmxxEntity.setGsdm(bmxxEntity.getGsdm()); + receiverPubbmxxEntity.setBmdm(bmxxEntity.getBmdm()); + try { + List receiverPubbmxxEntities =queryEntityPageHealthBureau(receiverPubbmxxEntity); + //设置id为会计年度,公司代码,部门代码拼接,测试时候这样,具体看情况 + bmxxEntity.setId(bmxxEntity.getGsdm() + '-' + bmxxEntity.getKjnd() + '-' + bmxxEntity.getBmdm()); + JsonResultEntity jsonResultEntity=null; + if (CollectionUtils.isEmpty(receiverPubbmxxEntities)) { + logger.info("===========开始将公司编码为:{}得GRPU8部门信息同步新增到卫生局GRPU8中=============",bmxxEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", bmxxEntity); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + logger.info("公司编码{}得GROU8部门信息同步保存返回结果为:{}",bmxxEntity.getGsdm(),json.getString("bmxx")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8部门信息新增到部门日志中============="); + //保存发送方得日志 + bmxxEntity.setDataSourceCode(grp_data_source_code); + senderPubbmxxDao.saveSenderPubbmxxEntity(bmxxEntity); + }*/ + } else { + logger.info("===========开始将公司编码为:{}得GRPU8部门信息同步更新到卫生局GRPU8中=============",bmxxEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", bmxxEntity); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("公司编码{}得GROU8部门信息同步更新返回结果为:{}",bmxxEntity.getGsdm(),json.getString("bmxx")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8部门信息更新到部门日志中============="); + //保存发送方得日志 + bmxxEntity.setDataSourceCode(grp_data_source_code); + senderPubbmxxDao.updateSenderPubbmxxEntity(bmxxEntity); + }*/ + } + } catch (Exception e) { + logger.info("公司编码{}得GRPU8部门信息同步失败:{}",bmxxEntity.getGsdm(), e.getMessage()); + e.printStackTrace(); + } + } + return "同步GROU8部门信息成功"; + } + } + + //查询部门信息 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubbmxxEntity senderPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class); + List senderPubbmxxEntities=new ArrayList<>(); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubbmxxEntity.getKjnd()==null){ + senderPubbmxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderPubbmxxEntity.getGsdm())){ + logger.info("======根据公司编码:{}查询部门信息为空",senderPubbmxxEntity.getGsdm()); + return BaseResult.getFailureMessageEntity("请传递公司编码"); + } + try { + /*switch (SenderPubbmxxEntity.getGsdm()){ + case "0101010103"://练市人民医院 + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101010201"://双林镇中心卫生院 + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101010202"://练市镇中心卫生院 + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101010204"://善琏镇卫生院 + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101020201": + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101020202": + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101020203": + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101020204": + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + case "0101010101"://南浔区人民医院 + senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity); + break; + default: + break; + }*/ + senderPubbmxxEntities = senderPubbmxxDao.querySenderPubbmxxEntity(senderPubbmxxEntity); + PageInfo pageInfo=new PageInfo(senderPubbmxxEntities); + JSONObject jsonParasm=new JSONObject(); + jsonParasm.put("status","200"); + jsonParasm.put("pageInfo",pageInfo); + return jsonParasm; + }catch (Exception e){ + logger.info("查询公司编码为:{}得GROU8部门信息失败:{}",senderPubbmxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8部门信息失败"); + } + } + + + //查询部门信息 卫生局 + @Override + public List queryEntityPageHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) { + try { + logger.info("====开始根据公司代码:{}查询卫生局中得部门信息",senderPubbmxxEntity.getGsdm()); + List receiverPubbmxxEntities = senderPubbmxxDao.queryPubbmxxHealthBureau(senderPubbmxxEntity); + return receiverPubbmxxEntities; + }catch (Exception e){ + logger.info("根据公司编码:{}查询GROU8部门信息失败:{}",senderPubbmxxEntity.getGsdm(),e.getMessage()); + e.printStackTrace(); + } + return null; + } + + + //保存部门信息 卫生局 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============保存部门信息时会计年度为空==========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============保存部门信息时公司代码为空==========="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("bmdm"))) { + logger.info("============保存部门信息时部门编码为空==========="); + return BaseResult.getFailureMessageEntity("部门编码为空"); + } + if (!checkStr(jsonObject.getString("bmmc"))) { + logger.info("============保存部门信息时部门名称为空==========="); + return BaseResult.getFailureMessageEntity("部门名称为空"); + } + if (!checkStr(jsonObject.getString("jlrId"))) { + logger.info("============保存部门信息时建立人id为空==========="); + return BaseResult.getFailureMessageEntity("建立人id为空"); + } + if (!checkStr(jsonObject.getString("jlRq"))) { + logger.info("============保存部门信息时建立日期为空==========="); + return BaseResult.getFailureMessageEntity("建立日期为空"); + } + try { + SenderPubbmxxEntity senderPubbmxxEntity=new SenderPubbmxxEntity(); + senderPubbmxxEntity.setKjnd(receiverPubbmxxEntity.getKjnd()); + senderPubbmxxEntity.setGsdm(receiverPubbmxxEntity.getGsdm()); + senderPubbmxxEntity.setBmdm(receiverPubbmxxEntity.getBmdm()); + senderPubbmxxEntity.setDataSourceCode(receiverPubbmxxEntity.getDataSourceCode()); + List senderPubbmxxEntities = queryEntityPageHealthBureau(senderPubbmxxEntity); + if(CollectionUtils.isEmpty(senderPubbmxxEntities)){ + receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm()); + logger.info("==========开始保存公司编码为:{}得部门信息,id为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getId()); + SenderPubbmxxEntity receiverPubbmxxEntity1 = senderPubbmxxDao.savePubbmxxHealthBureau(receiverPubbmxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("bmxx",receiverPubbmxxEntity1); + return jsonObject1; + }else{ + logger.info("==========开始更新公司编码为:{}得部门信息,代码为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm()); + SenderPubbmxxEntity receiverPubbmxxEntity1 = senderPubbmxxDao.updatePubbmxxHealthBureau(receiverPubbmxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("bmxx",receiverPubbmxxEntity1); + return jsonObject1; + } + }catch (Exception e){ + logger.info("保存公司编码为:{}得GROU8部门信息失败:{}",receiverPubbmxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8部门信息失败"); + } + } + + //更新部门信息 卫生院 + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============更新部门信息时会计年度为空==========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============更新部门信息时公司代码为空==========="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("bmdm"))) { + logger.info("============更新部门信息时部门编码为空==========="); + return BaseResult.getFailureMessageEntity("部门编码为空"); + } + try { + receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm()); + logger.info("==========开始更新公司编码为:{}得部门信息,代码为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm()); + SenderPubbmxxEntity receiverPubbmxxEntity1 = senderPubbmxxDao.updatePubbmxxHealthBureau(receiverPubbmxxEntity); + //更新指标项目表中的部门名称 + GbiZbxmbEntity gbiZbxmbEntity=new GbiZbxmbEntity(); + gbiZbxmbEntity.setGsdm(receiverPubbmxxEntity.getGsdm()); + gbiZbxmbEntity.setKjnd(receiverPubbmxxEntity.getKjnd()); + gbiZbxmbEntity.setBmdm(receiverPubbmxxEntity.getBmdm()); + gbiZbxmbEntity.setBmmc(receiverPubbmxxEntity.getBmmc()); + gbiZbxmbEntity.setDataSourceCode(receiverPubbmxxEntity.getDataSourceCode()); + gbiZbxmbDao.updateZbmxBmmc(gbiZbxmbEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("bmxx",receiverPubbmxxEntity1); + return jsonObject1; + }catch (Exception e){ + logger.info("更新公司编码为:{}得GROU8部门信息失败:{}",receiverPubbmxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8部门信息失败"); + } + } + + //删除部门信息 + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============删除部门信息时会计年度为空==========="); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============删除部门信息时公司代码为空==========="); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + try { + receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm()); + logger.info("==========开始删除公司编码为:{}得部门信息,编码为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm()); + Integer integer = senderPubbmxxDao.deletePubbmxxHealthBureau(receiverPubbmxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("bmxx",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("删除公司编码为:{}得GROU8部门信息:{}失败:{}",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8部门信息失败"); + } + } + + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/ISenderPubkjqjDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/ISenderPubkjqjDao.java new file mode 100644 index 00000000..38e3cc53 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/ISenderPubkjqjDao.java @@ -0,0 +1,88 @@ +package com.hzya.frame.grpU8.nxproof.pubkjqj.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity; + +import java.util.List; + +/** + * (pubkjqj: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:49:34 + */ +public interface ISenderPubkjqjDao extends IBaseDao { + /** + * + * @content 查询会计期间 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List querySenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 保存会计期间到会计期间日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 9:41 + * **/ + SenderPubkjqjEntity saveSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 更新会计期间到会计期间日志表中 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 9:42 + * **/ + SenderPubkjqjEntity updateSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 查询会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 10:11 + * **/ + List queryPubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 保存会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 9:41 + * **/ + SenderPubkjqjEntity savePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 更新会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/27 9:42 + * **/ + SenderPubkjqjEntity updatePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 删除会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:34 + * **/ + Integer deletePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity); + + + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/impl/SenderPubkjqjDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/impl/SenderPubkjqjDaoImpl.java new file mode 100644 index 00000000..7940b4ce --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/dao/impl/SenderPubkjqjDaoImpl.java @@ -0,0 +1,62 @@ +package com.hzya.frame.grpU8.nxproof.pubkjqj.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.pubkjqj.dao.ISenderPubkjqjDao; +import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (Pubkjqj)表数据库访问层 + * + * @author makejava + * @since 2024-06-20 09:49:34 + */ +@Repository(value = "SenderPubkjqjDaoImpl") +public class SenderPubkjqjDaoImpl extends MybatisGenericDao implements ISenderPubkjqjDao { + + + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public List querySenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.queryByLike(senderPubkjqjEntity); + } + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public SenderPubkjqjEntity saveSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.save(senderPubkjqjEntity); + } + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public SenderPubkjqjEntity updateSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.update(senderPubkjqjEntity); + } + + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public List queryPubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.query(senderPubkjqjEntity); + } + + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public SenderPubkjqjEntity savePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.save(senderPubkjqjEntity); + } + + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public SenderPubkjqjEntity updatePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.update(senderPubkjqjEntity); + } + + @Override + @DS("#senderPubkjqjEntity.dataSourceCode") + public Integer deletePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) { + return super.delete("SenderPubkjqjEntity_delete_kjqj",senderPubkjqjEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.java new file mode 100644 index 00000000..aaa32937 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.java @@ -0,0 +1,134 @@ +package com.hzya.frame.grpU8.nxproof.pubkjqj.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (Pubkjqj)实体类 + * + * @author makejava + * @since 2024-06-20 09:49:34 + */ +public class SenderPubkjqjEntity extends BaseEntity { + + private String gsdm; + private String zth; + private String kjnd; + private Integer kjqjxh; + private String qsrq; + private String jsrq; + private String jzbz; + private String zzqmcl; + private Integer qmpzpc; + private String syzt; + private String xgzt; + private String chjzbz; + private String jzzt; + + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getZth() { + return zth; + } + + public void setZth(String zth) { + this.zth = zth; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public Integer getKjqjxh() { + return kjqjxh; + } + + public void setKjqjxh(Integer kjqjxh) { + this.kjqjxh = kjqjxh; + } + + public String getQsrq() { + return qsrq; + } + + public void setQsrq(String qsrq) { + this.qsrq = qsrq; + } + + public String getJsrq() { + return jsrq; + } + + public void setJsrq(String jsrq) { + this.jsrq = jsrq; + } + + public String getJzbz() { + return jzbz; + } + + public void setJzbz(String jzbz) { + this.jzbz = jzbz; + } + + public String getZzqmcl() { + return zzqmcl; + } + + public void setZzqmcl(String zzqmcl) { + this.zzqmcl = zzqmcl; + } + + public Integer getQmpzpc() { + return qmpzpc; + } + + public void setQmpzpc(Integer qmpzpc) { + this.qmpzpc = qmpzpc; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getXgzt() { + return xgzt; + } + + public void setXgzt(String xgzt) { + this.xgzt = xgzt; + } + + public String getChjzbz() { + return chjzbz; + } + + public void setChjzbz(String chjzbz) { + this.chjzbz = chjzbz; + } + + public String getJzzt() { + return jzzt; + } + + public void setJzzt(String jzzt) { + this.jzzt = jzzt; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.xml new file mode 100644 index 00000000..7fda154b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/entity/SenderPubkjqjEntity.xml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + gsdm + ,ZTH + ,kjnd + ,kjqjxh + ,qsrq + ,jsrq + ,jzbz + ,zzqmcl + ,qmpzpc + ,syzt + ,xgzt + ,chjzbz + ,jzzt + + + + + + + + + + + + + + + + insert into pubkjqj( + + ZTH , + kjnd , + kjqjxh , + qsrq , + jsrq , + jzbz , + zzqmcl , + qmpzpc , + syzt , + xgzt , + chjzbz , + jzzt , + gsdm + + )values( + + #{zth} , + #{kjnd} , + #{kjqjxh} , + #{qsrq} , + #{jsrq} , + #{jzbz} , + #{zzqmcl} , + #{qmpzpc} , + #{syzt} , + #{xgzt} , + #{chjzbz} , + #{jzzt} , + #{gsdm} + + ) + + + + + + insert into pubkjqj(id,gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt) + values + + (#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kjqjxh},#{entity.qsrq},#{entity.jsrq},#{entity.jzbz},#{entity.zzqmcl},#{entity.qmpzpc},#{entity.syzt},#{entity.xgzt},#{entity.chjzbz},#{entity.jzzt}) + + + + + insert into pubkjqj(id,gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt) + values + + (#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kjqjxh},#{entity.qsrq},#{entity.jsrq},#{entity.jzbz},#{entity.zzqmcl},#{entity.qmpzpc},#{entity.syzt},#{entity.xgzt},#{entity.chjzbz},#{entity.jzzt}) + + on duplicate key update + gsdm = values(gsdm), + ZTH = values(ZTH), + kjnd = values(kjnd), + kjqjxh = values(kjqjxh), + qsrq = values(qsrq), + jsrq = values(jsrq), + jzbz = values(jzbz), + zzqmcl = values(zzqmcl), + qmpzpc = values(qmpzpc), + syzt = values(syzt), + xgzt = values(xgzt), + chjzbz = values(chjzbz), + jzzt = values(jzzt) + + + + update pubkjqj set + + gsdm = #{gsdm}, + ZTH = #{zth}, + kjnd = #{kjnd}, + kjqjxh = #{kjqjxh}, + qsrq = #{qsrq}, + jsrq = #{jsrq}, + jzbz = #{jzbz}, + zzqmcl = #{zzqmcl}, + qmpzpc = #{qmpzpc}, + syzt = #{syzt}, + xgzt = #{xgzt}, + chjzbz = #{chjzbz}, + jzzt = #{jzzt} + + where kjnd= #{kjnd} and gsdm=#{gsdm} and zth=#{zth} and kjqjxh=#{kjqjxh} + + + + + +update pubkjqj set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update pubkjqj set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and ZTH = #{zth} + and kjnd = #{kjnd} + and kjqjxh = #{kjqjxh} + and qsrq = #{qsrq} + and jsrq = #{jsrq} + and jzbz = #{jzbz} + and zzqmcl = #{zzqmcl} + and qmpzpc = #{qmpzpc} + and syzt = #{syzt} + and xgzt = #{xgzt} + and chjzbz = #{chjzbz} + and jzzt = #{jzzt} + and sts='Y' + + + + + delete from pubkjqj where id= #{id} + + + + + delete from pubkjqj where kjnd= #{kjnd} and gsdm=#{gsdm} and zth=#{zth} and kjqjxh=#{kjqjxh} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/ISenderPubkjqjService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/ISenderPubkjqjService.java new file mode 100644 index 00000000..b17febc3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/ISenderPubkjqjService.java @@ -0,0 +1,77 @@ +package com.hzya.frame.grpU8.nxproof.pubkjqj.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + +/** + * (Pubkjqj)表服务接口 + * + * @author makejava + * @since 2024-06-20 09:49:34 + */ +public interface ISenderPubkjqjService extends IBaseService { + + /** + * + * @content 同步会计期间 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 11:10 + * **/ + Object pubkjqjSynchronization(JSONObject jsonObject); + + /** + * + * @content 查询会计期间 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 19:00 + * **/ + Object queryEntityPage(JSONObject jsonObject); + + /** + * + * @content 查询会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/20 19:00 + * **/ + List queryEntityPageHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity); + + /** + * + * @content 保存会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:19 + * **/ + Object saveEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 更新会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/21 14:23 + * **/ + Object updateEntityHealthBureau(JSONObject jsonObject); + + /** + * + * @content 删除会计期间 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:35 + * **/ + Object deleteEntityHealthBureau(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/impl/SenderPubkjqjServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/impl/SenderPubkjqjServiceImpl.java new file mode 100644 index 00000000..1ca0303a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubkjqj/service/impl/SenderPubkjqjServiceImpl.java @@ -0,0 +1,434 @@ +package com.hzya.frame.grpU8.nxproof.pubkjqj.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.pubkjqj.dao.ISenderPubkjqjDao; +import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity; +import com.hzya.frame.grpU8.nxproof.pubkjqj.service.ISenderPubkjqjService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (Pubkjqj)表服务实现类 + * + * @author makejava + * @since 2024-06-20 09:49:34 + */ +@Service(value = "SenderPubkjqjServiceImpl") +public class SenderPubkjqjServiceImpl extends BaseService implements ISenderPubkjqjService { + + + private ISenderPubkjqjDao senderPubkjqjDao; + + @Autowired + public void setSenderPubkjqjDao(ISenderPubkjqjDao dao) { + this.senderPubkjqjDao = dao; + this.dao = dao; + } + + @Override + public Object pubkjqjSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubkjqjEntity senderPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class); + List senderPubkjqjEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubkjqjEntity.getKjnd()==null){ + senderPubkjqjEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + /*try { + //同步南浔区人民医院001会计期间信息 + senderPubkjqjEntity.setZth("001"); + senderPubkjqjEntity.setGsdm("0101010101"); + logger.info("===========开始查询南浔区人民医院会计期间信息============="); + senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("南浔区人民医院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003会计期间信息 + senderPubkjqjEntity.setZth("003"); + senderPubkjqjEntity.setGsdm("0101010103"); + logger.info("===========开始查询南浔区练市人民医院会计期间信息============="); + senderPubkjqjEntities =senderPubkjqjDao.querySenderPubkjqjEntity(senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("南浔区练市人民医院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005会计期间信息 + senderPubkjqjEntity.setZth("005"); + senderPubkjqjEntity.setGsdm("0101010202"); + logger.info("===========开始查询南浔区练市镇中心卫生院会计期间信息============="); + senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("南浔区练市镇中心卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007会计期间信息 + senderPubkjqjEntity.setZth("007"); + senderPubkjqjEntity.setGsdm("0101010204"); + logger.info("===========开始查询南浔区善琏镇卫生院会计期间信息============="); + senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("南浔区善琏镇卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004会计期间信息 + senderPubkjqjEntity.setZth("004"); + senderPubkjqjEntity.setGsdm("0101010201"); + senderPubkjqjEntities = sqlSessionSlz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("双林镇中心卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009会计期间信息 + senderPubkjqjEntity.setZth("009"); + senderPubkjqjEntity.setGsdm("0101020201"); + senderPubkjqjEntities = sqlSessionLhz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("菱湖镇中心卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010会计期间信息 + senderPubkjqjEntity.setZth("010"); + senderPubkjqjEntity.setGsdm("0101020202"); + senderPubkjqjEntities = sqlSessionHfz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("和孚镇卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011会计期间信息 + senderPubkjqjEntity.setZth("011"); + senderPubkjqjEntity.setGsdm("0101020203"); + senderPubkjqjEntities = sqlSessionQjz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("千金镇卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012会计期间信息 + senderPubkjqjEntity.setZth("012"); + senderPubkjqjEntity.setGsdm("0101020204"); + senderPubkjqjEntities = sqlSessionScz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("石崇镇卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步南浔镇中心卫生院014会计期间信息 + senderPubkjqjEntity.setZth("014"); + senderPubkjqjEntity.setGsdm("010202"); + senderPubkjqjEntities = sqlSessionNxz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity); + result =sendKjqjToHealthBureau(senderPubkjqjEntities); + logger.info("南浔镇中心卫生院GRPU8会计期间同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("GRPU8会计期间信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + private String sendKjqjToHealthBureau(List senderPubkjqjEntities){ + if (CollectionUtils.isEmpty(senderPubkjqjEntities)) { + logger.info("GRPU8没有需要同步得会计期间信息"); + return "GRPU8没有需要同步得会计期间信息"; + } else { + for (SenderPubkjqjEntity kjqjEntity : senderPubkjqjEntities) { + //kjqjEntity.setKjnd("2021"); + //kjqjEntity.setQsrq(kjqjEntity.getQsrq().replace("2024", "2021")); + //kjqjEntity.setJsrq(kjqjEntity.getJsrq().replace("2024", "2021")); + //根据会计年度,公司代码,账套号查询数据是否已经同步过 + SenderPubkjqjEntity receiverPubkjqjEntity = new SenderPubkjqjEntity(); + receiverPubkjqjEntity.setKjnd(kjqjEntity.getKjnd()); + receiverPubkjqjEntity.setGsdm(kjqjEntity.getGsdm()); + receiverPubkjqjEntity.setZth(kjqjEntity.getZth()); + receiverPubkjqjEntity.setKjqjxh(kjqjEntity.getKjqjxh()); + try { + //查询接收方的数据是否存在 + List receiverPubkjqjEntities = queryEntityPageHealthBureau(receiverPubkjqjEntity); + //设置id为会计年度,公司代码,账套号,会计期间序号拼接,测试时候这样,具体看情况 + kjqjEntity.setId(kjqjEntity.getGsdm() + '-' + kjqjEntity.getKjnd() + '-' + kjqjEntity.getZth() + '-' + kjqjEntity.getKjqjxh()); + JsonResultEntity jsonResultEntity=null; + if (CollectionUtils.isEmpty(receiverPubkjqjEntities)) { + logger.info("===========开始将账套号为:{}得GRPU8会计期间数据同步新增到卫生局GRPU8中=============",kjqjEntity.getZth()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", kjqjEntity); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("账套号{}得GROU8会计期间数据同步保存得返回结果为:{}",kjqjEntity.getZth(),json.getString("kjqj")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8会计期间新增到会计期间日志中============="); + //保存发送方得日志 + kjqjEntity.setDataSourceCode(grp_data_source_code); + senderPubkjqjDao.saveSenderPubkjqjEntity(kjqjEntity); + }*/ + } else { + logger.info("===========开始将账套号为:{}得GRPU8会计期间数据同步更新到卫生局GRPU8中=============",kjqjEntity.getZth()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", kjqjEntity); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("账套号{}得GROU8会计期间数据同步更新得返回结果为:{}",kjqjEntity.getZth(),json.getString("kjqj")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8会计期间更新到会计期间日志中============="); + //保存发送方得日志 + kjqjEntity.setDataSourceCode(grp_data_source_code); + senderPubkjqjDao.updateSenderPubkjqjEntity(kjqjEntity); + }*/ + } + } catch (Exception e) { + logger.info("账套号{}得GRPU8会计期间信息同步失败:{}", kjqjEntity.getZth(),e.getMessage()); + } + } + return "同步GROU8会计期间信息成功"; + } + } + + //查询会计期间 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubkjqjEntity senderPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class); + List senderPubkjqjEntities=new ArrayList<>(); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubkjqjEntity.getKjnd()==null){ + senderPubkjqjEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderPubkjqjEntity.getZth())){ + logger.info("======根据账套号:{}查询会计期间为空",senderPubkjqjEntity.getZth()); + return BaseResult.getFailureMessageEntity("请传递账套号"); + } + try { + /* switch (senderPubkjqjEntity.getZth()){ + case "003"://练市人民医院 + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "004"://双林镇中心卫生院 + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "005"://练市镇中心卫生院 + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "007"://善琏镇卫生院 + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "009": + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "010": + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "011": + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "012": + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + case "001"://南浔区人民医院 + senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity); + break; + default: + break; + }*/ + senderPubkjqjEntities = senderPubkjqjDao.querySenderPubkjqjEntity(senderPubkjqjEntity); + PageInfo pageInfo=new PageInfo(senderPubkjqjEntities); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("pageInfo",pageInfo); + return jsonObject1; + }catch (Exception e){ + logger.info("查询账套号为:{}得GROU8会计期间失败:{}",senderPubkjqjEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8会计期间失败"); + } + } + + + //查询会计期间 + @Override + public List queryEntityPageHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) { + try { + logger.info("====开始根据账套号为:{}查询卫生局中得会计期间数据======",senderPubkjqjEntity.getZth()); + List receiverPubkjqjEntities = senderPubkjqjDao.queryPubkjqjHealthBureau(senderPubkjqjEntity); + return receiverPubkjqjEntities; + }catch (Exception e){ + logger.info("查询账套号为:{}得GROU8会计期间失败:{}",senderPubkjqjEntity.getZth(),e.getMessage()); + e.printStackTrace(); + } + return null; + } + + //保存会计期间 + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("==========保存会计期间时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("==========保存会计期间时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("==========保存会计期间时账套编码为空============"); + return BaseResult.getFailureMessageEntity("账套编码为空"); + } + if (!checkStr(jsonObject.getString("kjqjxh"))) { + logger.info("==========保存会计期间时会计期间序号为空============"); + return BaseResult.getFailureMessageEntity("会计期间序号为空"); + } + try { + SenderPubkjqjEntity senderPubkjqjEntity=new SenderPubkjqjEntity(); + senderPubkjqjEntity.setZth(receiverPubkjqjEntity.getZth()); + senderPubkjqjEntity.setGsdm(receiverPubkjqjEntity.getGsdm()); + senderPubkjqjEntity.setKjnd(receiverPubkjqjEntity.getKjnd()); + senderPubkjqjEntity.setKjqjxh(receiverPubkjqjEntity.getKjqjxh()); + List senderPubkjqjEntities = queryEntityPageHealthBureau(senderPubkjqjEntity); + if(CollectionUtils.isEmpty(senderPubkjqjEntities)){ + receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh()); + logger.info("==========开始保存账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId()); + SenderPubkjqjEntity pubkjqjEntity = senderPubkjqjDao.savePubkjqjHealthBureau(receiverPubkjqjEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("kjqj",pubkjqjEntity); + return jsonObject1; + }else{ + logger.info("==========开始更新账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId()); + SenderPubkjqjEntity pubkjqjEntity = senderPubkjqjDao.updatePubkjqjHealthBureau(receiverPubkjqjEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("kjqj",pubkjqjEntity); + return jsonObject1; + } + }catch (Exception e){ + logger.info("保存账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8会计期间失败"); + } + } + + //更新会计期间 + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("==========更新会计期间时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("==========更新会计期间时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("==========更新会计期间时账套编码为空============"); + return BaseResult.getFailureMessageEntity("账套编码为空"); + } + if (!checkStr(jsonObject.getString("kjqjxh"))) { + logger.info("==========更新会计期间时会计期间序号为空============"); + return BaseResult.getFailureMessageEntity("会计期间序号为空"); + } + try { + receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh()); + logger.info("==========开始更新账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId()); + SenderPubkjqjEntity pubkjqjEntity = senderPubkjqjDao.updatePubkjqjHealthBureau(receiverPubkjqjEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("kjqj",pubkjqjEntity); + return jsonObject1; + }catch (Exception e){ + logger.info("更新账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8会计期间失败"); + } + } + + //删除会计期间 + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("==========删除会计期间时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("==========删除会计期间时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zth"))) { + logger.info("==========删除会计期间时账套编码为空============"); + return BaseResult.getFailureMessageEntity("账套编码为空"); + } + if (!checkStr(jsonObject.getString("kjqjxh"))) { + logger.info("==========删除会计期间时会计期间序号为空============"); + return BaseResult.getFailureMessageEntity("会计期间序号为空"); + } + try { + receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh()); + logger.info("==========开始删除账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId()); + Integer integer = senderPubkjqjDao.deletePubkjqjHealthBureau(receiverPubkjqjEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("kjqj",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("删除账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8会计期间失败"); + } + } + + +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/IPubObjFlowDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/IPubObjFlowDao.java new file mode 100644 index 00000000..622a5d3d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/IPubObjFlowDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.grpU8.nxproof.pubobjflow.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +public interface IPubObjFlowDao extends IBaseDao { + Integer saveData(PubObjFlowEntity pubObjFlowEntity); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/impl/PubObjFlowDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/impl/PubObjFlowDaoImpl.java new file mode 100644 index 00000000..e0cbc305 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/dao/impl/PubObjFlowDaoImpl.java @@ -0,0 +1,25 @@ +package com.hzya.frame.grpU8.nxproof.pubobjflow.dao.impl; + + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.pubobjflow.dao.IPubObjFlowDao; +import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity; +import org.springframework.stereotype.Repository; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:59 + */ +@Repository(value = "pubObjFlowDao") +public class PubObjFlowDaoImpl extends MybatisGenericDao implements IPubObjFlowDao { + @DS("#entity.dataSourceCode") + @Override + public Integer saveData(PubObjFlowEntity entity) { + Integer o = super.insert(getSqlIdPrifx() + "PubObjFlowEntity_insert", entity); + return o; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.java new file mode 100644 index 00000000..4659dab9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.java @@ -0,0 +1,132 @@ +package com.hzya.frame.grpU8.nxproof.pubobjflow.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.*; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/16 22:02 + */ + +public class PubObjFlowEntity extends BaseEntity { + private String modCode; + private String djlx; + private String gsdm;//公司代码 + private String kjnd;//会计年度 + private String djh; + private String flowcode; + private String auditFlag; + private String auditAftFlag; + private String isaudit; + private String pofId; + private String shrs; + private String shrmc; + private String role; + + public String getModCode() { + return modCode; + } + + public void setModCode(String modCode) { + this.modCode = modCode; + } + + public String getDjlx() { + return djlx; + } + + public void setDjlx(String djlx) { + this.djlx = djlx; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getDjh() { + return djh; + } + + public void setDjh(String djh) { + this.djh = djh; + } + + public String getFlowcode() { + return flowcode; + } + + public void setFlowcode(String flowcode) { + this.flowcode = flowcode; + } + + public String getAuditFlag() { + return auditFlag; + } + + public void setAuditFlag(String auditFlag) { + this.auditFlag = auditFlag; + } + + public String getAuditAftFlag() { + return auditAftFlag; + } + + public void setAuditAftFlag(String auditAftFlag) { + this.auditAftFlag = auditAftFlag; + } + + public String getIsaudit() { + return isaudit; + } + + public void setIsaudit(String isaudit) { + this.isaudit = isaudit; + } + + public String getPofId() { + return pofId; + } + + public void setPofId(String pofId) { + this.pofId = pofId; + } + + public String getShrs() { + return shrs; + } + + public void setShrs(String shrs) { + this.shrs = shrs; + } + + public String getShrmc() { + return shrmc; + } + + public void setShrmc(String shrmc) { + this.shrmc = shrmc; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.xml new file mode 100644 index 00000000..ccbd6159 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/entity/PubObjFlowEntity.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + GSDM,KJND + + + + + + + insert into pub_obj_flow( + POF_ID, + ModCode, + DJLX, + GSDM, + KJND, + shr, + shrmc, + role, + flowcode, + AUDIT_FLAG, + AUDIT_AFT_FLAG, + ISAUDIT, + djh + ) + values ( + #{pofId}, + #{modCode}, + #{djlx}, + #{gsdm}, + #{kjnd}, + #{shrs}, + #{shrmc}, + #{role}, + #{flowcode}, + #{auditFlag}, + #{auditAftFlag}, + #{isaudit}, + #{djh} + ) + + + + + DELETE + FROM + pub_obj_flow + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND ModCode = #{modCode} + AND DJLX = #{djlx} + AND DJH = #{djh} + + + + + UPDATE pub_obj_flow + SET IsAudit = '1' + WHERE + GSDM = #{gsdm} + AND KJND = #{kjnd} + AND ModCode = #{modCode} + AND DJLX = #{djlx} + AND DJH = #{djh} + AND FLOWCODE = #{flowcode} + AND AUDIT_FLAG = #{auditFlag} + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/IPubObjFlowService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/IPubObjFlowService.java new file mode 100644 index 00000000..0c307e80 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/IPubObjFlowService.java @@ -0,0 +1,11 @@ +package com.hzya.frame.grpU8.nxproof.pubobjflow.service; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:28 + */ +public interface IPubObjFlowService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/impl/PubObjFlowServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/impl/PubObjFlowServiceImpl.java new file mode 100644 index 00000000..584f8b50 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubobjflow/service/impl/PubObjFlowServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.grpU8.nxproof.pubobjflow.service.impl; + +import com.hzya.frame.grpU8.nxproof.pubobjflow.service.IPubObjFlowService; +import org.springframework.stereotype.Service; + +/** + * @Author:hecan + * @Description: + * @params: + * @return: + * @Date: 2023/6/19 14:32 + */ +@Service(value = "pubObjFlowService") +public class PubObjFlowServiceImpl implements IPubObjFlowService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/ISenderPubzyxxDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/ISenderPubzyxxDao.java new file mode 100644 index 00000000..e692831d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/ISenderPubzyxxDao.java @@ -0,0 +1,90 @@ +package com.hzya.frame.grpU8.nxproof.pubzyxx.dao; + + + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity; + +import java.util.List; + +/** + * (pubzyxx: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-28 17:11:01 + */ +public interface ISenderPubzyxxDao extends IBaseDao { + + /** + * + * @content 查询人员信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:17 + * **/ + List querySenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 保存人员信息日志 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:18 + * **/ + SenderPubzyxxEntity saveSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 更新人员信息日志 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:18 + * **/ + SenderPubzyxxEntity updateSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 查询人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:24 + * **/ + List queryPubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 保存人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:25 + * **/ + SenderPubzyxxEntity savePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity); + + + /** + * + * @content 更新人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:25 + * **/ + SenderPubzyxxEntity updatePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 删除人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:39 + * **/ + Integer deletePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity); +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/impl/SenderPubzyxxDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/impl/SenderPubzyxxDaoImpl.java new file mode 100644 index 00000000..5adbad8c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/dao/impl/SenderPubzyxxDaoImpl.java @@ -0,0 +1,61 @@ +package com.hzya.frame.grpU8.nxproof.pubzyxx.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.pubzyxx.dao.ISenderPubzyxxDao; +import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * (Pubzyxx)表数据库访问层 + * + * @author makejava + * @since 2024-06-28 17:11:01 + */ +@Repository(value = "SenderPubzyxxDaoImpl") +public class SenderPubzyxxDaoImpl extends MybatisGenericDao implements ISenderPubzyxxDao { + + + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public List querySenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.queryByLike(senderPubzyxxEntity); + } + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public SenderPubzyxxEntity saveSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.save(senderPubzyxxEntity); + } + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public SenderPubzyxxEntity updateSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.update(senderPubzyxxEntity); + } + + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public List queryPubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.query(senderPubzyxxEntity); + } + + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public SenderPubzyxxEntity savePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.save(senderPubzyxxEntity); + } + + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public SenderPubzyxxEntity updatePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.update(senderPubzyxxEntity); + } + + @Override + @DS("#senderPubzyxxEntity.dataSourceCode") + public Integer deletePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) { + return super.delete("SenderPubzyxxEntity_delete_zyxx",senderPubzyxxEntity); + } +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.java new file mode 100644 index 00000000..8d014ae5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.java @@ -0,0 +1,395 @@ +package com.hzya.frame.grpU8.nxproof.pubzyxx.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (Pubzyxx)实体类 + * + * @author makejava + * @since 2024-06-28 17:11:01 + */ +public class SenderPubzyxxEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String zydm; + private String zyxm; + private String zjm; + private String xb; + private String bmdm; + private String zylb; + private String sfzh; + private String zw; + private String tel; + private String email; + private String jtzz; + private String csny; + private String whcd; + private String dzrq; + private String lzrq; + private String syzt; + private String glzt; + private String zyzp; + private Long scgzzn; + private Long jlrId; + private String jlRq; + private Long xgrId; + private String xgRq; + private String sjly; + private String bz; + private String password; + private String dfyh; + private String grzh; + private String gwkyh; + private String gwkzh; + private String wbdm; + private String zyzp1; + private String appsw; + private String imei; + private String bdmm; + private String isfirstlogin; + private String zj; + + private String mmxgrq; + private String xh; + private String deviceid; + + public String getMmxgrq() { + return mmxgrq; + } + + public void setMmxgrq(String mmxgrq) { + this.mmxgrq = mmxgrq; + } + + public String getXh() { + return xh; + } + + public void setXh(String xh) { + this.xh = xh; + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid; + } + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getZydm() { + return zydm; + } + + public void setZydm(String zydm) { + this.zydm = zydm; + } + + public String getZyxm() { + return zyxm; + } + + public void setZyxm(String zyxm) { + this.zyxm = zyxm; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getXb() { + return xb; + } + + public void setXb(String xb) { + this.xb = xb; + } + + public String getBmdm() { + return bmdm; + } + + public void setBmdm(String bmdm) { + this.bmdm = bmdm; + } + + public String getZylb() { + return zylb; + } + + public void setZylb(String zylb) { + this.zylb = zylb; + } + + public String getSfzh() { + return sfzh; + } + + public void setSfzh(String sfzh) { + this.sfzh = sfzh; + } + + public String getZw() { + return zw; + } + + public void setZw(String zw) { + this.zw = zw; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getJtzz() { + return jtzz; + } + + public void setJtzz(String jtzz) { + this.jtzz = jtzz; + } + + public String getCsny() { + return csny; + } + + public void setCsny(String csny) { + this.csny = csny; + } + + public String getWhcd() { + return whcd; + } + + public void setWhcd(String whcd) { + this.whcd = whcd; + } + + public String getDzrq() { + return dzrq; + } + + public void setDzrq(String dzrq) { + this.dzrq = dzrq; + } + + public String getLzrq() { + return lzrq; + } + + public void setLzrq(String lzrq) { + this.lzrq = lzrq; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getGlzt() { + return glzt; + } + + public void setGlzt(String glzt) { + this.glzt = glzt; + } + + public String getZyzp() { + return zyzp; + } + + public void setZyzp(String zyzp) { + this.zyzp = zyzp; + } + + public Long getScgzzn() { + return scgzzn; + } + + public void setScgzzn(Long scgzzn) { + this.scgzzn = scgzzn; + } + + public Long getJlrId() { + return jlrId; + } + + public void setJlrId(Long jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public Long getXgrId() { + return xgrId; + } + + public void setXgrId(Long xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + + public String getBz() { + return bz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getDfyh() { + return dfyh; + } + + public void setDfyh(String dfyh) { + this.dfyh = dfyh; + } + + public String getGrzh() { + return grzh; + } + + public void setGrzh(String grzh) { + this.grzh = grzh; + } + + public String getGwkyh() { + return gwkyh; + } + + public void setGwkyh(String gwkyh) { + this.gwkyh = gwkyh; + } + + public String getGwkzh() { + return gwkzh; + } + + public void setGwkzh(String gwkzh) { + this.gwkzh = gwkzh; + } + + public String getWbdm() { + return wbdm; + } + + public void setWbdm(String wbdm) { + this.wbdm = wbdm; + } + + public String getZyzp1() { + return zyzp1; + } + + public void setZyzp1(String zyzp1) { + this.zyzp1 = zyzp1; + } + + public String getAppsw() { + return appsw; + } + + public void setAppsw(String appsw) { + this.appsw = appsw; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public String getBdmm() { + return bdmm; + } + + public void setBdmm(String bdmm) { + this.bdmm = bdmm; + } + + public String getIsfirstlogin() { + return isfirstlogin; + } + + public void setIsfirstlogin(String isfirstlogin) { + this.isfirstlogin = isfirstlogin; + } + + public String getZj() { + return zj; + } + + public void setZj(String zj) { + this.zj = zj; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.xml new file mode 100644 index 00000000..85e1894f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/entity/SenderPubzyxxEntity.xml @@ -0,0 +1,549 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gsdm + ,kjnd + ,zydm + ,zyxm + ,zjm + ,xb + ,bmdm + ,zylb + ,sfzh + ,zw + ,tel + ,email + ,jtzz + ,csny + ,whcd + ,dzrq + ,lzrq + ,syzt + ,GLzt + ,zyzp + ,scgzzn + ,JLR_ID + ,JL_RQ + ,XGR_ID + ,XG_RQ + ,Sjly + ,bz + ,password + ,DFYH + ,GRZH + ,GWKYH + ,GWKZH + ,WBDM + ,zyzp1 + ,appsw + ,imei + ,bdmm + ,isFirstLogin + ,ZJ + ,mmxgrq + ,xh + ,deviceid + + + + + + + + + + + + + + + + insert into pubzyxx( + + gsdm , + zydm , + zyxm , + zjm , + xb , + bmdm , + zylb , + sfzh , + zw , + tel , + email , + jtzz , + csny , + whcd , + dzrq , + lzrq , + syzt , + GLzt , + zyzp , + scgzzn , + JLR_ID , + JL_RQ , + XGR_ID , + XG_RQ , + Sjly , + bz , + password , + DFYH , + GRZH , + GWKYH , + GWKZH , + WBDM , + zyzp1 , + appsw , + imei , + bdmm , + isFirstLogin , + ZJ, + mmxgrq, + xh, + deviceid, + kjnd + + )values( + + #{gsdm} , + #{zydm} , + #{zyxm} , + #{zjm} , + #{xb} , + #{bmdm} , + #{zylb} , + #{sfzh} , + #{zw} , + #{tel} , + #{email} , + #{jtzz} , + #{csny} , + #{whcd} , + #{dzrq} , + #{lzrq} , + #{syzt} , + #{glzt} , + #{zyzp} , + #{scgzzn} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sjly} , + #{bz} , + #{password} , + #{dfyh} , + #{grzh} , + #{gwkyh} , + #{gwkzh} , + #{wbdm} , + #{zyzp1} , + #{appsw} , + #{imei} , + #{bdmm} , + #{isfirstlogin} , + #{zj} , + #{mmxgrq} , + #{xh} , + #{deviceid} , + #{kjnd} + + ) + + + + insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ) + values + + (#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj}) + + + + + insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ) + values + + (#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj}) + + on duplicate key update + gsdm = values(gsdm), + kjnd = values(kjnd), + zydm = values(zydm), + zyxm = values(zyxm), + zjm = values(zjm), + xb = values(xb), + bmdm = values(bmdm), + zylb = values(zylb), + sfzh = values(sfzh), + zw = values(zw), + tel = values(tel), + email = values(email), + jtzz = values(jtzz), + csny = values(csny), + whcd = values(whcd), + dzrq = values(dzrq), + lzrq = values(lzrq), + syzt = values(syzt), + GLzt = values(GLzt), + zyzp = values(zyzp), + scgzzn = values(scgzzn), + JLR_ID = values(JLR_ID), + JL_RQ = values(JL_RQ), + XGR_ID = values(XGR_ID), + XG_RQ = values(XG_RQ), + Sjly = values(Sjly), + bz = values(bz), + password = values(password), + DFYH = values(DFYH), + GRZH = values(GRZH), + GWKYH = values(GWKYH), + GWKZH = values(GWKZH), + WBDM = values(WBDM), + zyzp1 = values(zyzp1), + appsw = values(appsw), + imei = values(imei), + bdmm = values(bdmm), + isFirstLogin = values(isFirstLogin), + ZJ = values(ZJ) + + + update pubzyxx set + + gsdm = #{gsdm}, + kjnd = #{kjnd}, + zydm = #{zydm}, + zyxm = #{zyxm}, + zjm = #{zjm}, + xb = #{xb}, + bmdm = #{bmdm}, + zylb = #{zylb}, + sfzh = #{sfzh}, + zw = #{zw}, + tel = #{tel}, + email = #{email}, + jtzz = #{jtzz}, + csny = #{csny}, + whcd = #{whcd}, + dzrq = #{dzrq}, + lzrq = #{lzrq}, + syzt = #{syzt}, + GLzt = #{glzt}, + zyzp = #{zyzp}, + scgzzn = #{scgzzn}, + JLR_ID = #{jlrId}, + JL_RQ = #{jlRq}, + XGR_ID = #{xgrId}, + XG_RQ = #{xgRq}, + Sjly = #{sjly}, + bz = #{bz}, + password = #{password}, + DFYH = #{dfyh}, + GRZH = #{grzh}, + GWKYH = #{gwkyh}, + GWKZH = #{gwkzh}, + WBDM = #{wbdm}, + zyzp1 = #{zyzp1}, + appsw = #{appsw}, + imei = #{imei}, + bdmm = #{bdmm}, + isFirstLogin = #{isfirstlogin}, + ZJ = #{zj}, + mmxgrq = #{mmxgrq}, + xh = #{xh}, + deviceid = #{deviceid} + + where kjnd= #{kjnd} and gsdm=#{gsdm} and zydm=#{zydm} + + + +update pubzyxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id= #{id} + + + +update pubzyxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and gsdm = #{gsdm} + and kjnd = #{kjnd} + and zydm = #{zydm} + and zyxm = #{zyxm} + and zjm = #{zjm} + and xb = #{xb} + and bmdm = #{bmdm} + and zylb = #{zylb} + and sfzh = #{sfzh} + and zw = #{zw} + and tel = #{tel} + and email = #{email} + and jtzz = #{jtzz} + and csny = #{csny} + and whcd = #{whcd} + and dzrq = #{dzrq} + and lzrq = #{lzrq} + and syzt = #{syzt} + and GLzt = #{glzt} + and zyzp = #{zyzp} + and scgzzn = #{scgzzn} + and JLR_ID = #{jlrId} + and JL_RQ = #{jlRq} + and XGR_ID = #{xgrId} + and XG_RQ = #{xgRq} + and Sjly = #{sjly} + and bz = #{bz} + and password = #{password} + and DFYH = #{dfyh} + and GRZH = #{grzh} + and GWKYH = #{gwkyh} + and GWKZH = #{gwkzh} + and WBDM = #{wbdm} + and zyzp1 = #{zyzp1} + and appsw = #{appsw} + and imei = #{imei} + and bdmm = #{bdmm} + and isFirstLogin = #{isfirstlogin} + and ZJ = #{zj} + and sts='Y' + + + + + delete from pubzyxx where id = #{id} + + + + + delete from pubzyxx where kjnd = #{kjnd} and gsdm=#{gsdm} + and zydm = #{zydm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/ISenderPubzyxxService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/ISenderPubzyxxService.java new file mode 100644 index 00000000..df185e08 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/ISenderPubzyxxService.java @@ -0,0 +1,78 @@ +package com.hzya.frame.grpU8.nxproof.pubzyxx.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + + +/** + * (Pubzyxx)表服务接口 + * + * @author makejava + * @since 2024-06-28 17:11:01 + */ +public interface ISenderPubzyxxService extends IBaseService { + + /** + * + * @content 同步人员信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:15 + * **/ + Object pubzyxxSynchronization(JSONObject json); + + /** + * + * @content 查询人员信息 卫生院 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:15 + * **/ + Object queryEntityPage(JSONObject json); + + /** + * + * @content 查询人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:20 + * **/ + List queryEntityPageHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity); + + /** + * + * @content 保存人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:21 + * **/ + Object saveEntityHealthBureau(JSONObject json); + + /** + * + * @content 更新人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/28 17:22 + * **/ + Object updateEntityHealthBureau(JSONObject json); + + /** + * + * @content 删除人员信息 卫生局 + * @Param + * @Return + * @Author hecan + * @Date 2024/8/9 17:40 + * **/ + Object deleteEntityHealthBureau(JSONObject json); +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/impl/SenderPubzyxxServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/impl/SenderPubzyxxServiceImpl.java new file mode 100644 index 00000000..d32445dd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/pubzyxx/service/impl/SenderPubzyxxServiceImpl.java @@ -0,0 +1,410 @@ +package com.hzya.frame.grpU8.nxproof.pubzyxx.service.impl; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.pubzyxx.dao.ISenderPubzyxxDao; +import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity; +import com.hzya.frame.grpU8.nxproof.pubzyxx.service.ISenderPubzyxxService; +import com.hzya.frame.uuid.UUIDLong; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * (Pubzyxx)表服务实现类 + * + * @author makejava + * @since 2024-06-28 17:11:01 + */ +@Service(value = "SenderPubzyxxServiceImpl") +public class SenderPubzyxxServiceImpl extends BaseService implements ISenderPubzyxxService { + + + + private ISenderPubzyxxDao senderPubzyxxDao; + + + + @Autowired + public void setPubzyxxDao(ISenderPubzyxxDao dao) { + this.senderPubzyxxDao = dao; + this.dao = dao; + } + + //同步人员信息 + @Override + public Object pubzyxxSynchronization(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubzyxxEntity senderPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class); + List senderPubzyxxEntities=new ArrayList<>(); + String result=null; + try { + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubzyxxEntity.getKjnd()==null){ + senderPubzyxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + /*try { + //同步南浔区人民医院001人员信息 + senderPubzyxxEntity.setGsdm("0101010101"); + logger.info("======开始查询南浔区人民医院人员信息====="); + senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("南浔区人民医院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区人民医院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + try { + //同步南浔区练市人民医院003人员信息 + senderPubzyxxEntity.setGsdm("0101010103"); + logger.info("======开始查询南浔区练市人民医院人员信息====="); + senderPubzyxxEntities = senderPubzyxxDao.querySenderPubzyxxEntity(senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("南浔区练市人民医院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市人民医院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + /*try { + //同步练市镇中心卫生院005人员信息 + senderPubzyxxEntity.setGsdm("0101010202"); + logger.info("======开始查询南浔区练市镇中心卫生院人员信息====="); + senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("南浔区练市镇中心卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区练市镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步善琏镇卫生院007人员信息 + senderPubzyxxEntity.setGsdm("0101010204"); + logger.info("======开始查询南浔区善琏镇卫生院人员信息====="); + senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("南浔区善琏镇卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔区善琏镇卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + /*try { + //同步双林镇中心卫生院004人员信息 + senderPubzyxxEntity.setGsdm("0101010201"); + senderPubzyxxEntities = sqlSessionSlz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("双林镇中心卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("双林镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步菱湖镇中心卫生院009人员信息 + senderPubzyxxEntity.setGsdm("0101020201"); + senderPubzyxxEntities = sqlSessionLhz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("菱湖镇中心卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("菱湖镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步和孚镇卫生院010人员信息 + senderPubzyxxEntity.setGsdm("0101020202"); + senderPubzyxxEntities = sqlSessionHfz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("和孚镇卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("和孚镇卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步千金镇卫生院011人员信息 + senderPubzyxxEntity.setGsdm("0101020203"); + senderPubzyxxEntities = sqlSessionQjz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("千金镇卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("千金镇卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步石崇镇卫生院012人员信息 + senderPubzyxxEntity.setGsdm("0101020204"); + senderPubzyxxEntities = sqlSessionScz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("石崇镇卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("石崇镇卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + } + try { + //同步南浔镇中心卫生院014人员信息 + senderPubzyxxEntity.setGsdm("010202"); + senderPubzyxxEntities = sqlSessionNxz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity); + result = sendZyxxToHealthBureau(senderPubzyxxEntities); + logger.info("南浔镇中心卫生院GRPU8人员信息同步结果为:{}",result); + }catch (Exception e){ + logger.info("南浔镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage()); + e.printStackTrace(); + }*/ + }catch (Exception e){ + logger.info("GRPU8人员信息同步失败:{}",e.getMessage()); + throw new RuntimeException(e.getMessage()); + } + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("result",result); + return jsonObject1; + } + + private String sendZyxxToHealthBureau(List senderPubzyxxEntities){ + if (CollectionUtils.isEmpty(senderPubzyxxEntities)) { + logger.info("GRPU8没有需要同步得人员信息"); + return "GRPU8没有需要同步得人员信息"; + } else { + for (SenderPubzyxxEntity pubzyxxEntity : senderPubzyxxEntities) { + // pubzyxxEntity.setKjnd("2021"); + //根据会计年度,公司代码,账套号查询数据是否已经同步过 + SenderPubzyxxEntity receiverPubzyxxEntity = new SenderPubzyxxEntity(); + receiverPubzyxxEntity.setKjnd(pubzyxxEntity.getKjnd()); + receiverPubzyxxEntity.setGsdm(pubzyxxEntity.getGsdm()); + receiverPubzyxxEntity.setZydm(pubzyxxEntity.getZydm()); + try { + //查询接收方的数据是否存在 + List receiverPubzyxxEntities = queryEntityPageHealthBureau(receiverPubzyxxEntity); + //设置id为会计年度,公司代码,账套号,会计期间序号拼接,测试时候这样,具体看情况 + pubzyxxEntity.setId(pubzyxxEntity.getGsdm() + '-' + pubzyxxEntity.getKjnd() + '-' + pubzyxxEntity.getZydm()); + JsonResultEntity jsonResultEntity=null; + if (CollectionUtils.isEmpty(receiverPubzyxxEntities)) { + logger.info("===========开始将公司代码为:{}得GRPU8人员信息同步新增到卫生局GRPU8中=============",pubzyxxEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", pubzyxxEntity); + Object o = saveEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if(json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("公司代码{}得GROU8人员信息同步保存返回结果为:{}",pubzyxxEntity.getGsdm(),json.getString("zyxx")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8人员信息新增到人员信息日志中============="); + //保存发送方得日志 + pubzyxxEntity.setDataSourceCode(grp_data_source_code); + senderPubzyxxDao.saveSenderPubzyxxEntity(pubzyxxEntity); + }*/ + } else { + logger.info("===========开始将公司代码为:{}得GRPU8人员信息同步更新到卫生局GRPU8中=============",pubzyxxEntity.getGsdm()); + JSONObject jsonObjectStr = new JSONObject(); + jsonObjectStr.put("jsonStr", pubzyxxEntity); + Object o = updateEntityHealthBureau(jsonObjectStr); + JSONObject json = (JSONObject) JSON.toJSON(o); + if (json.getString("status").equalsIgnoreCase("200")){ + //JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute()); + logger.info("公司代码{}得GROU8人员信息同步更新返回结果为:{}",pubzyxxEntity.getGsdm(),json.getString("zyxx")); + } + /*if (jsonObjectAttribute != null) { + logger.info("===========开始将发送方的GRPU8人员信息更新到人员信息日志中============="); + //保存发送方得日志 + pubzyxxEntity.setDataSourceCode(grp_data_source_code); + senderPubzyxxDao.updateSenderPubzyxxEntity(pubzyxxEntity); + }*/ + } + } catch (Exception e) { + logger.info("公司代码{}得GRPU8人员信息同步失败:{}",pubzyxxEntity.getGsdm(), e.getMessage()); + throw new RuntimeException(e.getMessage()); + } + } + return "同步GROU8人员信息成功"; + } + } + + //查询人员信息 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubzyxxEntity senderPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class); + List senderPubzyxxEntities=new ArrayList<>(); + //如果没有传入年度,则查询当年得,避免数据查询太大 + if(senderPubzyxxEntity.getKjnd()==null){ + senderPubzyxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy")); + } + if(StrUtil.isEmpty(senderPubzyxxEntity.getGsdm())){ + logger.info("======根据公司编码:{}查询人员信息为空",senderPubzyxxEntity.getGsdm()); + return BaseResult.getFailureMessageEntity("请传递公司编码"); + } + try { + /*switch (senderPubzyxxEntity.getGsdm()){ + case "0101010103"://练市人民医院 + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101010201"://双林镇中心卫生院 + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101010202"://练市镇中心卫生院 + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101010204"://善琏镇卫生院 + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101020201": + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101020202": + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101020203": + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101020204": + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + case "0101010101"://南浔区人民医院 + senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity); + break; + default: + break; + }*/ + senderPubzyxxEntities = senderPubzyxxDao.querySenderPubzyxxEntity(senderPubzyxxEntity); + PageInfo pageInfo=new PageInfo(senderPubzyxxEntities); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("pageInfo",pageInfo); + return jsonObject1; + }catch (Exception e){ + logger.info("查询公司代码为:{}得GROU8人员信息失败:{}",senderPubzyxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("查询GROU8人员信息失败"); + } + } + + @Override + public List queryEntityPageHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) { + try { + logger.info("======开始根据公司代码为:{}查询卫生局中得人员信息",senderPubzyxxEntity.getGsdm()); + List receiverPubzyxxEntities = senderPubzyxxDao.queryPubzyxxHealthBureau(senderPubzyxxEntity); + return receiverPubzyxxEntities; + }catch (Exception e){ + logger.info("查询公司代码为:{}的GROU8人员信息失败:{}",senderPubzyxxEntity.getGsdm(),e.getMessage()); + e.printStackTrace(); + } + return null; + } + + @Override + public Object saveEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============保存人员信息时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============保存人员信息时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zydm"))) { + logger.info("============保存人员信息时人员代码为空============"); + return BaseResult.getFailureMessageEntity("人员代码为空"); + } + if (!checkStr(jsonObject.getString("zyxm"))) { + logger.info("============保存人员信息时人员姓名为空============"); + return BaseResult.getFailureMessageEntity("人员姓名为空"); + } + try { + SenderPubzyxxEntity senderPubzyxxEntity=new SenderPubzyxxEntity(); + senderPubzyxxEntity.setKjnd(receiverPubzyxxEntity.getKjnd()); + senderPubzyxxEntity.setGsdm(receiverPubzyxxEntity.getGsdm()); + senderPubzyxxEntity.setZydm(receiverPubzyxxEntity.getZydm()); + senderPubzyxxEntity.setDataSourceCode(receiverPubzyxxEntity.getDataSourceCode()); + List senderPubzyxxEntities = queryEntityPageHealthBureau(senderPubzyxxEntity); + if(CollectionUtils.isEmpty(senderPubzyxxEntities)){ + receiverPubzyxxEntity.setSyzt("0"); + receiverPubzyxxEntity.setGlzt("0"); + receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm()); + logger.info("==========开始保存公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId()); + SenderPubzyxxEntity receiverPubzyxxEntity1 = senderPubzyxxDao.savePubzyxxHealthBureau(receiverPubzyxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("zyxx",receiverPubzyxxEntity1); + return jsonObject1; + }else{ + SenderPubzyxxEntity receiverPubzyxxEntity1 = senderPubzyxxDao.updatePubzyxxHealthBureau(receiverPubzyxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("zyxx",receiverPubzyxxEntity1); + return jsonObject1; + } + }catch (Exception e){ + logger.info("保存公司编码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("保存GROU8人员信息失败"); + } + } + + @Override + public Object updateEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============更新人员信息时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============更新人员信息时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + if (!checkStr(jsonObject.getString("zydm"))) { + logger.info("============更新人员信息时人员代码为空============"); + return BaseResult.getFailureMessageEntity("人员代码为空"); + } + + try { + receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm()); + logger.info("==========开始更新公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId()); + SenderPubzyxxEntity receiverPubzyxxEntity1 = senderPubzyxxDao.updatePubzyxxHealthBureau(receiverPubzyxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("zyxx",receiverPubzyxxEntity1); + return jsonObject1; + }catch (Exception e){ + logger.info("更新公司代码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("更新GROU8人员信息失败"); + } + } + + @Override + public Object deleteEntityHealthBureau(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class); + if (!checkStr(jsonObject.getString("kjnd"))) { + logger.info("============删除人员信息时会计年度为空============"); + return BaseResult.getFailureMessageEntity("会计年度为空"); + } + if (!checkStr(jsonObject.getString("gsdm"))) { + logger.info("============删除人员信息时公司代码为空============"); + return BaseResult.getFailureMessageEntity("公司代码为空"); + } + try { + receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm()); + logger.info("==========开始删除公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId()); + Integer integer = senderPubzyxxDao.deletePubzyxxHealthBureau(receiverPubzyxxEntity); + JSONObject jsonObject1=new JSONObject(); + jsonObject1.put("status","200"); + jsonObject1.put("zyxx",integer); + return jsonObject1; + }catch (Exception e){ + logger.info("删除公司代码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage()); + return BaseResult.getFailureMessageEntity("删除GROU8人员信息失败"); + } + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/IZbWhszDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/IZbWhszDao.java new file mode 100644 index 00000000..4e0179c8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/IZbWhszDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.grpU8.nxproof.zbwhsz.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity; + +/** + * (ZB_WHSZ: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:52:29 + */ +public interface IZbWhszDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/impl/ZbWhszDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/impl/ZbWhszDaoImpl.java new file mode 100644 index 00000000..600a4432 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/dao/impl/ZbWhszDaoImpl.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.zbwhsz.dao.impl; + + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao; +import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity; +import org.springframework.stereotype.Repository; +/** + * (ZbWhsz)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:52:29 + */ +@Repository(value = "ZbWhszDaoImpl") +public class ZbWhszDaoImpl extends MybatisGenericDao implements IZbWhszDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.java new file mode 100644 index 00000000..808e4c4b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.java @@ -0,0 +1,179 @@ +package com.hzya.frame.grpU8.nxproof.zbwhsz.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (ZbWhsz)实体类 + * + * @author makejava + * @since 2024-08-06 10:52:29 + */ +public class ZbWhszEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String whdm; + private String whmc; + private String zjm; + private String syzt; + private String wjwz; + private String wjlb; + private String jlrId; + private String jlRq; + private String xgrId; + private String xgRq; + private String bz; + private String sfmx; + private String sjdm; + private Integer jc; + private Integer pxh; + private String sjly; + + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getWhdm() { + return whdm; + } + + public void setWhdm(String whdm) { + this.whdm = whdm; + } + + public String getWhmc() { + return whmc; + } + + public void setWhmc(String whmc) { + this.whmc = whmc; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getWjwz() { + return wjwz; + } + + public void setWjwz(String wjwz) { + this.wjwz = wjwz; + } + + public String getWjlb() { + return wjlb; + } + + public void setWjlb(String wjlb) { + this.wjlb = wjlb; + } + + public String getJlrId() { + return jlrId; + } + + public void setJlrId(String jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public String getXgrId() { + return xgrId; + } + + public void setXgrId(String xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getBz() { + return bz; + } + + public void setBz(String bz) { + this.bz = bz; + } + + public String getSfmx() { + return sfmx; + } + + public void setSfmx(String sfmx) { + this.sfmx = sfmx; + } + + public String getSjdm() { + return sjdm; + } + + public void setSjdm(String sjdm) { + this.sjdm = sjdm; + } + + public Integer getJc() { + return jc; + } + + public void setJc(Integer jc) { + this.jc = jc; + } + + public Integer getPxh() { + return pxh; + } + + public void setPxh(Integer pxh) { + this.pxh = pxh; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.xml new file mode 100644 index 00000000..620a1073 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/entity/ZbWhszEntity.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + GSDM + ,KJND + ,WHDM + ,WHMC + ,ZJM + ,SYZT + ,WJWZ + ,WJLB + ,JLR_ID + ,JL_RQ + ,XGR_ID + ,XG_RQ + ,BZ + ,SFMX + ,SJDM + ,JC + ,PXH + ,SJLY + + + + + + + + + + + + + + + + insert into ZB_WHSZ( + + GSDM , + KJND , + WHDM , + WHMC , + ZJM , + SYZT , + WJWZ , + WJLB , + JLR_ID , + JL_RQ , + XGR_ID , + XG_RQ , + BZ , + SFMX , + SJDM , + JC , + PXH , + SJLY , + + )values( + + #{gsdm} , + #{kjnd} , + #{whdm} , + #{whmc} , + #{zjm} , + #{syzt} , + #{wjwz} , + #{wjlb} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{bz} , + #{sfmx} , + #{sjdm} , + #{jc} , + #{pxh} , + #{sjly} , + + ) + + + + insert into ZB_WHSZ(WHMC, ZJM, SYZT, WJWZ, WJLB, JLR_ID, JL_RQ, XGR_ID, XG_RQ, BZ, SFMX, SJDM, JC, PXH, SJLY, sts) + values + + (#{entity.whmc},#{entity.zjm},#{entity.syzt},#{entity.wjwz},#{entity.wjlb},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.bz},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}, 'Y') + + + + + insert into ZB_WHSZ(WHMC, ZJM, SYZT, WJWZ, WJLB, JLR_ID, JL_RQ, XGR_ID, XG_RQ, BZ, SFMX, SJDM, JC, PXH, SJLY) + values + + (#{entity.whmc},#{entity.zjm},#{entity.syzt},#{entity.wjwz},#{entity.wjlb},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.bz},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}) + + on duplicate key update + WHMC = values(WHMC), + ZJM = values(ZJM), + SYZT = values(SYZT), + WJWZ = values(WJWZ), + WJLB = values(WJLB), + JLR_ID = values(JLR_ID), + JL_RQ = values(JL_RQ), + XGR_ID = values(XGR_ID), + XG_RQ = values(XG_RQ), + BZ = values(BZ), + SFMX = values(SFMX), + SJDM = values(SJDM), + JC = values(JC), + PXH = values(PXH), + SJLY = values(SJLY) + + +update ZB_WHSZ set + + WHMC = #{whmc}, + ZJM = #{zjm}, + SYZT = #{syzt}, + WJWZ = #{wjwz}, + WJLB = #{wjlb}, + JLR_ID = #{jlrId}, + JL_RQ = #{jlRq}, + XGR_ID = #{xgrId}, + XG_RQ = #{xgRq}, + BZ = #{bz}, + SFMX = #{sfmx}, + SJDM = #{sjdm}, + JC = #{jc}, + PXH = #{pxh}, + SJLY = #{sjly}, + +where gsdm = #{gsdm} and kjnd=#{kjnd} and whdm=#{whdm} + + + +update ZB_WHSZ set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where GSDM = #{gsdm} + + + +update ZB_WHSZ set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and GSDM = #{gsdm} + and KJND = #{kjnd} + and WHDM = #{whdm} + and WHMC = #{whmc} + and ZJM = #{zjm} + and SYZT = #{syzt} + and WJWZ = #{wjwz} + and WJLB = #{wjlb} + and JLR_ID = #{jlrId} + and JL_RQ = #{jlRq} + and XGR_ID = #{xgrId} + and XG_RQ = #{xgRq} + and BZ = #{bz} + and SFMX = #{sfmx} + and SJDM = #{sjdm} + and JC = #{jc} + and PXH = #{pxh} + and SJLY = #{sjly} + + + + + delete from ZB_WHSZ where GSDM = #{gsdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/IZbWhszService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/IZbWhszService.java new file mode 100644 index 00000000..929ffb39 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/IZbWhszService.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.zbwhsz.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity; + +/** + * (ZbWhsz)表服务接口 + * + * @author makejava + * @since 2024-08-06 10:52:29 + */ +public interface IZbWhszService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/impl/ZbWhszServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/impl/ZbWhszServiceImpl.java new file mode 100644 index 00000000..57ae47cb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbwhsz/service/impl/ZbWhszServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.grpU8.nxproof.zbwhsz.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao; +import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity; +import com.hzya.frame.grpU8.nxproof.zbwhsz.service.IZbWhszService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * (ZbWhsz)表服务实现类 + * + * @author makejava + * @since 2024-08-06 10:52:29 + */ +@Service(value = "zbWhszService") +public class ZbWhszServiceImpl extends BaseService implements IZbWhszService { + + private IZbWhszDao zbWhszDao; + + @Autowired + public void setZbWhszDao(IZbWhszDao dao) { + this.zbWhszDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/IZbZblyDao.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/IZbZblyDao.java new file mode 100644 index 00000000..356a6ff2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/IZbZblyDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.grpU8.nxproof.zbzbly.dao; + + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity; + +/** + * (ZB_ZBLY: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:54:31 + */ +public interface IZbZblyDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/impl/ZbZblyDaoImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/impl/ZbZblyDaoImpl.java new file mode 100644 index 00000000..40814ced --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/dao/impl/ZbZblyDaoImpl.java @@ -0,0 +1,18 @@ +package com.hzya.frame.grpU8.nxproof.zbzbly.dao.impl; + + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao; +import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity; +import org.springframework.stereotype.Repository; +/** + * (ZbZbly)表数据库访问层 + * + * @author makejava + * @since 2024-08-06 10:54:31 + */ +@Repository(value = "ZbZblyDaoImpl") +public class ZbZblyDaoImpl extends MybatisGenericDao implements IZbZblyDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.java new file mode 100644 index 00000000..3c66477b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.java @@ -0,0 +1,170 @@ +package com.hzya.frame.grpU8.nxproof.zbzbly.entity; + + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (ZbZbly)实体类 + * + * @author makejava + * @since 2024-08-06 10:54:31 + */ +public class ZbZblyEntity extends BaseEntity { + + private String gsdm; + private String kjnd; + private String zblydm; + private String zblymc; + private String zjm; + private String kzlkx; + private String kzdzk; + private String syzt; + private String jlrId; + private String jlRq; + private String xgrId; + private String xgRq; + private String sfmx; + private String sjdm; + private Integer jc; + private Integer pxh; + private String sjly; + + + public String getGsdm() { + return gsdm; + } + + public void setGsdm(String gsdm) { + this.gsdm = gsdm; + } + + public String getKjnd() { + return kjnd; + } + + public void setKjnd(String kjnd) { + this.kjnd = kjnd; + } + + public String getZblydm() { + return zblydm; + } + + public void setZblydm(String zblydm) { + this.zblydm = zblydm; + } + + public String getZblymc() { + return zblymc; + } + + public void setZblymc(String zblymc) { + this.zblymc = zblymc; + } + + public String getZjm() { + return zjm; + } + + public void setZjm(String zjm) { + this.zjm = zjm; + } + + public String getKzlkx() { + return kzlkx; + } + + public void setKzlkx(String kzlkx) { + this.kzlkx = kzlkx; + } + + public String getKzdzk() { + return kzdzk; + } + + public void setKzdzk(String kzdzk) { + this.kzdzk = kzdzk; + } + + public String getSyzt() { + return syzt; + } + + public void setSyzt(String syzt) { + this.syzt = syzt; + } + + public String getJlrId() { + return jlrId; + } + + public void setJlrId(String jlrId) { + this.jlrId = jlrId; + } + + public String getJlRq() { + return jlRq; + } + + public void setJlRq(String jlRq) { + this.jlRq = jlRq; + } + + public String getXgrId() { + return xgrId; + } + + public void setXgrId(String xgrId) { + this.xgrId = xgrId; + } + + public String getXgRq() { + return xgRq; + } + + public void setXgRq(String xgRq) { + this.xgRq = xgRq; + } + + public String getSfmx() { + return sfmx; + } + + public void setSfmx(String sfmx) { + this.sfmx = sfmx; + } + + public String getSjdm() { + return sjdm; + } + + public void setSjdm(String sjdm) { + this.sjdm = sjdm; + } + + public Integer getJc() { + return jc; + } + + public void setJc(Integer jc) { + this.jc = jc; + } + + public Integer getPxh() { + return pxh; + } + + public void setPxh(Integer pxh) { + this.pxh = pxh; + } + + public String getSjly() { + return sjly; + } + + public void setSjly(String sjly) { + this.sjly = sjly; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.xml b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.xml new file mode 100644 index 00000000..173fe89f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/entity/ZbZblyEntity.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + GSDM + ,KJND + ,ZBLYDM + ,ZBLYMC + ,ZJM + ,KZLKX + ,KZDZK + ,SYZT + ,JLR_ID + ,JL_RQ + ,XGR_ID + ,XG_RQ + ,SFMX + ,SJDM + ,JC + ,PXH + ,SJLY + + + + + + + + + + + + + + + + insert into ZB_ZBLY( + + GSDM , + KJND , + ZBLYDM , + ZBLYMC , + ZJM , + KZLKX , + KZDZK , + SYZT , + JLR_ID , + JL_RQ , + XGR_ID , + XG_RQ , + SFMX , + SJDM , + JC , + PXH , + SJLY , + + )values( + + #{gsdm} , + #{kjnd} , + #{zblydm} , + #{zblymc} , + #{zjm} , + #{kzlkx} , + #{kzdzk} , + #{syzt} , + #{jlrId} , + #{jlRq} , + #{xgrId} , + #{xgRq} , + #{sfmx} , + #{sjdm} , + #{jc} , + #{pxh} , + #{sjly} , + + ) + + + + insert into ZB_ZBLY(ZBLYMC, ZJM, KZLKX, KZDZK, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SFMX, SJDM, JC, PXH, SJLY, sts) + values + + (#{entity.zblymc},#{entity.zjm},#{entity.kzlkx},#{entity.kzdzk},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}, 'Y') + + + + + insert into ZB_ZBLY(ZBLYMC, ZJM, KZLKX, KZDZK, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SFMX, SJDM, JC, PXH, SJLY) + values + + (#{entity.zblymc},#{entity.zjm},#{entity.kzlkx},#{entity.kzdzk},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}) + + on duplicate key update + ZBLYMC = values(ZBLYMC), + ZJM = values(ZJM), + KZLKX = values(KZLKX), + KZDZK = values(KZDZK), + SYZT = values(SYZT), + JLR_ID = values(JLR_ID), + JL_RQ = values(JL_RQ), + XGR_ID = values(XGR_ID), + XG_RQ = values(XG_RQ), + SFMX = values(SFMX), + SJDM = values(SJDM), + JC = values(JC), + PXH = values(PXH), + SJLY = values(SJLY) + + +update ZB_ZBLY set + + ZBLYMC = #{zblymc}, + ZJM = #{zjm}, + KZLKX = #{kzlkx}, + KZDZK = #{kzdzk}, + SYZT = #{syzt}, + JLR_ID = #{jlrId}, + JL_RQ = #{jlRq}, + XGR_ID = #{xgrId}, + XG_RQ = #{xgRq}, + SFMX = #{sfmx}, + SJDM = #{sjdm}, + JC = #{jc}, + PXH = #{pxh}, + SJLY = #{sjly}, + +where GSDM = #{gsdm} + + + +update ZB_ZBLY set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where GSDM = #{gsdm} + + + +update ZB_ZBLY set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and GSDM = #{gsdm} + and KJND = #{kjnd} + and ZBLYDM = #{zblydm} + and ZBLYMC = #{zblymc} + and ZJM = #{zjm} + and KZLKX = #{kzlkx} + and KZDZK = #{kzdzk} + and SYZT = #{syzt} + and JLR_ID = #{jlrId} + and JL_RQ = #{jlRq} + and XGR_ID = #{xgrId} + and XG_RQ = #{xgRq} + and SFMX = #{sfmx} + and SJDM = #{sjdm} + and JC = #{jc} + and PXH = #{pxh} + and SJLY = #{sjly} + + + + + delete from ZB_ZBLY where GSDM = #{gsdm} + + + + diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/IZbZblyService.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/IZbZblyService.java new file mode 100644 index 00000000..cd7768ae --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/IZbZblyService.java @@ -0,0 +1,14 @@ +package com.hzya.frame.grpU8.nxproof.zbzbly.service; + + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity; + +/** + * (ZbZbly)表服务接口 + * + * @author makejava + * @since 2024-08-06 10:54:31 + */ +public interface IZbZblyService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/impl/ZbZblyServiceImpl.java b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/impl/ZbZblyServiceImpl.java new file mode 100644 index 00000000..8bc7ec9a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/grpU8/nxproof/zbzbly/service/impl/ZbZblyServiceImpl.java @@ -0,0 +1,27 @@ +package com.hzya.frame.grpU8.nxproof.zbzbly.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao; +import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity; +import com.hzya.frame.grpU8.nxproof.zbzbly.service.IZbZblyService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * (ZbZbly)表服务实现类 + * + * @author makejava + * @since 2024-08-06 10:54:31 + */ +@Service(value = "zbZblyService") +public class ZbZblyServiceImpl extends BaseService implements IZbZblyService { + + private IZbZblyDao zbZblyDao; + + @Autowired + public void setZbZblyDao(IZbZblyDao dao) { + this.zbZblyDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/home/dao/IHomeDao.java b/service/src/main/java/com/hzya/frame/home/dao/IHomeDao.java new file mode 100644 index 00000000..25b10ecc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/dao/IHomeDao.java @@ -0,0 +1,24 @@ +package com.hzya.frame.home.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.home.entity.HomeEntity; + +import java.util.List; + +public interface IHomeDao extends IBaseDao { + + + List getAppErrorNum(HomeEntity homeEntity); + + List appApiNum(HomeEntity homeEntity); + + List useApiNum(HomeEntity homeEntity); + + HomeEntity taskNumRun(HomeEntity homeEntity); + HomeEntity taskNumStop(HomeEntity homeEntity); + + List sevenerrornum(HomeEntity homeEntity); + + List sevensuccessnum(HomeEntity homeEntity); +} + diff --git a/service/src/main/java/com/hzya/frame/home/dao/impl/HomeDaoImpl.java b/service/src/main/java/com/hzya/frame/home/dao/impl/HomeDaoImpl.java new file mode 100644 index 00000000..48998281 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/dao/impl/HomeDaoImpl.java @@ -0,0 +1,52 @@ +package com.hzya.frame.home.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.home.dao.IHomeDao; +import com.hzya.frame.home.entity.HomeEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository(value = "HomeDaoImpl") +public class HomeDaoImpl extends MybatisGenericDao implements IHomeDao { + + + @Override + public List getAppErrorNum(HomeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "getAppErrorNum", entity); + return o; + } + + @Override + public List appApiNum(HomeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "appApiNum", entity); + return o; + } + + @Override + public List useApiNum(HomeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "useApiNum", entity); + return o; + } + @Override + public List sevenerrornum(HomeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "sevenerrornum", entity); + return o; + } + @Override + public List sevensuccessnum(HomeEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "sevensuccessnum", entity); + return o; + } + @Override + public HomeEntity taskNumRun(HomeEntity entity) { + HomeEntity o = (HomeEntity) super.selectOne(getSqlIdPrifx() + "taskNumRun", entity); + return o; + } + @Override + public HomeEntity taskNumStop(HomeEntity entity) { + HomeEntity o = (HomeEntity) super.selectOne(getSqlIdPrifx() + "taskNumStop", entity); + return o; + } +} + diff --git a/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.java b/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.java new file mode 100644 index 00000000..64136ec2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.java @@ -0,0 +1,70 @@ +package com.hzya.frame.home.entity; + +import com.hzya.frame.web.entity.BaseEntity; + + +public class HomeEntity extends BaseEntity { + //应用id + private String appId; + + //应用图标 + private String path; + // + private String name; + + //数量 + private Integer num; + //正常数量 + private Integer normalNum; + //异常数量 + private Integer abnormalNum; + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public Integer getNormalNum() { + return normalNum; + } + + public void setNormalNum(Integer normalNum) { + this.normalNum = normalNum; + } + + public Integer getAbnormalNum() { + return abnormalNum; + } + + public void setAbnormalNum(Integer abnormalNum) { + this.abnormalNum = abnormalNum; + } + + public Integer getNum() { + return num; + } + + public void setNum(Integer num) { + this.num = num; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} + diff --git a/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.xml b/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.xml new file mode 100644 index 00000000..cd4303ba --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/entity/HomeEntity.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/home/service/IHomeService.java b/service/src/main/java/com/hzya/frame/home/service/IHomeService.java new file mode 100644 index 00000000..3e4f606c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/service/IHomeService.java @@ -0,0 +1,45 @@ +package com.hzya.frame.home.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.home.entity.HomeEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface IHomeService extends IBaseService { + + /** + * @Author lvleigang + * @Description 分组统计应用下接口日志表失败的数量(返回应用名称、失败数) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity appErrorNum(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 分组统计应用下面api的总数量,以及是否有授权的api数量,(返回应用名称、api总数量、启用数量、停用数量) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity appApiNum(JSONObject jsonObject); + /** + * @Author lvleigang + * @Description 查询任务监控表数据(返回任务名称、状态、总数、上次耗时、上次执行时间) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity taskNum(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 统计最近7天内api成功和失败数量 + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity sevenNum(JSONObject jsonObject); + +} diff --git a/service/src/main/java/com/hzya/frame/home/service/impl/HomeServiceImpl.java b/service/src/main/java/com/hzya/frame/home/service/impl/HomeServiceImpl.java new file mode 100644 index 00000000..6ee65aa3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/home/service/impl/HomeServiceImpl.java @@ -0,0 +1,155 @@ +package com.hzya.frame.home.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.home.dao.IHomeDao; +import com.hzya.frame.home.entity.HomeEntity; +import com.hzya.frame.home.service.IHomeService; +import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.List; + + +@Service(value = "homeService") +public class HomeServiceImpl extends BaseService implements IHomeService { + + private IHomeDao homeDao; + @Resource + private ISysApplicationDao sysApplicationDao; + @Autowired + public void setSysApplicationApiDao(IHomeDao dao) { + this.homeDao = dao; + this.dao = dao; + } + /** + * @Author lvleigang + * @Description 分组统计应用下接口日志表失败的数量(返回应用名称、失败数) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + @Override + public JsonResultEntity appErrorNum(JSONObject jsonObject) { + HomeEntity homeEntity = new HomeEntity(); + List homeEntities = homeDao.getAppErrorNum(homeEntity); + if(homeEntities != null && homeEntities.size() > 0){ + SysApplicationEntity sysApplicationEntity = new SysApplicationEntity(); + sysApplicationEntity.setSts("Y"); + List sysApplicationEntities = sysApplicationDao.queryByLike(sysApplicationEntity); + if(sysApplicationEntities != null && sysApplicationEntities.size() > 0){ + for (int i = 0; i < homeEntities.size(); i++) { + for (int a = 0; a < sysApplicationEntities.size(); a++) { + if(homeEntities.get(i).getAppId()!= null && sysApplicationEntities.get(a).getId().equals(homeEntities.get(i).getAppId())){ + homeEntities.get(i).setPath(sysApplicationEntities.get(a).getAppLogo()); + continue; + } + } + } + } + } + return BaseResult.getSuccessMessageEntity("查询数据成功",homeEntities); + } + /** + * @Author lvleigang + * @Description 分组统计应用下面api的总数量,以及是否有授权的api数量,(返回应用名称、api总数量、启用数量、停用数量) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + @Override + public JsonResultEntity appApiNum(JSONObject jsonObject) { + HomeEntity homeEntity = new HomeEntity(); + List homeEntities = homeDao.appApiNum(homeEntity); + if(homeEntities != null && homeEntities.size() > 0){ + List useApiNum = homeDao.useApiNum(homeEntity); + if(useApiNum != null && useApiNum.size() > 0){ + for (int i = 0; i < homeEntities.size(); i++) { + for (int a = 0; a < useApiNum.size(); a++) { + if(homeEntities.get(i).getAppId()!= null && useApiNum.get(a).getAppId().equals(homeEntities.get(i).getAppId())){ + homeEntities.get(i).setNormalNum(useApiNum.get(a).getNormalNum()); + homeEntities.get(i).setAbnormalNum(homeEntities.get(i).getNum() - useApiNum.get(a).getNormalNum()); + continue; + } + } + } + } + + SysApplicationEntity sysApplicationEntity = new SysApplicationEntity(); + sysApplicationEntity.setSts("Y"); + List sysApplicationEntities = sysApplicationDao.queryByLike(sysApplicationEntity); + if(sysApplicationEntities != null && sysApplicationEntities.size() > 0){ + for (int i = 0; i < homeEntities.size(); i++) { + for (int a = 0; a < sysApplicationEntities.size(); a++) { + if(homeEntities.get(i).getAppId()!= null && sysApplicationEntities.get(a).getId().equals(homeEntities.get(i).getAppId())){ + homeEntities.get(i).setPath(sysApplicationEntities.get(a).getAppLogo()); + continue; + } + } + } + } + } + return BaseResult.getSuccessMessageEntity("查询数据成功",homeEntities); + } + /** + * @Author lvleigang + * @Description 查询任务监控表数据(返回任务名称、状态、总数、上次耗时、上次执行时间) + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + @Override + public JsonResultEntity taskNum(JSONObject jsonObject) { + HomeEntity homeEntity = new HomeEntity(); + HomeEntity runhome = homeDao.taskNumRun(homeEntity); + HomeEntity stophome = homeDao.taskNumStop(homeEntity); + homeEntity.setNormalNum(runhome.getNormalNum()); + homeEntity.setAbnormalNum(stophome.getAbnormalNum()); + homeEntity.setNum(runhome.getNormalNum() + stophome.getAbnormalNum()); + return BaseResult.getSuccessMessageEntity("查询数据成功",homeEntity); + } + + /** + * @Author lvleigang + * @Description 统计最近7天内api成功和失败数量 + * @Date 10:17 上午 2024/5/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + @Override + public JsonResultEntity sevenNum(JSONObject jsonObject) { + List homeEntities = new ArrayList<>(); + HomeEntity homeEntity = new HomeEntity(); + List errornum = homeDao.sevenerrornum(homeEntity); + List successnum = homeDao.sevensuccessnum(homeEntity); + for (int i = 6; i >=0; i--) { + String date = LocalDate.now().minusDays(i).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); + HomeEntity entity = new HomeEntity(); + entity.setName(date); + entity.setNormalNum(0); + entity.setAbnormalNum(0); + for (int a = 0; a < errornum.size(); a++) { + if(date.equals(errornum.get(a).getName())){ + entity.setAbnormalNum(errornum.get(a).getAbnormalNum()); + continue; + } + } + for (int a = 0; a < successnum.size(); a++) { + if(date.equals(successnum.get(a).getName())){ + entity.setNormalNum(successnum.get(a).getNormalNum()); + continue; + } + } + homeEntities.add(entity); + } + return BaseResult.getSuccessMessageEntity("查询数据成功",homeEntities); + } +} diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/DbFiledsDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/DbFiledsDto.java index ae094e16..e0f5e05b 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/DbFiledsDto.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/DbFiledsDto.java @@ -8,7 +8,7 @@ import java.util.List; public class DbFiledsDto { /** - * 1\修改 2、新增 + * 1新增 2、修改 */ private String dataType; diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDataDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDataDto.java index 0370431c..34db1f03 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDataDto.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDataDto.java @@ -7,6 +7,7 @@ import java.util.List; public class MdmDataDto { + private String mdmId; private String id; private String tableName; private String documentRule; @@ -65,5 +66,13 @@ public class MdmDataDto { public void setDbType(String dbType) { this.dbType = dbType; } + + public String getMdmId() { + return mdmId; + } + + public void setMdmId(String mdmId) { + this.mdmId = mdmId; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbFiledVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbFiledVo.java index 70da08eb..921f2e8b 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbFiledVo.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbFiledVo.java @@ -1,10 +1,5 @@ package com.hzya.frame.mdm.entity; -import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; -import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; - -import java.util.List; public class MdmDbFiledVo { private String id; diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbVo.java index ed01bc0b..4062fd9d 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbVo.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDbVo.java @@ -1,25 +1,19 @@ package com.hzya.frame.mdm.entity; -import com.fasterxml.jackson.annotation.JsonFormat; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; -import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; -import org.springframework.format.annotation.DateTimeFormat; -import java.util.Date; import java.util.List; public class MdmDbVo { + //单据编码规则 + private List mdmTableCodeRuleEntityList; //主数据主表 private MdmModuleDbEntity mainMdmModuleDb; //主数据子表 private List sublistMdmModuleDb; - //控件字段规则属性 - private List moduleDbFiledsRuleFiles; - //单据编码规则 - private List mdmTableCodeRuleEntityList; + public List getMdmTableCodeRuleEntityList() { @@ -30,14 +24,6 @@ public class MdmDbVo { this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList; } - public List getModuleDbFiledsRuleFiles() { - return moduleDbFiledsRuleFiles; - } - - public void setModuleDbFiledsRuleFiles(List moduleDbFiledsRuleFiles) { - this.moduleDbFiledsRuleFiles = moduleDbFiledsRuleFiles; - } - public MdmModuleDbEntity getMainMdmModuleDb() { return mainMdmModuleDb; } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeDto.java index af840e9f..57b97fdc 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeDto.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeDto.java @@ -2,15 +2,13 @@ package com.hzya.frame.mdm.entity; import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; - import java.util.List; public class MdmDistributeDto { - //id - private String id; + //主数据编码 + private Long mdmCode; private List mdmModuleDistributeEntities; @@ -22,12 +20,12 @@ public class MdmDistributeDto { this.mdmModuleDistributeEntities = mdmModuleDistributeEntities; } - public String getId() { - return id; + public Long getMdmCode() { + return mdmCode; } - public void setId(String id) { - this.id = id; + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeVo.java deleted file mode 100644 index dcf828ec..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDistributeVo.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.hzya.frame.mdm.entity; - -public class MdmDistributeVo { - - /** - * 数据 - */ - private String formmainId; - - /** - * 应用id - */ - private String appId; - /** - * 状态 1、发送成功 2、发送中 3、发送失败 4、未发送 - */ - private String status; - /** - *描述 - */ - private String msg; - - public String getFormmainId() { - return formmainId; - } - - public void setFormmainId(String formmainId) { - this.formmainId = formmainId; - } - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getMsg() { - return msg; - } - - public void setMsg(String msg) { - this.msg = msg; - } -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDto.java index 762303a8..93774e10 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmDto.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmDto.java @@ -2,15 +2,31 @@ package com.hzya.frame.mdm.entity; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; -import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; import java.util.List; public class MdmDto { + //主数据编码 + private Long mdmCode; + //单据编码规则 + private List mdmTableCodeRuleEntityList; + //字段规则 + private List mdmModuleDbFiledsRuleEntities; + //主数据主表 + private MdmModuleDbEntity mainMdmModuleDb; + //主数据子表 + private List sublistMdmModuleDb; + + //id private String id; + //id + private String fieldId; + //id + private String dbId; //3、新增4、修改 5、查看 private String showType; //分页 @@ -26,20 +42,12 @@ public class MdmDto { private String upIdFiled; //主数据名称 private String mdmName; - //主数据编码 - private Integer mdmCode; //主数据类型 private String mdmType; //描述 private String remark; //描述 private String[] ids; - //单据编码规则 - private List mdmTableCodeRuleEntityList; - //主数据主表 - private MdmModuleDbEntity mainMdmModuleDb; - //主数据子表 - private List sublistMdmModuleDb; private String tableName; private String value; @@ -49,21 +57,20 @@ public class MdmDto { private String upId; - - public String getLableValue() { - return lableValue; + public Long getMdmCode() { + return mdmCode; } - public void setLableValue(String lableValue) { - this.lableValue = lableValue; + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; } - public String getValue() { - return value; + public List getMdmTableCodeRuleEntityList() { + return mdmTableCodeRuleEntityList; } - public void setValue(String value) { - this.value = value; + public void setMdmTableCodeRuleEntityList(List mdmTableCodeRuleEntityList) { + this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList; } public MdmModuleDbEntity getMainMdmModuleDb() { @@ -82,30 +89,6 @@ public class MdmDto { this.sublistMdmModuleDb = sublistMdmModuleDb; } - public String getMdmName() { - return mdmName; - } - - public void setMdmName(String mdmName) { - this.mdmName = mdmName; - } - - public Integer getMdmCode() { - return mdmCode; - } - - public void setMdmCode(Integer mdmCode) { - this.mdmCode = mdmCode; - } - - public String getMdmType() { - return mdmType; - } - - public void setMdmType(String mdmType) { - this.mdmType = mdmType; - } - public String getId() { return id; } @@ -114,6 +97,14 @@ public class MdmDto { this.id = id; } + public String getShowType() { + return showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + public Integer getPageNum() { return pageNum; } @@ -130,30 +121,6 @@ public class MdmDto { this.pageSize = pageSize; } - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public String getShowType() { - return showType; - } - - public void setShowType(String showType) { - this.showType = showType; - } - - public List getMdmTableCodeRuleEntityList() { - return mdmTableCodeRuleEntityList; - } - - public void setMdmTableCodeRuleEntityList(List mdmTableCodeRuleEntityList) { - this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList; - } - public String getViewFiled() { return viewFiled; } @@ -170,6 +137,38 @@ public class MdmDto { this.upIdFiled = upIdFiled; } + public String getMdmName() { + return mdmName; + } + + public void setMdmName(String mdmName) { + this.mdmName = mdmName; + } + + public String getMdmType() { + return mdmType; + } + + public void setMdmType(String mdmType) { + this.mdmType = mdmType; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String[] getIds() { + return ids; + } + + public void setIds(String[] ids) { + this.ids = ids; + } + public String getTableName() { return tableName; } @@ -178,6 +177,14 @@ public class MdmDto { this.tableName = tableName; } + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + public String getLabel() { return label; } @@ -186,6 +193,14 @@ public class MdmDto { this.label = label; } + public String getLableValue() { + return lableValue; + } + + public void setLableValue(String lableValue) { + this.lableValue = lableValue; + } + public String getUpId() { return upId; } @@ -194,12 +209,28 @@ public class MdmDto { this.upId = upId; } - public String[] getIds() { - return ids; + public List getMdmModuleDbFiledsRuleEntities() { + return mdmModuleDbFiledsRuleEntities; } - public void setIds(String[] ids) { - this.ids = ids; + public void setMdmModuleDbFiledsRuleEntities(List mdmModuleDbFiledsRuleEntities) { + this.mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleEntities; + } + + public String getFieldId() { + return fieldId; + } + + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + public String getDbId() { + return dbId; + } + + public void setDbId(String dbId) { + this.dbId = dbId; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewDto.java index 4386ac8c..047809ee 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewDto.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewDto.java @@ -1,14 +1,14 @@ package com.hzya.frame.mdm.entity; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import java.util.List; public class MdmModuleViewDto { - //id - private String id; + private Long mdmCode; //模版 private MdmModuleViewEntity mdmModuleViewEntity; //新增 @@ -21,6 +21,8 @@ public class MdmModuleViewDto { private List queryFiled; //列表 private List listFiled; + //按钮 + private List dbButtonFiled; public MdmModuleViewEntity getMdmModuleViewEntity() { return mdmModuleViewEntity; @@ -70,12 +72,20 @@ public class MdmModuleViewDto { this.listFiled = listFiled; } - public String getId() { - return id; + public Long getMdmCode() { + return mdmCode; } - public void setId(String id) { - this.id = id; + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; + } + + public List getDbButtonFiled() { + return dbButtonFiled; + } + + public void setDbButtonFiled(List dbButtonFiled) { + this.dbButtonFiled = dbButtonFiled; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewVo.java index e41fc9ae..44719c62 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewVo.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmModuleViewVo.java @@ -1,6 +1,7 @@ package com.hzya.frame.mdm.entity; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import java.util.List; @@ -8,6 +9,10 @@ import java.util.List; public class MdmModuleViewVo { + /** 主数据模版ID */ + private String mdmId; + /** 类型1、查询2、列表3、新增4、修改 5、查看 */ + private String viewType; //模版 private MdmModuleViewEntity mdmModuleViewEntity; //新增 @@ -31,6 +36,8 @@ public class MdmModuleViewVo { private List dbQueryFiled; //列表 private List dbListFiled; + //按钮 + private List dbButtonFiled; public List getAddFiled() { return addFiled; @@ -119,5 +126,29 @@ public class MdmModuleViewVo { public void setDbListFiled(List dbListFiled) { this.dbListFiled = dbListFiled; } + + public List getDbButtonFiled() { + return dbButtonFiled; + } + + public void setDbButtonFiled(List dbButtonFiled) { + this.dbButtonFiled = dbButtonFiled; + } + + public String getMdmId() { + return mdmId; + } + + public void setMdmId(String mdmId) { + this.mdmId = mdmId; + } + + public String getViewType() { + return viewType; + } + + public void setViewType(String viewType) { + this.viewType = viewType; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmQuery.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmQuery.java index bda7c895..6c0b67fd 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmQuery.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmQuery.java @@ -9,6 +9,8 @@ public class MdmQuery { //分页 private Integer pageNum; + //分页 + private Long mdmCode; private Integer pageSize; //表名 private String tableName; @@ -18,6 +20,8 @@ public class MdmQuery { private List returnField; //明细表查询条件 private List detailQueryCondition; + //小写字段 + private List fields; public Integer getPageNum() { return pageNum; @@ -66,4 +70,20 @@ public class MdmQuery { public void setDetailQueryCondition(List detailQueryCondition) { this.detailQueryCondition = detailQueryCondition; } + + public Long getMdmCode() { + return mdmCode; + } + + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; + } + + public List getFields() { + return fields; + } + + public void setFields(List fields) { + this.fields = fields; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmRoleDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmRoleDto.java deleted file mode 100644 index 1a235852..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmRoleDto.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.hzya.frame.mdm.entity; - - -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; - -import java.util.List; - -public class MdmRoleDto { - - //id - private String id; - - - private List mdmModuleRoleEntities; - - public List getMdmModuleRoleEntities() { - return mdmModuleRoleEntities; - } - - public void setMdmModuleRoleEntities(List mdmModuleRoleEntities) { - this.mdmModuleRoleEntities = mdmModuleRoleEntities; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmSourceDto.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmSourceDto.java new file mode 100644 index 00000000..e00af986 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmSourceDto.java @@ -0,0 +1,34 @@ +package com.hzya.frame.mdm.entity; + + +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; + +import java.util.List; + +public class MdmSourceDto { + + + //主数据编码 + private Long mdmCode; + + private List mdmModuleSourceEntities; + + + public List getMdmModuleSourceEntities() { + return mdmModuleSourceEntities; + } + + public void setMdmModuleSourceEntities(List mdmModuleSourceEntities) { + this.mdmModuleSourceEntities = mdmModuleSourceEntities; + } + + public Long getMdmCode() { + return mdmCode; + } + + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; + } +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewButtonVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewButtonVo.java deleted file mode 100644 index 4722a7b8..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewButtonVo.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.hzya.frame.mdm.entity; - -public class MdmViewButtonVo { - - //按钮类型 - private String buttonType; - //按钮名 - private String buttonName; - - public String getButtonType() { - return buttonType; - } - - public void setButtonType(String buttonType) { - this.buttonType = buttonType; - } - - public String getButtonName() { - return buttonName; - } - - public void setButtonName(String buttonName) { - this.buttonName = buttonName; - } - - public MdmViewButtonVo() { - } - - public MdmViewButtonVo(String buttonType, String buttonName) { - this.buttonType = buttonType; - this.buttonName = buttonName; - } -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewVo.java index 25749a1b..8630811e 100644 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewVo.java +++ b/service/src/main/java/com/hzya/frame/mdm/entity/MdmViewVo.java @@ -19,8 +19,6 @@ public class MdmViewVo { private List queryList; //列表 private List listList; - //按钮 - private List buttonList; public List getQueryList() { return queryList; @@ -38,13 +36,6 @@ public class MdmViewVo { this.listList = listList; } - public List getButtonList() { - return buttonList; - } - - public void setButtonList(List buttonList) { - this.buttonList = buttonList; - } public String getId() { return id; diff --git a/service/src/main/java/com/hzya/frame/mdm/entity/MdmVo.java b/service/src/main/java/com/hzya/frame/mdm/entity/MdmVo.java deleted file mode 100644 index a382ed00..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/entity/MdmVo.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.hzya.frame.mdm.entity; - -import com.fasterxml.jackson.annotation.JsonFormat; -import org.springframework.format.annotation.DateTimeFormat; - -import java.util.Date; - -public class MdmVo { - - //id - private String id; - //主数据名称 - private String mdmName; - //主数据编码 - private String mdmCode; - //主数据类型 1、档案 2、单据 - private String mdmType; - //主数据类型 1、档案 2、单据 - private String mdmTypeName; - //描述 - private String remark; - - /** logo(地址或者id) */ - private String mdmLogo; - private String createUserId; - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date createTime; - private String modifyUserId; - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date modifyTime; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getMdmName() { - return mdmName; - } - - public void setMdmName(String mdmName) { - this.mdmName = mdmName; - } - - public String getMdmCode() { - return mdmCode; - } - - public void setMdmCode(String mdmCode) { - this.mdmCode = mdmCode; - } - - public String getMdmType() { - return mdmType; - } - - public void setMdmType(String mdmType) { - this.mdmType = mdmType; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public String getMdmTypeName() { - return mdmTypeName; - } - - public void setMdmTypeName(String mdmTypeName) { - this.mdmTypeName = mdmTypeName; - } - - public String getCreateUserId() { - return createUserId; - } - - public void setCreateUserId(String createUserId) { - this.createUserId = createUserId; - } - - public Date getCreateTime() { - return createTime; - } - - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - - public String getModifyUserId() { - return modifyUserId; - } - - public void setModifyUserId(String modifyUserId) { - this.modifyUserId = modifyUserId; - } - - public Date getModifyTime() { - return modifyTime; - } - - public void setModifyTime(Date modifyTime) { - this.modifyTime = modifyTime; - } - - public String getMdmLogo() { - return mdmLogo; - } - - public void setMdmLogo(String mdmLogo) { - this.mdmLogo = mdmLogo; - } -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/IMdmModuleDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/IMdmModuleDao.java index b3356d45..1940d472 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/IMdmModuleDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/IMdmModuleDao.java @@ -1,13 +1,13 @@ package com.hzya.frame.mdm.mdmModule.dao; +import com.alibaba.fastjson.JSONObject; import com.hzya.frame.mdm.entity.MdmDataDto; import com.hzya.frame.mdm.entity.MdmDto; import com.hzya.frame.mdm.entity.MdmQuery; -import com.hzya.frame.mdm.entity.MdmVo; import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.sys.entity.FormmainDeleteDto; -import com.hzya.frame.sys.entity.ModuleDto; import java.util.HashMap; import java.util.List; @@ -17,37 +17,56 @@ import java.util.Map; * 主数据模版(mdm_module: table)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:25:41 + * @since 2024-06-03 08:46:29 */ public interface IMdmModuleDao extends IBaseDao { - List queryMdm(MdmDto entity); + List queryMdm(MdmModuleEntity entity); + + MdmModuleEntity getByMdmCode(Long mdmCode); Integer checkTable(Map maps); - Integer createTable(Map maps); - Integer createTableDistribute(Map maps); Integer alterTable(Map maps); + Integer alterTableField(MdmModuleDbFiledsEntity entity); Integer alterTableName(Map maps); - List> queryMdmShowData(MdmQuery entity); - + List> queryTemplateDataMore(MdmDto entity); + HashMap queryTemplateDataOne(MdmDto entity); Integer checkData(Map map); - Integer updateForm(MdmDataDto mdmDataDto); Integer saveForm(MdmDataDto mdmDataDto); - Integer deleteTemplateById(FormmainDeleteDto formmainDeleteDto); + Integer deleteChilder(FormmainDeleteDto formmainDeleteDto); + List> querySelectData(MdmDto entity); List> queryDataAll(MdmDto entity); - List> queryTemplateData(ModuleDto entity); + Integer deleteMdmModuleEntity(MdmModuleEntity entity); - HashMap queryTemplateDataOne(MdmDto entity); + Integer queryMainCount(MdmQuery mdmQuery); - List> queryTemplateDataMore(MdmDto entity); - List> querySelectData(MdmDto entity); + Integer deleteTable(Map maps); - Integer deleteChilder(FormmainDeleteDto formmainDeleteDto); + + JSONObject queryMdmST(Map maps); + List queryMdmSTDetail(Map maps); + + List queryMdmSTs(Map map); + + void updateMdmSTs(Map updateMap); + /**** + * 查询主数据字段 + * @content: + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2024-06-27 16:26 + * @param + * @return java.util.List + **/ + List queryMdMFields(Map maps); + + void updataTreeUpData(Map updateMaps); + + void updataTreeUpDataDetail(Map updateMaps); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/impl/MdmModuleDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/impl/MdmModuleDaoImpl.java index 3240e712..c9d4ea70 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/impl/MdmModuleDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/dao/impl/MdmModuleDaoImpl.java @@ -1,15 +1,15 @@ package com.hzya.frame.mdm.mdmModule.dao.impl; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.dao.MybatisGenericDao; import com.hzya.frame.mdm.entity.MdmDataDto; import com.hzya.frame.mdm.entity.MdmDto; import com.hzya.frame.mdm.entity.MdmQuery; -import com.hzya.frame.mdm.entity.MdmVo; -import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.sys.entity.FormmainDeleteDto; -import com.hzya.frame.sys.entity.ModuleDto; import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; import java.util.HashMap; import java.util.List; @@ -19,71 +19,31 @@ import java.util.Map; * 主数据模版(MdmModule)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:25:42 + * @since 2024-06-03 08:46:29 */ @Repository(value = "MdmModuleDaoImpl") -public class MdmModuleDaoImpl extends MybatisGenericDao implements IMdmModuleDao { +public class MdmModuleDaoImpl extends MybatisGenericDao implements IMdmModuleDao{ @Override - public List queryMdm(MdmDto entity) { - List o = (List) super.selectList(getSqlIdPrifx() + "queryMdm", entity); + public List queryMdm(MdmModuleEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryMdm", entity); return o; } + + + @Override + public MdmModuleEntity getByMdmCode(Long mdmCode) { + MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.selectOne(getSqlIdPrifx() + "getByMdmCode",mdmCode); + return mdmModuleEntity; + } + @Override public Integer checkTable(Map maps) { Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkTable", maps); return o; } - - @Override - public Integer createTable(Map maps) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps); - return o; - } - @Override - public Integer createTableDistribute(Map maps) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTableDistribute", maps); - return o; - } - @Override - public Integer alterTable(Map maps) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps); - return o; - } - - @Override - public Integer alterTableName(Map maps) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableName", maps); - return o; - - } - @Override - public Integer checkData(Map maps) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps); - return o; - - } - @Override - public List> querySelectData(MdmDto entity) { - List> o = (List>) super.selectList(getSqlIdPrifx() + "querySelectData", entity); - return o; - - } - - @Override - public List> queryTemplateDataMore(MdmDto entity) { - List> o = (List>) super.selectList(getSqlIdPrifx() + "queryTemplateDataMore", entity); - return o; - - } - - @Override - public List> queryMdmShowData(MdmQuery entity) { - List> o = (List>) super.selectList(getSqlIdPrifx() + "queryMdmShowData", entity); - return o; - } @Override public List> queryDataAll(MdmDto entity) { List> o = (List>) super.selectList(getSqlIdPrifx() + "queryDataAll", entity); @@ -91,8 +51,20 @@ public class MdmModuleDaoImpl extends MybatisGenericDao } @Override - public List> queryTemplateData(ModuleDto entity) { - List> o = (List>) super.selectList(getSqlIdPrifx() + "queryTemplateData", entity); + public Integer deleteMdmModuleEntity(MdmModuleEntity entity) { + Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleEntity", entity); + return o; + } + + @Override + public Integer queryMainCount(MdmQuery entity) { + Integer o = (Integer) super.getCount(getSqlIdPrifx() + "queryMainCount", entity); + return o; + } + + @Override + public Integer checkData(Map maps) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps); return o; } @@ -103,22 +75,32 @@ public class MdmModuleDaoImpl extends MybatisGenericDao } @Override - public Integer saveForm(MdmDataDto mdmDataDto) { - Integer o = super.update(getSqlIdPrifx() + "saveForm", mdmDataDto); + public List> querySelectData(MdmDto entity) { + List> o = (List>) super.selectList(getSqlIdPrifx() + "querySelectData", entity); return o; } + @Override + public Integer deleteChilder(FormmainDeleteDto entity) { + Integer o = super.delete(getSqlIdPrifx() + "deleteChilder", entity); + return o; + } @Override public Integer deleteTemplateById(FormmainDeleteDto entity) { Integer o = super.delete(getSqlIdPrifx() + "deleteTemplateById", entity); return o; } - @Override - public Integer deleteChilder(FormmainDeleteDto entity) { - Integer o = super.delete(getSqlIdPrifx() + "deleteChilder", entity); + public Integer saveForm(MdmDataDto mdmDataDto) { + Integer o = super.update(getSqlIdPrifx() + "saveForm", mdmDataDto); + return o; + + } + @Override + public List> queryTemplateDataMore(MdmDto entity) { + List> o = (List>) super.selectList(getSqlIdPrifx() + "queryTemplateDataMore", entity); return o; } @@ -129,5 +111,89 @@ public class MdmModuleDaoImpl extends MybatisGenericDao return o; } + + @Override + public List> queryMdmShowData(MdmQuery entity) { + //HashMap maps = new HashMap<>(); + //maps.put("tableName",entity.getTableName()); + //List fields = queryMdMFields(maps); + //entity.setFields(fields); + List> o = (List>) super.selectList(getSqlIdPrifx() + "queryMdmShowData", entity); + return o; + } + @Override + public Integer createTable(Map maps) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps); + return o; + } + + @Override + public Integer deleteTable(Map maps) { + Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteTable", maps); + return o; + } + + + + @Override + public Integer alterTable(Map maps) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps); + return o; + } + @Override + public Integer alterTableField(MdmModuleDbFiledsEntity entity) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableField", entity); + return o; + } + + @Override + public Integer alterTableName(Map maps) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableName", maps); + return o; + + } + + @Override + public JSONObject queryMdmST(Map maps) { + //List fields = queryMdMFields(maps); + //maps.put("fields",fields); + JSONObject o = (JSONObject) super.selectOne(getSqlIdPrifx() + "queryMdmST", maps); + return o; + } + @Override + public List queryMdmSTs(Map maps) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryMdmST", maps); + return o; + } + + @Override + public void updateMdmSTs(Map maps) { + super.update(getSqlIdPrifx() + "updateMdmSTs", maps); + } + + @Override + public void updataTreeUpData(Map maps) { + super.update(getSqlIdPrifx() + "updataTreeUpData", maps); + } + + @Override + public void updataTreeUpDataDetail(Map maps) { + super.update(getSqlIdPrifx() + "updataTreeUpDataDetail", maps); + } + + @Override + public List queryMdMFields(Map maps) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryMdMFields", maps); + return o; + } + + @Override + public List queryMdmSTDetail(Map maps) { + //List fields = queryMdMFields(maps); + //maps.put("fields", fields ); + List o = (List) super.selectList(getSqlIdPrifx() + "queryMdmSTDetail", maps); + return o; + } + } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.java index 021797ed..ab16aca7 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.java @@ -1,36 +1,31 @@ package com.hzya.frame.mdm.mdmModule.entity; import java.util.Date; - import com.hzya.frame.web.entity.BaseEntity; - /** * 主数据模版(MdmModule)实体类 * * @author makejava - * @since 2023-10-17 15:25:42 + * @since 2024-06-03 08:46:29 */ public class MdmModuleEntity extends BaseEntity { - - - /** logo(地址或者id) */ - private String mdmLogo; - /** - * 主数据名称 - */ - private String mdmName; - /** - * 主数据编码 - */ - private Integer mdmCode; - /** - * 主数据类型 1、档案 2、单据 - */ - private String mdmType; - /** - * 描述 - */ - private String remark; + + /** 主数据名称 */ + private String mdmName; + /** logo */ + private String mdmLogo; + /** 主数据编码 */ + private Long mdmCode; + /** 主数据类型 1、档案 2、单据 */ + private String mdmType; + /** 描述 */ + private String remark; + /** 公司id */ + private String companyId; + //创建人 + private String createUser; + //修改人 + private String modifyUser; public String getMdmName() { @@ -41,11 +36,19 @@ public class MdmModuleEntity extends BaseEntity { this.mdmName = mdmName; } - public Integer getMdmCode() { + public String getMdmLogo() { + return mdmLogo; + } + + public void setMdmLogo(String mdmLogo) { + this.mdmLogo = mdmLogo; + } + + public Long getMdmCode() { return mdmCode; } - public void setMdmCode(Integer mdmCode) { + public void setMdmCode(Long mdmCode) { this.mdmCode = mdmCode; } @@ -65,12 +68,28 @@ public class MdmModuleEntity extends BaseEntity { this.remark = remark; } - public String getMdmLogo() { - return mdmLogo; + public String getCompanyId() { + return companyId; } - public void setMdmLogo(String mdmLogo) { - this.mdmLogo = mdmLogo; + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getModifyUser() { + return modifyUser; + } + + public void setModifyUser(String modifyUser) { + this.modifyUser = modifyUser; + } + + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.xml index 0b9db66d..ae5903a8 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/entity/MdmModuleEntity.xml @@ -9,6 +9,8 @@ + + @@ -16,28 +18,33 @@ + + + + id - ,mdm_name - ,mdm_logo + ,mdm_name + ,mdm_logo ,mdm_code - ,mdm_type - ,remark - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id + ,mdm_type + ,remark + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id - + insert into mdm_module( id , mdm_name , mdm_logo , - mdm_code , - mdm_code , + mdm_code , + mdm_code , mdm_type , remark , sorts , @@ -163,6 +173,7 @@ modify_time , sts , org_id , + company_id , sts, )values( @@ -170,7 +181,7 @@ #{id} , #{mdmName} , #{mdmLogo} , - #{mdmCode} , + #{mdmCode} , (SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ), #{mdmType} , #{remark} , @@ -181,27 +192,28 @@ #{modify_time} , #{sts} , #{org_id} , + #{companyId} , 'Y', ) - - insert into mdm_module(mdm_name,mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, - modify_time, sts, org_id, sts) + + insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id, sts) values - (#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, + (#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - - insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id, - modify_time, sts, org_id) + + insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id) values - (#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) + (#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) on duplicate key update mdm_name = values(mdm_name), @@ -209,13 +221,13 @@ mdm_code = values(mdm_code), mdm_type = values(mdm_type), remark = values(remark), - sorts = values(sorts), create_user_id = values(create_user_id), create_time = values(create_time), modify_user_id = values(modify_user_id), modify_time = values(modify_time), sts = values(sts), - org_id = values(org_id) + org_id = values(org_id), + company_id = values(company_id) @@ -223,16 +235,16 @@ mdm_name = #{mdmName}, mdm_logo = #{mdmLogo}, - mdm_code = #{mdmCode}, + mdm_code = #{mdmCode}, mdm_type = #{mdmType}, remark = #{remark}, - sorts = #{sorts}, create_user_id = #{create_user_id}, create_time = #{create_time}, modify_user_id = #{modify_user_id}, modify_time = #{modify_time}, sts = #{sts}, org_id = #{org_id}, + company_id = #{companyId}, where id = #{id} @@ -248,11 +260,12 @@ where id = #{id} and id = #{id} and mdm_name = #{mdmName} and mdm_logo = #{mdmLogo} - and mdm_code = #{mdmCode} + and mdm_code = #{mdmCode} and mdm_type = #{mdmType} and remark = #{remark} and sorts = #{sorts} and sts = #{sts} + and company_id = #{companyId} and sts='Y' @@ -261,24 +274,25 @@ where id = #{id} delete from mdm_module where id = #{id} - + + DROP TABLE ${tableName} + - select a.id as id, - a.mdm_name as mdmName, - a.mdm_logo as mdmLogo, - a.mdm_code as mdmCode, - a.mdm_type as mdmType, - sd.column_content as mdmTypeName, + a.mdm_name as mdm_name, + a.mdm_logo as mdm_logo, + a.mdm_code as mdm_code, + a.mdm_type as mdm_type, a.remark as remark, - a.create_time as createTime, - a.modify_time as modifyTime, - d.person_name as createUserId, - n.person_name as modifyUserId + a.create_time as create_time, + a.modify_time as modify_time, + d.person_name as createUser, + n.person_name as modifyUser from mdm_module a - LEFT JOIN sys_dictionaryshop_new sd on sd.column_value = a.mdm_type and sd.tab_name = 'mdm' and sd.column_name = 'mdm_type' and sd.used_sts = '1' LEFT JOIN sys_user c on c.id = a.create_user_id and c.sts = 'Y' LEFT JOIN sys_person d on d.id = c.person_id and d.sts = 'Y' LEFT JOIN sys_user m on m.id = a.modify_user_id and m.sts = 'Y' @@ -294,6 +308,12 @@ where id = #{id} order by a.sorts asc + + + - + + + + + + + + + + + + + + + + + + + + - SELECT count(*) from @@ -434,55 +710,23 @@ where id = #{id} and sts = 'Y' - - - - - - + where id = #{id} + + insert into ${tableName}( @@ -496,7 +740,6 @@ where id = #{id} - sorts, create_time, modify_time, sts, @@ -519,8 +762,59 @@ where id = #{id} - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ${tableName} a WHERE - a.sts = 'Y' ), + + now(), + now(), + 'Y', + + + + concat(#{documentRule}, + LPAD( CAST( ( SELECT IFNULL( MAX(f.document_rule_num), 0 )+ 1 FROM ${tableName} f WHERE DATE_FORMAT( f.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' ) ) AS varchar(50) ), ${documentRuleNum} , '0' ) + ), + (SELECT IFNULL( MAX(f.document_rule_num), 0 )+ 1 FROM ${tableName} f WHERE DATE_FORMAT( f.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' ) + ) + + + ) + + + insert into ${tableName}( + + + + + ${item.filedsName}, + + + create_user_id, + modify_user_id, + + + + create_time, + modify_time, + sts, + + document_rule, + document_rule_num, + + + )values + ( + + + + + #{item.filedsValue}, + + + #{item.filedsValue}, + #{item.filedsValue}, + + + + now(), now(), 'Y', @@ -577,27 +871,10 @@ where id = #{id} ) - - update ${tableName} set - - - - - ${item.filedsName} = #{item.filedsValue}, - - - modify_user_id = #{item.filedsValue}, - - - - modify_time = now(), - - where id = #{id} - - update ${tableName} set - sts='N',modify_time = now(),modify_user_id = #{loginId} + data_status ='N',modify_time = now(),modify_user_id = #{loginId} + ,delete_status = '0' and id = #{id} and formmain_id = #{formmain_id} @@ -605,82 +882,17 @@ where id = #{id} - update ${tableName} set - sts='N',modify_time = now(),modify_user_id = #{loginId} + data_status='N',modify_time = now(),modify_user_id = #{loginId},delete_status = '0' - and ${upIdFiled} like concat(#{upIdFiledValue},'%') + and ${upIdFiled} like concat(#{upIdFiledValue},'%') and sts='Y' - - - - - - - - - - - - + + + + delete from mdm_module where mdm_code = #{mdmCode} + + + + + + + + + + + + + + + + + + + update ${tableName} set + + , add_status = #{addStatus} + , update_status = #{updateStatus} + , delete_status = #{deleteStatus} + ,modify_time = now() + + + and id = #{id} + and data_status = #{dataStatus} + + + + + + UPDATE ${tableName} + SET ${upFiled} = CONCAT(#{newData},SUBSTRING_INDEX( ${upFiled}, #{oldData},- 1 )), + modify_time = now(), + modify_user_id = #{modify_user_id}, + data_status = 'F', + update_status = '0' + WHERE + ${upFiled} LIKE concat(#{oldData},'%') + AND sts = 'Y' + AND data_status != 'N' + + + + + UPDATE ${tableName} a + JOIN ${mainDBTable} b ON a.formmain_id = b.id and b.sts = 'Y' + SET + a.${upFiled}=CONCAT(#{newData},SUBSTRING_INDEX(${upFiled},#{oldData},-1)), + a.modify_time = now(), + a.modify_user_id = '1', + a.data_status = 'F', + + b.update_status = '0' , + b.data_status = 'F', + b.modify_time = now(), + b.modify_user_id = '1' + + WHERE + a.${upFiled} LIKE concat( #{oldData}, '%' ) + AND a.sts = 'Y' + AND a.data_status != 'N' + AND b.sts = 'Y' + AND b.data_status != 'N' + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/IMdmModuleService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/IMdmModuleService.java index 837cb3e4..ca980443 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/IMdmModuleService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/IMdmModuleService.java @@ -1,13 +1,400 @@ package com.hzya.frame.mdm.mdmModule.service; +import com.alibaba.fastjson.JSONObject; import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.web.entity.JsonResultEntity; /** * 主数据模版(MdmModule)表服务接口 * * @author makejava - * @since 2023-10-17 15:25:44 + * @since 2024-06-03 08:46:29 */ -public interface IMdmModuleService extends IBaseService { +public interface IMdmModuleService extends IBaseService{ + + /** + * @Author lvleigang + * @Description 查询所有主数据 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdm(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 删除主数据 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteMdm(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-基本信息获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity getMdm(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-基本信息新增 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdm(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-基本信息修改(同步修改菜单名称) + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdm(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-数据源-单据规则获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity getMdmTableCodeRule(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-单据规则新增或修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveOrUpdateMdmTableCodeRule(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDb(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表新增 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdmDb(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmDb(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表删除 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteMdmDb(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDbField(JSONObject jsonObject); + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段明细 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDbFieldDetail(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段新增 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdmDbField(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmDbField(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段删除 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteMdmDbField(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段规则获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDbFieldRule(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-数据表字段规则修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmDbFieldRule(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示类型获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmView(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示类型保存 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdmView(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示类型修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmView(JSONObject jsonObject); + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示字段获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmViewField(JSONObject jsonObject); + + + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示字段设置保存 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveOrUpdateMdmViewField(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示按钮获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmViewButton(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-显示信息-显示按钮保存 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveOrUpdateMdmViewButton(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-数据来源-列表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmSource(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据来源保存 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdmSource(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据来源获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity getMdmSource(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据来源修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmSource(JSONObject jsonObject); + /** + * @Author lvleigang + * @Description 主数据-数据来源删除 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteMdmSource(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置-列表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDistribute(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置保存 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveMdmDistribute(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity getMdmDistribute(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置修改 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateMdmDistribute(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置删除 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteMdmDistribute(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-写入日志-列表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmOptionLogPage(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-下发日志-列表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDistributeLogPage(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-数据源-服务获取(只获取主表) + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmService(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-服务字段获取(只获取主表) + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmServiceField(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 主数据-分发-只获取主表 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmMainDB(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-数据源-只获取主表字段 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmMainDBField(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 主数据-分发设置-列表获取 + * @Date 11:43 上午 2024/6/11 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryMdmDistributeByMdmCode(JSONObject jsonObject); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/impl/MdmModuleServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/impl/MdmModuleServiceImpl.java index b82af615..7169f57f 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/impl/MdmModuleServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModule/service/impl/MdmModuleServiceImpl.java @@ -1,8 +1,55 @@ package com.hzya.frame.mdm.mdmModule.service.impl; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.mdm.entity.MdmDbFiledVo; +import com.hzya.frame.mdm.entity.MdmDto; +import com.hzya.frame.mdm.entity.MdmModuleViewVo; +import com.hzya.frame.mdm.entity.MdmQuery; import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService; +import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao; +import com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl; +import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; +import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity; +import com.hzya.frame.mdm.mdmModuleOptionLog.dao.IMdmModuleOptionLogDao; +import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity; +import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao; +import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity; +import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; +import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao; +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao; +import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; +import com.hzya.frame.mdm.mdmTableCodeRule.dao.IMdmTableCodeRuleDao; +import com.hzya.frame.mdm.mdmTableCodeRule.dao.impl.MdmTableCodeRuleDaoImpl; +import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; +import com.hzya.frame.mdm.service.IMdmServiceCache; +import com.hzya.frame.mdm.service.impl.MdmServiceCache; +import com.hzya.frame.sysnew.buttonConfig.dao.ISysButtonConfigDao; +import com.hzya.frame.sysnew.buttonConfig.entity.SysButtonConfigEntity; +import com.hzya.frame.sysnew.menuConfig.dao.ISysMenuConfigDao; +import com.hzya.frame.sysnew.menuConfig.entity.SysMenuConfigEntity; +import com.hzya.frame.sysnew.popedomMenu.dao.ISysPopedomMenuDao; +import com.hzya.frame.sysnew.popedomMenu.entity.SysPopedomMenuEntity; +import com.hzya.frame.sysnew.popedomOperate.dao.ISysPopedomOperateDao; +import com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.web.exception.BaseSystemException; +import org.checkerframework.checker.units.qual.A; import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; @@ -10,20 +57,2798 @@ import javax.annotation.Resource; import com.hzya.frame.basedao.service.impl.BaseService; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + /** * 主数据模版(MdmModule)表服务实现类 * * @author makejava - * @since 2023-10-17 15:25:44 + * @since 2024-06-03 08:46:29 */ @Service(value = "mdmModuleService") public class MdmModuleServiceImpl extends BaseService implements IMdmModuleService { private IMdmModuleDao mdmModuleDao; + @Resource + private ISysPopedomMenuDao sysPopedomMenuDao; + @Resource + private ISysPopedomOperateDao sysPopedomOperateDao; + @Resource + private ISysButtonConfigDao sysButtonConfigDao; + @Resource + private ISysMenuConfigDao sysMenuConfigDao; + + @Resource + private IMdmModuleSendLogDao mdmModuleSendLogDao; + @Resource + private IMdmModuleOptionLogDao mdmModuleOptionLogDao; + @Resource + private IMdmServiceCache mdmServiceCache; + @Resource + private IMdmModuleDbDao mdmModuleDbDao; + @Resource + private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao; + @Resource + private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao; + @Resource + private IMdmModuleDistributeDao mdmModuleDistributeDao; + @Resource + private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao; + @Resource + private IMdmModuleViewDao mdmModuleViewDao; + + @Resource + private IMdmModuleSourceDao mdmModuleSourceDao; + @Resource + private IMdmModuleViewButtonDao mdmModuleViewButtonDao; + @Resource + private IMdmModuleViewDetailDao mdmModuleViewDetailDao; + @Resource + private IMdmTableCodeRuleDao mdmTableCodeRuleDao; @Autowired public void setMdmModuleDao(IMdmModuleDao dao) { this.mdmModuleDao = dao; this.dao = dao; } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询所有主数据 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdm(JSONObject object) { + MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); + List mdmModuleEntities = mdmModuleDao.queryByLike(entity); + return BaseResult.getSuccessMessageEntity("查询所有主数据", mdmModuleEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除主数据 校验主表是不是有数据,有数据不允许删除 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity deleteMdm(JSONObject object) { + MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmModuleDao.get(entity.getId()); + if (mdmModuleEntity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + //查询数据源表 + MdmModuleDbEntity queryDb = new MdmModuleDbEntity(); + queryDb.setMdmId(mdmModuleEntity.getId()); + queryDb.setSts("Y"); + queryDb.setDbType("1");//主表 + List mdmModuleDbEntities = mdmModuleDbDao.queryBase(queryDb); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() == 1) { + MdmQuery mdmQuery = new MdmQuery(); + mdmQuery.setTableName(mdmModuleDbEntities.get(0).getDbName()); + Integer count = mdmModuleDao.queryMainCount(mdmQuery); + if (count > 0) { + return BaseResult.getFailureMessageEntity(mdmModuleEntity.getMdmName() + "存在数据,不允许删除"); + } + MdmModuleDbFiledsRuleEntity queryCount = new MdmModuleDbFiledsRuleEntity(); + queryCount.setMdmId(entity.getId()); + queryCount.setRuleCode("service"); + queryCount.setRuleValue(mdmModuleDbEntities.get(0).getDbName()); + Integer counts = mdmModuleDbFiledsRuleDao.queryUserMdm(queryCount); + if (counts > 0) { + return BaseResult.getFailureMessageEntity(mdmModuleEntity.getMdmName() + "已被引用,不允许删除"); + } + } + + + //删除单据规则 + MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); + mdmTableCodeRuleEntity.setUpdate(); + mdmTableCodeRuleEntity.setMdmId(mdmModuleEntity.getId()); + mdmTableCodeRuleDao.logicRemoveMultiCondition(mdmTableCodeRuleEntity); + + //删除视图设置的字段 + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + + //删除设置按钮 + MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity(); + mdmModuleViewButtonEntity.setUpdate(); + mdmModuleViewButtonEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewButtonDao.logicRemoveMultiCondition(mdmModuleViewButtonEntity); + + //删除显示信息 + MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); + mdmModuleViewEntity.setUpdate(); + mdmModuleViewEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewDao.logicRemoveMultiCondition(mdmModuleViewEntity); + //删除数据来源配置 + MdmModuleSourceEntity mdmModuleSourceEntity = new MdmModuleSourceEntity(); + mdmModuleSourceEntity.setUpdate(); + mdmModuleSourceEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleSourceDao.logicRemoveMultiCondition(mdmModuleSourceEntity); + //删除下发配置,以及下发配置的数据权限 + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setUpdate(); + mdmModuleDistributeDetailEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeDetailDao.logicRemoveMultiCondition(mdmModuleDistributeDetailEntity); + + MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); + mdmModuleDistributeEntity.setUpdate(); + mdmModuleDistributeEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeDao.logicRemoveMultiCondition(mdmModuleDistributeEntity); + //删除字段规则表 + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + //删除字段表 + mdmServiceCache.deleteMdmModuleDbFileds(mdmModuleEntity.getId(), null); + //删除设置的db,以及实体表 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbEntities1 = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntities1 != null && mdmModuleDbEntities1.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities1.size(); i++) { + Map maps = new HashMap<>(); + maps.put("tableName", mdmModuleDbEntities1.get(i).getDbName()); + mdmModuleDao.deleteTable(maps); + } + } + mdmServiceCache.deleteMdmModuleDb(mdmModuleEntity.getId(), null); + + //删除菜单和按钮,以及权限分配(用户权限和角色权限) + SysMenuConfigEntity sysMenuConfigEntity = new SysMenuConfigEntity(); + sysMenuConfigEntity.setFormId(mdmModuleEntity.getId()); + sysMenuConfigEntity.setSts("Y"); + List sysMenuConfigEntities = sysMenuConfigDao.queryBase(sysMenuConfigEntity); + if (sysMenuConfigEntities != null && sysMenuConfigEntities.size() > 0) { + for (int i = 0; i < sysMenuConfigEntities.size(); i++) { + SysButtonConfigEntity sysButtonConfigEntity = new SysButtonConfigEntity(); + sysButtonConfigEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysButtonConfigEntity.setSts("Y"); + sysButtonConfigEntity.setUpdate(); + sysButtonConfigDao.logicRemoveMultiCondition(sysButtonConfigEntity); + + SysPopedomOperateEntity sysPopedomOperateEntity = new SysPopedomOperateEntity(); + sysPopedomOperateEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysPopedomOperateEntity.setSts("Y"); + sysPopedomOperateEntity.setUpdate(); + sysPopedomOperateDao.logicRemoveMultiCondition(sysPopedomOperateEntity); + + SysPopedomMenuEntity sysPopedomMenuEntity = new SysPopedomMenuEntity(); + sysPopedomMenuEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysPopedomMenuEntity.setSts("Y"); + sysPopedomMenuEntity.setUpdate(); + sysPopedomMenuDao.logicRemoveMultiCondition(sysPopedomMenuEntity); + sysMenuConfigEntities.get(i).setUpdate(); + sysMenuConfigDao.logicRemoveMultiCondition(sysMenuConfigEntities.get(i)); + } + } + + + //删除主数据 + mdmServiceCache.deleteMdmModuleEntity(mdmModuleEntity); + + return BaseResult.getSuccessMessageEntity("删除成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-基本信息获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity getMdm(JSONObject object) { + MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmModuleDao.get(entity.getId()); + if (mdmModuleEntity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + return BaseResult.getSuccessMessageEntity("获取成功", mdmModuleEntity); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-基本信息新增 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdm(JSONObject object) { + MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmName() == null || "".equals(entity.getMdmName())) { + return BaseResult.getFailureMessageEntity("请先输入主数据名称"); + } + if (entity.getMdmType() == null || "".equals(entity.getMdmType())) { + return BaseResult.getFailureMessageEntity("请先输入主数据类型"); + } + entity.setCreate(); + mdmModuleDao.save(entity); + entity = mdmModuleDao.get(entity.getId()); + return BaseResult.getSuccessMessageEntity("保存成功", entity); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-基本信息修改(同步修改菜单名称) + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdm(JSONObject object) { + MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + mdmServiceCache.updateMdmModuleEntity(entity); + + //修改菜单的显示信息 + SysMenuConfigEntity sysMenuConfigEntity = new SysMenuConfigEntity(); + sysMenuConfigEntity.setFormId(entity.getId()); + sysMenuConfigEntity.setSts("Y"); + List sysMenuConfigEntities = sysMenuConfigDao.queryBase(sysMenuConfigEntity); + if (sysMenuConfigEntities != null && sysMenuConfigEntities.size() > 0) { + for (int i = 0; i < sysMenuConfigEntities.size(); i++) { + + sysMenuConfigEntities.get(i).setUpdate(); + if ("1".equals(entity.getMdmType())) { + //1、档案 + sysMenuConfigEntities.get(i).setParentMenuId("ea22757e99c144fb9ef381dd322e233c"); + } else { + //2、单据 + sysMenuConfigEntities.get(i).setParentMenuId("67f82a6e7f664c5a89b7fc7b8fc817b0"); + } + sysMenuConfigEntities.get(i).setMenuName(entity.getMdmName()); + sysMenuConfigEntities.get(i).setMenuEnglishName("integrationOptionAdmin" + entity.getMdmCode()); + JSONObject object1 = JSONObject.parseObject(sysMenuConfigEntities.get(i).getOptions()); + object1.put("mdmId", entity.getId());//主数据id + object1.put("mdmCode", entity.getMdmCode());//主数据编码 + sysMenuConfigEntities.get(i).setOptions(object1.toString());//菜单mate参数 + sysMenuConfigDao.update(sysMenuConfigEntities.get(i)); + } + } + return BaseResult.getSuccessMessageEntity("修改成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-单据规则获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity getMdmTableCodeRule(JSONObject object) { + MdmTableCodeRuleEntity entity = getData("jsonStr", object, MdmTableCodeRuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List mdmTableCodeRuleEntities = mdmTableCodeRuleDao.queryBase(entity); + return BaseResult.getSuccessMessageEntity("获取单据规则成功", mdmTableCodeRuleEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-单据规则新增或修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveOrUpdateMdmTableCodeRule(JSONObject object) { + MdmDto entity = getData("jsonStr", object, MdmDto.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmTableCodeRuleEntityList() == null || entity.getMdmTableCodeRuleEntityList().size() == 0) { + return BaseResult.getFailureMessageEntity("请先设置单据规则"); + } + + MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); + mdmTableCodeRuleEntity.setMdmId(entity.getId()); + mdmTableCodeRuleEntity.setSts("Y"); + mdmTableCodeRuleEntity.setUpdate(); + mdmTableCodeRuleDao.logicRemoveMultiCondition(mdmTableCodeRuleEntity); + if (entity.getMdmTableCodeRuleEntityList() != null && entity.getMdmTableCodeRuleEntityList().size() > 0) { + for (int i = 0; i < entity.getMdmTableCodeRuleEntityList().size(); i++) { + entity.getMdmTableCodeRuleEntityList().get(i).setMdmId(entity.getId()); + entity.getMdmTableCodeRuleEntityList().get(i).setCreate(); + mdmTableCodeRuleDao.save(entity.getMdmTableCodeRuleEntityList().get(i)); + } + } + + return BaseResult.getSuccessMessageEntity("保存单据规则成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDb(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(entity); + List dbEntities = new ArrayList<>(); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType()) || "2".equals(mdmModuleDbEntities.get(i).getDbType())) { + dbEntities.add(mdmModuleDbEntities.get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("获取数据源表成功", dbEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表新增 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdmDb(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List mdmModuleDbEntities = new ArrayList<>(); + List mdmModuleDbFiledsEntities = new ArrayList<>(); + entity.setDataType("1"); + //保存数据表,新建默认字段 + entity.setCreate(); + mdmModuleDbEntities.add(entity); + setMdmField(entity, mdmModuleDbFiledsEntities); + //如果是主表,同步新建 两张日志表,添加日志表字段 + if ("1".equals(entity.getDbType())) { + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(entity.getMdmId()); + mdmModuleDbEntity.setDbName(entity.getDbName() + "_option_log"); + mdmModuleDbEntity.setDbType("3"); + mdmModuleDbEntity.setRemark(entity.getRemark() + "操作日志"); + mdmModuleDbEntity.setCreate(); + mdmModuleDbEntity.setDataType("1"); + mdmModuleDbEntities.add(mdmModuleDbEntity); + //新增 设置日志表 + setMdmField(mdmModuleDbEntity, mdmModuleDbFiledsEntities); + + MdmModuleDbEntity mdmModuleDbEntity1 = new MdmModuleDbEntity(); + mdmModuleDbEntity1.setMdmId(entity.getMdmId()); + mdmModuleDbEntity1.setDbName(entity.getDbName() + "_send_log"); + mdmModuleDbEntity1.setDbType("4"); + mdmModuleDbEntity1.setRemark(entity.getRemark() + "下发日志"); + mdmModuleDbEntity1.setCreate(); + mdmModuleDbEntity1.setDataType("1"); + mdmModuleDbEntities.add(mdmModuleDbEntity1); + //新增 设置日志表 + setMdmField(mdmModuleDbEntity1, mdmModuleDbFiledsEntities); + } + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + //查看表是否存在 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setDbName(mdmModuleDbEntities.get(i).getDbName()); + mdmModuleDbEntity.setSts("Y"); + int a = mdmModuleDbDao.getCount(mdmModuleDbEntity); + if (a > 0) { + return BaseResult.getFailureMessageEntity("表已存在,请修改"); + } + } + mdmServiceCache.saveOrUpdateMdmModuleDb(entity.getMdmId(), mdmModuleDbEntities); + mdmServiceCache.saveOrUpdateMdmModuleDbFileds(entity.getMdmId(), mdmModuleDbFiledsEntities); + + //新建表 + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + Map maps = new HashMap<>(); + maps.put("tableName", mdmModuleDbEntities.get(i).getDbName());//表名 + maps.put("tableRemark", mdmModuleDbEntities.get(i).getRemark());//表备注 + maps.put("tableType", mdmModuleDbEntities.get(i).getDbType());//表备注 + mdmModuleDao.createTable(maps); + } + return BaseResult.getSuccessMessageEntity("保存表成功"); + } + + /** + * @param entity + * @param mdmModuleDbFiledsEntities + * @return void + * @Author lvleigang + * @Description 设置默认字段 + * @Date 10:47 上午 2024/6/12 + **/ + private void setMdmField(MdmModuleDbEntity entity, List mdmModuleDbFiledsEntities) { + + MdmModuleDbFiledsEntity id = new MdmModuleDbFiledsEntity(); + id.setMdmId(entity.getMdmId()); + id.setDbId(entity.getId()); + id.setChName("id"); + id.setEnName("id"); + id.setFiledType("3"); + id.setAddType("2"); + id.setUpdateType("2"); + id.setShowType("2"); + id.setQueryType("2"); + id.setListType("2"); + id.setViewType("2"); + id.setFiledLength("50"); + id.setCreate(); + id.setDataType("1"); + mdmModuleDbFiledsEntities.add(id); + + if ("1".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity documentRule = new MdmModuleDbFiledsEntity(); + documentRule.setMdmId(entity.getMdmId()); + documentRule.setDbId(entity.getId()); + documentRule.setEnName("document_rule"); + documentRule.setChName("单据规则"); + documentRule.setFiledType("3"); + documentRule.setAddType("2"); + documentRule.setUpdateType("1"); + documentRule.setShowType("1"); + documentRule.setQueryType("1"); + documentRule.setListType("1"); + documentRule.setViewType("2"); + documentRule.setFiledLength("50"); + documentRule.setCreate(); + documentRule.setDataType("1"); + + mdmModuleDbFiledsEntities.add(documentRule); + + MdmModuleDbFiledsEntity document_rule_num = new MdmModuleDbFiledsEntity(); + document_rule_num.setMdmId(entity.getMdmId()); + document_rule_num.setDbId(entity.getId()); + document_rule_num.setEnName("document_rule_num"); + document_rule_num.setChName("单据规则流水号"); + document_rule_num.setFiledType("1"); + document_rule_num.setAddType("2"); + document_rule_num.setUpdateType("2"); + document_rule_num.setShowType("2"); + document_rule_num.setQueryType("2"); + document_rule_num.setListType("2"); + document_rule_num.setViewType("2"); + document_rule_num.setFiledLength("50"); + document_rule_num.setCreate(); + document_rule_num.setDataType("1"); + mdmModuleDbFiledsEntities.add(document_rule_num); + + MdmModuleDbFiledsEntity data_id = new MdmModuleDbFiledsEntity(); + data_id.setMdmId(entity.getMdmId()); + data_id.setDbId(entity.getId()); + data_id.setEnName("data_id"); + data_id.setChName("第三方主键ID"); + data_id.setFiledType("1"); + data_id.setAddType("2"); + data_id.setUpdateType("2"); + data_id.setShowType("2"); + data_id.setQueryType("2"); + data_id.setListType("2"); + data_id.setViewType("2"); + data_id.setFiledLength("255"); + data_id.setCreate(); + data_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(data_id); + + } + if ("2".equals(entity.getDbType()) || "3".equals(entity.getDbType()) || "4".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity formmain_id = new MdmModuleDbFiledsEntity(); + formmain_id.setMdmId(entity.getMdmId()); + formmain_id.setDbId(entity.getId()); + formmain_id.setEnName("formmain_id"); + formmain_id.setChName("主表id"); + formmain_id.setFiledType("3"); + formmain_id.setAddType("2"); + formmain_id.setUpdateType("2"); + formmain_id.setShowType("2"); + formmain_id.setQueryType("2"); + formmain_id.setListType("2"); + formmain_id.setViewType("2"); + formmain_id.setFiledLength("50"); + formmain_id.setCreate(); + formmain_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(formmain_id); + + MdmModuleDbFiledsEntity data_id = new MdmModuleDbFiledsEntity(); + data_id.setMdmId(entity.getMdmId()); + data_id.setDbId(entity.getId()); + data_id.setEnName("data_id"); + data_id.setChName("第三方主键ID"); + data_id.setFiledType("1"); + data_id.setAddType("2"); + data_id.setUpdateType("2"); + data_id.setShowType("2"); + data_id.setQueryType("2"); + data_id.setListType("2"); + data_id.setViewType("2"); + data_id.setFiledLength("255"); + data_id.setCreate(); + data_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(data_id); + + } + //写入日志字段:操作人 + if ("3".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity source_name = new MdmModuleDbFiledsEntity(); + source_name.setMdmId(entity.getMdmId()); + source_name.setDbId(entity.getId()); + source_name.setEnName("source_name"); + source_name.setChName("来源名称"); + source_name.setFiledType("3"); + source_name.setAddType("2"); + source_name.setUpdateType("2"); + source_name.setShowType("2"); + source_name.setQueryType("2"); + source_name.setListType("2"); + source_name.setViewType("2"); + source_name.setFiledLength("255"); + source_name.setCreate(); + source_name.setDataType("1"); + mdmModuleDbFiledsEntities.add(source_name); + + MdmModuleDbFiledsEntity data_type = new MdmModuleDbFiledsEntity(); + data_type.setMdmId(entity.getMdmId()); + data_type.setDbId(entity.getId()); + data_type.setEnName("data_type"); + data_type.setChName("状态"); + data_type.setFiledType("3"); + data_type.setAddType("1"); + data_type.setUpdateType("1"); + data_type.setShowType("1"); + data_type.setQueryType("1"); + data_type.setListType("1"); + data_type.setViewType("1"); + data_type.setFiledLength("50"); + data_type.setCreate(); + data_type.setDataType("1"); + mdmModuleDbFiledsEntities.add(data_type); + + MdmModuleDbFiledsEntity remark = new MdmModuleDbFiledsEntity(); + remark.setMdmId(entity.getMdmId()); + remark.setDbId(entity.getId()); + remark.setEnName("remark"); + remark.setChName("备注"); + remark.setFiledType("3"); + remark.setAddType("1"); + remark.setUpdateType("1"); + remark.setShowType("1"); + remark.setQueryType("1"); + remark.setListType("1"); + remark.setViewType("1"); + remark.setFiledLength("255"); + remark.setCreate(); + remark.setDataType("1"); + mdmModuleDbFiledsEntities.add(remark); + + MdmModuleDbFiledsEntity code = new MdmModuleDbFiledsEntity(); + code.setMdmId(entity.getMdmId()); + code.setDbId(entity.getId()); + code.setEnName("code"); + code.setChName("编码"); + code.setFiledType("3"); + code.setAddType("1"); + code.setUpdateType("1"); + code.setShowType("1"); + code.setQueryType("1"); + code.setListType("1"); + code.setViewType("1"); + code.setFiledLength("255"); + code.setCreate(); + code.setDataType("1"); + mdmModuleDbFiledsEntities.add(code); + + MdmModuleDbFiledsEntity source_data = new MdmModuleDbFiledsEntity(); + source_data.setMdmId(entity.getMdmId()); + source_data.setDbId(entity.getId()); + source_data.setEnName("source_data"); + source_data.setChName("源数据"); + source_data.setFiledType("3"); + source_data.setAddType("1"); + source_data.setUpdateType("1"); + source_data.setShowType("1"); + source_data.setQueryType("1"); + source_data.setListType("1"); + source_data.setViewType("1"); + source_data.setFiledLength("255"); + source_data.setCreate(); + source_data.setDataType("1"); + mdmModuleDbFiledsEntities.add(source_data); + + MdmModuleDbFiledsEntity option_type = new MdmModuleDbFiledsEntity(); + option_type.setMdmId(entity.getMdmId()); + option_type.setDbId(entity.getId()); + option_type.setEnName("option_type"); + option_type.setChName("操作类型"); + option_type.setFiledType("3"); + option_type.setAddType("1"); + option_type.setUpdateType("1"); + option_type.setShowType("1"); + option_type.setQueryType("1"); + option_type.setListType("1"); + option_type.setViewType("1"); + option_type.setFiledLength("255"); + option_type.setCreate(); + option_type.setDataType("1"); + mdmModuleDbFiledsEntities.add(option_type); + + MdmModuleDbFiledsEntity option_Name = new MdmModuleDbFiledsEntity(); + option_Name.setMdmId(entity.getMdmId()); + option_Name.setDbId(entity.getId()); + option_Name.setEnName("option_name"); + option_Name.setChName("操作人"); + option_Name.setFiledType("3"); + option_Name.setAddType("1"); + option_Name.setUpdateType("1"); + option_Name.setShowType("1"); + option_Name.setQueryType("1"); + option_Name.setListType("1"); + option_Name.setViewType("1"); + option_Name.setFiledLength("255"); + option_Name.setCreate(); + option_Name.setDataType("1"); + mdmModuleDbFiledsEntities.add(option_Name); + } + + //目标应用、目标api、 + if ("4".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity target_app = new MdmModuleDbFiledsEntity(); + target_app.setMdmId(entity.getMdmId()); + target_app.setDbId(entity.getId()); + target_app.setEnName("target_app"); + target_app.setChName("目标应用"); + target_app.setFiledType("3"); + target_app.setAddType("1"); + target_app.setUpdateType("1"); + target_app.setShowType("1"); + target_app.setQueryType("1"); + target_app.setListType("1"); + target_app.setViewType("1"); + target_app.setFiledLength("255"); + target_app.setCreate(); + target_app.setDataType("1"); + mdmModuleDbFiledsEntities.add(target_app); + + MdmModuleDbFiledsEntity target_api = new MdmModuleDbFiledsEntity(); + target_api.setMdmId(entity.getMdmId()); + target_api.setDbId(entity.getId()); + target_api.setEnName("target_api"); + target_api.setChName("目标api"); + target_api.setFiledType("3"); + target_api.setAddType("1"); + target_api.setUpdateType("1"); + target_api.setShowType("1"); + target_api.setQueryType("1"); + target_api.setListType("1"); + target_api.setViewType("1"); + target_api.setFiledLength("255"); + target_api.setCreate(); + target_api.setDataType("1"); + mdmModuleDbFiledsEntities.add(target_api); + + MdmModuleDbFiledsEntity source_data = new MdmModuleDbFiledsEntity(); + source_data.setMdmId(entity.getMdmId()); + source_data.setDbId(entity.getId()); + source_data.setEnName("source_data"); + source_data.setChName("源数据"); + source_data.setFiledType("3"); + source_data.setAddType("1"); + source_data.setUpdateType("1"); + source_data.setShowType("1"); + source_data.setQueryType("1"); + source_data.setListType("1"); + source_data.setViewType("1"); + source_data.setFiledLength("255"); + source_data.setCreate(); + source_data.setDataType("1"); + mdmModuleDbFiledsEntities.add(source_data); + + MdmModuleDbFiledsEntity option_type = new MdmModuleDbFiledsEntity(); + option_type.setMdmId(entity.getMdmId()); + option_type.setDbId(entity.getId()); + option_type.setEnName("option_type"); + option_type.setChName("操作类型"); + option_type.setFiledType("3"); + option_type.setAddType("1"); + option_type.setUpdateType("1"); + option_type.setShowType("1"); + option_type.setQueryType("1"); + option_type.setListType("1"); + option_type.setViewType("1"); + option_type.setFiledLength("255"); + option_type.setCreate(); + option_type.setDataType("1"); + mdmModuleDbFiledsEntities.add(option_type); + + MdmModuleDbFiledsEntity data_type = new MdmModuleDbFiledsEntity(); + data_type.setMdmId(entity.getMdmId()); + data_type.setDbId(entity.getId()); + data_type.setEnName("data_type"); + data_type.setChName("状态"); + data_type.setFiledType("3"); + data_type.setAddType("1"); + data_type.setUpdateType("1"); + data_type.setShowType("1"); + data_type.setQueryType("1"); + data_type.setListType("1"); + data_type.setViewType("1"); + data_type.setFiledLength("255"); + data_type.setCreate(); + data_type.setDataType("1"); + mdmModuleDbFiledsEntities.add(data_type); + + MdmModuleDbFiledsEntity remark = new MdmModuleDbFiledsEntity(); + remark.setMdmId(entity.getMdmId()); + remark.setDbId(entity.getId()); + remark.setEnName("remark"); + remark.setChName("备注"); + remark.setFiledType("3"); + remark.setAddType("1"); + remark.setUpdateType("1"); + remark.setShowType("1"); + remark.setQueryType("1"); + remark.setListType("1"); + remark.setViewType("1"); + remark.setFiledLength("255"); + remark.setCreate(); + remark.setDataType("1"); + mdmModuleDbFiledsEntities.add(remark); + + MdmModuleDbFiledsEntity distribute_id = new MdmModuleDbFiledsEntity(); + distribute_id.setMdmId(entity.getMdmId()); + distribute_id.setDbId(entity.getId()); + distribute_id.setEnName("distribute_id"); + distribute_id.setChName("下发表id"); + distribute_id.setFiledType("3"); + distribute_id.setAddType("1"); + distribute_id.setUpdateType("1"); + distribute_id.setShowType("1"); + distribute_id.setQueryType("1"); + distribute_id.setListType("1"); + distribute_id.setViewType("1"); + distribute_id.setFiledLength("50"); + distribute_id.setCreate(); + distribute_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(distribute_id); + + MdmModuleDbFiledsEntity app_id = new MdmModuleDbFiledsEntity(); + app_id.setMdmId(entity.getMdmId()); + app_id.setDbId(entity.getId()); + app_id.setEnName("app_id"); + app_id.setChName("app_id"); + app_id.setFiledType("3"); + app_id.setAddType("1"); + app_id.setUpdateType("1"); + app_id.setShowType("1"); + app_id.setQueryType("1"); + app_id.setListType("1"); + app_id.setViewType("1"); + app_id.setFiledLength("50"); + app_id.setCreate(); + app_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(app_id); + + MdmModuleDbFiledsEntity api_id = new MdmModuleDbFiledsEntity(); + api_id.setMdmId(entity.getMdmId()); + api_id.setDbId(entity.getId()); + api_id.setEnName("api_id"); + api_id.setChName("api_id"); + api_id.setFiledType("3"); + api_id.setAddType("1"); + api_id.setUpdateType("1"); + api_id.setShowType("1"); + api_id.setQueryType("1"); + api_id.setListType("1"); + api_id.setViewType("1"); + api_id.setFiledLength("50"); + api_id.setCreate(); + api_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(api_id); + } + if ("2".equals(entity.getDbType()) || "1".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity data_status = new MdmModuleDbFiledsEntity(); + data_status.setMdmId(entity.getMdmId()); + data_status.setDbId(entity.getId()); + data_status.setEnName("data_status"); + data_status.setChName("数据状态"); + data_status.setFiledType("3"); + data_status.setAddType("2"); + data_status.setUpdateType("2"); + data_status.setShowType("2"); + data_status.setQueryType("2"); + data_status.setListType("2"); + data_status.setViewType("2"); + data_status.setFiledLength("1"); + data_status.setCreate(); + data_status.setDataType("1"); + mdmModuleDbFiledsEntities.add(data_status); + } + if ("1".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity add_status = new MdmModuleDbFiledsEntity(); + add_status.setMdmId(entity.getMdmId()); + add_status.setDbId(entity.getId()); + add_status.setEnName("add_status"); + add_status.setChName("新增数据状态 0待下发 1已下发"); + add_status.setFiledType("3"); + add_status.setAddType("2"); + add_status.setUpdateType("2"); + add_status.setShowType("2"); + add_status.setQueryType("2"); + add_status.setListType("2"); + add_status.setViewType("2"); + add_status.setFiledLength("1"); + add_status.setCreate(); + add_status.setDataType("1"); + mdmModuleDbFiledsEntities.add(add_status); + } + if ("1".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity update_status = new MdmModuleDbFiledsEntity(); + update_status.setMdmId(entity.getMdmId()); + update_status.setDbId(entity.getId()); + update_status.setEnName("update_status"); + update_status.setChName("修改数据状态 0待下发 1已下发"); + update_status.setFiledType("3"); + update_status.setAddType("2"); + update_status.setUpdateType("2"); + update_status.setShowType("2"); + update_status.setQueryType("2"); + update_status.setListType("2"); + update_status.setViewType("2"); + update_status.setFiledLength("1"); + update_status.setCreate(); + update_status.setDataType("1"); + mdmModuleDbFiledsEntities.add(update_status); + } + + if ("1".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity delete_status = new MdmModuleDbFiledsEntity(); + delete_status.setMdmId(entity.getMdmId()); + delete_status.setDbId(entity.getId()); + delete_status.setEnName("delete_status"); + delete_status.setChName("删除数据状态 0待下发 1已下发"); + delete_status.setFiledType("3"); + delete_status.setAddType("2"); + delete_status.setUpdateType("2"); + delete_status.setShowType("2"); + delete_status.setQueryType("2"); + delete_status.setListType("2"); + delete_status.setViewType("2"); + delete_status.setFiledLength("1"); + delete_status.setCreate(); + delete_status.setDataType("1"); + mdmModuleDbFiledsEntities.add(delete_status); + } + + MdmModuleDbFiledsEntity sorts = new MdmModuleDbFiledsEntity(); + sorts.setMdmId(entity.getMdmId()); + sorts.setDbId(entity.getId()); + sorts.setEnName("sorts"); + sorts.setChName("排序"); + sorts.setFiledType("1"); + sorts.setAddType("2"); + sorts.setUpdateType("2"); + sorts.setShowType("2"); + sorts.setQueryType("2"); + sorts.setListType("2"); + sorts.setViewType("2"); + sorts.setFiledLength("20"); + sorts.setCreate(); + sorts.setDataType("1"); + mdmModuleDbFiledsEntities.add(sorts); + MdmModuleDbFiledsEntity create_user_id = new MdmModuleDbFiledsEntity(); + create_user_id.setMdmId(entity.getMdmId()); + create_user_id.setDbId(entity.getId()); + create_user_id.setEnName("create_user_id"); + create_user_id.setChName("创建人id"); + create_user_id.setFiledType("3"); + create_user_id.setAddType("2"); + create_user_id.setUpdateType("2"); + create_user_id.setShowType("2"); + create_user_id.setQueryType("2"); + create_user_id.setListType("2"); + create_user_id.setViewType("2"); + create_user_id.setFiledLength("50"); + create_user_id.setCreate(); + create_user_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(create_user_id); + MdmModuleDbFiledsEntity create_time = new MdmModuleDbFiledsEntity(); + create_time.setMdmId(entity.getMdmId()); + create_time.setDbId(entity.getId()); + create_time.setEnName("create_time"); + create_time.setChName("创建时间"); + create_time.setFiledType("4"); + create_time.setAddType("2"); + create_time.setUpdateType("2"); + create_time.setShowType("2"); + create_time.setQueryType("2"); + create_time.setListType("2"); + create_time.setViewType("2"); + create_time.setFiledLength(null); + create_time.setCreate(); + create_time.setDataType("1"); + mdmModuleDbFiledsEntities.add(create_time); + MdmModuleDbFiledsEntity modify_user_id = new MdmModuleDbFiledsEntity(); + modify_user_id.setMdmId(entity.getMdmId()); + modify_user_id.setDbId(entity.getId()); + modify_user_id.setEnName("modify_user_id"); + modify_user_id.setChName("修改人id"); + modify_user_id.setFiledType("3"); + modify_user_id.setAddType("2"); + modify_user_id.setUpdateType("2"); + modify_user_id.setShowType("2"); + modify_user_id.setQueryType("2"); + modify_user_id.setListType("2"); + modify_user_id.setViewType("2"); + modify_user_id.setFiledLength("50"); + modify_user_id.setCreate(); + modify_user_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(modify_user_id); + MdmModuleDbFiledsEntity modify_time = new MdmModuleDbFiledsEntity(); + modify_time.setMdmId(entity.getMdmId()); + modify_time.setDbId(entity.getId()); + modify_time.setEnName("modify_time"); + modify_time.setChName("修改时间"); + modify_time.setFiledType("4"); + modify_time.setAddType("2"); + modify_time.setUpdateType("2"); + modify_time.setShowType("2"); + modify_time.setQueryType("2"); + modify_time.setListType("2"); + modify_time.setViewType("2"); + modify_time.setFiledLength(null); + modify_time.setCreate(); + modify_time.setDataType("1"); + mdmModuleDbFiledsEntities.add(modify_time); + MdmModuleDbFiledsEntity sts = new MdmModuleDbFiledsEntity(); + sts.setMdmId(entity.getMdmId()); + sts.setDbId(entity.getId()); + sts.setEnName("sts"); + sts.setChName("状态(Y正常N删除)"); + sts.setFiledType("3"); + sts.setAddType("2"); + sts.setUpdateType("2"); + sts.setShowType("2"); + sts.setQueryType("2"); + sts.setListType("2"); + sts.setViewType("2"); + sts.setFiledLength("1"); + sts.setCreate(); + sts.setDataType("1"); + mdmModuleDbFiledsEntities.add(sts); + MdmModuleDbFiledsEntity org_id = new MdmModuleDbFiledsEntity(); + org_id.setMdmId(entity.getMdmId()); + org_id.setDbId(entity.getId()); + org_id.setEnName("org_id"); + org_id.setChName("组织机构ID"); + org_id.setFiledType("3"); + org_id.setAddType("2"); + org_id.setUpdateType("2"); + org_id.setShowType("2"); + org_id.setQueryType("2"); + org_id.setListType("2"); + org_id.setViewType("2"); + org_id.setFiledLength("50"); + org_id.setCreate(); + org_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(org_id); + MdmModuleDbFiledsEntity company_id = new MdmModuleDbFiledsEntity(); + company_id.setMdmId(entity.getMdmId()); + company_id.setDbId(entity.getId()); + company_id.setEnName("company_id"); + company_id.setChName("公司id"); + company_id.setFiledType("3"); + company_id.setAddType("2"); + company_id.setUpdateType("2"); + company_id.setShowType("2"); + company_id.setQueryType("2"); + company_id.setListType("2"); + company_id.setViewType("2"); + company_id.setFiledLength("50"); + company_id.setCreate(); + company_id.setDataType("1"); + mdmModuleDbFiledsEntities.add(company_id); + } + + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmDb(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbName() == null || "".equals(entity.getDbName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List mdmModuleDbEntities = new ArrayList<>(); + entity.setDataType("2"); + mdmModuleDbEntities.add(entity); + mdmServiceCache.saveOrUpdateMdmModuleDb(entity.getMdmId(), mdmModuleDbEntities); + Map tablename = new HashMap<>(); + tablename.put("tableName", entity.getDbName());//表名 + tablename.put("tableRemark", entity.getRemark());//表备注 + mdmModuleDao.alterTableName(tablename); + return BaseResult.getSuccessMessageEntity("修改数据源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表删除 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity deleteMdmDb(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbName() == null || "".equals(entity.getDbName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbType() == null || "".equals(entity.getDbType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + + MdmQuery mdmQuery = new MdmQuery(); + mdmQuery.setTableName(entity.getDbName()); + Integer count = mdmModuleDao.queryMainCount(mdmQuery); + if (count > 0) { + return BaseResult.getFailureMessageEntity(entity.getDbName() + "存在数据,不允许删除"); + } + MdmModuleDbFiledsRuleEntity queryCount = new MdmModuleDbFiledsRuleEntity(); + queryCount.setMdmId(entity.getMdmId()); + queryCount.setRuleCode("service"); + queryCount.setRuleValue(entity.getDbName()); + Integer counts = mdmModuleDbFiledsRuleDao.queryUserMdm(queryCount); + if (counts > 0) { + return BaseResult.getFailureMessageEntity(entity.getDbName() + "已被引用,不允许删除"); + } + + if ("1".equals(entity.getDbType())) { + //删除视图设置的字段 + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + + //删除显示信息 + MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); + mdmModuleViewEntity.setUpdate(); + mdmModuleViewEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDao.logicRemoveMultiCondition(mdmModuleViewEntity); + + //删除字段规则表 + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleEntity.setMdmId(entity.getMdmId()); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + //删除字段表 + mdmServiceCache.deleteMdmModuleDbFileds(entity.getMdmId(), null); + //删除设置的db,以及实体表 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbEntities1 = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntities1 != null && mdmModuleDbEntities1.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities1.size(); i++) { + Map maps = new HashMap<>(); + maps.put("tableName", mdmModuleDbEntities1.get(i).getDbName()); + mdmModuleDao.deleteTable(maps); + } + } + mdmServiceCache.deleteMdmModuleDb(entity.getMdmId(), null); + + //删除菜单和按钮,以及权限分配(用户权限和角色权限) + SysMenuConfigEntity sysMenuConfigEntity = new SysMenuConfigEntity(); + sysMenuConfigEntity.setFormId(entity.getMdmId()); + sysMenuConfigEntity.setSts("Y"); + List sysMenuConfigEntities = sysMenuConfigDao.queryBase(sysMenuConfigEntity); + if (sysMenuConfigEntities != null && sysMenuConfigEntities.size() > 0) { + for (int i = 0; i < sysMenuConfigEntities.size(); i++) { + SysButtonConfigEntity sysButtonConfigEntity = new SysButtonConfigEntity(); + sysButtonConfigEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysButtonConfigEntity.setSts("Y"); + sysButtonConfigEntity.setUpdate(); + sysButtonConfigDao.logicRemoveMultiCondition(sysButtonConfigEntity); + + SysPopedomOperateEntity sysPopedomOperateEntity = new SysPopedomOperateEntity(); + sysPopedomOperateEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysPopedomOperateEntity.setSts("Y"); + sysPopedomOperateEntity.setUpdate(); + sysPopedomOperateDao.logicRemoveMultiCondition(sysPopedomOperateEntity); + + SysPopedomMenuEntity sysPopedomMenuEntity = new SysPopedomMenuEntity(); + sysPopedomMenuEntity.setMenuId(sysMenuConfigEntities.get(i).getId()); + sysPopedomMenuEntity.setSts("Y"); + sysPopedomMenuEntity.setUpdate(); + sysPopedomMenuDao.logicRemoveMultiCondition(sysPopedomMenuEntity); + sysMenuConfigEntities.get(i).setUpdate(); + sysMenuConfigDao.logicRemoveMultiCondition(sysMenuConfigEntities.get(i)); + } + } + } + + if ("2".equals(entity.getDbType())) { + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setDbId(entity.getId()); + List mdmModuleDbFiledsEntities = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) { + //删除视图设置的字段 + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewFiled(mdmModuleDbFiledsEntities.get(i).getId()); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + } + } + //删除字段规则表 + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleEntity.setMdmId(entity.getMdmId()); + mdmModuleDbFiledsRuleEntity.setDbId(entity.getId()); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + //删除字段表 + mdmServiceCache.deleteMdmModuleDbFileds(entity.getMdmId(), entity.getId()); + //删除设置的db,以及实体表 + + Map maps = new HashMap<>(); + maps.put("tableName", entity.getDbName()); + mdmModuleDao.deleteTable(maps); + mdmServiceCache.deleteMdmModuleDb(entity.getMdmId(), entity.getId()); + } + + return BaseResult.getSuccessMessageEntity("删除成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDbField(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbFiledsEntity queryEntity = new MdmModuleDbFiledsEntity(); + queryEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(queryEntity); + List dbEntities = new ArrayList<>(); + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) { + if (entity.getDbId().equals(mdmModuleDbFiledsEntities.get(i).getDbId()) && "1".equals(mdmModuleDbFiledsEntities.get(i).getViewType())) { + dbEntities.add(mdmModuleDbFiledsEntities.get(i)); + MdmModuleDbFiledsRuleEntity ruleEntity = new MdmModuleDbFiledsRuleEntity(); + ruleEntity.setMdmId(mdmModuleDbFiledsEntities.get(i).getMdmId()); + ruleEntity.setFiledId(mdmModuleDbFiledsEntities.get(i).getId()); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(ruleEntity); + mdmModuleDbFiledsEntities.get(i).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRuleEntities); + } + } + } + return BaseResult.getSuccessMessageEntity("获取数据源表字段成功", dbEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段明细 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDbFieldDetail(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbFiledsEntity queryEntity = new MdmModuleDbFiledsEntity(); + queryEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(queryEntity); + List dbEntities = new ArrayList<>(); + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) { + if (entity.getId().equals(mdmModuleDbFiledsEntities.get(i).getId())) { + entity = mdmModuleDbFiledsEntities.get(i); + MdmModuleDbFiledsRuleEntity ruleEntity = new MdmModuleDbFiledsRuleEntity(); + ruleEntity.setMdmId(entity.getMdmId()); + ruleEntity.setFiledId(entity.getId()); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(ruleEntity); + entity.setMdmModuleDbFiledsRules(mdmModuleDbFiledsRuleEntities); + } + } + } + return BaseResult.getSuccessMessageEntity("获取数据源表字段成功", entity); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段新增 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdmDbField(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbName() == null || "".equals(entity.getDbName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getEnName() == null || "".equals(entity.getEnName())) { + return BaseResult.getFailureMessageEntity("请输入中文名称"); + } + if (entity.getChName() == null || "".equals(entity.getChName())) { + return BaseResult.getFailureMessageEntity("请输入英文名称"); + } + if (entity.getFiledType() == null || "".equals(entity.getChName())) { + return BaseResult.getFailureMessageEntity("请选择字段类型"); + } + if (entity.getDbType() == null || "".equals(entity.getDbType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setMdmId(entity.getMdmId()); + mdmModuleDbFiledsEntity.setSts("Y"); + List mdmModuleDbFiledsEntityList = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { + for (int i = 0; i < mdmModuleDbFiledsEntityList.size(); i++) { + if (entity.getDbId().equals(mdmModuleDbFiledsEntityList.get(i).getDbId()) && entity.getEnName().equals(mdmModuleDbFiledsEntityList.get(i).getEnName())) { + return BaseResult.getFailureMessageEntity("字段已存在,请修改"); + } + } + } + entity.setCreate(); + if ("1".equals(entity.getDbType())) { + entity.setAddType("1"); + entity.setUpdateType("1"); + entity.setShowType("1"); + entity.setQueryType("1"); + entity.setListType("1"); + entity.setViewType("1"); + } else { + entity.setAddType("1"); + entity.setUpdateType("1"); + entity.setShowType("1"); + entity.setQueryType("1"); + entity.setListType("2"); + entity.setViewType("1"); + } + entity.setDataType("1"); + List mdmModuleDbFiledsEntities = new ArrayList<>(); + mdmModuleDbFiledsEntities.add(entity); + mdmServiceCache.saveOrUpdateMdmModuleDbFileds(entity.getMdmId(), mdmModuleDbFiledsEntities); + + if (entity.getMdmModuleDbFiledsRules() != null && entity.getMdmModuleDbFiledsRules().size() > 0) { + for (int i = 0; i < entity.getMdmModuleDbFiledsRules().size(); i++) { + entity.getMdmModuleDbFiledsRules().get(i).setDbId(entity.getDbId()); + entity.getMdmModuleDbFiledsRules().get(i).setMdmId(entity.getMdmId()); + entity.getMdmModuleDbFiledsRules().get(i).setFiledId(entity.getId()); + entity.getMdmModuleDbFiledsRules().get(i).setSts("Y"); + entity.getMdmModuleDbFiledsRules().get(i).setCreate(); + mdmModuleDbFiledsRuleDao.save(entity.getMdmModuleDbFiledsRules().get(i)); + } + } + + mdmModuleDao.alterTableField(entity); + return BaseResult.getSuccessMessageEntity("新增字段成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmDbField(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbName() == null || "".equals(entity.getDbName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getEnName() == null || "".equals(entity.getEnName())) { + return BaseResult.getFailureMessageEntity("请输入中文名称"); + } + if (entity.getChName() == null || "".equals(entity.getChName())) { + return BaseResult.getFailureMessageEntity("请输入英文名称"); + } + if (entity.getFiledType() == null || "".equals(entity.getChName())) { + return BaseResult.getFailureMessageEntity("请选择字段类型"); + } + entity.setUpdate(); + entity.setDataType("2"); + try { + mdmModuleDao.alterTableField(entity); + } catch (Exception e) { + throw new BaseSystemException("表字段类型,修改失败,请联系管理员"); + } + List mdmModuleDbFiledsEntities = new ArrayList<>(); + mdmModuleDbFiledsEntities.add(entity); + mdmServiceCache.saveOrUpdateMdmModuleDbFileds(entity.getMdmId(), mdmModuleDbFiledsEntities); + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setFiledId(entity.getId()); + mdmModuleDbFiledsRuleEntity.setSts("Y"); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + if (entity.getMdmModuleDbFiledsRules() != null && entity.getMdmModuleDbFiledsRules().size() > 0) { + for (int i = 0; i < entity.getMdmModuleDbFiledsRules().size(); i++) { + entity.getMdmModuleDbFiledsRules().get(i).setDbId(entity.getDbId()); + entity.getMdmModuleDbFiledsRules().get(i).setMdmId(entity.getMdmId()); + entity.getMdmModuleDbFiledsRules().get(i).setFiledId(entity.getId()); + entity.getMdmModuleDbFiledsRules().get(i).setSts("Y"); + if (entity.getMdmModuleDbFiledsRules().get(i).getId() != null) { + entity.getMdmModuleDbFiledsRules().get(i).setUpdate(); + mdmModuleDbFiledsRuleDao.update(entity.getMdmModuleDbFiledsRules().get(i)); + } else { + entity.getMdmModuleDbFiledsRules().get(i).setCreate(); + mdmModuleDbFiledsRuleDao.save(entity.getMdmModuleDbFiledsRules().get(i)); + } + } + } + //try { + // mdmModuleDao.alterTableField(entity); + //} catch (Exception e){ + // throw new BaseSystemException("表字段类型,修改失败,请联系管理员"); + //} + return BaseResult.getSuccessMessageEntity("修改字段成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段删除 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity deleteMdmDbField(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbName() == null || "".equals(entity.getDbName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getEnName() == null || "".equals(entity.getEnName())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getFiledType() == null || "".equals(entity.getFiledType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbFiledsRuleEntity queryCount = new MdmModuleDbFiledsRuleEntity(); + queryCount.setDbId(entity.getDbId()); + queryCount.setRuleCode("label"); + queryCount.setRuleValue(entity.getEnName()); + Integer counts = mdmModuleDbFiledsRuleDao.queryUserMdm(queryCount); + if (counts > 0) { + return BaseResult.getFailureMessageEntity(entity.getEnName() + "已被引用,不允许删除"); + } + MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); + mdmModuleViewEntity.setMdmId(entity.getMdmId()); + mdmModuleViewEntity.setViewFiled(entity.getId()); + mdmModuleViewEntity.setUpIdFiled(entity.getId()); + Integer countss = mdmModuleViewDao.queryUserMdm(mdmModuleViewEntity); + if (countss > 0) { + return BaseResult.getFailureMessageEntity(entity.getEnName() + "已被显示引用,不允许删除"); + } + entity.setUpdate(); + entity.setDataType("3"); + List mdmModuleDbFiledsEntities = new ArrayList<>(); + mdmModuleDbFiledsEntities.add(entity); + mdmServiceCache.saveOrUpdateMdmModuleDbFileds(entity.getMdmId(), mdmModuleDbFiledsEntities); + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setFiledId(entity.getId()); + mdmModuleDbFiledsRuleEntity.setSts("Y"); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setViewFiled(entity.getId()); + mdmModuleViewDetailEntity.setSts("Y"); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + mdmModuleDao.alterTableField(entity); + return BaseResult.getSuccessMessageEntity("删除字段成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段规则获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDbFieldRule(JSONObject object) { + MdmModuleDbFiledsRuleEntity entity = getData("jsonStr", object, MdmModuleDbFiledsRuleEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getFiledId() == null || "".equals(entity.getFiledId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(entity); + return BaseResult.getSuccessMessageEntity("获取数据源表字段规则成功", mdmModuleDbFiledsRuleEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-数据表字段规则修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmDbFieldRule(JSONObject object) { + + MdmDto entity = getData("jsonStr", object, MdmDto.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getFieldId() == null || "".equals(entity.getFieldId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmModuleDbFiledsRuleEntities() == null || entity.getMdmModuleDbFiledsRuleEntities().size() == 0) { + return BaseResult.getFailureMessageEntity("请先设置字段规则"); + } + + MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + mdmModuleDbFiledsRuleEntity.setFiledId(entity.getFieldId()); + mdmModuleDbFiledsRuleEntity.setSts("Y"); + mdmModuleDbFiledsRuleEntity.setUpdate(); + mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + if (entity.getMdmModuleDbFiledsRuleEntities() != null && entity.getMdmModuleDbFiledsRuleEntities().size() > 0) { + for (int i = 0; i < entity.getMdmModuleDbFiledsRuleEntities().size(); i++) { + entity.getMdmModuleDbFiledsRuleEntities().get(i).setDbId(entity.getDbId()); + entity.getMdmModuleDbFiledsRuleEntities().get(i).setMdmId(entity.getId()); + entity.getMdmModuleDbFiledsRuleEntities().get(i).setFiledId(entity.getFieldId()); + entity.getMdmModuleDbFiledsRuleEntities().get(i).setSts("Y"); + if (entity.getMdmModuleDbFiledsRuleEntities().get(i).getId() != null) { + entity.getMdmModuleDbFiledsRuleEntities().get(i).setUpdate(); + mdmModuleDbFiledsRuleDao.update(entity.getMdmModuleDbFiledsRuleEntities().get(i)); + } else { + entity.getMdmModuleDbFiledsRuleEntities().get(i).setCreate(); + mdmModuleDbFiledsRuleDao.save(entity.getMdmModuleDbFiledsRuleEntities().get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("保存字段规则成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示类型获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmView(JSONObject object) { + MdmModuleViewEntity entity = getData("jsonStr", object, MdmModuleViewEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List moduleViewEntities = mdmModuleViewDao.queryBase(entity); + + if (moduleViewEntities == null || moduleViewEntities.size() == 0) { + return BaseResult.getSuccessMessageEntity("获取显示类型成功"); + } else if (moduleViewEntities != null && moduleViewEntities.size() > 1) { + return BaseResult.getFailureMessageEntity("获取显示类型失败"); + } else { + return BaseResult.getSuccessMessageEntity("获取显示类型成功", moduleViewEntities.get(0)); + } + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示类型保存 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdmView(JSONObject object) { + MdmModuleViewEntity entity = getData("jsonStr", object, MdmModuleViewEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmModuleDao.get(entity.getMdmId()); + + entity.setCreate(); + mdmModuleViewDao.save(entity); + SysMenuConfigEntity module = new SysMenuConfigEntity(); + module.setCreate(); + module.setFormId(mdmModuleEntity.getId()); + if ("1".equals(mdmModuleEntity.getMdmType())) { + //1、档案 + module.setParentMenuId("ea22757e99c144fb9ef381dd322e233c"); + } else { + //2、单据 + module.setParentMenuId("67f82a6e7f664c5a89b7fc7b8fc817b0"); + } + module.setMenuName(mdmModuleEntity.getMdmName()); + module.setMenuEnglishName("integrationOptionAdmin" + mdmModuleEntity.getMdmCode()); + module.setMenuIcon(null);//模块图标 + module.setRoute("integrationOptionAdmin/" + mdmModuleEntity.getMdmCode());//路由地址 + module.setMenuPage("integrationOptionV2/index");//一级Layout 二级 ParntView 三级component + module.setRemark("主数据生成菜单"); + module.setVisibles("0"); + module.setShowType("1"); + JSONObject object1 = new JSONObject(); + object1.put("mdmId", mdmModuleEntity.getId());//主数据id + object1.put("mdmCode", mdmModuleEntity.getMdmCode());//主数据编码 + object1.put("viewType", entity.getViewName());//1、树 2、列表 + module.setOptions(object1.toString());//菜单mate参数 + sysMenuConfigDao.save(module); + SysButtonConfigEntity buttonConfigEntity = new SysButtonConfigEntity(); + buttonConfigEntity.setMenuId(module.getId()); + buttonConfigEntity.setSts("Y"); + List sysButtonConfigEntities = sysButtonConfigDao.queryBase(buttonConfigEntity); + //1、查询按钮权限 + SysPopedomOperateEntity sysPopedomOperateEntity = new SysPopedomOperateEntity(); + sysPopedomOperateEntity.setMenuId(module.getId()); + sysPopedomOperateEntity.setSts("Y"); + List sysPopedomOperateEntities = sysPopedomOperateDao.queryBase(sysPopedomOperateEntity); + //删除按钮和删除按钮权限 + sysButtonConfigDao.logicRemoveMultiCondition(buttonConfigEntity); + sysPopedomOperateDao.logicRemoveMultiCondition(sysPopedomOperateEntity); + MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity(); + mdmModuleViewButtonEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewButtonEntity.setSts("Y"); + List mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(mdmModuleViewButtonEntity); + + //删除处理权限 + doMdmModuleButton(module, mdmModuleViewButtonEntities, sysButtonConfigEntities, sysPopedomOperateEntities); + return BaseResult.getSuccessMessageEntity("保存显示类型成功"); + + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示类型修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmView(JSONObject object) { + MdmModuleViewEntity entity = getData("jsonStr", object, MdmModuleViewEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmModuleDao.get(entity.getMdmId()); + + entity.setUpdate(); + mdmModuleViewDao.update(entity); + SysMenuConfigEntity module = new SysMenuConfigEntity(); + module.setFormId(mdmModuleEntity.getId()); + List sysMenuConfigEntities = sysMenuConfigDao.queryBase(module); + + if (sysMenuConfigEntities != null && sysMenuConfigEntities.size() == 1) { + module = sysMenuConfigEntities.get(0); + module.setUpdate(); + module.setFormId(mdmModuleEntity.getId()); + if ("1".equals(mdmModuleEntity.getMdmType())) { + //1、档案 + module.setParentMenuId("ea22757e99c144fb9ef381dd322e233c"); + } else { + //2、单据 + module.setParentMenuId("67f82a6e7f664c5a89b7fc7b8fc817b0"); + } + module.setMenuName(mdmModuleEntity.getMdmName()); + module.setMenuEnglishName("integrationOptionAdmin" + mdmModuleEntity.getMdmCode()); + module.setMenuIcon(null);//模块图标 + module.setRoute("integrationOptionAdmin/" + mdmModuleEntity.getMdmCode());//路由地址 + module.setMenuPage("integrationOptionV2/index");//一级Layout 二级 ParntView 三级component + module.setRemark("主数据生成菜单"); + module.setVisibles("0"); + module.setShowType("1"); + JSONObject object1 = new JSONObject(); + object1.put("mdmId", mdmModuleEntity.getId());//主数据id + object1.put("mdmCode", mdmModuleEntity.getMdmCode());//主数据编码 + object1.put("viewType", entity.getViewName());//1、树 2、列表 + module.setOptions(object1.toString());//菜单mate参数 + sysMenuConfigDao.update(module); + SysButtonConfigEntity buttonConfigEntity = new SysButtonConfigEntity(); + buttonConfigEntity.setMenuId(module.getId()); + buttonConfigEntity.setSts("Y"); + List sysButtonConfigEntities = sysButtonConfigDao.queryBase(buttonConfigEntity); + //1、查询按钮权限 + SysPopedomOperateEntity sysPopedomOperateEntity = new SysPopedomOperateEntity(); + sysPopedomOperateEntity.setMenuId(module.getId()); + sysPopedomOperateEntity.setSts("Y"); + List sysPopedomOperateEntities = sysPopedomOperateDao.queryBase(sysPopedomOperateEntity); + //删除按钮和删除按钮权限 + sysButtonConfigDao.logicRemoveMultiCondition(buttonConfigEntity); + sysPopedomOperateDao.logicRemoveMultiCondition(sysPopedomOperateEntity); + MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity(); + mdmModuleViewButtonEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewButtonEntity.setSts("Y"); + List mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(mdmModuleViewButtonEntity); + + //删除处理权限 + doMdmModuleButton(module, mdmModuleViewButtonEntities, sysButtonConfigEntities, sysPopedomOperateEntities); + } + return BaseResult.getSuccessMessageEntity("修改显示类型成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示字段获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmViewField(JSONObject object) { + MdmDto entity = getData("jsonStr", object, MdmDto.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleViewVo mdmModuleViewVo = new MdmModuleViewVo(); + //查询设置各种类型字段 + //查询模版数据源 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(entity.getId()); + mdmModuleDbEntity.setSts("Y"); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setMdmId(entity.getId()); + mdmModuleDbFiledsEntity.setSts("Y"); + List mdmModuleDbFiledsEntityList = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + setFiledType(mdmModuleViewVo, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList); + } + mdmModuleViewVo.setDbAddFiled(new ArrayList<>()); + mdmModuleViewVo.setDbEditFiled(new ArrayList<>()); + mdmModuleViewVo.setDbShowFiled(new ArrayList<>()); + mdmModuleViewVo.setDbQueryFiled(new ArrayList<>()); + mdmModuleViewVo.setDbListFiled(new ArrayList<>()); + + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getId()); + mdmModuleViewDetailEntity.setSts("Y"); + List mdmModuleViewDetailEntityList = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); + setDbFiledType(mdmModuleViewVo, mdmModuleViewDetailEntityList); + + + return BaseResult.getSuccessMessageEntity("查询视图成功", mdmModuleViewVo); + } + + private void setDbFiledType(MdmModuleViewVo mdmModuleViewVo, List mdmModuleViewDetailEntityList) { + //新增 + List addFiled = new ArrayList<>(); + //修改 + List editFiled = new ArrayList<>(); + //查看 + List showFiled = new ArrayList<>(); + //查询 + List queryFiled = new ArrayList<>(); + //列表 + List listFiled = new ArrayList<>(); + if (mdmModuleViewDetailEntityList != null && mdmModuleViewDetailEntityList.size() > 0) { + for (int i = 0; i < mdmModuleViewDetailEntityList.size(); i++) { + switch (mdmModuleViewDetailEntityList.get(i).getViewType()) { + //1、查询2、列表3、新增4、修改 5、查看 + case "1": + if (mdmModuleViewVo.getQueryFiled() != null && mdmModuleViewVo.getQueryFiled().size() > 0) { + for (int i1 = 0; i1 < mdmModuleViewVo.getQueryFiled().size(); i1++) { + if (mdmModuleViewVo.getQueryFiled().get(i1).getId().equals(mdmModuleViewDetailEntityList.get(i).getViewFiled())) { + mdmModuleViewDetailEntityList.get(i).setViewName(mdmModuleViewVo.getQueryFiled().get(i1).getName()); + queryFiled.add(mdmModuleViewDetailEntityList.get(i)); + } + } + } + break; + case "2": + if (mdmModuleViewVo.getListFiled() != null && mdmModuleViewVo.getListFiled().size() > 0) { + for (int i1 = 0; i1 < mdmModuleViewVo.getListFiled().size(); i1++) { + if (mdmModuleViewVo.getListFiled().get(i1).getId().equals(mdmModuleViewDetailEntityList.get(i).getViewFiled())) { + mdmModuleViewDetailEntityList.get(i).setViewName(mdmModuleViewVo.getListFiled().get(i1).getName()); + listFiled.add(mdmModuleViewDetailEntityList.get(i)); + } + } + } + break; + case "3": + if (mdmModuleViewVo.getAddFiled() != null && mdmModuleViewVo.getAddFiled().size() > 0) { + for (int i1 = 0; i1 < mdmModuleViewVo.getAddFiled().size(); i1++) { + if (mdmModuleViewVo.getAddFiled().get(i1).getId().equals(mdmModuleViewDetailEntityList.get(i).getViewFiled())) { + mdmModuleViewDetailEntityList.get(i).setViewName(mdmModuleViewVo.getAddFiled().get(i1).getName()); + addFiled.add(mdmModuleViewDetailEntityList.get(i)); + } + } + } + break; + case "4": + if (mdmModuleViewVo.getEditFiled() != null && mdmModuleViewVo.getEditFiled().size() > 0) { + for (int i1 = 0; i1 < mdmModuleViewVo.getEditFiled().size(); i1++) { + if (mdmModuleViewVo.getEditFiled().get(i1).getId().equals(mdmModuleViewDetailEntityList.get(i).getViewFiled())) { + mdmModuleViewDetailEntityList.get(i).setViewName(mdmModuleViewVo.getEditFiled().get(i1).getName()); + editFiled.add(mdmModuleViewDetailEntityList.get(i)); + } + } + } + break; + case "5": + if (mdmModuleViewVo.getShowFiled() != null && mdmModuleViewVo.getShowFiled().size() > 0) { + for (int i1 = 0; i1 < mdmModuleViewVo.getShowFiled().size(); i1++) { + if (mdmModuleViewVo.getShowFiled().get(i1).getId().equals(mdmModuleViewDetailEntityList.get(i).getViewFiled())) { + mdmModuleViewDetailEntityList.get(i).setViewName(mdmModuleViewVo.getShowFiled().get(i1).getName()); + showFiled.add(mdmModuleViewDetailEntityList.get(i)); + } + } + } + break; + default: + } + } + } + mdmModuleViewVo.setDbAddFiled(addFiled); + mdmModuleViewVo.setDbEditFiled(editFiled); + mdmModuleViewVo.setDbShowFiled(showFiled); + mdmModuleViewVo.setDbQueryFiled(queryFiled); + mdmModuleViewVo.setDbListFiled(listFiled); + } + + /** + * @param mdmModuleViewVo + * @param mdmModuleDbEntityList + * @param mdmModuleDbFiledsEntityList + * @return void + * @Author lvleigang + * @Description 设置对应的字段类型 + * @Date 2023/10/25 + **/ + private void setFiledType(MdmModuleViewVo mdmModuleViewVo, List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList) { + //新增 + List addFiled = new ArrayList<>(); + //修改 + List editFiled = new ArrayList<>(); + //查看 + List showFiled = new ArrayList<>(); + //查询 + List queryFiled = new ArrayList<>(); + //列表 + List listFiled = new ArrayList<>(); + if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("3".equals(mdmModuleDbEntityList.get(i).getDbType()) || "4".equals(mdmModuleDbEntityList.get(i).getDbType())) { + continue; + } + if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { + + for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { + if ("document_rule".equals(mdmModuleDbFiledsEntityList.get(i1).getEnName())) { + continue; + } + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + //1、主表 + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getAddType())) { + addFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getUpdateType())) { + editFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getShowType())) { + showFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getQueryType())) { + queryFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getListType())) { + listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + } else { + //2、明细 + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getQueryType())) { + queryFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getAddType())) { + addFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getUpdateType())) { + editFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + if ("1".equals(mdmModuleDbFiledsEntityList.get(i1).getShowType())) { + showFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } + } + } + } + } + } + } + mdmModuleViewVo.setAddFiled(addFiled); + mdmModuleViewVo.setEditFiled(editFiled); + mdmModuleViewVo.setShowFiled(showFiled); + mdmModuleViewVo.setQueryFiled(queryFiled); + mdmModuleViewVo.setListFiled(listFiled); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示字段设置保存 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveOrUpdateMdmViewField(JSONObject object) { + MdmModuleViewVo entity = getData("jsonStr", object, MdmModuleViewVo.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getViewType() == null || "".equals(entity.getViewType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + //1、查询2、列表3、新增4、修改 5、查看 + if ("1".equals(entity.getViewType())) { + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewType(entity.getViewType()); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + if (entity.getDbQueryFiled() != null && entity.getDbQueryFiled().size() > 0) { + for (int i = 0; i < entity.getDbQueryFiled().size(); i++) { + entity.getDbQueryFiled().get(i).setViewType(entity.getViewType()); + entity.getDbQueryFiled().get(i).setMdmId(entity.getMdmId()); + entity.getDbQueryFiled().get(i).setCreate(); + mdmModuleViewDetailDao.save(entity.getDbQueryFiled().get(i)); + } + } + + } else if ("2".equals(entity.getViewType())) { + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewType(entity.getViewType()); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + if (entity.getDbListFiled() != null && entity.getDbListFiled().size() > 0) { + for (int i = 0; i < entity.getDbListFiled().size(); i++) { + entity.getDbListFiled().get(i).setMdmId(entity.getMdmId()); + entity.getDbListFiled().get(i).setViewType(entity.getViewType()); + entity.getDbListFiled().get(i).setCreate(); + mdmModuleViewDetailDao.save(entity.getDbListFiled().get(i)); + } + } + + } else if ("3".equals(entity.getViewType())) { + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewType(entity.getViewType()); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + if (entity.getDbAddFiled() != null && entity.getDbAddFiled().size() > 0) { + for (int i = 0; i < entity.getDbAddFiled().size(); i++) { + entity.getDbAddFiled().get(i).setMdmId(entity.getMdmId()); + entity.getDbAddFiled().get(i).setViewType(entity.getViewType()); + entity.getDbAddFiled().get(i).setCreate(); + mdmModuleViewDetailDao.save(entity.getDbAddFiled().get(i)); + } + } + + } else if ("4".equals(entity.getViewType())) { + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewType(entity.getViewType()); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + if (entity.getDbEditFiled() != null && entity.getDbEditFiled().size() > 0) { + for (int i = 0; i < entity.getDbEditFiled().size(); i++) { + entity.getDbEditFiled().get(i).setMdmId(entity.getMdmId()); + entity.getDbEditFiled().get(i).setViewType(entity.getViewType()); + entity.getDbEditFiled().get(i).setCreate(); + mdmModuleViewDetailDao.save(entity.getDbEditFiled().get(i)); + } + } + + } else if ("5".equals(entity.getViewType())) { + MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + mdmModuleViewDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleViewDetailEntity.setViewType(entity.getViewType()); + mdmModuleViewDetailEntity.setUpdate(); + mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + if (entity.getDbShowFiled() != null && entity.getDbShowFiled().size() > 0) { + for (int i = 0; i < entity.getDbShowFiled().size(); i++) { + entity.getDbShowFiled().get(i).setMdmId(entity.getMdmId()); + entity.getDbShowFiled().get(i).setViewType(entity.getViewType()); + entity.getDbShowFiled().get(i).setCreate(); + mdmModuleViewDetailDao.save(entity.getDbShowFiled().get(i)); + } + } + + } + return BaseResult.getSuccessMessageEntity("修改成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示按钮获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmViewButton(JSONObject object) { + MdmModuleViewButtonEntity entity = getData("jsonStr", object, MdmModuleViewButtonEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List moduleViewButtonEntities = mdmModuleViewButtonDao.queryBase(entity); + return BaseResult.getSuccessMessageEntity("获取显示按钮成功", moduleViewButtonEntities); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-显示信息-显示按钮保存 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveOrUpdateMdmViewButton(JSONObject object) { + MdmModuleViewVo entity = getData("jsonStr", object, MdmModuleViewVo.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + + MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity(); + mdmModuleViewButtonEntity.setMdmId(entity.getMdmId()); + mdmModuleViewButtonEntity.setUpdate(); + mdmModuleViewButtonDao.logicRemoveMultiCondition(mdmModuleViewButtonEntity); + if (entity.getDbButtonFiled() != null && entity.getDbButtonFiled().size() > 0) { + for (int i = 0; i < entity.getDbButtonFiled().size(); i++) { + entity.getDbButtonFiled().get(i).setMdmId(entity.getMdmId()); + if (entity.getDbButtonFiled().get(i).getId() != null) { + entity.getDbButtonFiled().get(i).setUpdate(); + mdmModuleViewButtonDao.update(entity.getDbButtonFiled().get(i)); + } else { + entity.getDbButtonFiled().get(i).setCreate(); + mdmModuleViewButtonDao.save(entity.getDbButtonFiled().get(i)); + } + } + } + MdmModuleEntity mdmModuleEntity = mdmModuleDao.get(entity.getMdmId()); + SysMenuConfigEntity module = new SysMenuConfigEntity(); + module.setFormId(mdmModuleEntity.getId()); + List sysMenuConfigEntities = sysMenuConfigDao.queryBase(module); + if (sysMenuConfigEntities != null && sysMenuConfigEntities.size() == 1) { + module = sysMenuConfigEntities.get(0); + SysButtonConfigEntity buttonConfigEntity = new SysButtonConfigEntity(); + buttonConfigEntity.setMenuId(module.getId()); + buttonConfigEntity.setSts("Y"); + List sysButtonConfigEntities = sysButtonConfigDao.queryBase(buttonConfigEntity); + //1、查询按钮权限 + SysPopedomOperateEntity sysPopedomOperateEntity = new SysPopedomOperateEntity(); + sysPopedomOperateEntity.setMenuId(module.getId()); + sysPopedomOperateEntity.setSts("Y"); + List sysPopedomOperateEntities = sysPopedomOperateDao.queryBase(sysPopedomOperateEntity); + //删除按钮和删除按钮权限 + sysButtonConfigDao.logicRemoveMultiCondition(buttonConfigEntity); + sysPopedomOperateDao.logicRemoveMultiCondition(sysPopedomOperateEntity); + //删除处理权限 + doMdmModuleButton(module, entity.getDbButtonFiled(), sysButtonConfigEntities, sysPopedomOperateEntities); + } + return BaseResult.getSuccessMessageEntity("修改显示按钮成功"); + } + + /** + * @param module 菜单 + * @param mdmModuleViewButtonEntities 主数据按钮 + * @param sysButtonConfigEntities 菜单按钮 + * @param sysPopedomOperateEntities 按钮权限 + * @return void + * @Author lvleigang + * @Description + * @Date 3:29 下午 2024/6/4 + **/ + private void doMdmModuleButton(SysMenuConfigEntity module, List mdmModuleViewButtonEntities, List sysButtonConfigEntities, List sysPopedomOperateEntities) { + //循环设置的按钮,再循环菜单的按钮,如果有把原先的修改状态,如果没有新增 + if (mdmModuleViewButtonEntities != null && mdmModuleViewButtonEntities.size() > 0) { + for (int i = 0; i < mdmModuleViewButtonEntities.size(); i++) { + boolean flag = false; + if (sysButtonConfigEntities != null && sysButtonConfigEntities.size() > 0) { + for (int i1 = 0; i1 < sysButtonConfigEntities.size(); i1++) { + if (mdmModuleViewButtonEntities.get(i).getButtonValue().equals(sysButtonConfigEntities.get(i1).getCode())) { + flag = true; + sysButtonConfigEntities.get(i1).setSts("Y"); + sysButtonConfigEntities.get(i1).setUpdate(); + sysButtonConfigEntities.get(i1).setSorts(i + 1L); + sysButtonConfigDao.update(sysButtonConfigEntities.get(i1)); + if (sysPopedomOperateEntities != null && sysPopedomOperateEntities.size() > 0) { + for (int i2 = 0; i2 < sysPopedomOperateEntities.size(); i2++) { + if (sysPopedomOperateEntities.get(i2).getOperate().equals(sysButtonConfigEntities.get(i1).getId())) { + sysPopedomOperateEntities.get(i2).setSts("Y"); + sysPopedomOperateEntities.get(i2).setUpdate(); + sysPopedomOperateDao.update(sysPopedomOperateEntities.get(i2)); + } + } + } + break; + } + } + } + //原先没有需要新增 + if (!flag) { + if ("new".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + SysButtonConfigEntity xz = new SysButtonConfigEntity(); + xz.setCode("new"); + xz.setNameCh("新建"); + xz.setNameEn("new"); + xz.setMenuId(module.getId()); + xz.setIconName(""); + xz.setStyles(""); + xz.setBtnFunction("new"); + xz.setRemark("主数据新建按钮"); + xz.setSorts(i + 1L); + xz.setCreate(); + sysButtonConfigDao.save(xz); + } + if ("resize".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + + SysButtonConfigEntity cz = new SysButtonConfigEntity(); + cz.setCode("resize"); + cz.setNameCh("重置"); + cz.setNameEn("resize"); + cz.setMenuId(module.getId()); + cz.setIconName(""); + cz.setStyles(""); + cz.setBtnFunction("resize"); + cz.setRemark("主数据重置按钮"); + cz.setSorts(i + 1L); + + cz.setCreate(); + sysButtonConfigDao.save(cz); + } + if ("search".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + + SysButtonConfigEntity cx = new SysButtonConfigEntity(); + cx.setCode("search"); + cx.setNameCh("查询"); + cx.setNameEn("search"); + cx.setMenuId(module.getId()); + cx.setIconName(""); + cx.setStyles(""); + cx.setBtnFunction("search"); + cx.setRemark("主数据查询按钮"); + cx.setSorts(i + 1L); + cx.setCreate(); + sysButtonConfigDao.save(cx); + } + if ("edit".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + + SysButtonConfigEntity xg = new SysButtonConfigEntity(); + xg.setCode("edit"); + xg.setNameCh("修改"); + xg.setNameEn("edit"); + xg.setMenuId(module.getId()); + xg.setIconName(""); + xg.setStyles(""); + xg.setBtnFunction("edit"); + xg.setRemark("主数据修改按钮"); + xg.setSorts(i + 1L); + xg.setCreate(); + sysButtonConfigDao.save(xg); + } + if ("dele".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + + SysButtonConfigEntity sc = new SysButtonConfigEntity(); + sc.setCode("dele"); + sc.setNameCh("删除"); + sc.setNameEn("dele"); + sc.setMenuId(module.getId()); + sc.setIconName(""); + sc.setStyles(""); + sc.setBtnFunction("dele"); + sc.setRemark("主数据删除按钮"); + sc.setSorts(i + 1L); + sc.setCreate(); + sysButtonConfigDao.save(sc); + } + if ("view".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + + SysButtonConfigEntity ck = new SysButtonConfigEntity(); + ck.setCode("view"); + ck.setNameCh("查看"); + ck.setNameEn("view"); + ck.setMenuId(module.getId()); + ck.setIconName(""); + ck.setStyles(""); + ck.setBtnFunction("view"); + ck.setRemark("主数据查看按钮"); + ck.setSorts(i + 1L); + ck.setCreate(); + sysButtonConfigDao.save(ck); + } + if ("send".equals(mdmModuleViewButtonEntities.get(i).getButtonValue())) { + SysButtonConfigEntity xf = new SysButtonConfigEntity(); + xf.setCode("send"); + xf.setNameCh("下发"); + xf.setNameEn("send"); + xf.setMenuId(module.getId()); + xf.setIconName(""); + xf.setStyles(""); + xf.setBtnFunction("send"); + xf.setRemark("主数据下发按钮"); + xf.setSorts(i + 1L); + xf.setCreate(); + sysButtonConfigDao.save(xf); + } + + + } + } + } + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据来源-列表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmSource(JSONObject object) { + MdmModuleSourceEntity entity = getData("jsonStr", object, MdmModuleSourceEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List list = mdmModuleSourceDao.queryBase(entity); + return BaseResult.getSuccessMessageEntity("获取数据来源成功", list); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据来源保存 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdmSource(JSONObject object) { + MdmModuleSourceEntity entity = getData("jsonStr", object, MdmModuleSourceEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setCreate(); + mdmModuleSourceDao.save(entity); + return BaseResult.getSuccessMessageEntity("保存数据来源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据来源获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity getMdmSource(JSONObject object) { + MdmModuleSourceEntity entity = getData("jsonStr", object, MdmModuleSourceEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = mdmModuleSourceDao.get(entity.getId()); + return BaseResult.getSuccessMessageEntity("获取数据来源成功", entity); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据来源修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmSource(JSONObject object) { + MdmModuleSourceEntity entity = getData("jsonStr", object, MdmModuleSourceEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + mdmModuleSourceDao.update(entity); + return BaseResult.getSuccessMessageEntity("修改数据来源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据来源删除 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity deleteMdmSource(JSONObject object) { + MdmModuleSourceEntity entity = getData("jsonStr", object, MdmModuleSourceEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + mdmModuleSourceDao.logicRemoveMultiCondition(entity); + return BaseResult.getSuccessMessageEntity("删除数据来源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置-列表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDistribute(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List list = mdmModuleDistributeDao.queryBase(entity); + if (list != null && list.size() > 0) { + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setMdmId(entity.getMdmId()); + mdmModuleDistributeDetailEntity.setSts("Y"); + List listDetail = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + if (listDetail != null && listDetail.size() > 0) { + for (int i = 0; i < list.size(); i++) { + List mdmModuleDistributeDetailEntities = new ArrayList<>(); + for (int i1 = 0; i1 < listDetail.size(); i1++) { + if (listDetail.get(i1).getDistributeId().equals(list.get(i).getId())) { + mdmModuleDistributeDetailEntities.add(listDetail.get(i1)); + } + } + list.get(i).setMdmModuleDistributeDetailEntities(mdmModuleDistributeDetailEntities); + } + } + + } + return BaseResult.getSuccessMessageEntity("获取分发设置成功", list); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置保存 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity saveMdmDistribute(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setCreate(); + mdmModuleDistributeDao.save(entity); + if (entity.getMdmModuleDistributeDetailEntities() != null && entity.getMdmModuleDistributeDetailEntities().size() > 0) { + for (int i = 0; i < entity.getMdmModuleDistributeDetailEntities().size(); i++) { + entity.getMdmModuleDistributeDetailEntities().get(i).setCreate(); + entity.getMdmModuleDistributeDetailEntities().get(i).setDistributeId(entity.getId()); + entity.getMdmModuleDistributeDetailEntities().get(i).setMdmId(entity.getMdmId()); + mdmModuleDistributeDetailDao.save(entity.getMdmModuleDistributeDetailEntities().get(i)); + } + } + return BaseResult.getSuccessMessageEntity("保存分发设置成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity getMdmDistribute(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = mdmModuleDistributeDao.get(entity.getId()); + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setDistributeId(entity.getId()); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + entity.setMdmModuleDistributeDetailEntities(mdmModuleDistributeDetailEntities); + return BaseResult.getSuccessMessageEntity("获取分发设置成功", entity); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置修改 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity updateMdmDistribute(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + mdmModuleDistributeDao.update(entity); + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setDistributeId(entity.getId()); + mdmModuleDistributeDetailEntity.setUpdate(); + mdmModuleDistributeDetailDao.logicRemoveMultiCondition(mdmModuleDistributeDetailEntity); + if (entity.getMdmModuleDistributeDetailEntities() != null && entity.getMdmModuleDistributeDetailEntities().size() > 0) { + for (int i = 0; i < entity.getMdmModuleDistributeDetailEntities().size(); i++) { + entity.getMdmModuleDistributeDetailEntities().get(i).setSts("Y"); + entity.getMdmModuleDistributeDetailEntities().get(i).setMdmId(entity.getMdmId()); + entity.getMdmModuleDistributeDetailEntities().get(i).setSts("Y"); + if (entity.getMdmModuleDistributeDetailEntities().get(i).getId() != null) { + entity.getMdmModuleDistributeDetailEntities().get(i).setUpdate(); + entity.getMdmModuleDistributeDetailEntities().get(i).setDistributeId(entity.getId()); + mdmModuleDistributeDetailDao.update(entity.getMdmModuleDistributeDetailEntities().get(i)); + } else { + entity.getMdmModuleDistributeDetailEntities().get(i).setCreate(); + entity.getMdmModuleDistributeDetailEntities().get(i).setDistributeId(entity.getId()); + mdmModuleDistributeDetailDao.save(entity.getMdmModuleDistributeDetailEntities().get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("修改数据来源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置删除 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity deleteMdmDistribute(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + mdmModuleDistributeDao.logicRemoveMultiCondition(entity); + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setDistributeId(entity.getId()); + mdmModuleDistributeDetailEntity.setUpdate(); + mdmModuleDistributeDetailDao.logicRemoveMultiCondition(mdmModuleDistributeDetailEntity); + + return BaseResult.getSuccessMessageEntity("删除数据来源成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-写入日志-列表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmOptionLogPage(JSONObject object) { + MdmModuleOptionLogEntity entity = getData("jsonStr", object, MdmModuleOptionLogEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntity == null || mdmModuleEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbEntity.setSts("Y"); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + entity.setTableName(mdmModuleDbEntities.get(i).getDbName() + "_option_log"); + break; + } + } + } else { + return BaseResult.getFailureMessageEntity("请先设置数据源"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = mdmModuleOptionLogDao.queryByLike(entity); + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-下发日志-列表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDistributeLogPage(JSONObject object) { + MdmModuleSendLogEntity entity = getData("jsonStr", object, MdmModuleSendLogEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntity == null || mdmModuleEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbEntity.setSts("Y"); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + entity.setTableName(mdmModuleDbEntities.get(i).getDbName() + "_send_log"); + break; + } + } + } else { + return BaseResult.getFailureMessageEntity("请先设置数据源"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = mdmModuleSendLogDao.queryByLike(entity); + if (list != null && list.size() > 0) { + for (int i = 0; i < list.size(); i++) { + if (list.get(i).getOptionType() != null) { + if ("1".equals(list.get(i).getOptionType())) { + list.get(i).setOptionType("新增"); + } else if ("2".equals(list.get(i).getOptionType())) { + list.get(i).setOptionType("修改"); + } else if ("3".equals(list.get(i).getOptionType())) { + list.get(i).setOptionType("删除"); + } + } + } + } + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-服务获取(只获取主表) + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmService(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setSts("Y"); + mdmModuleDbEntity.setDbType("1"); + List mdmModuleDbEntities = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + return BaseResult.getSuccessMessageEntity("查询数据成功", mdmModuleDbEntities); + } + + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-服务字段获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmServiceField(JSONObject object) { + MdmModuleDbFiledsEntity entity = getData("jsonStr", object, MdmModuleDbFiledsEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getDbId() == null || "".equals(entity.getDbId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setSts("Y"); + mdmModuleDbFiledsEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + List list = new ArrayList<>(); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if (entity.getDbId().equals(mdmModuleDbEntities.get(i).getDbId()) && "1".equals(mdmModuleDbEntities.get(i).getViewType())) { + list.add(mdmModuleDbEntities.get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("查询数据成功", list); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发-只获取主表 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmMainDB(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setSts("Y"); + mdmModuleDbEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + List list = new ArrayList<>(); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + list.add(mdmModuleDbEntities.get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("查询数据成功", list); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-数据源-只获取主表字段 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmMainDBField(JSONObject object) { + MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setSts("Y"); + mdmModuleDbEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setSts("Y"); + mdmModuleDbFiledsEntity.setMdmId(entity.getMdmId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + + List list = new ArrayList<>(); + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsEntities.size(); i1++) { + if (mdmModuleDbEntities.get(i).getId().equals(mdmModuleDbFiledsEntities.get(i1).getDbId()) && "1".equals(mdmModuleDbFiledsEntities.get(i1).getViewType())) { + list.add(mdmModuleDbFiledsEntities.get(i1)); + } + } + } + } + } + } + return BaseResult.getSuccessMessageEntity("查询数据成功", list); + } + + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 主数据-分发设置-列表获取 + * @Date 11:43 上午 2024/6/11 + **/ + @Override + public JsonResultEntity queryMdmDistributeByMdmCode(JSONObject object) { + MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + entity.setMdmId(mdmModuleEntity.getId()); + List list = mdmModuleDistributeDao.queryBase(entity); + return BaseResult.getSuccessMessageEntity("获取分发设置成功", list); + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/IMdmModuleDbDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/IMdmModuleDbDao.java index b2a48a17..75785b1a 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/IMdmModuleDbDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/IMdmModuleDbDao.java @@ -1,10 +1,7 @@ package com.hzya.frame.mdm.mdmModuleDb.dao; -import com.hzya.frame.mdm.entity.MdmDistributeVo; -import com.hzya.frame.mdm.entity.MdmDto; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; import com.hzya.frame.basedao.dao.IBaseDao; -import com.hzya.frame.sys.entity.ModuleDto; import java.util.HashMap; import java.util.List; @@ -14,16 +11,13 @@ import java.util.Map; * 模版数据库表(mdm_module_db: table)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:26:49 + * @since 2024-06-03 08:46:48 */ public interface IMdmModuleDbDao extends IBaseDao { - HashMap getServiceDataById(Map queryData); - List> getServiceByFormmainId(Map queryData); List> getServiceByDistributeId(Map queryData); - List getServiceByDistributeIdNoCase(Map queryData); - + int deleteMdmModuleDb(MdmModuleDbEntity mdmModuleDbEntity); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/impl/MdmModuleDbDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/impl/MdmModuleDbDaoImpl.java index 76eeaf7e..85351316 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/impl/MdmModuleDbDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/dao/impl/MdmModuleDbDaoImpl.java @@ -1,10 +1,7 @@ package com.hzya.frame.mdm.mdmModuleDb.dao.impl; -import com.hzya.frame.mdm.entity.MdmDistributeVo; -import com.hzya.frame.mdm.entity.MdmDto; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao; -import com.hzya.frame.sys.entity.ModuleDto; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; @@ -16,11 +13,10 @@ import java.util.Map; * 模版数据库表(MdmModuleDb)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:26:49 + * @since 2024-06-03 08:46:50 */ @Repository(value = "MdmModuleDbDaoImpl") -public class MdmModuleDbDaoImpl extends MybatisGenericDao implements IMdmModuleDbDao { - +public class MdmModuleDbDaoImpl extends MybatisGenericDao implements IMdmModuleDbDao{ @Override public HashMap getServiceDataById(Map maps) { HashMap o = (HashMap) super.selectOne(getSqlIdPrifx() + "getServiceDataById", maps); @@ -40,11 +36,11 @@ public class MdmModuleDbDaoImpl extends MybatisGenericDao getServiceByDistributeIdNoCase(Map maps) { - List o = (List) super.selectList(getSqlIdPrifx() + "getServiceByDistributeIdNoCase", maps); - return o; + @Override + public int deleteMdmModuleDb(MdmModuleDbEntity entity) { + Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleDb", entity); + return o; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.java index 9d50b509..71ad1ac2 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.java @@ -4,36 +4,31 @@ import java.util.Date; import java.util.List; import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; import com.hzya.frame.web.entity.BaseEntity; - /** * 模版数据库表(MdmModuleDb)实体类 * * @author makejava - * @since 2023-10-17 15:26:49 + * @since 2024-06-03 08:46:50 */ public class MdmModuleDbEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 表名 - */ - private String dbName; - /** - * 类型 1、主表 2、明细 - */ - private String dbType; - /** - * 备注 - */ - private String remark; - - //主数据子表字段 + + /** 主数据模版ID */ + private String mdmId; + /** 表名 */ + private String dbName; + /** 类型 1、主表 2、明细 3、操作日志 4、下发日志 */ + private String dbType; + /** 备注 */ + private String remark; + /** 公司id */ + private String companyId; + /** 数据类型 1、新增 2、修改 */ + private String dataType; private List sublistMdmModuleDbFileds; + public String getMdmId() { return mdmId; } @@ -66,6 +61,14 @@ public class MdmModuleDbEntity extends BaseEntity { this.remark = remark; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + public List getSublistMdmModuleDbFileds() { return sublistMdmModuleDbFileds; } @@ -73,5 +76,13 @@ public class MdmModuleDbEntity extends BaseEntity { public void setSublistMdmModuleDbFileds(List sublistMdmModuleDbFileds) { this.sublistMdmModuleDbFileds = sublistMdmModuleDbFileds; } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.xml index 8f2e3912..c680877b 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/entity/MdmModuleDbEntity.xml @@ -15,6 +15,7 @@ + @@ -30,6 +31,7 @@ ,modify_time ,sts ,org_id + ,company_id - + insert into mdm_module_db( id , @@ -150,6 +155,7 @@ modify_time , sts , org_id , + company_id , sts, )values( @@ -166,41 +172,41 @@ #{modify_time} , #{sts} , #{org_id} , - + #{companyId} , 'Y', ) - - insert into mdm_module_db(mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, - modify_time, sts, org_id, sts) + + insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, + modify_time, sts, org_id, company_id, sts) values - (#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, + (#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - - insert into mdm_module_db(mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, - modify_time, sts, org_id) + + insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, + modify_time, sts, org_id, company_id) values - (#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) + (#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) on duplicate key update mdm_id = values(mdm_id), db_name = values(db_name), db_type = values(db_type), remark = values(remark), - sorts = values(sorts), create_user_id = values(create_user_id), create_time = values(create_time), modify_user_id = values(modify_user_id), modify_time = values(modify_time), sts = values(sts), - org_id = values(org_id) + org_id = values(org_id), + company_id = values(company_id) @@ -210,13 +216,13 @@ db_name = #{dbName}, db_type = #{dbType}, remark = #{remark}, - sorts = #{sorts}, create_user_id = #{create_user_id}, create_time = #{create_time}, modify_user_id = #{modify_user_id}, modify_time = #{modify_time}, sts = #{sts}, org_id = #{org_id}, + company_id = #{companyId}, where id = #{id} @@ -237,6 +243,7 @@ where id = #{id} and remark = #{remark} and sorts = #{sorts} and sts = #{sts} + and company_id = #{companyId} and sts='Y' @@ -255,6 +262,7 @@ where id = #{id} and id = #{id} + and data_status != 'N' and sts = 'Y' @@ -272,6 +280,7 @@ where id = #{id} and id = #{id} and sts = 'Y' + and data_status != 'N' order by sorts asc @@ -305,19 +314,9 @@ where id = #{id} order by sorts asc - - + + + delete from mdm_module_db where mdm_id = #{mdmId} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/IMdmModuleDbService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/IMdmModuleDbService.java index c041826d..7104bf51 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/IMdmModuleDbService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/IMdmModuleDbService.java @@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleDb.service; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; import com.hzya.frame.basedao.service.IBaseService; - /** * 模版数据库表(MdmModuleDb)表服务接口 * * @author makejava - * @since 2023-10-17 15:26:51 + * @since 2024-06-03 08:46:51 */ -public interface IMdmModuleDbService extends IBaseService { +public interface IMdmModuleDbService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/impl/MdmModuleDbServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/impl/MdmModuleDbServiceImpl.java index b017b6a0..511df1b4 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/impl/MdmModuleDbServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDb/service/impl/MdmModuleDbServiceImpl.java @@ -3,27 +3,24 @@ package com.hzya.frame.mdm.mdmModuleDb.service.impl; import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao; import com.hzya.frame.mdm.mdmModuleDb.service.IMdmModuleDbService; -import org.springframework.stereotype.Service; +import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; - import javax.annotation.Resource; - import com.hzya.frame.basedao.service.impl.BaseService; - /** * 模版数据库表(MdmModuleDb)表服务实现类 * * @author makejava - * @since 2023-10-17 15:26:51 + * @since 2024-06-03 08:46:52 */ @Service(value = "mdmModuleDbService") public class MdmModuleDbServiceImpl extends BaseService implements IMdmModuleDbService { - + private IMdmModuleDbDao mdmModuleDbDao; - + @Autowired - public void setMdmModuleDbDao(IMdmModuleDbDao dao) { - this.mdmModuleDbDao = dao; - this.dao = dao; - } + public void setMdmModuleDbDao(IMdmModuleDbDao dao) { + this.mdmModuleDbDao = dao; + this.dao = dao; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/IMdmModuleDbFiledsDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/IMdmModuleDbFiledsDao.java index 174e6a09..9cf1ab43 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/IMdmModuleDbFiledsDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/IMdmModuleDbFiledsDao.java @@ -1,15 +1,16 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.dao; import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; /** * 模版数据库字段表(mdm_module_db_fileds: table)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:28:06 + * @since 2024-06-03 08:47:01 */ public interface IMdmModuleDbFiledsDao extends IBaseDao { + int deleteMdmModuleDbFileds(MdmModuleDbFiledsEntity entity); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/impl/MdmModuleDbFiledsDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/impl/MdmModuleDbFiledsDaoImpl.java index 362f1f76..054270b4 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/impl/MdmModuleDbFiledsDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/dao/impl/MdmModuleDbFiledsDaoImpl.java @@ -4,15 +4,19 @@ import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; - /** * 模版数据库字段表(MdmModuleDbFileds)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:28:07 + * @since 2024-06-03 08:47:01 */ @Repository(value = "MdmModuleDbFiledsDaoImpl") -public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao implements IMdmModuleDbFiledsDao { +public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao implements IMdmModuleDbFiledsDao{ + @Override + public int deleteMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) { + Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleDbFileds", entity); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.java index 998924ea..3e1debd5 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.java @@ -1,6 +1,5 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.entity; -import java.util.Date; import java.util.List; import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; @@ -10,34 +9,42 @@ import com.hzya.frame.web.entity.BaseEntity; * 模版数据库字段表(MdmModuleDbFileds)实体类 * * @author makejava - * @since 2023-10-17 15:28:07 + * @since 2024-06-03 08:47:01 */ public class MdmModuleDbFiledsEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 模版数据库id - */ - private String dbId; - /** - * 中文名 - */ - private String chName; - /** - * 英文名 - */ - private String enName; - /** - * 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME - */ - private String filedType; - /** - * 长度 - */ - private String filedLength; + + /** 主数据模版ID */ + private String dbName; + /** 主数据模版ID */ + private String mdmId; + /** 模版数据库id */ + private String dbId; + /** 中文名 */ + private String chName; + /** 英文名 */ + private String enName; + /** 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME */ + private String filedType; + /** 显示类型:新增 */ + private String addType; + /** 显示类型:修改 */ + private String updateType; + /** 显示类型:查看 */ + private String showType; + /** 显示类型:查询 */ + private String queryType; + /** 显示类型:列表 */ + private String listType; + /** 显示类型:显示 */ + private String viewType; + /** 长度 */ + private String filedLength; + /** 公司id */ + private String companyId; + /** 数据类型 1、新增 2、修改 */ + private String dataType; + /** 类型 1、主表 2、明细 3、操作日志 4、下发日志 */ + private String dbType; /** * roletype */ @@ -46,17 +53,10 @@ public class MdmModuleDbFiledsEntity extends BaseEntity { * roletype */ private String roleValue; - //字段规则 - private List mdmModuleDbFiledsRules; - - public List getMdmModuleDbFiledsRules() { - return mdmModuleDbFiledsRules; - } - - public void setMdmModuleDbFiledsRules(List mdmModuleDbFiledsRules) { - this.mdmModuleDbFiledsRules = mdmModuleDbFiledsRules; - } + private List mdmModuleDbFiledsRules; + //1、查询2、列表3、新增4、修改 5、查看 + private String fieldType; public String getMdmId() { return mdmId; } @@ -97,6 +97,54 @@ public class MdmModuleDbFiledsEntity extends BaseEntity { this.filedType = filedType; } + public String getAddType() { + return addType; + } + + public void setAddType(String addType) { + this.addType = addType; + } + + public String getUpdateType() { + return updateType; + } + + public void setUpdateType(String updateType) { + this.updateType = updateType; + } + + public String getShowType() { + return showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + + public String getQueryType() { + return queryType; + } + + public void setQueryType(String queryType) { + this.queryType = queryType; + } + + public String getListType() { + return listType; + } + + public void setListType(String listType) { + this.listType = listType; + } + + public String getViewType() { + return viewType; + } + + public void setViewType(String viewType) { + this.viewType = viewType; + } + public String getFiledLength() { return filedLength; } @@ -105,6 +153,30 @@ public class MdmModuleDbFiledsEntity extends BaseEntity { this.filedLength = filedLength; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public List getMdmModuleDbFiledsRules() { + return mdmModuleDbFiledsRules; + } + + public void setMdmModuleDbFiledsRules(List mdmModuleDbFiledsRules) { + this.mdmModuleDbFiledsRules = mdmModuleDbFiledsRules; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + public String getRoletype() { return roletype; } @@ -120,5 +192,29 @@ public class MdmModuleDbFiledsEntity extends BaseEntity { public void setRoleValue(String roleValue) { this.roleValue = roleValue; } + + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public String getFieldType() { + return fieldType; + } + + public void setFieldType(String fieldType) { + this.fieldType = fieldType; + } + + public String getDbType() { + return dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.xml index dc765548..0bb6e1c3 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/entity/MdmModuleDbFiledsEntity.xml @@ -2,31 +2,43 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + id ,mdm_id ,db_id ,ch_name ,en_name ,filed_type + ,add_type + ,update_type + ,show_type + ,query_type + ,list_type + ,view_type ,filed_length ,sorts ,create_user_id @@ -35,28 +47,35 @@ ,modify_time ,sts ,org_id + ,company_id - - + select + + from mdm_module_db_fileds + + and id = #{id} + and mdm_id = #{mdmId} + and db_id = #{dbId} + and ch_name = #{chName} + and en_name = #{enName} + and filed_type = #{filedType} + and add_type = #{addType} + and update_type = #{updateType} + and show_type = #{showType} + and query_type = #{queryType} + and list_type = #{listType} + and view_type = #{viewType} + and filed_length = #{filedLength} + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and id in ( select @@ -66,216 +85,258 @@ ) and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from mdm_module_db_fileds + + and id like concat('%',#{id},'%') + and mdm_id like concat('%',#{mdmId},'%') + and db_id like concat('%',#{dbId},'%') + and ch_name like concat('%',#{chName},'%') + and en_name like concat('%',#{enName},'%') + and filed_type like concat('%',#{filedType},'%') + and add_type like concat('%',#{addType},'%') + and update_type like concat('%',#{updateType},'%') + and show_type like concat('%',#{showType},'%') + and query_type like concat('%',#{queryType},'%') + and list_type like concat('%',#{listType},'%') + and view_type like concat('%',#{viewType},'%') + and filed_length like concat('%',#{filedLength},'%') + and sorts like concat('%',#{sorts},'%') + and create_user_id like concat('%',#{create_user_id},'%') + and create_time like concat('%',#{create_time},'%') + and modify_user_id like concat('%',#{modify_user_id},'%') + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from mdm_module_db_fileds + + or id = #{id} + or mdm_id = #{mdmId} + or db_id = #{dbId} + or ch_name = #{chName} + or en_name = #{enName} + or filed_type = #{filedType} + or add_type = #{addType} + or update_type = #{updateType} + or show_type = #{showType} + or query_type = #{queryType} + or list_type = #{listType} + or view_type = #{viewType} + or filed_length = #{filedLength} + or sorts = #{sorts} + or create_user_id = #{create_user_id} + or create_time = #{create_time} + or modify_user_id = #{modify_user_id} + or modify_time = #{modify_time} + or sts = #{sts} + or org_id = #{org_id} + or company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into mdm_module_db_fileds( - - id , - mdm_id , - db_id , - ch_name , - en_name , - filed_type , - filed_length , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{dbId} , - #{chName} , - #{enName} , - #{filedType} , - #{filedLength} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, filed_length, sorts, - create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.filedLength},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, filed_length, sorts, - create_user_id, create_time, modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.filedLength},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - db_id = values(db_id), - ch_name = values(ch_name), - en_name = values(en_name), - filed_type = values(filed_type), - filed_length = values(filed_length), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_db_fileds set - - mdm_id = #{mdmId}, - db_id = #{dbId}, - ch_name = #{chName}, - en_name = #{enName}, - filed_type = #{filedType}, - filed_length = #{filedLength}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - + + + insert into mdm_module_db_fileds( + + id , + mdm_id , + db_id , + ch_name , + en_name , + filed_type , + add_type , + update_type , + show_type , + query_type , + list_type , + view_type , + filed_length , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{dbId} , + #{chName} , + #{enName} , + #{filedType} , + #{addType} , + #{updateType} , + #{showType} , + #{queryType} , + #{listType} , + #{viewType} , + #{filedLength} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + db_id = values(db_id), + ch_name = values(ch_name), + en_name = values(en_name), + filed_type = values(filed_type), + add_type = values(add_type), + update_type = values(update_type), + show_type = values(show_type), + query_type = values(query_type), + list_type = values(list_type), + view_type = values(view_type), + filed_length = values(filed_length), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update mdm_module_db_fileds set + + mdm_id = #{mdmId}, + db_id = #{dbId}, + ch_name = #{chName}, + en_name = #{enName}, + filed_type = #{filedType}, + add_type = #{addType}, + update_type = #{updateType}, + show_type = #{showType}, + query_type = #{queryType}, + list_type = #{listType}, + view_type = #{viewType}, + filed_length = #{filedLength}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} where id = #{id} - - - update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and db_id = #{dbId} - and ch_name = #{chName} - and en_name = #{enName} - and filed_type = #{filedType} - and filed_length = #{filedLength} - and sorts = #{sorts} - and sts = #{sts} + + +update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and db_id = #{dbId} + and ch_name = #{chName} + and en_name = #{enName} + and filed_type = #{filedType} + and add_type = #{addType} + and update_type = #{updateType} + and show_type = #{showType} + and query_type = #{queryType} + and list_type = #{listType} + and view_type = #{viewType} + and filed_length = #{filedLength} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} and sts='Y' - - - - + + + + delete from mdm_module_db_fileds where id = #{id} - + + + delete from mdm_module_db_fileds where mdm_id = #{mdmId} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/IMdmModuleDbFiledsService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/IMdmModuleDbFiledsService.java index 78f21fbb..e08b44aa 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/IMdmModuleDbFiledsService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/IMdmModuleDbFiledsService.java @@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.service; import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.basedao.service.IBaseService; - /** * 模版数据库字段表(MdmModuleDbFileds)表服务接口 * * @author makejava - * @since 2023-10-17 15:28:09 + * @since 2024-06-03 08:47:01 */ -public interface IMdmModuleDbFiledsService extends IBaseService { +public interface IMdmModuleDbFiledsService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/impl/MdmModuleDbFiledsServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/impl/MdmModuleDbFiledsServiceImpl.java index 016eea5e..82ecb3f0 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/impl/MdmModuleDbFiledsServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFileds/service/impl/MdmModuleDbFiledsServiceImpl.java @@ -3,27 +3,24 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.service.impl; import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao; import com.hzya.frame.mdm.mdmModuleDbFileds.service.IMdmModuleDbFiledsService; -import org.springframework.stereotype.Service; +import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; - import javax.annotation.Resource; - import com.hzya.frame.basedao.service.impl.BaseService; - /** * 模版数据库字段表(MdmModuleDbFileds)表服务实现类 * * @author makejava - * @since 2023-10-17 15:28:09 + * @since 2024-06-03 08:47:01 */ @Service(value = "mdmModuleDbFiledsService") public class MdmModuleDbFiledsServiceImpl extends BaseService implements IMdmModuleDbFiledsService { - + private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao; - + @Autowired - public void setMdmModuleDbFiledsDao(IMdmModuleDbFiledsDao dao) { - this.mdmModuleDbFiledsDao = dao; - this.dao = dao; - } + public void setMdmModuleDbFiledsDao(IMdmModuleDbFiledsDao dao) { + this.mdmModuleDbFiledsDao = dao; + this.dao = dao; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/IMdmModuleDbFiledsRuleDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/IMdmModuleDbFiledsRuleDao.java index 7b81046f..b63f4881 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/IMdmModuleDbFiledsRuleDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/IMdmModuleDbFiledsRuleDao.java @@ -1,15 +1,21 @@ package com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao; import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; + +import java.util.List; +import java.util.Map; /** * 模版数据库字段规则表(mdm_module_db_fileds_rule: table)表数据库访问层 * * @author makejava - * @since 2023-11-04 11:16:44 + * @since 2024-06-03 08:47:10 */ public interface IMdmModuleDbFiledsRuleDao extends IBaseDao { + Integer queryUserMdm(MdmModuleDbFiledsRuleEntity queryCount); + + List queryServiceQuote(Map maps); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/impl/MdmModuleDbFiledsRuleDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/impl/MdmModuleDbFiledsRuleDaoImpl.java index 1a0d4f6b..b1390ab1 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/impl/MdmModuleDbFiledsRuleDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/dao/impl/MdmModuleDbFiledsRuleDaoImpl.java @@ -4,14 +4,29 @@ import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEnti import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; +import java.util.Map; + /** * 模版数据库字段规则表(MdmModuleDbFiledsRule)表数据库访问层 * * @author makejava - * @since 2023-11-04 11:16:44 + * @since 2024-06-03 08:47:10 */ @Repository(value = "MdmModuleDbFiledsRuleDaoImpl") public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao implements IMdmModuleDbFiledsRuleDao{ - + + @Override + public Integer queryUserMdm(MdmModuleDbFiledsRuleEntity queryCount) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "queryUserMdm", queryCount); + return o; + } + + @Override + public List queryServiceQuote(Map maps) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryServiceQuote", maps); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.java index 8d71cc18..d20f7090 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.java @@ -6,10 +6,10 @@ import com.hzya.frame.web.entity.BaseEntity; * 模版数据库字段规则表(MdmModuleDbFiledsRule)实体类 * * @author makejava - * @since 2023-11-04 11:16:44 + * @since 2024-06-03 08:47:10 */ public class MdmModuleDbFiledsRuleEntity extends BaseEntity { - + /** 主数据模版ID */ private String mdmId; /** 前端分拣用 */ @@ -26,7 +26,10 @@ public class MdmModuleDbFiledsRuleEntity extends BaseEntity { private String ruleValue; /** 规则类型1、表单属性 2、控件属性 */ private String ruleType; - + /** 公司id */ + private String companyId; + /** 数据类型 1、新增 2、修改 */ + private String dataType; public String getMdmId() { return mdmId; @@ -92,5 +95,20 @@ public class MdmModuleDbFiledsRuleEntity extends BaseEntity { this.ruleType = ruleType; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.xml index 38bfd29c..30f2c620 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/entity/MdmModuleDbFiledsRuleEntity.xml @@ -2,26 +2,28 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + id ,mdm_id ,form_name @@ -38,241 +40,303 @@ ,modify_time ,sts ,org_id - - - + select + + from mdm_module_db_fileds_rule + + and id = #{id} + and mdm_id = #{mdmId} + and form_name = #{formName} + and db_id = #{dbId} + and filed_id = #{filedId} + and rule_name = #{ruleName} + and rule_code = #{ruleCode} + and rule_value = #{ruleValue} + and rule_type = #{ruleType} + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from mdm_module_db_fileds_rule + + and id like concat('%',#{id},'%') + and mdm_id like concat('%',#{mdmId},'%') + and form_name like concat('%',#{formName},'%') + and db_id like concat('%',#{dbId},'%') + and filed_id like concat('%',#{filedId},'%') + and rule_name like concat('%',#{ruleName},'%') + and rule_code like concat('%',#{ruleCode},'%') + and rule_value like concat('%',#{ruleValue},'%') + and rule_type like concat('%',#{ruleType},'%') + and sorts like concat('%',#{sorts},'%') + and create_user_id like + concat('%',#{create_user_id},'%') + + and create_time like concat('%',#{create_time},'%') + and modify_user_id like + concat('%',#{modify_user_id},'%') + + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + + - - - insert into mdm_module_db_fileds_rule( - - id , - mdm_id , - form_name , - db_id , - filed_id , - rule_name , - rule_code , - rule_value , - rule_type , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{formName} , - #{dbId} , - #{filedId} , - #{ruleName} , - #{ruleCode} , - #{ruleValue} , - #{ruleType} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - 'Y', - - ) - - - - insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, 'Y') - - - - - insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - form_name = values(form_name), - db_id = values(db_id), - filed_id = values(filed_id), - rule_name = values(rule_name), - rule_code = values(rule_code), - rule_value = values(rule_value), - rule_type = values(rule_type), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - -update mdm_module_db_fileds_rule set - - mdm_id = #{mdmId}, - form_name = #{formName}, - db_id = #{dbId}, - filed_id = #{filedId}, - rule_name = #{ruleName}, - rule_code = #{ruleCode}, - rule_value = #{ruleValue}, - rule_type = #{ruleType}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - -where id = #{id} - - - -update mdm_module_db_fileds_rule set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - -update mdm_module_db_fileds_rule set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and form_name = #{formName} - and db_id = #{dbId} - and filed_id = #{filedId} - and rule_name = #{ruleName} - and rule_code = #{ruleCode} - and rule_value = #{ruleValue} - and rule_type = #{ruleType} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from mdm_module_db_fileds_rule where id = #{id} - + + + insert into mdm_module_db_fileds_rule( + + id , + mdm_id , + form_name , + db_id , + filed_id , + rule_name , + rule_code , + rule_value , + rule_type , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{formName} , + #{dbId} , + #{filedId} , + #{ruleName} , + #{ruleCode} , + #{ruleValue} , + #{ruleType} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, + rule_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + 'Y') + + + + + insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, + rule_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + form_name = values(form_name), + db_id = values(db_id), + filed_id = values(filed_id), + rule_name = values(rule_name), + rule_code = values(rule_code), + rule_value = values(rule_value), + rule_type = values(rule_type), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + + + update mdm_module_db_fileds_rule set + + mdm_id = #{mdmId}, + form_name = #{formName}, + db_id = #{dbId}, + filed_id = #{filedId}, + rule_name = #{ruleName}, + rule_code = #{ruleCode}, + rule_value = #{ruleValue}, + rule_type = #{ruleType}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + + where id = #{id} + + + + update mdm_module_db_fileds_rule + set sts= 'N', + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id} + where id = #{id} + + + + update mdm_module_db_fileds_rule set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and form_name = #{formName} + and db_id = #{dbId} + and filed_id = #{filedId} + and rule_name = #{ruleName} + and rule_code = #{ruleCode} + and rule_value = #{ruleValue} + and rule_type = #{ruleType} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete + from mdm_module_db_fileds_rule + where id = #{id} + + + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/IMdmModuleDbFiledsRuleService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/IMdmModuleDbFiledsRuleService.java index b679d0d3..710c7f0a 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/IMdmModuleDbFiledsRuleService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/IMdmModuleDbFiledsRuleService.java @@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService; * 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务接口 * * @author makejava - * @since 2023-11-04 11:16:44 + * @since 2024-06-03 08:47:10 */ public interface IMdmModuleDbFiledsRuleService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/impl/MdmModuleDbFiledsRuleServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/impl/MdmModuleDbFiledsRuleServiceImpl.java index 941a5171..8b987300 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/impl/MdmModuleDbFiledsRuleServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRule/service/impl/MdmModuleDbFiledsRuleServiceImpl.java @@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService; * 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务实现类 * * @author makejava - * @since 2023-11-04 11:16:44 + * @since 2024-06-03 08:47:10 */ @Service(value = "mdmModuleDbFiledsRuleService") public class MdmModuleDbFiledsRuleServiceImpl extends BaseService implements IMdmModuleDbFiledsRuleService { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/IMdmModuleDbFiledsRuleFilesDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/IMdmModuleDbFiledsRuleFilesDao.java deleted file mode 100644 index 8335ffae..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/IMdmModuleDbFiledsRuleFilesDao.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao; - -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; -import com.hzya.frame.basedao.dao.IBaseDao; - -/** - * 模版数据库字段规则档案表(mdm_module_db_fileds_rule_files: table)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:30:12 - */ -public interface IMdmModuleDbFiledsRuleFilesDao extends IBaseDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/impl/MdmModuleDbFiledsRuleFilesDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/impl/MdmModuleDbFiledsRuleFilesDaoImpl.java deleted file mode 100644 index f5f0d497..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/dao/impl/MdmModuleDbFiledsRuleFilesDaoImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.impl; - -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.IMdmModuleDbFiledsRuleFilesDao; -import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; - -/** - * 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:30:12 - */ -@Repository(value = "MdmModuleDbFiledsRuleFilesDaoImpl") -public class MdmModuleDbFiledsRuleFilesDaoImpl extends MybatisGenericDao implements IMdmModuleDbFiledsRuleFilesDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.java deleted file mode 100644 index 7f9bf614..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity; - -import java.util.Date; - -import com.hzya.frame.web.entity.BaseEntity; - -/** - * 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)实体类 - * - * @author makejava - * @since 2023-10-17 15:30:13 - */ -public class MdmModuleDbFiledsRuleFilesEntity extends BaseEntity { - - /** - * 规则名称 - */ - private String ruleName; - /** - * 规则编码 - */ - private String ruleCode; - /** - * 规则类型 1、表单属性 2、控件属性 - */ - private String ruleType; - /** - * 规则值 - */ - private String ruleValue; - - - public String getRuleName() { - return ruleName; - } - - public void setRuleName(String ruleName) { - this.ruleName = ruleName; - } - - public String getRuleCode() { - return ruleCode; - } - - public void setRuleCode(String ruleCode) { - this.ruleCode = ruleCode; - } - - public String getRuleType() { - return ruleType; - } - - public void setRuleType(String ruleType) { - this.ruleType = ruleType; - } - - public String getRuleValue() { - return ruleValue; - } - - public void setRuleValue(String ruleValue) { - this.ruleValue = ruleValue; - } - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.xml deleted file mode 100644 index 49ad5f82..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/entity/MdmModuleDbFiledsRuleFilesEntity.xml +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - id - ,rule_name - ,rule_code - ,rule_type - ,rule_value - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id - - - - - - - - - - - - - - - - insert into mdm_module_db_fileds_rule_files( - - id , - rule_name , - rule_code , - rule_type , - rule_value , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{ruleName} , - #{ruleCode} , - #{ruleType} , - #{ruleValue} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_db_fileds_rule_files(rule_name, rule_code, rule_type, rule_value, sorts, create_user_id, - create_time, modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.ruleName},#{entity.ruleCode},#{entity.ruleType},#{entity.ruleValue},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_db_fileds_rule_files(rule_name, rule_code, rule_type, rule_value, sorts, create_user_id, - create_time, modify_user_id, modify_time, sts, org_id) - values - - (#{entity.ruleName},#{entity.ruleCode},#{entity.ruleType},#{entity.ruleValue},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - rule_name = values(rule_name), - rule_code = values(rule_code), - rule_type = values(rule_type), - rule_value = values(rule_value), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_db_fileds_rule_files set - - rule_name = #{ruleName}, - rule_code = #{ruleCode}, - rule_type = #{ruleType}, - rule_value = #{ruleValue}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - -update mdm_module_db_fileds_rule_files set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - - update mdm_module_db_fileds_rule_files set sts= 'N' ,modify_time = #{modify_time},modify_user_id = - #{modify_user_id} - - and id = #{id} - and rule_name = #{ruleName} - and rule_code = #{ruleCode} - and rule_type = #{ruleType} - and rule_value = #{ruleValue} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from mdm_module_db_fileds_rule_files where id = #{id} - - - - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/IMdmModuleDbFiledsRuleFilesService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/IMdmModuleDbFiledsRuleFilesService.java deleted file mode 100644 index 75e81394..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/IMdmModuleDbFiledsRuleFilesService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service; - -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; -import com.hzya.frame.basedao.service.IBaseService; - -/** - * 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表服务接口 - * - * @author makejava - * @since 2023-10-17 15:30:14 - */ -public interface IMdmModuleDbFiledsRuleFilesService extends IBaseService { -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/impl/MdmModuleDbFiledsRuleFilesServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/impl/MdmModuleDbFiledsRuleFilesServiceImpl.java deleted file mode 100644 index c056dd51..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDbFiledsRuleFiles/service/impl/MdmModuleDbFiledsRuleFilesServiceImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service.impl; - -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.IMdmModuleDbFiledsRuleFilesDao; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service.IMdmModuleDbFiledsRuleFilesService; -import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; - -import javax.annotation.Resource; - -import com.hzya.frame.basedao.service.impl.BaseService; - -/** - * 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表服务实现类 - * - * @author makejava - * @since 2023-10-17 15:30:15 - */ -@Service(value = "mdmModuleDbFiledsRuleFilesService") -public class MdmModuleDbFiledsRuleFilesServiceImpl extends BaseService implements IMdmModuleDbFiledsRuleFilesService { - - private IMdmModuleDbFiledsRuleFilesDao mdmModuleDbFiledsRuleFilesDao; - - @Autowired - public void setMdmModuleDbFiledsRuleFilesDao(IMdmModuleDbFiledsRuleFilesDao dao) { - this.mdmModuleDbFiledsRuleFilesDao = dao; - this.dao = dao; - } -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/IMdmModuleDistributeDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/IMdmModuleDistributeDao.java index 1bb97fe8..44cc5cec 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/IMdmModuleDistributeDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/IMdmModuleDistributeDao.java @@ -7,9 +7,10 @@ import com.hzya.frame.basedao.dao.IBaseDao; * 主数据功能应用分发表(mdm_module_distribute: table)表数据库访问层 * * @author makejava - * @since 2023-11-06 15:27:41 + * @since 2024-06-18 11:39:46 */ public interface IMdmModuleDistributeDao extends IBaseDao { + Integer queryCountUse(MdmModuleDistributeEntity mdmModuleDistributeEntity); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/impl/MdmModuleDistributeDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/impl/MdmModuleDistributeDaoImpl.java index e4070581..3f9560f8 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/impl/MdmModuleDistributeDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/dao/impl/MdmModuleDistributeDaoImpl.java @@ -4,14 +4,22 @@ import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.HashMap; + /** * 主数据功能应用分发表(MdmModuleDistribute)表数据库访问层 * * @author makejava - * @since 2023-11-06 15:27:42 + * @since 2024-06-18 11:39:46 */ @Repository(value = "MdmModuleDistributeDaoImpl") public class MdmModuleDistributeDaoImpl extends MybatisGenericDao implements IMdmModuleDistributeDao{ - + + @Override + public Integer queryCountUse(MdmModuleDistributeEntity mdmModuleDistributeEntity) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "queryCountUse", mdmModuleDistributeEntity); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.java index d65a44eb..9a04e5ac 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.java @@ -9,43 +9,45 @@ import com.hzya.frame.web.entity.BaseEntity; * 主数据功能应用分发表(MdmModuleDistribute)实体类 * * @author makejava - * @since 2023-11-06 15:27:42 + * @since 2024-06-18 11:39:46 */ public class MdmModuleDistributeEntity extends BaseEntity { - + /** 主数据模版ID */ private String mdmId; /** 应用id */ private String appId; + /** 应用id */ + private Long mdmCode; + /** 触发类型 0、手动1、自动 */ + private String enabledType; + /** 修改接口 */ + private String updateApi; + /** 修改插件 */ + private String updateScript; /** 新增接口 */ private String addApi; + /** 新增插件 */ + private String addScript; /** 删除接口 */ private String deleteApi; - /** 新增使用类型 */ - private String addType; - /** 删除使用类型 */ - private String deleteType; - /** 新增插件 */ - private String addPlug; /** 删除插件 */ - private String deletePlug; - private List addList; - private List deleteList; + private String deleteScript; + /** 启用停用 0、停用1、启用 */ + private String enabledState; + /** 主表ID */ + private String dbId; + /** 公司id */ + private String companyId; + /** 公司id */ + private List mdmModuleDistributeDetailEntities; - public List getAddList() { - return addList; + public Long getMdmCode() { + return mdmCode; } - public void setAddList(List addList) { - this.addList = addList; - } - - public List getDeleteList() { - return deleteList; - } - - public void setDeleteList(List deleteList) { - this.deleteList = deleteList; + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; } public String getMdmId() { @@ -64,6 +66,30 @@ public class MdmModuleDistributeEntity extends BaseEntity { this.appId = appId; } + public String getEnabledType() { + return enabledType; + } + + public void setEnabledType(String enabledType) { + this.enabledType = enabledType; + } + + public String getUpdateApi() { + return updateApi; + } + + public void setUpdateApi(String updateApi) { + this.updateApi = updateApi; + } + + public String getUpdateScript() { + return updateScript; + } + + public void setUpdateScript(String updateScript) { + this.updateScript = updateScript; + } + public String getAddApi() { return addApi; } @@ -72,6 +98,14 @@ public class MdmModuleDistributeEntity extends BaseEntity { this.addApi = addApi; } + public String getAddScript() { + return addScript; + } + + public void setAddScript(String addScript) { + this.addScript = addScript; + } + public String getDeleteApi() { return deleteApi; } @@ -80,37 +114,46 @@ public class MdmModuleDistributeEntity extends BaseEntity { this.deleteApi = deleteApi; } - public String getAddType() { - return addType; + public String getDeleteScript() { + return deleteScript; } - public void setAddType(String addType) { - this.addType = addType; + public void setDeleteScript(String deleteScript) { + this.deleteScript = deleteScript; } - public String getDeleteType() { - return deleteType; + public String getEnabledState() { + return enabledState; } - public void setDeleteType(String deleteType) { - this.deleteType = deleteType; + public void setEnabledState(String enabledState) { + this.enabledState = enabledState; } - public String getAddPlug() { - return addPlug; + public String getDbId() { + return dbId; } - public void setAddPlug(String addPlug) { - this.addPlug = addPlug; + public void setDbId(String dbId) { + this.dbId = dbId; } - public String getDeletePlug() { - return deletePlug; + public String getCompanyId() { + return companyId; } - public void setDeletePlug(String deletePlug) { - this.deletePlug = deletePlug; + public void setCompanyId(String companyId) { + this.companyId = companyId; } + public List getMdmModuleDistributeDetailEntities() { + return mdmModuleDistributeDetailEntities; + } + + public void setMdmModuleDistributeDetailEntities(List mdmModuleDistributeDetailEntities) { + this.mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailEntities; + } + + } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.xml index cbed7e30..4e2e3423 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/entity/MdmModuleDistributeEntity.xml @@ -6,10 +6,15 @@ + + + + - - + + + @@ -17,18 +22,22 @@ - - + id ,mdm_id ,app_id + ,enabled_type + ,update_api + ,update_script ,add_api + ,add_script ,delete_api - ,add_type - ,delete_type + ,delete_script + ,enabled_state + ,db_id ,sorts ,create_user_id ,create_time @@ -36,9 +45,15 @@ ,modify_time ,sts ,org_id - ,add_plug - ,delete_plug + ,company_id + + + - + insert into mdm_module_distribute( id , mdm_id , app_id , + enabled_type , + update_api , + update_script , add_api , + add_script , delete_api , - add_type , - delete_type , + delete_script , + enabled_state , + db_id , sorts , create_user_id , create_time , @@ -167,8 +203,7 @@ modify_time , sts , org_id , - add_plug , - delete_plug , + company_id , sts, )values( @@ -176,10 +211,15 @@ #{id} , #{mdmId} , #{appId} , + #{enabledType} , + #{updateApi} , + #{updateScript} , #{addApi} , + #{addScript} , #{deleteApi} , - #{addType} , - #{deleteType} , + #{deleteScript} , + #{enabledState} , + #{dbId} , #{sorts} , #{create_user_id} , #{create_time} , @@ -187,62 +227,67 @@ #{modify_time} , #{sts} , #{org_id} , - #{addPlug} , - #{deletePlug} , + #{companyId} , 'Y', ) - - insert into mdm_module_distribute(mdm_id, app_id, add_api, delete_api, add_type, delete_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, add_plug, delete_plug, sts) + + insert into mdm_module_distribute(mdm_id, app_id, enabled_type, update_api, update_script, add_api, add_script, delete_api, delete_script, enabled_state, db_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) values - (#{entity.mdmId},#{entity.appId},#{entity.addApi},#{entity.deleteApi},#{entity.addType},#{entity.deleteType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.addPlug},#{entity.deletePlug}, 'Y') + (#{entity.mdmId},#{entity.appId},#{entity.enabledType},#{entity.updateApi},#{entity.updateScript},#{entity.addApi},#{entity.addScript},#{entity.deleteApi},#{entity.deleteScript},#{entity.enabledState},#{entity.dbId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - - insert into mdm_module_distribute(mdm_id, app_id, add_api, delete_api, add_type, delete_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, add_plug, delete_plug) + + insert into mdm_module_distribute(mdm_id, app_id, enabled_type, update_api, update_script, add_api, add_script, delete_api, delete_script, enabled_state, db_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) values - (#{entity.mdmId},#{entity.appId},#{entity.addApi},#{entity.deleteApi},#{entity.addType},#{entity.deleteType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.addPlug},#{entity.deletePlug}) + (#{entity.mdmId},#{entity.appId},#{entity.enabledType},#{entity.updateApi},#{entity.updateScript},#{entity.addApi},#{entity.addScript},#{entity.deleteApi},#{entity.deleteScript},#{entity.enabledState},#{entity.dbId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) on duplicate key update mdm_id = values(mdm_id), app_id = values(app_id), + enabled_type = values(enabled_type), + update_api = values(update_api), + update_script = values(update_script), add_api = values(add_api), + add_script = values(add_script), delete_api = values(delete_api), - add_type = values(add_type), - delete_type = values(delete_type), - sorts = values(sorts), + delete_script = values(delete_script), + enabled_state = values(enabled_state), + db_id = values(db_id), create_user_id = values(create_user_id), create_time = values(create_time), modify_user_id = values(modify_user_id), modify_time = values(modify_time), sts = values(sts), org_id = values(org_id), - add_plug = values(add_plug), - delete_plug = values(delete_plug) + company_id = values(company_id) update mdm_module_distribute set mdm_id = #{mdmId}, app_id = #{appId}, + enabled_type = #{enabledType}, + update_api = #{updateApi}, + update_script = #{updateScript}, add_api = #{addApi}, + add_script = #{addScript}, delete_api = #{deleteApi}, - add_type = #{addType}, - delete_type = #{deleteType}, - sorts = #{sorts}, + delete_script = #{deleteScript}, + enabled_state = #{enabledState}, + db_id = #{dbId}, create_user_id = #{create_user_id}, create_time = #{create_time}, modify_user_id = #{modify_user_id}, modify_time = #{modify_time}, sts = #{sts}, org_id = #{org_id}, - add_plug = #{addPlug}, - delete_plug = #{deletePlug}, + company_id = #{companyId}, where id = #{id} @@ -258,14 +303,18 @@ update mdm_module_distribute set sts= 'N' ,modify_time = #{modify_time},modify_ and id = #{id} and mdm_id = #{mdmId} and app_id = #{appId} + and enabled_type = #{enabledType} + and update_api = #{updateApi} + and update_script = #{updateScript} and add_api = #{addApi} + and add_script = #{addScript} and delete_api = #{deleteApi} - and add_type = #{addType} - and delete_type = #{deleteType} + and delete_script = #{deleteScript} + and enabled_state = #{enabledState} + and db_id = #{dbId} and sorts = #{sorts} and sts = #{sts} - and add_plug = #{addPlug} - and delete_plug = #{deletePlug} + and company_id = #{companyId} and sts='Y' @@ -273,6 +322,16 @@ update mdm_module_distribute set sts= 'N' ,modify_time = #{modify_time},modify_ delete from mdm_module_distribute where id = #{id} - + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/IMdmModuleDistributeService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/IMdmModuleDistributeService.java index 474d58c9..46befe7b 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/IMdmModuleDistributeService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/IMdmModuleDistributeService.java @@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService; * 主数据功能应用分发表(MdmModuleDistribute)表服务接口 * * @author makejava - * @since 2023-11-06 15:27:42 + * @since 2024-06-18 11:39:46 */ public interface IMdmModuleDistributeService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/impl/MdmModuleDistributeServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/impl/MdmModuleDistributeServiceImpl.java index 0ccdb809..29bbea60 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/impl/MdmModuleDistributeServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistribute/service/impl/MdmModuleDistributeServiceImpl.java @@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService; * 主数据功能应用分发表(MdmModuleDistribute)表服务实现类 * * @author makejava - * @since 2023-11-06 15:27:42 + * @since 2024-06-18 11:39:46 */ @Service(value = "mdmModuleDistributeService") public class MdmModuleDistributeServiceImpl extends BaseService implements IMdmModuleDistributeService { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/IMdmModuleDistributeDetailDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/IMdmModuleDistributeDetailDao.java index 90278a9f..962a0d5a 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/IMdmModuleDistributeDetailDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/IMdmModuleDistributeDetailDao.java @@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao; * 主数据功能应用分发明细表(mdm_module_distribute_detail: table)表数据库访问层 * * @author makejava - * @since 2023-11-07 09:11:31 + * @since 2024-06-19 10:34:58 */ public interface IMdmModuleDistributeDetailDao extends IBaseDao { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/impl/MdmModuleDistributeDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/impl/MdmModuleDistributeDetailDaoImpl.java index daeb3dc5..8507d00c 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/impl/MdmModuleDistributeDetailDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/dao/impl/MdmModuleDistributeDetailDaoImpl.java @@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao; * 主数据功能应用分发明细表(MdmModuleDistributeDetail)表数据库访问层 * * @author makejava - * @since 2023-11-07 09:11:31 + * @since 2024-06-19 10:34:58 */ @Repository(value = "MdmModuleDistributeDetailDaoImpl") public class MdmModuleDistributeDetailDaoImpl extends MybatisGenericDao implements IMdmModuleDistributeDetailDao{ diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.java index 89f45fe7..d1acefd1 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.java @@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity; * 主数据功能应用分发明细表(MdmModuleDistributeDetail)实体类 * * @author makejava - * @since 2023-11-07 09:11:31 + * @since 2024-06-19 10:34:58 */ public class MdmModuleDistributeDetailEntity extends BaseEntity { @@ -16,24 +16,24 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity { private String distributeId; /** 接口id */ private String apiId; - /** 源API字段 */ - private String sourceField; - /** 源API字段名 */ - private String sourceName; - /** 目标API字段 */ - private String targetField; - /** 目标API字段名 */ - private String targetName; + /** 数据类型 1、新增2、修改3、删除 */ + private String dataType; + /** 左括号 */ + private String leftBracket; + /** 字段id */ + private String filedId; + /** 字段名 */ + private String filedName; + /** 对比类型 1、等于 2、不等于 3、大于 4、小于 */ + private String compareType; /** 目标API字段默认值 */ - private String defaultVaule; - /** 源字段层级 */ - private String sourceFieldPath; - /** 目标字段层级 */ - private String targetFieldPath; - private String targetPath; - private String sourcePath; - /** 连线信息 */ - private String coordinate; + private String filedVaule; + /** 连接符号 1\and 2\or */ + private String connectionSymbol; + /** 右括号 */ + private String rightParenthesis; + /** 公司id */ + private String companyId; public String getMdmId() { @@ -60,84 +60,76 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity { this.apiId = apiId; } - public String getSourceField() { - return sourceField; + public String getDataType() { + return dataType; } - public void setSourceField(String sourceField) { - this.sourceField = sourceField; + public void setDataType(String dataType) { + this.dataType = dataType; } - public String getSourceName() { - return sourceName; + public String getLeftBracket() { + return leftBracket; } - public void setSourceName(String sourceName) { - this.sourceName = sourceName; + public void setLeftBracket(String leftBracket) { + this.leftBracket = leftBracket; } - public String getTargetField() { - return targetField; + public String getFiledId() { + return filedId; } - public void setTargetField(String targetField) { - this.targetField = targetField; + public void setFiledId(String filedId) { + this.filedId = filedId; } - public String getTargetName() { - return targetName; + public String getFiledName() { + return filedName; } - public void setTargetName(String targetName) { - this.targetName = targetName; + public void setFiledName(String filedName) { + this.filedName = filedName; } - public String getDefaultVaule() { - return defaultVaule; + public String getCompareType() { + return compareType; } - public void setDefaultVaule(String defaultVaule) { - this.defaultVaule = defaultVaule; + public void setCompareType(String compareType) { + this.compareType = compareType; } - public String getSourceFieldPath() { - return sourceFieldPath; + public String getFiledVaule() { + return filedVaule; } - public void setSourceFieldPath(String sourceFieldPath) { - this.sourceFieldPath = sourceFieldPath; + public void setFiledVaule(String filedVaule) { + this.filedVaule = filedVaule; } - public String getTargetFieldPath() { - return targetFieldPath; + public String getConnectionSymbol() { + return connectionSymbol; } - public void setTargetFieldPath(String targetFieldPath) { - this.targetFieldPath = targetFieldPath; + public void setConnectionSymbol(String connectionSymbol) { + this.connectionSymbol = connectionSymbol; } - public String getTargetPath() { - return targetPath; + public String getRightParenthesis() { + return rightParenthesis; } - public void setTargetPath(String targetPath) { - this.targetPath = targetPath; + public void setRightParenthesis(String rightParenthesis) { + this.rightParenthesis = rightParenthesis; } - public String getSourcePath() { - return sourcePath; + public String getCompanyId() { + return companyId; } - public void setSourcePath(String sourcePath) { - this.sourcePath = sourcePath; - } - - public String getCoordinate() { - return coordinate; - } - - public void setCoordinate(String coordinate) { - this.coordinate = coordinate; + public void setCompanyId(String companyId) { + this.companyId = companyId; } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.xml index 91bbf427..82696313 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/entity/MdmModuleDistributeDetailEntity.xml @@ -2,44 +2,43 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + id ,mdm_id ,distribute_id ,api_id - ,source_field - ,source_name - ,target_field - ,target_name - ,default_vaule - ,source_field_path - ,target_field_path - ,target_path - ,source_path + ,data_type + ,left_bracket + ,filed_id + ,filed_name + ,compare_type + ,filed_vaule + ,connection_symbol + ,right_parenthesis ,sorts ,create_user_id ,create_time @@ -47,285 +46,309 @@ ,modify_time ,sts ,org_id - ,coordinate + ,company_id - - + select + + from mdm_module_distribute_detail + + and id = #{id} + and mdm_id = #{mdmId} + and distribute_id = #{distributeId} + and api_id = #{apiId} + and data_type = #{dataType} + and left_bracket = #{leftBracket} + and filed_id = #{filedId} + and filed_name = #{filedName} + and compare_type = #{compareType} + and filed_vaule = #{filedVaule} + and connection_symbol = #{connectionSymbol} + + and right_parenthesis = #{rightParenthesis} + + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from mdm_module_distribute_detail + + and id like concat('%',#{id},'%') + and mdm_id like concat('%',#{mdmId},'%') + and distribute_id like + concat('%',#{distributeId},'%') + + and api_id like concat('%',#{apiId},'%') + and data_type like concat('%',#{dataType},'%') + and left_bracket like concat('%',#{leftBracket},'%') + + and filed_id like concat('%',#{filedId},'%') + and filed_name like concat('%',#{filedName},'%') + and compare_type like concat('%',#{compareType},'%') + + and filed_vaule like concat('%',#{filedVaule},'%') + and connection_symbol like + concat('%',#{connectionSymbol},'%') + + and right_parenthesis like + concat('%',#{rightParenthesis},'%') + + and sorts like concat('%',#{sorts},'%') + and create_user_id like + concat('%',#{create_user_id},'%') + + and create_time like concat('%',#{create_time},'%') + and modify_user_id like + concat('%',#{modify_user_id},'%') + + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from mdm_module_distribute_detail + + or id = #{id} + or mdm_id = #{mdmId} + or distribute_id = #{distributeId} + or api_id = #{apiId} + or data_type = #{dataType} + or left_bracket = #{leftBracket} + or filed_id = #{filedId} + or filed_name = #{filedName} + or compare_type = #{compareType} + or filed_vaule = #{filedVaule} + or connection_symbol = #{connectionSymbol} + + or right_parenthesis = #{rightParenthesis} + + or sorts = #{sorts} + or create_user_id = #{create_user_id} + or create_time = #{create_time} + or modify_user_id = #{modify_user_id} + or modify_time = #{modify_time} + or sts = #{sts} + or org_id = #{org_id} + or company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into mdm_module_distribute_detail( - - id , - mdm_id , - distribute_id , - api_id , - source_field , - source_name , - target_field , - target_name , - default_vaule , - source_field_path , - target_field_path , - target_path , - source_path , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - coordinate , - sts, - - )values( - - #{id} , - #{mdmId} , - #{distributeId} , - #{apiId} , - #{sourceField} , - #{sourceName} , - #{targetField} , - #{targetName} , - #{defaultVaule} , - #{sourceFieldPath} , - #{targetFieldPath} , - #{targetPath} , - #{sourcePath} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - #{coordinate} , - 'Y', - - ) - - - - insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, source_field, source_name, target_field, target_name, default_vaule, source_field_path, target_field_path, target_path, source_path, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, coordinate, sts) - values - - (#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.sourceField},#{entity.sourceName},#{entity.targetField},#{entity.targetName},#{entity.defaultVaule},#{entity.sourceFieldPath},#{entity.targetFieldPath},#{entity.targetPath},#{entity.sourcePath},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.coordinate}, 'Y') - - - - - insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, source_field, source_name, target_field, target_name, default_vaule, source_field_path, target_field_path, target_path, source_path, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, coordinate) - values - - (#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.sourceField},#{entity.sourceName},#{entity.targetField},#{entity.targetName},#{entity.defaultVaule},#{entity.sourceFieldPath},#{entity.targetFieldPath},#{entity.targetPath},#{entity.sourcePath},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.coordinate}) - - on duplicate key update - mdm_id = values(mdm_id), - distribute_id = values(distribute_id), - api_id = values(api_id), - source_field = values(source_field), - source_name = values(source_name), - target_field = values(target_field), - target_name = values(target_name), - default_vaule = values(default_vaule), - source_field_path = values(source_field_path), - target_field_path = values(target_field_path), - target_path = values(target_path), - source_path = values(source_path), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id), - coordinate = values(coordinate) - - -update mdm_module_distribute_detail set - - mdm_id = #{mdmId}, - distribute_id = #{distributeId}, - api_id = #{apiId}, - source_field = #{sourceField}, - source_name = #{sourceName}, - target_field = #{targetField}, - target_name = #{targetName}, - default_vaule = #{defaultVaule}, - source_field_path = #{sourceFieldPath}, - target_field_path = #{targetFieldPath}, - target_path = #{targetPath}, - source_path = #{sourcePath}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - coordinate = #{coordinate}, - -where id = #{id} - - - + + + insert into mdm_module_distribute_detail( + + id , + mdm_id , + distribute_id , + api_id , + data_type , + left_bracket , + filed_id , + filed_name , + compare_type , + filed_vaule , + connection_symbol , + right_parenthesis , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{distributeId} , + #{apiId} , + #{dataType} , + #{leftBracket} , + #{filedId} , + #{filedName} , + #{compareType} , + #{filedVaule} , + #{connectionSymbol} , + #{rightParenthesis} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_id, + filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedId},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + 'Y') + + + + + insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_id, + filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedId},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + distribute_id = values(distribute_id), + api_id = values(api_id), + data_type = values(data_type), + left_bracket = values(left_bracket), + filed_id = values(filed_id), + filed_name = values(filed_name), + compare_type = values(compare_type), + filed_vaule = values(filed_vaule), + connection_symbol = values(connection_symbol), + right_parenthesis = values(right_parenthesis), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + + + update mdm_module_distribute_detail set + + mdm_id = #{mdmId}, + distribute_id = #{distributeId}, + api_id = #{apiId}, + data_type = #{dataType}, + left_bracket = #{leftBracket}, + filed_id = #{filedId}, + filed_name = #{filedName}, + compare_type = #{compareType}, + filed_vaule = #{filedVaule}, + connection_symbol = #{connectionSymbol}, + right_parenthesis = #{rightParenthesis}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + + where id = #{id} + + + update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} where id = #{id} - - -update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and distribute_id = #{distributeId} - and api_id = #{apiId} - and source_field = #{sourceField} - and source_name = #{sourceName} - and target_field = #{targetField} - and target_name = #{targetName} - and default_vaule = #{defaultVaule} - and source_field_path = #{sourceFieldPath} - and target_field_path = #{targetFieldPath} - and target_path = #{targetPath} - and source_path = #{sourcePath} - and sorts = #{sorts} - and sts = #{sts} - and coordinate = #{coordinate} + + + update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = + #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and distribute_id = #{distributeId} + and api_id = #{apiId} + and data_type = #{dataType} + and left_bracket = #{leftBracket} + and filed_id = #{filedId} + and filed_name = #{filedName} + and compare_type = #{compareType} + and filed_vaule = #{filedVaule} + and connection_symbol = #{connectionSymbol} + + and right_parenthesis = #{rightParenthesis} + + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} and sts='Y' - - - - + + + + delete from mdm_module_distribute_detail where id = #{id} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/IMdmModuleDistributeDetailService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/IMdmModuleDistributeDetailService.java index 1239a232..cafa6b20 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/IMdmModuleDistributeDetailService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/IMdmModuleDistributeDetailService.java @@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService; * 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务接口 * * @author makejava - * @since 2023-11-07 09:11:31 + * @since 2024-06-19 10:34:58 */ public interface IMdmModuleDistributeDetailService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/impl/MdmModuleDistributeDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/impl/MdmModuleDistributeDetailServiceImpl.java index 71aef349..5957bc4c 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/impl/MdmModuleDistributeDetailServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeDetail/service/impl/MdmModuleDistributeDetailServiceImpl.java @@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService; * 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务实现类 * * @author makejava - * @since 2023-11-07 09:11:31 + * @since 2024-06-19 10:34:58 */ @Service(value = "mdmModuleDistributeDetailService") public class MdmModuleDistributeDetailServiceImpl extends BaseService implements IMdmModuleDistributeDetailService { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/IMdmModuleDistributeTripartiteDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/IMdmModuleDistributeTripartiteDao.java new file mode 100644 index 00000000..21591ebd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/IMdmModuleDistributeTripartiteDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao; + +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 主数据下发三方主键表(mdm_module_distribute_tripartite: table)表数据库访问层 + * + * @author makejava + * @since 2024-07-15 11:33:38 + */ +public interface IMdmModuleDistributeTripartiteDao extends IBaseDao { + + MdmModuleDistributeTripartiteEntity queryOneTripartite(MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity); +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/impl/MdmModuleDistributeTripartiteDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/impl/MdmModuleDistributeTripartiteDaoImpl.java new file mode 100644 index 00000000..eb975a55 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/dao/impl/MdmModuleDistributeTripartiteDaoImpl.java @@ -0,0 +1,22 @@ +package com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao.impl; + +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao.IMdmModuleDistributeTripartiteDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 主数据下发三方主键表(MdmModuleDistributeTripartite)表数据库访问层 + * + * @author makejava + * @since 2024-07-15 11:33:38 + */ +@Repository(value = "MdmModuleDistributeTripartiteDaoImpl") +public class MdmModuleDistributeTripartiteDaoImpl extends MybatisGenericDao implements IMdmModuleDistributeTripartiteDao{ + + @Override + public MdmModuleDistributeTripartiteEntity queryOneTripartite(MdmModuleDistributeTripartiteEntity entity) { + MdmModuleDistributeTripartiteEntity o = (MdmModuleDistributeTripartiteEntity) super.selectOne(getSqlIdPrifx() + "queryOneTripartite", entity); + return o; + } +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.java new file mode 100644 index 00000000..b6310ea8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.java @@ -0,0 +1,66 @@ +package com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 主数据下发三方主键表(MdmModuleDistributeTripartite)实体类 + * + * @author makejava + * @since 2024-07-15 11:33:39 + */ +public class MdmModuleDistributeTripartiteEntity extends BaseEntity { + + /** 公司id */ + private String companyId; + /** 主数据id */ + private String mdmId; + /** 数据id */ + private String dataId; + /** 应用id */ + private String appId; + /** 三方id */ + private String tripartiteId; + + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getMdmId() { + return mdmId; + } + + public void setMdmId(String mdmId) { + this.mdmId = mdmId; + } + + public String getDataId() { + return dataId; + } + + public void setDataId(String dataId) { + this.dataId = dataId; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getTripartiteId() { + return tripartiteId; + } + + public void setTripartiteId(String tripartiteId) { + this.tripartiteId = tripartiteId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.xml new file mode 100644 index 00000000..82a513a7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/entity/MdmModuleDistributeTripartiteEntity.xml @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + id + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + ,mdm_id + ,data_id + ,app_id + ,tripartite_id + + + + + + + + + + + + + + + + insert into mdm_module_distribute_tripartite( + + id , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + mdm_id , + data_id , + app_id , + tripartite_id , + sts, + + )values( + + #{id} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + #{mdmId} , + #{dataId} , + #{appId} , + #{tripartiteId} , + 'Y', + + ) + + + + insert into mdm_module_distribute_tripartite(create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, mdm_id, data_id, app_id, tripartite_id, sts) + values + + (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.mdmId},#{entity.dataId},#{entity.appId},#{entity.tripartiteId}, 'Y') + + + + + insert into mdm_module_distribute_tripartite(create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, mdm_id, data_id, app_id, tripartite_id) + values + + (#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.mdmId},#{entity.dataId},#{entity.appId},#{entity.tripartiteId}) + + on duplicate key update + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id), + mdm_id = values(mdm_id), + data_id = values(data_id), + app_id = values(app_id), + tripartite_id = values(tripartite_id) + + +update mdm_module_distribute_tripartite set + + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + mdm_id = #{mdmId}, + data_id = #{dataId}, + app_id = #{appId}, + tripartite_id = #{tripartiteId}, + +where id = #{id} + + + +update mdm_module_distribute_tripartite set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update mdm_module_distribute_tripartite set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and mdm_id = #{mdmId} + and data_id = #{dataId} + and app_id = #{appId} + and tripartite_id = #{tripartiteId} + and sts='Y' + + + + + delete from mdm_module_distribute_tripartite where id = #{id} + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/IMdmModuleDistributeTripartiteService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/IMdmModuleDistributeTripartiteService.java new file mode 100644 index 00000000..962b2cc3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/IMdmModuleDistributeTripartiteService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.mdm.mdmModuleDistributeTripartite.service; + +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 主数据下发三方主键表(MdmModuleDistributeTripartite)表服务接口 + * + * @author makejava + * @since 2024-07-15 11:33:39 + */ +public interface IMdmModuleDistributeTripartiteService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/impl/MdmModuleDistributeTripartiteServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/impl/MdmModuleDistributeTripartiteServiceImpl.java new file mode 100644 index 00000000..773679e7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleDistributeTripartite/service/impl/MdmModuleDistributeTripartiteServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.mdm.mdmModuleDistributeTripartite.service.impl; + +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao.IMdmModuleDistributeTripartiteDao; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.service.IMdmModuleDistributeTripartiteService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 主数据下发三方主键表(MdmModuleDistributeTripartite)表服务实现类 + * + * @author makejava + * @since 2024-07-15 11:33:39 + */ +@Service(value = "mdmModuleDistributeTripartiteService") +public class MdmModuleDistributeTripartiteServiceImpl extends BaseService implements IMdmModuleDistributeTripartiteService { + + private IMdmModuleDistributeTripartiteDao mdmModuleDistributeTripartiteDao; + + @Autowired + public void setMdmModuleDistributeTripartiteDao(IMdmModuleDistributeTripartiteDao dao) { + this.mdmModuleDistributeTripartiteDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/IMdmModuleOptionLogDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/IMdmModuleOptionLogDao.java new file mode 100644 index 00000000..a65bb1bc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/IMdmModuleOptionLogDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.mdm.mdmModuleOptionLog.dao; + +import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 主数据模版(mdm_module_option_log: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-05 16:10:31 + */ +public interface IMdmModuleOptionLogDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/impl/MdmModuleOptionLogDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/impl/MdmModuleOptionLogDaoImpl.java new file mode 100644 index 00000000..b0fc4626 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/dao/impl/MdmModuleOptionLogDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.mdm.mdmModuleOptionLog.dao.impl; + +import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity; +import com.hzya.frame.mdm.mdmModuleOptionLog.dao.IMdmModuleOptionLogDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 主数据模版(MdmModuleOptionLog)表数据库访问层 + * + * @author makejava + * @since 2024-06-05 16:10:31 + */ +@Repository(value = "MdmModuleOptionLogDaoImpl") +public class MdmModuleOptionLogDaoImpl extends MybatisGenericDao implements IMdmModuleOptionLogDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.java new file mode 100644 index 00000000..525fce33 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.java @@ -0,0 +1,124 @@ +package com.hzya.frame.mdm.mdmModuleOptionLog.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 主数据模版(MdmModuleOptionLog)实体类 + * + * @author makejava + * @since 2024-06-05 16:10:32 + */ +public class MdmModuleOptionLogEntity extends BaseEntity { + //主数据表名 + private String tableName; + //主数据编码 + private Long mdmCode; + /** 主表id */ + private String formmainId; + /** 来源名称 */ + private String sourceName; + /** 状态 1、成功2、失败 */ + private String dataType; + /** 备注 */ + private String remark; + /** 编码 */ + private String code; + /** source_data */ + private String sourceData; + /** 操作类型 */ + private String optionType; + /** 操作人 */ + private String optionName; + /** 公司id */ + private String companyId; + + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getSourceData() { + return sourceData; + } + + public void setSourceData(String sourceData) { + this.sourceData = sourceData; + } + + public String getOptionType() { + return optionType; + } + + public void setOptionType(String optionType) { + this.optionType = optionType; + } + + public String getOptionName() { + return optionName; + } + + public void setOptionName(String optionName) { + this.optionName = optionName; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public Long getMdmCode() { + return mdmCode; + } + + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; + } +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.xml new file mode 100644 index 00000000..c4df7ee5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleOptionLog/entity/MdmModuleOptionLogEntity.xml @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,formmain_id + ,source_name + ,data_type + ,code + ,remark + ,source_data + ,option_type + ,option_name + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + insert into ${tableName}( + + id , + formmain_id , + source_name , + data_type , + code , + remark , + source_data , + option_type , + option_name , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{formmainId} , + #{sourceName} , + #{dataType} , + #{code} , + #{remark} , + #{sourceData} , + #{optionType} , + #{optionName} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into ${tableName}(formmain_id, source_name,data_type, code,remark, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.formmainId},#{entity.sourceName},#{entity.dataType},#{entity.code},#{entity.remark},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into ${tableName}(formmain_id, source_name,data_type, code, remark, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.formmainId},#{entity.sourceName},#{entity.dataType},#{entity.code},#{entity.remark},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + formmain_id = values(formmain_id), + source_name = values(source_name), + data_type = values(data_type), + code = values(code), + remark = values(remark), + source_data = values(source_data), + option_type = values(option_type), + option_name = values(option_name), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update ${tableName} set + + formmain_id = #{formmainId}, + source_name = #{sourceName}, + data_type = #{dataType}, + code = #{code}, + remark = #{remark}, + source_data = #{sourceData}, + option_type = #{optionType}, + option_name = #{optionName}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and formmain_id = #{formmainId} + and source_name = #{sourceName} + and data_type = #{dataType} + and code = #{code} + and remark = #{remark} + and source_data = #{sourceData} + and option_type = #{optionType} + and option_name = #{optionName} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from ${tableName} where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/IMdmModuleRoleDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/IMdmModuleRoleDao.java deleted file mode 100644 index 405d975f..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/IMdmModuleRoleDao.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRole.dao; - -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; -import com.hzya.frame.basedao.dao.IBaseDao; - -/** - * 主数据功能角色表(mdm_module_role: table)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:32:25 - */ -public interface IMdmModuleRoleDao extends IBaseDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/impl/MdmModuleRoleDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/impl/MdmModuleRoleDaoImpl.java deleted file mode 100644 index 7a5b8602..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/dao/impl/MdmModuleRoleDaoImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRole.dao.impl; - -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; -import com.hzya.frame.mdm.mdmModuleRole.dao.IMdmModuleRoleDao; -import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; - -/** - * 主数据功能角色表(MdmModuleRole)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:32:25 - */ -@Repository(value = "MdmModuleRoleDaoImpl") -public class MdmModuleRoleDaoImpl extends MybatisGenericDao implements IMdmModuleRoleDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.java deleted file mode 100644 index 992ed5e7..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRole.entity; - -import java.util.Date; -import java.util.List; - -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.web.entity.BaseEntity; - -/** - * 主数据功能角色表(MdmModuleRole)实体类 - * - * @author makejava - * @since 2023-10-17 15:32:25 - */ -public class MdmModuleRoleEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 角色id - */ - private String roleId; - - //角色按钮 - private List mdmModuleRoleButtonEntities; - public String getMdmId() { - return mdmId; - } - - public void setMdmId(String mdmId) { - this.mdmId = mdmId; - } - - public String getRoleId() { - return roleId; - } - - public void setRoleId(String roleId) { - this.roleId = roleId; - } - - public List getMdmModuleRoleButtonEntities() { - return mdmModuleRoleButtonEntities; - } - - public void setMdmModuleRoleButtonEntities(List mdmModuleRoleButtonEntities) { - this.mdmModuleRoleButtonEntities = mdmModuleRoleButtonEntities; - } -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.xml deleted file mode 100644 index 33e1458a..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/entity/MdmModuleRoleEntity.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - id - ,mdm_id - ,role_id - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id - - - - - - - - - - - - - - - - insert into mdm_module_role( - - id , - mdm_id , - role_id , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{roleId} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_role(mdm_id, role_id, sorts, create_user_id, create_time, modify_user_id, modify_time, - sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.roleId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_role(mdm_id, role_id, sorts, create_user_id, create_time, modify_user_id, modify_time, - sts, org_id) - values - - (#{entity.mdmId},#{entity.roleId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - role_id = values(role_id), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_role set - - mdm_id = #{mdmId}, - role_id = #{roleId}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - -update mdm_module_role set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - - update mdm_module_role set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and role_id = #{roleId} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from mdm_module_role where id = #{id} - - - - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/IMdmModuleRoleService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/IMdmModuleRoleService.java deleted file mode 100644 index dfca9fc8..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/IMdmModuleRoleService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRole.service; - -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; -import com.hzya.frame.basedao.service.IBaseService; - -/** - * 主数据功能角色表(MdmModuleRole)表服务接口 - * - * @author makejava - * @since 2023-10-17 15:32:26 - */ -public interface IMdmModuleRoleService extends IBaseService { -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/impl/MdmModuleRoleServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/impl/MdmModuleRoleServiceImpl.java deleted file mode 100644 index da3d0b94..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRole/service/impl/MdmModuleRoleServiceImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRole.service.impl; - -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; -import com.hzya.frame.mdm.mdmModuleRole.dao.IMdmModuleRoleDao; -import com.hzya.frame.mdm.mdmModuleRole.service.IMdmModuleRoleService; -import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; - -import javax.annotation.Resource; - -import com.hzya.frame.basedao.service.impl.BaseService; - -/** - * 主数据功能角色表(MdmModuleRole)表服务实现类 - * - * @author makejava - * @since 2023-10-17 15:32:27 - */ -@Service(value = "mdmModuleRoleService") -public class MdmModuleRoleServiceImpl extends BaseService implements IMdmModuleRoleService { - - private IMdmModuleRoleDao mdmModuleRoleDao; - - @Autowired - public void setMdmModuleRoleDao(IMdmModuleRoleDao dao) { - this.mdmModuleRoleDao = dao; - this.dao = dao; - } -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/IMdmModuleRoleButtonDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/IMdmModuleRoleButtonDao.java deleted file mode 100644 index 37e5690a..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/IMdmModuleRoleButtonDao.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRoleButton.dao; - -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.basedao.dao.IBaseDao; - -/** - * 主数据功能角色按钮表(mdm_module_role_button: table)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:33:09 - */ -public interface IMdmModuleRoleButtonDao extends IBaseDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/impl/MdmModuleRoleButtonDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/impl/MdmModuleRoleButtonDaoImpl.java deleted file mode 100644 index 322c53e4..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/dao/impl/MdmModuleRoleButtonDaoImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRoleButton.dao.impl; - -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.mdm.mdmModuleRoleButton.dao.IMdmModuleRoleButtonDao; -import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; - -/** - * 主数据功能角色按钮表(MdmModuleRoleButton)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:33:10 - */ -@Repository(value = "MdmModuleRoleButtonDaoImpl") -public class MdmModuleRoleButtonDaoImpl extends MybatisGenericDao implements IMdmModuleRoleButtonDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.java deleted file mode 100644 index fa71faf2..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRoleButton.entity; - -import java.util.Date; -import java.util.List; - -import com.hzya.frame.sys.userRole.entity.UserRole; -import com.hzya.frame.web.entity.BaseEntity; - -/** - * 主数据功能角色按钮表(MdmModuleRoleButton)实体类 - * - * @author makejava - * @since 2023-10-17 15:33:10 - */ -public class MdmModuleRoleButtonEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 模块角色id - */ - private String moduleRoleId; - /** - * 角色id - */ - private String roleId; - /** - * 按钮类型 - */ - private String buttonType; - /** - * 按钮名 - */ - private String buttonName; - - /** - * 角色ids - */ - private List roleIds; - - public List getRoleIds() { - return roleIds; - } - - public void setRoleIds(List roleIds) { - this.roleIds = roleIds; - } - - public String getMdmId() { - return mdmId; - } - - public void setMdmId(String mdmId) { - this.mdmId = mdmId; - } - - public String getModuleRoleId() { - return moduleRoleId; - } - - public void setModuleRoleId(String moduleRoleId) { - this.moduleRoleId = moduleRoleId; - } - - public String getRoleId() { - return roleId; - } - - public void setRoleId(String roleId) { - this.roleId = roleId; - } - - public String getButtonType() { - return buttonType; - } - - public void setButtonType(String buttonType) { - this.buttonType = buttonType; - } - - public String getButtonName() { - return buttonName; - } - - public void setButtonName(String buttonName) { - this.buttonName = buttonName; - } - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.xml deleted file mode 100644 index cd3513cb..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/entity/MdmModuleRoleButtonEntity.xml +++ /dev/null @@ -1,271 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - id - ,mdm_id - ,module_role_id - ,role_id - ,button_type - ,button_name - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id - - - - - - - - - - - - - - - - insert into mdm_module_role_button( - - id , - mdm_id , - module_role_id , - role_id , - button_type , - button_name , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{moduleRoleId} , - #{roleId} , - #{buttonType} , - #{buttonName} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_role_button(mdm_id, module_role_id, role_id, button_type, button_name, sorts, - create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.moduleRoleId},#{entity.roleId},#{entity.buttonType},#{entity.buttonName},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_role_button(mdm_id, module_role_id, role_id, button_type, button_name, sorts, - create_user_id, create_time, modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.moduleRoleId},#{entity.roleId},#{entity.buttonType},#{entity.buttonName},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - module_role_id = values(module_role_id), - role_id = values(role_id), - button_type = values(button_type), - button_name = values(button_name), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_role_button set - - mdm_id = #{mdmId}, - module_role_id = #{moduleRoleId}, - role_id = #{roleId}, - button_type = #{buttonType}, - button_name = #{buttonName}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - -update mdm_module_role_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - - update mdm_module_role_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and module_role_id = #{moduleRoleId} - and role_id = #{roleId} - and button_type = #{buttonType} - and button_name = #{buttonName} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from mdm_module_role_button where id = #{id} - - - - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/IMdmModuleRoleButtonService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/IMdmModuleRoleButtonService.java deleted file mode 100644 index 3f956fd2..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/IMdmModuleRoleButtonService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRoleButton.service; - -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.basedao.service.IBaseService; - -/** - * 主数据功能角色按钮表(MdmModuleRoleButton)表服务接口 - * - * @author makejava - * @since 2023-10-17 15:33:11 - */ -public interface IMdmModuleRoleButtonService extends IBaseService { -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/impl/MdmModuleRoleButtonServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/impl/MdmModuleRoleButtonServiceImpl.java deleted file mode 100644 index bc5bfc73..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleRoleButton/service/impl/MdmModuleRoleButtonServiceImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleRoleButton.service.impl; - -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.mdm.mdmModuleRoleButton.dao.IMdmModuleRoleButtonDao; -import com.hzya.frame.mdm.mdmModuleRoleButton.service.IMdmModuleRoleButtonService; -import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; - -import javax.annotation.Resource; - -import com.hzya.frame.basedao.service.impl.BaseService; - -/** - * 主数据功能角色按钮表(MdmModuleRoleButton)表服务实现类 - * - * @author makejava - * @since 2023-10-17 15:33:12 - */ -@Service(value = "mdmModuleRoleButtonService") -public class MdmModuleRoleButtonServiceImpl extends BaseService implements IMdmModuleRoleButtonService { - - private IMdmModuleRoleButtonDao mdmModuleRoleButtonDao; - - @Autowired - public void setMdmModuleRoleButtonDao(IMdmModuleRoleButtonDao dao) { - this.mdmModuleRoleButtonDao = dao; - this.dao = dao; - } -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/IMdmModuleSendLogDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/IMdmModuleSendLogDao.java new file mode 100644 index 00000000..156977bb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/IMdmModuleSendLogDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.mdm.mdmModuleSendLog.dao; + +import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 主数据模版(mdm_module_send_log: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-05 16:11:09 + */ +public interface IMdmModuleSendLogDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/impl/MdmModuleSendLogDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/impl/MdmModuleSendLogDaoImpl.java new file mode 100644 index 00000000..9e59822d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/dao/impl/MdmModuleSendLogDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.mdm.mdmModuleSendLog.dao.impl; + +import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity; +import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 主数据模版(MdmModuleSendLog)表数据库访问层 + * + * @author makejava + * @since 2024-06-05 16:11:09 + */ +@Repository(value = "MdmModuleSendLogDaoImpl") +public class MdmModuleSendLogDaoImpl extends MybatisGenericDao implements IMdmModuleSendLogDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.java new file mode 100644 index 00000000..a6859873 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.java @@ -0,0 +1,143 @@ +package com.hzya.frame.mdm.mdmModuleSendLog.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 主数据模版(MdmModuleSendLog)实体类 + * + * @author makejava + * @since 2024-06-05 16:11:10 + */ +public class MdmModuleSendLogEntity extends BaseEntity { + //主数据表名 + private String tableName; + //主数据编码 + private Long mdmCode; + /** 主表id */ + private String formmainId; + /** 目标应用 */ + private String targetApp; + /** 目标api */ + private String targetApi; + /** 源数据 */ + private String sourceData; + /** 状态 1、成功2、失败 */ + private String dataType; + /** 备注 */ + private String remark; + /** 操作类型 1新增2、修改3、删除*/ + private String optionType; + /** 公司id */ + private String companyId; + /** 下发表id */ + private String distributeId; + /** 应用id */ + private String appId; + /** apiID */ + private String apiId; + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + public String getTargetApp() { + return targetApp; + } + + public void setTargetApp(String targetApp) { + this.targetApp = targetApp; + } + + public String getTargetApi() { + return targetApi; + } + + public void setTargetApi(String targetApi) { + this.targetApi = targetApi; + } + + public String getSourceData() { + return sourceData; + } + + public void setSourceData(String sourceData) { + this.sourceData = sourceData; + } + + public String getOptionType() { + return optionType; + } + + public void setOptionType(String optionType) { + this.optionType = optionType; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public Long getMdmCode() { + return mdmCode; + } + + public void setMdmCode(Long mdmCode) { + this.mdmCode = mdmCode; + } + + public String getDistributeId() { + return distributeId; + } + + public void setDistributeId(String distributeId) { + this.distributeId = distributeId; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getApiId() { + return apiId; + } + + public void setApiId(String apiId) { + this.apiId = apiId; + } +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.xml new file mode 100644 index 00000000..37718621 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSendLog/entity/MdmModuleSendLogEntity.xml @@ -0,0 +1,316 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,formmain_id + ,target_app + ,target_api + ,source_data + ,distribute_id + ,app_id + ,api_id + ,option_type + ,remark + ,data_type + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + insert into ${tableName}( + + id , + formmain_id , + target_app , + target_api , + source_data , + distribute_id , + app_id , + api_id , + option_type , + remark , + data_type , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{formmainId} , + #{targetApp} , + #{targetApi} , + #{sourceData} , + #{distributeId} , + #{appId} , + #{apiId} , + #{optionType} , + #{remark} , + #{dataType} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into ${tableName}(formmain_id, target_app, target_api, source_data,distribute_id,app_id,api_id, option_type,remark,data_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.distributeId},#{entity.appId},#{entity.apiId},#{entity.optionType},#{entity.remark},#{entity.dataType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into ${tableName}(formmain_id, target_app, target_api, source_data,distribute_id,app_id,api_id, option_type,remark,data_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.distributeId},#{entity.appId},#{entity.apiId},#{entity.optionType},#{entity.remark},#{entity.dataType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + formmain_id = values(formmain_id), + target_app = values(target_app), + target_api = values(target_api), + source_data = values(source_data), + distribute_id = values(distribute_id), + app_id = values(app_id), + api_id = values(api_id), + option_type = values(option_type), + remark = values(remark), + data_type = values(data_type), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update ${tableName} set + + formmain_id = #{formmainId}, + target_app = #{targetApp}, + target_api = #{targetApi}, + source_data = #{sourceData}, + distribute_id = #{distributeId}, + app_id = #{appId}, + api_id = #{apiId}, + option_type = #{optionType}, + remark = #{remark}, + data_type = #{dataType}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and formmain_id = #{formmainId} + and target_app = #{targetApp} + and target_api = #{targetApi} + and source_data = #{sourceData} + and distribute_id = #{distributeId} + and app_id = #{appId} + and api_id = #{apiId} + and option_type = #{optionType} + and remark = #{remark} + and data_type = #{dataType} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from ${tableName} where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/IMdmModuleSourceDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/IMdmModuleSourceDao.java new file mode 100644 index 00000000..6d290781 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/IMdmModuleSourceDao.java @@ -0,0 +1,25 @@ +package com.hzya.frame.mdm.mdmModuleSource.dao; + +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +import java.util.List; + +/** + * 主数据数据来源(mdm_module_source: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-19 09:11:50 + */ +public interface IMdmModuleSourceDao extends IBaseDao { + /** + * + * @content 根据数据来源内类型是插件的应用类型做分组 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/6 10:43 + * **/ + List MdmModuleSourceentityGroupByType(); +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/impl/MdmModuleSourceDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/impl/MdmModuleSourceDaoImpl.java new file mode 100644 index 00000000..3392fd01 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/dao/impl/MdmModuleSourceDaoImpl.java @@ -0,0 +1,27 @@ +package com.hzya.frame.mdm.mdmModuleSource.dao.impl; + +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * 主数据数据来源(MdmModuleSource)表数据库访问层 + * + * @author makejava + * @since 2024-06-19 09:11:50 + */ +@Repository(value = "MdmModuleSourceDaoImpl") +public class MdmModuleSourceDaoImpl extends MybatisGenericDao implements IMdmModuleSourceDao{ + + //根据数据来源内类型是插件的应用类型做分组 + @Override + public List MdmModuleSourceentityGroupByType() { + List list =(List) super.selectList(getSqlIdPrifx() + "queryMdmModuleSourceentityGroupByType", ""); + return list; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.java new file mode 100644 index 00000000..1267d9b6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.java @@ -0,0 +1,160 @@ +package com.hzya.frame.mdm.mdmModuleSource.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 主数据数据来源(MdmModuleSource)实体类 + * + * @author makejava + * @since 2024-06-19 09:11:50 + */ +public class MdmModuleSourceEntity extends BaseEntity { + + /** 主数据模版ID */ + private String mdmId; + /** 来源类型1、插件2、api */ + private String sourceType; + /** 来源应用 */ + private String sourceName; + /** 触发类型 1、手动 2、自动 */ + private String triggerType; + /** 来源编码 */ + private String sourceCode; + /** 新增接口 */ + private String addApi; + /** 修改接口 */ + private String updateApi; + /** 删除接口 */ + private String deleteApi; + /** 启用停用 0、停用1、启用 */ + private String enabledState; + /** 公司id */ + private String companyId; + private String pluginCode;//插件编码 + private String appType;//应用类型 + private String dbCode;//数据源编码 + private String appName;//应用名称 + private String mdmCode;//主数据编码 + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public String getMdmCode() { + return mdmCode; + } + + public void setMdmCode(String mdmCode) { + this.mdmCode = mdmCode; + } + + public String getAppType() { + return appType; + } + + public void setAppType(String appType) { + this.appType = appType; + } + + public String getDbCode() { + return dbCode; + } + + public void setDbCode(String dbCode) { + this.dbCode = dbCode; + } + + public String getPluginCode() { + return pluginCode; + } + + public void setPluginCode(String pluginCode) { + this.pluginCode = pluginCode; + } + + public String getMdmId() { + return mdmId; + } + + public void setMdmId(String mdmId) { + this.mdmId = mdmId; + } + + public String getSourceType() { + return sourceType; + } + + public void setSourceType(String sourceType) { + this.sourceType = sourceType; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public String getTriggerType() { + return triggerType; + } + + public void setTriggerType(String triggerType) { + this.triggerType = triggerType; + } + + public String getSourceCode() { + return sourceCode; + } + + public void setSourceCode(String sourceCode) { + this.sourceCode = sourceCode; + } + + public String getAddApi() { + return addApi; + } + + public void setAddApi(String addApi) { + this.addApi = addApi; + } + + public String getUpdateApi() { + return updateApi; + } + + public void setUpdateApi(String updateApi) { + this.updateApi = updateApi; + } + + public String getDeleteApi() { + return deleteApi; + } + + public void setDeleteApi(String deleteApi) { + this.deleteApi = deleteApi; + } + + public String getEnabledState() { + return enabledState; + } + + public void setEnabledState(String enabledState) { + this.enabledState = enabledState; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.xml new file mode 100644 index 00000000..6cb2b592 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/entity/MdmModuleSourceEntity.xml @@ -0,0 +1,336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,mdm_id + ,source_type + ,source_name + ,trigger_type + ,source_code + ,add_api + ,update_api + ,delete_api + ,enabled_state + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + + + + insert into mdm_module_source( + + id , + mdm_id , + source_type , + source_name , + trigger_type , + source_code , + add_api , + update_api , + delete_api , + enabled_state , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{sourceType} , + #{sourceName} , + #{triggerType} , + #{sourceCode} , + #{addApi} , + #{updateApi} , + #{deleteApi} , + #{enabledState} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_source(mdm_id, source_type, source_name, trigger_type, source_code, add_api, update_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.triggerType},#{entity.sourceCode},#{entity.addApi},#{entity.updateApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into mdm_module_source(mdm_id, source_type, source_name, trigger_type, source_code, add_api, update_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.triggerType},#{entity.sourceCode},#{entity.addApi},#{entity.updateApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + source_type = values(source_type), + source_name = values(source_name), + trigger_type = values(trigger_type), + source_code = values(source_code), + add_api = values(add_api), + update_api = values(update_api), + delete_api = values(delete_api), + enabled_state = values(enabled_state), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update mdm_module_source set + + mdm_id = #{mdmId}, + source_type = #{sourceType}, + source_name = #{sourceName}, + trigger_type = #{triggerType}, + source_code = #{sourceCode}, + add_api = #{addApi}, + update_api = #{updateApi}, + delete_api = #{deleteApi}, + enabled_state = #{enabledState}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update mdm_module_source set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update mdm_module_source set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and source_type = #{sourceType} + and source_name = #{sourceName} + and trigger_type = #{triggerType} + and source_code = #{sourceCode} + and add_api = #{addApi} + and update_api = #{updateApi} + and delete_api = #{deleteApi} + and enabled_state = #{enabledState} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from mdm_module_source where id = #{id} + + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/IMdmModuleSourceService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/IMdmModuleSourceService.java new file mode 100644 index 00000000..990da6bd --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/IMdmModuleSourceService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.mdm.mdmModuleSource.service; + +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 主数据数据来源(MdmModuleSource)表服务接口 + * + * @author makejava + * @since 2024-06-19 09:11:50 + */ +public interface IMdmModuleSourceService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/impl/MdmModuleSourceServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/impl/MdmModuleSourceServiceImpl.java new file mode 100644 index 00000000..206df786 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleSource/service/impl/MdmModuleSourceServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.mdm.mdmModuleSource.service.impl; + +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao; +import com.hzya.frame.mdm.mdmModuleSource.service.IMdmModuleSourceService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 主数据数据来源(MdmModuleSource)表服务实现类 + * + * @author makejava + * @since 2024-06-19 09:11:50 + */ +@Service(value = "mdmModuleSourceService") +public class MdmModuleSourceServiceImpl extends BaseService implements IMdmModuleSourceService { + + private IMdmModuleSourceDao mdmModuleSourceDao; + + @Autowired + public void setMdmModuleSourceDao(IMdmModuleSourceDao dao) { + this.mdmModuleSourceDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/IMdmModuleUserViewDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/IMdmModuleUserViewDao.java deleted file mode 100644 index 1e2f0494..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/IMdmModuleUserViewDao.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleUserView.dao; - -import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity; -import com.hzya.frame.basedao.dao.IBaseDao; - -/** - * 主数据用户视图表(mdm_module_user_view: table)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:33:47 - */ -public interface IMdmModuleUserViewDao extends IBaseDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/impl/MdmModuleUserViewDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/impl/MdmModuleUserViewDaoImpl.java deleted file mode 100644 index 37970aee..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/dao/impl/MdmModuleUserViewDaoImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleUserView.dao.impl; - -import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity; -import com.hzya.frame.mdm.mdmModuleUserView.dao.IMdmModuleUserViewDao; -import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; - -/** - * 主数据用户视图表(MdmModuleUserView)表数据库访问层 - * - * @author makejava - * @since 2023-10-17 15:33:47 - */ -@Repository(value = "MdmModuleUserViewDaoImpl") -public class MdmModuleUserViewDaoImpl extends MybatisGenericDao implements IMdmModuleUserViewDao { - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.java deleted file mode 100644 index 7a1ef8e3..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleUserView.entity; - -import java.util.Date; - -import com.hzya.frame.web.entity.BaseEntity; - -/** - * 主数据用户视图表(MdmModuleUserView)实体类 - * - * @author makejava - * @since 2023-10-17 15:33:48 - */ -public class MdmModuleUserViewEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 用户id - */ - private String userId; - /** - * 视图明细id - */ - private String viewDetailId; - - - public String getMdmId() { - return mdmId; - } - - public void setMdmId(String mdmId) { - this.mdmId = mdmId; - } - - public String getUserId() { - return userId; - } - - public void setUserId(String userId) { - this.userId = userId; - } - - public String getViewDetailId() { - return viewDetailId; - } - - public void setViewDetailId(String viewDetailId) { - this.viewDetailId = viewDetailId; - } - -} - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.xml deleted file mode 100644 index 4625f156..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/entity/MdmModuleUserViewEntity.xml +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - id - ,mdm_id - ,user_id - ,view_detail_id - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id - - - - - - - - - - - - - - - - insert into mdm_module_user_view( - - id , - mdm_id , - user_id , - view_detail_id , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{userId} , - #{viewDetailId} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_user_view(mdm_id, user_id, view_detail_id, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.userId},#{entity.viewDetailId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_user_view(mdm_id, user_id, view_detail_id, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.userId},#{entity.viewDetailId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - user_id = values(user_id), - view_detail_id = values(view_detail_id), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_user_view set - - mdm_id = #{mdmId}, - user_id = #{userId}, - view_detail_id = #{viewDetailId}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - -update mdm_module_user_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - - update mdm_module_user_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and user_id = #{userId} - and view_detail_id = #{viewDetailId} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from mdm_module_user_view where id = #{id} - - - - diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/IMdmModuleUserViewService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/IMdmModuleUserViewService.java deleted file mode 100644 index 05ee428b..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/IMdmModuleUserViewService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleUserView.service; - -import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity; -import com.hzya.frame.basedao.service.IBaseService; - -/** - * 主数据用户视图表(MdmModuleUserView)表服务接口 - * - * @author makejava - * @since 2023-10-17 15:33:48 - */ -public interface IMdmModuleUserViewService extends IBaseService { -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/impl/MdmModuleUserViewServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/impl/MdmModuleUserViewServiceImpl.java deleted file mode 100644 index d3984f4b..00000000 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleUserView/service/impl/MdmModuleUserViewServiceImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.hzya.frame.mdm.mdmModuleUserView.service.impl; - -import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity; -import com.hzya.frame.mdm.mdmModuleUserView.dao.IMdmModuleUserViewDao; -import com.hzya.frame.mdm.mdmModuleUserView.service.IMdmModuleUserViewService; -import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; - -import javax.annotation.Resource; - -import com.hzya.frame.basedao.service.impl.BaseService; - -/** - * 主数据用户视图表(MdmModuleUserView)表服务实现类 - * - * @author makejava - * @since 2023-10-17 15:33:49 - */ -@Service(value = "mdmModuleUserViewService") -public class MdmModuleUserViewServiceImpl extends BaseService implements IMdmModuleUserViewService { - - private IMdmModuleUserViewDao mdmModuleUserViewDao; - - @Autowired - public void setMdmModuleUserViewDao(IMdmModuleUserViewDao dao) { - this.mdmModuleUserViewDao = dao; - this.dao = dao; - } -} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/IMdmModuleViewDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/IMdmModuleViewDao.java index b9bedcc9..bf04e65d 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/IMdmModuleViewDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/IMdmModuleViewDao.java @@ -1,15 +1,17 @@ package com.hzya.frame.mdm.mdmModuleView.dao; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; /** * 主数据视图表(mdm_module_view: table)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:34:17 + * @since 2024-06-03 08:48:37 */ public interface IMdmModuleViewDao extends IBaseDao { + Integer queryUserMdm(MdmModuleViewEntity mdmModuleViewEntity); } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/impl/MdmModuleViewDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/impl/MdmModuleViewDaoImpl.java index c9a5af9f..cf3aace2 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/impl/MdmModuleViewDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/dao/impl/MdmModuleViewDaoImpl.java @@ -1,18 +1,26 @@ package com.hzya.frame.mdm.mdmModuleView.dao.impl; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; - /** * 主数据视图表(MdmModuleView)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:34:17 + * @since 2024-06-03 08:48:37 */ @Repository(value = "MdmModuleViewDaoImpl") -public class MdmModuleViewDaoImpl extends MybatisGenericDao implements IMdmModuleViewDao { +public class MdmModuleViewDaoImpl extends MybatisGenericDao implements IMdmModuleViewDao{ + + + + @Override + public Integer queryUserMdm(MdmModuleViewEntity mdmModuleViewEntity) { + Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "queryUserMdm", mdmModuleViewEntity); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.java index 83d451fd..e8232cc1 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.java @@ -1,34 +1,28 @@ package com.hzya.frame.mdm.mdmModuleView.entity; import java.util.Date; - import com.hzya.frame.web.entity.BaseEntity; - /** * 主数据视图表(MdmModuleView)实体类 * * @author makejava - * @since 2023-10-17 15:34:17 + * @since 2024-06-03 08:48:37 */ public class MdmModuleViewEntity extends BaseEntity { + + /** 主数据模版ID */ + private String mdmId; + /** 显示类型 1、树2、列表*/ + private String viewName; + /** 显示字段 */ + private String viewFiled; + /** 上级id字段 */ + private String upIdFiled; + /** 公司id */ + private String companyId; - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 显示类型 1、树 2、列表 - */ - private String viewName; - /** - * 显示字段 - */ - private String viewFiled; - /** - * 上级id字段 - */ - private String upIdFiled; - + /** 数据类型 1、新增 2、修改 */ + private String dataType; public String getMdmId() { return mdmId; @@ -62,5 +56,20 @@ public class MdmModuleViewEntity extends BaseEntity { this.upIdFiled = upIdFiled; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.xml index f9e2717c..f6af148b 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/entity/MdmModuleViewEntity.xml @@ -2,22 +2,23 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + id ,mdm_id ,view_name @@ -30,220 +31,221 @@ ,modify_time ,sts ,org_id + ,company_id - - + select + + from mdm_module_view + + and id = #{id} + and mdm_id = #{mdmId} + and view_name = #{viewName} + and view_filed = #{viewFiled} + and up_id_filed = #{upIdFiled} + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from mdm_module_view + + and id like concat('%',#{id},'%') + and mdm_id like concat('%',#{mdmId},'%') + and view_name like concat('%',#{viewName},'%') + and view_filed like concat('%',#{viewFiled},'%') + and up_id_filed like concat('%',#{upIdFiled},'%') + and sorts like concat('%',#{sorts},'%') + and create_user_id like concat('%',#{create_user_id},'%') + and create_time like concat('%',#{create_time},'%') + and modify_user_id like concat('%',#{modify_user_id},'%') + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from mdm_module_view + + or id = #{id} + or mdm_id = #{mdmId} + or view_name = #{viewName} + or view_filed = #{viewFiled} + or up_id_filed = #{upIdFiled} + or sorts = #{sorts} + or create_user_id = #{create_user_id} + or create_time = #{create_time} + or modify_user_id = #{modify_user_id} + or modify_time = #{modify_time} + or sts = #{sts} + or org_id = #{org_id} + or company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into mdm_module_view( - - id , - mdm_id , - view_name , - view_filed , - up_id_filed , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{viewName} , - #{viewFiled} , - #{upIdFiled} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - view_name = values(view_name), - view_filed = values(view_filed), - up_id_filed = values(up_id_filed), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_view set - - mdm_id = #{mdmId}, - view_name = #{viewName}, - view_filed = #{viewFiled}, - up_id_filed = #{upIdFiled}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - + + + insert into mdm_module_view( + + id , + mdm_id , + view_name , + view_filed , + up_id_filed , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{viewName} , + #{viewFiled} , + #{upIdFiled} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + view_name = values(view_name), + view_filed = values(view_filed), + up_id_filed = values(up_id_filed), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update mdm_module_view set + + mdm_id = #{mdmId}, + view_name = #{viewName}, + view_filed = #{viewFiled}, + up_id_filed = #{upIdFiled}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} where id = #{id} - - - update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and view_name = #{viewName} - and view_filed = #{viewFiled} - and up_id_filed = #{upIdFiled} - and sorts = #{sorts} - and sts = #{sts} + + +update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and view_name = #{viewName} + and view_filed = #{viewFiled} + and up_id_filed = #{upIdFiled} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} and sts='Y' - - - - + + + + delete from mdm_module_view where id = #{id} - + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/IMdmModuleViewService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/IMdmModuleViewService.java index ffcd3338..5a9399ff 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/IMdmModuleViewService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/IMdmModuleViewService.java @@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleView.service; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; import com.hzya.frame.basedao.service.IBaseService; - /** * 主数据视图表(MdmModuleView)表服务接口 * * @author makejava - * @since 2023-10-17 15:34:18 + * @since 2024-06-03 08:48:37 */ -public interface IMdmModuleViewService extends IBaseService { +public interface IMdmModuleViewService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/impl/MdmModuleViewServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/impl/MdmModuleViewServiceImpl.java index 7029f030..7bc7b2f5 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/impl/MdmModuleViewServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleView/service/impl/MdmModuleViewServiceImpl.java @@ -3,27 +3,24 @@ package com.hzya.frame.mdm.mdmModuleView.service.impl; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; import com.hzya.frame.mdm.mdmModuleView.service.IMdmModuleViewService; -import org.springframework.stereotype.Service; +import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; - import javax.annotation.Resource; - import com.hzya.frame.basedao.service.impl.BaseService; - /** * 主数据视图表(MdmModuleView)表服务实现类 * * @author makejava - * @since 2023-10-17 15:34:19 + * @since 2024-06-03 08:48:37 */ @Service(value = "mdmModuleViewService") public class MdmModuleViewServiceImpl extends BaseService implements IMdmModuleViewService { - + private IMdmModuleViewDao mdmModuleViewDao; - + @Autowired - public void setMdmModuleViewDao(IMdmModuleViewDao dao) { - this.mdmModuleViewDao = dao; - this.dao = dao; - } + public void setMdmModuleViewDao(IMdmModuleViewDao dao) { + this.mdmModuleViewDao = dao; + this.dao = dao; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/IMdmModuleViewButtonDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/IMdmModuleViewButtonDao.java new file mode 100644 index 00000000..66472d77 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/IMdmModuleViewButtonDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.mdm.mdmModuleViewButton.dao; + +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 主数据视图按钮表(mdm_module_view_button: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-03 08:48:46 + */ +public interface IMdmModuleViewButtonDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/impl/MdmModuleViewButtonDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/impl/MdmModuleViewButtonDaoImpl.java new file mode 100644 index 00000000..6d790b3e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/dao/impl/MdmModuleViewButtonDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.mdm.mdmModuleViewButton.dao.impl; + +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 主数据视图按钮表(MdmModuleViewButton)表数据库访问层 + * + * @author makejava + * @since 2024-06-03 08:48:46 + */ +@Repository(value = "MdmModuleViewButtonDaoImpl") +public class MdmModuleViewButtonDaoImpl extends MybatisGenericDao implements IMdmModuleViewButtonDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.java new file mode 100644 index 00000000..19949393 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.java @@ -0,0 +1,74 @@ +package com.hzya.frame.mdm.mdmModuleViewButton.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 主数据视图按钮表(MdmModuleViewButton)实体类 + * + * @author makejava + * @since 2024-06-03 08:48:46 + */ +public class MdmModuleViewButtonEntity extends BaseEntity { + + /** 主数据模版ID */ + private String mdmId; + /** 视图id */ + private String viewId; + /** 类型1、新建2、重置3、查询4、修改 5、删除 6、查看 7、下发 */ + private String buttonType; + /** 按钮值 */ + private String buttonValue; + /** 公司id */ + private String companyId; + + /** 数据类型 1、新增 2、修改 */ + private String dataType; + public String getMdmId() { + return mdmId; + } + + public void setMdmId(String mdmId) { + this.mdmId = mdmId; + } + + public String getViewId() { + return viewId; + } + + public void setViewId(String viewId) { + this.viewId = viewId; + } + + public String getButtonType() { + return buttonType; + } + + public void setButtonType(String buttonType) { + this.buttonType = buttonType; + } + + public String getButtonValue() { + return buttonValue; + } + + public void setButtonValue(String buttonValue) { + this.buttonValue = buttonValue; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } +} + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.xml new file mode 100644 index 00000000..e13d7aa0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/entity/MdmModuleViewButtonEntity.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + id + ,mdm_id + ,view_id + ,button_type + ,button_value + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + insert into mdm_module_view_button( + + id , + mdm_id , + view_id , + button_type , + button_value , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{viewId} , + #{buttonType} , + #{buttonValue} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_view_button(mdm_id, view_id, button_type, button_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.viewId},#{entity.buttonType},#{entity.buttonValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into mdm_module_view_button(mdm_id, view_id, button_type, button_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.viewId},#{entity.buttonType},#{entity.buttonValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + view_id = values(view_id), + button_type = values(button_type), + button_value = values(button_value), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update mdm_module_view_button set + + mdm_id = #{mdmId}, + view_id = #{viewId}, + button_type = #{buttonType}, + button_value = #{buttonValue}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update mdm_module_view_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update mdm_module_view_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and view_id = #{viewId} + and button_type = #{buttonType} + and button_value = #{buttonValue} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from mdm_module_view_button where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/IMdmModuleViewButtonService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/IMdmModuleViewButtonService.java new file mode 100644 index 00000000..b5e0ce7e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/IMdmModuleViewButtonService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.mdm.mdmModuleViewButton.service; + +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 主数据视图按钮表(MdmModuleViewButton)表服务接口 + * + * @author makejava + * @since 2024-06-03 08:48:46 + */ +public interface IMdmModuleViewButtonService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/impl/MdmModuleViewButtonServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/impl/MdmModuleViewButtonServiceImpl.java new file mode 100644 index 00000000..5b05c552 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewButton/service/impl/MdmModuleViewButtonServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.mdm.mdmModuleViewButton.service.impl; + +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao; +import com.hzya.frame.mdm.mdmModuleViewButton.service.IMdmModuleViewButtonService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 主数据视图按钮表(MdmModuleViewButton)表服务实现类 + * + * @author makejava + * @since 2024-06-03 08:48:46 + */ +@Service(value = "mdmModuleViewButtonService") +public class MdmModuleViewButtonServiceImpl extends BaseService implements IMdmModuleViewButtonService { + + private IMdmModuleViewButtonDao mdmModuleViewButtonDao; + + @Autowired + public void setMdmModuleViewButtonDao(IMdmModuleViewButtonDao dao) { + this.mdmModuleViewButtonDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/IMdmModuleViewDetailDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/IMdmModuleViewDetailDao.java index c5623fb1..248da365 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/IMdmModuleViewDetailDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/IMdmModuleViewDetailDao.java @@ -1,13 +1,13 @@ package com.hzya.frame.mdm.mdmModuleViewDetail.dao; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; /** * 主数据视图明细表(mdm_module_view_detail: table)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:34:58 + * @since 2024-06-03 08:48:55 */ public interface IMdmModuleViewDetailDao extends IBaseDao { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/impl/MdmModuleViewDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/impl/MdmModuleViewDetailDaoImpl.java index 4dd7e229..4b692a49 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/impl/MdmModuleViewDetailDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/dao/impl/MdmModuleViewDetailDaoImpl.java @@ -4,15 +4,14 @@ import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; - /** * 主数据视图明细表(MdmModuleViewDetail)表数据库访问层 * * @author makejava - * @since 2023-10-17 15:34:58 + * @since 2024-06-03 08:48:55 */ @Repository(value = "MdmModuleViewDetailDaoImpl") -public class MdmModuleViewDetailDaoImpl extends MybatisGenericDao implements IMdmModuleViewDetailDao { - +public class MdmModuleViewDetailDaoImpl extends MybatisGenericDao implements IMdmModuleViewDetailDao{ + } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.java index c9151239..5b5295d9 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.java @@ -1,34 +1,29 @@ package com.hzya.frame.mdm.mdmModuleViewDetail.entity; import java.util.Date; - import com.hzya.frame.web.entity.BaseEntity; - /** * 主数据视图明细表(MdmModuleViewDetail)实体类 * * @author makejava - * @since 2023-10-17 15:34:59 + * @since 2024-06-03 08:48:55 */ public class MdmModuleViewDetailEntity extends BaseEntity { - - /** - * 主数据模版ID - */ - private String mdmId; - /** - * 视图id - */ - private String viewId; - /** - * 字段 id - */ - private String viewFiled; - /** - * 类型1、查询2、列表3、新增4、修改 5、查看 - */ - private String viewType; - + + /** 主数据模版ID */ + private String mdmId; + /** 视图id */ + private String viewId; + /** 字段 */ + private String viewFiled; + /** 字段 */ + private String viewName; + /** 类型1、查询2、列表3、新增4、修改 5、查看 */ + private String viewType; + /** 公司id */ + private String companyId; + /** 数据类型 1、新增 2、修改 */ + private String dataType; public String getMdmId() { return mdmId; @@ -62,5 +57,28 @@ public class MdmModuleViewDetailEntity extends BaseEntity { this.viewType = viewType; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public String getViewName() { + return viewName; + } + + public void setViewName(String viewName) { + this.viewName = viewName; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.xml index 4728615a..1b61a2da 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/entity/MdmModuleViewDetailEntity.xml @@ -2,23 +2,23 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + id ,mdm_id ,view_id @@ -31,219 +31,211 @@ ,modify_time ,sts ,org_id + ,company_id - - + select + + from mdm_module_view_detail + + and id = #{id} + and mdm_id = #{mdmId} + and view_id = #{viewId} + and view_filed = #{viewFiled} + and view_type = #{viewType} + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from mdm_module_view_detail + + and id like concat('%',#{id},'%') + and mdm_id like concat('%',#{mdmId},'%') + and view_id like concat('%',#{viewId},'%') + and view_filed like concat('%',#{viewFiled},'%') + and view_type like concat('%',#{viewType},'%') + and sorts like concat('%',#{sorts},'%') + and create_user_id like concat('%',#{create_user_id},'%') + and create_time like concat('%',#{create_time},'%') + and modify_user_id like concat('%',#{modify_user_id},'%') + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from mdm_module_view_detail + + or id = #{id} + or mdm_id = #{mdmId} + or view_id = #{viewId} + or view_filed = #{viewFiled} + or view_type = #{viewType} + or sorts = #{sorts} + or create_user_id = #{create_user_id} + or create_time = #{create_time} + or modify_user_id = #{modify_user_id} + or modify_time = #{modify_time} + or sts = #{sts} + or org_id = #{org_id} + or company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into mdm_module_view_detail( - - id , - mdm_id , - view_id , - view_filed , - view_type , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sts, - - )values( - - #{id} , - #{mdmId} , - #{viewId} , - #{viewFiled} , - #{viewType} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - - 'Y', - - ) - - - - insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id, sts) - values - - (#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time, - modify_user_id, modify_time, sts, org_id) - values - - (#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - mdm_id = values(mdm_id), - view_id = values(view_id), - view_filed = values(view_filed), - view_type = values(view_type), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update mdm_module_view_detail set - - mdm_id = #{mdmId}, - view_id = #{viewId}, - view_filed = #{viewFiled}, - view_type = #{viewType}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - + + + insert into mdm_module_view_detail( + + id , + mdm_id , + view_id , + view_filed , + view_type , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{mdmId} , + #{viewId} , + #{viewFiled} , + #{viewType} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + mdm_id = values(mdm_id), + view_id = values(view_id), + view_filed = values(view_filed), + view_type = values(view_type), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update mdm_module_view_detail set + + mdm_id = #{mdmId}, + view_id = #{viewId}, + view_filed = #{viewFiled}, + view_type = #{viewType}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} where id = #{id} - - - update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and mdm_id = #{mdmId} - and view_id = #{viewId} - and view_filed = #{viewFiled} - and view_type = #{viewType} - and sorts = #{sorts} - and sts = #{sts} + + +update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and mdm_id = #{mdmId} + and view_id = #{viewId} + and view_filed = #{viewFiled} + and view_type = #{viewType} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} and sts='Y' - - - - + + + + delete from mdm_module_view_detail where id = #{id} diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/IMdmModuleViewDetailService.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/IMdmModuleViewDetailService.java index cf055f0a..cea4b1dc 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/IMdmModuleViewDetailService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/IMdmModuleViewDetailService.java @@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleViewDetail.service; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import com.hzya.frame.basedao.service.IBaseService; - /** * 主数据视图明细表(MdmModuleViewDetail)表服务接口 * * @author makejava - * @since 2023-10-17 15:35:00 + * @since 2024-06-03 08:48:55 */ -public interface IMdmModuleViewDetailService extends IBaseService { +public interface IMdmModuleViewDetailService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/impl/MdmModuleViewDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/impl/MdmModuleViewDetailServiceImpl.java index fb83c460..34ffa328 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/impl/MdmModuleViewDetailServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmModuleViewDetail/service/impl/MdmModuleViewDetailServiceImpl.java @@ -3,27 +3,24 @@ package com.hzya.frame.mdm.mdmModuleViewDetail.service.impl; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao; import com.hzya.frame.mdm.mdmModuleViewDetail.service.IMdmModuleViewDetailService; -import org.springframework.stereotype.Service; +import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; - import javax.annotation.Resource; - import com.hzya.frame.basedao.service.impl.BaseService; - /** * 主数据视图明细表(MdmModuleViewDetail)表服务实现类 * * @author makejava - * @since 2023-10-17 15:35:00 + * @since 2024-06-03 08:48:55 */ @Service(value = "mdmModuleViewDetailService") public class MdmModuleViewDetailServiceImpl extends BaseService implements IMdmModuleViewDetailService { - + private IMdmModuleViewDetailDao mdmModuleViewDetailDao; - + @Autowired - public void setMdmModuleViewDetailDao(IMdmModuleViewDetailDao dao) { - this.mdmModuleViewDetailDao = dao; - this.dao = dao; - } + public void setMdmModuleViewDetailDao(IMdmModuleViewDetailDao dao) { + this.mdmModuleViewDetailDao = dao; + this.dao = dao; + } } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/IMdmTableCodeRuleDao.java b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/IMdmTableCodeRuleDao.java index a900d337..bf6031ad 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/IMdmTableCodeRuleDao.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/IMdmTableCodeRuleDao.java @@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao; * 模版数据表编码规则表(mdm_table_code_rule: table)表数据库访问层 * * @author makejava - * @since 2023-11-06 16:12:34 + * @since 2024-06-03 10:56:13 */ public interface IMdmTableCodeRuleDao extends IBaseDao { diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/impl/MdmTableCodeRuleDaoImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/impl/MdmTableCodeRuleDaoImpl.java index b7452719..3f47ae31 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/impl/MdmTableCodeRuleDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/dao/impl/MdmTableCodeRuleDaoImpl.java @@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao; * 模版数据表编码规则表(MdmTableCodeRule)表数据库访问层 * * @author makejava - * @since 2023-11-06 16:12:35 + * @since 2024-06-03 10:56:13 */ @Repository(value = "MdmTableCodeRuleDaoImpl") public class MdmTableCodeRuleDaoImpl extends MybatisGenericDao implements IMdmTableCodeRuleDao{ diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.java b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.java index cca012ab..0b5c0531 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.java @@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity; * 模版数据表编码规则表(MdmTableCodeRule)实体类 * * @author makejava - * @since 2023-11-06 16:12:35 + * @since 2024-06-03 10:56:13 */ public class MdmTableCodeRuleEntity extends BaseEntity { @@ -16,12 +16,14 @@ public class MdmTableCodeRuleEntity extends BaseEntity { private String dbId; /** 规则 */ private String dbName; - /** 类型 1、连接符号 2、字符串 3、日期 4、流水号 */ + /** 类型 1、固定值 2、日期 3、流水 */ private String dbType; /** 备注 */ private String remark; /** 规则值 */ private String dbValue; + /** 公司id */ + private String companyId; public String getMdmId() { @@ -72,5 +74,13 @@ public class MdmTableCodeRuleEntity extends BaseEntity { this.dbValue = dbValue; } + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.xml b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.xml index 759eaf5f..20bf14eb 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.xml +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/entity/MdmTableCodeRuleEntity.xml @@ -9,6 +9,7 @@ + @@ -16,7 +17,7 @@ - + @@ -26,6 +27,7 @@ ,db_name ,db_type ,remark + ,db_value ,sorts ,create_user_id ,create_time @@ -33,7 +35,7 @@ ,modify_time ,sts ,org_id - ,db_value + ,company_id - + insert into mdm_table_code_rule( id , @@ -147,6 +153,7 @@ db_name , db_type , remark , + db_value , sorts , create_user_id , create_time , @@ -154,7 +161,7 @@ modify_time , sts , org_id , - db_value , + company_id , sts, )values( @@ -165,6 +172,7 @@ #{dbName} , #{dbType} , #{remark} , + #{dbValue} , #{sorts} , #{create_user_id} , #{create_time} , @@ -172,25 +180,25 @@ #{modify_time} , #{sts} , #{org_id} , - #{dbValue} , + #{companyId} , 'Y', ) - - insert into mdm_table_code_rule(mdm_id, db_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, db_value, sts) + + insert into mdm_table_code_rule(mdm_id, db_id, db_name, db_type, remark, db_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) values - (#{entity.mdmId},#{entity.dbId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.dbValue}, 'Y') + (#{entity.mdmId},#{entity.dbId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.dbValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - - insert into mdm_table_code_rule(mdm_id, db_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, db_value) + + insert into mdm_table_code_rule(mdm_id, db_id, db_name, db_type, remark, db_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) values - (#{entity.mdmId},#{entity.dbId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.dbValue}) + (#{entity.mdmId},#{entity.dbId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.dbValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) on duplicate key update mdm_id = values(mdm_id), @@ -198,14 +206,14 @@ db_name = values(db_name), db_type = values(db_type), remark = values(remark), - sorts = values(sorts), + db_value = values(db_value), create_user_id = values(create_user_id), create_time = values(create_time), modify_user_id = values(modify_user_id), modify_time = values(modify_time), sts = values(sts), org_id = values(org_id), - db_value = values(db_value) + company_id = values(company_id) update mdm_table_code_rule set @@ -215,14 +223,14 @@ update mdm_table_code_rule set db_name = #{dbName}, db_type = #{dbType}, remark = #{remark}, - sorts = #{sorts}, + db_value = #{dbValue}, create_user_id = #{create_user_id}, create_time = #{create_time}, modify_user_id = #{modify_user_id}, modify_time = #{modify_time}, sts = #{sts}, org_id = #{org_id}, - db_value = #{dbValue}, + company_id = #{companyId}, where id = #{id} @@ -241,9 +249,10 @@ update mdm_table_code_rule set sts= 'N' ,modify_time = #{modify_time},modify_us and db_name = #{dbName} and db_type = #{dbType} and remark = #{remark} + and db_value = #{dbValue} and sorts = #{sorts} and sts = #{sts} - and db_value = #{dbValue} + and company_id = #{companyId} and sts='Y' diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/IMdmTableCodeRuleService.java b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/IMdmTableCodeRuleService.java index d1872516..17dbe140 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/IMdmTableCodeRuleService.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/IMdmTableCodeRuleService.java @@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService; * 模版数据表编码规则表(MdmTableCodeRule)表服务接口 * * @author makejava - * @since 2023-11-06 16:12:35 + * @since 2024-06-03 10:56:13 */ public interface IMdmTableCodeRuleService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/impl/MdmTableCodeRuleServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/impl/MdmTableCodeRuleServiceImpl.java index e2020e70..314a261a 100644 --- a/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/impl/MdmTableCodeRuleServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/mdmTableCodeRule/service/impl/MdmTableCodeRuleServiceImpl.java @@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService; * 模版数据表编码规则表(MdmTableCodeRule)表服务实现类 * * @author makejava - * @since 2023-11-06 16:12:35 + * @since 2024-06-03 10:56:13 */ @Service(value = "mdmTableCodeRuleService") public class MdmTableCodeRuleServiceImpl extends BaseService implements IMdmTableCodeRuleService { diff --git a/service/src/main/java/com/hzya/frame/mdm/service/IMdmService.java b/service/src/main/java/com/hzya/frame/mdm/service/IMdmService.java index 6a3e4754..fff31302 100644 --- a/service/src/main/java/com/hzya/frame/mdm/service/IMdmService.java +++ b/service/src/main/java/com/hzya/frame/mdm/service/IMdmService.java @@ -1,150 +1,16 @@ package com.hzya.frame.mdm.service; import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.mdm.entity.MdmDataFiledDto; import com.hzya.frame.web.entity.JsonResultEntity; +import java.util.List; + /** * 主数据服务接口 */ public interface IMdmService { - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据列表查询接口分页 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmPage(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据列表查询接口列表 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmList(JSONObject jsonObject); - - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据基本信息 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModule(JSONObject jsonObject); - - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据基本信息保存 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity doSaveMdmModule(JSONObject jsonObject); - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleDb(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源的服务 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleServer(JSONObject jsonObject); - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源字段的服务 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleServerFiled(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询主表字段 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleServerMainFiled(JSONObject jsonObject); - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存数据源 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity saveMdmModuleDb(JSONObject jsonObject); - - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询显示信息 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleView(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置修改显示信息 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity doSaveMdmModuleView(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询权限配置 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleRule(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存权限配置 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity doSaveMdmModuleRule(JSONObject jsonObject); - - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询分发设置 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmModuleDistribute(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存分发设置 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity doSaveMdmModuleDistribute(JSONObject jsonObject); - /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -153,7 +19,7 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity queryMdmShow(JSONObject jsonObject); - + // /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -178,15 +44,15 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity queryMdmShowData(JSONObject jsonObject); - - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据业务数据 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmShowDistribute(JSONObject jsonObject); + // + ///** + // * @param jsonObject + // * @return com.hzya.frame.web.entity.JsonResultEntity + // * @Author lvleigang + // * @Description 主数据业务数据 + // * @Date 9:40 上午 2023/10/18 + // **/ + //JsonResultEntity queryMdmShowDistribute(JSONObject jsonObject); /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -195,15 +61,15 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject); - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据业务数据树结构 - * @Date 9:40 上午 2023/10/18 - **/ - JsonResultEntity queryMdmOptionData(JSONObject jsonObject); - + ///** + // * @param jsonObject + // * @return com.hzya.frame.web.entity.JsonResultEntity + // * @Author lvleigang + // * @Description 主数据业务数据树结构 + // * @Date 9:40 上午 2023/10/18 + // **/ + //JsonResultEntity queryMdmOptionData(JSONObject jsonObject); + // /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -212,7 +78,7 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity queryMdmShowDetails(JSONObject jsonObject); - + // /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -221,7 +87,7 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity queryMdmShowDetailsData(JSONObject jsonObject); - + // /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -247,7 +113,6 @@ public interface IMdmService { * @Date 9:40 上午 2023/10/18 **/ JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject); - /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -255,6 +120,16 @@ public interface IMdmService { * @Description 处理分发数据 * @Date 9:40 上午 2023/10/18 **/ - JsonResultEntity doMdmDistribute(JSONObject jsonObject); - + JsonResultEntity doMdmDistribute(JSONObject jsonObject) throws Exception; + /** + * @Author lvleigang + * @Description 修改树结构的下级以及其他使用地方数据 + * @Date 9:12 上午 2024/8/2 + * @param mdmId 主数据mdmId + * @param tableName 主数据的表名 + * @param id 数据id + * @param mdmDataFiledDtos 数据 + * @return void + **/ + void updateTreeUseData(String mdmId, String tableName, String id, List mdmDataFiledDtos); } diff --git a/service/src/main/java/com/hzya/frame/mdm/service/IMdmServiceCache.java b/service/src/main/java/com/hzya/frame/mdm/service/IMdmServiceCache.java new file mode 100644 index 00000000..ef527337 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/service/IMdmServiceCache.java @@ -0,0 +1,106 @@ +package com.hzya.frame.mdm.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; +import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.cache.annotation.CacheEvict; +import org.springframework.cache.annotation.Cacheable; + +import java.util.List; + +/** + * 主数据服务接口 + */ +public interface IMdmServiceCache { + + /** + * @Author lvleigang + * @Description 获取模版主表 + * @Date 10:13 上午 2024/6/3 + * @param mdmCode + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + MdmModuleEntity getMdmModuleEntity(Long mdmCode); + + /** + * @Author lvleigang + * @Description 修改模版主表 + * @Date 10:13 上午 2024/6/3 + * @param entity + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + void updateMdmModuleEntity(MdmModuleEntity entity); + + /** + * @Author lvleigang + * @Description 删除模版主表 + * @Date 10:13 上午 2024/6/3 + * @param entity + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + void deleteMdmModuleEntity(MdmModuleEntity entity); + /** + * @Author lvleigang + * @Description 获取模版表数据 + * @Date 10:13 上午 2024/6/3 + * @param queryDb + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + List queryMdmModuleDb(MdmModuleDbEntity queryDb); + + /** + * @Author lvleigang + * @Description 修改模版表数据 + * @Date 4:23 下午 2024/6/11 + * @param mdmId + * @param mdmModuleDbEntities + * @return void + **/ + void saveOrUpdateMdmModuleDb(String mdmId, List mdmModuleDbEntities); + + + /** + * @Author lvleigang + * @Description 删除模版表数据 + * @Date 4:23 下午 2024/6/11 + * @param mdmId + * @return void + **/ + void deleteMdmModuleDb(String mdmId,String dbID); + /** + * @Author lvleigang + * @Description 获取模版字段表数据 + * @Date 10:13 上午 2024/6/3 + * @param queryDbFiled + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + List queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled); + + /** + * @Author lvleigang + * @Description 修改数据源db的字段 + * @Date 4:25 下午 2024/6/11 + * @param mdmId + * @param mdmModuleDbFiledsEntities + * @return void + **/ + void saveOrUpdateMdmModuleDbFileds(String mdmId, List mdmModuleDbFiledsEntities); + /** + * @Author lvleigang + * @Description 删除数据源db的字段 + * @Date 4:25 下午 2024/6/11 + * @param mdmId + * @return void + **/ + void deleteMdmModuleDbFileds(String mdmId,String dbID); +} diff --git a/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceCache.java b/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceCache.java new file mode 100644 index 00000000..759aaa10 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceCache.java @@ -0,0 +1,465 @@ +package com.hzya.frame.mdm.service.impl; + +import cn.dev33.satoken.stp.StpUtil; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao; +import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao; +import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; +import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao; +import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity; +import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; +import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao; +import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity; +import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao; +import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; +import com.hzya.frame.mdm.mdmTableCodeRule.dao.IMdmTableCodeRuleDao; +import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; +import com.hzya.frame.mdm.service.IMdmService; +import com.hzya.frame.mdm.service.IMdmServiceCache; +import com.hzya.frame.sysnew.integtationTask.entity.IntegrationTaskEntity; +import com.hzya.frame.uuid.UUIDUtils; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.cache.annotation.CacheEvict; +import org.springframework.cache.annotation.Cacheable; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + +/** + * 主数据服务实现类 + */ +@Service(value = "mdmServiceCache") +public class MdmServiceCache implements IMdmServiceCache { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Resource + private IMdmModuleDao mdmModuleDao; + @Resource + private IMdmModuleDbDao mdmModuleDbDao; + @Resource + private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao; + @Resource + private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao; + @Resource + private IMdmModuleDistributeDao mdmModuleDistributeDao; + @Resource + private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao; + @Resource + private IMdmModuleSourceDao mdmModuleSourceDao; + @Resource + private IMdmModuleViewDao mdmModuleViewDao; + @Resource + private IMdmModuleViewButtonDao mdmModuleViewButtonDao; + @Resource + private IMdmModuleViewDetailDao mdmModuleViewDetailDao; + @Resource + private IMdmTableCodeRuleDao mdmTableCodeRuleDao; + + /** + * @Author lvleigang + * @Description 缓存主数据 + * @Date 4:03 下午 2024/6/11 + * @param mdmCode + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + @Override + @Cacheable(cacheNames="mdmModule",key = "#mdmCode") + public MdmModuleEntity getMdmModuleEntity(Long mdmCode) { + MdmModuleEntity entity = mdmModuleDao.getByMdmCode(mdmCode); + return entity; + } + /** + * @Author lvleigang + * @Description 缓存删除主数据 + * @Date 4:03 下午 2024/6/11 + * @param entity + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + @Override + @CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode") + public void updateMdmModuleEntity(MdmModuleEntity entity) { + mdmModuleDao.update(entity); + } + + /** + * @param entity + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + * @Author lvleigang + * @Description 删除模版主表 + * @Date 10:13 上午 2024/6/3 + **/ + @Override + @CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode") + public void deleteMdmModuleEntity(MdmModuleEntity entity) { + entity.setUpdate(); + mdmModuleDao.logicRemoveMultiCondition(entity); + } + + /** + * @Author lvleigang + * @Description 缓存主数据DB + * @Date 4:03 下午 2024/6/11 + * @param entity + * @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity + **/ + @Override + @Cacheable(cacheNames="mdmModuleDb",key = "#entity.mdmId") + public List queryMdmModuleDb(MdmModuleDbEntity entity) { + List mdmModuleDbEntities = mdmModuleDbDao.queryBase(entity); + return mdmModuleDbEntities; + } + + /** + * @Author lvleigang + * @Description 修改模版表数据 + * @Date 4:23 下午 2024/6/11 + * @param mdmId + * @param mdmModuleDbEntities + * @return void + **/ + @Override + @CacheEvict(cacheNames="mdmModuleDb",key = "#mdmId") + public void saveOrUpdateMdmModuleDb(String mdmId, List mdmModuleDbEntities) { + if(mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0){ + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if("1".equals(mdmModuleDbEntities.get(i).getDataType())){ + mdmModuleDbDao.save(mdmModuleDbEntities.get(i)); + }else { + mdmModuleDbDao.update(mdmModuleDbEntities.get(i)); + } + } + } + } + + /** + * @param mdmId + * @return void + * @Author lvleigang + * @Description 删除模版表数据 + * @Date 4:23 下午 2024/6/11 + **/ + @Override + @CacheEvict(cacheNames="mdmModuleDb",key = "#mdmId") + public void deleteMdmModuleDb(String mdmId,String dbID) { + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmId); + mdmModuleDbEntity.setId(dbID); + mdmModuleDbEntity.setUpdate(); + mdmModuleDbDao.logicRemoveMultiCondition(mdmModuleDbEntity); + } + + /** + * @Author lvleigang + * @Description 缓存主数据DB的所有字段 + * @Date 4:11 下午 2024/6/11 + * @param entity + * @return java.util.List + **/ + @Override + @Cacheable(cacheNames="mdmModuleDbFileds",key = "#entity.mdmId") + public List queryMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) { + List mdmModuleDbFiledsEntities = mdmModuleDbFiledsDao.queryBase(entity); + return mdmModuleDbFiledsEntities; + } + + /** + * @Author lvleigang + * @Description 修改数据源db的字段 + * @Date 4:25 下午 2024/6/11 + * @param mdmId + * @param mdmModuleDbFiledsEntities + * @return void + **/ + @Override + @CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId") + public void saveOrUpdateMdmModuleDbFileds(String mdmId, List mdmModuleDbFiledsEntities) { + if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){ + for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) { + if("1".equals(mdmModuleDbFiledsEntities.get(i).getDataType())){ + mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntities.get(i)); + }else if ("2".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) { + mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntities.get(i)); + }else if ("3".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) { + mdmModuleDbFiledsDao.logicRemoveMultiCondition(mdmModuleDbFiledsEntities.get(i)); + } + } + } + } + + /** + * @param mdmId + * @return void + * @Author lvleigang + * @Description 删除数据源db的字段 + * @Date 4:25 下午 2024/6/11 + **/ + @Override + @CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId") + public void deleteMdmModuleDbFileds(String mdmId,String dbID) { + MdmModuleDbFiledsEntity entity = new MdmModuleDbFiledsEntity(); + entity.setMdmId(mdmId); + entity.setDbId(dbID); + entity.setUpdate(); + mdmModuleDbFiledsDao.logicRemoveMultiCondition(entity); + } + + // + ///** + // * @Author lvleigang + // * @Description 缓存主数据DB的所有字段的规则 + // * @Date 4:11 下午 2024/6/11 + // * @param entity + // * @return java.util.List + // **/ + //@Override + //@Cacheable(cacheNames="mdmModuleDbFiledsRule",key = "#entity.mdmId") + //public List queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity entity) { + // List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(entity); + // return mdmModuleDbFiledsRuleEntities; + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleDistribute",key = "#mdmId") + //public List queryMdmModuleDistribute(String mdmId,MdmModuleDistributeEntity mdmModuleDistributeEntity) { + // List mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(mdmModuleDistributeEntity); + // //查询模块下的应用列表 + // MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + // mdmModuleDistributeDetailEntity.setSts("Y"); + // mdmModuleDistributeDetailEntity.setMdmId(mdmId); + // List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + // if(mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0){ + // for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { + // List moduleDistributeDetailEntities = new ArrayList<>(); + // if(mdmModuleDistributeDetailEntities != null && mdmModuleDistributeDetailEntities.size() > 0){ + // for (int i1 = 0; i1 < mdmModuleDistributeDetailEntities.size(); i1++) { + // if(mdmModuleDistributeEntities.get(i).getId().equals(mdmModuleDistributeDetailEntities.get(i1).getDistributeId())){ + // moduleDistributeDetailEntities.add(mdmModuleDistributeDetailEntities.get(i1)); + // } + // } + // } + // mdmModuleDistributeEntities.get(i).setMdmModuleDistributeDetailEntities(moduleDistributeDetailEntities); + // } + // } + // return mdmModuleDistributeEntities; + //} + // + // + + // + //@Override + //@Cacheable(cacheNames="mdmTableCodeRule",key = "#entity.mdmId") + //public List queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity entity) { + // List mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(entity); + // return mdmTableCodeRuleEntityList; + //} + // + // + // + //@Override + //@CacheEvict(cacheNames="mdmTableCodeRule",key = "#mdmId") + //public void saveMdmTableCodeRule(String mdmId, List mdmTableCodeRuleEntities) { + // MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); + // mdmTableCodeRuleEntity.setMdmId(mdmId); + // mdmTableCodeRuleEntity.setSts("Y"); + // mdmTableCodeRuleEntity.setUpdate(); + // mdmTableCodeRuleDao.logicRemoveMultiCondition(mdmTableCodeRuleEntity); + // if(mdmTableCodeRuleEntities != null && mdmTableCodeRuleEntities.size() > 0){ + // for (int i = 0; i < mdmTableCodeRuleEntities.size(); i++) { + // mdmTableCodeRuleDao.save(mdmTableCodeRuleEntities.get(i)); + // } + // } + //} + // + + + //@Override + //@CacheEvict(cacheNames="mdmModuleDbFiledsRule",key = "#mdmId") + //public void saveMdmModuleDbFiledsRule(String mdmId, List mdmModuleDbFiledsRuleEntities) { + // MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); + // mdmModuleDbFiledsRuleEntity.setMdmId(mdmId); + // mdmModuleDbFiledsRuleEntity.setSts("Y"); + // mdmModuleDbFiledsRuleEntity.setUpdate(); + // mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity); + // if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){ + // for (int i = 0; i < mdmModuleDbFiledsRuleEntities.size(); i++) { + // if("1".equals(mdmModuleDbFiledsRuleEntities.get(i).getDataType())){ + // mdmModuleDbFiledsRuleDao.save(mdmModuleDbFiledsRuleEntities.get(i)); + // }else { + // mdmModuleDbFiledsRuleDao.update(mdmModuleDbFiledsRuleEntities.get(i)); + // } + // } + // } + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleViewDetail",key = "#entity.mdmId") + //public List queryMdmModuleViewDetail(MdmModuleViewDetailEntity entity) { + // List mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(entity); + // return mdmModuleViewDetailEntities; + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleView",key = "#entity.mdmId") + //public List queryMdmModuleView(MdmModuleViewEntity entity) { + // List moduleViewEntities = mdmModuleViewDao.queryBase(entity); + // return moduleViewEntities; + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleViewButton",key = "#entity.mdmId") + //public List queryMdmModuleViewButton(MdmModuleViewButtonEntity entity) { + // List mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(entity); + // return mdmModuleViewButtonEntities; + //} + // + //@Override + //@CacheEvict(cacheNames="mdmModuleView",key = "#mdmId") + //public void saveMdmModuleView(String mdmId, MdmModuleViewEntity mdmModuleViewEntity) { + // mdmModuleViewDao.update(mdmModuleViewEntity); + //} + // + //@Override + //@CacheEvict(cacheNames="mdmModuleViewDetail",key = "#mdmId") + //public void saveMdmModuleViewDetail(String mdmId, List mdmModuleViewDetailEntities) { + // MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); + // mdmModuleViewDetailEntity.setMdmId(mdmId); + // mdmModuleViewDetailEntity.setUpdate(); + // mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); + // if(mdmModuleViewDetailEntities != null && mdmModuleViewDetailEntities.size() > 0){ + // for (int i = 0; i < mdmModuleViewDetailEntities.size(); i++) { + // if("1".equals(mdmModuleViewDetailEntities.get(i).getDataType())){ + // mdmModuleViewDetailDao.save(mdmModuleViewDetailEntities.get(i)); + // }else { + // mdmModuleViewDetailDao.update(mdmModuleViewDetailEntities.get(i)); + // } + // } + // } + //} + // + //@Override + //@CacheEvict(cacheNames="mdmModuleViewButton",key = "#mdmId") + //public void saveMdmModuleViewButton(String mdmId, List mdmModuleViewButtonEntities) { + // MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity(); + // mdmModuleViewButtonEntity.setMdmId(mdmId); + // mdmModuleViewButtonEntity.setUpdate(); + // mdmModuleViewButtonDao.logicRemoveMultiCondition(mdmModuleViewButtonEntity); + // if(mdmModuleViewButtonEntities != null && mdmModuleViewButtonEntities.size() > 0){ + // for (int i = 0; i < mdmModuleViewButtonEntities.size(); i++) { + // if("1".equals(mdmModuleViewButtonEntities.get(i).getDataType())){ + // mdmModuleViewButtonDao.save(mdmModuleViewButtonEntities.get(i)); + // }else { + // mdmModuleViewButtonDao.update(mdmModuleViewButtonEntities.get(i)); + // } + // } + // } + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleDistributeDetail",key = "#entity.mdmId") + //public List queryMdmModuleDistributeDetail(MdmModuleDistributeDetailEntity entity){ + // List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(entity); + // return mdmModuleDistributeDetailEntities; + //} + // + //@Override + //@CacheEvict(cacheNames="mdmModuleDistribute",key = "#mdmId") + //public void saveMdmModuleDistribute(String mdmId, List mdmModuleDistributeEntities) { + // //先删除 + // MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); + // mdmModuleDistributeEntity.setMdmId(mdmId); + // mdmModuleDistributeEntity.setUpdate(); + // mdmModuleDistributeDao.logicRemoveMultiCondition(mdmModuleDistributeEntity); + // //保存主数据 + // if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) { + // for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { + // MdmModuleDistributeEntity moduleDistributeEntity = mdmModuleDistributeEntities.get(i); + // moduleDistributeEntity.setMdmId(mdmId); + // if (moduleDistributeEntity.getId() != null && !"".equals(moduleDistributeEntity.getId())) { + // moduleDistributeEntity.setUpdate(); + // //修改 + // mdmModuleDistributeDao.update(moduleDistributeEntity); + // } else { + // //新增 + // moduleDistributeEntity.setCreate(); + // mdmModuleDistributeDao.save(moduleDistributeEntity); + // } + // if(moduleDistributeEntity.getMdmModuleDistributeDetailEntities() != null && moduleDistributeEntity.getMdmModuleDistributeDetailEntities().size() > 0){ + // for (int i1 = 0; i1 < moduleDistributeEntity.getMdmModuleDistributeDetailEntities().size(); i1++) { + // MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = moduleDistributeEntity.getMdmModuleDistributeDetailEntities().get(i1); + // mdmModuleDistributeDetailEntity.setMdmId(mdmId); + // mdmModuleDistributeDetailEntity.setDistributeId(moduleDistributeEntity.getId()); + // if (mdmModuleDistributeDetailEntity.getId() != null && !"".equals(mdmModuleDistributeDetailEntity.getId())) { + // mdmModuleDistributeDetailEntity.setUpdate(); + // //修改 + // mdmModuleDistributeDetailDao.update(mdmModuleDistributeDetailEntity); + // } else { + // //新增 + // mdmModuleDistributeDetailEntity.setCreate(); + // mdmModuleDistributeDetailDao.save(mdmModuleDistributeDetailEntity); + // } + // } + // } + // } + // } + //} + // + //@Override + //@Cacheable(cacheNames="mdmModuleSource",key = "#entity.mdmId") + //public List queryMdmModuleSource(MdmModuleSourceEntity entity) { + // List mdmModuleSourceEntities = mdmModuleSourceDao.queryBase(entity); + // return mdmModuleSourceEntities; + //} + // + //@Override + //@CacheEvict(cacheNames="mdmModuleSource",key = "#mdmId") + //public void saveMdmModuleSource(String mdmId, List mdmModuleSourceEntities) { + // //先删除 + // MdmModuleSourceEntity mdmModuleSourceEntity = new MdmModuleSourceEntity(); + // mdmModuleSourceEntity.setMdmId(mdmId); + // mdmModuleSourceEntity.setUpdate(); + // mdmModuleSourceDao.logicRemoveMultiCondition(mdmModuleSourceEntity); + // //保存主数据 + // if (mdmModuleSourceEntities != null && mdmModuleSourceEntities.size() > 0) { + // for (int i = 0; i < mdmModuleSourceEntities.size(); i++) { + // MdmModuleSourceEntity mdmModuleSourceEntity1 = mdmModuleSourceEntities.get(i); + // mdmModuleSourceEntity1.setMdmId(mdmId); + // if (mdmModuleSourceEntity1.getId() != null && !"".equals(mdmModuleSourceEntity1.getId())) { + // mdmModuleSourceEntity1.setUpdate(); + // //修改 + // mdmModuleSourceDao.update(mdmModuleSourceEntity1); + // } else { + // //新增 + // mdmModuleSourceEntity1.setCreate(); + // mdmModuleSourceDao.save(mdmModuleSourceEntity1); + // } + // } + // } + //} + + + + + + + + + +} diff --git a/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceImpl.java b/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceImpl.java index a2f6aadc..26c03807 100644 --- a/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/mdm/service/impl/MdmServiceImpl.java @@ -1,27 +1,13 @@ package com.hzya.frame.mdm.service.impl; import cn.dev33.satoken.stp.StpUtil; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; -import com.hzya.frame.mdm.entity.DbFiledsDto; -import com.hzya.frame.mdm.entity.MdmDataDto; -import com.hzya.frame.mdm.entity.MdmDataFiledDto; -import com.hzya.frame.mdm.entity.MdmDbFiledVo; -import com.hzya.frame.mdm.entity.MdmDbVo; -import com.hzya.frame.mdm.entity.MdmDetailViewVo; -import com.hzya.frame.mdm.entity.MdmDistributeDto; -import com.hzya.frame.mdm.entity.MdmDistributeVo; -import com.hzya.frame.mdm.entity.MdmDto; -import com.hzya.frame.mdm.entity.MdmModuleViewDto; -import com.hzya.frame.mdm.entity.MdmModuleViewVo; -import com.hzya.frame.mdm.entity.MdmQuery; -import com.hzya.frame.mdm.entity.MdmRoleDto; -import com.hzya.frame.mdm.entity.MdmViewButtonVo; -import com.hzya.frame.mdm.entity.MdmViewFiledVo; -import com.hzya.frame.mdm.entity.MdmViewVo; -import com.hzya.frame.mdm.entity.MdmVo; +import com.hzya.frame.mdm.entity.*; import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao; @@ -30,1311 +16,120 @@ import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao; import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao; import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.IMdmModuleDbFiledsRuleFilesDao; -import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity; import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao; import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity; -import com.hzya.frame.mdm.mdmModuleRole.dao.IMdmModuleRoleDao; -import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity; -import com.hzya.frame.mdm.mdmModuleRoleButton.dao.IMdmModuleRoleButtonDao; -import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity; -import com.hzya.frame.mdm.mdmModuleUserView.dao.IMdmModuleUserViewDao; -import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.dao.IMdmModuleDistributeTripartiteDao; +import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistributeTripartiteEntity; +import com.hzya.frame.mdm.mdmModuleOptionLog.dao.IMdmModuleOptionLogDao; +import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity; +import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao; +import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity; import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao; import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao; import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity; import com.hzya.frame.mdm.mdmTableCodeRule.dao.IMdmTableCodeRuleDao; import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity; import com.hzya.frame.mdm.service.IMdmService; +import com.hzya.frame.mdm.service.IMdmServiceCache; import com.hzya.frame.sys.entity.FormmainDeleteDto; -import com.hzya.frame.sys.entity.ModuleDto; -import com.hzya.frame.sys.module.dao.IModuleMapper; -import com.hzya.frame.sys.module.entity.Module; -import com.hzya.frame.sys.roleModule.dao.IRoleModuleMapper; -import com.hzya.frame.sys.roleModule.entity.RoleModule; -import com.hzya.frame.sys.userRole.dao.IUserRoleMapper; -import com.hzya.frame.sys.userRole.entity.UserRole; +import com.hzya.frame.sys.sysenum.SysEnum; +import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; +import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.script.dao.ISysApplicationScriptDao; +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.sysnew.buttonConfig.dao.ISysButtonConfigDao; +import com.hzya.frame.sysnew.grovy.service.IGroovyIntegrationService; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService; +import com.hzya.frame.sysnew.menuConfig.dao.ISysMenuConfigDao; +import com.hzya.frame.sysnew.popedomOperate.dao.ISysPopedomOperateDao; +import com.hzya.frame.sysnew.user.dao.ISysUserDao; +import com.hzya.frame.sysnew.user.entity.SysUserEntity; import com.hzya.frame.uuid.UUIDUtils; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.http.HttpEntity; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.ByteArrayEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.util.EntityUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.io.IOException; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.stream.Collectors; +import java.util.*; + /** * 主数据服务实现类 */ @Service(value = "mdmService") public class MdmServiceImpl implements IMdmService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Resource - protected IModuleMapper moduleMapper; + private ISysApplicationDao sysApplicationDao; @Resource - protected IRoleModuleMapper roleModuleMapper; + private ISysApplicationApiDao sysApplicationApiDao; @Resource - private IMdmModuleDao mdmModuleDao; //主数据模版 + private ISysApplicationScriptDao sysApplicationScriptDao; @Resource - private IMdmModuleDbDao mdmModuleDbDao;//模版数据库表 + private IMdmModuleDao mdmModuleDao; @Resource - private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao;//模版数据库字段表 + private IMdmModuleDistributeTripartiteDao mdmModuleDistributeTripartiteDao; @Resource - private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao;//模版数据库字段规则表 + private IIntegrationTaskLivingDetailsService taskLivingDetailsService; @Resource - private IMdmModuleDbFiledsRuleFilesDao mdmModuleDbFiledsRuleFilesDao;//模版数据库字段规则档案表 + private IGroovyIntegrationService groovyIntegrationService; @Resource - private IMdmModuleDistributeDao mdmModuleDistributeDao;//主数据功能应用分发表 + private IMdmModuleSendLogDao mdmModuleSendLogDao; @Resource - private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao;//主数据功能应用分发明细表 + private IMdmModuleOptionLogDao mdmModuleOptionLogDao; @Resource - private IMdmModuleRoleDao mdmModuleRoleDao;//主数据功能角色表 + private IMdmServiceCache mdmServiceCache; @Resource - private IMdmModuleRoleButtonDao mdmModuleRoleButtonDao;//主数据功能角色按钮表 + private ISysMenuConfigDao sysMenuConfigDao; @Resource - private IMdmModuleUserViewDao mdmModuleUserViewDao;//主数据用户视图表 + private ISysButtonConfigDao sysButtonConfigDao; @Resource - private IMdmModuleViewDao mdmModuleViewDao;//主数据视图表 + private ISysPopedomOperateDao sysPopedomOperateDao; @Resource - private IMdmModuleViewDetailDao mdmModuleViewDetailDao;//主数据视图明细表 + private IMdmModuleDbDao mdmModuleDbDao; @Resource - private IMdmTableCodeRuleDao mdmTableCodeRuleDao;//模版数据表编码规则表 + private ISysUserDao sysUserDao; @Resource - protected IUserRoleMapper userRoleMapper; - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据列表查询接口分页 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmPage(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - //判断分页 - if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { - return BaseResult.getFailureMessageEntity("分页查询参数不存在"); - } - PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); - List mdmVos = mdmModuleDao.queryMdm(entity); - PageInfo pageInfo = new PageInfo(mdmVos); - return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据列表查询接口列表 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmList(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - List mdmVos = mdmModuleDao.queryMdm(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", mdmVos); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据基本信息 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModule(JSONObject object) { - MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); - MdmModuleEntity mdmModuleEntity = mdmModuleDao.queryOne(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", mdmModuleEntity); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据基本信息保存 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity doSaveMdmModule(JSONObject object) { - MdmModuleEntity entity = getData("jsonStr", object, MdmModuleEntity.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getMdmName() == null || "".equals(entity.getMdmName())) { - return BaseResult.getFailureMessageEntity("请先输入主数据名称"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - //新增 - entity.setId(UUIDUtils.getUUID()); - entity.setSts("Y"); - entity.setCreate_user_id(StpUtil.getLoginIdAsString()); - entity.setModify_user_id(StpUtil.getLoginIdAsString()); - entity.setCreate_time(new Date()); - entity.setModify_time(new Date()); - mdmModuleDao.save(entity); - } else { - //修改 - entity.setSts("Y"); - entity.setModify_user_id(StpUtil.getLoginIdAsString()); - entity.setModify_time(new Date()); - mdmModuleDao.update(entity); - } - return BaseResult.getSuccessMessageEntity("保存数据成功", entity); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleDb(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - //判断分页 - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - MdmDbVo mdmDbVo = new MdmDbVo(); - - //查询设置的规则表 - MdmModuleDbFiledsRuleFilesEntity mdmModuleDbFiledsRuleFilesEntity = new MdmModuleDbFiledsRuleFilesEntity(); - mdmModuleDbFiledsRuleFilesEntity.setSts("Y"); - List moduleDbFiledsRuleFiles = mdmModuleDbFiledsRuleFilesDao.queryBase(mdmModuleDbFiledsRuleFilesEntity); - mdmDbVo.setModuleDbFiledsRuleFiles(moduleDbFiledsRuleFiles); - //查询设置的规则表 - MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); - mdmTableCodeRuleEntity.setSts("Y"); - mdmTableCodeRuleEntity.setMdmId(entity.getId()); - List mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(mdmTableCodeRuleEntity); - mdmDbVo.setMdmTableCodeRuleEntityList(mdmTableCodeRuleEntityList); - //查询数据源表 - MdmModuleDbEntity queryDb = new MdmModuleDbEntity(); - queryDb.setMdmId(entity.getId()); - queryDb.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(queryDb); - List mdmModuleDbFiledsEntityList = null; - List mdmModuleDbFiledsRuleEntityList = null; - //存在表查询数据下的字段 - if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { - MdmModuleDbFiledsEntity queryDbFiled = new MdmModuleDbFiledsEntity(); - queryDbFiled.setMdmId(entity.getId()); - queryDbFiled.setSts("Y"); - mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(queryDbFiled); - //存在字段查询字段的属性 - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - MdmModuleDbFiledsRuleEntity queryDbFiledRule = new MdmModuleDbFiledsRuleEntity(); - queryDbFiledRule.setMdmId(entity.getId()); - queryDbFiledRule.setSts("Y"); - mdmModuleDbFiledsRuleEntityList = mdmModuleDbFiledsRuleDao.queryBase(queryDbFiledRule); - } - } - //组装数据 - setMdmDb(mdmDbVo, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList); - return BaseResult.getSuccessMessageEntity("查询数据成功", mdmDbVo); - } - - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源的服务 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleServer(JSONObject object) { - MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); - //判断分页 - if (entity == null) { - entity = new MdmModuleDbEntity(); - } - //查询数据源表 - entity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryByLike(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", mdmModuleDbEntityList); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询数据源的服务的字段 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleServerFiled(JSONObject object) { - MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); - //判断分页 - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getDbName() == null || "".equals(entity.getDbName())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询数据源表 - entity.setSts("Y"); - List dblist = mdmModuleDbDao.queryBase(entity); - if(dblist != null && dblist.size() == 1 ){ - MdmModuleDbFiledsEntity queryDbFiled= new MdmModuleDbFiledsEntity(); - queryDbFiled.setSts("Y"); - queryDbFiled.setDbId(dblist.get(0).getId()); - List list = mdmModuleDbFiledsDao.queryBase(queryDbFiled); - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity.setChName("id"); - mdmModuleDbFiledsEntity.setEnName("id"); - list.add(0,mdmModuleDbFiledsEntity); - return BaseResult.getSuccessMessageEntity("查询数据成功", list); - }else { - return BaseResult.getFailureMessageEntity("服务不存在"); - } - } - - - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询主表字段 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleServerMainFiled(JSONObject object) { - MdmModuleDbEntity entity = getData("jsonStr", object, MdmModuleDbEntity.class); - //判断分页 - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getMdmId() == null || "".equals(entity.getMdmId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询数据源表 - entity.setSts("Y"); - entity.setDbType("1"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(entity); - if(mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() == 1){ - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity.setSts("Y"); - mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntityList.get(0).getId()); - List list = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); - return BaseResult.getSuccessMessageEntity("查询数据成功", list); - }else if(mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() == 0){ - return BaseResult.getFailureMessageEntity("请先配置数据源"); - }else { - return BaseResult.getFailureMessageEntity("查询数据失败"); - } - } - - /** - * @param mdmDbVo 返回对象 - * @param mdmModuleDbEntityList 数据表 - * @param mdmModuleDbFiledsEntityList 字段 - * @param mdmModuleDbFiledsRuleEntityList 字段属性 - * @return void - * @Author lvleigang - * @Description 组装返回数据 - * @Date 4:51 下午 2023/10/18 - **/ - private void setMdmDb(MdmDbVo mdmDbVo, List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList, List mdmModuleDbFiledsRuleEntityList) { - //主数据主表 - MdmModuleDbEntity mainMdmModuleDb = new MdmModuleDbEntity(); - //主数据子表 - List sublistMdmModuleDb = new ArrayList<>(); - //主数据主表字段 - List mainMdmModuleDbFileds = new ArrayList<>(); - - - if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { - //1、主表 2、明细 - mainMdmModuleDb = mdmModuleDbEntityList.get(i); - //循环字段表 - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - mainMdmModuleDbFileds.add(mdmModuleDbFiledsEntityList.get(i1)); - List mdmModuleDbFiledsRules = new ArrayList<>(); - //循环字段属性 - if (mdmModuleDbFiledsRuleEntityList != null && mdmModuleDbFiledsRuleEntityList.size() > 0) { - for (int i2 = 0; i2 < mdmModuleDbFiledsRuleEntityList.size(); i2++) { - if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbFiledsRuleEntityList.get(i2).getDbId()) - && mdmModuleDbFiledsEntityList.get(i1).getId().equals(mdmModuleDbFiledsRuleEntityList.get(i2).getFiledId())) { - mdmModuleDbFiledsRules.add(mdmModuleDbFiledsRuleEntityList.get(i2)); - } - } - } - mdmModuleDbFiledsEntityList.get(i1).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRules); - } - } - } - } else if ("2".equals(mdmModuleDbEntityList.get(i).getDbType())) { - //2、明细 - sublistMdmModuleDb.add(mdmModuleDbEntityList.get(i)); - //循环字段表 - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - List sublistMdmModuleDbFileds = new ArrayList<>(); - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - sublistMdmModuleDbFileds.add(mdmModuleDbFiledsEntityList.get(i1)); - List mdmModuleDbFiledsRules = new ArrayList<>(); - //循环字段属性 - if (mdmModuleDbFiledsRuleEntityList != null && mdmModuleDbFiledsRuleEntityList.size() > 0) { - for (int i2 = 0; i2 < mdmModuleDbFiledsRuleEntityList.size(); i2++) { - if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbFiledsRuleEntityList.get(i2).getDbId()) - && mdmModuleDbFiledsEntityList.get(i1).getId().equals(mdmModuleDbFiledsRuleEntityList.get(i2).getFiledId())) { - mdmModuleDbFiledsRules.add(mdmModuleDbFiledsRuleEntityList.get(i2)); - } - } - } - mdmModuleDbFiledsEntityList.get(i1).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRules); - } - } - mdmModuleDbEntityList.get(i).setSublistMdmModuleDbFileds(sublistMdmModuleDbFileds); - } - } - } - } - mainMdmModuleDb.setSublistMdmModuleDbFileds(mainMdmModuleDbFileds); - mdmDbVo.setMainMdmModuleDb(mainMdmModuleDb); - mdmDbVo.setSublistMdmModuleDb(sublistMdmModuleDb); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存数据源 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity saveMdmModuleDb(JSONObject object) { - //判断新增还是修改,保存数据生成表结构 - MdmDto entity = getData("jsonStr", object, MdmDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - if (entity.getMainMdmModuleDb() == null || entity.getMainMdmModuleDb().getDbName() == null || "".equals(entity.getMainMdmModuleDb().getDbName())) { - return BaseResult.getFailureMessageEntity("请先输入主表名称"); - } - //主数据主表 - MdmModuleDbEntity mainMdmModuleDb = entity.getMainMdmModuleDb(); - //主数据主表字段 - List mainMdmModuleDbFileds = mainMdmModuleDb.getSublistMdmModuleDbFileds(); - //主数据子表 - List sublistMdmModuleDb = entity.getSublistMdmModuleDb(); - //判断主表新增还是修改 - if (mainMdmModuleDb.getId() == null || "".equals(mainMdmModuleDb.getId())) { - //新增 需要校验表是否存在 - if (checkTable(mainMdmModuleDb.getDbName())) { - return BaseResult.getFailureMessageEntity("主表表名已经存在"); - } - } - //判断明细表 - if (sublistMdmModuleDb != null && sublistMdmModuleDb.size() > 0) { - for (int i = 0; i < sublistMdmModuleDb.size(); i++) { - if (sublistMdmModuleDb.get(i).getId() == null || "".equals(sublistMdmModuleDb.get(i).getId())) { - if (sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds() == null && sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds().size() == 0) { - return BaseResult.getFailureMessageEntity("请先设置子表" + sublistMdmModuleDb.get(i).getDbName() + "的字段"); - } - //新增 需要校验表是否存在 - if (checkTable(sublistMdmModuleDb.get(i).getDbName())) { - return BaseResult.getFailureMessageEntity("子表" + sublistMdmModuleDb.get(i).getDbName() + "已经存在"); - } - } - } - } - //设置保存主表和字段以及字段的属性 - setMainTable(entity, mainMdmModuleDb, mainMdmModuleDbFileds); - //设置保存子表数据 - setsublistTable(entity, mainMdmModuleDb, sublistMdmModuleDb); - //保存规则 - List mdmTableCodeRuleEntityList = entity.getMdmTableCodeRuleEntityList(); - MdmTableCodeRuleEntity deleteOldData = new MdmTableCodeRuleEntity(); - deleteOldData.setDbId(mainMdmModuleDb.getId()); - deleteOldData.setMdmId(entity.getId()); - deleteOldData.setSts("Y"); - deleteOldData.setModify_user_id(StpUtil.getLoginIdAsString()); - deleteOldData.setModify_time(new Date()); - mdmTableCodeRuleDao.logicRemoveMultiCondition(deleteOldData); - if(mdmTableCodeRuleEntityList != null && mdmTableCodeRuleEntityList.size() > 0){ - for (int i = 0; i < mdmTableCodeRuleEntityList.size(); i++) { - MdmTableCodeRuleEntity mdmTableCodeRuleEntity = mdmTableCodeRuleEntityList.get(i); - mdmTableCodeRuleEntity.setMdmId(entity.getId()); - mdmTableCodeRuleEntity.setDbId(mainMdmModuleDb.getId()); - mdmTableCodeRuleEntity.setId(UUIDUtils.getUUID()); - mdmTableCodeRuleEntity.setSts("Y"); - mdmTableCodeRuleEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmTableCodeRuleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmTableCodeRuleEntity.setCreate_time(new Date()); - mdmTableCodeRuleEntity.setModify_time(new Date()); - mdmTableCodeRuleDao.save(mdmTableCodeRuleEntity); - } - } - return BaseResult.getSuccessMessageEntity("保存数据源成功"); - } - - /** - * @param entity - * @param mainMdmModuleDb - * @param sublistMdmModuleDb - * @return void - * @Author lvleigang - * @Description 设置保存子表数据 - * @Date 11:08 上午 2023/10/19 - **/ - private void setsublistTable(MdmDto entity, MdmModuleDbEntity mainMdmModuleDb, List sublistMdmModuleDb) { - //存在明细表 - if (sublistMdmModuleDb != null && sublistMdmModuleDb.size() > 0) { - for (int i = 0; i < sublistMdmModuleDb.size(); i++) { - MdmModuleDbEntity mdmModuleDbEntity = sublistMdmModuleDb.get(i); - mdmModuleDbEntity.setMdmId(entity.getId()); - mdmModuleDbEntity.setDbType("2"); - boolean flag = false; - - //新增还是修改 - if (mdmModuleDbEntity.getId() != null && !"".equals(mdmModuleDbEntity.getId())) { - mdmModuleDbEntity.setSts("Y"); - mdmModuleDbEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbEntity.setModify_time(new Date()); - mdmModuleDbDao.update(mdmModuleDbEntity); - } else { - flag = true; - mdmModuleDbEntity.setId(UUIDUtils.getUUID()); - mdmModuleDbEntity.setSts("Y"); - mdmModuleDbEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbEntity.setCreate_time(new Date()); - mdmModuleDbEntity.setModify_time(new Date()); - mdmModuleDbDao.save(mdmModuleDbEntity); - } - List dbFiledsDtos = new ArrayList<>(); - - //字段 - List sublistMdmModuleDbFileds = mdmModuleDbEntity.getSublistMdmModuleDbFileds(); - if (sublistMdmModuleDbFileds != null && sublistMdmModuleDbFileds.size() > 0) { - for (int i1 = 0; i1 < sublistMdmModuleDbFileds.size(); i1++) { - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = sublistMdmModuleDbFileds.get(i1); - mdmModuleDbFiledsEntity.setMdmId(entity.getId()); - mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntity.getId()); - if (mdmModuleDbFiledsEntity.getId() != null && !"".equals(mdmModuleDbFiledsEntity.getId())) { - DbFiledsDto dbFiledsDto = new DbFiledsDto("1", mdmModuleDbFiledsEntity.getChName(), mdmModuleDbFiledsEntity.getEnName(), mdmModuleDbFiledsEntity.getFiledType(), mdmModuleDbFiledsEntity.getFiledLength()); - dbFiledsDtos.add(dbFiledsDto); - mdmModuleDbFiledsEntity.setSts("Y"); - mdmModuleDbFiledsEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setModify_time(new Date()); - mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntity); - } else { - DbFiledsDto dbFiledsDto = new DbFiledsDto("2", mdmModuleDbFiledsEntity.getChName(), mdmModuleDbFiledsEntity.getEnName(), mdmModuleDbFiledsEntity.getFiledType(), mdmModuleDbFiledsEntity.getFiledLength()); - dbFiledsDtos.add(dbFiledsDto); - mdmModuleDbFiledsEntity.setId(UUIDUtils.getUUID()); - mdmModuleDbFiledsEntity.setSts("Y"); - mdmModuleDbFiledsEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setCreate_time(new Date()); - mdmModuleDbFiledsEntity.setModify_time(new Date()); - mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntity); - } - //修改或保存属性 - List mdmModuleDbFiledsRules = mdmModuleDbFiledsEntity.getMdmModuleDbFiledsRules(); - if (mdmModuleDbFiledsRules != null && mdmModuleDbFiledsRules.size() > 0) { - for (int a = 0; a < mdmModuleDbFiledsRules.size(); a++) { - MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = mdmModuleDbFiledsRules.get(a); - mdmModuleDbFiledsRuleEntity.setMdmId(entity.getId()); - mdmModuleDbFiledsRuleEntity.setDbId(mdmModuleDbEntity.getId()); - mdmModuleDbFiledsRuleEntity.setFiledId(mdmModuleDbFiledsEntity.getId()); - if (mdmModuleDbFiledsRuleEntity.getId() != null && !"".equals(mdmModuleDbFiledsRuleEntity.getId())) { - mdmModuleDbFiledsRuleEntity.setSts("Y"); - mdmModuleDbFiledsRuleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setModify_time(new Date()); - mdmModuleDbFiledsRuleDao.update(mdmModuleDbFiledsRuleEntity); - } else { - mdmModuleDbFiledsRuleEntity.setId(UUIDUtils.getUUID()); - mdmModuleDbFiledsRuleEntity.setSts("Y"); - mdmModuleDbFiledsRuleEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setCreate_time(new Date()); - mdmModuleDbFiledsRuleEntity.setModify_time(new Date()); - mdmModuleDbFiledsRuleDao.save(mdmModuleDbFiledsRuleEntity); - } - } - } - } - } - - if (flag) { - //新增 - Map maps = new HashMap<>(); - maps.put("dbType", "2");//表类型 - maps.put("tableName", mdmModuleDbEntity.getDbName());//表名 - maps.put("tableRemark", mdmModuleDbEntity.getRemark());//表备注 - maps.put("databaseFields", dbFiledsDtos);//字段 - DbFiledsDto dbFiledsDto = new DbFiledsDto("1", "上级id", "formmain_id", "3", "50"); - dbFiledsDtos.add(dbFiledsDto); - mdmModuleDao.createTable(maps); - } else { - //修改 - Map tablename = new HashMap<>(); - tablename.put("tableName", mdmModuleDbEntity.getDbName());//表名 - tablename.put("tableRemark", mdmModuleDbEntity.getRemark());//表备注 - mdmModuleDao.alterTableName(tablename); - Map maps = new HashMap<>(); - maps.put("tableName", mdmModuleDbEntity.getDbName());//表名 - maps.put("tableRemark", mdmModuleDbEntity.getRemark());//表备注 - maps.put("databaseFields", dbFiledsDtos);//字段 - mdmModuleDao.alterTable(maps); - } - } - } - } - - /** - * @param entity - * @param mainMdmModuleDb - * @param mainMdmModuleDbFileds - * @return void - * @Author lvleigang - * @Description 设置保存主表和字段以及字段的属性 - * @Date 10:34 上午 2023/10/19 - **/ - private void setMainTable(MdmDto entity, MdmModuleDbEntity mainMdmModuleDb, List mainMdmModuleDbFileds) { - //先保存或修改主表数据 - mainMdmModuleDb.setMdmId(entity.getId()); - mainMdmModuleDb.setDbType("1"); - boolean flag = false; - - if (mainMdmModuleDb.getId() != null && !"".equals(mainMdmModuleDb.getId())) { - mainMdmModuleDb.setSts("Y"); - mainMdmModuleDb.setModify_user_id(StpUtil.getLoginIdAsString()); - mainMdmModuleDb.setModify_time(new Date()); - mdmModuleDbDao.update(mainMdmModuleDb); - //删除规则表 - MdmModuleDbFiledsRuleEntity delectFiledsRule = new MdmModuleDbFiledsRuleEntity(); - delectFiledsRule.setMdmId(entity.getId()); - delectFiledsRule.setModify_user_id(StpUtil.getLoginIdAsString()); - delectFiledsRule.setModify_time(new Date()); - mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(delectFiledsRule); - } else { - flag = true; - mainMdmModuleDb.setId(UUIDUtils.getUUID()); - mainMdmModuleDb.setSts("Y"); - mainMdmModuleDb.setCreate_user_id(StpUtil.getLoginIdAsString()); - mainMdmModuleDb.setModify_user_id(StpUtil.getLoginIdAsString()); - mainMdmModuleDb.setCreate_time(new Date()); - mainMdmModuleDb.setModify_time(new Date()); - mdmModuleDbDao.save(mainMdmModuleDb); - } - List dbFiledsDtos = new ArrayList<>(); - - //保存主表字段 因为字段不允许删除,所以不用先删除再新增 - if (mainMdmModuleDbFileds != null && mainMdmModuleDbFileds.size() > 0) { - for (int i = 0; i < mainMdmModuleDbFileds.size(); i++) { - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = mainMdmModuleDbFileds.get(i); - mdmModuleDbFiledsEntity.setMdmId(entity.getId()); - mdmModuleDbFiledsEntity.setDbId(mainMdmModuleDb.getId()); - if (mdmModuleDbFiledsEntity.getId() != null && !"".equals(mdmModuleDbFiledsEntity.getId())) { - DbFiledsDto dbFiledsDto = new DbFiledsDto("1", mdmModuleDbFiledsEntity.getChName(), mdmModuleDbFiledsEntity.getEnName(), mdmModuleDbFiledsEntity.getFiledType(), mdmModuleDbFiledsEntity.getFiledLength()); - dbFiledsDtos.add(dbFiledsDto); - - mdmModuleDbFiledsEntity.setSts("Y"); - mdmModuleDbFiledsEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setModify_time(new Date()); - mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntity); - } else { - DbFiledsDto dbFiledsDto = new DbFiledsDto("2", mdmModuleDbFiledsEntity.getChName(), mdmModuleDbFiledsEntity.getEnName(), mdmModuleDbFiledsEntity.getFiledType(), mdmModuleDbFiledsEntity.getFiledLength()); - dbFiledsDtos.add(dbFiledsDto); - mdmModuleDbFiledsEntity.setId(UUIDUtils.getUUID()); - mdmModuleDbFiledsEntity.setSts("Y"); - mdmModuleDbFiledsEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsEntity.setCreate_time(new Date()); - mdmModuleDbFiledsEntity.setModify_time(new Date()); - mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntity); - } - //修改或保存属性 - List mdmModuleDbFiledsRules = mdmModuleDbFiledsEntity.getMdmModuleDbFiledsRules(); - if (mdmModuleDbFiledsRules != null && mdmModuleDbFiledsRules.size() > 0) { - for (int a = 0; a < mdmModuleDbFiledsRules.size(); a++) { - MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = mdmModuleDbFiledsRules.get(a); - mdmModuleDbFiledsRuleEntity.setMdmId(entity.getId()); - mdmModuleDbFiledsRuleEntity.setDbId(mainMdmModuleDb.getId()); - mdmModuleDbFiledsRuleEntity.setFiledId(mdmModuleDbFiledsEntity.getId()); - if (mdmModuleDbFiledsRuleEntity.getId() != null && !"".equals(mdmModuleDbFiledsRuleEntity.getId())) { - mdmModuleDbFiledsRuleEntity.setSts("Y"); - mdmModuleDbFiledsRuleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setModify_time(new Date()); - mdmModuleDbFiledsRuleDao.update(mdmModuleDbFiledsRuleEntity); - } else { - mdmModuleDbFiledsRuleEntity.setId(UUIDUtils.getUUID()); - mdmModuleDbFiledsRuleEntity.setSts("Y"); - mdmModuleDbFiledsRuleEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDbFiledsRuleEntity.setCreate_time(new Date()); - mdmModuleDbFiledsRuleEntity.setModify_time(new Date()); - mdmModuleDbFiledsRuleDao.save(mdmModuleDbFiledsRuleEntity); - } - } - } - } - } - if (flag) { - //新增 - Map maps = new HashMap<>(); - maps.put("dbType", "1");//表类型 - maps.put("tableName", mainMdmModuleDb.getDbName());//表名 - maps.put("tableRemark", mainMdmModuleDb.getRemark());//表备注 - maps.put("databaseFields", dbFiledsDtos);//字段 - mdmModuleDao.createTable(maps); - Map mapsDistribute = new HashMap<>(); - mapsDistribute.put("tableName", mainMdmModuleDb.getDbName() + "_distribute");//表名 - List distribute = getDistribute(); - maps.put("databaseFields", distribute);//字段 - mapsDistribute.put("tableRemark", mainMdmModuleDb.getRemark() + "分发表");//表备注 - mdmModuleDao.createTableDistribute(mapsDistribute); - } else { - //修改 - Map tablename = new HashMap<>(); - tablename.put("tableName", mainMdmModuleDb.getDbName());//表名 - tablename.put("tableRemark", mainMdmModuleDb.getRemark());//表备注 - mdmModuleDao.alterTableName(tablename); - Map maps = new HashMap<>(); - maps.put("tableName", mainMdmModuleDb.getDbName());//表名 - maps.put("tableRemark", mainMdmModuleDb.getRemark());//表备注 - maps.put("databaseFields", dbFiledsDtos);//字段 - //mdmModuleDao.alterTable(maps); - } - } - - /** - * @Author lvleigang - * @Description 设置分发表字段 - * @Date 8:49 上午 2023/11/9 - * @param - * @return java.util.List - **/ - private List getDistribute() { - List dbFiledsDtos = new ArrayList<>(); - dbFiledsDtos.add(new DbFiledsDto("1", "数据id","formmain_id", "3", "50")); - dbFiledsDtos.add(new DbFiledsDto("1", "应用id","app_id", "3", "50")); - dbFiledsDtos.add(new DbFiledsDto("1", "状态1、发送成功 2、发送中 3、发送失败","status", "3", "50")); - dbFiledsDtos.add(new DbFiledsDto("1", "描述","msg", "3", "50")); - return dbFiledsDtos; - } - - /** - * @param tableName - * @return java.lang.Long - * @Author lvleigang - * @Description 校验表是否存在 - * @Date 3:58 下午 2023/7/11 - **/ - private boolean checkTable(String tableName) { - Map maps = new HashMap<>(); - maps.put("tableName", tableName); - Integer i = mdmModuleDao.checkTable(maps); - if (i != null && i > 0) { - return true; - } - return false; - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询显示信息 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleView(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - MdmModuleViewVo mdmModuleViewVo = new MdmModuleViewVo(); - //查询设置各种类型字段 - //查询模版数据源 - MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setMdmId(entity.getId()); - mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); - if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity.setMdmId(entity.getId()); - mdmModuleDbFiledsEntity.setSts("Y"); - List mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); - setFiledType(mdmModuleViewVo, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList); - } - //查询数据库设置的字段 - MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); - mdmModuleViewEntity.setMdmId(entity.getId()); - mdmModuleViewEntity.setSts("Y"); - List moduleViewEntityList = mdmModuleViewDao.queryBase(mdmModuleViewEntity); - if (moduleViewEntityList != null && moduleViewEntityList.size() == 1) { - mdmModuleViewVo.setMdmModuleViewEntity(moduleViewEntityList.get(0)); - //查询明细 - MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); - mdmModuleViewDetailEntity.setMdmId(entity.getId()); - mdmModuleViewDetailEntity.setViewId(moduleViewEntityList.get(0).getId()); - mdmModuleViewDetailEntity.setSts("Y"); - List mdmModuleViewDetailEntityList = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); - setDbFiledType(mdmModuleViewVo, mdmModuleViewDetailEntityList); - } else { - mdmModuleViewVo.setMdmModuleViewEntity(new MdmModuleViewEntity()); - mdmModuleViewVo.setDbAddFiled(new ArrayList<>()); - mdmModuleViewVo.setDbEditFiled(new ArrayList<>()); - mdmModuleViewVo.setDbShowFiled(new ArrayList<>()); - mdmModuleViewVo.setDbQueryFiled(new ArrayList<>()); - mdmModuleViewVo.setDbListFiled(new ArrayList<>()); - } - return BaseResult.getSuccessMessageEntity("查询视图成功", mdmModuleViewVo); - } - - private void setDbFiledType(MdmModuleViewVo mdmModuleViewVo, List mdmModuleViewDetailEntityList) { - //新增 - List addFiled = new ArrayList<>(); - //修改 - List editFiled = new ArrayList<>(); - //查看 - List showFiled = new ArrayList<>(); - //查询 - List queryFiled = new ArrayList<>(); - //列表 - List listFiled = new ArrayList<>(); - if (mdmModuleViewDetailEntityList != null && mdmModuleViewDetailEntityList.size() > 0) { - for (int i = 0; i < mdmModuleViewDetailEntityList.size(); i++) { - switch (mdmModuleViewDetailEntityList.get(i).getViewType()) { - //1、查询2、列表3、新增4、修改 5、查看 - case "1": - queryFiled.add(mdmModuleViewDetailEntityList.get(i)); - break; - case "2": - listFiled.add(mdmModuleViewDetailEntityList.get(i)); - break; - case "3": - addFiled.add(mdmModuleViewDetailEntityList.get(i)); - break; - case "4": - editFiled.add(mdmModuleViewDetailEntityList.get(i)); - break; - case "5": - showFiled.add(mdmModuleViewDetailEntityList.get(i)); - break; - default: - } - } - } - mdmModuleViewVo.setDbAddFiled(addFiled); - mdmModuleViewVo.setDbEditFiled(editFiled); - mdmModuleViewVo.setDbShowFiled(showFiled); - mdmModuleViewVo.setDbQueryFiled(queryFiled); - mdmModuleViewVo.setDbListFiled(listFiled); - } - - /** - * @param mdmModuleViewVo - * @param mdmModuleDbEntityList - * @param mdmModuleDbFiledsEntityList - * @return void - * @Author lvleigang - * @Description 设置对应的字段类型 - * @Date 2023/10/25 - **/ - private void setFiledType(MdmModuleViewVo mdmModuleViewVo, List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList) { - //新增 - List addFiled = new ArrayList<>(); - //修改 - List editFiled = new ArrayList<>(); - //查看 - List showFiled = new ArrayList<>(); - //查询 - List queryFiled = new ArrayList<>(); - //列表 - List listFiled = new ArrayList<>(); - if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { - //1、主表 - addFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - editFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - showFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - queryFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - } else { - //2、明细 - queryFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - addFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - editFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - showFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - } - } - } - } - } - } - mdmModuleViewVo.setAddFiled(addFiled); - mdmModuleViewVo.setEditFiled(editFiled); - mdmModuleViewVo.setShowFiled(showFiled); - mdmModuleViewVo.setQueryFiled(queryFiled); - mdmModuleViewVo.setListFiled(listFiled); - } - - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置修改显示信息 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity doSaveMdmModuleView(JSONObject object) { - MdmModuleViewDto entity = getData("jsonStr", object, MdmModuleViewDto.class); - //判断是否有数据 - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - if (entity.getMdmModuleViewEntity() == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - boolean flag = false; - //保存主数据视图表 - MdmModuleViewEntity mdmModuleViewEntity = entity.getMdmModuleViewEntity(); - mdmModuleViewEntity.setMdmId(entity.getId()); - mdmModuleViewEntity.setSts("Y"); - mdmModuleViewEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleViewEntity.setModify_time(new Date()); - if (mdmModuleViewEntity.getId() != null && !"".equals(mdmModuleViewEntity.getId())) { - flag = false; - //修改 - mdmModuleViewDao.update(mdmModuleViewEntity); - } else { - flag = true; - //新增 - mdmModuleViewEntity.setId(UUIDUtils.getUUID()); - mdmModuleViewEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleViewEntity.setCreate_time(new Date()); - mdmModuleViewDao.save(mdmModuleViewEntity); - } - //保存视图字段表 - //先删除明细表 - MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); - mdmModuleViewDetailEntity.setMdmId(entity.getId()); - mdmModuleViewDetailEntity.setSts("Y"); - mdmModuleViewDetailEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleViewDetailEntity.setModify_time(new Date()); - mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity); - //1、查询2、列表3、新增4、修改 5、查看 - saveDbViewFiled(entity, mdmModuleViewEntity, entity.getQueryFiled(), "1"); - saveDbViewFiled(entity, mdmModuleViewEntity, entity.getListFiled(), "2"); - saveDbViewFiled(entity, mdmModuleViewEntity, entity.getAddFiled(), "3"); - saveDbViewFiled(entity, mdmModuleViewEntity, entity.getEditFiled(), "4"); - saveDbViewFiled(entity, mdmModuleViewEntity, entity.getShowFiled(), "5"); - MdmModuleEntity moduleEntity = new MdmModuleEntity(); - moduleEntity.setId(entity.getId()); - moduleEntity.setSts("Y"); - - moduleEntity = mdmModuleDao.queryOne(moduleEntity); - if (flag) { - //新增菜单 - Module module = new Module(); - module.setCreate(); - module.setServiceName("mdmService");//Spring bean名称 - module.setLvl("2");//等级 - module.setName("integrationOptionAdmin"+moduleEntity.getMdmCode());//名称 - module.setCode(moduleEntity.getMdmCode().toString());//编码 - module.setFormType("0");//类型 0、menu 1、tree 2、list 3、view - module.setLevel("2");//模块操作级别Superadministrator - module.setIcon(null);//模块图标 - module.setUpIds("c3dda399207843eeac91770ac18e91e3");//上级id - module.setTableName(null);//bean表名称映射key - module.setKeyModular(null);//是否关键模块(Y是N否) - module.setTarget(null);//跳转目标 - module.setRemark("主数据" + moduleEntity.getMdmName());//备注 - module.setOpenType("1");//菜单打开方式 - module.setFormId(entity.getId());//表单ID - module.setAppId(null);//应用id - module.setPath("integrationOptionAdmin/"+moduleEntity.getMdmCode());//路由地址 - //module.setPath("integrationOptionAdmin");//路由地址 - module.setComponent("integrationOptionV2/index");//一级Layout 二级 ParntView 三级component - module.setHidden("false");//隐藏 - module.setRedirect(null);//redirevt - module.setAlwaysShow(null);//alwaysShow - module.setTitle(moduleEntity.getMdmName());//标题 - module.setNoCache(null);//nocache缓存 - module.setLabel(moduleEntity.getMdmName());//label - JSONObject object1 = new JSONObject(); - object1.put("mdmId", moduleEntity.getId());//主数据id - object1.put("mdmCode", moduleEntity.getMdmCode());//主数据编码 - object1.put("viewType", mdmModuleViewEntity.getViewName());//1、树 2、列表 - module.setOptions(object1.toString());//菜单mate参数 - moduleMapper.entity_insert(module); - } else { - //修改菜单 注意因为可能修改显示类型,所以需要修改菜单的属性 - Module module = new Module(); - module.setFormId(entity.getId()); - module.setSts("Y"); - List moduleList = moduleMapper.entity_list_base(module); - if (moduleList != null && moduleList.size() == 1) { - module = moduleList.get(0); - module.setUpdate(); - module.setTitle(moduleEntity.getMdmName());//标题 - module.setLabel(moduleEntity.getMdmName());//label - JSONObject object1 = new JSONObject(); - object1.put("mdmId", moduleEntity.getId());//主数据id - object1.put("mdmCode", moduleEntity.getMdmCode());//主数据id - object1.put("viewType", mdmModuleViewEntity.getViewName());//1、树 2、列表 - module.setOptions(object1.toString());//菜单mate参数 - moduleMapper.entity_update(module); - } else { - return BaseResult.getFailureMessageEntity("显示信息保存成功,菜单配置失败请检查"); - } - } - return BaseResult.getSuccessMessageEntity("保存显示信息成功"); - } - - /** - * @param entity - * @param mdmModuleViewEntity - * @param mdmDbFiledVoList - * @param type - * @return void - * @Author lvleigang - * @Description 保存数据 - * @Date 1:37 下午 2023/10/25 - **/ - private void saveDbViewFiled(MdmModuleViewDto entity, MdmModuleViewEntity mdmModuleViewEntity, List mdmDbFiledVoList, String type) { - if (mdmDbFiledVoList != null && mdmDbFiledVoList.size() > 0) { - for (int i = 0; i < mdmDbFiledVoList.size(); i++) { - MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); - mdmModuleViewDetailEntity.setId(UUIDUtils.getUUID()); - mdmModuleViewDetailEntity.setSts("Y"); - mdmModuleViewDetailEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - mdmModuleViewDetailEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleViewDetailEntity.setCreate_time(new Date()); - mdmModuleViewDetailEntity.setModify_time(new Date()); - mdmModuleViewDetailEntity.setMdmId(entity.getId()); - mdmModuleViewDetailEntity.setViewId(mdmModuleViewEntity.getId()); - mdmModuleViewDetailEntity.setViewFiled(mdmDbFiledVoList.get(i).getId()); - mdmModuleViewDetailEntity.setViewType(type); - mdmModuleViewDetailEntity.setSort(String.valueOf(i + 1)); - mdmModuleViewDetailDao.save(mdmModuleViewDetailEntity); - } - } - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询权限配置 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleRule(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询模块下的角色列表 - MdmModuleRoleEntity mdmModuleRoleEntity = new MdmModuleRoleEntity(); - mdmModuleRoleEntity.setSts("Y"); - mdmModuleRoleEntity.setMdmId(entity.getId()); - List mdmModuleRoleEntities = mdmModuleRoleDao.queryBase(mdmModuleRoleEntity); - if (mdmModuleRoleEntities != null && mdmModuleRoleEntities.size() > 0) { - MdmModuleRoleButtonEntity mdmModuleRoleButtonEntity = new MdmModuleRoleButtonEntity(); - mdmModuleRoleButtonEntity.setSts("Y"); - mdmModuleRoleButtonEntity.setMdmId(entity.getId()); - List mdmModuleRoleButtonEntities = mdmModuleRoleButtonDao.queryBase(mdmModuleRoleButtonEntity); - if (mdmModuleRoleButtonEntities != null && mdmModuleRoleButtonEntities.size() > 0) { - for (int i = 0; i < mdmModuleRoleEntities.size(); i++) { - List list = new ArrayList<>(); - for (int i1 = 0; i1 < mdmModuleRoleButtonEntities.size(); i1++) { - if (mdmModuleRoleEntities.get(i).getRoleId().equals(mdmModuleRoleButtonEntities.get(i1).getRoleId())) { - list.add(mdmModuleRoleButtonEntities.get(i1)); - } - } - mdmModuleRoleEntities.get(i).setMdmModuleRoleButtonEntities(list); - } - } - } - return BaseResult.getSuccessMessageEntity("查询成功", mdmModuleRoleEntities); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存权限配置 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity doSaveMdmModuleRule(JSONObject object) { - MdmRoleDto entity = getData("jsonStr", object, MdmRoleDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询菜单 - Module module = new Module(); - module.setFormId(entity.getId()); - List moduleList = moduleMapper.entity_list_base(module); - if (moduleList != null && moduleList.size() == 1) { - module = moduleList.get(0); - } else { - return BaseResult.getFailureMessageEntity("菜单错误请检查菜单"); - } - //先删除 - RoleModule roleModule = new RoleModule(); - roleModule.setSts("Y"); - roleModule.setUpdate(); - roleModule.setModuleId(module.getId()); - roleModuleMapper.entity_logicDelete_Multi_Condition(roleModule); - MdmModuleRoleEntity mdmModuleRoleEntity = new MdmModuleRoleEntity(); - mdmModuleRoleEntity.setMdmId(entity.getId()); - mdmModuleRoleEntity.setSts("Y"); - mdmModuleRoleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleRoleEntity.setModify_time(new Date()); - mdmModuleRoleDao.logicRemoveMultiCondition(mdmModuleRoleEntity); - MdmModuleRoleButtonEntity mdmModuleRoleButtonEntity = new MdmModuleRoleButtonEntity(); - mdmModuleRoleButtonEntity.setMdmId(entity.getId()); - mdmModuleRoleButtonEntity.setSts("Y"); - mdmModuleRoleButtonEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleRoleButtonEntity.setModify_time(new Date()); - mdmModuleRoleButtonDao.logicRemoveMultiCondition(mdmModuleRoleButtonEntity); - - if (entity.getMdmModuleRoleEntities() != null && entity.getMdmModuleRoleEntities().size() > 0) { - for (int i = 0; i < entity.getMdmModuleRoleEntities().size(); i++) { - - MdmModuleRoleEntity moduleRoleEntity = entity.getMdmModuleRoleEntities().get(i); - moduleRoleEntity.setMdmId(entity.getId()); - moduleRoleEntity.setSts("Y"); - moduleRoleEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - moduleRoleEntity.setModify_time(new Date()); - if (moduleRoleEntity.getId() != null && !"".equals(moduleRoleEntity.getId())) { - //修改 - mdmModuleRoleDao.update(moduleRoleEntity); - } else { - //新增 - moduleRoleEntity.setId(UUIDUtils.getUUID()); - moduleRoleEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - moduleRoleEntity.setCreate_time(new Date()); - mdmModuleRoleDao.save(moduleRoleEntity); - } - if (moduleRoleEntity.getMdmModuleRoleButtonEntities() != null && moduleRoleEntity.getMdmModuleRoleButtonEntities().size() > 0) { - for (int i1 = 0; i1 < moduleRoleEntity.getMdmModuleRoleButtonEntities().size(); i1++) { - MdmModuleRoleButtonEntity moduleRoleButtonEntity = moduleRoleEntity.getMdmModuleRoleButtonEntities().get(i1); - moduleRoleButtonEntity.setMdmId(entity.getId()); - moduleRoleButtonEntity.setSts("Y"); - moduleRoleButtonEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - moduleRoleButtonEntity.setModify_time(new Date()); - moduleRoleButtonEntity.setModuleRoleId(moduleRoleEntity.getRoleId()); - moduleRoleButtonEntity.setRoleId(moduleRoleEntity.getRoleId()); - if (moduleRoleButtonEntity.getId() != null && !"".equals(moduleRoleButtonEntity.getId())) { - //修改 - mdmModuleRoleButtonDao.update(moduleRoleButtonEntity); - } else { - //新增 - moduleRoleButtonEntity.setId(UUIDUtils.getUUID()); - moduleRoleButtonEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - moduleRoleButtonEntity.setCreate_time(new Date()); - mdmModuleRoleButtonDao.save(moduleRoleButtonEntity); - } - } - } - //再添加 - RoleModule saveRole = new RoleModule(); - saveRole.setCreate(); - saveRole.setRoleId(moduleRoleEntity.getRoleId()); - saveRole.setModuleId(module.getId()); - roleModuleMapper.entity_insert(saveRole); - } - } - return BaseResult.getSuccessMessageEntity("保存成功"); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置查询分发设置 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmModuleDistribute(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询模块下的应用列表 - MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); - mdmModuleDistributeEntity.setSts("Y"); - mdmModuleDistributeEntity.setMdmId(entity.getId()); - List mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(mdmModuleDistributeEntity); - if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) { - MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); - mdmModuleDistributeDetailEntity.setSts("Y"); - mdmModuleDistributeDetailEntity.setMdmId(entity.getId()); - List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); - if (mdmModuleDistributeDetailEntities != null && mdmModuleDistributeDetailEntities.size() > 0) { - for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { - List addlist = new ArrayList<>(); - List deletelist = new ArrayList<>(); - for (int i1 = 0; i1 < mdmModuleDistributeDetailEntities.size(); i1++) { - if (mdmModuleDistributeEntities.get(i).getAddApi().equals(mdmModuleDistributeDetailEntities.get(i1).getApiId()) - && mdmModuleDistributeEntities.get(i).getId().equals(mdmModuleDistributeDetailEntities.get(i1).getDistributeId())) { - addlist.add(mdmModuleDistributeDetailEntities.get(i1)); - } - if (mdmModuleDistributeEntities.get(i).getDeleteApi().equals(mdmModuleDistributeDetailEntities.get(i1).getApiId()) - && mdmModuleDistributeEntities.get(i).getId().equals(mdmModuleDistributeDetailEntities.get(i1).getDistributeId())) { - deletelist.add(mdmModuleDistributeDetailEntities.get(i1)); - } - } - mdmModuleDistributeEntities.get(i).setAddList(addlist); - mdmModuleDistributeEntities.get(i).setDeleteList(deletelist); - } - } - } - return BaseResult.getSuccessMessageEntity("查询成功", mdmModuleDistributeEntities); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据设置保存分发设置 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity doSaveMdmModuleDistribute(JSONObject object) { - MdmDistributeDto entity = getData("jsonStr", object, MdmDistributeDto.class); - //判断是否有数据 - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //if(entity.getMdmModuleDistributeEntities() == null ){ - // return BaseResult.getFailureMessageEntity("参数不允许为空"); - //} - //先删除 - MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); - mdmModuleDistributeEntity.setMdmId(entity.getId()); - mdmModuleDistributeEntity.setSts("Y"); - mdmModuleDistributeEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDistributeEntity.setModify_time(new Date()); - mdmModuleDistributeDao.logicRemoveMultiCondition(mdmModuleDistributeEntity); - - MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); - mdmModuleDistributeDetailEntity.setMdmId(entity.getId()); - mdmModuleDistributeDetailEntity.setSts("Y"); - mdmModuleDistributeDetailEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - mdmModuleDistributeDetailEntity.setModify_time(new Date()); - mdmModuleDistributeDetailDao.logicRemoveMultiCondition(mdmModuleDistributeDetailEntity); - - //保存主数据 - List mdmModuleDistributeEntities = entity.getMdmModuleDistributeEntities(); - - if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) { - for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { - MdmModuleDistributeEntity moduleDistributeEntity = mdmModuleDistributeEntities.get(i); - moduleDistributeEntity.setMdmId(entity.getId()); - moduleDistributeEntity.setSts("Y"); - moduleDistributeEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeEntity.setModify_time(new Date()); - if (moduleDistributeEntity.getId() != null && !"".equals(moduleDistributeEntity.getId())) { - //修改 - mdmModuleDistributeDao.update(moduleDistributeEntity); - } else { - //新增 - moduleDistributeEntity.setId(UUIDUtils.getUUID()); - moduleDistributeEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeEntity.setCreate_time(new Date()); - mdmModuleDistributeDao.save(moduleDistributeEntity); - } - if (moduleDistributeEntity.getAddList() != null && moduleDistributeEntity.getAddList().size() > 0) { - for (int i1 = 0; i1 < moduleDistributeEntity.getAddList().size(); i1++) { - MdmModuleDistributeDetailEntity moduleDistributeDetailEntity = moduleDistributeEntity.getAddList().get(i1); - moduleDistributeDetailEntity.setMdmId(entity.getId()); - moduleDistributeDetailEntity.setSts("Y"); - moduleDistributeDetailEntity.setApiId(moduleDistributeEntity.getAddApi()); - moduleDistributeDetailEntity.setDistributeId(moduleDistributeEntity.getId()); - moduleDistributeDetailEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeDetailEntity.setModify_time(new Date()); - if (moduleDistributeDetailEntity.getId() != null && !"".equals(moduleDistributeDetailEntity.getId())) { - //修改 - mdmModuleDistributeDetailDao.update(moduleDistributeDetailEntity); - } else { - //新增 - moduleDistributeDetailEntity.setId(UUIDUtils.getUUID()); - moduleDistributeDetailEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeDetailEntity.setCreate_time(new Date()); - mdmModuleDistributeDetailDao.save(moduleDistributeDetailEntity); - } - } - } - if (moduleDistributeEntity.getDeleteList() != null && moduleDistributeEntity.getDeleteList().size() > 0) { - for (int i1 = 0; i1 < moduleDistributeEntity.getDeleteList().size(); i1++) { - MdmModuleDistributeDetailEntity moduleDistributeDetailEntity = moduleDistributeEntity.getDeleteList().get(i1); - moduleDistributeDetailEntity.setMdmId(entity.getId()); - moduleDistributeDetailEntity.setSts("Y"); - moduleDistributeDetailEntity.setApiId(moduleDistributeEntity.getDeleteApi()); - moduleDistributeDetailEntity.setDistributeId(moduleDistributeEntity.getId()); - moduleDistributeDetailEntity.setModify_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeDetailEntity.setModify_time(new Date()); - if (moduleDistributeDetailEntity.getId() != null && !"".equals(moduleDistributeDetailEntity.getId())) { - //修改 - mdmModuleDistributeDetailDao.update(moduleDistributeDetailEntity); - } else { - //新增 - moduleDistributeDetailEntity.setId(UUIDUtils.getUUID()); - moduleDistributeDetailEntity.setCreate_user_id(StpUtil.getLoginIdAsString()); - moduleDistributeDetailEntity.setCreate_time(new Date()); - mdmModuleDistributeDetailDao.save(moduleDistributeDetailEntity); - } - } - } - } - } - return BaseResult.getSuccessMessageEntity("保存发布设置成功"); - } + private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao; + @Resource + private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao; + @Resource + private IMdmTableCodeRuleDao mdmTableCodeRuleDao; + @Resource + private IMdmModuleDistributeDao mdmModuleDistributeDao; + @Resource + private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao; + @Resource + private IMdmModuleViewDao mdmModuleViewDao; + @Resource + private IMdmModuleViewButtonDao mdmModuleViewButtonDao; + @Resource + private IMdmModuleViewDetailDao mdmModuleViewDetailDao; + //多线程请求加锁 HttpRequest 构造方法是静态的 + private final Object lock = new Object(); + @Value("${zt.url}") + private String url; /** * @param object @@ -1353,23 +148,13 @@ public class MdmServiceImpl implements IMdmService { return BaseResult.getFailureMessageEntity("系统错误"); } //查询模版 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(entity.getMdmCode()); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //获取用户角色id - UserRole updateUser = new UserRole(); - updateUser.setUserId(StpUtil.getLoginIdAsString()); - updateUser.setSts("Y"); - List userRoleList = userRoleMapper.entity_list_base(updateUser); - if (userRoleList == null || userRoleList.size() == 0) { + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntity == null || mdmModuleEntity.getId() == null) { return BaseResult.getFailureMessageEntity("系统错误"); } + + //设置模版 MdmViewVo mdmViewVo = new MdmViewVo(); - mdmModuleEntity = mdmModuleEntities.get(0); mdmViewVo.setMdmModuleEntity(mdmModuleEntity); //查询展示类型 MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); @@ -1386,7 +171,7 @@ public class MdmServiceImpl implements IMdmService { MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } @@ -1394,7 +179,7 @@ public class MdmServiceImpl implements IMdmService { MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbFiledsEntity.setSts("Y"); - List mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); + List mdmModuleDbFiledsEntityList = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); if (mdmModuleDbFiledsEntityList == null || mdmModuleDbFiledsEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } @@ -1406,54 +191,170 @@ public class MdmServiceImpl implements IMdmService { if (mdmModuleDbFiledsRuleEntityList == null || mdmModuleDbFiledsRuleEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } + //查询设置的查询字段 MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); mdmModuleViewDetailEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleViewDetailEntity.setSts("Y"); - mdmModuleViewDetailEntity.setViewType("1"); - List queryList = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); - //设置字段 - List queryListVo = setQueryList(mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList, queryList,false); - mdmViewVo.setQueryList(queryListVo); - - //查询用户设置字段 - MdmModuleUserViewEntity mdmModuleUserViewEntity = new MdmModuleUserViewEntity(); - mdmModuleUserViewEntity.setMdmId(mdmModuleEntity.getId()); - mdmModuleUserViewEntity.setSts("Y"); - mdmModuleUserViewEntity.setUserId(StpUtil.getLoginIdAsString()); - List mdmModuleUserViewEntities = mdmModuleUserViewDao.queryBase(mdmModuleUserViewEntity); - - //查询设置的查询字段 - MdmModuleViewDetailEntity mdmModuleViewDetailEntity1 = new MdmModuleViewDetailEntity(); - mdmModuleViewDetailEntity1.setMdmId(mdmModuleEntity.getId()); - mdmModuleViewDetailEntity1.setSts("Y"); - mdmModuleViewDetailEntity1.setViewType("2"); - List listList = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity1); - List dolistList = new ArrayList<>(); - - if (mdmModuleUserViewEntities != null && mdmModuleUserViewEntities.size() > 0) { - dolistList = getDolist(listList, mdmModuleUserViewEntities); - if (dolistList == null || dolistList.size() == 0) { - dolistList = listList; - } - } else { - dolistList = listList; + List mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); + if (mdmModuleViewDetailEntities == null || mdmModuleViewDetailEntities.size() == 0) { + return BaseResult.getFailureMessageEntity("系统错误"); } - List listListVo = setQueryList(mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList, dolistList,true); - mdmViewVo.setListList(listListVo); - - //获取按钮 - MdmModuleRoleButtonEntity mdmModuleRoleButtonEntity = new MdmModuleRoleButtonEntity(); - mdmModuleRoleButtonEntity.setMdmId(mdmModuleEntity.getId()); - mdmModuleRoleButtonEntity.setSts("Y"); - mdmModuleRoleButtonEntity.setRoleIds(userRoleList); - List mdmModuleRoleButtonEntities = mdmModuleRoleButtonDao.queryBase(mdmModuleRoleButtonEntity); - List buttonList = setButton(mdmModuleRoleButtonEntities); - mdmViewVo.setButtonList(buttonList); - + List queryList = getFiledByType("1", mdmModuleViewDetailEntities, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList); + mdmViewVo.setQueryList(queryList); + List listList = getFiledByType("2", mdmModuleViewDetailEntities, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList); + mdmViewVo.setListList(listList); return BaseResult.getSuccessMessageEntity("获取字段成功", mdmViewVo); } + /** + * @param viewType 类型 + * @param mdmModuleViewDetailEntities 显示设置的字段 + * @param mdmModuleDbEntityList 表 + * @param mdmModuleDbFiledsEntityList 表字段 + * @param mdmModuleDbFiledsRuleEntityList 字段规则 + * @return java.util.List + * @Author lvleigang + * @Description 根据类型获取字段 + * @Date 9:18 上午 2024/6/6 + **/ + private List getFiledByType(String viewType, List mdmModuleViewDetailEntities, List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList, List mdmModuleDbFiledsRuleEntityList) { + List mdmViewFiledVos = new ArrayList<>(); + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + MdmViewFiledVo rule = new MdmViewFiledVo(); + rule.setDbName(mdmModuleDbEntityList.get(i).getDbName()); + rule.setDbType("1"); + rule.setMdmId(mdmModuleDbEntityList.get(i).getMdmId()); + rule.setDbId(mdmModuleDbEntityList.get(i).getId()); + rule.setChName("单据规则"); + rule.setEnName("document_rule"); + mdmViewFiledVos.add(rule); + List msgRule = new ArrayList<>(); + MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); + msgRuleTitie.setFormName("optionRuleForm"); + msgRuleTitie.setRuleCode("title"); + msgRuleTitie.setRuleName("显示名"); + msgRuleTitie.setRuleType("2"); + msgRuleTitie.setRuleValue("单据编码"); + MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); + msgRulerow.setFormName("optionRuleForm"); + msgRulerow.setRuleCode("row"); + msgRulerow.setRuleName("宽度"); + msgRulerow.setRuleType("2"); + msgRulerow.setRuleValue("12"); + MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); + msgRuletype.setFormName("optionRuleForm"); + msgRuletype.setRuleCode("type"); + msgRuletype.setRuleName("数据类型"); + msgRuletype.setRuleType("2"); + msgRuletype.setRuleValue("input"); + MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); + msgRulerequired.setFormName("optionRuleForm"); + msgRulerequired.setRuleCode("required"); + msgRulerequired.setRuleName("必填"); + msgRulerequired.setRuleType("2"); + MdmModuleDbFiledsRuleEntity withs = new MdmModuleDbFiledsRuleEntity(); + withs.setFormName("optionRuleForm"); + withs.setRuleCode("width"); + withs.setRuleName("宽度"); + withs.setRuleType("2"); + withs.setRuleValue("200"); + msgRule.add(withs); + msgRule.add(msgRulerequired); + msgRule.add(msgRuletype); + msgRule.add(msgRulerow); + msgRule.add(msgRuleTitie); + rule.setRuleList(msgRule); + } + } + if (mdmModuleViewDetailEntities != null && mdmModuleViewDetailEntities.size() > 0) { + for (int i = 0; i < mdmModuleViewDetailEntities.size(); i++) { + if (viewType.equals(mdmModuleViewDetailEntities.get(i).getViewType())) { + //类型一致 + MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); + mdmViewFiledVo.setId(mdmModuleViewDetailEntities.get(i).getViewFiled()); + for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + if (mdmModuleDbFiledsEntityList.get(i1).getId().equals(mdmModuleViewDetailEntities.get(i).getViewFiled())) { + for (int i2 = 0; i2 < mdmModuleDbEntityList.size(); i2++) { + if (mdmModuleDbEntityList.get(i2).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { + mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i2).getDbName()); + mdmViewFiledVo.setDbType(mdmModuleDbEntityList.get(i2).getDbType()); + mdmViewFiledVo.setMdmId(mdmModuleDbEntityList.get(i2).getMdmId()); + mdmViewFiledVo.setDbId(mdmModuleDbEntityList.get(i2).getId()); + + break; + } + } + mdmViewFiledVo.setChName(mdmModuleDbFiledsEntityList.get(i1).getChName()); + mdmViewFiledVo.setEnName(mdmModuleDbFiledsEntityList.get(i1).getEnName()); + + mdmViewFiledVo.setFiledType(mdmModuleDbFiledsEntityList.get(i1).getFiledType()); + //字段规则 + if (mdmModuleDbFiledsRuleEntityList != null && mdmModuleDbFiledsRuleEntityList.size() > 0) { + List ruleList = new ArrayList<>(); + for (int i2 = 0; i2 < mdmModuleDbFiledsRuleEntityList.size(); i2++) { + if (mdmModuleDbFiledsEntityList.get(i1).getId().equals(mdmModuleDbFiledsRuleEntityList.get(i2).getFiledId())) { + ruleList.add(mdmModuleDbFiledsRuleEntityList.get(i2)); + } + } + mdmViewFiledVo.setRuleList(ruleList); + if ("data_status".equals(mdmModuleDbFiledsEntityList.get(i1).getEnName())) { + List a = new ArrayList<>(); + + MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); + msgRuleTitie.setFormName("optionRuleForm"); + msgRuleTitie.setRuleCode("title"); + msgRuleTitie.setRuleName("显示名"); + msgRuleTitie.setRuleType("2"); + msgRuleTitie.setRuleValue("数据状态"); + MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); + msgRulerow.setFormName("optionRuleForm"); + msgRulerow.setRuleCode("row"); + msgRulerow.setRuleName("宽度"); + msgRulerow.setRuleType("2"); + msgRulerow.setRuleValue("12"); + MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); + msgRuletype.setFormName("optionRuleForm"); + msgRuletype.setRuleCode("type"); + msgRuletype.setRuleName("数据类型"); + msgRuletype.setRuleType("2"); + msgRuletype.setRuleValue("input"); + MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); + msgRulerequired.setFormName("optionRuleForm"); + msgRulerequired.setRuleCode("required"); + msgRulerequired.setRuleName("必填"); + msgRulerequired.setRuleType("2"); + MdmModuleDbFiledsRuleEntity withs = new MdmModuleDbFiledsRuleEntity(); + withs.setFormName("optionRuleForm"); + withs.setRuleCode("width"); + withs.setRuleName("宽度"); + withs.setRuleType("2"); + withs.setRuleValue("200"); + a.add(withs); + a.add(msgRulerequired); + a.add(msgRuletype); + a.add(msgRulerow); + a.add(msgRuleTitie); + mdmViewFiledVo.setRuleList(a); + } + } + break; + } + } + mdmViewFiledVos.add(mdmViewFiledVo); + } + } + } + if (mdmViewFiledVos != null && mdmViewFiledVos.size() > 0) { + for (int i = 0; i < mdmViewFiledVos.size(); i++) { + mdmViewFiledVos.get(i).setSorts(i); + } + } + return mdmViewFiledVos; + } + // + /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity @@ -1467,33 +368,36 @@ public class MdmServiceImpl implements IMdmService { if (entity == null) { return BaseResult.getFailureMessageEntity("参数不允许为空"); } - if (entity.getId() == null || "".equals(entity.getId())) { + if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { return BaseResult.getFailureMessageEntity("系统错误"); } //查询设置各种类型字段 + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); //查询模版数据源 MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setMdmId(entity.getId()); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); List listFiled = new ArrayList<>(); if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity.setMdmId(entity.getId()); + mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbFiledsEntity.setSts("Y"); - List mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); + List mdmModuleDbFiledsEntityList = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); // if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { - //1、主表 - listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); - } else { - //2、明细 - listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType()) || "2".equals(mdmModuleDbEntityList.get(i).getDbType())) { + if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + //1、主表 + listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【主表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } else { + //2、明细 + listFiled.add(new MdmDbFiledVo(mdmModuleDbFiledsEntityList.get(i1).getId(), "【子表:" + mdmModuleDbEntityList.get(i).getDbName() + "】" + mdmModuleDbFiledsEntityList.get(i1).getChName())); + } } } } @@ -1503,201 +407,202 @@ public class MdmServiceImpl implements IMdmService { } return BaseResult.getSuccessMessageEntity("查询视图成功", listFiled); } - - /** - * @param mdmModuleRoleButtonEntities - * @return java.util.List - * @Author lvleigang - * @Description 设置返回按钮 - * @Date 4:48 下午 2023/10/26 - **/ - private List setButton(List mdmModuleRoleButtonEntities) { - List mdmViewButtonVoList = new ArrayList<>(); - if (mdmModuleRoleButtonEntities != null && mdmModuleRoleButtonEntities.size() > 0) { - for (int i = 0; i < mdmModuleRoleButtonEntities.size(); i++) { - mdmViewButtonVoList.add(new MdmViewButtonVo(mdmModuleRoleButtonEntities.get(i).getButtonType(), mdmModuleRoleButtonEntities.get(i).getButtonName())); - } - } - return mdmViewButtonVoList; - } - - /** - * @param allRecords - * @param checkedMeters - * @return java.util.List - * @Author lvleigang - * @Description 取出重复字段数据 - * @Date 4:34 下午 2023/10/26 - **/ - private List getDolist(List allRecords, List checkedMeters) { - List meterPlan = allRecords.stream() - .filter(item -> checkedMeters.stream() - .map(e -> { - if (!Objects.equals(item.getViewFiled(), e.getViewDetailId())) { - return null; - } else { - return item.getViewFiled(); - } - }) - .collect(Collectors.toList()) - .contains(item.getViewFiled())) - .collect(Collectors.toList()); - return meterPlan; - } - - /** - * @param mdmModuleDbEntityList 数据源 - * @param mdmModuleDbFiledsEntityList 数据源下的字段表 - * @param mdmModuleDbFiledsRuleEntityList 数据源字段的规则表 - * @param queryList 需要的字段 - * @return java.util.List - * @Author lvleigang - * @Description 根据字段设置返回前台字段 - * @Date 4:11 下午 2023/10/26 - **/ - private List setQueryList(List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList, List mdmModuleDbFiledsRuleEntityList, List queryList,boolean flag) { - List mdmViewFiledVos = new ArrayList<>(); - - if (queryList != null && queryList.size() > 0) { - for (int i = 0; i < queryList.size(); i++) { - MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); - mdmViewFiledVo.setId(queryList.get(i).getViewFiled());//字段id - mdmViewFiledVo.setSorts(i + 2);//排序 - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (queryList.get(i).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())) { - mdmViewFiledVo.setFiledType(mdmModuleDbFiledsEntityList.get(i1).getFiledType());//英文名 - mdmViewFiledVo.setEnName(mdmModuleDbFiledsEntityList.get(i1).getEnName());//英文名 - mdmViewFiledVo.setChName(mdmModuleDbFiledsEntityList.get(i1).getChName());//中文名 - for (int i2 = 0; i2 < mdmModuleDbEntityList.size(); i2++) { - if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i2).getId())) { - mdmViewFiledVo.setDbType(mdmModuleDbEntityList.get(i2).getDbType());//类型 1、主表 2、明细 - mdmViewFiledVo.setMdmId(mdmModuleDbEntityList.get(i2).getMdmId());//主数据模版ID - mdmViewFiledVo.setDbId(mdmModuleDbEntityList.get(i2).getId());//模版数据库id - mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i2).getDbName());//表名 - - break; - } - } - break; - } - } - //设置字段规则 - List ruleList = new ArrayList<>(); - if (mdmModuleDbFiledsRuleEntityList != null && mdmModuleDbFiledsRuleEntityList.size() > 0) { - for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntityList.size(); i1++) { - if (queryList.get(i).getViewFiled().equals(mdmModuleDbFiledsRuleEntityList.get(i1).getFiledId())) { - ruleList.add(mdmModuleDbFiledsRuleEntityList.get(i1)); - } - } - } - mdmViewFiledVo.setRuleList(ruleList); - mdmViewFiledVos.add(mdmViewFiledVo); - } - } - MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); - mdmViewFiledVo.setSorts(1);//排序 - mdmViewFiledVo.setFiledType("3"); - mdmViewFiledVo.setEnName("document_rule");//英文名 - mdmViewFiledVo.setChName("单据编码");//中文名 - mdmViewFiledVo.setDbType("1");//类型 1、主表 2、明细 - if(mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0){ - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if("1".equals(mdmModuleDbEntityList.get(i).getDbType())){ - mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i).getDbName());//表名 - } - } - } - List msgRule = new ArrayList<>(); - MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); - msgRuleTitie.setFormName("optionRuleForm"); - msgRuleTitie.setRuleCode("title"); - msgRuleTitie.setRuleName("显示名"); - msgRuleTitie.setRuleType("2"); - msgRuleTitie.setRuleValue("单据编码"); - MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); - msgRulerow.setFormName("optionRuleForm"); - msgRulerow.setRuleCode("row"); - msgRulerow.setRuleName("宽度"); - msgRulerow.setRuleType("2"); - msgRulerow.setRuleValue("12"); - MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); - msgRuletype.setFormName("optionRuleForm"); - msgRuletype.setRuleCode("type"); - msgRuletype.setRuleName("数据类型"); - msgRuletype.setRuleType("2"); - msgRuletype.setRuleValue("input"); - MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); - msgRulerequired.setFormName("optionRuleForm"); - msgRulerequired.setRuleCode("required"); - msgRulerequired.setRuleName("必填"); - msgRulerequired.setRuleType("2"); - MdmModuleDbFiledsRuleEntity withs = new MdmModuleDbFiledsRuleEntity(); - withs.setFormName("optionRuleForm"); - withs.setRuleCode("width"); - withs.setRuleName("宽度"); - withs.setRuleType("2"); - withs.setRuleValue("200"); - msgRule.add(withs); - msgRule.add(msgRulerequired); - msgRule.add(msgRuletype); - msgRule.add(msgRulerow); - msgRule.add(msgRuleTitie); - mdmViewFiledVo.setRuleList(msgRule); - mdmViewFiledVos.add(0,mdmViewFiledVo); - - //添加分发数量 - if(flag){ - addFfsl(mdmModuleDbEntityList,mdmViewFiledVos); - } - return mdmViewFiledVos; - } - - private void addFfsl(List mdmModuleDbEntityList, List mdmViewFiledVos) { - - MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); - mdmViewFiledVo.setSorts(1);//排序 - mdmViewFiledVo.setFiledType("1"); - mdmViewFiledVo.setEnName("qwqwasdasdzxasda");//英文名 - mdmViewFiledVo.setChName("分发数量");//中文名 - mdmViewFiledVo.setDbType("1");//类型 1、主表 2、明细 - if(mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0){ - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if("1".equals(mdmModuleDbEntityList.get(i).getDbType())){ - mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i).getDbName());//表名 - } - } - } - List msgRule = new ArrayList<>(); - MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); - msgRuleTitie.setFormName("optionRuleForm"); - msgRuleTitie.setRuleCode("title"); - msgRuleTitie.setRuleName("显示名"); - msgRuleTitie.setRuleType("2"); - msgRuleTitie.setRuleValue("分发数量"); - MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); - msgRulerow.setFormName("optionRuleForm"); - msgRulerow.setRuleCode("row"); - msgRulerow.setRuleName("宽度"); - msgRulerow.setRuleType("2"); - msgRulerow.setRuleValue("6"); - MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); - msgRuletype.setFormName("optionRuleForm"); - msgRuletype.setRuleCode("type"); - msgRuletype.setRuleName("数据类型"); - msgRuletype.setRuleType("2"); - msgRuletype.setRuleValue("input"); - MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); - msgRulerequired.setFormName("optionRuleForm"); - msgRulerequired.setRuleCode("required"); - msgRulerequired.setRuleName("必填"); - msgRulerequired.setRuleType("2"); - msgRule.add(msgRulerequired); - msgRule.add(msgRuletype); - msgRule.add(msgRulerow); - msgRule.add(msgRuleTitie); - mdmViewFiledVo.setRuleList(msgRule); - mdmViewFiledVos.add(mdmViewFiledVo); - } + // + ///** + // * @param mdmModuleRoleButtonEntities + // * @return java.util.List + // * @Author lvleigang + // * @Description 设置返回按钮 + // * @Date 4:48 下午 2023/10/26 + // **/ + //private List setButton(List mdmModuleRoleButtonEntities) { + // List mdmViewButtonVoList = new ArrayList<>(); + // if (mdmModuleRoleButtonEntities != null && mdmModuleRoleButtonEntities.size() > 0) { + // for (int i = 0; i < mdmModuleRoleButtonEntities.size(); i++) { + // mdmViewButtonVoList.add(new MdmViewButtonVo(mdmModuleRoleButtonEntities.get(i).getButtonType(), mdmModuleRoleButtonEntities.get(i).getButtonName())); + // } + // } + // return mdmViewButtonVoList; + //} + // + ///** + // * @param allRecords + // * @param checkedMeters + // * @return java.util.List + // * @Author lvleigang + // * @Description 取出重复字段数据 + // * @Date 4:34 下午 2023/10/26 + // **/ + //private List getDolist(List allRecords, List checkedMeters) { + // List meterPlan = allRecords.stream() + // .filter(item -> checkedMeters.stream() + // .map(e -> { + // if (!Objects.equals(item.getViewFiled(), e.getViewDetailId())) { + // return null; + // } else { + // return item.getViewFiled(); + // } + // }) + // .collect(Collectors.toList()) + // .contains(item.getViewFiled())) + // .collect(Collectors.toList()); + // return meterPlan; + //} + // + ///** + // * @param mdmModuleDbEntityList 数据源 + // * @param mdmModuleDbFiledsEntityList 数据源下的字段表 + // * @param mdmModuleDbFiledsRuleEntityList 数据源字段的规则表 + // * @param queryList 需要的字段 + // * @return java.util.List + // * @Author lvleigang + // * @Description 根据字段设置返回前台字段 + // * @Date 4:11 下午 2023/10/26 + // **/ + //private List setQueryList(List mdmModuleDbEntityList, List mdmModuleDbFiledsEntityList, List mdmModuleDbFiledsRuleEntityList, List queryList, boolean flag) { + // List mdmViewFiledVos = new ArrayList<>(); + // + // if (queryList != null && queryList.size() > 0) { + // for (int i = 0; i < queryList.size(); i++) { + // MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); + // mdmViewFiledVo.setId(queryList.get(i).getViewFiled());//字段id + // mdmViewFiledVo.setSorts(i + 2);//排序 + // for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + // if (queryList.get(i).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())) { + // mdmViewFiledVo.setFiledType(mdmModuleDbFiledsEntityList.get(i1).getFiledType());//英文名 + // mdmViewFiledVo.setEnName(mdmModuleDbFiledsEntityList.get(i1).getEnName());//英文名 + // mdmViewFiledVo.setChName(mdmModuleDbFiledsEntityList.get(i1).getChName());//中文名 + // for (int i2 = 0; i2 < mdmModuleDbEntityList.size(); i2++) { + // if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i2).getId())) { + // mdmViewFiledVo.setDbType(mdmModuleDbEntityList.get(i2).getDbType());//类型 1、主表 2、明细 + // mdmViewFiledVo.setMdmId(mdmModuleDbEntityList.get(i2).getMdmId());//主数据模版ID + // mdmViewFiledVo.setDbId(mdmModuleDbEntityList.get(i2).getId());//模版数据库id + // mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i2).getDbName());//表名 + // + // break; + // } + // } + // break; + // } + // } + // //设置字段规则 + // List ruleList = new ArrayList<>(); + // if (mdmModuleDbFiledsRuleEntityList != null && mdmModuleDbFiledsRuleEntityList.size() > 0) { + // for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntityList.size(); i1++) { + // if (queryList.get(i).getViewFiled().equals(mdmModuleDbFiledsRuleEntityList.get(i1).getFiledId())) { + // ruleList.add(mdmModuleDbFiledsRuleEntityList.get(i1)); + // } + // } + // } + // mdmViewFiledVo.setRuleList(ruleList); + // mdmViewFiledVos.add(mdmViewFiledVo); + // } + // } + // MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); + // mdmViewFiledVo.setSorts(1);//排序 + // mdmViewFiledVo.setFiledType("3"); + // mdmViewFiledVo.setEnName("document_rule");//英文名 + // mdmViewFiledVo.setChName("单据编码");//中文名 + // mdmViewFiledVo.setDbType("1");//类型 1、主表 2、明细 + // if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { + // for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + // if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + // mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i).getDbName());//表名 + // } + // } + // } + // List msgRule = new ArrayList<>(); + // MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); + // msgRuleTitie.setFormName("optionRuleForm"); + // msgRuleTitie.setRuleCode("title"); + // msgRuleTitie.setRuleName("显示名"); + // msgRuleTitie.setRuleType("2"); + // msgRuleTitie.setRuleValue("单据编码"); + // MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); + // msgRulerow.setFormName("optionRuleForm"); + // msgRulerow.setRuleCode("row"); + // msgRulerow.setRuleName("宽度"); + // msgRulerow.setRuleType("2"); + // msgRulerow.setRuleValue("12"); + // MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); + // msgRuletype.setFormName("optionRuleForm"); + // msgRuletype.setRuleCode("type"); + // msgRuletype.setRuleName("数据类型"); + // msgRuletype.setRuleType("2"); + // msgRuletype.setRuleValue("input"); + // MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); + // msgRulerequired.setFormName("optionRuleForm"); + // msgRulerequired.setRuleCode("required"); + // msgRulerequired.setRuleName("必填"); + // msgRulerequired.setRuleType("2"); + // MdmModuleDbFiledsRuleEntity withs = new MdmModuleDbFiledsRuleEntity(); + // withs.setFormName("optionRuleForm"); + // withs.setRuleCode("width"); + // withs.setRuleName("宽度"); + // withs.setRuleType("2"); + // withs.setRuleValue("200"); + // msgRule.add(withs); + // msgRule.add(msgRulerequired); + // msgRule.add(msgRuletype); + // msgRule.add(msgRulerow); + // msgRule.add(msgRuleTitie); + // mdmViewFiledVo.setRuleList(msgRule); + // mdmViewFiledVos.add(0, mdmViewFiledVo); + // + // //添加分发数量 + // if (flag) { + // addFfsl(mdmModuleDbEntityList, mdmViewFiledVos); + // } + // return mdmViewFiledVos; + //} + // + //private void addFfsl(List mdmModuleDbEntityList, List mdmViewFiledVos) { + // + // MdmViewFiledVo mdmViewFiledVo = new MdmViewFiledVo(); + // mdmViewFiledVo.setSorts(1);//排序 + // mdmViewFiledVo.setFiledType("1"); + // mdmViewFiledVo.setEnName("qwqwasdasdzxasda");//英文名 + // mdmViewFiledVo.setChName("分发数量");//中文名 + // mdmViewFiledVo.setDbType("1");//类型 1、主表 2、明细 + // if (mdmModuleDbEntityList != null && mdmModuleDbEntityList.size() > 0) { + // for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + // if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + // mdmViewFiledVo.setDbName(mdmModuleDbEntityList.get(i).getDbName());//表名 + // } + // } + // } + // List msgRule = new ArrayList<>(); + // MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); + // msgRuleTitie.setFormName("optionRuleForm"); + // msgRuleTitie.setRuleCode("title"); + // msgRuleTitie.setRuleName("显示名"); + // msgRuleTitie.setRuleType("2"); + // msgRuleTitie.setRuleValue("分发数量"); + // MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); + // msgRulerow.setFormName("optionRuleForm"); + // msgRulerow.setRuleCode("row"); + // msgRulerow.setRuleName("宽度"); + // msgRulerow.setRuleType("2"); + // msgRulerow.setRuleValue("6"); + // MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); + // msgRuletype.setFormName("optionRuleForm"); + // msgRuletype.setRuleCode("type"); + // msgRuletype.setRuleName("数据类型"); + // msgRuletype.setRuleType("2"); + // msgRuletype.setRuleValue("input"); + // MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); + // msgRulerequired.setFormName("optionRuleForm"); + // msgRulerequired.setRuleCode("required"); + // msgRulerequired.setRuleName("必填"); + // msgRulerequired.setRuleType("2"); + // msgRule.add(msgRulerequired); + // msgRule.add(msgRuletype); + // msgRule.add(msgRulerow); + // msgRule.add(msgRuleTitie); + // mdmViewFiledVo.setRuleList(msgRule); + // mdmViewFiledVos.add(mdmViewFiledVo); + //} + // /** * @param object @@ -1712,98 +617,159 @@ public class MdmServiceImpl implements IMdmService { if (entity == null) { return BaseResult.getFailureMessageEntity("参数不允许为空"); } + if (entity.getMdmCode() != null && !"".equals(entity.getMdmCode())) { + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntity == null || mdmModuleEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("主数据设置错误"); + } + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbEntity.setSts("Y"); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsEntity.setSts("Y"); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + if (mdmModuleDbEntities == null || mdmModuleDbEntities.size() == 0) { + return BaseResult.getFailureMessageEntity("主数据设置错误"); + } + if (mdmModuleDbFiledsEntities == null || mdmModuleDbFiledsEntities.size() == 0) { + return BaseResult.getFailureMessageEntity("主数据设置错误"); + } + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + List returnField = new ArrayList<>(); + for (int i1 = 0; i1 < mdmModuleDbFiledsEntities.size(); i1++) { + if (mdmModuleDbEntities.get(i).getId().equals(mdmModuleDbFiledsEntities.get(i1).getDbId())) { + returnField.add(mdmModuleDbFiledsEntities.get(i1).getEnName()); + } + } + entity.setReturnField(returnField); + entity.setTableName(mdmModuleDbEntities.get(i).getDbName()); + break; + } + } + } //判断分页 if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { return BaseResult.getFailureMessageEntity("分页查询参数不存在"); } PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); List> businessResult = mdmModuleDao.queryMdmShowData(entity); + //强制把数据库字段转换小写 + if (null != businessResult && businessResult.size() > 0) { + convertKeysToLowerCase(businessResult); + } PageInfo pageInfo = new PageInfo(businessResult); return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); } - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 主数据列表显示 业务数据 - * @Date 9:40 上午 2023/10/18 - **/ - @Override - public JsonResultEntity queryMdmShowDistribute(JSONObject object) { - MdmDto entity = getData("jsonStr", object, MdmDto.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - //查询模版 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(entity.getMdmCode()); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - - //查询数据源主表 - MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setMdmId(mdmModuleEntities.get(0).getId()); - mdmModuleDbEntity.setDbType("1"); - mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); - if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - mdmModuleDbEntity = mdmModuleDbEntityList.get(0); - Map queryData = new HashMap<>(); - queryData.put("tableName", mdmModuleDbEntity.getDbName()+"_distribute");//表名 - queryData.put("id", entity.getId());//字段 - List datas = mdmModuleDbDao.getServiceByDistributeIdNoCase(queryData); - List returnData = new ArrayList<>(); - - //查询分发表 - MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); - mdmModuleDistributeEntity.setMdmId(mdmModuleEntities.get(0).getId()); - mdmModuleDistributeEntity.setSts("Y"); - List mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(mdmModuleDistributeEntity); - if(datas != null && datas.size() > 0){ - if(mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0){ - for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { - boolean flag = false; - for (int i1 = 0; i1 < datas.size(); i1++) { - if(datas.get(i1).getAppId().equals(mdmModuleDistributeEntities.get(i).getAppId())){ - flag = true; - break; - } - } - if(!flag){ - MdmDistributeVo mdmDistributeVo = new MdmDistributeVo(); - mdmDistributeVo.setAppId(mdmModuleDistributeEntities.get(i).getAppId()); - mdmDistributeVo.setStatus("4"); - mdmDistributeVo.setMsg("未发送"); - returnData.add(mdmDistributeVo); - } - } - } - returnData.addAll(datas); - }else { - if(mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0){ - for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { - MdmDistributeVo mdmDistributeVo = new MdmDistributeVo(); - mdmDistributeVo.setAppId(mdmModuleDistributeEntities.get(i).getAppId()); - mdmDistributeVo.setStatus("4"); - mdmDistributeVo.setMsg("未发送"); - returnData.add(mdmDistributeVo); - } + //强制转换数据库字段为小写,出问题在说 + public void convertKeysToLowerCase(List> list) { + for (HashMap map : list) { + HashMap lowerCaseMap = new HashMap<>(); + for (Map.Entry entry : map.entrySet()) { + lowerCaseMap.put(entry.getKey().toLowerCase(), entry.getValue()); } + map.clear(); // 清空原来的Map,避免重复存储 + map.putAll(lowerCaseMap); // 将转换后的Map全部放回原位 } - return BaseResult.getSuccessMessageEntity("查询数据成功",returnData); } + + //强制转换数据库字段为小写,出问题在说 + public void convertKeysToLowerCase(HashMap list) { + HashMap lowerCaseMap = new HashMap<>(); + for (Map.Entry entry : list.entrySet()) { + lowerCaseMap.put(entry.getKey().toLowerCase(), entry.getValue()); + } + list.clear(); // 清空原来的Map,避免重复存储 + list.putAll(lowerCaseMap); // 将转换后的Map全部放回原位 + } + // + ///** + // * @param object + // * @return com.hzya.frame.web.entity.JsonResultEntity + // * @Author lvleigang + // * @Description 主数据列表显示 业务数据 + // * @Date 9:40 上午 2023/10/18 + // **/ + //@Override + //public JsonResultEntity queryMdmShowDistribute(JSONObject object) { + // MdmDto entity = getData("jsonStr", object, MdmDto.class); + // if (entity == null) { + // return BaseResult.getFailureMessageEntity("参数不允许为空"); + // } + // if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) { + // return BaseResult.getFailureMessageEntity("系统错误"); + // } + // if (entity.getId() == null || "".equals(entity.getId())) { + // return BaseResult.getFailureMessageEntity("系统错误"); + // } + // //查询模版 + // MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); + // mdmModuleEntity.setMdmCode(entity.getMdmCode()); + // mdmModuleEntity.setSts("Y"); + // List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); + // if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { + // return BaseResult.getFailureMessageEntity("系统错误"); + // } + // + // //查询数据源主表 + // MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + // mdmModuleDbEntity.setMdmId(mdmModuleEntities.get(0).getId()); + // mdmModuleDbEntity.setDbType("1"); + // mdmModuleDbEntity.setSts("Y"); + // List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + // if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { + // return BaseResult.getFailureMessageEntity("系统错误"); + // } + // mdmModuleDbEntity = mdmModuleDbEntityList.get(0); + // Map queryData = new HashMap<>(); + // queryData.put("tableName", mdmModuleDbEntity.getDbName() + "_distribute");//表名 + // queryData.put("id", entity.getId());//字段 + // List datas = mdmModuleDbDao.getServiceByDistributeIdNoCase(queryData); + // List returnData = new ArrayList<>(); + // + // //查询分发表 + // MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); + // mdmModuleDistributeEntity.setMdmId(mdmModuleEntities.get(0).getId()); + // mdmModuleDistributeEntity.setSts("Y"); + // List mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(mdmModuleDistributeEntity); + // if (datas != null && datas.size() > 0) { + // if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) { + // for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { + // boolean flag = false; + // for (int i1 = 0; i1 < datas.size(); i1++) { + // if (datas.get(i1).getAppId().equals(mdmModuleDistributeEntities.get(i).getAppId())) { + // flag = true; + // break; + // } + // } + // if (!flag) { + // MdmDistributeVo mdmDistributeVo = new MdmDistributeVo(); + // mdmDistributeVo.setAppId(mdmModuleDistributeEntities.get(i).getAppId()); + // mdmDistributeVo.setStatus("4"); + // mdmDistributeVo.setMsg("未发送"); + // returnData.add(mdmDistributeVo); + // } + // } + // } + // returnData.addAll(datas); + // } else { + // if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) { + // for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) { + // MdmDistributeVo mdmDistributeVo = new MdmDistributeVo(); + // mdmDistributeVo.setAppId(mdmModuleDistributeEntities.get(i).getAppId()); + // mdmDistributeVo.setStatus("4"); + // mdmDistributeVo.setMsg("未发送"); + // returnData.add(mdmDistributeVo); + // } + // } + // } + // return BaseResult.getSuccessMessageEntity("查询数据成功", returnData); + //} + // + /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity @@ -1827,13 +793,17 @@ public class MdmServiceImpl implements IMdmService { if (entity.getPageNum() != null && entity.getPageSize() != null) { PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); List> mapList = mdmModuleDao.querySelectData(entity); + convertKeysToLowerCase(mapList); PageInfo pageInfo = new PageInfo(mapList); return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); } else { List> mapList = mdmModuleDao.querySelectData(entity); + convertKeysToLowerCase(mapList); return BaseResult.getSuccessMessageEntity("查询数据成功", mapList); } } + // + /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity @@ -1858,32 +828,33 @@ public class MdmServiceImpl implements IMdmService { } if (entity.getMdmCode() != null && !"".equals(entity.getMdmCode())) { //查询模版 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(entity.getMdmCode()); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { + MdmModuleEntity mdmModuleEntities = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntities == null) { return BaseResult.getFailureMessageEntity("系统错误"); } //查询数据源主表 MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setMdmId(mdmModuleEntities.get(0).getId()); - mdmModuleDbEntity.setDbType("1"); + mdmModuleDbEntity.setMdmId(mdmModuleEntities.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } - mdmModuleDbEntity = mdmModuleDbEntityList.get(0); + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + mdmModuleDbEntity = mdmModuleDbEntityList.get(i); + break; + } + } + entity.setTableName(mdmModuleDbEntity.getDbName()); } - if (checkStr(entity.getId())) { if (!checkStr(entity.getValue())) { return BaseResult.getFailureMessageEntity("请先传递存储字段"); } - if(entity.getId().contains(",")){ + if (entity.getId().contains(",")) { String[] strArray = entity.getId().split(","); // 使用逗号和空格作为分隔符 entity.setIds(strArray); List> mapList = mdmModuleDao.queryTemplateDataMore(entity); @@ -1891,23 +862,29 @@ public class MdmServiceImpl implements IMdmService { List> returnList = new ArrayList<>(); return BaseResult.getSuccessMessageEntity("查询数据成功", returnList); } - List> returnList = gettochilder(strArray,0,mapList); + convertKeysToLowerCase(mapList); + List> returnList = gettochilder(strArray, 0, mapList); return BaseResult.getSuccessMessageEntity("查询数据成功", returnList); - }else { + } else { HashMap mapList = mdmModuleDao.queryTemplateDataOne(entity); if (mapList == null || mapList.size() == 0) { List> returnList = new ArrayList<>(); return BaseResult.getSuccessMessageEntity("查询数据成功", returnList); } + HashMap lowerCaseMap = new HashMap<>(); + for (Map.Entry entry : mapList.entrySet()) { + lowerCaseMap.put(entry.getKey().toLowerCase(), entry.getValue()); + } List> returnList = new ArrayList<>(); - returnList.add(mapList); + returnList.add(lowerCaseMap); return BaseResult.getSuccessMessageEntity("查询数据成功", returnList); } - }else { + } else { List> mapList = mdmModuleDao.queryDataAll(entity); List> returnList = new ArrayList<>(); if (mapList != null && mapList.size() > 0) { + convertKeysToLowerCase(mapList); for (int i = 0; i < mapList.size(); i++) { //默认为根 if (mapList.get(i).get(entity.getUpId()) == null || "".equals(mapList.get(i).get(entity.getUpId()))) { @@ -1923,16 +900,17 @@ public class MdmServiceImpl implements IMdmService { } } } - return BaseResult.getSuccessMessageEntity("查询数据成功",returnList); + return BaseResult.getSuccessMessageEntity("查询数据成功", returnList); } } + // private List> gettochilder(String[] strArray, int i, List> mapList) { List> maps = new ArrayList<>(); for (int i1 = 0; i1 < mapList.size(); i1++) { - if(strArray[i].equals(mapList.get(i1).get("id").toString())){ - if(strArray.length >= (i+2) ) { - mapList.get(i1).put("children",gettochilder(strArray,i+1,mapList)); + if (strArray[i].equals(mapList.get(i1).get("id").toString())) { + if (strArray.length >= (i + 2)) { + mapList.get(i1).put("children", gettochilder(strArray, i + 1, mapList)); } maps.add(mapList.get(i1)); break; @@ -1941,36 +919,37 @@ public class MdmServiceImpl implements IMdmService { return maps; } - private HashMap getFathers(List> mapListAll, HashMap mapList, MdmDto entity) { - if (mapList.get("upID") == null) { - return mapList; - } - HashMap retList = new HashMap<>(); - if (mapListAll != null && mapListAll.size() > 0) { - for (int i = 0; i < mapListAll.size(); i++) { - //等于上级id的时候 - if (mapListAll.get(i).get("qsdfg").equals(mapList.get("upID"))) { - retList.put("id", mapListAll.get(i).get("qsdfg")); - retList.put("label", mapListAll.get(i).get(entity.getLabel())); - retList.put("upID", mapListAll.get(i).get(entity.getUpId())); - List> returnList = new ArrayList<>(); - returnList.add(mapList); - retList.put("children", returnList); - break; - } - } - } - HashMap a = getFathers(mapListAll, retList, entity); - return a; - } - + // + //private HashMap getFathers(List> mapListAll, HashMap mapList, MdmDto entity) { + // if (mapList.get("upID") == null) { + // return mapList; + // } + // HashMap retList = new HashMap<>(); + // if (mapListAll != null && mapListAll.size() > 0) { + // for (int i = 0; i < mapListAll.size(); i++) { + // //等于上级id的时候 + // if (mapListAll.get(i).get("qsdfg").equals(mapList.get("upID"))) { + // retList.put("id", mapListAll.get(i).get("qsdfg")); + // retList.put("label", mapListAll.get(i).get(entity.getLabel())); + // retList.put("upID", mapListAll.get(i).get(entity.getUpId())); + // List> returnList = new ArrayList<>(); + // returnList.add(mapList); + // retList.put("children", returnList); + // break; + // } + // } + // } + // HashMap a = getFathers(mapListAll, retList, entity); + // return a; + //} + // private List> getchilder(String stringObjectHashMap, List> mapList, MdmDto entity) { List> returnList = new ArrayList<>(); if (mapList != null && mapList.size() > 0) { for (int i = 0; i < mapList.size(); i++) { //等于上级id的时候 if (stringObjectHashMap.equals(mapList.get(i).get(entity.getUpId()))) { - List> children = getchilder(mapList.get(i).get(entity.getUpId())+","+mapList.get(i).get("qsdfg"), mapList, entity); + List> children = getchilder(mapList.get(i).get(entity.getUpId()) + "," + mapList.get(i).get("qsdfg"), mapList, entity); HashMap re = new HashMap<>(); re.put("id", mapList.get(i).get("qsdfg")); re.put("label", mapList.get(i).get(entity.getLabel())); @@ -1984,6 +963,8 @@ public class MdmServiceImpl implements IMdmService { } return returnList; } + // + /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity @@ -2004,46 +985,51 @@ public class MdmServiceImpl implements IMdmService { return BaseResult.getFailureMessageEntity("系统错误"); } //查询模版 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(entity.getMdmCode()); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { + //List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); + MdmModuleEntity mdmModuleEntities = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntities == null) { return BaseResult.getFailureMessageEntity("系统错误"); } MdmDetailViewVo mdmViewVo = new MdmDetailViewVo(); - mdmModuleEntity = mdmModuleEntities.get(0); - mdmViewVo.setMdmModuleEntity(mdmModuleEntity); + mdmViewVo.setMdmModuleEntity(mdmModuleEntities); //查询数据源主表 MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbEntity.setMdmId(mdmModuleEntities.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } //查询数据源表下面的字段 MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntities.getId()); mdmModuleDbFiledsEntity.setSts("Y"); - List mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); + List mdmModuleDbFiledsEntityList = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); if (mdmModuleDbFiledsEntityList == null || mdmModuleDbFiledsEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } //查询字段下的规则 MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity(); - mdmModuleDbFiledsRuleEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsRuleEntity.setMdmId(mdmModuleEntities.getId()); mdmModuleDbFiledsRuleEntity.setSts("Y"); List mdmModuleDbFiledsRuleEntityList = mdmModuleDbFiledsRuleDao.queryBase(mdmModuleDbFiledsRuleEntity); if (mdmModuleDbFiledsRuleEntityList == null || mdmModuleDbFiledsRuleEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity(); - mdmModuleViewDetailEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleViewDetailEntity.setMdmId(mdmModuleEntities.getId()); mdmModuleViewDetailEntity.setSts("Y"); mdmModuleViewDetailEntity.setViewType(entity.getShowType());//设置显示字段类型 - List mdmModuleViewDetailEntityList = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); + List queryAll = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity); + List mdmModuleViewDetailEntityList = new ArrayList<>(); + if (queryAll != null && queryAll.size() > 0) { + for (int i = 0; i < queryAll.size(); i++) { + if (entity.getShowType().equals(queryAll.get(i).getViewType())) { + mdmModuleViewDetailEntityList.add(queryAll.get(i)); + } + } + } //组装数据 assembleMdmShowDetails(mdmViewVo, mdmModuleDbEntityList, mdmModuleDbFiledsEntityList, mdmModuleDbFiledsRuleEntityList, mdmModuleViewDetailEntityList, entity.getShowType()); return BaseResult.getSuccessMessageEntity("获取字段成功", mdmViewVo); @@ -2074,11 +1060,11 @@ public class MdmServiceImpl implements IMdmService { //1、主表 2、明细 mainMdmModuleDb = mdmModuleDbEntityList.get(i); //循环字段表 - if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - for (int b = 0; b < mdmModuleViewDetailEntityList.size(); b++) { - if(mdmModuleViewDetailEntityList.get(b).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())){ + for (int b = 0; b < mdmModuleViewDetailEntityList.size(); b++) { + if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { + if (mdmModuleViewDetailEntityList.get(b).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())) { mainMdmModuleDbFileds.add(mdmModuleDbFiledsEntityList.get(i1)); List mdmModuleDbFiledsRules = new ArrayList<>(); //循环字段属性 @@ -2092,20 +1078,24 @@ public class MdmServiceImpl implements IMdmService { } mdmModuleDbFiledsEntityList.get(i1).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRules); } + } + } } } } else if ("2".equals(mdmModuleDbEntityList.get(i).getDbType())) { //2、明细 sublistMdmModuleDb.add(mdmModuleDbEntityList.get(i)); + //循环字段表 if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { List sublistMdmModuleDbFileds = new ArrayList<>(); - for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { - for (int b = 0; b < mdmModuleViewDetailEntityList.size(); b++) { - if(mdmModuleViewDetailEntityList.get(b).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())){ + for (int b = 0; b < mdmModuleViewDetailEntityList.size(); b++) { + for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { + if (mdmModuleDbEntityList.get(i).getId().equals(mdmModuleDbFiledsEntityList.get(i1).getDbId())) { + + if (mdmModuleViewDetailEntityList.get(b).getViewFiled().equals(mdmModuleDbFiledsEntityList.get(i1).getId())) { sublistMdmModuleDbFileds.add(mdmModuleDbFiledsEntityList.get(i1)); List mdmModuleDbFiledsRules = new ArrayList<>(); //循环字段属性 @@ -2120,7 +1110,6 @@ public class MdmServiceImpl implements IMdmService { mdmModuleDbFiledsEntityList.get(i1).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRules); } } - } } mdmModuleDbEntityList.get(i).setSublistMdmModuleDbFileds(sublistMdmModuleDbFileds); @@ -2131,210 +1120,208 @@ public class MdmServiceImpl implements IMdmService { mdmViewVo.setMainMdmModuleDb(mainMdmModuleDb); //主数据子表 List mdmModuleDb = new ArrayList<>(); - if(sublistMdmModuleDb != null && sublistMdmModuleDb.size() > 0){ + if (sublistMdmModuleDb != null && sublistMdmModuleDb.size() > 0) { for (int i = 0; i < sublistMdmModuleDb.size(); i++) { - if(sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds() != null && sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds().size() > 0 ){ + if (sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds() != null && sublistMdmModuleDb.get(i).getSublistMdmModuleDbFileds().size() > 0) { mdmModuleDb.add(sublistMdmModuleDb.get(i)); } } } - if("5".equals(showType)){ - MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setDbName(mainMdmModuleDb.getDbName() + "_distribute"); - mdmModuleDbEntity.setRemark(mainMdmModuleDb.getRemark() + "分发表"); - mdmModuleDbEntity.setDbType("2"); - List mdmModuleDbFiledsEntityList1 = getDistributeRole(); - mdmModuleDbEntity.setSublistMdmModuleDbFileds(mdmModuleDbFiledsEntityList1); - mdmModuleDb.add(mdmModuleDbEntity); - } + //if ("5".equals(showType)) { + // MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + // mdmModuleDbEntity.setDbName(mainMdmModuleDb.getDbName() + "_distribute"); + // mdmModuleDbEntity.setRemark(mainMdmModuleDb.getRemark() + "分发表"); + // mdmModuleDbEntity.setDbType("2"); + // List mdmModuleDbFiledsEntityList1 = getDistributeRole(); + // mdmModuleDbEntity.setSublistMdmModuleDbFileds(mdmModuleDbFiledsEntityList1); + // mdmModuleDb.add(mdmModuleDbEntity); + //} mdmViewVo.setSublistMdmModuleDb(mdmModuleDb); - - } else { mdmViewVo.setMainMdmModuleDb(mainMdmModuleDb); mdmViewVo.setSublistMdmModuleDb(sublistMdmModuleDb); } } - - private List getDistributeRole() { - List mdmModuleDbFiledsEntityList = new ArrayList<>(); - //app - MdmModuleDbFiledsEntity appFiled = new MdmModuleDbFiledsEntity(); - appFiled.setChName("应用"); - appFiled.setEnName("app_id"); - appFiled.setFiledLength("50"); - appFiled.setFiledType("3"); - List appRule = new ArrayList<>(); - MdmModuleDbFiledsRuleEntity appRuleTitie = new MdmModuleDbFiledsRuleEntity(); - appRuleTitie.setFormName("optionRuleForm"); - appRuleTitie.setRuleCode("title"); - appRuleTitie.setRuleName("显示名"); - appRuleTitie.setRuleType("2"); - appRuleTitie.setRuleValue("应用"); - MdmModuleDbFiledsRuleEntity appRulerow = new MdmModuleDbFiledsRuleEntity(); - appRulerow.setFormName("optionRuleForm"); - appRulerow.setRuleCode("row"); - appRulerow.setRuleName("宽度"); - appRulerow.setRuleType("2"); - appRulerow.setRuleValue("6"); - MdmModuleDbFiledsRuleEntity appRuletype = new MdmModuleDbFiledsRuleEntity(); - appRuletype.setFormName("optionRuleForm"); - appRuletype.setRuleCode("type"); - appRuletype.setRuleName("数据类型"); - appRuletype.setRuleType("2"); - appRuletype.setRuleValue("select"); - MdmModuleDbFiledsRuleEntity appRulerequired = new MdmModuleDbFiledsRuleEntity(); - appRulerequired.setFormName("optionRuleForm"); - appRulerequired.setRuleCode("required"); - appRulerequired.setRuleName("必填"); - appRulerequired.setRuleType("2"); - MdmModuleDbFiledsRuleEntity appRuleservice = new MdmModuleDbFiledsRuleEntity(); - appRuleservice.setFormName("typeOptionRuleForm"); - appRuleservice.setRuleCode("service"); - appRuleservice.setRuleName("服务名称"); - appRuleservice.setRuleType("2"); - appRuleservice.setRuleValue("sys_application"); - MdmModuleDbFiledsRuleEntity appRulelabel = new MdmModuleDbFiledsRuleEntity(); - appRulelabel.setFormName("typeOptionRuleForm"); - appRulelabel.setRuleCode("label"); - appRulelabel.setRuleName("label"); - appRulelabel.setRuleType("2"); - appRulelabel.setRuleValue("name"); - MdmModuleDbFiledsRuleEntity appRulevalue = new MdmModuleDbFiledsRuleEntity(); - appRulevalue.setFormName("typeOptionRuleForm"); - appRulevalue.setRuleCode("value"); - appRulevalue.setRuleName("value"); - appRulevalue.setRuleType("2"); - appRulevalue.setRuleValue("id"); - appRule.add(appRulevalue); - appRule.add(appRulelabel); - appRule.add(appRuleservice); - appRule.add(appRulerequired); - appRule.add(appRuletype); - appRule.add(appRulerow); - appRule.add(appRuleTitie); - appFiled.setMdmModuleDbFiledsRules(appRule); - mdmModuleDbFiledsEntityList.add(appFiled); - - - //status - MdmModuleDbFiledsEntity statusFiled = new MdmModuleDbFiledsEntity(); - statusFiled.setChName("状态"); - statusFiled.setEnName("status"); - statusFiled.setFiledLength("50"); - statusFiled.setFiledType("3"); - List statusRule = new ArrayList<>(); - MdmModuleDbFiledsRuleEntity statusRuleTitie = new MdmModuleDbFiledsRuleEntity(); - statusRuleTitie.setFormName("optionRuleForm"); - statusRuleTitie.setRuleCode("title"); - statusRuleTitie.setRuleName("显示名"); - statusRuleTitie.setRuleType("2"); - statusRuleTitie.setRuleValue("状态"); - MdmModuleDbFiledsRuleEntity statusRulerow = new MdmModuleDbFiledsRuleEntity(); - statusRulerow.setFormName("optionRuleForm"); - statusRulerow.setRuleCode("row"); - statusRulerow.setRuleName("宽度"); - statusRulerow.setRuleType("2"); - statusRulerow.setRuleValue("6"); - MdmModuleDbFiledsRuleEntity statusRuletype = new MdmModuleDbFiledsRuleEntity(); - statusRuletype.setFormName("optionRuleForm"); - statusRuletype.setRuleCode("type"); - statusRuletype.setRuleName("数据类型"); - statusRuletype.setRuleType("2"); - statusRuletype.setRuleValue("input"); - MdmModuleDbFiledsRuleEntity statusRulerequired = new MdmModuleDbFiledsRuleEntity(); - statusRulerequired.setFormName("optionRuleForm"); - statusRulerequired.setRuleCode("required"); - statusRulerequired.setRuleName("必填"); - statusRulerequired.setRuleType("2"); - statusRule.add(statusRulerequired); - statusRule.add(statusRuletype); - statusRule.add(statusRulerow); - statusRule.add(statusRuleTitie); - statusFiled.setMdmModuleDbFiledsRules(statusRule); - mdmModuleDbFiledsEntityList.add(statusFiled); - - - - //msg - MdmModuleDbFiledsEntity msgFiled = new MdmModuleDbFiledsEntity(); - msgFiled.setChName("描述"); - msgFiled.setEnName("msg"); - msgFiled.setFiledLength("200"); - msgFiled.setFiledType("3"); - List msgRule = new ArrayList<>(); - MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); - msgRuleTitie.setFormName("optionRuleForm"); - msgRuleTitie.setRuleCode("title"); - msgRuleTitie.setRuleName("显示名"); - msgRuleTitie.setRuleType("2"); - msgRuleTitie.setRuleValue("描述"); - MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); - msgRulerow.setFormName("optionRuleForm"); - msgRulerow.setRuleCode("row"); - msgRulerow.setRuleName("宽度"); - msgRulerow.setRuleType("2"); - msgRulerow.setRuleValue("6"); - MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); - msgRuletype.setFormName("optionRuleForm"); - msgRuletype.setRuleCode("type"); - msgRuletype.setRuleName("数据类型"); - msgRuletype.setRuleType("2"); - msgRuletype.setRuleValue("input"); - MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); - msgRulerequired.setFormName("optionRuleForm"); - msgRulerequired.setRuleCode("required"); - msgRulerequired.setRuleName("必填"); - msgRulerequired.setRuleType("2"); - msgRule.add(msgRulerequired); - msgRule.add(msgRuletype); - msgRule.add(msgRulerow); - msgRule.add(msgRuleTitie); - msgFiled.setMdmModuleDbFiledsRules(msgRule); - mdmModuleDbFiledsEntityList.add(msgFiled); - return mdmModuleDbFiledsEntityList; - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询数据(list 或者 分页) - * @Date 1:33 下午 2023/7/12 - **/ - @Override - public JsonResultEntity queryMdmOptionData(JSONObject object) { - ModuleDto entity = getData("jsonStr", object, ModuleDto.class); - //校验是否有servecr传参 - if (!checkStr(entity.getService())) { - return BaseResult.getFailureMessageEntity("请先传递服务名"); - } - if (!checkStr(entity.getValue())) { - return BaseResult.getFailureMessageEntity("请先传递存储字段"); - } - if (!checkStr(entity.getLabel())) { - return BaseResult.getFailureMessageEntity("请先传递显示字段"); - } - //查询数据源主表 - MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); - mdmModuleDbEntity.setId(entity.getId()); - mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); - if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - entity.setTableName(mdmModuleDbEntityList.get(0).getDbName()); - if (entity.getPageNum() != null && entity.getPageSize() != null) { - PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); - List> mapList = mdmModuleDao.queryTemplateData(entity); - PageInfo pageInfo = new PageInfo(mapList); - return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); - } else { - List> mapList = mdmModuleDao.queryTemplateData(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", mapList); - } - } + // + //private List getDistributeRole() { + // List mdmModuleDbFiledsEntityList = new ArrayList<>(); + // //app + // MdmModuleDbFiledsEntity appFiled = new MdmModuleDbFiledsEntity(); + // appFiled.setChName("应用"); + // appFiled.setEnName("app_id"); + // appFiled.setFiledLength("50"); + // appFiled.setFiledType("3"); + // List appRule = new ArrayList<>(); + // MdmModuleDbFiledsRuleEntity appRuleTitie = new MdmModuleDbFiledsRuleEntity(); + // appRuleTitie.setFormName("optionRuleForm"); + // appRuleTitie.setRuleCode("title"); + // appRuleTitie.setRuleName("显示名"); + // appRuleTitie.setRuleType("2"); + // appRuleTitie.setRuleValue("应用"); + // MdmModuleDbFiledsRuleEntity appRulerow = new MdmModuleDbFiledsRuleEntity(); + // appRulerow.setFormName("optionRuleForm"); + // appRulerow.setRuleCode("row"); + // appRulerow.setRuleName("宽度"); + // appRulerow.setRuleType("2"); + // appRulerow.setRuleValue("6"); + // MdmModuleDbFiledsRuleEntity appRuletype = new MdmModuleDbFiledsRuleEntity(); + // appRuletype.setFormName("optionRuleForm"); + // appRuletype.setRuleCode("type"); + // appRuletype.setRuleName("数据类型"); + // appRuletype.setRuleType("2"); + // appRuletype.setRuleValue("select"); + // MdmModuleDbFiledsRuleEntity appRulerequired = new MdmModuleDbFiledsRuleEntity(); + // appRulerequired.setFormName("optionRuleForm"); + // appRulerequired.setRuleCode("required"); + // appRulerequired.setRuleName("必填"); + // appRulerequired.setRuleType("2"); + // MdmModuleDbFiledsRuleEntity appRuleservice = new MdmModuleDbFiledsRuleEntity(); + // appRuleservice.setFormName("typeOptionRuleForm"); + // appRuleservice.setRuleCode("service"); + // appRuleservice.setRuleName("服务名称"); + // appRuleservice.setRuleType("2"); + // appRuleservice.setRuleValue("sys_application"); + // MdmModuleDbFiledsRuleEntity appRulelabel = new MdmModuleDbFiledsRuleEntity(); + // appRulelabel.setFormName("typeOptionRuleForm"); + // appRulelabel.setRuleCode("label"); + // appRulelabel.setRuleName("label"); + // appRulelabel.setRuleType("2"); + // appRulelabel.setRuleValue("name"); + // MdmModuleDbFiledsRuleEntity appRulevalue = new MdmModuleDbFiledsRuleEntity(); + // appRulevalue.setFormName("typeOptionRuleForm"); + // appRulevalue.setRuleCode("value"); + // appRulevalue.setRuleName("value"); + // appRulevalue.setRuleType("2"); + // appRulevalue.setRuleValue("id"); + // appRule.add(appRulevalue); + // appRule.add(appRulelabel); + // appRule.add(appRuleservice); + // appRule.add(appRulerequired); + // appRule.add(appRuletype); + // appRule.add(appRulerow); + // appRule.add(appRuleTitie); + // appFiled.setMdmModuleDbFiledsRules(appRule); + // mdmModuleDbFiledsEntityList.add(appFiled); + // + // + // //status + // MdmModuleDbFiledsEntity statusFiled = new MdmModuleDbFiledsEntity(); + // statusFiled.setChName("状态"); + // statusFiled.setEnName("status"); + // statusFiled.setFiledLength("50"); + // statusFiled.setFiledType("3"); + // List statusRule = new ArrayList<>(); + // MdmModuleDbFiledsRuleEntity statusRuleTitie = new MdmModuleDbFiledsRuleEntity(); + // statusRuleTitie.setFormName("optionRuleForm"); + // statusRuleTitie.setRuleCode("title"); + // statusRuleTitie.setRuleName("显示名"); + // statusRuleTitie.setRuleType("2"); + // statusRuleTitie.setRuleValue("状态"); + // MdmModuleDbFiledsRuleEntity statusRulerow = new MdmModuleDbFiledsRuleEntity(); + // statusRulerow.setFormName("optionRuleForm"); + // statusRulerow.setRuleCode("row"); + // statusRulerow.setRuleName("宽度"); + // statusRulerow.setRuleType("2"); + // statusRulerow.setRuleValue("6"); + // MdmModuleDbFiledsRuleEntity statusRuletype = new MdmModuleDbFiledsRuleEntity(); + // statusRuletype.setFormName("optionRuleForm"); + // statusRuletype.setRuleCode("type"); + // statusRuletype.setRuleName("数据类型"); + // statusRuletype.setRuleType("2"); + // statusRuletype.setRuleValue("input"); + // MdmModuleDbFiledsRuleEntity statusRulerequired = new MdmModuleDbFiledsRuleEntity(); + // statusRulerequired.setFormName("optionRuleForm"); + // statusRulerequired.setRuleCode("required"); + // statusRulerequired.setRuleName("必填"); + // statusRulerequired.setRuleType("2"); + // statusRule.add(statusRulerequired); + // statusRule.add(statusRuletype); + // statusRule.add(statusRulerow); + // statusRule.add(statusRuleTitie); + // statusFiled.setMdmModuleDbFiledsRules(statusRule); + // mdmModuleDbFiledsEntityList.add(statusFiled); + // + // + // //msg + // MdmModuleDbFiledsEntity msgFiled = new MdmModuleDbFiledsEntity(); + // msgFiled.setChName("描述"); + // msgFiled.setEnName("msg"); + // msgFiled.setFiledLength("200"); + // msgFiled.setFiledType("3"); + // List msgRule = new ArrayList<>(); + // MdmModuleDbFiledsRuleEntity msgRuleTitie = new MdmModuleDbFiledsRuleEntity(); + // msgRuleTitie.setFormName("optionRuleForm"); + // msgRuleTitie.setRuleCode("title"); + // msgRuleTitie.setRuleName("显示名"); + // msgRuleTitie.setRuleType("2"); + // msgRuleTitie.setRuleValue("描述"); + // MdmModuleDbFiledsRuleEntity msgRulerow = new MdmModuleDbFiledsRuleEntity(); + // msgRulerow.setFormName("optionRuleForm"); + // msgRulerow.setRuleCode("row"); + // msgRulerow.setRuleName("宽度"); + // msgRulerow.setRuleType("2"); + // msgRulerow.setRuleValue("6"); + // MdmModuleDbFiledsRuleEntity msgRuletype = new MdmModuleDbFiledsRuleEntity(); + // msgRuletype.setFormName("optionRuleForm"); + // msgRuletype.setRuleCode("type"); + // msgRuletype.setRuleName("数据类型"); + // msgRuletype.setRuleType("2"); + // msgRuletype.setRuleValue("input"); + // MdmModuleDbFiledsRuleEntity msgRulerequired = new MdmModuleDbFiledsRuleEntity(); + // msgRulerequired.setFormName("optionRuleForm"); + // msgRulerequired.setRuleCode("required"); + // msgRulerequired.setRuleName("必填"); + // msgRulerequired.setRuleType("2"); + // msgRule.add(msgRulerequired); + // msgRule.add(msgRuletype); + // msgRule.add(msgRulerow); + // msgRule.add(msgRuleTitie); + // msgFiled.setMdmModuleDbFiledsRules(msgRule); + // mdmModuleDbFiledsEntityList.add(msgFiled); + // return mdmModuleDbFiledsEntityList; + //} + // + ///** + // * @param object + // * @return com.hzya.frame.web.entity.JsonResultEntity + // * @Author lvleigang + // * @Description 查询数据(list 或者 分页) + // * @Date 1:33 下午 2023/7/12 + // **/ + //@Override + //public JsonResultEntity queryMdmOptionData(JSONObject object) { + // ModuleDto entity = getData("jsonStr", object, ModuleDto.class); + // //校验是否有servecr传参 + // if (!checkStr(entity.getService())) { + // return BaseResult.getFailureMessageEntity("请先传递服务名"); + // } + // if (!checkStr(entity.getValue())) { + // return BaseResult.getFailureMessageEntity("请先传递存储字段"); + // } + // if (!checkStr(entity.getLabel())) { + // return BaseResult.getFailureMessageEntity("请先传递显示字段"); + // } + // //查询数据源主表 + // MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + // mdmModuleDbEntity.setId(entity.getId()); + // mdmModuleDbEntity.setSts("Y"); + // List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + // if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { + // return BaseResult.getFailureMessageEntity("系统错误"); + // } + // entity.setTableName(mdmModuleDbEntityList.get(0).getDbName()); + // if (entity.getPageNum() != null && entity.getPageSize() != null) { + // PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + // List> mapList = mdmModuleDao.queryTemplateData(entity); + // PageInfo pageInfo = new PageInfo(mapList); + // return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + // } else { + // List> mapList = mdmModuleDao.queryTemplateData(entity); + // return BaseResult.getSuccessMessageEntity("查询数据成功", mapList); + // } + //} + // /** * @param object @@ -2356,55 +1343,56 @@ public class MdmServiceImpl implements IMdmService { return BaseResult.getFailureMessageEntity("系统错误"); } //查询模版 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(entity.getMdmCode()); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { + + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode()); + if (mdmModuleEntity == null) { return BaseResult.getFailureMessageEntity("系统错误"); } - mdmModuleEntity = mdmModuleEntities.get(0); //查询数据源主表 MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } - String tablename = null; + //String tablename = null; JSONObject jsonObject = new JSONObject(); for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - //查询数据 - Map queryData = new HashMap<>(); - queryData.put("tableName", mdmModuleDbEntityList.get(i).getDbName());//表名 - if("1".equals(mdmModuleDbEntityList.get(i).getDbType())){ - queryData.put("detailFlag", false);//是否明细 - queryData.put("id", entity.getId());//字段 - HashMap datas = mdmModuleDbDao.getServiceDataById(queryData); - jsonObject.put(mdmModuleDbEntityList.get(i).getDbName(),datas); - tablename = mdmModuleDbEntityList.get(i).getDbName()+"_distribute"; - }else { - queryData.put("detailFlag", true);//是否明细 - queryData.put("id", entity.getId());//字段 - List> datas = mdmModuleDbDao.getServiceByFormmainId(queryData); - jsonObject.put(mdmModuleDbEntityList.get(i).getDbName(),datas); + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType()) || "2".equals(mdmModuleDbEntityList.get(i).getDbType())) { + //查询数据 + Map queryData = new HashMap<>(); + queryData.put("tableName", mdmModuleDbEntityList.get(i).getDbName());//表名 + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + queryData.put("detailFlag", false);//是否明细 + queryData.put("id", entity.getId());//字段 + HashMap datas = mdmModuleDbDao.getServiceDataById(queryData); + convertKeysToLowerCase(datas); + + jsonObject.put(mdmModuleDbEntityList.get(i).getDbName(), datas); + //tablename = mdmModuleDbEntityList.get(i).getDbName() + "_distribute"; + } else { + queryData.put("detailFlag", true);//是否明细 + queryData.put("id", entity.getId());//字段 + List> datas = mdmModuleDbDao.getServiceByFormmainId(queryData); + convertKeysToLowerCase(datas); + jsonObject.put(mdmModuleDbEntityList.get(i).getDbName(), datas); + } } + } - if(tablename != null && !"".equals(tablename)){ - Map queryData = new HashMap<>(); - queryData.put("tableName", tablename);//表名 - queryData.put("id", entity.getId());//字段 - List> datas = mdmModuleDbDao.getServiceByDistributeId(queryData); - jsonObject.put(tablename,datas); - } + //if (tablename != null && !"".equals(tablename)) { + // Map queryData = new HashMap<>(); + // queryData.put("tableName", tablename);//表名 + // queryData.put("id", entity.getId());//字段 + // List> datas = mdmModuleDbDao.getServiceByDistributeId(queryData); + // jsonObject.put(tablename, datas); + //} return BaseResult.getSuccessMessageEntity("获取数据成功", jsonObject); } - - /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity @@ -2425,7 +1413,7 @@ public class MdmServiceImpl implements IMdmService { JSONObject saveData = jsonObject.getJSONObject("data"); //校验唯一 MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(jsonObject.getInteger("mdmCode")); + mdmModuleEntity.setMdmCode(jsonObject.getLong("mdmCode")); mdmModuleEntity.setSts("Y"); List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { @@ -2439,7 +1427,7 @@ public class MdmServiceImpl implements IMdmService { if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } - String res = checkDataOnly(jsonObject.getInteger("mdmCode"),saveData,true,mdmModuleEntity,mdmModuleDbEntityList); + String res = checkDataOnly(jsonObject.getInteger("mdmCode"), saveData, true, mdmModuleEntity, mdmModuleDbEntityList, "界面修改"); if (res == null || "".equals(res)) { return BaseResult.getSuccessMessageEntity("修改数据成功"); @@ -2449,8 +1437,7 @@ public class MdmServiceImpl implements IMdmService { } - - /** + /** * @param object * @return com.hzya.frame.web.entity.JsonResultEntity * @Author lvleigang @@ -2470,7 +1457,7 @@ public class MdmServiceImpl implements IMdmService { JSONObject saveData = jsonObject.getJSONObject("data"); //校验唯一 MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(jsonObject.getInteger("mdmCode")); + mdmModuleEntity.setMdmCode(jsonObject.getLong("mdmCode")); mdmModuleEntity.setSts("Y"); List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { @@ -2484,7 +1471,9 @@ public class MdmServiceImpl implements IMdmService { if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } - String res = checkDataOnly(jsonObject.getInteger("mdmCode"),saveData,false,mdmModuleEntity,mdmModuleDbEntityList); + + + String res = checkDataOnly(jsonObject.getInteger("mdmCode"), saveData, false, mdmModuleEntity, mdmModuleDbEntityList, "界面新增"); if (res == null || "".equals(res)) { return BaseResult.getSuccessMessageEntity("保存数据成功"); @@ -2493,6 +1482,27 @@ public class MdmServiceImpl implements IMdmService { } } + private void saveOption(String dbname, Long mdmCode, JSONObject jsonObject, String id, String msg) { + MdmModuleOptionLogEntity mdmModuleOptionLogEntity = new MdmModuleOptionLogEntity(); + mdmModuleOptionLogEntity.setTableName(dbname + "_option_log"); + mdmModuleOptionLogEntity.setMdmCode(mdmCode); + mdmModuleOptionLogEntity.setFormmainId(id); + mdmModuleOptionLogEntity.setSourceName("数智中台"); + mdmModuleOptionLogEntity.setDataType("1"); + mdmModuleOptionLogEntity.setRemark(msg); + mdmModuleOptionLogEntity.setCode("800004"); + mdmModuleOptionLogEntity.setSourceData(jsonObject.toJSONString()); + mdmModuleOptionLogEntity.setOptionType(msg); + SysUserEntity sysUserEntity = sysUserDao.get(StpUtil.getLoginIdAsString()); + if (sysUserEntity != null) { + mdmModuleOptionLogEntity.setOptionName(sysUserEntity.getPersonName()); + } + mdmModuleOptionLogEntity.setCreate(); + mdmModuleOptionLogDao.save(mdmModuleOptionLogEntity); + + } + // + // /** * @param object @@ -2512,24 +1522,21 @@ public class MdmServiceImpl implements IMdmService { return BaseResult.getFailureMessageEntity("请先传递要删除的数据"); } //校验唯一 - MdmModuleEntity mdmModuleEntity = new MdmModuleEntity(); - mdmModuleEntity.setMdmCode(jsonObject.getInteger("mdmCode")); - mdmModuleEntity.setSts("Y"); - List mdmModuleEntities = mdmModuleDao.queryBase(mdmModuleEntity); - if (mdmModuleEntities == null || mdmModuleEntities.size() != 1) { + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(jsonObject.getLong("mdmCode")); + if (mdmModuleEntity == null) { return BaseResult.getFailureMessageEntity("系统错误"); } - mdmModuleEntity = mdmModuleEntities.get(0); MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); mdmModuleDbEntity.setSts("Y"); - List mdmModuleDbEntityList = mdmModuleDbDao.queryBase(mdmModuleDbEntity); + List mdmModuleDbEntityList = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) { return BaseResult.getFailureMessageEntity("系统错误"); } + String dbname = null; for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { - + dbname = mdmModuleDbEntityList.get(i).getDbName(); //查询视图,如果树形,删除下级及子集 //查询展示类型 MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); @@ -2547,8 +1554,8 @@ public class MdmServiceImpl implements IMdmService { formmainDeleteDto.setId(jsonObject.getString("id")); formmainDeleteDto.setLoginId(StpUtil.getLoginIdAsString()); formmainDeleteDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); - if(mdmModuleViewEntity != null && mdmModuleViewEntity.getViewName() != null && "1".equals(mdmModuleViewEntity.getViewName() ) && - mdmModuleViewEntity.getUpIdFiled() != null && !"".equals(mdmModuleViewEntity.getUpIdFiled() )){ + if (mdmModuleViewEntity != null && mdmModuleViewEntity.getViewName() != null && "1".equals(mdmModuleViewEntity.getViewName()) && + mdmModuleViewEntity.getUpIdFiled() != null && !"".equals(mdmModuleViewEntity.getUpIdFiled())) { formmainDeleteDto.setUpIdFiled(mdmModuleViewEntity.getUpIdFiled()); Map queryData = new HashMap<>(); @@ -2556,20 +1563,22 @@ public class MdmServiceImpl implements IMdmService { queryData.put("detailFlag", false);//是否明细 queryData.put("id", jsonObject.getString("id"));//字段 HashMap datas = mdmModuleDbDao.getServiceDataById(queryData); + convertKeysToLowerCase(datas); + String upValue = null; - if(datas != null && datas.get(mdmModuleViewEntity.getUpIdFiled()) != null){ + if (datas != null && datas.get(mdmModuleViewEntity.getUpIdFiled()) != null) { upValue = datas.get(mdmModuleViewEntity.getUpIdFiled()).toString(); } - if(upValue != null ){ - formmainDeleteDto.setUpIdFiledValue(upValue+","+jsonObject.getString("id")); - }else { + if (upValue != null) { + formmainDeleteDto.setUpIdFiledValue(upValue + "," + jsonObject.getString("id")); + } else { formmainDeleteDto.setUpIdFiledValue(jsonObject.getString("id")); } mdmModuleDao.deleteChilder(formmainDeleteDto); } mdmModuleDao.deleteTemplateById(formmainDeleteDto); - }else { + } else if ("2".equals(mdmModuleDbEntityList.get(i).getDbType())) { //删除明细 FormmainDeleteDto formmainDeleteDto = new FormmainDeleteDto(); formmainDeleteDto.setFormmain_id(jsonObject.getString("id")); @@ -2577,53 +1586,837 @@ public class MdmServiceImpl implements IMdmService { formmainDeleteDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); mdmModuleDao.deleteTemplateById(formmainDeleteDto); } + + } + saveOption(dbname, mdmModuleEntity.getMdmCode(), jsonObject, jsonObject.getString("id"), "界面删除"); return BaseResult.getSuccessMessageEntity("删除数据成功"); } + public JSONObject toLowerCaseKeys(JSONObject jsonObject) { + JSONObject lowerCaseJson = new JSONObject(); + if (jsonObject != null) { + for (String key : jsonObject.keySet()) { + Object value = jsonObject.get(key); + lowerCaseJson.put(key.toLowerCase(), value); + } + } + return lowerCaseJson; + } + public List toLowerCaseKeys(List list) { + List jsonObjects = new ArrayList<>(); + if (list != null && list.size() > 0) { + for (int i = 0; i < list.size(); i++) { + jsonObjects.add(toLowerCaseKeys(list.get(i))); + } + } + return jsonObjects; + } /** - * @param object + * @param jsonStr * @return com.hzya.frame.web.entity.JsonResultEntity * @Author lvleigang * @Description 处理分发数据 * @Date 9:40 上午 2023/10/18 **/ @Override - public JsonResultEntity doMdmDistribute(JSONObject object) { - JSONObject jsonObject = getstrObj("jsonStr", object); + public JsonResultEntity doMdmDistribute(JSONObject jsonStr) throws Exception { + JSONObject jsonObject = getstrObj("jsonStr", jsonStr); //校验是否有servecr传参 if (!checkData(jsonObject, "mdmCode")) { return BaseResult.getFailureMessageEntity("请先传递服务名"); } if (!checkData(jsonObject, "id")) { - return BaseResult.getFailureMessageEntity("请先传递要删除的数据"); + return BaseResult.getFailureMessageEntity("请先传递要下发数据"); } - if (!checkData(jsonObject, "appID")) { - return BaseResult.getFailureMessageEntity("请先传递要删除的数据"); + if (!checkData(jsonObject, "distributeId")) { + return BaseResult.getFailureMessageEntity("请先传递要下发的数据"); } - if (!checkData(jsonObject, "dataType")) { - return BaseResult.getFailureMessageEntity("请先传递要删除的数据"); + if (!checkData(jsonObject, "type")) { + return BaseResult.getFailureMessageEntity("系统错误"); } - //TODO 后续完成下发或者删除业务 - return BaseResult.getSuccessMessageEntity("处理分发数据成功"); + Long mdmCode = jsonObject.getLong("mdmCode");//主数据编码 + String id = jsonObject.getString("id");//行数据的单据规则编码 + String distributeId = jsonObject.getString("distributeId");//发送表id + String type = jsonObject.getString("type");//发送类型,1、新增2、修改3、删除 + + String apiId = null; + String scriptId = null; + //查找对应数据,组装数据发送 + + //获取主数据信息 + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(mdmCode); + if (mdmModuleEntity == null || mdmModuleEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("主数据不存在"); + } + + //获取主数据db + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if (mdmModuleDbEntities == null || mdmModuleDbEntities.size() == 0) { + return BaseResult.getFailureMessageEntity("主数据数据源不存在"); + } + + //获取分发表 + //获取分发的接口 + MdmModuleDistributeEntity mdmModuleDistributeEntity = mdmModuleDistributeDao.get(distributeId); + if (mdmModuleDistributeEntity == null || mdmModuleDistributeEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("分发不存在"); + } + // 启用停用 0、停用 + if ("0".equals(mdmModuleDistributeEntity.getEnabledState())) { + return BaseResult.getFailureMessageEntity("分发已停用"); + } + MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity(); + mdmModuleDistributeDetailEntity.setDistributeId(distributeId); + mdmModuleDistributeDetailEntity.setSts("Y"); + List mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity); + + // 启用停用 0、停用 + if ("1".equals(mdmModuleDistributeEntity.getEnabledType())) { + return BaseResult.getFailureMessageEntity("分发为自动下发,不允许手动下发"); + } + //1、新增2、修改3、删除 + if ("1".equals(type)) { + apiId = mdmModuleDistributeEntity.getAddApi(); + scriptId = mdmModuleDistributeEntity.getAddScript(); + } else if ("2".equals(type)) { + apiId = mdmModuleDistributeEntity.getUpdateApi(); + scriptId = mdmModuleDistributeEntity.getUpdateScript(); + + } else if ("3".equals(type)) { + apiId = mdmModuleDistributeEntity.getDeleteApi(); + scriptId = mdmModuleDistributeEntity.getDeleteScript(); + } + if (apiId == null || "".equals(apiId)) { + return BaseResult.getFailureMessageEntity("分发接口未选择,请先选择"); + } + SysApplicationScriptEntity scriptEntity = null; + if (scriptId != null && !"".equals(scriptId)) { + scriptEntity = sysApplicationScriptDao.get(scriptId); + if (scriptEntity == null || scriptEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("分发接口脚本不存在"); + } + } + SysApplicationApiEntity apiEntity = sysApplicationApiDao.get(apiId); + if (apiEntity == null || apiEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("分发接口不存在"); + + } + SysApplicationEntity sysApplicationEntity = sysApplicationDao.get(apiEntity.getAppId()); + if (sysApplicationEntity == null || sysApplicationEntity.getId() == null) { + return BaseResult.getFailureMessageEntity("应用不存在"); + } + + //获取主数据db字段,以及字段的规则 + MdmModuleDbFiledsEntity queryFild = new MdmModuleDbFiledsEntity(); + queryFild.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(queryFild); + MdmModuleDbFiledsRuleEntity queryFildRule = new MdmModuleDbFiledsRuleEntity(); + queryFildRule.setMdmId(mdmModuleEntity.getId()); + queryFildRule.setRuleCode("service"); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(queryFildRule); + + String dbname = null; + //获取主数据db对应的实体表的数据 + JSONObject object = new JSONObject(); + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("1".equals(mdmModuleDbEntities.get(i).getDbType())) { + dbname = mdmModuleDbEntities.get(i).getDbName(); + Map map = new HashMap<>(); + map.put("tableName", mdmModuleDbEntities.get(i).getDbName()); + map.put("id", id); + object = mdmModuleDao.queryMdmST(map); + object = toLowerCaseKeys(object); + if (object.getString("id") == null || "".equals(object.getString("id"))) { + return BaseResult.getFailureMessageEntity("当前数据不存在"); + } + if (mdmModuleDistributeDetailEntities != null && mdmModuleDistributeDetailEntities.size() > 0) { + Map checkData = new HashMap<>(); + checkData.put("tableName", mdmModuleDbEntities.get(i).getDbName()); + checkData.put("id", id); + checkData.put("mdmModuleDistributeDetailEntities", mdmModuleDistributeDetailEntities); + JSONObject object1 = mdmModuleDao.queryMdmST(checkData); + object1 = toLowerCaseKeys(object1); + if (object1 == null || object1.getString("id") == null || "".equals(object1.getString("id"))) { + return BaseResult.getFailureMessageEntity("当前数据不符合规则不发送"); + } + } + //查看主表是否有字段是关联的 + if (mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + if (mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i).getId())) { + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if (mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())) { + if (object.getString(mdmModuleDbFiledsEntities.get(i2).getEnName()) != null) { + Map mapDetail = new HashMap<>(); + mapDetail.put("tableName", mdmModuleDbFiledsRuleEntities.get(i1).getRuleValue()); + String ids = object.getString(mdmModuleDbFiledsEntities.get(i2).getEnName()); + String[] idss = ids.split(","); + mapDetail.put("id", idss[idss.length - 1]); + JSONObject objectDetail = mdmModuleDao.queryMdmST(mapDetail); + objectDetail = toLowerCaseKeys(objectDetail); + object.put(mdmModuleDbFiledsEntities.get(i2).getEnName(), objectDetail); + } + } + } + } + } + } + } + } + } + + for (int i = 0; i < mdmModuleDbEntities.size(); i++) { + if ("2".equals(mdmModuleDbEntities.get(i).getDbType())) { + Map map = new HashMap<>(); + map.put("tableName", mdmModuleDbEntities.get(i).getDbName()); + map.put("formmainId", object.getString("id")); + List detail = mdmModuleDao.queryMdmSTDetail(map); + //查看主表是否有字段是关联的 + if (detail != null && detail.size() > 0) { + detail = toLowerCaseKeys(detail); + if (mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + if (mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i).getId())) { + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if (mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())) { + for (int i3 = 0; i3 < detail.size(); i3++) { + if (detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()) != null) { + Map mapDetail = new HashMap<>(); + mapDetail.put("tableName", mdmModuleDbFiledsRuleEntities.get(i1).getRuleValue()); + String ids = detail.get(i3).getString(mdmModuleDbFiledsEntities.get(i2).getEnName()); + String[] idss = ids.split(","); + mapDetail.put("id", idss[idss.length - 1]); + JSONObject objectDetail = mdmModuleDao.queryMdmST(mapDetail); + objectDetail = toLowerCaseKeys(objectDetail); + + detail.get(i3).put(mdmModuleDbFiledsEntities.get(i2).getEnName(), objectDetail); + } + } + } + } + } + } + } + } + } + object.put(mdmModuleDbEntities.get(i).getDbName(), detail); + } + } + + //执行脚本 + JSONObject groovy = new JSONObject(); + JSONObject parameterJson = new JSONObject(); + parameterJson.put("header", apiEntity.getHeaderIn()); + parameterJson.put("body", apiEntity.getBodyIn()); + parameterJson.put("query", apiEntity.getQueryIn()); + parameterJson.put("data", object); + + if (!"1".equals(type)) {//删除或者修改情况,查询三方id,有就设置,没有就设置空 + //1、根据主数据id、数据id、应用ID默认查询主数据应用下发三方id表,只查询最新的一条数据 + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setSts("Y"); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeTripartiteEntity.setDataId(object.getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity = mdmModuleDistributeTripartiteDao.queryOneTripartite(mdmModuleDistributeTripartiteEntity); + String tripartiteId = ""; + if (mdmModuleDistributeTripartiteEntity != null && mdmModuleDistributeTripartiteEntity.getTripartiteId() != null) { + tripartiteId = mdmModuleDistributeTripartiteEntity.getTripartiteId(); + } + parameterJson.put("tripartiteId", tripartiteId); + } + + /** head */ + Map header = null; + /** query */ + String querys = null; + /** body */ + String bodys = object.toJSONString(); + if (scriptEntity != null && scriptEntity.getId() != null && scriptEntity.getScriptData() != null) { + groovy.put("code", scriptEntity.getScriptCode()); + groovy.put("className", scriptEntity.getClassName()); + groovy.put("name", scriptEntity.getScriptName()); + groovy.put("methodStr", scriptEntity.getScriptData()); + groovy.put("parameterJson", parameterJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr", groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + JSONObject jsonResultEntity = JSONObject.parseObject(str.toString()); + header = (Map) jsonResultEntity.get("header"); + querys = jsonResultEntity.getString("querys"); + bodys = jsonResultEntity.getString("bodys"); + } catch (Exception e) { + return BaseResult.getFailureMessageEntity("分发脚本转换错误"); + } + } + Map headers = new HashMap<>(); + headers.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headers.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headers.put("appId", sysApplicationEntity.getAppId().toString()); + headers.put("apiCode", apiEntity.getApiCode().toString()); + if (header != null) { + headers.putAll(header); + } + if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) { + //找到登陆接口 + SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort()); + if (null == loginApi) { + saveMdmModuleSendLogEntity(mdmModuleEntity.getMdmCode(), mdmModuleDistributeEntity.getId(), "2", "转发失败,认证接口不存在", dbname, object.getString("id"), sysApplicationEntity.getName(), sysApplicationEntity.getId(), apiEntity.getApiName(), apiEntity.getId(), object.toJSONString(), type); + return BaseResult.getFailureMessageEntity("发送错误,认证接口不存在"); + + } + String rzquerys = getQuery(loginApi, null, null); + Map headersa = new HashMap<>(); + headersa.put("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj"); + headersa.put("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA="); + headersa.put("appId", sysApplicationEntity.getAppId().toString()); + headersa.put("apiCode", loginApi.getApiCode().toString()); + Map rzheaders = getHeaders(loginApi, headersa, null); + String rzbodys = getBodys(loginApi, null, null); + JsonResultEntity rzjsonResultEntity = sendData(loginApi, rzheaders, rzbodys, rzquerys); + if (!rzjsonResultEntity.isFlag()) { + saveMdmModuleSendLogEntity(mdmModuleEntity.getMdmCode(), mdmModuleDistributeEntity.getId(), "2", "转发失败,认证接口调用失败", dbname, object.getString("id"), sysApplicationEntity.getName(), sysApplicationEntity.getId(), apiEntity.getApiName(), apiEntity.getId(), object.toJSONString(), type); + return BaseResult.getFailureMessageEntity("发送错误:转发失败,认证接口调用失败"); + } + JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString()); + //logger.info("认证接口返回信息:"+ attritube.toJSONString()); + querys = getQuery(apiEntity, querys, attritube); + //logger.info("认证接口拼接querys信息:"+ querys); + + headers = getHeaders(apiEntity, headers, attritube); + if (headers != null && headers.size() > 0) { + StringBuffer stringBuffer = new StringBuffer(); + for (String key : headers.keySet()) { + stringBuffer.append(key).append("=").append(headers.get(key)).append("&"); + } + //logger.info("认证接口拼接header信息:"+ stringBuffer); + } + bodys = getBodys(apiEntity, bodys, attritube); + //logger.info("认证接口拼接bodys信息:"+ bodys); + } + + + //组装数据发送 + JsonResultEntity jsonResultEntity = sendData(apiEntity, headers, bodys, querys); + if (jsonResultEntity.isFlag()) { + + if ("1".equals(type)) {//保存三方返回id + if (scriptEntity != null && scriptEntity.getId() != null && scriptEntity.getBackScriptData() != null) { + JSONObject backScriptJson = new JSONObject(); + backScriptJson.put("data", jsonResultEntity.getAttribute()); + groovy.put("code", scriptEntity.getScriptCode() + "back"); + groovy.put("className", scriptEntity.getClassName() + "back"); + groovy.put("name", scriptEntity.getScriptName() + "back"); + groovy.put("methodStr", scriptEntity.getBackScriptData()); + groovy.put("parameterJson", backScriptJson); + JSONObject groovyStr = new JSONObject(); + groovyStr.put("jsonStr", groovy); + try { + Object str = groovyIntegrationService.groovyScriptExecution(groovyStr); + if (str != null) { + JSONObject backJsonResultEntity = JSONObject.parseObject(str.toString()); + if (backJsonResultEntity != null && backJsonResultEntity.getString("success") != null && "true".equals(backJsonResultEntity.getString("success"))) { + MdmModuleDistributeTripartiteEntity mdmModuleDistributeTripartiteEntity = new MdmModuleDistributeTripartiteEntity(); + mdmModuleDistributeTripartiteEntity.setCreate(); + mdmModuleDistributeTripartiteEntity.setMdmId(mdmModuleEntity.getId()); + mdmModuleDistributeTripartiteEntity.setDataId(object.getString("id")); + mdmModuleDistributeTripartiteEntity.setAppId(sysApplicationEntity.getId()); + mdmModuleDistributeTripartiteEntity.setTripartiteId(backJsonResultEntity.getString("tripartiteId")); + mdmModuleDistributeTripartiteDao.save(mdmModuleDistributeTripartiteEntity); + } + } + } catch (Exception e) { + logger.error("新增返回脚本解析保存三方id错误" + jsonResultEntity.getAttribute()); + saveMdmModuleSendLogEntity(mdmModuleEntity.getMdmCode(), mdmModuleDistributeEntity.getId(), "2", "转发失败", dbname, object.getString("id"), sysApplicationEntity.getName(), sysApplicationEntity.getId(), apiEntity.getApiName(), apiEntity.getId(), object.toJSONString(), type); + return BaseResult.getFailureMessageEntity("发送错误:新增返回脚本解析保存三方id错误"); + } + } + } + saveMdmModuleSendLogEntity(mdmModuleEntity.getMdmCode(), mdmModuleDistributeEntity.getId(), "1", "发送成功", dbname, object.getString("id"), sysApplicationEntity.getName(), sysApplicationEntity.getId(), apiEntity.getApiName(), apiEntity.getId(), object.toJSONString(), type); + return BaseResult.getSuccessMessageEntity("发送成功"); + } else { + saveMdmModuleSendLogEntity(mdmModuleEntity.getMdmCode(), mdmModuleDistributeEntity.getId(), "2", "转发失败", dbname, object.getString("id"), sysApplicationEntity.getName(), sysApplicationEntity.getId(), apiEntity.getApiName(), apiEntity.getId(), object.toJSONString(), type); + return BaseResult.getFailureMessageEntity("发送错误:" + jsonResultEntity.getAttribute()); + } + } + + private Map getHeaders(SysApplicationApiEntity loginApi, Map map, JSONObject loginData) { + if (loginData == null) { + loginData = new JSONObject(); + } + if (loginApi.getHeaderIn() != null && !"".equals(loginApi.getHeaderIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getHeaderIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getHeaderIn()); + for (int i = 0; i < headerArray.size(); i++) { + JSONObject querys = headerArray.getJSONObject(i); + //query 只有基本类型,不用循环判断下级 + //判断参数是否有值 + //获取对象下面的层级数据 + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), logValue); + } + } else { + if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + if (map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null) { + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), querys.getString(SysEnum.EXAMPLE.getValue())); + } + } else {//没有值直接拼接 + if (map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null) { + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), ""); + } + } + } + } + } + } + return map; + + + } + + + private String getQuery(SysApplicationApiEntity loginApi, String sendDatastr, JSONObject loginData) { + Map map = new HashMap<>(); + if (sendDatastr != null) { + String[] parts = sendDatastr.split("&"); + if (parts != null && parts.length > 0) { + for (int i = 0; i < parts.length; i++) { + String[] part = parts[i].split("="); + if (part != null && part.length >= 2) { + for (int a = 0; a < part.length; a++) { + map.put(part[0], part[1]); + } + } + } + } + } + if (loginData == null) { + loginData = new JSONObject(); + } + if (loginApi.getQueryIn() != null && !"".equals(loginApi.getQueryIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getQueryIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getQueryIn()); + for (int i = 0; i < headerArray.size(); i++) { + JSONObject querys = headerArray.getJSONObject(i); + //query 只有基本类型,不用循环判断下级 + //判断参数是否有值 + //获取对象下面的层级数据 + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), logValue); + } + } else { + //不是认证类型直接取值 + if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + if (map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null) { + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), querys.getString(SysEnum.EXAMPLE.getValue())); + } + } else {//没有值直接拼接 + if (map.get(querys.getString(SysEnum.PARAMETERNAME.getValue())) == null) { + map.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), ""); + } + } + } + } + } + } + StringBuffer returnStr = new StringBuffer(); + if (map != null && map.size() > 0) { + for (String key : map.keySet()) { + if ("".equals(returnStr)) { + returnStr.append(key).append("=").append(map.get(key)); + } else { + returnStr.append("&").append(key).append("=").append(map.get(key)); + } + } + } + return returnStr.toString(); } /** + * @param loginData + * @param example + * @return java.lang.String * @Author lvleigang - * @Description 校验数据 - * @Date 11:20 上午 2023/11/6 + * @Description 根据jsonArray 获取jsonobject中的值 + * @Date 11:47 上午 2023/8/31 + **/ + private String getObjectValue(JSONObject loginData, JSONArray example) { + String values = ""; + if (example != null && example.size() > 0) { + for (int i = 0; i < example.size(); i++) { + if (loginData.getString(example.getString(i)) != null && !"".equals(loginData.getString(example.getString(i)))) { + if (i == (example.size() - 1)) { + values = loginData.getString(example.getString(i)); + } else { + loginData = JSONObject.parseObject(loginData.getString(example.getString(i))); + } + } else { + return values; + } + } + } + return values; + } + + private String getBodys(SysApplicationApiEntity loginApi, String sendDatastr, JSONObject loginData) { + JSONObject sendData = new JSONObject(); + if (sendDatastr != null) { + sendData = JSONObject.parseObject(sendDatastr); + } + if (loginData == null) { + loginData = new JSONObject(); + } + if (loginApi.getBodyIn() != null && !"".equals(loginApi.getBodyIn())) { + if (JSONUtil.isTypeJSONArray(loginApi.getBodyIn())) { + JSONArray headerArray = JSON.parseArray(loginApi.getBodyIn()); + for (int i = 0; i < headerArray.size(); i++) { + //获取到第一个数据 + JSONObject querys = headerArray.getJSONObject(i); + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + sendData.put(querys.getString(SysEnum.PARAMETERNAME.getValue()), logValue); + } + } + } + } + } + return sendData.toString(); + } + + /** + * @param querys 设置的字段属性 + * @param sendData 发送数据 + * @param loginData 认证信息 + * @return java.lang.Object + * @Author lvleigang + * @Description 设置值 + * @Date 4:14 下午 2023/8/31 + **/ + private Object getUpdata(JSONObject querys, JSONObject sendData, JSONObject loginData) { + if (SysEnum.AUTHPORT.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//认证类型 可以直接设置值 + String query = querys.getString(SysEnum.EXAMPLE.getValue()); + if (query != null && !"".equals(query)) { + JSONArray example = JSONArray.parseArray(query); + String logValue = getObjectValue(loginData, example); + return logValue; + } + } else if (SysEnum.FUNDAMENTAL.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//基本类型 + if (sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())) != null + && !"".equals(sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())))) {//先判断入参是否有值 + return sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())); + } else if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + return querys.getString(SysEnum.EXAMPLE.getValue()); + } else {//没有值直接拼接 + return ""; + } + } else if (SysEnum.COMPLEX.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//复杂类型 + if (sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())) != null + && !"".equals(sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())))) {//先判断入参是否有值 + //获取子级 + String childers = querys.getString(SysEnum.CHILDREN.getValue()); + if (childers != null && !"".equals(childers)) { + JSONArray childersObj = JSONArray.parseArray(childers); + if (childersObj != null && childersObj.size() > 0) { + JSONObject obj = new JSONObject(); + for (int i = 0; i < childersObj.size(); i++) { + JSONObject a = childersObj.getJSONObject(i); + obj.put(a.getString(SysEnum.PARAMETERNAME.getValue()), getUpdata(a, sendData.getJSONObject(querys.getString(SysEnum.PARAMETERNAME.getValue())), loginData)); + } + return obj; + } + } else { + JSONObject obj = new JSONObject(); + return obj; + } + } else {//入参没有值用实例值,如果没有不添加 + //获取子级 + String childers = querys.getString(SysEnum.CHILDREN.getValue()); + if (childers != null && !"".equals(childers)) { + JSONArray childersObj = JSONArray.parseArray(childers); + if (childersObj != null && childersObj.size() > 0) { + JSONObject obj = new JSONObject(); + for (int i = 0; i < childersObj.size(); i++) { + JSONObject a = childersObj.getJSONObject(i); + obj.put(a.getString(SysEnum.PARAMETERNAME.getValue()), getUpdata(a, new JSONObject(), loginData)); + } + return obj; + } else { //没有值直接拼接 + JSONObject obj = new JSONObject(); + return obj; + } + } else { //没有值直接拼接 + JSONObject obj = new JSONObject(); + return obj; + } + } + } else if (SysEnum.FUNDAMENTALLIST.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//基本列表 + if (sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())) != null + && !"".equals(sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())))) {//先判断入参是否有值 + JSONArray jsonArray = JSONArray.parseArray(sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue()))); + return jsonArray; + } else if (querys.getString(SysEnum.EXAMPLE.getValue()) != null && !"".equals(querys.getString(SysEnum.EXAMPLE.getValue()))) {//入参没有值用实例值,如果没有不添加 + if ("String".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getString(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else if ("Int".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getIntValue(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else if ("Long".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getLongValue(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else if ("Float".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getFloatValue(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else if ("Double".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getDoubleValue(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else if ("Boolean".equals(querys.getString(SysEnum.CONCRETETYPE.getValue()))) { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getBooleanValue(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } else { + JSONArray jsonArray = new JSONArray(); + jsonArray.add(querys.getString(SysEnum.EXAMPLE.getValue())); + return jsonArray; + } + } else {//没有值直接拼接 + JSONArray jsonArray = new JSONArray(); + return jsonArray; + } + } else if (SysEnum.COMPLEXLIST.getValue().equals(querys.getString(SysEnum.PARAMETERTYPE.getValue()))) {//复杂列表 + if (sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())) != null + && !"".equals(sendData.getString(querys.getString(SysEnum.PARAMETERNAME.getValue())))) {//先判断入参是否有值 + //获取入参的数据 + //循环入参 + //循环api配置的参数 + //设置api的参数 + //返回数据 + JSONArray sendArray = sendData.getJSONArray(querys.getString(SysEnum.PARAMETERNAME.getValue())); + if (sendArray == null || sendArray.size() == 0) { + return new JSONArray(); + } + String childers = querys.getString(SysEnum.CHILDREN.getValue()); + if (childers == null || "".equals(childers)) { + return new JSONArray(); + } + JSONArray childersObj = JSONArray.parseArray(childers); + if (childersObj == null || childersObj.size() == 0) { + return new JSONArray(); + } + JSONArray obj = new JSONArray(); + for (int i = 0; i < sendArray.size(); i++) { + JSONObject sl = new JSONObject(); + for (int a = 0; a < childersObj.size(); a++) { + JSONObject b = childersObj.getJSONObject(a); + //入参没有只能取实例,实例只会有一个 + sl.put(b.getString(SysEnum.PARAMETERNAME.getValue()), getUpdata(b, sendArray.getJSONObject(i), loginData)); + } + obj.add(sl); + } + return obj; + } else {//入参没有值用实例值,如果没有不添加 + String childers = querys.getString(SysEnum.CHILDREN.getValue()); + if (childers != null && !"".equals(childers)) { + JSONArray childersObj = JSONArray.parseArray(childers); + if (childersObj != null && childersObj.size() > 0) { + JSONArray obj = new JSONArray(); + JSONObject sl = new JSONObject(); + for (int i = 0; i < childersObj.size(); i++) { + JSONObject a = childersObj.getJSONObject(i); + //入参没有只能取实例,实例只会有一个 + sl.put(a.getString(SysEnum.PARAMETERNAME.getValue()), getUpdata(a, new JSONObject(), loginData)); + } + obj.add(sl); + return obj; + } + } else { + JSONArray obj = new JSONArray(); + return obj; + } + } + } + return null; + } + + private JsonResultEntity sendData(SysApplicationApiEntity applicationApiEntity, Map headers, String bodys, String querys) { + StringBuffer urls = new StringBuffer(url); + if (querys != null && !"".equals(querys)) { + urls.append("?"); + urls.append(querys); + } + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpPost post = new HttpPost(urls.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(Integer.valueOf(applicationApiEntity.getTimeoutPeriod())).build(); + post.setConfig(requestConfig);//设置请求参数【超时时间】 + + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + post.setHeader(key, headers.get(key)); + } + } + StringBuilder body = new StringBuilder(); + boolean flag = true; + try { + if (bodys != null && !"".equals(bodys)) { + ByteArrayEntity entity = new ByteArrayEntity(bodys.getBytes("UTF-8")); + entity.setContentType("application/json"); + post.setEntity(entity); + } + + logger.info("接口拼接querys信息:" + querys); + if (headers != null && headers.size() > 0) { + StringBuffer stringBuffer = new StringBuffer(); + for (String key : headers.keySet()) { + stringBuffer.append(key).append("=").append(headers.get(key)).append("&"); + } + logger.info("接口拼接header信息:" + stringBuffer); + } + logger.info("接口拼接bodys信息:" + bodys); + + response = closeableHttpClient.execute(post); + + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body.append(EntityUtils.toString(entity, "UTF-8")); + } + flag = true; + logger.info("返回结果:" + body); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + body.append(e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + + } + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JsonResultEntity jsonResultEntity = JSONObject.parseObject(body.toString(), JsonResultEntity.class); + if (jsonResultEntity.isFlag()) { + return BaseResult.getSuccessMessageEntity("转发成功", body); + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } + + private void saveMdmModuleSendLogEntity(Long mdmCode, String distributeId, String dataType, String remark, String dbname, String formmain_id, String target_app, String appID, String target_api, String apiId, String source_data, String option_type) throws Exception { + MdmModuleSendLogEntity mdmModuleSendLogEntity = new MdmModuleSendLogEntity(); + mdmModuleSendLogEntity.setTableName(dbname + "_send_log"); + mdmModuleSendLogEntity.setId(UUIDUtils.getUUID()); + mdmModuleSendLogEntity.setDistributeId(distributeId); + mdmModuleSendLogEntity.setAppId(appID); + mdmModuleSendLogEntity.setApiId(apiId); + mdmModuleSendLogEntity.setSts("Y"); + mdmModuleSendLogEntity.setCreate_user_id("1"); + mdmModuleSendLogEntity.setModify_user_id("1"); + mdmModuleSendLogEntity.setCreate_time(new Date()); + mdmModuleSendLogEntity.setModify_time(new Date()); + mdmModuleSendLogEntity.setOrg_id("0"); + mdmModuleSendLogEntity.setCompanyId("0"); + mdmModuleSendLogEntity.setFormmainId(formmain_id); + mdmModuleSendLogEntity.setTargetApp(target_app); + mdmModuleSendLogEntity.setTargetApi(target_api); + mdmModuleSendLogEntity.setSourceData(source_data); + mdmModuleSendLogEntity.setOptionType(option_type); + mdmModuleSendLogEntity.setDataType(dataType); + mdmModuleSendLogEntity.setRemark(remark); + mdmModuleSendLogDao.save(mdmModuleSendLogEntity); + + + JSONObject jsonObject = JSONObject.parseObject(source_data); + IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity(); + integrationTaskLivingDetailsEntity.setId(UUIDUtils.getUUID()); + integrationTaskLivingDetailsEntity.setSts("Y"); + integrationTaskLivingDetailsEntity.setCreate_user_id("1"); + integrationTaskLivingDetailsEntity.setModify_user_id("1"); + integrationTaskLivingDetailsEntity.setCreate_time(new Date()); + integrationTaskLivingDetailsEntity.setModify_time(new Date()); + integrationTaskLivingDetailsEntity.setOrg_id("0"); + integrationTaskLivingDetailsEntity.setCompanyId("0"); + JSONObject aa = new JSONObject(); + aa.put("mdmCode", mdmCode);//主数据编码 + aa.put("documentRule", jsonObject.getString("document_rule"));//行数据的单据规则编码 + aa.put("distributeId", distributeId);//发送表id + aa.put("type", option_type);//发送类型,1、新增2、修改3、删除 + integrationTaskLivingDetailsEntity.setRootAppPk(aa.toJSONString()); + integrationTaskLivingDetailsEntity.setRootAppBill(jsonObject.getString("document_rule")); + integrationTaskLivingDetailsEntity.setPluginId("MdmModulePlugin"); + integrationTaskLivingDetailsEntity.setRootAppNewData(source_data); + integrationTaskLivingDetailsEntity.setNewTransmitInfo(remark); + if ("1".equals(dataType)) { + taskLivingDetailsService.saveLogToSuccess(integrationTaskLivingDetailsEntity); + } else { + taskLivingDetailsService.saveLogToFail(integrationTaskLivingDetailsEntity); + + } + + } + + + /** * @param mdmCode * @param saveData * @param mdmModuleEntity * @param mdmModuleDbEntityList - * @param flag 修改 新增 + * @param flag 修改 新增 * @return java.lang.String + * @Author lvleigang + * @Description 校验数据 + * @Date 11:20 上午 2023/11/6 **/ - private String checkDataOnly(Integer mdmCode, JSONObject saveData,boolean flag,MdmModuleEntity mdmModuleEntity,List mdmModuleDbEntityList) { + private String checkDataOnly(long mdmCode, JSONObject saveData, boolean flag, MdmModuleEntity mdmModuleEntity, List mdmModuleDbEntityList, String msg) { StringBuffer str = new StringBuffer(); - + String dbname = null; + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + dbname = mdmModuleDbEntityList.get(i).getDbName(); + } + } //查询字段 //查询字段下的必填规则 MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity(); @@ -2633,32 +2426,32 @@ public class MdmServiceImpl implements IMdmService { mdmModuleDbFiledsEntity.setRoleValue("true"); List mdmModuleDbFiledsEntityList = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity); - if(mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0){ + if (mdmModuleDbFiledsEntityList != null && mdmModuleDbFiledsEntityList.size() > 0) { for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { JSONObject jsonObject = saveData.getJSONObject(mdmModuleDbEntityList.get(i).getDbName()); for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if(mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())){ - if(jsonObject.get(mdmModuleDbFiledsEntityList.get(i1).getEnName()) == null || "".equals(jsonObject.getString(mdmModuleDbFiledsEntityList.get(i1).getEnName()))){ - if(str.toString() != null && !"".equals(str.toString())){ - str.append(";"); - } - str.append(mdmModuleDbEntityList.get(i).getRemark()+"的"+mdmModuleDbFiledsEntityList.get(i1).getChName()+"不为空"); + if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())) { + if (jsonObject.get(mdmModuleDbFiledsEntityList.get(i1).getEnName()) == null || "".equals(jsonObject.getString(mdmModuleDbFiledsEntityList.get(i1).getEnName()))) { + if (str.toString() != null && !"".equals(str.toString())) { + str.append(";"); + } + str.append(mdmModuleDbEntityList.get(i).getRemark() + "的" + mdmModuleDbFiledsEntityList.get(i1).getChName() + "不为空"); } } } - }else { + } else { JSONArray jsonArray = saveData.getJSONArray(mdmModuleDbEntityList.get(i).getDbName()); - if(jsonArray != null && jsonArray.size() > 0){ + if (jsonArray != null && jsonArray.size() > 0) { for (int i1 = 0; i1 < mdmModuleDbFiledsEntityList.size(); i1++) { - if(mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())){ + if (mdmModuleDbFiledsEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())) { for (int i2 = 0; i2 < jsonArray.size(); i2++) { JSONObject jsonObject = jsonArray.getJSONObject(i2); - if(jsonObject.get(mdmModuleDbFiledsEntityList.get(i1).getEnName()) == null || "".equals(jsonObject.getString(mdmModuleDbFiledsEntityList.get(i1).getEnName()))){ - if(str.toString() != null && !"".equals(str.toString())){ + if (jsonObject.get(mdmModuleDbFiledsEntityList.get(i1).getEnName()) == null || "".equals(jsonObject.getString(mdmModuleDbFiledsEntityList.get(i1).getEnName()))) { + if (str.toString() != null && !"".equals(str.toString())) { str.append(";"); } - str.append(mdmModuleDbEntityList.get(i).getRemark()+"的"+mdmModuleDbFiledsEntityList.get(i1).getChName()+"不为空"); + str.append(mdmModuleDbEntityList.get(i).getRemark() + "的" + mdmModuleDbFiledsEntityList.get(i1).getChName() + "不为空"); break; } } @@ -2679,51 +2472,51 @@ public class MdmServiceImpl implements IMdmService { List onlyEntityList = mdmModuleDbFiledsDao.queryBase(onlyFiledsEntity); - if(onlyEntityList != null && onlyEntityList.size() > 0){ + if (onlyEntityList != null && onlyEntityList.size() > 0) { for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { JSONObject jsonObject = saveData.getJSONObject(mdmModuleDbEntityList.get(i).getDbName()); for (int i1 = 0; i1 < onlyEntityList.size(); i1++) { - if(onlyEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())){ + if (onlyEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())) { //校验唯一 - Map map = new HashMap<>(); - map.put("tableName",mdmModuleDbEntityList.get(i).getDbName()); - if(flag){ - map.put("id",jsonObject.getString("id")); + Map map = new HashMap<>(); + map.put("tableName", mdmModuleDbEntityList.get(i).getDbName()); + if (flag) { + map.put("id", jsonObject.getString("id")); } - map.put("filedName",onlyEntityList.get(i1).getEnName()); - map.put("filedValue",jsonObject.getString(onlyEntityList.get(i1).getEnName())); + map.put("filedName", onlyEntityList.get(i1).getEnName()); + map.put("filedValue", jsonObject.getString(onlyEntityList.get(i1).getEnName())); Integer count = mdmModuleDao.checkData(map); - if(count > 0){ - if(str.toString() != null && !"".equals(str.toString())){ + if (count > 0) { + if (str.toString() != null && !"".equals(str.toString())) { str.append(";"); } - str.append(mdmModuleDbEntityList.get(i).getRemark()+"的"+mdmModuleDbFiledsEntityList.get(i1).getChName()+"已存在"); + str.append(mdmModuleDbEntityList.get(i).getRemark() + "的" + mdmModuleDbFiledsEntityList.get(i1).getChName() + "已存在"); } } } - }else { + } else { JSONArray jsonArray = saveData.getJSONArray(mdmModuleDbEntityList.get(i).getDbName()); - if(jsonArray != null && jsonArray.size() > 0){ + if (jsonArray != null && jsonArray.size() > 0) { for (int i1 = 0; i1 < onlyEntityList.size(); i1++) { - if(onlyEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())){ + if (onlyEntityList.get(i1).getDbId().equals(mdmModuleDbEntityList.get(i).getId())) { for (int i2 = 0; i2 < jsonArray.size(); i2++) { JSONObject jsonObject = jsonArray.getJSONObject(i2); //校验唯一 - Map map = new HashMap<>(); - map.put("tableName",mdmModuleDbEntityList.get(i).getDbName()); - if(flag){ - map.put("id",jsonObject.getString("id")); + Map map = new HashMap<>(); + map.put("tableName", mdmModuleDbEntityList.get(i).getDbName()); + if (flag) { + map.put("id", jsonObject.getString("id")); } - map.put("filedName",onlyEntityList.get(i1).getEnName()); - map.put("filedValue",jsonObject.getString(onlyEntityList.get(i1).getEnName())); + map.put("filedName", onlyEntityList.get(i1).getEnName()); + map.put("filedValue", jsonObject.getString(onlyEntityList.get(i1).getEnName())); Integer count = mdmModuleDao.checkData(map); - if(count > 0){ - if(str.toString() != null && !"".equals(str.toString())){ + if (count > 0) { + if (str.toString() != null && !"".equals(str.toString())) { str.append(";"); } - str.append(mdmModuleDbEntityList.get(i).getRemark()+"的"+mdmModuleDbFiledsEntityList.get(i1).getChName()+"已存在"); + str.append(mdmModuleDbEntityList.get(i).getRemark() + "的" + mdmModuleDbFiledsEntityList.get(i1).getChName() + "已存在"); break; } } @@ -2739,138 +2532,384 @@ public class MdmServiceImpl implements IMdmService { //保存数据 if (str == null || "".equals(str.toString())) { String id = UUIDUtils.getUUID(); - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { - JSONObject jsonObject = saveData.getJSONObject(mdmModuleDbEntityList.get(i).getDbName()); - //保存数据 - MdmDataDto mdmDataDto = new MdmDataDto(); - mdmDataDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity1 = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity1.setMdmId(mdmModuleEntity.getId()); - mdmModuleDbFiledsEntity1.setDbId(mdmModuleDbEntityList.get(i).getId()); - mdmModuleDbFiledsEntity1.setSts("Y"); - List fileds = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity1); - //查询单据规则 - MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); - mdmTableCodeRuleEntity.setMdmId(mdmModuleEntity.getId()); - mdmTableCodeRuleEntity.setDbId(mdmModuleDbEntityList.get(i).getId()); - mdmTableCodeRuleEntity.setSts("Y"); - List mdmTableCodeRuleEntities = mdmTableCodeRuleDao.queryBase(mdmTableCodeRuleEntity); - StringBuffer document_rule = new StringBuffer(); - Integer document_rule_num = 0; - if(mdmTableCodeRuleEntities != null && mdmTableCodeRuleEntities.size() > 0){ - for (int i1 = 0; i1 < mdmTableCodeRuleEntities.size(); i1++) { - //1、连接符号 2、字符串 3、日期 4、流水号 - if("1".equals(mdmTableCodeRuleEntities.get(i1).getDbType())){ - document_rule.append("-"); - }else if("2".equals(mdmTableCodeRuleEntities.get(i1).getDbType())){ - document_rule.append(mdmTableCodeRuleEntities.get(i1).getDbValue()); - }else if("3".equals(mdmTableCodeRuleEntities.get(i1).getDbType())){ - SimpleDateFormat sdf = new SimpleDateFormat(mdmTableCodeRuleEntities.get(i1).getDbValue());//要转换的时间格式 - String stra = sdf.format(new Date()); - document_rule.append(stra); - }else if("4".equals(mdmTableCodeRuleEntities.get(i1).getDbType())){ - document_rule_num = mdmTableCodeRuleEntities.get(i1).getDbValue().length(); - } + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("1".equals(mdmModuleDbEntityList.get(i).getDbType())) { + JSONObject jsonObject = saveData.getJSONObject(mdmModuleDbEntityList.get(i).getDbName()); + //保存数据 + MdmDataDto mdmDataDto = new MdmDataDto(); + mdmDataDto.setMdmId(mdmModuleEntity.getId()); + mdmDataDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity1 = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity1.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsEntity1.setDbId(mdmModuleDbEntityList.get(i).getId()); + mdmModuleDbFiledsEntity1.setSts("Y"); + List fileds = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity1); + //查询单据规则 + MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity(); + mdmTableCodeRuleEntity.setMdmId(mdmModuleEntity.getId()); + //mdmTableCodeRuleEntity.setDbId(mdmModuleDbEntityList.get(i).getId()); + mdmTableCodeRuleEntity.setSts("Y"); + List allMdmTableCodeRuleEntities = mdmTableCodeRuleDao.queryBase(mdmTableCodeRuleEntity); + List mdmTableCodeRuleEntities = new ArrayList<>(); + if (allMdmTableCodeRuleEntities != null && allMdmTableCodeRuleEntities.size() > 0) { + mdmTableCodeRuleEntities = allMdmTableCodeRuleEntities; + //for (int i1 = 0; i1 < allMdmTableCodeRuleEntities.size(); i1++) { + // if(mdmModuleDbEntityList.get(i).getId().equals(allMdmTableCodeRuleEntities.get(i1).getDbId())){ + // mdmTableCodeRuleEntities.add(allMdmTableCodeRuleEntities.get(i1)); + // } + //} + } + StringBuffer document_rule = new StringBuffer(); + Integer document_rule_num = 0; + if (mdmTableCodeRuleEntities != null && mdmTableCodeRuleEntities.size() > 0) { + for (int i1 = 0; i1 < mdmTableCodeRuleEntities.size(); i1++) { + //1、连接符号 2、字符串 3、日期 4、流水号 + if ("1".equals(mdmTableCodeRuleEntities.get(i1).getDbType())) { + document_rule.append("-"); + } else if ("2".equals(mdmTableCodeRuleEntities.get(i1).getDbType())) { + document_rule.append(mdmTableCodeRuleEntities.get(i1).getDbValue()); + } else if ("3".equals(mdmTableCodeRuleEntities.get(i1).getDbType())) { + SimpleDateFormat sdf = new SimpleDateFormat(mdmTableCodeRuleEntities.get(i1).getDbValue());//要转换的时间格式 + String stra = sdf.format(new Date()); + document_rule.append(stra); + } else if ("4".equals(mdmTableCodeRuleEntities.get(i1).getDbType())) { + document_rule_num = mdmTableCodeRuleEntities.get(i1).getDbValue().length(); } } - List mdmDataFiledDtos = new ArrayList<>(); - for (int i1 = 0; i1 < fileds.size(); i1++) { - if(jsonObject.get(fileds.get(i1).getEnName()) != null ){ + } + List mdmDataFiledDtos = new ArrayList<>(); + for (int i1 = 0; i1 < fileds.size(); i1++) { + if (jsonObject.get(fileds.get(i1).getEnName()) != null) { + if (flag && "update_status".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto update_status = new MdmDataFiledDto(); + update_status.setFiledsName("update_status"); + update_status.setFiledsValue("0"); + mdmDataFiledDtos.add(update_status); + } else if (flag && "data_status".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto data_status = new MdmDataFiledDto(); + data_status.setFiledsName("data_status"); + data_status.setFiledsValue("F"); + mdmDataFiledDtos.add(data_status); + } else if (flag && "modify_user_id".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto data_status = new MdmDataFiledDto(); + data_status.setFiledsName("modify_user_id"); + data_status.setFiledsValue("F"); + //mdmDataFiledDtos.add(data_status); + } else { MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); mdmDataFiledDto.setFiledsName(fileds.get(i1).getEnName()); mdmDataFiledDto.setFiledsValue(jsonObject.getString(fileds.get(i1).getEnName())); mdmDataFiledDtos.add(mdmDataFiledDto); } } - MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); - mdmDataFiledDto.setFiledsName("logid"); - mdmDataFiledDto.setFiledsValue(StpUtil.getLoginIdAsString()); - mdmDataFiledDtos.add(mdmDataFiledDto); - mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); - if(flag){ - mdmDataDto.setId(jsonObject.getString("id")); - id = jsonObject.getString("id"); - int a = mdmModuleDao.updateForm(mdmDataDto); - }else { + } + MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); + mdmDataFiledDto.setFiledsName("logid"); + mdmDataFiledDto.setFiledsValue(StpUtil.getLoginIdAsString()); + mdmDataFiledDtos.add(mdmDataFiledDto); + mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); + if (flag) { + mdmDataDto.setId(jsonObject.getString("id")); + id = jsonObject.getString("id"); - mdmDataDto.setDbType(mdmModuleDbEntityList.get(i).getDbType()); - mdmDataDto.setDocumentRule(document_rule.toString()); - mdmDataDto.setDocumentRuleNum(document_rule_num); - MdmDataFiledDto ids = new MdmDataFiledDto(); - ids.setFiledsName("id"); - ids.setFiledsValue(id); - mdmDataFiledDtos.add(ids); - mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); - int a = mdmModuleDao.saveForm(mdmDataDto); - } + + updateTreeUseData(mdmModuleEntity.getId(),mdmDataDto.getTableName(),id,mdmDataFiledDtos); + + + + int a = mdmModuleDao.updateForm(mdmDataDto); + } else { + + mdmDataDto.setDbType(mdmModuleDbEntityList.get(i).getDbType()); + mdmDataDto.setDocumentRule(document_rule.toString()); + mdmDataDto.setDocumentRuleNum(document_rule_num); + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("id"); + ids.setFiledsValue(id); + mdmDataFiledDtos.add(ids); + MdmDataFiledDto data_status = new MdmDataFiledDto(); + data_status.setFiledsName("data_status"); + data_status.setFiledsValue("Y"); + ; + mdmDataFiledDtos.add(data_status); + MdmDataFiledDto org_id = new MdmDataFiledDto(); + org_id.setFiledsName("org_id"); + org_id.setFiledsValue("Y"); + ; + mdmDataFiledDtos.add(org_id); + MdmDataFiledDto company_id = new MdmDataFiledDto(); + company_id.setFiledsName("company_id"); + company_id.setFiledsValue("Y"); + ; + mdmDataFiledDtos.add(company_id); + + MdmDataFiledDto add_status = new MdmDataFiledDto(); + add_status.setFiledsName("add_status"); + add_status.setFiledsValue("0"); + mdmDataFiledDtos.add(add_status); + MdmDataFiledDto update_status = new MdmDataFiledDto(); + update_status.setFiledsName("update_status"); + update_status.setFiledsValue("1"); + mdmDataFiledDtos.add(update_status); + MdmDataFiledDto delete_status = new MdmDataFiledDto(); + delete_status.setFiledsName("delete_status"); + delete_status.setFiledsValue("1"); + mdmDataFiledDtos.add(delete_status); + mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); + int a = mdmModuleDao.saveForm(mdmDataDto); } } + } - for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { - if ("2".equals(mdmModuleDbEntityList.get(i).getDbType())) { - //删除明细 - FormmainDeleteDto formmainDeleteDto = new FormmainDeleteDto(); - formmainDeleteDto.setFormmain_id(id); - formmainDeleteDto.setLoginId(StpUtil.getLoginIdAsString()); - formmainDeleteDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); - mdmModuleDao.deleteTemplateById(formmainDeleteDto); + for (int i = 0; i < mdmModuleDbEntityList.size(); i++) { + if ("2".equals(mdmModuleDbEntityList.get(i).getDbType())) { + //删除明细 + FormmainDeleteDto formmainDeleteDto = new FormmainDeleteDto(); + formmainDeleteDto.setFormmain_id(id); + formmainDeleteDto.setLoginId(StpUtil.getLoginIdAsString()); + formmainDeleteDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); + mdmModuleDao.deleteTemplateById(formmainDeleteDto); - JSONArray jsonArray = saveData.getJSONArray(mdmModuleDbEntityList.get(i).getDbName()); - if(jsonArray != null && jsonArray.size() > 0){ - MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity1 = new MdmModuleDbFiledsEntity(); - mdmModuleDbFiledsEntity1.setMdmId(mdmModuleEntity.getId()); - mdmModuleDbFiledsEntity1.setDbId(mdmModuleDbEntityList.get(i).getId()); - mdmModuleDbFiledsEntity1.setSts("Y"); - List fileds = mdmModuleDbFiledsDao.queryBase(mdmModuleDbFiledsEntity1); + JSONArray jsonArray = saveData.getJSONArray(mdmModuleDbEntityList.get(i).getDbName()); + if (jsonArray != null && jsonArray.size() > 0) { + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity1 = new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity1.setMdmId(mdmModuleEntity.getId()); + mdmModuleDbFiledsEntity1.setSts("Y"); + List allfileds = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity1); + List fileds = new ArrayList<>(); + if (allfileds != null && allfileds.size() > 0) { + for (int i1 = 0; i1 < allfileds.size(); i1++) { + if (mdmModuleDbEntityList.get(i).getId().equals(allfileds.get(i1).getDbId())) { + fileds.add(allfileds.get(i1)); + } + } + } - for (int i2 = 0; i2 < jsonArray.size(); i2++) { - JSONObject jsonObject = jsonArray.getJSONObject(i2); - //保存数据 - MdmDataDto mdmDataDto = new MdmDataDto(); - mdmDataDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); - List mdmDataFiledDtos = new ArrayList<>(); - for (int i1 = 0; i1 < fileds.size(); i1++) { + for (int i2 = 0; i2 < jsonArray.size(); i2++) { + JSONObject jsonObject = jsonArray.getJSONObject(i2); + //保存数据 + MdmDataDto mdmDataDto = new MdmDataDto(); + mdmDataDto.setTableName(mdmModuleDbEntityList.get(i).getDbName()); + List mdmDataFiledDtos = new ArrayList<>(); + for (int i1 = 0; i1 < fileds.size(); i1++) { + if ("id".equals(fileds.get(i1).getEnName())) { + if (jsonObject.getString("id") != null) { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("id"); + ids.setFiledsValue(jsonObject.getString("id")); + mdmDataFiledDtos.add(ids); + } else { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("id"); + ids.setFiledsValue(UUIDUtils.getUUID()); + mdmDataFiledDtos.add(ids); + } + } else if ("formmain_id".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto formain_id = new MdmDataFiledDto(); + formain_id.setFiledsName("formmain_id"); + formain_id.setFiledsValue(id); + mdmDataFiledDtos.add(formain_id); + } else if ("data_status".equals(fileds.get(i1).getEnName())) { + if (jsonObject.getString("id") != null) { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("data_status"); + ids.setFiledsValue("F"); + mdmDataFiledDtos.add(ids); + } else { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("data_status"); + ids.setFiledsValue("Y"); + mdmDataFiledDtos.add(ids); + } + } else if ("sorts".equals(fileds.get(i1).getEnName())) { + + } else if ("create_user_id".equals(fileds.get(i1).getEnName())) { + //if (jsonObject.getString("id") != null) { + // + //} else { + // MdmDataFiledDto ids = new MdmDataFiledDto(); + // ids.setFiledsName("create_user_id"); + // ids.setFiledsValue(UUIDUtils.getUUID()); + // mdmDataFiledDtos.add(ids); + //} + } else if ("create_time".equals(fileds.get(i1).getEnName())) { + + } else if ("modify_user_id".equals(fileds.get(i1).getEnName())) { + //MdmDataFiledDto ids = new MdmDataFiledDto(); + //ids.setFiledsName("modify_user_id"); + //ids.setFiledsValue(UUIDUtils.getUUID()); + //mdmDataFiledDtos.add(ids); + } else if ("company_id".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("company_id"); + ids.setFiledsValue("0"); + mdmDataFiledDtos.add(ids); + } else if ("org_id".equals(fileds.get(i1).getEnName())) { + MdmDataFiledDto ids = new MdmDataFiledDto(); + ids.setFiledsName("org_id"); + ids.setFiledsValue("0"); + mdmDataFiledDtos.add(ids); + } else if ("modify_time".equals(fileds.get(i1).getEnName())) { + + } else if ("sts".equals(fileds.get(i1).getEnName())) { + + } else { MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); mdmDataFiledDto.setFiledsName(fileds.get(i1).getEnName()); mdmDataFiledDto.setFiledsValue(jsonObject.getString(fileds.get(i1).getEnName())); mdmDataFiledDtos.add(mdmDataFiledDto); } - MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); - mdmDataFiledDto.setFiledsName("logid"); - mdmDataFiledDto.setFiledsValue(StpUtil.getLoginIdAsString()); - mdmDataFiledDtos.add(mdmDataFiledDto); + } + MdmDataFiledDto mdmDataFiledDto = new MdmDataFiledDto(); + mdmDataFiledDto.setFiledsName("logid"); + mdmDataFiledDto.setFiledsValue(StpUtil.getLoginIdAsString()); + mdmDataFiledDtos.add(mdmDataFiledDto); - MdmDataFiledDto formain_id = new MdmDataFiledDto(); - formain_id.setFiledsName("formmain_id"); - formain_id.setFiledsValue(id); - mdmDataFiledDtos.add(formain_id); + mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); + if (jsonObject.getString("id") != null) { + mdmDataDto.setId(jsonObject.getString("id")); - mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); - if(jsonObject.getString("id") != null ){ - MdmDataFiledDto sts = new MdmDataFiledDto(); - sts.setFiledsName("sts"); - sts.setFiledsValue("Y"); - mdmDataFiledDtos.add(sts); - mdmDataDto.setId(jsonObject.getString("id")); - int a = mdmModuleDao.updateForm(mdmDataDto); - }else { - MdmDataFiledDto ids = new MdmDataFiledDto(); - ids.setFiledsName("id"); - ids.setFiledsValue(UUIDUtils.getUUID()); - mdmDataFiledDtos.add(ids); - mdmDataDto.setMdmDataFiledDtos(mdmDataFiledDtos); - mdmDataDto.setDbType(mdmModuleDbEntityList.get(i).getDbType()); - int a = mdmModuleDao.saveForm(mdmDataDto); - } + int a = mdmModuleDao.updateForm(mdmDataDto); + } else { + mdmDataDto.setDbType(mdmModuleDbEntityList.get(i).getDbType()); + int a = mdmModuleDao.saveForm(mdmDataDto); } } } } + } + saveOption(dbname, mdmCode, saveData, id, msg); } return str.toString(); } + /** + * @Author lvleigang + * @Description 修改树结构的下级以及其他使用地方数据 + * @Date 9:12 上午 2024/8/2 + * @param mdmId 主数据mdmId + * @param tableName 主数据的表名 + * @param id 数据id + * @param mdmDataFiledDtos 数据 + * @return void + **/ + public void updateTreeUseData(String mdmId, String tableName, String id, List mdmDataFiledDtos) { + //查询是否设置的树形 + MdmModuleViewEntity mdmModuleViewEntity = new MdmModuleViewEntity(); + mdmModuleViewEntity.setMdmId(mdmId); + mdmModuleViewEntity.setViewName("1"); + mdmModuleViewEntity.setSts("Y"); + List moduleViewEntityList = mdmModuleViewDao.queryBase(mdmModuleViewEntity); + if (moduleViewEntityList != null && moduleViewEntityList.size() == 1) { + mdmModuleViewEntity = moduleViewEntityList.get(0); + //查询数据 + Map queryData = new HashMap<>(); + queryData.put("tableName", tableName);//表名 + queryData.put("detailFlag", false);//是否明细 + queryData.put("id", id);//字段 + HashMap datas = mdmModuleDbDao.getServiceDataById(queryData); + convertKeysToLowerCase(datas); + //对比值是否有修改 + boolean upFlag = false; + String oldData = ""; + + String newData = ""; + + for (int i1 = 0; i1 < mdmDataFiledDtos.size(); i1++) { + if (mdmDataFiledDtos.get(i1).getFiledsName().equals(mdmModuleViewEntity.getUpIdFiled())) { + newData = mdmDataFiledDtos.get(i1).getFiledsValue(); + oldData = datas.get(mdmDataFiledDtos.get(i1).getFiledsName()).toString(); + + if (mdmDataFiledDtos.get(i1).getFiledsValue().equals(datas.get(mdmDataFiledDtos.get(i1).getFiledsName()).toString())) { + upFlag = true; + break; + } + } + } + + if (!"".equals(oldData)) { + oldData = oldData + "," + id; + } else { + oldData = id; + } + if (!"".equals(newData)) { + newData = newData + "," + id; + } else { + newData = id; + } + if (!upFlag) { + //查询引用地方 + Map maps = new HashMap<>(); + maps.put("service", tableName); + maps.put("upId", mdmModuleViewEntity.getUpIdFiled()); + //maps.put("mdmId",mdmModuleEntity.getId()); + List mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryServiceQuote(maps); + if (mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0) { + for (int i1 = 0; i1 < mdmModuleDbFiledsRuleEntities.size(); i1++) { + //查询字段 + String upFiled = ""; + + MdmModuleDbFiledsEntity moduleDbFiledsEntity = new MdmModuleDbFiledsEntity(); + moduleDbFiledsEntity.setMdmId(mdmModuleDbFiledsRuleEntities.get(i1).getMdmId()); + moduleDbFiledsEntity.setSts("Y"); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(moduleDbFiledsEntity); + if (mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0) { + for (int i2 = 0; i2 < mdmModuleDbFiledsEntities.size(); i2++) { + if (mdmModuleDbFiledsRuleEntities.get(i1).getFiledId().equals(mdmModuleDbFiledsEntities.get(i2).getId())) { + upFiled = mdmModuleDbFiledsEntities.get(i2).getEnName(); + } + } + } + //修改引用数据 + //查看是否主表 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleDbFiledsRuleEntities.get(i1).getMdmId()); + mdmModuleDbEntity.setSts("Y"); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + //设置主表 + String mainDBTable = ""; + String dataDBTable = ""; + if (mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0) { + for (int i2 = 0; i2 < mdmModuleDbEntities.size(); i2++) { + //主表 + if ("1".equals(mdmModuleDbEntities.get(i2).getDbType())) { + mainDBTable = mdmModuleDbEntities.get(i2).getDbName(); + } + if (mdmModuleDbFiledsRuleEntities.get(i1).getDbId().equals(mdmModuleDbEntities.get(i2).getId())) { + dataDBTable = mdmModuleDbEntities.get(i2).getDbName(); + } + } + } + + if (mainDBTable.equals(dataDBTable)) {//主表上的字段 + Map updateMaps = new HashMap<>(); + updateMaps.put("tableName", dataDBTable); + updateMaps.put("upFiled", upFiled); + updateMaps.put("oldData", oldData); + updateMaps.put("newData", newData); + updateMaps.put("modify_user_id", StpUtil.getLoginIdAsString()); + mdmModuleDao.updataTreeUpData(updateMaps); + } else {//明细表上的字段 + Map updateMaps = new HashMap<>(); + updateMaps.put("mainDBTable", mainDBTable); + updateMaps.put("tableName", dataDBTable); + updateMaps.put("upFiled", upFiled); + updateMaps.put("oldData", oldData); + updateMaps.put("newData", newData); + updateMaps.put("modify_user_id", StpUtil.getLoginIdAsString()); + mdmModuleDao.updataTreeUpDataDetail(updateMaps); + + + } + + } + } + } + + } + } + + /** * @param jsonObject * @return boolean @@ -2923,20 +2962,15 @@ public class MdmServiceImpl implements IMdmService { } return flag; } - - /** - * @param str - * @return void - * @Author lvleigang - * @Description 校验字符串 - * @Date 11:41 上午 2022/12/7 - **/ - protected Boolean checkInt(Integer str) { - Boolean flag = true; - if (str == null) { - flag = false; - } - return flag; - } - + ///*** + // * 查询所有的字段根据表名称 + // * @content: + // * @author 👻👻👻👻👻👻👻👻 gjh + // * @date 2024-06-27 16:29 + // * @param + // * @return java.util.List + // **/ + //private List queryMdMFields(Map maps){ + // return mdmModuleDao.queryMdMFields(maps); + //} } diff --git a/service/src/main/java/com/hzya/frame/ningboBankTreasury/entity/NingboBankTreasuryEntity.java b/service/src/main/java/com/hzya/frame/ningboBankTreasury/entity/NingboBankTreasuryEntity.java new file mode 100644 index 00000000..aa72daf7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/ningboBankTreasury/entity/NingboBankTreasuryEntity.java @@ -0,0 +1,9 @@ +package com.hzya.frame.ningboBankTreasury.entity; + +import com.hzya.frame.web.entity.BaseEntity; + + +public class NingboBankTreasuryEntity extends BaseEntity { + +} + diff --git a/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/INingboBankTreasuryService.java b/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/INingboBankTreasuryService.java new file mode 100644 index 00000000..c8985f5d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/INingboBankTreasuryService.java @@ -0,0 +1,36 @@ +package com.hzya.frame.ningboBankTreasury.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface INingboBankTreasuryService { + + + + /** + * @Author lvleigang + * @Description 发送宁波银行 + * @Date 4:45 下午 2024/7/9 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + Object sendNbBank(JSONObject jsonObject); + + /** + * @Author lvleigang + * @Description 发送宁波银行下载文件 + * @Date 4:45 下午 2024/7/9 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + Object sendNbBankFileDownload(JSONObject jsonObject); + /** + * + * @content 此方法获取初始化参数,拼接请求参数 + * @author laborer + * @date 2024/5/27 0027 11:38 + * + */ + SysExtensionApiEntity doChangeData(SysExtensionApiEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/impl/NingboBankTreasuryServiceImpl.java b/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/impl/NingboBankTreasuryServiceImpl.java new file mode 100644 index 00000000..0b107a15 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/ningboBankTreasury/service/impl/NingboBankTreasuryServiceImpl.java @@ -0,0 +1,212 @@ +package com.hzya.frame.ningboBankTreasury.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.bip.v3.v2207.dps.service.impl.PayMentServiceImpl; +import com.hzya.frame.ningboBankTreasury.service.INingboBankTreasuryService; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity; +import com.hzya.frame.util.bipV3.SHA256Util; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.nbcb.sdk.OpenSDK; +import com.nbcb.sdk.aes.exception.SDKException; +import com.nbcb.sdk.aes.param.ConfigParam; +import com.nbcb.sdk.file.FileDownloadResponse; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import java.util.HashMap; +import java.util.Map; + + +@Service(value = "ningboBankTreasuryServiceImpl") +public class NingboBankTreasuryServiceImpl implements INingboBankTreasuryService { + private static final Logger logger = LoggerFactory.getLogger(NingboBankTreasuryServiceImpl.class); + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 单笔查证接口 + * @Date 4:45 下午 2024/7/9 + **/ + @Override + public Object sendNbBank(JSONObject jsonObject) { + JSONObject returnJson = new JSONObject(); + JSONObject entity = getstrObj("jsonStr", jsonObject); + String dataJson = entity.getString("Data"); + String appKey = entity.getString("appKey"); + String privateKey = entity.getString("privateKey"); + String publicUrl = entity.getString("publicUrl"); + String publicKey = entity.getString("publicKey"); + String productID = entity.getString("productID"); + String serviceID = entity.getString("serviceID"); + //初始化宁波银行OpenSDK + try { + ConfigParam configParam = new ConfigParam(privateKey,publicUrl,appKey,publicKey,10000,20000); + OpenSDK.dynamicInit(configParam,true); + } catch (SDKException e) { + logger.error("初始化宁波银行OpenSDK错误:{}",e.getMessage()); + returnJson.put("retCode","9999"); + returnJson.put("retMsg","初始化宁波银行OpenSDK错误"); + return returnJson; + } + //发送数据 + try { + String returnData = OpenSDK.send(productID,serviceID,dataJson.replace(" ","")); + if(returnData == null || "".equals(returnData)){ + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK返回错误"); + return returnJson; + } + try { + returnJson = JSONObject.parseObject(returnData); + JSONObject retData = returnJson.getJSONObject("Data"); + String retCode = retData.getString("retCode"); + String retMsg = retData.getString("retMsg"); + returnJson.put("retCode",retCode); + returnJson.put("retMsg",retMsg); + return returnJson; + } catch (Exception e) { + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK返回转换Json错误"); + return returnJson; + } + } catch (Exception e) { + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK错误"); + return returnJson; + } + } + + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 发送宁波银行下载文件 + * + * @Date 4:45 下午 2024/7/9 + **/ + @Override + public Object sendNbBankFileDownload(JSONObject jsonObject) { + JSONObject returnJson = new JSONObject(); + JSONObject entity = getstrObj("jsonStr", jsonObject); + String dataJson = entity.getString("Data"); + JSONObject data = JSONObject.parseObject(dataJson); + JSONObject dataFileid = data.getJSONObject("Data"); + String appKey = entity.getString("appKey"); + String privateKey = entity.getString("privateKey"); + String publicUrl = entity.getString("publicUrl"); + String publicKey = entity.getString("publicKey"); + String productID = entity.getString("productID"); + String serviceID = entity.getString("serviceID"); + //初始化宁波银行OpenSDK + try { + ConfigParam configParam = new ConfigParam(privateKey,publicUrl,appKey,publicKey,10000,20000); + OpenSDK.dynamicInit(configParam,true); + } catch (SDKException e) { + logger.error("初始化宁波银行OpenSDK错误:{}",e.getMessage()); + returnJson.put("retCode","9999"); + returnJson.put("retMsg","初始化宁波银行OpenSDK错误"); + return returnJson; + } + //发送数据 + try { + FileDownloadResponse returnData = OpenSDK.sendFileDownload(productID,"open-filegateway",dataFileid.getString("fileId"),null); + if(returnData == null || "".equals(returnData)){ + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK返回错误"); + return returnJson; + } + try { + + //returnJson = JSONObject.parseObject(returnData); + //JSONObject retData = returnJson.getJSONObject("Data"); + String retCode = returnData.getRetCode(); + String retMsg = returnData.getRetMsg(); + returnJson.put("data",returnData.getData()); + returnJson.put("retCode",retCode); + returnJson.put("retMsg",retMsg); + return returnJson; + } catch (Exception e) { + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK返回转换Json错误"); + return returnJson; + } + } catch (Exception e) { + returnJson.put("retCode","9999"); + returnJson.put("retMsg","发送宁波银行OpenSDK错误"); + return returnJson; + } + } + + /** + * @param entity + * @content 此方法获取初始化参数,拼接请求参数 + * @author laborer + * @date 2024/5/27 0027 11:38 + */ + @Override + public SysExtensionApiEntity doChangeData(SysExtensionApiEntity entity) { + try { + if(entity == null ){ + return entity; + } + Map returnHeaders = new HashMap<>(); + JSONObject returnDataData = new JSONObject(); + JSONObject returnData = new JSONObject(); + Map headers = entity.getHeaders(); + String bodys = entity.getBodys(); + JSONObject data = JSONObject.parseObject(bodys); + + //先处理转发请求header + returnHeaders.put("yatl",headers.get("yatl")); + returnHeaders.put("yadj",headers.get("yadj")); + + returnDataData.put("appKey",headers.get("appKey")); + returnDataData.put("privateKey",headers.get("privateKey")); + returnDataData.put("publicUrl",headers.get("publicUrl")); + returnDataData.put("publicKey",headers.get("publicKey")); + returnDataData.put("productID",headers.get("productID")); + returnDataData.put("serviceID",headers.get("serviceID")); + data.put("custId",headers.get("custId")); + returnData.put("Data",data); + returnDataData.put("Data",returnData); + entity.setHeaders(returnHeaders); + entity.setBodys(returnDataData.toJSONString()); + } catch (Exception e) { + //发送内部处理方法错误 + logger.error("宁波银行内部转换接口错误:{}",e.getMessage()); + } + return entity; + } + + + + + public JSONObject getstrObj(String key, JSONObject object) { + if (checkStr(object.getString(key)) ) { + return object.getJSONObject(key); + } + return new JSONObject(); + } + /** + * @param str + * @return void + * @Author lvleigang + * @Description 校验字符串 + * @Date 11:41 上午 2022/12/7 + **/ + protected Boolean checkStr(String str) { + Boolean flag = true; + if (str == null || "".equals(str)) { + flag = false; + } + return flag; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/IReportAccreditDao.java b/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/IReportAccreditDao.java new file mode 100644 index 00000000..f5e31363 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/IReportAccreditDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.report.reportAccredit.dao; + +import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 报表授权表(report_accredit: table)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:02:11 + */ +public interface IReportAccreditDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/impl/ReportAccreditDaoImpl.java b/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/impl/ReportAccreditDaoImpl.java new file mode 100644 index 00000000..62bb8b33 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/dao/impl/ReportAccreditDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.report.reportAccredit.dao.impl; + +import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity; +import com.hzya.frame.report.reportAccredit.dao.IReportAccreditDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 报表授权表(ReportAccredit)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:02:11 + */ +@Repository(value = "ReportAccreditDaoImpl") +public class ReportAccreditDaoImpl extends MybatisGenericDao implements IReportAccreditDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.java b/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.java new file mode 100644 index 00000000..4f987973 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.java @@ -0,0 +1,55 @@ +package com.hzya.frame.report.reportAccredit.entity; + +import com.hzya.frame.web.entity.BaseEntity; +/** + * 报表授权表(ReportAccredit)实体类 + * + * @author makejava + * @since 2024-05-21 15:02:12 + */ +public class ReportAccreditEntity extends BaseEntity { + + /** 权限赋予对象id */ + private String objectId; + /** 报表ID */ + private String reportId; + /** 权限类型(1、应用2、人员) */ + private String kindId; + /** 公司id */ + private String companyId; + + + public String getObjectId() { + return objectId; + } + + public void setObjectId(String objectId) { + this.objectId = objectId; + } + + public String getReportId() { + return reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getKindId() { + return kindId; + } + + public void setKindId(String kindId) { + this.kindId = kindId; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.xml b/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.xml new file mode 100644 index 00000000..6167bee9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/entity/ReportAccreditEntity.xml @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + id + ,object_id + ,report_id + ,kind_id + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + + insert into report_accredit( + + id , + object_id , + report_id , + kind_id , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{objectId} , + #{reportId} , + #{kindId} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into report_accredit(id, object_id, report_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.id},#{entity.objectId},#{entity.reportId},#{entity.kindId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into report_accredit(id, object_id, report_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.id},#{entity.objectId},#{entity.reportId},#{entity.kindId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + id = values(id), + object_id = values(object_id), + report_id = values(report_id), + kind_id = values(kind_id), + sorts = values(sorts), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update report_accredit set + + id = #{id}, + object_id = #{objectId}, + report_id = #{reportId}, + kind_id = #{kindId}, + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where = #{id} + + + +update report_accredit set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where = #{id} + + + +update report_accredit set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and object_id = #{objectId} + and report_id = #{reportId} + and kind_id = #{kindId} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from report_accredit where = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/service/IReportAccreditService.java b/service/src/main/java/com/hzya/frame/report/reportAccredit/service/IReportAccreditService.java new file mode 100644 index 00000000..be6686de --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/service/IReportAccreditService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.report.reportAccredit.service; + +import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 报表授权表(ReportAccredit)表服务接口 + * + * @author makejava + * @since 2024-05-21 15:02:12 + */ +public interface IReportAccreditService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/report/reportAccredit/service/impl/ReportAccreditServiceImpl.java b/service/src/main/java/com/hzya/frame/report/reportAccredit/service/impl/ReportAccreditServiceImpl.java new file mode 100644 index 00000000..066659be --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportAccredit/service/impl/ReportAccreditServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.report.reportAccredit.service.impl; + +import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity; +import com.hzya.frame.report.reportAccredit.dao.IReportAccreditDao; +import com.hzya.frame.report.reportAccredit.service.IReportAccreditService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 报表授权表(ReportAccredit)表服务实现类 + * + * @author makejava + * @since 2024-05-21 15:02:12 + */ +@Service(value = "reportAccreditService") +public class ReportAccreditServiceImpl extends BaseService implements IReportAccreditService { + + private IReportAccreditDao reportAccreditDao; + + @Autowired + public void setReportAccreditDao(IReportAccreditDao dao) { + this.reportAccreditDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/dao/IReportClassifyDao.java b/service/src/main/java/com/hzya/frame/report/reportClassify/dao/IReportClassifyDao.java new file mode 100644 index 00000000..c861046c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/dao/IReportClassifyDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.report.reportClassify.dao; + +import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 报表分类表(report_classify: table)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:03:14 + */ +public interface IReportClassifyDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/dao/impl/ReportClassifyDaoImpl.java b/service/src/main/java/com/hzya/frame/report/reportClassify/dao/impl/ReportClassifyDaoImpl.java new file mode 100644 index 00000000..48fa3d1a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/dao/impl/ReportClassifyDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.report.reportClassify.dao.impl; + +import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity; +import com.hzya.frame.report.reportClassify.dao.IReportClassifyDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 报表分类表(ReportClassify)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:03:14 + */ +@Repository(value = "ReportClassifyDaoImpl") +public class ReportClassifyDaoImpl extends MybatisGenericDao implements IReportClassifyDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.java b/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.java new file mode 100644 index 00000000..4fa0e714 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.java @@ -0,0 +1,84 @@ +package com.hzya.frame.report.reportClassify.entity; + +import java.util.Date; +import java.util.List; + +import com.hzya.frame.sysnew.organ.entity.SysOrganEntity; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 报表分类表(ReportClassify)实体类 + * + * @author makejava + * @since 2024-05-21 15:03:14 + */ +public class ReportClassifyEntity extends BaseEntity { + + /** 编码 */ + private String code; + /** 名称 */ + private String name; + /** 上级id */ + private String parentId; + private String parentName; + /** 公司id */ + private String companyId; + private List children; + + private String label; + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public List getChildren() { + return children; + } + + public void setChildren(List children) { + this.children = children; + } + + public String getParentName() { + return parentName; + } + + public void setParentName(String parentName) { + this.parentName = parentName; + } +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.xml b/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.xml new file mode 100644 index 00000000..cfb9b530 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/entity/ReportClassifyEntity.xml @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + id + ,code + ,name + ,parent_id + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + insert into report_classify( + + id , + code , + name , + parent_id , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{code} , + #{name} , + #{parentId} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into report_classify(id, code, name, parent_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.id},#{entity.code},#{entity.name},#{entity.parentId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into report_classify(id, code, name, parent_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.id},#{entity.code},#{entity.name},#{entity.parentId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + id = values(id), + code = values(code), + name = values(name), + parent_id = values(parent_id), + sorts = values(sorts), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update report_classify set + + id = #{id}, + code = #{code}, + name = #{name}, + parent_id = #{parentId}, + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where = #{id} + + + +update report_classify set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where = #{id} + + + +update report_classify set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and code = #{code} + and name = #{name} + and parent_id = #{parentId} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from report_classify where = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/service/IReportClassifyService.java b/service/src/main/java/com/hzya/frame/report/reportClassify/service/IReportClassifyService.java new file mode 100644 index 00000000..3c3b645a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/service/IReportClassifyService.java @@ -0,0 +1,65 @@ +package com.hzya.frame.report.reportClassify.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * 报表分类表(ReportClassify)表服务接口 + * + * @author makejava + * @since 2024-05-21 15:03:14 + */ +public interface IReportClassifyService extends IBaseService{ + + /** + * @Author lvleigang + * @Description 查询分类树 + * @Date 3:14 下午 2024/5/21 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity queryEntityTree(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 保存分类 + * @Date 3:16 下午 2024/5/21 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity saveEntity(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 获取分类 + * @Date 3:16 下午 2024/5/21 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity getEntity(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 修改分类 + * @Date 3:16 下午 2024/5/21 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateEntity(JSONObject jsonObject); + + + /** + * @Author lvleigang + * @Description 删除分类 + * @Date 3:16 下午 2024/5/21 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity deleteEntity(JSONObject jsonObject); + +} diff --git a/service/src/main/java/com/hzya/frame/report/reportClassify/service/impl/ReportClassifyServiceImpl.java b/service/src/main/java/com/hzya/frame/report/reportClassify/service/impl/ReportClassifyServiceImpl.java new file mode 100644 index 00000000..aa57d7c2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportClassify/service/impl/ReportClassifyServiceImpl.java @@ -0,0 +1,230 @@ +package com.hzya.frame.report.reportClassify.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity; +import com.hzya.frame.report.reportClassify.dao.IReportClassifyDao; +import com.hzya.frame.report.reportClassify.service.IReportClassifyService; +import com.hzya.frame.report.reportManage.dao.IReportManageDao; +import com.hzya.frame.report.reportManage.entity.ReportManageEntity; +import com.hzya.frame.sysnew.organ.entity.SysOrganEntity; +import com.hzya.frame.sysnew.person.entity.SysPersonEntity; +import com.hzya.frame.sysnew.userCompany.entity.SysUserCompanyEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; + +import javax.annotation.Resource; + +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.ArrayList; +import java.util.List; + +/** + * 报表分类表(ReportClassify)表服务实现类 + * + * @author makejava + * @since 2024-05-21 15:03:14 + */ +@Service(value = "reportClassifyService") +public class ReportClassifyServiceImpl extends BaseService implements IReportClassifyService { + + private IReportClassifyDao reportClassifyDao; + + @Resource + private IReportManageDao reportManageDao; + @Autowired + public void setReportClassifyDao(IReportClassifyDao dao) { + this.reportClassifyDao = dao; + this.dao = dao; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询分类树 + * @Date 3:14 下午 2024/5/21 + **/ + @Override + public JsonResultEntity queryEntityTree(JSONObject jsonObject) { + ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class); + if (entity == null) { + entity = new ReportClassifyEntity(); + } + List returnEntity = new ArrayList<>(); + //查询符合条件的组织数据 + List reportClassifyEntities = reportClassifyDao.queryByLike(entity); + if (reportClassifyEntities == null || reportClassifyEntities.size() == 0) { + ReportClassifyEntity first = new ReportClassifyEntity(); + first.setCode("1"); + first.setName("系统"); + first.setParentId("0"); + first.setCreate(); + reportClassifyDao.save(first); + reportClassifyEntities = new ArrayList<>(); + reportClassifyEntities.add(first); + } + if (reportClassifyEntities != null && reportClassifyEntities.size() > 0) { + for (int i = 0; i < reportClassifyEntities.size(); i++) { + if ("0".equals(reportClassifyEntities.get(i).getParentId())) { + recursiveSetTree(reportClassifyEntities.get(i), reportClassifyEntities); + reportClassifyEntities.get(i).setLabel("(" + reportClassifyEntities.get(i).getCode() + ")" + reportClassifyEntities.get(i).getName()); + returnEntity.add(reportClassifyEntities.get(i)); + } + } + } + return BaseResult.getSuccessMessageEntity("查询组织树成功", returnEntity); + } + + /** + * @param reportClassifyEntity + * @param reportClassifyEntityList + * @return void + * @Author lvleigang + * @Description 递归设置树 + * @Date 9:19 上午 2024/3/28 + **/ + private void recursiveSetTree(ReportClassifyEntity reportClassifyEntity, List reportClassifyEntityList) { + List children = new ArrayList<>(); + for (int i = 0; i < reportClassifyEntityList.size(); i++) { + if (reportClassifyEntityList.get(i).getParentId() != null && !"".equals(reportClassifyEntityList.get(i).getParentId())) { + if (reportClassifyEntity.getId().equals(reportClassifyEntityList.get(i).getParentId())) { + reportClassifyEntityList.get(i).setLabel("(" + reportClassifyEntityList.get(i).getCode() + ")" + reportClassifyEntityList.get(i).getName()); + children.add(reportClassifyEntityList.get(i)); + recursiveSetTree(reportClassifyEntityList.get(i), reportClassifyEntityList); + } + } + } + reportClassifyEntity.setChildren(children); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存分类 + * @Date 3:16 下午 2024/5/21 + **/ + @Override + public JsonResultEntity saveEntity(JSONObject jsonObject) { + ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getCode() == null || "".equals(entity.getCode())) { + return BaseResult.getFailureMessageEntity("请先输入编码"); + } + if (entity.getName() == null || "".equals(entity.getName())) { + return BaseResult.getFailureMessageEntity("请先输入名称"); + } + if (entity.getParentId() == null || "".equals(entity.getParentId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setCreate(); + //保存 + reportClassifyDao.save(entity); + return BaseResult.getSuccessMessageEntity("保存分类成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取分类 + * @Date 3:16 下午 2024/5/21 + **/ + @Override + public JsonResultEntity getEntity(JSONObject jsonObject) { + ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = reportClassifyDao.get(entity.getId()); + if (entity == null) { + return BaseResult.getFailureMessageEntity("获取组织失败"); + } + if (entity.getParentId() != null && !"0".equals(entity.getParentId())) { + ReportClassifyEntity parentEntity = reportClassifyDao.get(entity.getParentId()); + if (entity != null) { + entity.setParentName(parentEntity.getName()); + } + } + return BaseResult.getSuccessMessageEntity("获取分类成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 修改分类 + * @Date 3:16 下午 2024/5/21 + **/ + @Override + public JsonResultEntity updateEntity(JSONObject jsonObject) { + ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getName() == null || "".equals(entity.getName())) { + return BaseResult.getFailureMessageEntity("请先输入名称"); + } + if (entity.getCode() == null || "".equals(entity.getCode())) { + return BaseResult.getFailureMessageEntity("请先输入编码"); + } + if (entity.getParentId() == null || "".equals(entity.getParentId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + //保存 + reportClassifyDao.update(entity); + return BaseResult.getSuccessMessageEntity("修改分类成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除分类 + * @Date 3:16 下午 2024/5/21 + **/ + @Override + public JsonResultEntity deleteEntity(JSONObject jsonObject) { + ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (!checkUse(entity)) { + return BaseResult.getFailureMessageEntity("当前组织已经使用,不允许删除"); + } + entity.setUpdate(); + reportClassifyDao.logicRemove(entity); + return BaseResult.getSuccessMessageEntity("删除分类成功"); + } + + /** + * @Author lvleigang + * @Description 校验分类下面是否有配置报表 + * @Date 3:27 下午 2024/3/27 + * @param entity + * @return boolean + **/ + private boolean checkUse(ReportClassifyEntity entity) { + ReportManageEntity reportManageEntity = new ReportManageEntity(); + reportManageEntity.setClassifyId(entity.getId()); + if(reportManageDao.getCount(reportManageEntity) > 0){ + return false; + } + return true; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/dao/IReportManageDao.java b/service/src/main/java/com/hzya/frame/report/reportManage/dao/IReportManageDao.java new file mode 100644 index 00000000..f341d8b6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/dao/IReportManageDao.java @@ -0,0 +1,23 @@ +package com.hzya.frame.report.reportManage.dao; + +import com.hzya.frame.report.reportManage.entity.JimuReportEntity; +import com.hzya.frame.report.reportManage.entity.ReportManageEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +import java.util.List; + +/** + * 报表管理表(report_manage: table)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +public interface IReportManageDao extends IBaseDao { + + List queryByLikeClassify(ReportManageEntity entity); + + List queryReportNotUse(JimuReportEntity entity); + + JimuReportEntity queryReportEntity(JimuReportEntity entity); +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/dao/impl/ReportManageDaoImpl.java b/service/src/main/java/com/hzya/frame/report/reportManage/dao/impl/ReportManageDaoImpl.java new file mode 100644 index 00000000..e29d77af --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/dao/impl/ReportManageDaoImpl.java @@ -0,0 +1,39 @@ +package com.hzya.frame.report.reportManage.dao.impl; + +import com.hzya.frame.report.reportManage.entity.JimuReportEntity; +import com.hzya.frame.report.reportManage.entity.ReportManageEntity; +import com.hzya.frame.report.reportManage.dao.IReportManageDao; +import com.hzya.frame.sysnew.user.entity.SysUserEntity; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + +/** + * 报表管理表(ReportManage)表数据库访问层 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +@Repository(value = "ReportManageDaoImpl") +public class ReportManageDaoImpl extends MybatisGenericDao implements IReportManageDao{ + + @Override + public List queryByLikeClassify(ReportManageEntity entity) { + List o = super.query(getSqlIdPrifx() + "queryByLikeClassify", entity); + return o; + } + + @Override + public List queryReportNotUse(JimuReportEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryReportNotUse", entity); + return o; + } + + @Override + public JimuReportEntity queryReportEntity(JimuReportEntity entity) { + JimuReportEntity o = (JimuReportEntity) super.selectOne(getSqlIdPrifx() + "queryReportEntity", entity); + return o; + } +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/entity/JimuReportEntity.java b/service/src/main/java/com/hzya/frame/report/reportManage/entity/JimuReportEntity.java new file mode 100644 index 00000000..0be36031 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/entity/JimuReportEntity.java @@ -0,0 +1,45 @@ +package com.hzya.frame.report.reportManage.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * 积木报表jimu_report 实体类 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +public class JimuReportEntity extends BaseEntity { + + /** 编码 */ + private String code; + /** 名称 */ + private String name; + /** 删除标识0-正常,1-已删除 */ + private String delFlag; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDelFlag() { + return delFlag; + } + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.java b/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.java new file mode 100644 index 00000000..ac8ea700 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.java @@ -0,0 +1,85 @@ +package com.hzya.frame.report.reportManage.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 报表管理表(ReportManage)实体类 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +public class ReportManageEntity extends BaseEntity { + + /** 报表ID */ + private String reportId; + /** 报表名称 */ + private String reportName; + /** 类别id */ + private String classifyId; + /** 类别名称 */ + private String classifyName; + /** 预览地址 */ + private String previewAddress; + /** 状态: 0启用 1 停用 */ + private String state; + /** 公司id */ + private String companyId; + + + public String getReportId() { + return reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public String getClassifyId() { + return classifyId; + } + + public void setClassifyId(String classifyId) { + this.classifyId = classifyId; + } + + public String getPreviewAddress() { + return previewAddress; + } + + public void setPreviewAddress(String previewAddress) { + this.previewAddress = previewAddress; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getClassifyName() { + return classifyName; + } + + public void setClassifyName(String classifyName) { + this.classifyName = classifyName; + } +} + diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.xml b/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.xml new file mode 100644 index 00000000..05ad5f7f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/entity/ReportManageEntity.xml @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + id + ,report_id + ,report_name + ,classify_id + ,preview_address + ,state + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + insert into report_manage( + + id , + report_id , + report_name , + classify_id , + preview_address , + state , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{reportId} , + #{reportName} , + #{classifyId} , + #{previewAddress} , + #{state} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into report_manage(id, report_id, report_name, classify_id, preview_address, state, sorts, + create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.id},#{entity.reportId},#{entity.reportName},#{entity.classifyId},#{entity.previewAddress},#{entity.state},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + 'Y') + + + + + insert into report_manage(id, report_id, report_name, classify_id, preview_address, state, sorts, + create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.id},#{entity.reportId},#{entity.reportName},#{entity.classifyId},#{entity.previewAddress},#{entity.state},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + id = values(id), + report_id = values(report_id), + report_name = values(report_name), + classify_id = values(classify_id), + preview_address = values(preview_address), + state = values(state), + sorts = values(sorts), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + + + update report_manage set + + id = #{id}, + report_id = #{reportId}, + report_name = #{reportName}, + classify_id = #{classifyId}, + preview_address = #{previewAddress}, + state = #{state}, + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + + where = #{id} + + + +update report_manage set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where = #{id} + + + + update report_manage set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and report_id = #{reportId} + and report_name = #{reportName} + and classify_id = #{classifyId} + and preview_address = #{previewAddress} + and state = #{state} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from report_manage where = #{id} + + + + + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/service/IReportManageService.java b/service/src/main/java/com/hzya/frame/report/reportManage/service/IReportManageService.java new file mode 100644 index 00000000..2341a294 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/service/IReportManageService.java @@ -0,0 +1,116 @@ +package com.hzya.frame.report.reportManage.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.report.reportManage.entity.ReportManageEntity; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * 报表管理表(ReportManage)表服务接口 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +public interface IReportManageService extends IBaseService{ + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表管理列表分页 + * @Date 11:52 上午 2024/3/27 + **/ + JsonResultEntity queryEntityPage(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表管理列表 + * @Date 11:52 上午 2024/3/27 + **/ + JsonResultEntity queryEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存报表管理 + * @Date 2:36 下午 2024/3/27 + **/ + JsonResultEntity saveEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询未配置的报表 + * @Date 2:36 下午 2024/3/27 + **/ + JsonResultEntity queryReport(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询单个报表 + * @Date 2:36 下午 2024/3/27 + **/ + JsonResultEntity queryReportEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取报表管理 + * @Date 2:36 下午 2024/3/27 + **/ + JsonResultEntity getEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 修改报表管理 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity updateEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除报表管理 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity deleteEntity(JSONObject jsonObject); + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 启用停用报表管理 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity enableDisableEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 报表管理权限查询 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity jurisdiction(JSONObject jsonObject); + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存报表管理权限查询 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity saveJurisdiction(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/report/reportManage/service/impl/ReportManageServiceImpl.java b/service/src/main/java/com/hzya/frame/report/reportManage/service/impl/ReportManageServiceImpl.java new file mode 100644 index 00000000..eccc4f7a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/reportManage/service/impl/ReportManageServiceImpl.java @@ -0,0 +1,291 @@ +package com.hzya.frame.report.reportManage.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.report.reportManage.dao.IReportManageDao; +import com.hzya.frame.report.reportManage.entity.JimuReportEntity; +import com.hzya.frame.report.reportManage.entity.ReportManageEntity; +import com.hzya.frame.report.reportManage.service.IReportManageService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 报表管理表(ReportManage)表服务实现类 + * + * @author makejava + * @since 2024-05-21 15:04:12 + */ +@Service(value = "reportManageService") +public class ReportManageServiceImpl extends BaseService implements IReportManageService { + + private IReportManageDao reportManageDao; + + @Autowired + public void setReportManageDao(IReportManageDao dao) { + this.reportManageDao = dao; + this.dao = dao; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表列表分页 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public JsonResultEntity queryEntityPage(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = reportManageDao.queryByLikeClassify(entity); + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表列表 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public JsonResultEntity queryEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + entity = new ReportManageEntity(); + } + List list = reportManageDao.queryByLike(entity); + return BaseResult.getSuccessMessageEntity("查询数据成功", list); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存报表 + * @Date 2:36 下午 2024/3/27 + **/ + @Override + public JsonResultEntity saveEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getReportId() == null || "".equals(entity.getReportId())) { + return BaseResult.getFailureMessageEntity("请先选择报表"); + } + if (entity.getReportName() == null || "".equals(entity.getReportName())) { + return BaseResult.getFailureMessageEntity("请先输入报表名称"); + } + if (entity.getClassifyId() == null || "".equals(entity.getClassifyId())) { + return BaseResult.getFailureMessageEntity("请先选择分类"); + } + if (entity.getPreviewAddress() == null || "".equals(entity.getPreviewAddress())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setState("0"); + if (!checkIsUse(entity)) { + return BaseResult.getFailureMessageEntity("当前报表已经配置,请勿重复配置"); + } + entity.setCreate(); + //保存 + reportManageDao.save(entity); + return BaseResult.getSuccessMessageEntity("保存报表成功", entity); + } + + + private boolean checkIsUse(ReportManageEntity entity) { + ReportManageEntity checkUse = new ReportManageEntity(); + checkUse.setReportId(entity.getReportId()); + return reportManageDao.getCount(checkUse) <= 0; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取报表 + * @Date 2:36 下午 2024/3/27 + **/ + @Override + public JsonResultEntity getEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = reportManageDao.get(entity.getId()); + if (entity == null) { + return BaseResult.getFailureMessageEntity("获取报表失败"); + } + return BaseResult.getSuccessMessageEntity("获取报表成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 修改报表 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity updateEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getReportId() == null || "".equals(entity.getReportId())) { + return BaseResult.getFailureMessageEntity("请先选择报表"); + } + if (entity.getReportName() == null || "".equals(entity.getReportName())) { + return BaseResult.getFailureMessageEntity("请先输入报表名称"); + } + if (entity.getClassifyId() == null || "".equals(entity.getClassifyId())) { + return BaseResult.getFailureMessageEntity("请先选择分类"); + } + if (entity.getPreviewAddress() == null || "".equals(entity.getPreviewAddress())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + //保存 + reportManageDao.update(entity); + return BaseResult.getSuccessMessageEntity("修改报表成功"); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除报表 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity deleteEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + reportManageDao.logicRemove(entity); + return BaseResult.getSuccessMessageEntity("删除报表成功"); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 启用停用报表 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity enableDisableEntity(JSONObject jsonObject) { + ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getState() == null || "".equals(entity.getState())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + reportManageDao.update(entity); + //0启用 1 停用 + if ("0".equals(entity.getState())) { + return BaseResult.getSuccessMessageEntity("启用用户成功"); + } else { + return BaseResult.getSuccessMessageEntity("停用用户成功"); + } + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表 + * @Date 2:36 下午 2024/3/27 + **/ + @Override + public JsonResultEntity queryReport(JSONObject jsonObject) { + JimuReportEntity entity = getData("jsonStr", jsonObject, JimuReportEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = reportManageDao.queryReportNotUse(entity); + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询报表 + * @Date 2:36 下午 2024/3/27 + **/ + @Override + public JsonResultEntity queryReportEntity(JSONObject jsonObject) { + JimuReportEntity entity = getData("jsonStr", jsonObject, JimuReportEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = reportManageDao.queryReportEntity(entity); + if (entity == null) { + return BaseResult.getFailureMessageEntity("获取报表失败"); + } + return BaseResult.getSuccessMessageEntity("获取报表成功", entity); + + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 权限查询 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity jurisdiction(JSONObject jsonObject) { + + + return null; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存权限查询 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity saveJurisdiction(JSONObject jsonObject) { + + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDTO.java new file mode 100644 index 00000000..e9fe54b8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDTO.java @@ -0,0 +1,74 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +import java.util.List; + +/** + * @Description 无流程表单批量保存请求参数 + * @Author xiangerlin + * @Date 2024/1/8 11:18 + **/ +public class FormDTO { + @JSONField(ordinal = 4) + private String formCode;//模版编号 + @JSONField(ordinal = 5) + private String loginName;//模版编号 + @JSONField(ordinal = 2) + private String rightId;//权限id,找到无流程表单,点新增,弹出的窗口上会有这个参数 + @JSONField(ordinal = 3) + private List dataList;//导入的数据 + @JSONField(ordinal = 1) + private String[] uniqueFiled;//更新用的唯一标识 + @JSONField(ordinal = 6) + private Boolean doTrigger;//是否执行触发(Since V8.0sp2),测试中发现传了这个参数会报错 + + public String getFormCode() { + return formCode; + } + + public void setFormCode(String formCode) { + this.formCode = formCode; + } + + public String getLoginName() { + return loginName; + } + + public void setLoginName(String loginName) { + this.loginName = loginName; + } + + public String getRightId() { + return rightId; + } + + public void setRightId(String rightId) { + this.rightId = rightId; + } + + public List getDataList() { + return dataList; + } + + public void setDataList(List dataList) { + this.dataList = dataList; + } + + public String[] getUniqueFiled() { + return uniqueFiled; + } + + public void setUniqueFiled(String[] uniqueFiled) { + this.uniqueFiled = uniqueFiled; + } + + public Boolean getDoTrigger() { + return doTrigger; + } + + public void setDoTrigger(Boolean doTrigger) { + this.doTrigger = doTrigger; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDataDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDataDTO.java new file mode 100644 index 00000000..b69031d6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/FormDataDTO.java @@ -0,0 +1,36 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +import java.util.List; + +/** + * @Description dataList节点 + * @Author xiangerlin + * @Date 2024/1/8 11:26 + **/ +public class FormDataDTO { + @JSONField(ordinal = 1) + private MasterTableDTO masterTable;//主表数据 + @JSONField(ordinal = 2) + private List subTables;//子表数据 + + //private List<> attachmentInfos;//附件列表 + + public MasterTableDTO getMasterTable() { + return masterTable; + } + + public void setMasterTable(MasterTableDTO masterTable) { + this.masterTable = masterTable; + } + + public List getSubTables() { + return subTables; + } + + public void setSubTables(List subTables) { + this.subTables = subTables; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/MasterTableDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/MasterTableDTO.java new file mode 100644 index 00000000..56f5f9fb --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/MasterTableDTO.java @@ -0,0 +1,45 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +import java.util.List; + +/** + * @Description 主表数据 + * @Author xiangerlin + * @Date 2024/1/8 11:29 + **/ + +public class MasterTableDTO { + @JSONField(ordinal = 1) + private String name;//表名 + @JSONField(ordinal = 2) + private RecordDTO record;//数据 + @JSONField(ordinal = 3) + private List changedFields;//需要计算的字段 + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RecordDTO getRecord() { + return record; + } + + public void setRecord(RecordDTO record) { + this.record = record; + } + + public List getChangedFields() { + return changedFields; + } + + public void setChangedFields(List changedFields) { + this.changedFields = changedFields; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordDTO.java new file mode 100644 index 00000000..cc3857e0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordDTO.java @@ -0,0 +1,34 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +import java.util.List; + +/** + * @Description record节点 + * @Author xiangerlin + * @Date 2024/1/8 11:31 + **/ +public class RecordDTO { + @JSONField(ordinal = 1) + private long id;//数据id,测试中发现新增时这个参数随便填写 不影响导入 + @JSONField(ordinal = 2) + private List fields;//字段列表 + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public List getFields() { + return fields; + } + + public void setFields(List fields) { + this.fields = fields; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordFieldDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordFieldDTO.java new file mode 100644 index 00000000..a2bfa15b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/RecordFieldDTO.java @@ -0,0 +1,52 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +/** + * @Description masterTable—record—fields的结构 + * @Author xiangerlin + * @Date 2024/1/8 11:32 + **/ +public class RecordFieldDTO { + @JSONField(ordinal = 1) + private String name;//数据域名称 ,fieldxxxx + @JSONField(ordinal = 2) + private String value;//数据值(优先) + @JSONField(ordinal = 3) + private String showValue;//显示值 + + public RecordFieldDTO() { + + } + + public RecordFieldDTO(String name, String value, String showValue) { + this.name = name; + this.value = value; + this.showValue = showValue; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getShowValue() { + return showValue; + } + + public void setShowValue(String showValue) { + this.showValue = showValue; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/SubTableDTO.java b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/SubTableDTO.java new file mode 100644 index 00000000..8d5e5226 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cap4/form/dto/SubTableDTO.java @@ -0,0 +1,9 @@ +package com.hzya.frame.seeyon.cap4.form.dto; + +/** + * @Description 子表数据 + * @Author xiangerlin + * @Date 2024/1/8 11:29 + **/ +public class SubTableDTO { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDao.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDao.java new file mode 100644 index 00000000..5336cd91 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDao.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.cbs8.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; + +/** + * @Description 代发代扣 + * @Author xiangerlin + * @Date 2024/6/26 10:50 + **/ +public interface IAgentPaymentDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDetailDao.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDetailDao.java new file mode 100644 index 00000000..96895bb4 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IAgentPaymentDetailDao.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.cbs8.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; + +/** + * @Description 代发代扣明细 + * @Author xiangerlin + * @Date 2024/6/26 10:54 + **/ +public interface IAgentPaymentDetailDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ICbsLogDao.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ICbsLogDao.java new file mode 100644 index 00000000..032d1a3e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ICbsLogDao.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.cbs8.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; + +/** + * @Description cbs8支付日志 + * @Author xiangerlin + * @Date 2024/6/14 17:30 + **/ +public interface ICbsLogDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IPaymentDao.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IPaymentDao.java new file mode 100644 index 00000000..c8a18848 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/IPaymentDao.java @@ -0,0 +1,10 @@ +package com.hzya.frame.seeyon.cbs8.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; + +/** + * oa集成cbs + */ +public interface IPaymentDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ITransactionDetailDao.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ITransactionDetailDao.java new file mode 100644 index 00000000..37cf015a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/ITransactionDetailDao.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.cbs8.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.cbs8.entity.TransactionDetailEntity; + +/** + * @Description cbs交易明细 oa底表 + * @Author xiangerlin + * @Date 2024/6/24 11:10 + **/ +public interface ITransactionDetailDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDaoImpl.java new file mode 100644 index 00000000..5b2e3852 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDaoImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.seeyon.cbs8.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.cbs8.dao.IAgentPaymentDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/26 10:51 + **/ +@Repository("OAAgentPaymentDaoImpl") +public class AgentPaymentDaoImpl extends MybatisGenericDao implements IAgentPaymentDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDetailDaoImpl.java new file mode 100644 index 00000000..2b873067 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/AgentPaymentDetailDaoImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.seeyon.cbs8.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.cbs8.dao.IAgentPaymentDetailDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/26 10:55 + **/ +@Repository("OAAgentPaymentDetailDaoImpl") +public class AgentPaymentDetailDaoImpl extends MybatisGenericDao implements IAgentPaymentDetailDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/CbsLogDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/CbsLogDaoImpl.java new file mode 100644 index 00000000..a42437b0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/CbsLogDaoImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.seeyon.cbs8.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.cbs8.dao.ICbsLogDao; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/14 17:31 + **/ +@Repository() +public class CbsLogDaoImpl extends MybatisGenericDao implements ICbsLogDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/PaymentDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/PaymentDaoImpl.java new file mode 100644 index 00000000..f2744983 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/PaymentDaoImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.seeyon.cbs8.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.cbs8.dao.IPaymentDao; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description oa集成cbs + * @Author xiangerlin + * @Date 2024/6/6 16:28 + **/ +@Repository("OAPaymentDaoImpl") +public class PaymentDaoImpl extends MybatisGenericDao implements IPaymentDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/TransactionDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/TransactionDetailDaoImpl.java new file mode 100644 index 00000000..e4fb1bac --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/dao/impl/TransactionDetailDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.seeyon.cbs8.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.cbs8.dao.IPaymentDao; +import com.hzya.frame.seeyon.cbs8.dao.ITransactionDetailDao; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.cbs8.entity.TransactionDetailEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/24 11:10 + **/ +@Repository("OATransactionDetailDaoImpl") +public class TransactionDetailDaoImpl extends MybatisGenericDao implements ITransactionDetailDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.java new file mode 100644 index 00000000..4776058c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.java @@ -0,0 +1,113 @@ +package com.hzya.frame.seeyon.cbs8.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * @Description 代发代扣明细表 + * @Author xiangerlin + * @Date 2024/6/18 14:58 + **/ +public class AgentPaymentDetailEntity extends BaseEntity { + //每笔明细金额 + private String dtlAmount; + //收款账号 + private String dtlRevAccount; + //联行号 同行可不传,跨行必传 + private String dtlCnapsCode; + //收款账户名称 + private String dtlRevName; + //收款开户行 ,如果传的联行号能匹配到对应到开户行,cbs8会自动带出 + private String dtlRevBankName; + //主表id + private String formmainId; + //表名 + private String tabName; + + //明细序号,从1开始递增 + private int dtlSeqNum; + + //支付结果 + private String payResult; + //支付日期 + private String payDate; + + public String getDtlAmount() { + return dtlAmount; + } + + public void setDtlAmount(String dtlAmount) { + this.dtlAmount = dtlAmount; + } + + public String getDtlRevAccount() { + return dtlRevAccount; + } + + public void setDtlRevAccount(String dtlRevAccount) { + this.dtlRevAccount = dtlRevAccount; + } + + public String getDtlCnapsCode() { + return dtlCnapsCode; + } + + public void setDtlCnapsCode(String dtlCnapsCode) { + this.dtlCnapsCode = dtlCnapsCode; + } + + public String getDtlRevName() { + return dtlRevName; + } + + public void setDtlRevName(String dtlRevName) { + this.dtlRevName = dtlRevName; + } + + public String getDtlRevBankName() { + return dtlRevBankName; + } + + public void setDtlRevBankName(String dtlRevBankName) { + this.dtlRevBankName = dtlRevBankName; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + public String getTabName() { + return tabName; + } + + public void setTabName(String tabName) { + this.tabName = tabName; + } + + public int getDtlSeqNum() { + return dtlSeqNum; + } + + public void setDtlSeqNum(int dtlSeqNum) { + this.dtlSeqNum = dtlSeqNum; + } + + public String getPayResult() { + return payResult; + } + + public void setPayResult(String payResult) { + this.payResult = payResult; + } + + public String getPayDate() { + return payDate; + } + + public void setPayDate(String payDate) { + this.payDate = payDate; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.xml new file mode 100644 index 00000000..43869fc1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentDetailEntity.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + id, + formmainId, + tabName, + dtlSeqNum, + dtlAmount, + dtlRevAccount, + dtlCnapsCode, + dtlRevName, + dtlRevBankName, + payResult, + payDate + + + + + + + + update formson_0225 set + + field0045 =#{payDate}, + field0044 =#{payResult} + + where id = #{id} + + + + + update formson_0225 set + + field0045 =#{payDate}, + field0044 =#{payResult} + + where field0001=#{dtlSeqNum} and field0019=#{dtlAmount} and field0035=#{dtlCnapsCode} and field0037=#{dtlRevName} + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.java new file mode 100644 index 00000000..b4b2748a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.java @@ -0,0 +1,145 @@ +package com.hzya.frame.seeyon.cbs8.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * @Description 代发代扣 主表 + * @Author xiangerlin + * @Date 2024/6/18 14:44 + **/ +public class AgentPaymentEntity extends BaseEntity { + + //oa id + private String oaId; + private String finishedflag; + //流程标题 + private String title; + //业务参考号 + private String referenceNum; + /** + * 业务类型 + * 201-代扣 + * 203-代发 + * 代发工资传203 + */ + private String busType; + //总金额 小数位2位 + private String amount; + //币种 + private String currency; + //付款账号 + private String payAccount; + //用途 + private String purpose; + //申请单号 + private String applyCode; + //支付结果 + private String payResult; + + private String tableName;//表名称 + private String billName;//单据名称 + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public String getBillName() { + return billName; + } + + public void setBillName(String billName) { + this.billName = billName; + } + + public String getOaId() { + return oaId; + } + + public void setOaId(String oaId) { + this.oaId = oaId; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getFinishedflag() { + return finishedflag; + } + + public void setFinishedflag(String finishedflag) { + this.finishedflag = finishedflag; + } + + public String getApplyCode() { + return applyCode; + } + + public void setApplyCode(String applyCode) { + this.applyCode = applyCode; + } + + public String getPayResult() { + return payResult; + } + + public void setPayResult(String payResult) { + this.payResult = payResult; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.xml new file mode 100644 index 00000000..c0b0f6f0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/AgentPaymentEntity.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + oaId, + tableName, + finishedflag, + title, + billName, + referenceNum, + busType, + amount, + currency, + payAccount, + applyCode, + payResult, + purpose + + + + + + + + + + + update formmain_0224 set + + field0043 =#{applyCode}, + field0046 =#{payResult} + + where id = #{oaId} + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.java new file mode 100644 index 00000000..21cc1a4f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.java @@ -0,0 +1,151 @@ +package com.hzya.frame.seeyon.cbs8.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * @Description cbs支付日志 + * @Author xiangerlin + * @Date 2024/6/14 17:16 + **/ +public class CbsLogEntity extends BaseEntity { + //流程标题 + private String title; + //请款主体 + private String pay_company; + //收款人 + private String payee; + //金额 + private String amount; + //cbs申请单号 + private String cbs_apply_code; + //日志表id + private String id; + //oa单据id + private String oa_id; + //oa单据号 + private String bill_code; + //英文表名 + private String tab_name_en; + //中文表名 + private String tab_name_ch; + //支付状态 + private String pay_state; + //支付信息 + private String message; + //支付申请状态 + private String apply_state; + //成功标记 + private String successed; + + public String getOa_id() { + return oa_id; + } + + public void setOa_id(String oa_id) { + this.oa_id = oa_id; + } + + public String getBill_code() { + return bill_code; + } + + public void setBill_code(String bill_code) { + this.bill_code = bill_code; + } + + public String getTab_name_en() { + return tab_name_en; + } + + public void setTab_name_en(String tab_name_en) { + this.tab_name_en = tab_name_en; + } + + public String getTab_name_ch() { + return tab_name_ch; + } + + public void setTab_name_ch(String tab_name_ch) { + this.tab_name_ch = tab_name_ch; + } + + public String getPay_state() { + return pay_state; + } + + public void setPay_state(String pay_state) { + this.pay_state = pay_state; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getApply_state() { + return apply_state; + } + + public void setApply_state(String apply_state) { + this.apply_state = apply_state; + } + + public String getSuccessed() { + return successed; + } + + public void setSuccessed(String successed) { + this.successed = successed; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getPay_company() { + return pay_company; + } + + public void setPay_company(String pay_company) { + this.pay_company = pay_company; + } + + public String getPayee() { + return payee; + } + + public void setPayee(String payee) { + this.payee = payee; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getCbs_apply_code() { + return cbs_apply_code; + } + + public void setCbs_apply_code(String cbs_apply_code) { + this.cbs_apply_code = cbs_apply_code; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.xml new file mode 100644 index 00000000..3e03a88a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/CbsLogEntity.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + id, + field0002 as title, + field0003 as pay_company, + field0004 as payee, + field0005 as cbs_apply_code, + field0006 as bill_code, + field0007 as oa_id, + field0008 as tab_name_ch, + field0009 as tab_name_en, + field0010 as pay_state, + field0011 as message, + field0012 as apply_state, + field0014 as successed + + + + + + + + + + + + + update formmain_0232 set + + field0010 =#{pay_state}, + field0011 =#{message}, + field0012 =#{apply_state}, + field0014 =#{successed} + + where id = #{id} + + + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.java new file mode 100644 index 00000000..9f68e3ff --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.java @@ -0,0 +1,327 @@ +package com.hzya.frame.seeyon.cbs8.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/6 16:17 + **/ +public class PaymentEntity extends BaseEntity { + + private String oaId;//主表id + private String formsonId;//明细表id + private String payCompany;//付款公司 + private String title;//流程标题 + private String tableName;//表名称 + private String billName;//单据名称 + private String referenceNum;//业务参考号 唯一id + private String referenceNumNew;//重试的时候生成新的业务参考号 + private String busType;//业务类型 + private String payResultField;//支付结果字段 + private String payDateField;//打款日期字段 + private String applyCodeField;//支付申请单号字段 + private String receiptFiled;//电子回单字段 + private String summaryId;//summaryid + private String startDate;//单据日期 + private String finishedflag;//流程状态 + private String payDate;//打款日期 + private String payResult;//支付结果 + private String applyCode;//支付申请单号 + private String payAccount;//付款账号 + private String payBankName;//付款开户银行 + private String amount;//金额 + private String purpose;//支付用途 + private String revAccount;//收款账号 + private String revBankName;//收款开户行名称 + private String revBankType;//收款银行类型 + private String revAccountName;//收款账户名称 + private String cnapsCode;//联行号 + private String receipt;//电子回单 + private String currency;//币种 数字 + private String currencyName;//币种 中文 + private String currencyCode;//币种编码 + private String personalFlag;//公私标记 + private String payType;//付款类别 + private String payCompanyCode;//付款公司编码 + + public String getOaId() { + return oaId; + } + + public void setOaId(String oaId) { + this.oaId = oaId; + } + + public String getPayCompany() { + return payCompany; + } + + public void setPayCompany(String payCompany) { + this.payCompany = payCompany; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public String getBillName() { + return billName; + } + + public void setBillName(String billName) { + this.billName = billName; + } + + public String getReferenceNum() { + return referenceNum; + } + + public void setReferenceNum(String referenceNum) { + this.referenceNum = referenceNum; + } + + public String getReferenceNumNew() { + return referenceNumNew; + } + + public void setReferenceNumNew(String referenceNumNew) { + this.referenceNumNew = referenceNumNew; + } + + public String getBusType() { + return busType; + } + + public void setBusType(String busType) { + this.busType = busType; + } + + public String getPayResultField() { + return payResultField; + } + + public void setPayResultField(String payResultField) { + this.payResultField = payResultField; + } + + public String getPayDateField() { + return payDateField; + } + + public void setPayDateField(String payDateField) { + this.payDateField = payDateField; + } + + public String getReceiptFiled() { + return receiptFiled; + } + + public void setReceiptFiled(String receiptFiled) { + this.receiptFiled = receiptFiled; + } + + public String getSummaryId() { + return summaryId; + } + + public void setSummaryId(String summaryId) { + this.summaryId = summaryId; + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getFinishedflag() { + return finishedflag; + } + + public void setFinishedflag(String finishedflag) { + this.finishedflag = finishedflag; + } + + public String getPayDate() { + return payDate; + } + + public void setPayDate(String payDate) { + this.payDate = payDate; + } + + public String getPayResult() { + return payResult; + } + + public void setPayResult(String payResult) { + this.payResult = payResult; + } + + public String getPayAccount() { + return payAccount; + } + + public void setPayAccount(String payAccount) { + this.payAccount = payAccount; + } + + public String getPayBankName() { + return payBankName; + } + + public void setPayBankName(String payBankName) { + this.payBankName = payBankName; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getRevAccount() { + return revAccount; + } + + public void setRevAccount(String revAccount) { + this.revAccount = revAccount; + } + + public String getRevBankName() { + return revBankName; + } + + public void setRevBankName(String revBankName) { + this.revBankName = revBankName; + } + + public String getRevBankType() { + return revBankType; + } + + public void setRevBankType(String revBankType) { + this.revBankType = revBankType; + } + + public String getRevAccountName() { + return revAccountName; + } + + public void setRevAccountName(String revAccountName) { + this.revAccountName = revAccountName; + } + + public String getCnapsCode() { + return cnapsCode; + } + + public void setCnapsCode(String cnapsCode) { + this.cnapsCode = cnapsCode; + } + + public String getReceipt() { + return receipt; + } + + public void setReceipt(String receipt) { + this.receipt = receipt; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getCurrencyName() { + return currencyName; + } + + public void setCurrencyName(String currencyName) { + this.currencyName = currencyName; + } + + public String getCurrencyCode() { + return currencyCode; + } + + public void setCurrencyCode(String currencyCode) { + this.currencyCode = currencyCode; + } + + public String getPersonalFlag() { + return personalFlag; + } + + public void setPersonalFlag(String personalFlag) { + this.personalFlag = personalFlag; + } + + public String getPayType() { + return payType; + } + + public void setPayType(String payType) { + this.payType = payType; + } + + public String getPayCompanyCode() { + return payCompanyCode; + } + + public void setPayCompanyCode(String payCompanyCode) { + this.payCompanyCode = payCompanyCode; + } + + public String getFormsonId() { + return formsonId; + } + + public void setFormsonId(String formsonId) { + this.formsonId = formsonId; + } + + public String getApplyCodeField() { + return applyCodeField; + } + + public void setApplyCodeField(String applyCodeField) { + this.applyCodeField = applyCodeField; + } + + public String getApplyCode() { + return applyCode; + } + + public void setApplyCode(String applyCode) { + this.applyCode = applyCode; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.xml new file mode 100644 index 00000000..b8d3deee --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/PaymentEntity.xml @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + oaId, + formsonId, + payCompany, + payCompanyCode, + title, + tableName, + billName, + referenceNum, + busType, + payResultField, + payDateField, + applyCodeField, + receiptFiled, + summaryId, + startDate, + finishedflag, + payDate, + payResult, + applyCode, + payAccount, + payBankName, + amount, + purpose, + revAccount, + revBankName, + revBankType, + revAccountName, + cnapsCode, + receipt, + currency, + personalFlag, + payType + + + + + SELECT + formmain_0209.id as oaId, -- 主表id + formson_0210.formsonId, + 'formson_0210' as tableName, -- 表名 + COL_SUMMARY.SUBJECT as title, -- 单据标题 + unit.name as payCompany, -- 付款公司 + '差旅费报销单' as billName, + 'field0072' as payResultField, -- 支付结果字段 + 'field0073' as payDateField, -- 打款日期字段 + 'field0080' AS applyCodeField,-- CBS支付申请单号 + '' as receiptFiled,-- 电子回单字段 + COL_SUMMARY.id as summaryId, + formmain_0209.field0017||'-'||formson_0210.sort as referenceNum, -- 单据编号 + formmain_0209.START_DATE as startDate, -- 单据日期 + formmain_0209.FINISHEDFLAG as finishedflag, -- 流程状态 + formson_0210.field0073 as payDate, -- 打款日期 + formson_0210.field0072 as payResult, -- 支付结果 + formson_0210.field0080 AS applyCode,-- 支付申请单号 + REGEXP_REPLACE(formmain_0209.field0042, '[[:space:]]', '') as payAccount, -- 付款账户 + REGEXP_REPLACE(formmain_0209.field0041, '[[:space:]]', '') as payBankName, -- 付款开户行 + formson_0210.field0031 as amount, -- 金额 + formmain_0209.field0038 as purpose, -- 用途 + formmain_0209.field0038 as cbsAbstract, -- 摘要 + REGEXP_REPLACE(formson_0210.field0069, '[[:space:]]', '') as revAccount, -- 收款账户 + formson_0210.field0068 as revBankName, -- 收款开户行 + formson_0210.field0075 as revAccountName, -- 收款人 + REGEXP_REPLACE(formson_0210.field0071, '[[:space:]]', '') as cnapsCode, -- 收款联行号 + item.ENUMVALUE as personalFlag,-- 公私标记 + formson_0210.field0079 as revBankType, + '10' as currency, + '202' as busType, + '' as receipt -- 电子回单 + FROM + ( + SELECT + WM_CONCAT(id) AS formsonId, + formmain_id, + SUM(field0031) AS field0031, + MIN(sort) AS sort, + field0068, + field0069, + field0071, + field0079, + field0075, + field0070, + field0072, + field0073, + field0080 + FROM + formson_0210 + WHERE + field0067 = '-5486592002512828355' + GROUP BY + formmain_id, + field0068, + field0069, + field0071, + field0079, + field0075, + field0070, + field0072, + field0073, + field0080 + )formson_0210 + LEFT JOIN formmain_0209 ON formson_0210.FORMMAIN_ID = formmain_0209.id + LEFT JOIN COL_SUMMARY ON COL_SUMMARY.FORM_RECORDID = formmain_0209.id + left join CTP_ENUM_ITEM item on item.id =formson_0210.field0070 + left join ORG_UNIT unit on unit.id =formmain_0209.field0002 + + + + + + + + + + + + + + + + + + + + + + update ${tableName} set + + ${payDateField} =#{payDate}, + ${payResultField} =#{payResult}, + ${applyCodeField} =#{applyCode} + + where id = #{formsonId} + + + + + update ${tableName} set ${receiptFiled}=#{receipt} where id = #{oaId} and ${receiptFiled} is null + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.java new file mode 100644 index 00000000..e1d66a2d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.java @@ -0,0 +1,155 @@ +package com.hzya.frame.seeyon.cbs8.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * @Description cbs交易明细日志OA底表 + * @Author xiangerlin + * @Date 2024/6/24 10:49 + **/ +public class TransactionDetailEntity extends BaseEntity { + private String id;//id + private String accountNo;//银行账号 + private String accountName;//户名 + private String openBank;//开户行名称 + private String bankType;//我方银行类型 + private String bankTransactionDate;//交易日期 + private String transactionSerialNumber;//交易流水号 + private String bankSerialNumber;//银行流水号 + private String currency;//币种 + private String incurredAmount;//发生额 + private String purpose;//用途 + private String digest;//摘要 + private String oppositeAccount;//对方账号 + private String oppositeName;//对方户名 + private String oppositeOpeningBank;//对方开户行 + + private String remark;//备注 + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getAccountNo() { + return accountNo; + } + + public void setAccountNo(String accountNo) { + this.accountNo = accountNo; + } + + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public String getOpenBank() { + return openBank; + } + + public void setOpenBank(String openBank) { + this.openBank = openBank; + } + + public String getBankTransactionDate() { + return bankTransactionDate; + } + + public void setBankTransactionDate(String bankTransactionDate) { + this.bankTransactionDate = bankTransactionDate; + } + + public String getTransactionSerialNumber() { + return transactionSerialNumber; + } + + public void setTransactionSerialNumber(String transactionSerialNumber) { + this.transactionSerialNumber = transactionSerialNumber; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getIncurredAmount() { + return incurredAmount; + } + + public void setIncurredAmount(String incurredAmount) { + this.incurredAmount = incurredAmount; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public String getDigest() { + return digest; + } + + public void setDigest(String digest) { + this.digest = digest; + } + + public String getOppositeAccount() { + return oppositeAccount; + } + + public void setOppositeAccount(String oppositeAccount) { + this.oppositeAccount = oppositeAccount; + } + + public String getOppositeName() { + return oppositeName; + } + + public void setOppositeName(String oppositeName) { + this.oppositeName = oppositeName; + } + + public String getOppositeOpeningBank() { + return oppositeOpeningBank; + } + + public void setOppositeOpeningBank(String oppositeOpeningBank) { + this.oppositeOpeningBank = oppositeOpeningBank; + } + + public String getBankType() { + return bankType; + } + + public void setBankType(String bankType) { + this.bankType = bankType; + } + + public String getBankSerialNumber() { + return bankSerialNumber; + } + + public void setBankSerialNumber(String bankSerialNumber) { + this.bankSerialNumber = bankSerialNumber; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.xml new file mode 100644 index 00000000..3fa7fc60 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/entity/TransactionDetailEntity.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + id, + field0001 as accountNo, + field0002 as accountName, + field0003 as openBank, + field0004 as bankType, + field0005 as transactionSerialNumber, + field0006 as bankTransactionDate, + field0007 as bankSerialNumber, + field0008 as currency, + field0009 as incurredAmount, + field0010 as purpose, + field0011 as digest, + field0012 as oppositeAccount, + field0013 as oppositeName, + field0014 as oppositeOpeningBank, + field0015 as remark + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentDetailService.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentDetailService.java new file mode 100644 index 00000000..f0a4811b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentDetailService.java @@ -0,0 +1,18 @@ +package com.hzya.frame.seeyon.cbs8.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; + +/** + * @Description 代发代扣明细 + * @Author xiangerlin + * @Date 2024/6/26 11:00 + **/ +public interface IAgentPaymentDetailService extends IBaseService { + /** + * 更新明细表支付状态 + * @param detail + */ + void updatePayResult(AgentPaymentDetailEntity detail); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentService.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentService.java new file mode 100644 index 00000000..dcb6d78f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IAgentPaymentService.java @@ -0,0 +1,45 @@ +package com.hzya.frame.seeyon.cbs8.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; + +import java.util.List; + +/** + * @Description OA代发代扣 + * @Author xiangerlin + * @Date 2024/6/18 15:04 + **/ +public interface IAgentPaymentService extends IBaseService { + + /** + * 查询待支付待代发代扣 主表 + * @param entity + * @return + * @throws Exception + */ + List queryUnpaid(AgentPaymentEntity entity) throws Exception; + + /** + * 根据支付申请单号查询 + * @param agentPayment + * @return + * @throws Exception + */ + AgentPaymentEntity queryByApplyCode(AgentPaymentEntity agentPayment)throws Exception; + + /** + * 查询明细表 + * @param entity + * @return + * @throws Exception + */ + List queryDetails(AgentPaymentDetailEntity entity)throws Exception; + + /** + * 更新支付状态 + * @param entity + */ + void updateResult(AgentPaymentEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ICbsLogService.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ICbsLogService.java new file mode 100644 index 00000000..7160c21f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ICbsLogService.java @@ -0,0 +1,53 @@ +package com.hzya.frame.seeyon.cbs8.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; + +import java.util.List; + +/** + * @Description cbs8支付日志 + * @Author xiangerlin + * @Date 2024/6/14 17:22 + **/ +public interface ICbsLogService extends IBaseService { + /** + * 查询支付中的数据 + * @param logEntity + * @return + */ + List queryInPayment(CbsLogEntity logEntity); + /** + * 保存日志,通过rest接口的形式 + * @param logEntity + */ + void saveLog(CbsLogEntity logEntity); + + /** + * 补推,从自己开发的页面或者APIpost + * 需要传oa表单id和表单编号 + * @param entity + */ + void retry(CbsLogEntity entity); + /** + * 补推,从OA页面 + * 只需要传日志表id就行 + * @param jsonObject + */ + void resend(JSONObject jsonObject); + + /** + * 获取token + * @param entity + * @return + */ + SysExtensionApiEntity getTokenExt(SysExtensionApiEntity entity); + + /** + * 更新日志 + * @param logEntity + */ + void updateLog(CbsLogEntity logEntity); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IPaymentService.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IPaymentService.java new file mode 100644 index 00000000..4243084c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/IPaymentService.java @@ -0,0 +1,63 @@ +package com.hzya.frame.seeyon.cbs8.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; + +import java.util.List; + +/** + * @Description oa对接cbs + * @Author xiangerlin + * @Date 2024/6/6 16:31 + **/ +public interface IPaymentService extends IBaseService { + + /** + * 查询待支付的数据 需要推送到CBS的 + * 如果需要查询流程状态已结束的 需要调用方设置finishedflag=1 + * @param entity + * @return + * @throws Exception + */ + List queryUnpaid(PaymentEntity entity)throws Exception; + + /** + * 查询交易成功的数据 + * 内置了查询条件payResult = PayState.payStateGetValue("g"); 支付成功 + * @param entity + * @return + * @throws Exception + */ + List querySuccess(PaymentEntity entity)throws Exception; + + /** + * 查询交易成功,且电子回单为空的 + * @param entity + * @return + * @throws Exception + */ + List queryElecIsNull(PaymentEntity entity)throws Exception; + + /** + * 查询支付中的数据 + * 内置了查询条件 payResult = '支付中' or payResult not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败') + * @param entity + * @return + * @throws Exception + */ + List queryInPayment(PaymentEntity entity)throws Exception; + + /** + * 更新支付状态 + * @param entity + * @throws Exception + */ + void updatePayState(PaymentEntity entity)throws Exception; + + /** + * 更新电子回单字段 + * @param entity + * @throws Exception + */ + void updateElec(PaymentEntity entity)throws Exception; +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ITransactionDetailService.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ITransactionDetailService.java new file mode 100644 index 00000000..61126686 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/ITransactionDetailService.java @@ -0,0 +1,29 @@ +package com.hzya.frame.seeyon.cbs8.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.TransactionDetailEntity; + +import java.util.List; + +/** + * @Description cbs交易明细 OA底表 + * @Author xiangerlin + * @Date 2024/6/24 11:07 + **/ +public interface ITransactionDetailService extends IBaseService { + + + /** + * 只返回交易流水号 + * @param entity + * @return + */ + List querySerialNumber(TransactionDetailEntity entity); + + /** + * 保存交易明细,通过rest接口的方式 + * @param entity + * @throws Exception + */ + void restSave(TransactionDetailEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentDetailServiceImpl.java new file mode 100644 index 00000000..8bbbad34 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentDetailServiceImpl.java @@ -0,0 +1,39 @@ +package com.hzya.frame.seeyon.cbs8.service.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.seeyon.cbs8.dao.IAgentPaymentDetailDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentDetailService; +import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/26 11:01 + **/ +@Service("OAAgentPaymentDetailServiceImpl") +public class AgentPaymentDetailServiceImpl extends BaseService implements IAgentPaymentDetailService { + + private IAgentPaymentDetailDao agentPaymentDetailDao; + + @Autowired + public void setAgentPaymentDetailDao(IAgentPaymentDetailDao agentPaymentDetailDao) { + this.agentPaymentDetailDao = agentPaymentDetailDao; + this.dao = agentPaymentDetailDao; + } + + /** + * 更新明细表支付状态 + * + * @param detail + */ + @DS("#detail.dataSourceCode") + @Override + public void updatePayResult(AgentPaymentDetailEntity detail) { + agentPaymentDetailDao.update("com.hzya.frame.seeyon.cbs8.dao.impl.AgentPaymentDetailDaoImpl.entity_update_result",detail); + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentServiceImpl.java new file mode 100644 index 00000000..ab3ab4b9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/AgentPaymentServiceImpl.java @@ -0,0 +1,93 @@ +package com.hzya.frame.seeyon.cbs8.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.seeyon.cbs8.dao.IAgentPaymentDao; +import com.hzya.frame.seeyon.cbs8.dao.IAgentPaymentDetailDao; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentDetailEntity; +import com.hzya.frame.seeyon.cbs8.entity.AgentPaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentDetailService; +import com.hzya.frame.seeyon.cbs8.service.IAgentPaymentService; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/18 15:06 + **/ +@Service(value = "cbs8AgentPaymentServiceImpl") +public class AgentPaymentServiceImpl extends BaseService implements IAgentPaymentService { + + private IAgentPaymentDao agentPaymentDao; + + @Autowired + private IAgentPaymentDetailService agentPaymentDetailService; + @Autowired + public void setAgentPaymentDao(IAgentPaymentDao agentPaymentDao) { + this.agentPaymentDao = agentPaymentDao; + this.dao = agentPaymentDao; + } + /** + * 查询待支付待代发代扣 主表 + * + * @param entity + * @return + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public List queryUnpaid(AgentPaymentEntity entity) throws Exception { + List list = agentPaymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.dao.impl.AgentPaymentDaoImpl.entity_list_base_unpaid"); + return list; + } + + /** + * 根据支付申请单号查询 + * + * @param entity + * @return + * @throws Exception + */ + @Override + public AgentPaymentEntity queryByApplyCode(AgentPaymentEntity entity) throws Exception { + if (null != entity && StrUtil.isNotEmpty(entity.getApplyCode())){ + List list = agentPaymentDao.query(entity); + if (CollectionUtils.isNotEmpty(list)){ + if (list.size() > 1){ + throw new BaseSystemException("根据"+entity.getApplyCode()+"查询到多条记录"); + } + return list.get(0); + } + } + return null; + } + + /** + * 查询明细表 + * + * @param entity + * @return + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public List queryDetails(AgentPaymentDetailEntity entity) throws Exception { + List list = agentPaymentDetailService.query(entity); + return list; + } + + /** + * @param entity + */ + @DS("#entity.dataSourceCode") + @Override + public void updateResult(AgentPaymentEntity entity) { + agentPaymentDao.update("com.hzya.frame.seeyon.cbs8.dao.impl.AgentPaymentDaoImpl.entity_update",entity); + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/CbsLogServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/CbsLogServiceImpl.java new file mode 100644 index 00000000..a99744cf --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/CbsLogServiceImpl.java @@ -0,0 +1,199 @@ +package com.hzya.frame.seeyon.cbs8.service.impl; + +import cn.hutool.core.map.MapBuilder; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.cbs8.util.PayState; +import com.hzya.frame.seeyon.cbs8.dao.ICbsLogDao; +import com.hzya.frame.seeyon.cbs8.entity.CbsLogEntity; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.ICbsLogService; +import com.hzya.frame.seeyon.util.RestUtil; +import com.hzya.frame.stringutil.StringUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.exception.BaseSystemException; +import org.apache.commons.collections.CollectionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @Description cbs8支付日志 + * @Author xiangerlin + * @Date 2024/6/14 17:22 + **/ +@Service(value = "CbsLogServiceImpl") +public class CbsLogServiceImpl extends BaseService implements ICbsLogService { + + + Logger log = LoggerFactory.getLogger(getClass()); + + private ICbsLogDao cbsLogDao; + @Value("${OA.data_source_code:}") + private String oa_data_source_code; + @Autowired + public void setCbsLogDao(ICbsLogDao cbsLogDao) { + this.cbsLogDao = cbsLogDao; + this.dao = cbsLogDao; + } + @Autowired + private RestUtil restUtil; + + /** + * 查询支付中的数据 + * + * @param logEntity + * @return + */ + @DS("#logEntity.dataSourceCode") + @Override + public List queryInPayment(CbsLogEntity logEntity) { + List logList = cbsLogDao.queryList(logEntity, "CbsLogEntity_list_base_in_payment"); + return logList; + } + + /** + * 保存日志,通过rest接口的形式 + * + * @param cbsLogEntity + */ + @Override + public void saveLog(CbsLogEntity cbsLogEntity) { + String oa_id = StringUtil.nullConvert(cbsLogEntity.getOa_id()); + String bill_code = StringUtil.nullConvert(cbsLogEntity.getBill_code()); + String tab_name_en = StringUtil.nullConvert(cbsLogEntity.getTab_name_en()); + String tab_name_ch = StringUtil.nullConvert(cbsLogEntity.getTab_name_ch()); + String pay_state = StringUtil.nullConvert(cbsLogEntity.getPay_state()); + String message = StringUtil.nullConvert(cbsLogEntity.getMessage()); + String apply_state = StringUtil.nullConvert(cbsLogEntity.getApply_state()); + String successed = StringUtil.nullConvert(cbsLogEntity.getSuccessed()); + String title = StringUtil.nullConvert(cbsLogEntity.getTitle()); + String pay_company = StringUtil.nullConvert(cbsLogEntity.getPay_company()); + String payee = StringUtil.nullConvert(cbsLogEntity.getPayee()); + String amount = StringUtil.nullConvert(cbsLogEntity.getAmount()); + String cbs_apply_code = StringUtil.nullConvert(cbsLogEntity.getCbs_apply_code()); + //根据oaid判断是否在日志表中存在,如果存在,则更新,如果不存在,则新增 + CbsLogEntity cbsLogEntityResend=new CbsLogEntity(); + cbsLogEntityResend.setOa_id(cbsLogEntity.getOa_id()); + cbsLogEntityResend.setDataSourceCode(oa_data_source_code); + List queryList = query(cbsLogEntityResend); + if(CollectionUtils.isEmpty(queryList)){ + String data = StrUtil.format(getXmlTemplate(),title,pay_company,payee,amount,cbs_apply_code,bill_code,oa_id,tab_name_ch,tab_name_en,pay_state,message,apply_state,successed); + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000240007") + .put("publicKey","ZJYAorA7JuRDfrVjywcx78BFcqlLwthgXNC65TXxxQMUHuxCe7eDIk+3zDUT+v578prj")//发送者 + .put("secretKey","a54vt9Wx7gdBig+4JCkZ/lISIIL2m4ZEyZkXtW0uQVBDHS+V4SVgT6xhNblacri/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//发送者 + .put("appId","800024") + .build(); + JSONObject paramsTemplate = new JSONObject(); + paramsTemplate.put("loginName", "hzya_rest"); + paramsTemplate.put("dataXml", data); + String params = JSONObject.toJSONString(paramsTemplate); + logger.info("保存支付申请日志到OA底表请求参数:{}",params); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + logger.info("保存支付申请日志到OA底表响应参数:{}",body); + }else{ + for (CbsLogEntity logEntity : queryList) { + logEntity.setPay_state(pay_state); + logEntity.setMessage(message); + logEntity.setApply_state(apply_state); + logEntity.setSuccessed(successed); + logEntity.setBill_code(cbsLogEntity.getBill_code()); + logEntity.setDataSourceCode(oa_data_source_code); + try { + update(logEntity); + }catch (Exception e){ + e.printStackTrace(); + logger.error("更新"); + } + } + } + } + + /** + * 补推,从自己开发的页面或者APIpost + * 需要传oa表单id和表单编号 + * + * @param entity + */ + @Override + public void retry(CbsLogEntity entity) { + PaymentEntity paymentEntity = new PaymentEntity(); + paymentEntity.setOaId(entity.getOa_id()); + paymentEntity.setReferenceNum(entity.getBill_code()); + CbsLogEntity logEntity = new CbsLogEntity(); + logEntity.setId(entity.getId()); + logEntity = cbsLogDao.queryOne(logEntity); + String pay_state = logEntity.getPay_state(); + if (PayState.h.getValue().equals(pay_state) + || PayState.three.getValue().equals(pay_state) + || PayState.k.getValue().equals(pay_state) + || "推送失败".equals(pay_state)){ + //todo 调用重试方法 + }else { + throw new BaseSystemException("只允许补推支付失败的记录"); + } + } + + /** + * 补推,从OA页面 + * 只需要传日志表id就行 + * + * @param jsonObject + */ + @Override + public void resend(JSONObject jsonObject) { + if (null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("id"))){ + String id = jsonObject.getString("id"); + CbsLogEntity cbsLogEntity = new CbsLogEntity(); + cbsLogEntity.setId(id); + cbsLogEntity =cbsLogDao.queryOne(cbsLogEntity); + if (null != cbsLogEntity && StrUtil.isNotEmpty(cbsLogEntity.getOa_id()) && StrUtil.isNotEmpty(cbsLogEntity.getBill_code())){ + retry(cbsLogEntity); + } + } + } + + /** + * 获取token + * + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity getTokenExt(SysExtensionApiEntity entity) { + String token = restUtil.getToken("hzya_rest", "8000240000"); + Map headers = entity.getHeaders(); + if (null == headers){ + headers = new HashMap<>(); + } + headers.put("token",token); + return entity; + } + + /** + * 更新日志 + * + * @param logEntity + */ + @DS("#logEntity.dataSourceCode") + @Override + public void updateLog(CbsLogEntity logEntity) { + cbsLogDao.update(logEntity); + } + + //获取xml模板 + private String getXmlTemplate(){ + return ""; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/PaymentServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/PaymentServiceImpl.java new file mode 100644 index 00000000..dc593153 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/PaymentServiceImpl.java @@ -0,0 +1,151 @@ +package com.hzya.frame.seeyon.cbs8.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.cbs8.util.PayState; +import com.hzya.frame.seeyon.cbs8.dao.IPaymentDao; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.cbs8.service.IPaymentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/6 16:34 + **/ +@Service("OAPaymentServiceImpl") +public class PaymentServiceImpl extends BaseService implements IPaymentService { + + + + private IPaymentDao paymentDao; + + @Autowired + public void setPaymentDao(IPaymentDao paymentDao) { + this.paymentDao = paymentDao; + this.dao = paymentDao; + } + + /** + * 查询列表 + * @param entity + * @return + */ + @DS("#entity.dataSourceCode") + @Override + public List query(PaymentEntity entity) { + List list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.entity_list_base"); + return list; + } + + /** + * 查询待支付的数据 需要推送到CBS的 + * 如果需要查询流程状态已结束的 需要调用方设置finishedflag=1 + * + * @param entity + * @return + * @throws Exception + */ + + + @DS("#entity.dataSourceCode") + @Override + public List queryUnpaid(PaymentEntity entity) throws Exception { + List list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_list_base_unpaid"); + return list; + } + + /** + * 查询交易成功的数据 + * 内置了查询条件payResult = PayState.payStateGetValue("g"); 支付成功 + * + * @param entity + * @return + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public List querySuccess(PaymentEntity entity) throws Exception { + if (null == entity){ + entity = new PaymentEntity(); + } + entity.setPayResult(PayState.payStateGetValue("g")); + List list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_list_base"); + return list; + } + + /** + * 查询交易成功,且电子回单为空的 + * + * @param entity + * @return + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public List queryElecIsNull(PaymentEntity entity) throws Exception { + List list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_list_base_elec_isnull"); + return list; + } + + /** + * 查询支付中的数据 + * 内置了查询条件 payResult = '支付中' or payResult not in ('审批撤销','审批拒绝','处理失败','退票','支付成功','取消支付','修改支付','支付失败') + * + * @param entity + * @return + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public List queryInPayment(PaymentEntity entity) throws Exception { + List list = paymentDao.queryList(entity, "com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_list_base_in_payment"); + return list; + } + + /** + * 更新支付状态 + * + * @param entity + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public void updatePayState(PaymentEntity entity) throws Exception { + if (null != entity + && StrUtil.isNotEmpty(entity.getTableName()) + && StrUtil.isNotEmpty(entity.getOaId()) + && StrUtil.isNotEmpty(entity.getFormsonId()) + && StrUtil.isNotEmpty(entity.getPayDateField()) + && StrUtil.isNotEmpty(entity.getPayResultField())){ + String formsonId = entity.getFormsonId(); + String[] formsonIdArray = formsonId.split(","); + for (String s : formsonIdArray) { + entity.setFormsonId(s); + paymentDao.update("com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_update_payState",entity); + } + } + } + + /** + * 更新电子回单字段 + * + * @param entity + * @throws Exception + */ + @DS("#entity.dataSourceCode") + @Override + public void updateElec(PaymentEntity entity) throws Exception { + if (null != entity + && StrUtil.isNotEmpty(entity.getTableName()) + && StrUtil.isNotEmpty(entity.getOaId()) + && StrUtil.isNotEmpty(entity.getReceiptFiled())){ + paymentDao.update("com.hzya.frame.seeyon.cbs8.entity.PaymentEntity.PaymentEntity_update_electronic",entity); + } + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/TransactionDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/TransactionDetailServiceImpl.java new file mode 100644 index 00000000..21cee3ea --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/cbs8/service/impl/TransactionDetailServiceImpl.java @@ -0,0 +1,98 @@ +package com.hzya.frame.seeyon.cbs8.service.impl; + +import cn.hutool.core.map.MapBuilder; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.seeyon.cbs8.dao.ITransactionDetailDao; +import com.hzya.frame.seeyon.cbs8.entity.TransactionDetailEntity; +import com.hzya.frame.seeyon.cbs8.service.IPaymentService; +import com.hzya.frame.seeyon.cbs8.service.ITransactionDetailService; +import com.hzya.frame.stringutil.StringUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/24 11:08 + **/ +@Service(value = "OATransactionDetailServiceImpl") +public class TransactionDetailServiceImpl extends BaseService implements ITransactionDetailService { + + private ITransactionDetailDao transactionDetailDao; + + @Autowired + public void setTransactionDetailDao(ITransactionDetailDao dao) { + this.transactionDetailDao = dao; + this.dao=dao; + } + + /** + * 只返回交易流水号 + * + * @param entity + * @return + */ + @DS("#entity.dataSourceCode") + @Override + public List querySerialNumber(TransactionDetailEntity entity) { + List list = transactionDetailDao.queryList(entity, "TransactionDetailEntity_list_serialNumber");; + return list; + } + + /** + * 保存交易明细,通过rest接口的方式 + * + * @param entity + * @throws Exception + */ + @Override + public void restSave(TransactionDetailEntity entity) { + String field0001= StringUtil.nullConvert(entity.getAccountNo());//我方银行账号 + String field0002=StringUtil.nullConvert(entity.getAccountName());//我方户名 + String field0003=StringUtil.nullConvert(entity.getOpenBank());//我方开户行 + String field0004=StringUtil.nullConvert(entity.getBankType());//我方银行类型 + String field0005=StringUtil.nullConvert(entity.getTransactionSerialNumber());//交易流水号 + String field0006=StringUtil.nullConvert(entity.getBankTransactionDate());//交易日期 + String field0007=StringUtil.nullConvert(entity.getBankSerialNumber());//银行流水号 + String field0008=StringUtil.nullConvert(entity.getCurrency());//币种 + String field0009=StringUtil.nullConvert(entity.getIncurredAmount());//收款金额 + String field0010=StringUtil.nullConvert(entity.getPurpose());//用途 + String field0011=StringUtil.nullConvert(entity.getDigest());//摘要 + String field0012=StringUtil.nullConvert(entity.getOppositeAccount());//对方账号 + String field0013=StringUtil.nullConvert(entity.getOppositeName());//对方户名 + String field0014=StringUtil.nullConvert(entity.getOppositeOpeningBank());//对方开户行 + String field0015=StringUtil.nullConvert(entity.getRemark());//备注 + String data = StrUtil.format(getXmlTemplate(),field0001,field0002,field0003,field0004,field0005,field0006,field0007,field0008,field0009,field0010,field0011,field0012,field0013,field0014,field0015); + Map headerMap = MapBuilder.create(true) + .put("apiCode", "8000240006") + .put("publicKey","ZJYAorA7JuRDfrVjywcx78BFcqlLwthgXNC65TXxxQMUHuxCe7eDIk+3zDUT+v578prj") + .put("secretKey","a54vt9Wx7gdBig+4JCkZ/lISIIL2m4ZEyZkXtW0uQVBDHS+V4SVgT6xhNblacri/j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId","800024") + .build(); + JSONObject paramsTemplate = new JSONObject(); + paramsTemplate.put("loginName", "hzya_rest"); + paramsTemplate.put("dataXml", data); + String params = JSONObject.toJSONString(paramsTemplate); + logger.info("保存交易明细到OA底表请求参数:{}",params); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(params).timeout(60000).execute().body(); + logger.info("保存交易明细到OA底表响应参数:{}",body); + } + + /** + * 无流程表单模版 + * transaction 交易明细 + * payApply 支付申请日志 + * @return + */ + private String getXmlTemplate(){ + return ""; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpAttachmentDao.java b/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpAttachmentDao.java index 73ae2711..5c64e35f 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpAttachmentDao.java +++ b/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpAttachmentDao.java @@ -8,14 +8,14 @@ import java.util.List; public interface ICtpAttachmentDao extends IBaseDao { //更新数据 - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity); //根据fiel_url查询附件业务记录,如果存在则更新,如果不存在则新增 - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") List queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity); //新增 - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity); } diff --git a/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpFileDao.java b/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpFileDao.java new file mode 100644 index 00000000..87961648 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/dao/ICtpFileDao.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.seeyon.entity.CtpFileEntity; + +/** + * @Description seeyon 附件对象 + * @Author xiangerlin + * @Date 2024/6/17 15:21 + **/ +public interface ICtpFileDao extends IBaseDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpAttachmentDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpAttachmentDaoImpl.java index 2d11fe25..080c28bc 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpAttachmentDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpAttachmentDaoImpl.java @@ -11,19 +11,19 @@ import java.util.List; @Repository(value = "ctpAttachmentDaoImpl") public class CtpAttachmentDaoImpl extends MybatisGenericDao implements ICtpAttachmentDao { - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") @Override public int updateCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) { return super.update("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_update",ctpAttachmentEntity); } - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") @Override public List queryCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) { return (List) super.selectList("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_list_base",ctpAttachmentEntity); } - @DS("ht_oa_sqlserver") + @DS("#ctpAttachmentEntity.dataSourceCode") @Override public CtpAttachmentEntity saveCtpAttachment(CtpAttachmentEntity ctpAttachmentEntity) { return super.save("com.hzya.frame.seeyon.dao.impl.CtpAttachmentDaoImpl.entity_insert",ctpAttachmentEntity); diff --git a/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpFileDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpFileDaoImpl.java new file mode 100644 index 00000000..8b80d3d7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/dao/impl/CtpFileDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.seeyon.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.dao.ICtpAttachmentDao; +import com.hzya.frame.seeyon.dao.ICtpFileDao; +import com.hzya.frame.seeyon.entity.CtpAttachmentEntity; +import com.hzya.frame.seeyon.entity.CtpFileEntity; +import org.springframework.stereotype.Repository; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/17 15:22 + **/ +@Repository() +public class CtpFileDaoImpl extends MybatisGenericDao implements ICtpFileDao { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/entity/CollAttachmentResDTO.java b/service/src/main/java/com/hzya/frame/seeyon/entity/CollAttachmentResDTO.java new file mode 100644 index 00000000..42094a55 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/entity/CollAttachmentResDTO.java @@ -0,0 +1,340 @@ +package com.hzya.frame.seeyon.entity; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.TypeReference; +import com.alibaba.fastjson.annotation.JSONField; + +import java.util.List; +import java.util.Map; + +/** + * @Description 查询协同附件列表返回对象 /rest/coll/attachments/{summaryID}/{attType} + * @Author xiangerlin + * @Date 2024/8/16 09:11 + **/ +public class CollAttachmentResDTO { + private String id; //ctp_attachment 表的id + private String reference;// 流程表的id, col_summary + private String subReference;//流程表单附件字段存的id + private String category;//应用分类 + private String type; + private String filename;//附件名称 + private String mimeType;//附件类型 + private String createdate; + private String size;//附件大小 + private String description; + private String fileUrl;//附件id,ctp_file 表的逐渐 + private String extension; + private String icon; + private String iconFont; + private String genesisId; + private String sort; + private String officeTransformEnable; + private String obsObjectKey; + private String secretLevel; + private String secretLevelName; + private String canBrowse; + private String v; + private Boolean wpsOnlineEnable; + private Boolean allowTrans; + private JSONObject transValue; + private String createdateStr; + @JSONField(name = "new") + private Boolean newFile; + private Map extraMap; // 使用Map来存储额外的键值对 + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + public String getSubReference() { + return subReference; + } + + public void setSubReference(String subReference) { + this.subReference = subReference; + } + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public String getMimeType() { + return mimeType; + } + + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + public String getCreatedate() { + return createdate; + } + + public void setCreatedate(String createdate) { + this.createdate = createdate; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getFileUrl() { + return fileUrl; + } + + public void setFileUrl(String fileUrl) { + this.fileUrl = fileUrl; + } + + public String getExtension() { + return extension; + } + + public void setExtension(String extension) { + this.extension = extension; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getIconFont() { + return iconFont; + } + + public void setIconFont(String iconFont) { + this.iconFont = iconFont; + } + + public String getGenesisId() { + return genesisId; + } + + public void setGenesisId(String genesisId) { + this.genesisId = genesisId; + } + + public String getSort() { + return sort; + } + + public void setSort(String sort) { + this.sort = sort; + } + + public String getOfficeTransformEnable() { + return officeTransformEnable; + } + + public void setOfficeTransformEnable(String officeTransformEnable) { + this.officeTransformEnable = officeTransformEnable; + } + + public String getObsObjectKey() { + return obsObjectKey; + } + + public void setObsObjectKey(String obsObjectKey) { + this.obsObjectKey = obsObjectKey; + } + + public String getSecretLevel() { + return secretLevel; + } + + public void setSecretLevel(String secretLevel) { + this.secretLevel = secretLevel; + } + + public String getSecretLevelName() { + return secretLevelName; + } + + public void setSecretLevelName(String secretLevelName) { + this.secretLevelName = secretLevelName; + } + + public String getCanBrowse() { + return canBrowse; + } + + public void setCanBrowse(String canBrowse) { + this.canBrowse = canBrowse; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public Boolean getWpsOnlineEnable() { + return wpsOnlineEnable; + } + + public void setWpsOnlineEnable(Boolean wpsOnlineEnable) { + this.wpsOnlineEnable = wpsOnlineEnable; + } + + public Boolean getAllowTrans() { + return allowTrans; + } + + public void setAllowTrans(Boolean allowTrans) { + this.allowTrans = allowTrans; + } + + public JSONObject getTransValue() { + return transValue; + } + + public void setTransValue(JSONObject transValue) { + this.transValue = transValue; + } + + public String getCreatedateStr() { + return createdateStr; + } + + public void setCreatedateStr(String createdateStr) { + this.createdateStr = createdateStr; + } + + public Boolean getNewFile() { + return newFile; + } + + public void setNewFile(Boolean newFile) { + this.newFile = newFile; + } + + public Map getExtraMap() { + return extraMap; + } + + public void setExtraMap(Map extraMap) { + this.extraMap = extraMap; + } + + public static void main(String[] args) { + String str = "[{\n" + + "\t\"id\": 5180424495316486643,\n" + + "\t\"reference\": -1741558410793893622,\n" + + "\t\"subReference\": 584122959825946183,\n" + + "\t\"category\": 66,\n" + + "\t\"type\": 0,\n" + + "\t\"filename\": \"Order.pdf\",\n" + + "\t\"mimeType\": \"application/pdf\",\n" + + "\t\"createdate\": 1723454209000,\n" + + "\t\"size\": 131234,\n" + + "\t\"description\": null,\n" + + "\t\"fileUrl\": -5577707714790406265,\n" + + "\t\"extension\": \"pdf\",\n" + + "\t\"icon\": \"pdf.gif\",\n" + + "\t\"iconFont\": \"pdf\",\n" + + "\t\"genesisId\": null,\n" + + "\t\"sort\": 0,\n" + + "\t\"officeTransformEnable\": \"disable\",\n" + + "\t\"obsObjectKey\": \"\",\n" + + "\t\"secretLevel\": null,\n" + + "\t\"secretLevelName\": null,\n" + + "\t\"canBrowse\": 1,\n" + + "\t\"v\": \"fcdf8ae9d97bf2969fa6005394442885\",\n" + + "\t\"wpsOnlineEnable\": false,\n" + + "\t\"allowTrans\": false,\n" + + "\t\"transValue\": {\n" + + "\t\t\"isWpsOnlineEnable\": false,\n" + + "\t\t\"isAllowTrans\": false\n" + + "\t},\n" + + "\t\"createdateStr\": \"1723454209000\",\n" + + "\t\"new\": false,\n" + + "\t\"extraMap\": {}\n" + + "}, {\n" + + "\t\"id\": -6639984402087339,\n" + + "\t\"reference\": -1741558410793893622,\n" + + "\t\"subReference\": 649078190027982545,\n" + + "\t\"category\": 66,\n" + + "\t\"type\": 0,\n" + + "\t\"filename\": \"Invoice.pdf\",\n" + + "\t\"mimeType\": \"application/pdf\",\n" + + "\t\"createdate\": 1723454201000,\n" + + "\t\"size\": 158553,\n" + + "\t\"description\": null,\n" + + "\t\"fileUrl\": -4345076582332676605,\n" + + "\t\"extension\": \"pdf\",\n" + + "\t\"icon\": \"pdf.gif\",\n" + + "\t\"iconFont\": \"pdf\",\n" + + "\t\"genesisId\": null,\n" + + "\t\"sort\": 0,\n" + + "\t\"officeTransformEnable\": \"disable\",\n" + + "\t\"obsObjectKey\": \"\",\n" + + "\t\"secretLevel\": null,\n" + + "\t\"secretLevelName\": null,\n" + + "\t\"canBrowse\": 1,\n" + + "\t\"v\": \"85d721af033c7dddf385be2c7ea8d423\",\n" + + "\t\"wpsOnlineEnable\": false,\n" + + "\t\"allowTrans\": false,\n" + + "\t\"transValue\": {\n" + + "\t\t\"isWpsOnlineEnable\": false,\n" + + "\t\t\"isAllowTrans\": false\n" + + "\t},\n" + + "\t\"createdateStr\": \"1723454201000\",\n" + + "\t\"new\": false,\n" + + "\t\"extraMap\": {}\n" + + "}]"; + List list = JSON.parseArray(str,CollAttachmentResDTO.class); + System.out.println(list); + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.java b/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.java new file mode 100644 index 00000000..61ebce25 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.java @@ -0,0 +1,113 @@ +package com.hzya.frame.seeyon.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.io.File; + +/** + * @Description OA附件表 + * @Author xiangerlin + * @Date 2021/10/29 08:56 + **/ +public class CtpFileEntity extends BaseEntity { + private String category;//应用类别 + private String type;//类型 + private String filename;//文件名 + private String mime_type;//文件类型 + private String create_date; + private String create_member; + private String file_size;//大小 + private String description;//描述 + private String update_date; + private String account_id; + + + private File file;//临时用 + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public String getMime_type() { + return mime_type; + } + + public void setMime_type(String mime_type) { + this.mime_type = mime_type; + } + + public String getCreate_date() { + return create_date; + } + + public void setCreate_date(String create_date) { + this.create_date = create_date; + } + + public String getCreate_member() { + return create_member; + } + + public void setCreate_member(String create_member) { + this.create_member = create_member; + } + + public String getFile_size() { + return file_size; + } + + public void setFile_size(String file_size) { + this.file_size = file_size; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getUpdate_date() { + return update_date; + } + + public void setUpdate_date(String update_date) { + this.update_date = update_date; + } + + public String getAccount_id() { + return account_id; + } + + public void setAccount_id(String account_id) { + this.account_id = account_id; + } + + public File getFile() { + return file; + } + + public void setFile(File file) { + this.file = file; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.xml new file mode 100644 index 00000000..3f3c8cad --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/entity/CtpFileEntity.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + id, + category, + type, + filename, + mime_type, + create_date, + create_member, + file_size, + description, + update_date, + account_id + + + + + + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/entity/OAWorkflowEventDataEntity.java b/service/src/main/java/com/hzya/frame/seeyon/entity/OAWorkflowEventDataEntity.java index 421bd2fb..341e553f 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/entity/OAWorkflowEventDataEntity.java +++ b/service/src/main/java/com/hzya/frame/seeyon/entity/OAWorkflowEventDataEntity.java @@ -1,6 +1,8 @@ package com.hzya.frame.seeyon.entity; +import com.alibaba.fastjson.JSONObject; + import java.util.Map; /** @@ -27,7 +29,7 @@ public class OAWorkflowEventDataEntity { private Map businessData; private Map extData; private String businessDataStr; - + private JSONObject hzyaExtData;//存放一些扩展数据 private String OnProcessFinished; public String getSummaryId() { return summaryId; @@ -140,4 +142,12 @@ public class OAWorkflowEventDataEntity { public void setEventType(String eventType) { this.eventType = eventType; } + + public JSONObject getHzyaExtData() { + return hzyaExtData; + } + + public void setHzyaExtData(JSONObject hzyaExtData) { + this.hzyaExtData = hzyaExtData; + } } diff --git a/service/src/main/java/com/hzya/frame/seeyon/entity/SeeYonInterFaceEntity.java b/service/src/main/java/com/hzya/frame/seeyon/entity/SeeYonInterFaceEntity.java index cf2ab11d..449da122 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/entity/SeeYonInterFaceEntity.java +++ b/service/src/main/java/com/hzya/frame/seeyon/entity/SeeYonInterFaceEntity.java @@ -28,6 +28,8 @@ public class SeeYonInterFaceEntity extends BaseEntity { private String eventType; //表单名称 private String name; + //流程id + private String summaryId; public String getTabName() { return tabName; } @@ -99,4 +101,12 @@ public class SeeYonInterFaceEntity extends BaseEntity { public void setEventType(String eventType) { this.eventType = eventType; } + + public String getSummaryId() { + return summaryId; + } + + public void setSummaryId(String summaryId) { + this.summaryId = summaryId; + } } diff --git a/service/src/main/java/com/hzya/frame/seeyon/enums/ColEventTypeEnum.java b/service/src/main/java/com/hzya/frame/seeyon/enums/ColEventTypeEnum.java new file mode 100644 index 00000000..69b1af3e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/enums/ColEventTypeEnum.java @@ -0,0 +1,45 @@ +package com.hzya.frame.seeyon.enums; + +/** + * 流程事件类型枚举 + */ +public enum ColEventTypeEnum { + + ONBEFORESTART("onBeforeStart","流程发起前"), + ONSTART("onStart","流程发起"), + ONBEFORESTOP("onBeforeStop","终止前事件"), + ONSTOP("onStop","终止事件"), + ONBEFORECANCEL("onBeforeCancel","撤销前事件"), + ONCANCEL("onCancel","撤销事件"), + ONPROCESSFINISHED("onProcessFinished","结束事件"), + ONBEFOREFINISHWORKITEM("onBeforeFinishWorkitem","处理前事件"), + ONFINISHWORKITEM("onFinishWorkitem","处理事件"), + ONBEFORESTEPBACK("onBeforeStepBack","回退前事件"), + ONSTEPBACK("onStepBack","回退事件"), + ONBEFORETAKEBACK("onBeforeTakeBack","取回前事件"), + ONTAKEBACK("onTakeBack","取回事件"), + ; + private String type; + private String name; + + ColEventTypeEnum(String type, String name) { + this.type = type; + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/IPayBillDao.java b/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/IPayBillDao.java new file mode 100644 index 00000000..a0ec8db8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/IPayBillDao.java @@ -0,0 +1,33 @@ +package com.hzya.frame.seeyon.paybill.dao; + +import com.hzya.frame.seeyon.entity.SeeYonInterFaceEntity; +import com.hzya.frame.seeyon.paybill.entity.PayBillEntity; + +import java.util.List; +import java.util.Map; + +/** + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2023-08-30 10:27 + */ +public interface IPayBillDao { +/** + * + * @content 获取OA工程付款单数据 + * @author laborer + * @date 2024/6/20 0020 11:30 + * + */ + List getOaEngineerPay(PayBillEntity entity); +/** + * + * @content 修改推送状态 + * @author laborer + * @date 2024/6/21 0021 11:15 + * + */ + + int updateState(PayBillEntity pay); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/impl/PayBillDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/impl/PayBillDaoImpl.java new file mode 100644 index 00000000..3a753554 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/dao/impl/PayBillDaoImpl.java @@ -0,0 +1,32 @@ +package com.hzya.frame.seeyon.paybill.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.entity.SeeYonInterFaceEntity; +import com.hzya.frame.seeyon.paybill.dao.IPayBillDao; +import com.hzya.frame.seeyon.paybill.entity.PayBillEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +/** + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2023-08-30 10:27 + */ +@Repository(value = "PayBillDaoImpl") +public class PayBillDaoImpl extends MybatisGenericDao implements IPayBillDao { + + @DS("#entity.dataSourceCode") + @Override + public List getOaEngineerPay(PayBillEntity entity) { + return super.selectList("com.hzya.frame.seeyon.paybill.dao.impl.PayBillDaoImpl.PayBillEntity_list_base",entity); + } + @DS("#pay.dataSourceCode") + @Override + public int updateState(PayBillEntity pay) { + return super.update("com.hzya.frame.seeyon.paybill.dao.impl.PayBillDaoImpl.PayBillEntity_update",pay); + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.java b/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.java new file mode 100644 index 00000000..1a9308de --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.java @@ -0,0 +1,107 @@ +package com.hzya.frame.seeyon.paybill.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.util.List; +import java.util.Map; + +/** + * + * @content 付款結算單 + * @author laborer + * @date 2024/6/20 0020 11:07 + * + */ + +public class PayBillEntity extends BaseEntity { + private String billDate;//付款日期 + private String primalMoney;//付款金额信息 + private String pkOppaccount;//付款银行信息 + private String pkSupplier;//供应商信息 + private String tableName;//表名称 + private String fieldName;//字段名称 + private String state;//推送状态 + private String pkOrg;//组织 + private String pkCustomer;//客户 + private String pk_oppaccount;//付款账户 + + public String getPkCustomer() { + return pkCustomer; + } + + public void setPkCustomer(String pkCustomer) { + this.pkCustomer = pkCustomer; + } + + public String getPk_oppaccount() { + return pk_oppaccount; + } + + public void setPk_oppaccount(String pk_oppaccount) { + this.pk_oppaccount = pk_oppaccount; + } + + public String getPkOrg() { + return pkOrg; + } + + public void setPkOrg(String pkOrg) { + this.pkOrg = pkOrg; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public String getFieldName() { + return fieldName; + } + + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + public String getBillDate() { + return billDate; + } + + public void setBillDate(String billDate) { + this.billDate = billDate; + } + + public String getPrimalMoney() { + return primalMoney; + } + + public void setPrimalMoney(String primalMoney) { + this.primalMoney = primalMoney; + } + + public String getPkOppaccount() { + return pkOppaccount; + } + + public void setPkOppaccount(String pkOppaccount) { + this.pkOppaccount = pkOppaccount; + } + + public String getPkSupplier() { + return pkSupplier; + } + + public void setPkSupplier(String pkSupplier) { + this.pkSupplier = pkSupplier; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.xml new file mode 100644 index 00000000..736d5914 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/entity/PayBillEntity.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + update ${tableName} set ${fieldName} = #{state} where id = #{id} + + + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/service/IPayBillService.java b/service/src/main/java/com/hzya/frame/seeyon/paybill/service/IPayBillService.java new file mode 100644 index 00000000..caad27a7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/service/IPayBillService.java @@ -0,0 +1,29 @@ +package com.hzya.frame.seeyon.paybill.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.paybill.entity.PayBillEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +import java.util.List; + +/** + * + * @content huoqu + * @author laborer获取OA付款单数据并推送BIP生成付款结算单 + * @date 2024/6/20 0020 11:19 + * + */ + +public interface IPayBillService extends IBaseService { +/** + * + * @content 工程付款单数据同步BIP + * @author laborer + * @date 2024/6/20 0020 11:24 + * + */ +JsonResultEntity sendEngineerPayBillToBip(JSONObject requestJson); + +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/paybill/service/impl/PayBillServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/paybill/service/impl/PayBillServiceImpl.java new file mode 100644 index 00000000..8eac7caa --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/paybill/service/impl/PayBillServiceImpl.java @@ -0,0 +1,105 @@ +package com.hzya.frame.seeyon.paybill.service.impl; + +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.bip.v3.v2207.util.BipUtil; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.paybill.dao.IPayBillDao; +import com.hzya.frame.seeyon.paybill.entity.PayBillEntity; +import com.hzya.frame.seeyon.paybill.service.IPayBillService; +import com.hzya.frame.seeyon.service.impl.SeeYonInterFaceImpl; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.jetbrains.annotations.NotNull; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * + * @content 付款单同步BIP + * @author laborer + * @date 2024/6/20 0020 15:20 + * + */ + +@Service("PayBillServiceImpl") +public class PayBillServiceImpl extends BaseService implements IPayBillService { + private static final Logger logger = LoggerFactory.getLogger(PayBillServiceImpl.class); + + @Autowired + private IPayBillDao payBillDao; + /** + * + * @content 工程付款单数据同步BIP + * @author laborer + * @date 2024/6/20 0020 11:24 + * + */ + @Override + public JsonResultEntity sendEngineerPayBillToBip(JSONObject requestJson) { + PayBillEntity entity = new PayBillEntity(); + requestJson.put("db_code","OA"); + entity.setDataSourceCode(requestJson.getString("db_code")); + ListpayBillEntityList = payBillDao.getOaEngineerPay(entity); + if(CollectionUtils.isNotEmpty(payBillEntityList)){ + for(PayBillEntity pay : payBillEntityList){ + String token = BipUtil.getBipToken("yonyou","8000230000"); + JSONObject main = bindingAdd(pay); + logger.info("工程付款单调用中台生成BIP付款结算单推送报文{}",main.toString()); + String result = BipUtil.sendU9cTOBipEsb(main.toString(),"8000230014",token); + logger.info("工程付款单调用中台生成BIP付款结算单返回结果{}",result); + JSONObject resultObj = JSON.parseObject(result); + boolean flag = resultObj.getBoolean("success"); + if(flag){ + pay.setState("Y"); + }else{ + pay.setState("N"); + } + pay.setDataSourceCode(requestJson.getString("db_code")); + payBillDao.updateState(pay); + // todo 后续在写吧(没字段等OA开了外网在创建),修改推送状态,避免再次查询 + } + } + return null; + } + + @NotNull + private JSONObject bindingAdd(PayBillEntity pay) { + JSONObject head = new JSONObject(); + head.put("pk_org","");//所属组织 + head.put("pk_group","");//集团 + head.put("bill_type","F5");//单据类型 默认F5 + head.put("trade_type","D5");//付款结算类型 默认D5 + head.put("source_flag","2");//付款结算类型 默认2 + head.put("bill_date",pay.getBillDate());//单据日期 + head.put("primal_money",pay.getPrimalMoney());//付款原币金额 + head.put("pk_currtype","CNY");//币种 + head.put("billmaker","");//制单人 + //处理明细数据,按照明细付款 多个明细生成多个付款结算单 + JSONArray detailsArr = new JSONArray(); + JSONObject body = new JSONObject(); + body.put("pk_org","");//所属组织 + body.put("pk_group","");//集团 + body.put("bill_type","F5");//单据类型 默认F5 + body.put("trade_type","D5");//付款结算类型 默认D5 + body.put("pk_currtype","CNY");//币种 + body.put("bill_date",pay.getBillDate());//单据日期 + body.put("pay_primal",pay.getPrimalMoney());//付款原币金额 + body.put("creationtime",pay.getBillDate());//创建时间 + body.put("direction","-1");//方向 :1=收;-1=付; + body.put("objecttype","0");//交易对象 + body.put("pk_customer",pay.getPkCustomer());//客户 + body.put("pk_account",pay.getPkOppaccount());//付款银行账号 + detailsArr.add(body); + JSONObject main = new JSONObject(); + main.put("head",head);//表头 + main.put("body",detailsArr);//明细数据 + return main; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/IRecBillDao.java b/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/IRecBillDao.java new file mode 100644 index 00000000..7668f65e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/IRecBillDao.java @@ -0,0 +1,31 @@ +package com.hzya.frame.seeyon.recbill.dao; + +import com.hzya.frame.seeyon.recbill.entity.RecBillEntity; + +import java.util.List; + +/** + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2023-08-30 10:27 + */ +public interface IRecBillDao { +/** + * + * @content 获取OA工程付款单数据 + * @author laborer + * @date 2024/6/20 0020 11:30 + * + */ + List getOaRecBill(RecBillEntity rec); +/** + * + * @content 修改推送状态 + * @author laborer + * @date 2024/6/21 0021 11:15 + * + */ + + int updateState(RecBillEntity rec); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/impl/RecBillDaoImpl.java b/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/impl/RecBillDaoImpl.java new file mode 100644 index 00000000..3682e8a2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/dao/impl/RecBillDaoImpl.java @@ -0,0 +1,30 @@ +package com.hzya.frame.seeyon.recbill.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.seeyon.recbill.dao.IRecBillDao; +import com.hzya.frame.seeyon.recbill.entity.RecBillEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2023-08-30 10:27 + */ +@Repository(value = "RecBillDaoImpl") +public class RecBillDaoImpl extends MybatisGenericDao implements IRecBillDao { + + @DS("#rec.dataSourceCode") + @Override + public List getOaRecBill(RecBillEntity rec) { + return super.selectList("com.hzya.frame.seeyon.recbill.dao.impl.RecBillDaoImpl.PayBillEntity_list_base",rec); + } + @DS("#rec.dataSourceCode") + @Override + public int updateState(RecBillEntity rec) { + return super.update("com.hzya.frame.seeyon.recbill.dao.impl.RecBillDaoImpl.PayBillEntity_update",rec); + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.java b/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.java new file mode 100644 index 00000000..5a271b5d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.java @@ -0,0 +1,104 @@ +package com.hzya.frame.seeyon.recbill.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * + * @content 付款結算單 + * @author laborer + * @date 2024/6/20 0020 11:07 + * + */ + +public class RecBillEntity extends BaseEntity { + private String billDate;//付款日期 + private String primalMoney;//付款金额信息 + private String pkOppaccount;//付款银行信息 + private String pkSupplier;//供应商信息 + private String tableName;//表名称 + private String fieldName;//字段名称 + private String state;//推送状态 + private String pkCustomer;//客户 + private String pkAccount;//收款账户 + private String pkOrg;//组织 + + public String getPkCustomer() { + return pkCustomer; + } + + public void setPkCustomer(String pkCustomer) { + this.pkCustomer = pkCustomer; + } + + public String getPkAccount() { + return pkAccount; + } + + public void setPkAccount(String pkAccount) { + this.pkAccount = pkAccount; + } + + public String getPkOrg() { + return pkOrg; + } + + public void setPkOrg(String pkOrg) { + this.pkOrg = pkOrg; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public String getFieldName() { + return fieldName; + } + + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + public String getBillDate() { + return billDate; + } + + public void setBillDate(String billDate) { + this.billDate = billDate; + } + + public String getPrimalMoney() { + return primalMoney; + } + + public void setPrimalMoney(String primalMoney) { + this.primalMoney = primalMoney; + } + + public String getPkOppaccount() { + return pkOppaccount; + } + + public void setPkOppaccount(String pkOppaccount) { + this.pkOppaccount = pkOppaccount; + } + + public String getPkSupplier() { + return pkSupplier; + } + + public void setPkSupplier(String pkSupplier) { + this.pkSupplier = pkSupplier; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.xml b/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.xml new file mode 100644 index 00000000..21f3fc7e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/entity/RecBillEntity.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + update ${tableName} set ${fieldName} = #{state} where id = #{id} + + + + + diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/service/IRecBillService.java b/service/src/main/java/com/hzya/frame/seeyon/recbill/service/IRecBillService.java new file mode 100644 index 00000000..96930a43 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/service/IRecBillService.java @@ -0,0 +1,26 @@ +package com.hzya.frame.seeyon.recbill.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * + * @content huoqu + * @author laborer获取OA付款单数据并推送BIP生成付款结算单 + * @date 2024/6/20 0020 11:19 + * + */ + +public interface IRecBillService extends IBaseService { +/** + * + * @content 工程付款单数据同步BIP + * @author laborer + * @date 2024/6/20 0020 11:24 + * + */ +JsonResultEntity sendRecBillToBip(JSONObject requestJson); + +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/recbill/service/impl/RecBillServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/recbill/service/impl/RecBillServiceImpl.java new file mode 100644 index 00000000..78497edf --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/recbill/service/impl/RecBillServiceImpl.java @@ -0,0 +1,104 @@ +package com.hzya.frame.seeyon.recbill.service.impl; + +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.bip.v3.v2207.util.BipUtil; +import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity; +import com.hzya.frame.seeyon.recbill.dao.IRecBillDao; +import com.hzya.frame.seeyon.recbill.entity.RecBillEntity; +import com.hzya.frame.seeyon.recbill.service.IRecBillService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.apache.commons.collections.CollectionUtils; +import org.jetbrains.annotations.NotNull; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * + * @content 付款单同步BIP + * @author laborer + * @date 2024/6/20 0020 15:20 + * + */ + +@Service("RecBillServiceImpl") +public class RecBillServiceImpl extends BaseService implements IRecBillService { + private static final Logger logger = LoggerFactory.getLogger(RecBillServiceImpl.class); + + @Autowired + private IRecBillDao payBillDao; + /** + * + * @content 工程付款单数据同步BIP + * @author laborer + * @date 2024/6/20 0020 11:24 + * + */ + @Override + public JsonResultEntity sendRecBillToBip(JSONObject requestJson) { + RecBillEntity entity = new RecBillEntity(); + requestJson.put("db_code","OA"); + entity.setDataSourceCode(requestJson.getString("db_code")); + ListpayBillEntityList = payBillDao.getOaRecBill(entity); + if(CollectionUtils.isNotEmpty(payBillEntityList)){ + for(RecBillEntity pay : payBillEntityList){ + String token = BipUtil.getBipToken("yonyou","8000230000"); + JSONObject main = bindingAdd(pay); + logger.info("银行流水收款信息数据{}",main.toString()); + String result = BipUtil.sendU9cTOBipEsb(main.toString(),"8000230016",token); + logger.info("银行流水收款信息数据{}",result); + JSONObject resultObj = JSON.parseObject(result); + boolean flag = resultObj.getBoolean("success"); + if(flag){ + pay.setState("Y"); + }else{ + pay.setState("N"); + } + pay.setDataSourceCode(requestJson.getString("db_code")); + payBillDao.updateState(pay); + // todo 后续在写吧(没字段等OA开了外网在创建),修改推送状态,避免再次查询 + } + } + return null; + } + + @NotNull + private JSONObject bindingAdd(RecBillEntity pay) { + JSONObject head = new JSONObject(); + head.put("pk_org","");//所属组织 + head.put("pk_group","");//集团 + head.put("bill_type","F4");//单据类型 默认F5 + head.put("trade_type","D4");//付款结算类型 默认D5 + head.put("source_flag","2");//付款结算类型 默认2 + head.put("bill_date",pay.getBillDate());//单据日期 + head.put("primal_money",pay.getPrimalMoney());//付款原币金额 + head.put("pk_currtype","CNY");//币种 + head.put("billmaker","");//制单人 + //处理明细数据,按照明细付款 多个明细生成多个付款结算单 + JSONArray detailsArr = new JSONArray(); + JSONObject body = new JSONObject(); + body.put("pk_org","");//所属组织 + body.put("pk_group","");//集团 + body.put("bill_type","F4");//单据类型 默认F5 + body.put("trade_type","D4");//付款结算类型 默认D5 + body.put("pk_currtype","CNY");//币种 + body.put("bill_date",pay.getBillDate());//单据日期 + body.put("pay_primal",pay.getPrimalMoney());//付款原币金额 + body.put("creationtime",pay.getBillDate());//创建时间 + body.put("direction","-1");//方向 :1=收;-1=付; + body.put("objecttype","0");//交易对象 + body.put("pk_customer",pay.getPkCustomer());//客户 + body.put("pk_account",pay.getPkAccount());//收款银行账号 + detailsArr.add(body); + JSONObject main = new JSONObject(); + main.put("head",head);//表头 + main.put("body",detailsArr);//明细数据 + return main; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/ICfsLogService.java b/service/src/main/java/com/hzya/frame/seeyon/service/ICfsLogService.java deleted file mode 100644 index 235d1840..00000000 --- a/service/src/main/java/com/hzya/frame/seeyon/service/ICfsLogService.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.hzya.frame.seeyon.service; - -import com.hzya.frame.seeyon.entity.CfsLogEntity; -import com.hzya.frame.web.entity.JsonResultEntity; - -/** - * @Description oa单据推送交行日志 - * @Author xiangerlin - * @Date 2024/3/18 13:40 - **/ -public interface ICfsLogService { - - /** - * 保存日志 - * @param entity - * @return - */ - JsonResultEntity importCfsLog(CfsLogEntity entity); - -} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/ICtpAttachmentService.java b/service/src/main/java/com/hzya/frame/seeyon/service/ICtpAttachmentService.java new file mode 100644 index 00000000..3af20d9d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/ICtpAttachmentService.java @@ -0,0 +1,20 @@ +package com.hzya.frame.seeyon.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.entity.CtpAttachmentEntity; + +/** + * @Description seeyon 附件关系 + * @Author xiangerlin + * @Date 2024/6/17 15:30 + **/ +public interface ICtpAttachmentService extends IBaseService { + /** + * 保存附件关系表 + * @param fileUrl ctp_file id + * @param col_summary_id col_summary id + * @param sub_reference 随机uuid + * @return + */ + CtpAttachmentEntity saveAttachment(String fileUrl, String col_summary_id, String sub_reference)throws Exception; +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/ICtpFileService.java b/service/src/main/java/com/hzya/frame/seeyon/service/ICtpFileService.java new file mode 100644 index 00000000..b34826ef --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/ICtpFileService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.seeyon.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.seeyon.entity.CtpFileEntity; + +/** + * @Description seeyon 附件 + * @Author xiangerlin + * @Date 2024/6/17 15:23 + **/ +public interface ICtpFileService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/ISeeYonInterFace.java b/service/src/main/java/com/hzya/frame/seeyon/service/ISeeYonInterFace.java index c98fabbd..762023b7 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/service/ISeeYonInterFace.java +++ b/service/src/main/java/com/hzya/frame/seeyon/service/ISeeYonInterFace.java @@ -1,16 +1,9 @@ package com.hzya.frame.seeyon.service; import com.alibaba.fastjson.JSONObject; -import com.baomidou.dynamic.datasource.annotation.DS; -import com.hzya.frame.seeyon.entity.OAWorkflowEventDataEntity; -import com.hzya.frame.seeyon.entity.SeeyonEntity; -import com.hzya.frame.seeyon.service.impl.CfsLogServiceImpl; -import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; import com.hzya.frame.web.entity.JsonResultEntity; -import java.util.List; -import java.util.Map; - /** * 致远OA接口类 * @author 👻👻👻👻👻👻👻👻👻👻 gjh @@ -30,15 +23,7 @@ public interface ISeeYonInterFace { **/ JsonResultEntity thirdInterfaceSend(JSONObject requestData); - /*** - * @Content:通过类型获取OA数据1 - * @Author 👻👻👻👻yqh👻👻👻👻 - * @Date2023年8月30日10:20:17seeYonPlugInInterfaceEntrance - * @Param requestData - * @return com.hzya.frame.web.entity.JsonResultEntity - **/ - JsonResultEntity thirdInterfacegetOADataByType(JSONObject requestData); /*** * @Content: 提供给OA的标准接口方法,包含参数 entity 为OA 的data信息, , eventType 为事件类型 @@ -62,75 +47,6 @@ public interface ISeeYonInterFace { * @return string **/ JsonResultEntity thirdInterfaceSeeYonPlugInInterfaceEntrance(JSONObject requestData); -// String seeYonPlugInInterfaceEntrance(OAWorkflowEventDataEntity entity,String eventType); - - /*** - * @Content:通过附件关系获取fileurl - * @Author 👻👻👻👻yqh👻👻👻👻 - * @Date 2023年9月4日13:03:35 - * @Param requestData - * @return com.hzya.frame.web.entity.JsonResultEntity - **/ - - /**** - * 客户服务器无法外网连接数据库,临时使用初始化方法 - * @content: - * @author 👻👻👻👻👻👻👻👻 gjh - * @date 2023-09-05 8:43 - * @param - * @return com.hzya.frame.web.entity.JsonResultEntity - **/ - JsonResultEntity thirdInterfaceInitBipSupplierToOa(JSONObject jsonObject) throws Exception; - List getFileUrl(String sub_reference); - /*** - * - * @content:推送无流程表单同步钉钉 - * @author 👻👻👻👻👻👻👻👻 yuqh - * @date 2023年9月2日12:56:18 - * @param - * @return void - **/ - JsonResultEntity sendConDocTodd(JSONObject requestJson); - /*** - * - * @content:流程表单传递钉钉 - * @author 👻👻👻👻👻👻👻👻 yuqh - * @date 2023年9月5日09:38:38 - * @param - * @return void - **/ - JsonResultEntity sendProcessDocument(JSONObject requestJson); - - /** - * - * @content 杭泰OA付款单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/10/12 15:50 - * **/ - - String sendpayMentToCFS(Map businessData); - - /** - * - * @content 杭泰OA报销单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/10/16 15:26 - * **/ - String sendBusinessExpenseToCFS(Map map,String formApp); - - /** - * - * @content 杭泰OA资金归集,资金拨付,同名账户划转,借款单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/12/20 10:04 - * **/ - String sendOtherFourReceipt(Map map,String formApp); /*** @@ -141,5 +57,28 @@ public interface ISeeYonInterFace { */ JsonResultEntity thirdInterfaceSeeYonDefinitionRePush(JSONObject jsonObject) throws Exception; - void setCfslogService(ICfsLogService cfsLogService); + /** + * seeyon流程事件监听前置方法,绑定数据源 + * @param sysExtensionApi + * @return + * @throws Exception + */ + SysExtensionApiEntity colEventPre(SysExtensionApiEntity sysExtensionApi)throws Exception; + /** + * seeyon流程事件监听 + * @param jsonObject + * @return + * @throws Exception + */ + JsonResultEntity colEventListener(JSONObject jsonObject)throws Exception; + + /** + * seeyon流程事件监听后置方法,调用三方接口 + * @param jsonStr + * @param formAppId + * @param eventType + * @return + * @throws Exception + */ + String colEventPost(String jsonStr,String formAppId,String eventType)throws Exception; } diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/ISeeyonExtService.java b/service/src/main/java/com/hzya/frame/seeyon/service/ISeeyonExtService.java new file mode 100644 index 00000000..4f06472d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/ISeeyonExtService.java @@ -0,0 +1,29 @@ +package com.hzya.frame.seeyon.service; + +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * @Description seeyon扩展类 + * @Author xiangerlin + * @Date 2024/5/14 14:04 + **/ +public interface ISeeyonExtService { + + /** + * @Since 3.0 + * 英德赛 OA档案传U8 + * 根据不同formApp来调U8不同接口 + * @param entity + * @return + */ + SysExtensionApiEntity ydcSeeyon2u8(SysExtensionApiEntity entity); + + /** + * @Since 3.0 + * 回调方法 + * @param logEntity + */ + void ydcSeeyon2u8CallBack(SysMessageManageLogEntity logEntity); +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/impl/CfsLogServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/service/impl/CfsLogServiceImpl.java deleted file mode 100644 index 7cacaa50..00000000 --- a/service/src/main/java/com/hzya/frame/seeyon/service/impl/CfsLogServiceImpl.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.hzya.frame.seeyon.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.hzya.frame.seeyon.entity.CfsLogEntity; -import com.hzya.frame.seeyon.service.ICfsLogService; -import com.hzya.frame.seeyon.service.ISeeYonInterFace; -import com.hzya.frame.web.entity.JsonResultEntity; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.annotation.Lazy; -import org.springframework.stereotype.Service; - -import javax.annotation.PostConstruct; - -/** - * @Description oa单据推送交行日志 - * @Author xiangerlin - * @Date 2024/3/18 13:40 - **/ -@Service -public class CfsLogServiceImpl implements ICfsLogService { - - - @Autowired - protected ISeeYonInterFace seeYonInterFace; - - @PostConstruct - public void init() { - seeYonInterFace.setCfslogService(this); - } - /** - * 保存日志 - * - * @param entity - * @return - */ - @Override - public JsonResultEntity importCfsLog(CfsLogEntity entity) { - JSONArray jsonArray = new JSONArray(); - JSONObject data = new JSONObject(); - data.put("tab_name_ch",entity.getTab_name_ch()); - data.put("tab_name_en",entity.getTab_name_en()); - data.put("bill_code",getCode(entity)); - data.put("form_app_id",entity.getOaWorkflowEventDataEntity().getFormApp()); - data.put("event_type","onProcessFinished"); - data.put("id",entity.getOaWorkflowEventDataEntity().getId()); - data.put("title","");//流程标题,这个字段暂时取不到 - data.put("result",entity.getResult());//返回的报文 - if (StrUtil.isNotEmpty(entity.getResult())){ - JSONObject resultObj = JSONObject.parseObject(entity.getResult()); - String statusMsg = resultObj.getString("statusMsg");//交行返回的状态 - String serialNo = resultObj.getString("serialNo");//交行返回的流水号 - data.put("status_msg",statusMsg); - data.put("serial_no",serialNo); - } - jsonArray.add(data); - JSONObject jsonStr = new JSONObject(); - jsonStr.put("type","archives"); - jsonStr.put("templateCode","formmain_0527"); - jsonStr.put("attribute",jsonArray); - //1、解析数据 - //2、保存日志 - JSONObject jsonObject = new JSONObject(); - jsonObject.put("jsonStr",jsonStr); - JsonResultEntity jsonResultEntity = seeYonInterFace.thirdInterfaceSend(jsonObject); - return jsonResultEntity; - } - - private String getCode(CfsLogEntity entity){ - if (null != entity && null != entity.getOaWorkflowEventDataEntity()){ - String tableName = entity.getTab_name_en(); - String jsonStr = entity.getOaWorkflowEventDataEntity().getBusinessDataStr(); - JSONObject jsonObject = JSONObject.parseObject(jsonStr); - if (null != jsonObject){ - String bill_code=null; - switch (tableName){ - case "formmain_0307"://差旅报销单 - bill_code=jsonObject.getJSONObject("formmain_0307").getString("field0094"); - break; - case "formmain_0294"://招待费报销单 - bill_code=jsonObject.getJSONObject("formmain_0294").getString("field0053"); - break; - case "formmain_0314"://日常费用报销单 - bill_code=jsonObject.getJSONObject("formmain_0314").getString("field0220"); - break; - case "formmain_0362"://资金归集 - bill_code=jsonObject.getJSONObject("formmain_0362").getString("field0047"); - break; - case "formmain_0464"://资金拨付 - bill_code=jsonObject.getJSONObject("formmain_0464").getString("field0045"); - break; - case "formmain_0467"://同名账户划转 - bill_code=jsonObject.getJSONObject("formmain_0467").getString("field0045"); - break; - case "formmain_0293"://借款单(借还款) - bill_code=jsonObject.getJSONObject("formmain_0293").getString("field0056"); - break; - case "formmain_0327"://对公付款单 - bill_code = jsonObject.getJSONObject("formmain_0327").getString("field0146"); - } - return bill_code; - } - } - return null; - } -} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpAttachmentServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpAttachmentServiceImpl.java new file mode 100644 index 00000000..0ee1e68f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpAttachmentServiceImpl.java @@ -0,0 +1,70 @@ +package com.hzya.frame.seeyon.service.impl; + +import cn.hutool.core.date.DateUtil; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.seeyon.dao.ICtpAttachmentDao; +import com.hzya.frame.seeyon.entity.CtpAttachmentEntity; +import com.hzya.frame.seeyon.entity.CtpFileEntity; +import com.hzya.frame.seeyon.service.ICtpAttachmentService; +import com.hzya.frame.seeyon.service.ICtpFileService; +import com.hzya.frame.uuid.UUIDLong; +import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Date; +import java.util.List; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/17 15:31 + **/ +@Service(value = "ctpAttachmentService") +public class CtpAttachmentServiceImpl extends BaseService implements ICtpAttachmentService { + + private ICtpAttachmentDao ctpAttachmentDao; + @Autowired + private ICtpFileService ctpFileService; + @Autowired + public void setCtpAttachmentDao(ICtpAttachmentDao dao) { + this.ctpAttachmentDao = dao; + this.dao = dao; + } + + /** + * 保存附件关系表 + * + * @param fileUrl ctp_file id + * @param col_summary_id col_summary id + * @param sub_reference 随机uuid + * @return + */ + @Override + public CtpAttachmentEntity saveAttachment(String fileUrl, String col_summary_id, String sub_reference)throws Exception { + //查一下附件 + CtpFileEntity ctpFileEntity = new CtpFileEntity(); + ctpFileEntity.setId(fileUrl); + ctpFileEntity.setDataSourceCode(""); + List ctpFileList = ctpFileService.query(ctpFileEntity); + if (CollectionUtils.isNotEmpty(ctpFileList)){ + CtpFileEntity ctpFile = ctpFileList.get(0); + if (null != ctpFile){ + CtpAttachmentEntity ctpAttachmentEntity = new CtpAttachmentEntity(); + ctpAttachmentEntity.setId(String.valueOf(UUIDLong.longUUID())); + ctpAttachmentEntity.setFile_url(ctpFile.getId());//ctp_file表的id + ctpAttachmentEntity.setAtt_reference(col_summary_id);//业务表单的id + ctpAttachmentEntity.setSub_reference(sub_reference);//这个字段要保存到业务表附件到字段上 + ctpAttachmentEntity.setCategory("66");//这里写66 才可以显示图片 + ctpAttachmentEntity.setFilename(ctpFile.getFilename()); + ctpAttachmentEntity.setType(ctpFile.getType()); + ctpAttachmentEntity.setMime_type(ctpFile.getMime_type()); + ctpAttachmentEntity.setAttachment_size(ctpFile.getFile_size()); + ctpAttachmentEntity.setCreatedate(new Date()); + this.save(ctpAttachmentEntity); + return ctpAttachmentEntity; + } + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpFileServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpFileServiceImpl.java new file mode 100644 index 00000000..31f96553 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/impl/CtpFileServiceImpl.java @@ -0,0 +1,15 @@ +package com.hzya.frame.seeyon.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.seeyon.entity.CtpFileEntity; +import com.hzya.frame.seeyon.service.ICtpFileService; +import org.springframework.stereotype.Service; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/6/17 15:24 + **/ +@Service() +public class CtpFileServiceImpl extends BaseService implements ICtpFileService { +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeYonInterFaceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeYonInterFaceImpl.java index 9811a360..639065a7 100644 --- a/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeYonInterFaceImpl.java +++ b/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeYonInterFaceImpl.java @@ -1,53 +1,38 @@ package com.hzya.frame.seeyon.service.impl; import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.map.MapBuilder; import cn.hutool.core.util.StrUtil; import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpUtil; -import cn.hutool.json.JSONUtil; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; -import com.hzya.frame.bip.v3.v2207.dps.service.IPayMentService; -import com.hzya.frame.dateutil.DateUtil; import com.hzya.frame.dd.IDDInterfaceService; -import com.hzya.frame.seeyon.dao.ISeeYonDao; import com.hzya.frame.seeyon.dao.ISeeYonInterFaceDao; -import com.hzya.frame.seeyon.entity.CfsLogEntity; import com.hzya.frame.seeyon.entity.OAWorkflowEventDataEntity; import com.hzya.frame.seeyon.entity.SeeYonInterFaceEntity; -import com.hzya.frame.seeyon.entity.SeeyonEntity; -import com.hzya.frame.seeyon.service.ICfsLogService; import com.hzya.frame.seeyon.service.ISeeYonInterFace; -import com.hzya.frame.stringutil.StringUtil; -import com.hzya.frame.sys.service.IExcApiService; -import com.hzya.frame.u8c.Invmandoc.dao.IBdInvmandocDao; -import com.hzya.frame.u8c.Invmandoc.entity.BdInvmandocEntity; -import com.hzya.frame.u8c.Invmandoc.service.impl.BdInvmandocServiceImpl; - -import com.hzya.frame.u8c.bdCumandoc.dao.IBdCumandocDao; -import com.hzya.frame.u8c.bdCumandoc.entity.BdCumandocEntity; -import com.hzya.frame.u8c.bdcorp.entity.BdCorpEntity; -import com.hzya.frame.u8c.bdcorp.service.IBdCorpService; -import com.hzya.frame.u8c.util.U8cHttpUtil; -import com.hzya.frame.uuid.UUIDLong; -import com.hzya.frame.web.action.ApplicationContextUtil; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; +import com.hzya.frame.sysnew.application.api.service.ISysApplicationApiService; +import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; import com.hzya.frame.web.exception.BaseSystemException; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; -import org.checkerframework.checker.units.qual.K; -import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import javax.annotation.Resource; -import java.math.BigDecimal; -import java.util.*; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** * @author 👻👻👻👻👻👻👻👻👻👻 gjh @@ -67,14 +52,9 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { //速网esb地址 private static final String baseUrl = "http://hzya.ufyct.com:9067/kangarooDataCenter/entranceController/externalCallInterface"; @Resource - private IExcApiService iExcApiService ; - - private ICfsLogService cfsLogService; - @Override - public void setCfslogService(ICfsLogService cfsLogService) { - this.cfsLogService = cfsLogService; - } - + private ISysApplicationDatabaseDao sysApplicationDatabaseDao; + @Autowired + private ISysApplicationApiService sysApplicationApiService; /** * 定义所支持的事件静态代码块 */ @@ -111,17 +91,7 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { @Resource private ISeeYonInterFaceDao seeYonInterFaceDao; - @Resource - private IPayMentService payMentService; - @Autowired - private ISeeYonDao seeYonDao; - @Autowired - private IBdInvmandocDao invmandocDao; - @Autowired - private IBdCorpService corpService; - @Autowired - private IBdCumandocDao bdCumandocDao; /** * 钉钉相关接口service */ @@ -222,101 +192,8 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { JsonResultEntity result = null; if (ARCHIVESTYPE.equalsIgnoreCase(type)) { switch (templateCode){ - //供应商 - case "formmain_0360": - for (JSONObject jsonObject : attributeArray) { - //根据ID获取OA档案是否有数据,如果有数据则调用更新接口 - String tripartiteId = jsonObject.getString("tripartiteId"); - //如果三方系统ID为空则直接发起OA的基础档案 - if (StringUtils.isEmpty(tripartiteId)) { - String dataXml = createTempData(jsonObject, CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = saveNoProcess( "formmain_0360", "rest/form/import/", loginName, dataXml); - logger.info("发起无流程表单结果:" + result); - } else { - SeeYonInterFaceEntity seeYonInterFaceEntity = new SeeYonInterFaceEntity(); - seeYonInterFaceEntity.setTripartiteId(tripartiteId); - seeYonInterFaceEntity.setTabName(templateCode); - seeYonInterFaceEntity.setOaField("field0012"); - List archives = seeYonInterFaceDao.queryArchives(seeYonInterFaceEntity); - //如果根据三方系统ID有查询到数据,则走更新 - if (null != archives && archives.size() > 0) { - String dataXml = createTempData(jsonObject, UPDATEARCHIVES); - String loginName = "seeyon"; - String moduleId = archives.get(0).getId(); - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = upDateNoProcess(UPDATEARCHIVESURL, "formmain_0360", loginName, moduleId, dataXml); - logger.info("更新无流程表单结果:" + result); - } else { - String dataXml = createTempData(jsonObject, CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = saveNoProcess( "formmain_0360","rest/form/import/", loginName, dataXml); - logger.info("发起无流程表单结果:" + result); - } - } - } - break; - //组织 - case "formmain_0380": - for (JSONObject jsonObject : attributeArray) { - //根据ID获取OA档案是否有数据,如果有数据则调用更新接口 - String tripartiteId = jsonObject.getString("tripartiteId"); - //如果三方系统ID为空则直接发起OA的基础档案 - if (StringUtils.isEmpty(tripartiteId)) { - String dataXml = createOrgTempData(jsonObject, CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = saveNoProcess( "formmain_0380", "rest/form/import/", loginName, dataXml); - logger.info("BIP组织发起无流程表单结果:" + result); - } else { - SeeYonInterFaceEntity seeYonInterFaceEntity = new SeeYonInterFaceEntity(); - seeYonInterFaceEntity.setTripartiteId(tripartiteId); - seeYonInterFaceEntity.setTabName(templateCode); - seeYonInterFaceEntity.setOaField("field0008"); - List archives = seeYonInterFaceDao.queryArchives(seeYonInterFaceEntity); - //如果根据三方系统ID有查询到数据,则走更新 - if (null != archives && archives.size() > 0) { - String dataXml = createOrgTempData(jsonObject, UPDATEARCHIVES); - String loginName = "seeyon"; - String moduleId = archives.get(0).getId(); - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = upDateNoProcess(UPDATEARCHIVESURL, "formmain_0380", loginName, moduleId, dataXml); - logger.info("BIP组织更新无流程表单结果:" + result); - } else { - String dataXml = createOrgTempData(jsonObject, CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = saveNoProcess( "formmain_0380","rest/form/import/", loginName, dataXml); - logger.info("BIP组织发起无流程表单结果:" + result); - } - } - } - break; - //保存交行cfs日志 - case "formmain_0527": - for (JSONObject jsonObject : attributeArray){ - String dataXml = createCfsTempData(jsonObject, CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - result = saveNoProcess( "formmain_0527","rest/form/import/", loginName, dataXml); - logger.info("BIP组织发起无流程表单结果:" + result); - } + //预留的 + case "abc123": break; } } @@ -349,2910 +226,78 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { /** 表单表的FORM ID,用此字段标记是哪个流程*/ String formApp = entity.getFormApp(); - + //formApp 最好过滤一下 String result = null; - /** 根据事件类型处理相关事件*/ - switch (eventType) { - /** 发起前事件*/ - case "onBeforeStart": - break; - /** 发起事件*/ - case "onStart": - break; - /** 终止前事件*/ - case "onBeforeStop": - break; - /** 终止事件*/ - case "onStop": - break; - /** 撤销前事件*/ - case "onBeforeCancel": - break; - /** 撤销事件*/ - case "onCancel": - break; - /** 结束事件*/ - case "onProcessFinished": - /** 根据form处理相关业务表单的数据*/ - switch (formApp) { - // todo 杭泰 - case "8829094357593836499": - //发起钉钉审批单据 - result = ddApproveFinish(businessData); - break; - //杭泰正式环境审批单 - case "9158638526010969190"://出差申请单 - //发起钉钉审批单据 - result = ddApproveFinish(formBeanData);//考勤 - logger.info("考勤返回数据"+result); - result = boundData(businessData,formApp);//流程结束归档钉钉 - logger.info("归档钉钉返回数据"+result); - break; - case "-1294748925451877119"://本地测试环境 - result = ddApproveFinish(businessData); - break; - case "-2680578642756943477"://对公付款单 - result = boundData(businessData,formApp); - logger.info("对公付款单返回数据:{}",result); - result = sendpayMentToCFS(businessData); - logger.info("对公付款单传递CFS返回数据:{}",result); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("对公付款单","formmain_0327",entity,result)); - break; - case "-8072984621869285290"://开票申请 - result = boundData(businessData,formApp); - break; - case "-321958445006631163"://差旅费报销单 - result = boundData(businessData,formApp); - logger.info("差旅费报销单返回数据:{}",result); - result=sendBusinessExpenseToCFS(businessData, formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("差旅报销单","formmain_0307",entity,result)); - break; - case "-4485599744122928342"://招待费报销单 - result = boundData(businessData,formApp); - logger.info("招待费报销单返回数据:{}",result); - result=sendBusinessExpenseToCFS(businessData, formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("招待费报销单","formmain_0294",entity,result)); - break; - case "4728403652378707515"://日常费用报销单 - result = boundData(businessData,formApp); - logger.info("日常费用报销单返回数据:{}",result); - result=sendBusinessExpenseToCFS(businessData, formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("日常费用报销单","formmain_0314",entity,result)); - break; - case "910366613209564645"://资金归集 - result=sendOtherFourReceipt(businessData,formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("资金归集","formmain_0362",entity,result)); - break; - case "-102527561419044497"://资金拨付 - result=sendOtherFourReceipt(businessData,formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("资金拨付","formmain_0464",entity,result)); - break; - case "-1193625514072190978"://同名账户划转 - result=sendOtherFourReceipt(businessData,formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("同名账户划转","formmain_0467",entity,result)); - break; - case "4645133897573090505"://借款单(借还款) - result=sendOtherFourReceipt(businessData,formApp); - //保存日志 - cfsLogService.importCfsLog(new CfsLogEntity("借款单(借还款)","formmain_0293",entity,result)); - break; - //todo 速网 - case "9052446288734537446"://速网存货档案 - result=boundDataSW(businessData,formApp); - break; - case "-7835496631017455043"://速网客商档案 - result=boundDataSW(businessData,formApp); - break; - case "-4417416588206651590"://速网销售订单 - result=boundDataSW(businessData,formApp); - break; - case "7910359204154002618"://速网采购订单 - result = boundDataSW(businessData,formApp); - break; - case "852319851043310560"://采购付款单 - result = boundDataSW(businessData,formApp); - break; - case "-4882495686115769173"://出入库申请单 - result = boundDataSW(businessData,formApp); - break; - default: - return BaseResult.getFailureMessageEntity("未匹配到表单!当前formID:" + formApp, "", ""); - } - break; - /** 处理前事件*/ - case "onBeforeFinishWorkitem": - /** 根据form处理相关业务表单的数据*/ - switch (formApp) { - case "8829094357593836499": - //发起钉钉单据 - ddApproveFinish(businessData); - break; - default: - - return BaseResult.getFailureMessageEntity("未匹配到表单!当前formID:" + formApp, ""); - } - break; - /** 处理事件*/ - case "onFinishWorkitem": - break; - /** 回退前事件*/ - case "onBeforeStepBack": - break; - /** 回退事件*/ - case "onStepBack": - break; - /** 取回前事件*/ - case "onBeforeTakeBack": - break; - /** 取回事件*/ - case "onTakeBack": - break; - default: -// throw new RuntimeException("传入了非法事件类型!请参照:" + eventTypeBuffer.toString()); - return BaseResult.getFailureMessageEntity("传入了非法事件类型!请参照:" + eventTypeBuffer.toString(), "", ""); - } - return BaseResult.getSuccessMessageEntity("传递成功", result); - } - - - private String ddApproveFinish(JSONObject formBeanData) { - JSONObject forMainData = formBeanData.getJSONObject("formmain_0302"); - JSONObject finishData = new JSONObject(); - String to_time = forMainData.getString("field0038"); - String from_time = forMainData.getString("field0036"); - finishData.put("userid", forMainData.get("field0083")); - finishData.put("biz_type", "2"); - finishData.put("from_time", from_time); - finishData.put("to_time", to_time); - finishData.put("duration_unit", "day"); - finishData.put("tag_name", "出差"); - finishData.put("calculate_model", "1"); - finishData.put("approve_id", "approve_id"); - finishData.put("jump_url", "jump_url"); - JSONObject ddData = new JSONObject(); - ddData.put("code", "0002"); - ddData.put("data", finishData.toJSONString()); - JSONObject jsonObject = new JSONObject(); - jsonObject.put("jsonStr", ddData.toJSONString()); - return iddInterfaceService.senddd(jsonObject); - } - - /** - * 组装传递钉钉参数,通过表单ID区分杭泰 - * @param businessData - * @param formApp - * @return - */ - private String boundData(Map businessData, String formApp) { - String result = ""; - JSONObject finishData = new JSONObject(); try { - switch (formApp){ - case "-2680578642756943477"://对公付款单 - finishData = boundDataPay(businessData,formApp); - break; - case "-8072984621869285290"://开票申请 - finishData = boundDataInv(businessData,formApp); - break; - case "9158638526010969190"://出差申请单 - finishData = boundDataBusinessTravel(businessData,formApp); - break; - case "-321958445006631163"://差旅费报销单 - finishData = boundDataTravelExpense(businessData,formApp); - break; - case "-4485599744122928342"://招待费报销单 - finishData = boundDataEntertain(businessData,formApp); - break; - case "4728403652378707515"://日常费用报销单 - finishData = boundDatacurrentExpense(businessData,formApp); - break; - default: - break; - } - } catch (Exception e) { - e.printStackTrace(); - return e.getMessage(); - } - JSONObject jsonObject = new JSONObject(); - JSONObject data = new JSONObject(); - data.put("data",finishData); - data.put("code","0003"); - jsonObject.put("jsonStr",data); - - return iddInterfaceService.senddd(jsonObject); - } - /** - * 组装传递钉钉参数,通过表单ID区分杭泰 - * @param businessData - * @param formApp - * @return - */ - private String boundDataSW(Map businessData, String formApp) { - String result = ""; - try { - switch (formApp){ - case "-7835496631017455043"://客商档案-速网 - result = boundSWcustDoc(businessData,formApp); - break; - case "9052446288734537446"://存货档案-速网 - result = boundSWinvDoc(businessData,formApp); - break; - case "-4417416588206651590"://销售订单-速网 - result = boundSWSaleOrder(businessData,formApp); - break; - case "7910359204154002618"://采购订单-速网 - result = boundSWPUOrder(businessData,formApp); - break; - case "852319851043310560"://采购付款单-速网 - result = boundSWPUPy(businessData,formApp); - break; - case "-4882495686115769173"://出入库申请单 - result = boundSWWarehouse(businessData,formApp); - break; - - default: - break; - } - } catch (Exception e) { - e.printStackTrace(); - return e.getMessage(); - } - return result; - } - /*** - * @Content:出入库申请单 - * @Author 👻👻👻👻yqh👻👻👻👻 - * @Date 2023年11月22日13:51:47 - * @Param - * @return - **/ - private String boundSWWarehouse(Map businessData, String formApp) { - JSONObject result = new JSONObject(); - Object mainObj = businessData.get("formmain_0218"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - String field0061 = businessDatamain.getString("field0061"); - //通过类型判断推送不同的单据 - switch (field0061){ - case "8474321469568075747"://盘点如果其他出库明细不为空 生成U8C其他出库单,如果其他入库明细不为空生成U8C其他入库单 - result = warehouseCheck(businessData); - break; - case "5763280962704524077"://(报废)需要先生成U8C从A仓库到B仓库的调拨单(仓库通过DEE选择) 再生成B仓库的其他出库单 - result = scrap(businessData); - break; - case "-4669957817622313882"://(调拨),就生成U8C A公司调拨到B公司的调拨单仓库在表体,自己选择 - result = allotOrder(businessData); - break; - default: - logger.info("未匹配单该单据类型,不予推送该出入库申请单"); - break; - } - return result.toString(); - } - - /** - * (报废)需要先生成U8C从A仓库到B仓库的调拨单(仓库通过DEE选择) 再生成B仓库的其他出库单 - * @param businessData - * @return - */ - private JSONObject scrap(Map businessData) { - JSONObject result = new JSONObject(); - Object mainObj = businessData.get("formmain_0218"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - Object formson_0236obj = businessData.get("formson_0236"); - - //调拨订单 - JSONArray formson_0236Arr = JSON.parseArray(JSON.toJSONString(formson_0236obj)); - for(Object obj : formson_0236Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - String invId = body.getString("field0110"); - if(StrUtil.isEmpty(invId)){ - logger.info("未加载到调拨订单数据"); - } - //第一 组装数据推送调拨订单 - result = bindAllotOrder(businessDatamain,body); - //第一 组装数据推送其他出库单,因接口公用存在,在此拼接公用参数 - businessDatamain.put("field0124",body.getString("field0148"));//公司 - body.put("field0101",body.getString("field0107"));//仓库 - body.put("field0154",body.getString("field0151"));//库存组织 - body.put("field0108",body.getString("field0110"));//存货 - body.put("field0126",body.getString("field0077"));//应出数量 - body.put("field0058",body.getString("field0077"));//实出数量 - body.put("field0172",body.getString("field0173"));//是否批次 - - result = otherOutWarehouse(businessDatamain,body); - } - return result; - } - - /*** - * @Content:调拨 - * @Author 👻👻👻👻yqh👻👻👻👻 - * @Date 2023年11月23日09:06:34 - * @Param - * @return - **/ - private JSONObject allotOrder(Map businessData) { - JSONObject result = new JSONObject(); - Object mainObj = businessData.get("formmain_0218"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - Object formson_0236obj = businessData.get("formson_0236"); - - //调拨订单 - JSONArray formson_0236Arr = JSON.parseArray(JSON.toJSONString(formson_0236obj)); - for(Object obj : formson_0236Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - String invId = body.getString("field0110"); - if(StrUtil.isEmpty(invId)){ - logger.info("未加载到调拨订单数据"); - } - //组装数据推送调拨订单 - result = bindAllotOrder(businessDatamain,body); - } - return result; - } - - /** - * 组装数据推送调拨订单 - * @param businessDatamain - * @param body - * @return - */ - private JSONObject bindAllotOrder(JSONObject businessDatamain, JSONObject body) { - JSONObject result = new JSONObject(); - JSONObject sendData = new JSONObject(); - JSONArray billvo = new JSONArray(); - sendData.put("billvo",billvo); - JSONObject main = new JSONObject(); - billvo.add(main); - JSONObject parentvo = new JSONObject(); - JSONArray childrenvo = new JSONArray(); - main.put("parentvo",parentvo); - parentvo.put("cbiztypeid",businessDatamain.getString("field0133"));//业务流程 - parentvo.put("coperatorid",businessDatamain.getString("field0136"));//制单人 - parentvo.put("dbilldate",businessDatamain.getString("field0003"));//单据日期 - - parentvo.put("cincorpid",body.getString("field0148"));//调入公司 - parentvo.put("cincbid",body.getString("field0151"));//调入组织 - parentvo.put("cinwhid",body.getString("field0107"));//调入仓库 - parentvo.put("coutcorpid",body.getString("field0142"));//调出公司 - parentvo.put("coutcbid",body.getString("field0145"));//调出组织 - parentvo.put("coutwhid",body.getString("field0105"));//调出仓库 - parentvo.put("coutcurrtype",body.getString("field0167"));//币种 -// parentvo.put("vbdef1",businessDatamain.getString("field0162"));//店铺 -// parentvo.put("vbdef2",businessDatamain.getString("field0165"));//平台 -// parentvo.put("vbdef3",businessDatamain.getString("field0096"));//品牌 -// parentvo.put("vbdef4",businessDatamain.getString("field0097"));//业务中心 -// parentvo.put("vbdef5",businessDatamain.getString("field0098"));//业务模式 -// parentvo.put("pk_defdoc1",businessDatamain.getString("field0160"));//店铺 -// parentvo.put("pk_defdoc2",businessDatamain.getString("field0163"));//平台 -// parentvo.put("pk_defdoc3",businessDatamain.getString("field0118"));//品牌 -// parentvo.put("pk_defdoc4",businessDatamain.getString("field0120"));//业务中心 -// parentvo.put("pk_defdoc5",businessDatamain.getString("field0122"));//业务模式 - - parentvo.put("vdef10",businessDatamain.getString("field0097"));//业务中心 - parentvo.put("vdef11",businessDatamain.getString("field0098"));//业务模式 - parentvo.put("vdef12",businessDatamain.getString("field0162"));//店铺 - parentvo.put("vdef13",businessDatamain.getString("field0096"));//品牌 - parentvo.put("vdef14",businessDatamain.getString("field0165"));//平台 - - parentvo.put("pk_defdoc10",businessDatamain.getString("field0120"));//业务中心 - parentvo.put("pk_defdoc11",businessDatamain.getString("field0122"));//业务模式 - parentvo.put("pk_defdoc12",businessDatamain.getString("field0160"));//店铺 - parentvo.put("pk_defdoc13",businessDatamain.getString("field0118"));//品牌 - parentvo.put("pk_defdoc14",businessDatamain.getString("field0163"));//平台 - main.put("childrenvo",childrenvo); - //组装明细数据 - JSONObject childrenvoObj = new JSONObject(); - childrenvoObj.put("cinvbasid",body.getString("field0072"));//存货ID - childrenvoObj.put("nnum",body.getString("field0077"));//数量 - childrenvoObj.put("nnotaxprice",body.getString("field0080"));//无税单价 - childrenvoObj.put("nprice",body.getString("field0082"));//含税单价 - childrenvoObj.put("nnotaxmny",body.getString("field0083"));//无税金额 - childrenvoObj.put("ntaxrate",body.getString("field0171"));//税率 - childrenvoObj.put("nmny",body.getString("field0170"));//含税金额 - childrenvo.add(childrenvoObj); - main.put("childrenvo",childrenvo); - String apiCode = "8000050005"; - logger.info("调拨订单请求参数:{}",sendData.toString()); - result = U8cHttpUtil.sendOATOU8CEsb(sendData.toString(),apiCode); - return result; - } - - /*** - * @Content:出入库申请单-盘点 - * @Author 👻👻👻👻yqh👻👻👻👻 - * @Date 2023年11月22日13:52:08 - * @Param - * @return - **/ - private JSONObject warehouseCheck(Map businessData) { - JSONObject result = new JSONObject(); - Object mainObj = businessData.get("formmain_0218"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - Object formson_0219obj = businessData.get("formson_0219"); - - //其他入库单 - Object formson_0235obj = businessData.get("formson_0235"); - JSONArray formson_0235Arr = JSON.parseArray(JSON.toJSONString(formson_0235obj)); - for(Object obj : formson_0235Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - String invId = body.getString("field0063"); - if(StrUtil.isEmpty(invId)){ - logger.info("未加载到其他出库单数据"); - } - //组装数据推送其他出入单信息 - result = otherInWarehouse(businessDatamain,body); - } - //其他出库单 - JSONArray formson_0219Arr = JSON.parseArray(JSON.toJSONString(formson_0219obj)); - if(null != formson_0219Arr && formson_0219Arr.size()>0){ - for(Object obj : formson_0219Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - String invId = body.getString("field0108"); - if(StrUtil.isEmpty(invId)){ - logger.info("未加载到其他出库单数据"); - } - //组装数据推送其他出库单信息 - result = otherOutWarehouse(businessDatamain,body); - } - } - - - return result; - } - - /** - * 组装数据推送其他入库单信息 - * @param businessDatamain - * @param body - * @return - */ - private JSONObject otherInWarehouse(JSONObject businessDatamain, JSONObject body) { - JSONObject result = new JSONObject(); - JSONObject sendData = new JSONObject(); - JSONArray GeneralBillVO_4A = new JSONArray(); - sendData.put("GeneralBillVO_4A",GeneralBillVO_4A); - JSONObject main = new JSONObject(); - GeneralBillVO_4A.add(main); - JSONObject parentvo = new JSONObject(); - JSONArray childrenvo = new JSONArray(); - main.put("parentvo",parentvo); - parentvo.put("pk_corp",businessDatamain.getString("field0124"));//公司 - parentvo.put("coperatorid",businessDatamain.getString("field0136"));//制单人 - parentvo.put("dbilldate",businessDatamain.getString("field0003"));//单据日期 - parentvo.put("cwarehouseid",body.getString("field0102"));//仓库 - parentvo.put("pk_calbody",body.getString("field0157"));//库存组织 - parentvo.put("cdispatcherid",businessDatamain.getString("field0128"));//收发类别 - parentvo.put("cdptid",businessDatamain.getString("field0139"));//部门 -// parentvo.put("cbizid ",businessDatamain.getString(""));//业务员 - parentvo.put("vnote",businessDatamain.getString("field0006"));//备注 - parentvo.put("vdef10",businessDatamain.getString("field0097"));//业务中心 - parentvo.put("vdef11",businessDatamain.getString("field0098"));//业务模式 - parentvo.put("vdef12",businessDatamain.getString("field0162"));//店铺 - parentvo.put("vdef13",businessDatamain.getString("field0096"));//品牌 - parentvo.put("vdef14",businessDatamain.getString("field0165"));//平台 - - parentvo.put("pk_defdoc10",businessDatamain.getString("field0120"));//业务中心 - parentvo.put("pk_defdoc11",businessDatamain.getString("field0122"));//业务模式 - parentvo.put("pk_defdoc12",businessDatamain.getString("field0160"));//店铺 - parentvo.put("pk_defdoc13",businessDatamain.getString("field0118"));//品牌 - parentvo.put("pk_defdoc14",businessDatamain.getString("field0163"));//平台 - main.put("childrenvo",childrenvo); - //组装明细数据 - JSONObject childrenvoObj = new JSONObject(); - childrenvoObj.put("bonroadflag","N");//是否在途 不知道干啥的 默认否 - childrenvoObj.put("cinventoryid",body.getString("field0109"));//存货ID - childrenvoObj.put("flargess","N");//是否赠品,文档未标注,默认否 - childrenvoObj.put("nshouldinnum",body.getString("field0125"));//应收数量 - childrenvoObj.put("ninnum",body.getString("field0069"));//实收数量 - childrenvo.add(childrenvoObj); - main.put("childrenvo",childrenvo); - String apiCode = ""; - String wholemanaflag = body.getString("field0166"); - //入库:根据是否批次管理进行判断 - // 1、如果有批次管理就传递保存签字状态,同时传递一个批次号到U8C 用OA制单日期 格式为yyyyMMdd - // 2、没有批次管理就传递签字状态 - if("Y".equals(wholemanaflag)){ - Date field0003 = businessDatamain.getDate("field0003"); - if(null != field0003){ - String vbatchcode = DateUtil.dateToString(field0003,"yyyyMMdd"); - childrenvoObj.put("vbatchcode",vbatchcode); - } - - } - apiCode = "8000050004";//其他入保存即签字 - logger.info("其他入库单请求数据:{}",sendData.toString()); - result = U8cHttpUtil.sendOATOU8CEsb(sendData.toString(),apiCode); - return result; - } - - /** - * 组装数据推送其他出库单信息 - * @param businessDatamain - * @param body - * @return - */ - private JSONObject otherOutWarehouse(JSONObject businessDatamain, JSONObject body) { - JSONObject result = new JSONObject(); - JSONObject sendData = new JSONObject(); - JSONArray GeneralBillVO_4I = new JSONArray(); - sendData.put("GeneralBillVO_4I",GeneralBillVO_4I); - JSONObject main = new JSONObject(); - GeneralBillVO_4I.add(main); - JSONObject parentvo = new JSONObject(); - JSONArray childrenvo = new JSONArray(); - main.put("parentvo",parentvo); - parentvo.put("pk_corp",businessDatamain.getString("field0124"));//公司 - parentvo.put("coperatorid",businessDatamain.getString("field0136"));//制单人 - parentvo.put("dbilldate",businessDatamain.getString("field0003"));//单据日期 - parentvo.put("cwarehouseid",body.getString("field0101"));//仓库 - parentvo.put("pk_calbody",body.getString("field0154"));//库存组织 - parentvo.put("cdispatcherid",businessDatamain.getString("field0131"));//收发类别 - parentvo.put("cdptid",businessDatamain.getString("field0139"));//部门 -// parentvo.put("cbizid ",businessDatamain.getString(""));//业务员 - parentvo.put("vdef10",businessDatamain.getString("field0097"));//业务中心 - parentvo.put("vdef11",businessDatamain.getString("field0098"));//业务模式 - parentvo.put("vdef12",businessDatamain.getString("field0162"));//店铺 - parentvo.put("vdef13",businessDatamain.getString("field0096"));//品牌 - parentvo.put("vdef14",businessDatamain.getString("field0165"));//平台 - - parentvo.put("pk_defdoc10",businessDatamain.getString("field0120"));//业务中心 - parentvo.put("pk_defdoc11",businessDatamain.getString("field0122"));//业务模式 - parentvo.put("pk_defdoc12",businessDatamain.getString("field0160"));//店铺 - parentvo.put("pk_defdoc13",businessDatamain.getString("field0118"));//品牌 - parentvo.put("pk_defdoc14",businessDatamain.getString("field0163"));//平台 - main.put("childrenvo",childrenvo); - //组装明细数据 - JSONObject childrenvoObj = new JSONObject(); - childrenvoObj.put("bonroadflag","N");//是否在途 不知道干啥的 默认否 - childrenvoObj.put("cinventoryid",body.getString("field0108"));//存货ID - childrenvoObj.put("flargess","N");//是否赠品,文档未标注,默认否 - childrenvoObj.put("nshouldoutnum",body.getString("field0126"));//应出数量 - String apiCode = ""; - //1、出入库逻辑 - // 出库:根据是否批次管理进行判断 - // 1、如果有批次 传保存状态 传递应发 实发不不传递 - // 2、没有批次,保存即签字状态 - String field0172 = body.getString("field0172"); - if("Y".equals(field0172)){ - apiCode = "8000050013"; - }else{ - apiCode = "8000050006"; - childrenvoObj.put("noutnum",body.getString("field0058"));//实出数量 - } -// childrenvoObj.put("noutnum","0");//实出数量 -// childrenvoObj.put("vbatchcode","20231123");//批次 - childrenvo.add(childrenvoObj); - main.put("childrenvo",childrenvo); - - logger.info("其他出库单请求数据:{}",sendData.toString()); - result = U8cHttpUtil.sendOATOU8CEsb(sendData.toString(),apiCode); - return result; - } - - /** - * 存货档案-速网 - * @param businessData - * @param formApp - * @return - */ - private String boundSWinvDoc(Map businessData, String formApp) { - StringBuffer resultB = new StringBuffer(); - Object mainObj = businessData.get("formmain_0231"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject custDoc = new JSONObject(); - JSONObject invbasdoc = new JSONObject(); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("pk_invcl",businessDatamain.getString("field0020"));//存货分类主键 - parentvo.put("invcode",businessDatamain.getString("field0005"));//存货编码 - parentvo.put("invname",businessDatamain.getString("field0006"));//存货名称 -// parentvo.put("def1",businessDatamain.getString("field0033"));//旺店通存货分类名称 - parentvo.put("def1",businessDatamain.getString("field0009"));//旺店通存货分类名称 -// parentvo.put("pk_defdoc1",businessDatamain.getString("field0009"));//旺店通存货分类名称 -// parentvo.put("def3",businessDatamain.getString("field0031"));//公司主键 - parentvo.put("def3",businessDatamain.getString("field0029"));//公司主键 -// parentvo.put("pk_defdoc3",businessDatamain.getString("field0029"));//公司名称 - parentvo.put("invmnecode",businessDatamain.getString("field0007"));//货品编码(spu) - parentvo.put("def5",businessDatamain.getString("field0028"));//物料对应客商 客商主键 - parentvo.put("pk_measdoc",businessDatamain.getString("field0022"));//主计量单位 -// parentvo.put("pk_taxitems","40040000000000000082");//税目 固定传13 - parentvo.put("pk_taxitems",businessDatamain.getString("field0026"));//税目 固定传13 - parentvo.put("def6",businessDatamain.getString("field0017"));//标准零售价 - - parentvo.put("invpinpai",businessDatamain.getString("field0035"));//品牌 - parentvo.put("invbarcode",businessDatamain.getString("field0060"));//条形码 - parentvo.put("graphid",businessDatamain.getString("field0061"));//品牌自带编码 - parentvo.put("def2",businessDatamain.getString("field0036"));//三级分类 - parentvo.put("def4",businessDatamain.getString("field0043"));//GIV - parentvo.put("def5",businessDatamain.getString("field0011"));//主供应商 - parentvo.put("def12",businessDatamain.getString("field0056"));//是否专供 - parentvo.put("def7",businessDatamain.getString("field0057"));//是否在售 - parentvo.put("def8",businessDatamain.getString("field0039"));//四级分类 - parentvo.put("invshortname",businessDatamain.getString("field0053"));//存货简称 - parentvo.put("invspec",businessDatamain.getString("field0044"));//单品规格 - parentvo.put("invtype",businessDatamain.getString("field0045"));//规格码 - parentvo.put("def9",businessDatamain.getString("field0059"));//箱规1 - parentvo.put("length",businessDatamain.getString("field0047"));//长[mm] - parentvo.put("height",businessDatamain.getString("field0048"));//高[mm] - parentvo.put("width",businessDatamain.getString("field0049"));//宽[mm] - parentvo.put("unitweight",businessDatamain.getString("field0050"));//单品净重[g] - parentvo.put("def10",businessDatamain.getString("field0051"));//产地 - parentvo.put("def11",businessDatamain.getString("field0058"));//是否进口 - - custDoc.put("parentvo",parentvo); - JSONArray childrenvo = new JSONArray(); - custDoc.put("childrenvo",childrenvo); - invbasdoc.put("invbasdoc",custDoc); - logger.info("存货档案请求参数:{}",invbasdoc); - JSONObject jsonObjectAttribute = U8cHttpUtil.sendOATOU8CEsb(invbasdoc.toString(), "8000050002"); - logger.info("存货档案新增即保存返回参数解析之后得到的attribute值为:{}",jsonObjectAttribute); - resultB.append("存货档案新增:"+jsonObjectAttribute); - String success = jsonObjectAttribute.getString("status"); - if("success".equals(success)){ - JSONArray jsonArray = jsonObjectAttribute.getJSONArray("data"); - if(jsonArray.size()>0 && null!=jsonArray){ - for (Object object : jsonArray) { - JSONObject body = JSON.parseObject(JSON.toJSONString(object)); - String parentvoResult = body.getString("parentvo"); - JSONObject jsonObjectParentvo = JSONObject.parseObject(parentvoResult); - String pkInvbasdoc = jsonObjectParentvo.getString("pk_invbasdoc"); - logger.info("获取到的存货档案主键为:{}",pkInvbasdoc); - JSONArray invbasdocvoArr = new JSONArray(); - //查询所有公司,给每个公司都进行分配 -// List seeyonEntities = seeYonDao.selectOAListByCorp(new SeeyonEntity()); -// if(seeyonEntities.size()>0 && seeyonEntities !=null){ -// for (SeeyonEntity seeyonEntity : seeyonEntities) { -// JSONObject custbasvo = new JSONObject(); -// -// } -// } - JSONObject custbasvo = new JSONObject(); - custbasvo.put("pk_corp","all");//公司 - custbasvo.put("pk_measdoc","all");//所有库存组织 - custbasvo.put("pk_invbasdoc",pkInvbasdoc.trim());//存货档案编码 - invbasdocvoArr.add(custbasvo); - JSONObject sendParm = new JSONObject(); - sendParm.put("invbasdocvo",invbasdocvoArr); - logger.info("存货档案分配请求参数:{}",sendParm.toString()); - JSONObject jsonObject = U8cHttpUtil.sendOATOU8CEsb(sendParm.toString(), "8000050008"); - logger.info("存货档案分配返回参数解析之后得到的attribute值为:{}",jsonObject); - return resultB.append("存货档案分配:"+jsonObject).toString(); - } - } - return resultB.toString(); - } - return resultB.toString(); - } - - /** - * 客商档案-速网 - * @param businessData - * @param formApp - * @return - */ - private String boundSWcustDoc(Map businessData, String formApp) { - StringBuffer resultB = new StringBuffer(); - String result = ""; - JSONObject sourceData = new JSONObject(); - Object mainObj = businessData.get("formmain_0229"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject custDoc = new JSONObject(); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("custcode",businessDatamain.getString("field0020"));//客商编号 -// parentvo.put("custcode","01.01.098");//客商编号 - parentvo.put("custname",businessDatamain.getString("field0008"));//客商名称 - parentvo.put("custprop","0");//客商类型 0 - 外部单位,1 - 内部核算单位,2 - 内部法人单位,3 - 内部渠道成员 - parentvo.put("pk_areacl",businessDatamain.getString("field0036"));//地区分类 主键 - parentvo.put("taxpayerid",businessDatamain.getString("field0023"));//纳税人登记号 - parentvo.put("custshortname",businessDatamain.getString("field0008"));//客商简称 - parentvo.put("phone1",businessDatamain.getString("field0012"));//联系人电话 - parentvo.put("linkman1",businessDatamain.getString("field0011"));//联系人 - - parentvo.put("def1",businessDatamain.getString("field0061"));//省 - parentvo.put("def2",businessDatamain.getString("field0062"));//市 - parentvo.put("def3",businessDatamain.getString("field0063"));//区 - parentvo.put("def4",businessDatamain.getString("field0047"));//详细地址 - parentvo.put("mobilephone1",businessDatamain.getString("field0053"));//固定电话 - parentvo.put("legalbody",businessDatamain.getString("field0052"));//法人 - parentvo.put("def6",businessDatamain.getString("field0054"));//批准日期 - parentvo.put("def7",businessDatamain.getString("field0055"));//生效日期 - String field0072 = businessDatamain.getString("field0072"); - //todo 2024年2月28日09:10:22客户安东辉提出,如果标记为长期客户,则默认失效时间为 - if(StrUtil.isNotEmpty(field0072) && "7747067566458293711".equals(field0072)){ - String def8 = "9999-12-31"; - parentvo.put("def8",def8);//失效日期 - }else{ - parentvo.put("def8",businessDatamain.getString("field0056"));//失效日期 - } - -// parentvo.put("def9",businessDatamain.getString("field0070"));//结算币种 - parentvo.put("def10",businessDatamain.getString("field0058"));//经济类型 - parentvo.put("def11",businessDatamain.getString("field0064"));//内部联系人 - parentvo.put("def5",businessDatamain.getString("field0060"));//注册日期 - custDoc.put("parentvo",parentvo); - JSONArray banks = new JSONArray(); - //OA银行信息存在与主表上面 ,如果银行账号不为空才设置 - if(businessDatamain.getString("field0010")!=null && !"".equals(businessDatamain.getString("field0010")) - && businessDatamain.getString("field0037")!=null && !"".equals(businessDatamain.getString("field0037"))){ - JSONObject sendBody = new JSONObject(); - sendBody.put("accname",businessDatamain.getString("field0037"));//银行名称 传编码 - sendBody.put("account",businessDatamain.getString("field0010"));//银行账户 - sendBody.put("pk_accbank",businessDatamain.getString("field0038"));//开户行 - sendBody.put("defflag","Y");//是否默认 - sendBody.put("pk_currtype","CNY");//币种 填写编码 - sendBody.put("status","2");//修改状态 1修改 2新增 3删除 - banks.add(sendBody); - } - custDoc.put("banks",banks); - sourceData.put("cbdocvo",custDoc); - logger.info("客商档案请求参数:{}",sourceData); - JSONObject jsonObjectAttribute = U8cHttpUtil.sendOATOU8CEsb(sourceData.toString(), "8000050003"); - logger.info("客商档案新增即保存返回参数解析之后得到的attribute值为:{}",jsonObjectAttribute); - resultB.append("客商档案新增:"+jsonObjectAttribute); - String success = jsonObjectAttribute.getString("status"); - //传递成功之后进行分配,反之直接返回错误信息 - if ("success".equals(success)) { - JSONArray jsonArray = jsonObjectAttribute.getJSONArray("data"); - if (jsonArray.size() > 0 && null != jsonArray) { - for (Object object : jsonArray) { - JSONObject body = JSON.parseObject(JSON.toJSONString(object)); - String parentvoResult = body.getString("parentvo"); - JSONObject jsonObjectParentvo = JSONObject.parseObject(parentvoResult); - String pkCubasdoc = jsonObjectParentvo.getString("pk_cubasdoc"); - logger.info("获取到的客商档案主键为:{}", pkCubasdoc); - JSONArray custbasvoArr = new JSONArray(); - //查询所有公司,给每个公司都进行分配 - List seeyonEntities = seeYonDao.selectOAListByCorp(new SeeyonEntity()); - if (seeyonEntities.size() > 0 && seeyonEntities != null) { - for (SeeyonEntity seeyonEntity : seeyonEntities) { - JSONObject custbasvo = new JSONObject(); - //判断OA客商类型决定分配类型到组织 客商类型 -943875574826447587 客户 -516832932909398145 供应商 5622861136659237947 客商 - //如果未成功匹配,就只暂时不处理,让让接口报错(正常来说不存在匹配不到的情况)除非OA非必填 - String custprop = ""; - String custType = businessDatamain.getString("field0021"); - if(StrUtil.isNotEmpty(custType)){ - if("-943875574826447587".equals(custType)){ - custprop = "0"; - } - if("-516832932909398145".equals(custType)){ - custprop = "1"; - } - if("5622861136659237947".equals(custType)){ - custprop = "2"; - } - } - custbasvo.put("custprop",custprop);//客商属性 0:客户,1:供应商,2:客商 - custbasvo.put("pk_corp", seeyonEntity.getPk_corp().trim());//公司 - custbasvo.put("pk_cubasdoc", pkCubasdoc.trim());//客商基本档案主键 - custbasvoArr.add(custbasvo); - } - } - JSONObject sendParm = new JSONObject(); - sendParm.put("custbasvo", custbasvoArr); - logger.info("客商档案分配请求参数:{}", sendParm); - JSONObject jsonObject = U8cHttpUtil.sendOATOU8CEsb(sendParm.toString(), "8000050007"); - logger.info("客商档案分配返回参数解析之后得到的attribute值为:{}",jsonObject); - return resultB.append("客商档案分配:"+result).toString(); - } - } - } - return resultB.toString(); - } - - /** - * 采购付款单-速网 - * @param businessData - * @param formApp - * @return - */ - private String boundSWPUPy(Map businessData, String formApp)throws Exception { - JSONObject result = new JSONObject(); - JSONObject data = new JSONObject(); - JSONObject sourceData = new JSONObject(); - Object mainObj = businessData.get("formmain_0209"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject puPay = new JSONObject(); -// String dateStr = businessDatamain.getString("field0023"); - String dateStr = businessDatamain.getString("field0002"); - Date billDate = DateUtil.stringToDate(dateStr,"yyyy-MM-dd"); - String date = DateUtil.dateToString(billDate,"yyyy-MM-dd"); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("lrr",businessDatamain.getString("field0137"));//录入人 - parentvo.put("djlxbm","D3");//单据类型编码 field0101 - parentvo.put("dwbm",businessDatamain.getString("field0153"));//单位编码 - parentvo.put("djrq",date);//业务单据日期 - parentvo.put("shrq",date);//审核日期 - parentvo.put("deptid",businessDatamain.getString("field0161"));//部门 - - parentvo.put("shr",businessDatamain.getString("field0137"));//审核人 - parentvo.put("qrr",businessDatamain.getString("field0137"));//签字确认人 - parentvo.put("ybje",businessDatamain.getString("field0019"));//原币金额 - parentvo.put("bbje",businessDatamain.getString("field0019"));//本币金额 - parentvo.put("pj_jsfs",businessDatamain.getString("field0155"));// 结算方式 - //自定义项名称 - parentvo.put("zyx1",businessDatamain.getString("field0175"));//银行档案 - parentvo.put("zyx10",businessDatamain.getString("field0150"));//业务中心 - parentvo.put("zyx11",businessDatamain.getString("field0147"));//业务模式 - parentvo.put("zyx12",businessDatamain.getString("field0138"));//店铺 - parentvo.put("zyx13",businessDatamain.getString("field0144"));//品牌 - parentvo.put("zyx14",businessDatamain.getString("field0141"));//平台 - - - parentvo.put("zyx1",businessDatamain.getString("field0158"));// 银行 - parentvo.put("zyx2",businessDatamain.getString("field0165"));// R其他货币资金 - parentvo.put("hbbm",businessDatamain.getString("field0157"));//客商 - parentvo.put("prepay","N");//预收付款标志 如果是随订单预付款,必须打勾这个字段 默认Y - - puPay.put("parentvo",parentvo); - //报销信息明细表(明细表1) - Object formson_0210obj = businessData.get("formson_0210"); - JSONArray formson_0210Arr = JSON.parseArray(JSON.toJSONString(formson_0210obj)); - //formson_0224 - JSONArray childrenvo = new JSONArray(); - String orderBillCode = ""; - String xslxbm = ""; - for(Object obj : formson_0210Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject sendBody = new JSONObject(); - orderBillCode = body.getString("field0012");//采购订单号 - xslxbm = body.getString("field0164"); - sendBody.put("billdate",date);//单据日期 - sendBody.put("fx","1");//方向 - sendBody.put("ddh",orderBillCode);//订单号 - sendBody.put("jfbbje",body.getString("field0014"));//本币金额 - sendBody.put("jfybje",body.getString("field0014"));//原币金额 - - sendBody.put("hbbm",businessDatamain.getString("field0157"));//客商档案 -// sendBody.put("ddh",vordercode);//订单号 - childrenvo.add(sendBody); - } - parentvo.put("xslxbm",xslxbm);//销售订单业务流程 - parentvo.put("zyx15",orderBillCode);//采购订单号 - puPay.put("children",childrenvo); - JSONArray billvoArr = new JSONArray(); - billvoArr.add(puPay); - JSONObject billvo = new JSONObject(); - billvo.put("billvo",billvoArr); - logger.info("采购付款单请求参数:{}",billvo.toString()); - String apiCode = "8000050000"; - result = U8cHttpUtil.sendOATOU8CEsb(billvo.toString(),apiCode); - logger.info("采购付款单返回参数:{}",result.toString()); - return result.toString(); - } - - /** - * 采购订单-速网 - * @param businessData - * @param formApp - * @return - */ - private String boundSWPUOrder(Map businessData, String formApp) throws Exception{ - JSONObject result = new JSONObject(); - Object mainObj = businessData.get("formmain_0222"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - Object formson_0223obj = businessData.get("formson_0223"); - String parm = boundSWPUOrderMain(businessDatamain,formson_0223obj); - //推送采购订单到U8C - String apiCode = "8000050009"; - logger.info("采购订单推送参数:{}",parm); - result = U8cHttpUtil.sendOATOU8CEsb(parm,apiCode); - logger.info("采购订单返回参数:{}",result); - //判断该采购订单是否随订单进行付款 - String field0065 = businessDatamain.getString("field0065"); - String status = result.getString("status"); - if(StrUtil.isNotEmpty(field0065) && "1".equals(field0065)){ - if(!"falied".equals(status)){ - try { - Object formson_0224obj = businessData.get("formson_0224"); - String parmPay = boundSWPUOrderMainPay(businessDatamain,formson_0224obj,result); - apiCode = "8000050000"; - logger.info("采购付款单请求参数:{}",parmPay); - result = U8cHttpUtil.sendOATOU8CEsb(parmPay,apiCode); - logger.info("采购付款单返回参数:{}",result); - } catch (Exception e) { - e.printStackTrace(); - } - }else { - logger.info("采购订单传递失败:{}",result.getString("errormsg")); - } - } - return result.toString(); - } - //付款单信息 - private String boundSWPUOrderMainPay(JSONObject businessDatamain, Object formson_0224obj,JSONObject attribute)throws Exception{ - JSONObject main = new JSONObject(); - JSONObject puPay = new JSONObject(); - JSONArray billvo = new JSONArray(); - String failed = attribute.getString("failed"); - - JSONArray dataArr = attribute.getJSONArray("data"); - for(Object data:dataArr){ - JSONObject dataObj = JSON.parseObject(data.toString()); - JSONObject resultParentvo = dataObj.getJSONObject("parentvo"); - String corderid = resultParentvo.getString("corderid"); - String vordercode = resultParentvo.getString("vordercode"); - String dateStr = businessDatamain.getString("field0004"); - Date billDate = DateUtil.stringToDate(dateStr,"yyyy-MM-dd"); - String date = DateUtil.dateToString(billDate,"yyyy-MM-dd"); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("lrr",businessDatamain.getString("field0082"));//录入人 - parentvo.put("djlxbm","D3");//单据类型编码 field0101 - parentvo.put("dwbm",businessDatamain.getString("field0101"));//单位编码 - parentvo.put("djrq",date);//业务单据日期 - parentvo.put("shrq",date);//审核日期 -// parentvo.put("xslxbm",businessDatamain.getString("field0118"));//业务流程 - - parentvo.put("shr",businessDatamain.getString("field0082"));//审核人 - parentvo.put("qrr",businessDatamain.getString("field0082"));//签字确认人 - parentvo.put("ybje",businessDatamain.getString("field0017"));//原币金额 - parentvo.put("bbje",businessDatamain.getString("field0017"));//本币金额 - parentvo.put("pj_jsfs",businessDatamain.getString("field0128"));// 结算方式 - parentvo.put("deptid",businessDatamain.getString("field0109"));// 部门 - parentvo.put("bzbm",businessDatamain.getString("field0113"));// 币种 - //自定义项名称 - parentvo.put("zyx1",businessDatamain.getString("field0198"));//银行档案 - parentvo.put("zyx10",businessDatamain.getString("field0093"));//业务中心 - parentvo.put("zyx11",businessDatamain.getString("field0096"));//业务模式 - parentvo.put("zyx12",businessDatamain.getString("field0087"));//店铺 - parentvo.put("zyx13",businessDatamain.getString("field0090"));//品牌 - parentvo.put("zyx14",businessDatamain.getString("field0084"));//平台 - parentvo.put("zyx15",vordercode);//采购订单号 - - parentvo.put("zyx1",businessDatamain.getString("field0131"));// 银行 - parentvo.put("zyx2",businessDatamain.getString("field0161"));// 其他货币资金 - parentvo.put("hbbm",businessDatamain.getString("field0134"));//客商 - parentvo.put("prepay","Y");//预收付款标志 如果是随订单预付款,必须打勾这个字段 默认Y - - puPay.put("parentvo",parentvo); - JSONObject sendBody = new JSONObject(); - sendBody.put("billdate",date);//单据日期 - sendBody.put("fx","1");//方向 -// sendBody.put("jfbbje",businessDatamain.getString("field0066"));//本币金额 - sendBody.put("jfybje",businessDatamain.getString("field0066"));//原币金额 - JSONArray childrenvo = new JSONArray(); - sendBody.put("ddlx",corderid);//来源单据id -// sendBody.put("ddhh",corder_bid);//来源单据行id - sendBody.put("hbbm",businessDatamain.getString("field0134"));//客商档案 - sendBody.put("ddh",vordercode);//订单号 - childrenvo.add(sendBody); - //报销信息明细表(明细表1) -// JSONArray formson_0224Arr = JSON.parseArray(JSON.toJSONString(formson_0224obj)); - //formson_0224 -// JSONArray childrenvo = new JSONArray(); -// for(Object obj : formson_0224Arr){ -// JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); -// //如果付款原币金额为空,则不传递当前明细行,杜绝有空行存在 -// if(StrUtil.isEmpty(body.getString("field0054"))){ -// continue; -// } -// -// } - puPay.put("children",childrenvo); -// } - - } - billvo.add(puPay); - main.put("billvo",billvo); - return main.toString(); - } - - //采购订单信息 - private String boundSWPUOrderMain(JSONObject businessDatamain,Object formson_0223obj)throws Exception{ - JSONObject data = new JSONObject(); - JSONObject sourceData = new JSONObject(); - - JSONObject puOrder = new JSONObject(); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("cbiztype",businessDatamain.getString("field0118"));//业务流程 - parentvo.put("cdeptid",businessDatamain.getString("field0109"));//采购部门 -// parentvo.put("cdeptid","1007F81000000000K1Q0");//采购部门-速网先默认 用完注释 - parentvo.put("coperator",businessDatamain.getString("field0082"));//制单人 - //采购组织 - BdCorpEntity poCorp = new BdCorpEntity(); - String pkCorp = businessDatamain.getString("field0101"); -// String poCode = businessDatamain.getString("field0122"); -// if(StrUtil.isNotEmpty(pkCorp) && StrUtil.isNotEmpty(poCode)){ -// poCorp.setPkCorp(pkCorp); -// poCorp.setCode(poCode); -// poCorp = corpService.getPoPkByOrg(poCorp); -// if(null != poCorp){ -// parentvo.put("cpurorganization",poCorp.getPkPurorg());//采购组织 -// } -// } - parentvo.put("cpurorganization",businessDatamain.getString("field0121"));//采购组织 - parentvo.put("cvendormangid",businessDatamain.getString("field0103"));//供应商 - parentvo.put("pk_corp",pkCorp);//所属公司 - parentvo.put("vordercode",businessDatamain.getString("field0112"));//订单编号 - parentvo.put("dorderdate",businessDatamain.getString("field0004"));//订单日期 - parentvo.put("vmemo",businessDatamain.getString("field0025"));//备注 - -// if("0001F81000000000IGUU".equals(businessDatamain.getString("field0195"))){ -// parentvo.put("pk_defdoc18", businessDatamain.getString("field0201"));//是否补单主键 -// parentvo.put("vdef18", "是");//是否补单主键 -// } -// if("0001F81000000000IGUV".equals(businessDatamain.getString("field0195"))){ -// parentvo.put("pk_defdoc18", businessDatamain.getString("field0195"));//是否补单主键 -// parentvo.put("vdef18", "否");//是否补单主键 -// } - //自定义项主键 - parentvo.put("pk_defdoc10",businessDatamain.getString("field0093"));//业务中心 - parentvo.put("pk_defdoc11",businessDatamain.getString("field0096"));//业务模式 - parentvo.put("pk_defdoc12",businessDatamain.getString("field0087"));//店铺 - parentvo.put("pk_defdoc13",businessDatamain.getString("field0090"));//品牌 - parentvo.put("pk_defdoc14",businessDatamain.getString("field0084"));//平台 - parentvo.put("pk_defdoc15",businessDatamain.getString("field0155"));//收货仓库主键 - //自定义项名称 - parentvo.put("vdef10",businessDatamain.getString("field0095"));//业务中心 - parentvo.put("vdef11",businessDatamain.getString("field0098"));//业务模式 - parentvo.put("vdef12",businessDatamain.getString("field0089"));//店铺 - parentvo.put("vdef13",businessDatamain.getString("field0092"));//品牌 - parentvo.put("vdef14",businessDatamain.getString("field0086"));//平台 - parentvo.put("vdef15",businessDatamain.getString("field0155"));//收货仓库名称 - parentvo.put("ccurrencytypeid",businessDatamain.getString("field0113"));//原币币种ID - - - puOrder.put("parentvo",parentvo); - //报销信息明细表(明细表1) - - JSONArray formson_0223Arr = JSON.parseArray(JSON.toJSONString(formson_0223obj)); - //formson_0205 - JSONArray childrenvo = new JSONArray(); - for(Object obj : formson_0223Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject sendBody = new JSONObject(); - sendBody.put("pk_corp",body.getString("field0043"));//公司主键 - sendBody.put("vdef1",body.getString("field0154"));//折扣一金额 - //通过所属公司与存货编码获取存货管理档案主键 - BdInvmandocEntity invmandoc = new BdInvmandocEntity(); - invmandoc.setInvcode(body.getString("field0104")); - invmandoc.setPkCorp(pkCorp); - List bdInvmandocEntityList = invmandocDao.queryBdInvmandocByInvcode(invmandoc); - if(null != bdInvmandocEntityList && bdInvmandocEntityList.size()>0 ){ - for(BdInvmandocEntity inv : bdInvmandocEntityList){ - String pkInvmandoc = inv.getPkInvmandoc(); - if(null != invmandoc){ - sendBody.put("cmangid",pkInvmandoc);//存货信息 - break; - } - } - - } - String fale = "Y"; - logger.info("是否赠品:{}",body.getString("field0197")); - if ("2544055901016641496".equals(body.getString("field0197")) || null ==body.getString("field0197")) { //否 - fale = "N"; - } - sendBody.put("blargess", fale);//是否赠品 N Y - -// //获取收货库存组织主键 - String stockCode = body.getString("field0125"); - if(StrUtil.isNotEmpty(pkCorp) && StrUtil.isNotEmpty(stockCode)){ -// poCorp.setPkCorp(pkCorp); - poCorp.setCode(stockCode); - poCorp = corpService.getStockPkByOrg(poCorp); - if(null != poCorp){ - sendBody.put("pk_arrvcorp",poCorp.getPkCorp());//收货公司 - sendBody.put("pk_arrvstoorg",poCorp.getPkCalbody());//收货库存组织 - } - } - sendBody.put("ntaxrate",body.getString("field0135"));//税率 -// sendBody.put("pk_arrvstoorg",body.getString("field0126"));//收货库存组织 - sendBody.put("ccurrencytypeid",businessDatamain.getString("field0113"));//原币币种ID - sendBody.put("nordernum",body.getString("field0028"));//订货数量 - sendBody.put("norgtaxprice",body.getString("field0117"));//原币含税单价 - sendBody.put("noriginalcurprice",body.getString("field0116"));//原币无税单价 - sendBody.put("cwarehouseid",body.getString("field0116"));//原币无税单价 - childrenvo.add(sendBody); - } - puOrder.put("childrenvo",childrenvo); - sourceData.put("puordervo",puOrder); -// logger.info("采购订单请求参数:{}",sourceData); - return sourceData.toString(); - } - - /** - * 销售订单-速网 - * @param businessData - * @param formApp - * @return - */ - private String boundSWSaleOrder(Map businessData, String formApp) { - try { - Object mainObj = businessData.get("formmain_0202"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject jsonObject=new JSONObject(); - //判断单子是否是退货订单 1:是 0:否 - if("0".equals(businessDatamain.getString("field0105"))){ - jsonObject= boundSWSaleOrderMerge(businessData,"N"); - }else { - jsonObject= boundSWSaleOrderMerge(businessData, "Y"); - if ("success".equals(jsonObject.getString("status"))) { - //销售订单关闭 - boundSWSaleGeneral(businessData); - } - } - return jsonObject.toString(); + //流程事件处理 + result = colEventPost(jsonStr, formApp, eventType); }catch (Exception e){ - e.printStackTrace(); - logger.info("销售订单操作失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("传递失败",e.getMessage()); } - return null; - } - - private JSONObject boundSWSaleOrderMerge(Map businessData,String type)throws Exception { - StringBuffer stringBuffer=new StringBuffer(); - JSONObject sourceData = new JSONObject(); - Object mainObj = businessData.get("formmain_0202"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - String id = businessDatamain.getString("id");//oaid - String field0010= businessDatamain.getString("field0010"); - JSONObject saleorder = new JSONObject(); - String pkCorp = businessDatamain.getString("field0112"); - //组装主表数据 - JSONObject parentvo = new JSONObject(); - parentvo.put("vdef12", businessDatamain.getString("field0074"));//店铺 名称 - parentvo.put("pk_defdoc12", businessDatamain.getString("field0108"));//店铺 主键 - parentvo.put("vdef2", businessDatamain.getString("field0075"));//收件人姓名 - parentvo.put("vdef3", businessDatamain.getString("field0076"));//收件人手机 - parentvo.put("vdef4", businessDatamain.getString("field0077"));//邮费 - parentvo.put("vdef8", businessDatamain.getString("field0081"));//地址 - parentvo.put("vdef9", businessDatamain.getString("field0149"));//送样类型 - parentvo.put("vdef17", businessDatamain.getString("field0210"));//销售折让 - parentvo.put("vreceiptcode",field0010);//单据号 - parentvo.put("cbiztype", businessDatamain.getString("field0132"));//业务类型 主键 - parentvo.put("dbilldate", businessDatamain.getString("field0002"));//单据日期 - parentvo.put("pk_corp",pkCorp );//所属公司编码 主键 - //客户主键,需要通过所属公司以及客户编码获取客户管理档案主键 - String custCode = businessDatamain.getString("field0109"); - BdCumandocEntity cumandoc = new BdCumandocEntity(); - cumandoc.setPkCorp(pkCorp); - cumandoc.setCustcode(custCode); - ListbdCumandocEntityList = bdCumandocDao.selectIdByCodeAndCorp(cumandoc); - if(null != bdCumandocEntityList && bdCumandocEntityList.size()>0){ - for(BdCumandocEntity bdCumandocEntity : bdCumandocEntityList){ - if(null != bdCumandocEntity){ - String cumandocId = bdCumandocEntity.getPkCumandoc(); - parentvo.put("ccustomerid", cumandocId);//客户编码 主键 - } - } - } - parentvo.put("cdeptid", businessDatamain.getString("field0142"));//执行部门 主键 - parentvo.put("csalecorpid", businessDatamain.getString("field0137"));//销售组织 主键不能为空 - parentvo.put("ccalbodyid", businessDatamain.getString("field0202"));//库存组织 主键//todo -// parentvo.put("ccalbodyid", "1007F81000000000JEGU");//库存组织 主键//todo 等待修改 - parentvo.put("creceiptcorpid", businessDatamain.getString("field0110"));//开票单位 客户主键 - parentvo.put("ndiscountrate", businessDatamain.getString("field0093"));//整单折扣 - parentvo.put("bretinvflag", type);//退货标记 N Y - parentvo.put("vnote", businessDatamain.getString("field0188"));//备注 - parentvo.put("coperatorid", businessDatamain.getString("field0129"));//制单人 主键 - parentvo.put("vdef10", businessDatamain.getString("field0091"));//业务中心 名称 - parentvo.put("vdef9", businessDatamain.getString("field0149"));//送样类型 名称 - parentvo.put("vdef11", businessDatamain.getString("field0095"));//业务模式 名称 - parentvo.put("vdef13", businessDatamain.getString("field0096"));//品牌 名称 - parentvo.put("vdef14", businessDatamain.getString("field0097"));//平台 名称 - - parentvo.put("vdef15", businessDatamain.getString("field0146"));//原单单号 - parentvo.put("vdef16", businessDatamain.getString("field0131"));//原单主键 - -// if("0001F81000000000IGUU".equals(businessDatamain.getString("field0201"))){ -// parentvo.put("pk_defdoc18", businessDatamain.getString("field0201"));//是否补单主键 -// parentvo.put("vdef18", "是");//是否补单主键 -// } -// if("0001F81000000000IGUV".equals(businessDatamain.getString("field0201"))){ -// parentvo.put("pk_defdoc18", businessDatamain.getString("field0201"));//是否补单主键 -// parentvo.put("vdef18", "否");//是否补单主键 -// } - - parentvo.put("pk_defdoc10", businessDatamain.getString("field0125"));//业务中心 主键 - parentvo.put("pk_defdoc9", businessDatamain.getString("field0147"));//送样类型 主键 - parentvo.put("pk_defdoc11", businessDatamain.getString("field0123"));//业务模式 主键 - parentvo.put("pk_defdoc13", businessDatamain.getString("field0120"));//品牌 主键 - parentvo.put("pk_defdoc14", businessDatamain.getString("field0122"));//平台 主键 - if(StrUtil.isNotEmpty(businessDatamain.getString("field0155"))){ - parentvo.put("vdef5",businessDatamain.getString("field0155"));//省 - }else{ - parentvo.put("vdef5","无");//省 - } - if(StrUtil.isNotEmpty(businessDatamain.getString("field0156"))){ - parentvo.put("vdef6",businessDatamain.getString("field0156"));//市 - }else{ - parentvo.put("vdef6","无");//市 - } - if(StrUtil.isNotEmpty(businessDatamain.getString("field0157"))){ - parentvo.put("vdef7",businessDatamain.getString("field0157"));//区/县 - }else { - parentvo.put("vdef7","无");//区/县 - } - - - parentvo.put("vdef8",businessDatamain.getString("field0081"));//详细地址 - - saleorder.put("parentvo", parentvo); - //报销信息明细表(明细表1) - Object formson_0203obj = businessData.get("formson_0203"); - JSONArray childrenvo = new JSONArray(); - JSONArray formson_0203Arr = JSON.parseArray(JSON.toJSONString(formson_0203obj)); - if (formson_0203Arr.size() > 0 && null != formson_0203Arr) { - for (Object obj : formson_0203Arr) { - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject sendBody = new JSONObject(); - //通过所属公司与存货编码获取存货管理档案主键 - BdInvmandocEntity invmandoc = new BdInvmandocEntity(); - invmandoc.setInvcode(body.getString("field0012")); - if(StrUtil.isNotEmpty(businessDatamain.getString("field0177"))){ - invmandoc.setPkCorp(businessDatamain.getString("field0177"));//todo 2024年1月24日09:51:27 实施提出需要将存货传递为库存公司的管理主键 - }else { - invmandoc.setPkCorp(pkCorp); - } - - List bdInvmandocEntityList = invmandocDao.queryBdInvmandocByInvcode(invmandoc); - if(null != bdInvmandocEntityList && bdInvmandocEntityList.size()>0 ){ - for(BdInvmandocEntity inv : bdInvmandocEntityList){ - String pkInvmandoc = inv.getPkInvmandoc(); - if(null != invmandoc){ - sendBody.put("cinventoryid", pkInvmandoc);//存货编码 主键 + try { + /** 根据事件类型处理相关事件*/ + switch (eventType) { + /** 发起前事件*/ + case "onBeforeStart": + break; + /** 发起事件*/ + case "onStart": + //流程发起 新增grpu8单据 + break; + /** 终止前事件*/ + case "onBeforeStop": + break; + /** 终止事件*/ + case "onStop": + //流程终止,更新grpu8单据 + break; + /** 撤销前事件*/ + case "onBeforeCancel": + break; + /** 撤销事件*/ + case "onCancel": + //流程撤销,更新grpu8单据 + break; + /** 结束事件*/ + case "onProcessFinished": + break; + /** 处理前事件*/ + case "onBeforeFinishWorkitem": + /** 根据form处理相关业务表单的数据*/ + switch (formApp) { + case "abc123": break; - } + default: + return BaseResult.getFailureMessageEntity("未匹配到表单!当前formID:" + formApp, ""); } - - } - sendBody.put("cunitid", body.getString("field0116"));//单位 - sendBody.put("creccalbodyid", body.getString("field0202"));//收货库存组织 -// sendBody.put("creccalbodyid", "1007F81000000000JEGU");//收货库存组织 - - if(StrUtil.isNotEmpty(businessDatamain.getString("field0177"))&&!businessDatamain.getString("field0177").equals(pkCorp)){ - sendBody.put("cconsigncorpid", businessDatamain.getString("field0177"));//发货公司 - } - if("0".equals(businessDatamain.getString("field0105"))){ - sendBody.put("nnumber", body.getString("field0018"));//数量 - }else{ - sendBody.put("nnumber", "-"+body.getString("field0018"));//数量 - } - String fale = "Y"; - logger.info("是否赠品:{}",body.getString("field0023")); - if ("1289206401434863591".equals(body.getString("field0023")) || null ==body.getString("field0023")) { //否 - fale = "N"; - } - sendBody.put("blargessflag", fale);//是否赠品 N Y - sendBody.put("noriginalcurprice", body.getString("field0139"));//不含税单价 - String field0182 = body.getString("field0182"); - if("是".equals(field0182)){ - sendBody.put("blargessflag", "Y");//是否赠品 - } - sendBody.put("ntaxrate", "13%");//税率 - sendBody.put("noriginalcurtaxprice", body.getString("field0168"));//含税单价 - //sendBody.put("noriginalcursummny", body.getString("field0082"));//原币价税合计 - sendBody.put("cbodywarehouseid", body.getString("field0114"));//附表仓库 - sendBody.put("cadvisecalbodyid",businessDatamain.getString("field0136"));//发货库存组织 主键 - sendBody.put("vostatus", body.getString("new"));//状态 调用修改接口时使用,传值:修改时update、删除时delete、新增时new) - - childrenvo.add(sendBody); - } - } - saleorder.put("childrenvo", childrenvo); - sourceData.put("saleorder", saleorder); - logger.info("销售订单保存即审核请求参数:{}", sourceData); - JSONObject jsonObjectAttribute = U8cHttpUtil.sendOATOU8CEsb(sourceData.toString(), "8000050001"); - logger.info("销售订单保存即审核返回参数解析之后得到的attribute值为:{}", jsonObjectAttribute); - stringBuffer.append("销售订单保存即审核:" + jsonObjectAttribute); - SeeyonEntity seeyon = new SeeyonEntity(); - String success = jsonObjectAttribute.getString("status"); - if ("success".equals(success)) { - JSONArray jsonArray = jsonObjectAttribute.getJSONArray("data"); - if (jsonArray.size() > 0 && null != jsonArray) { - for (Object object : jsonArray) { - JSONObject body = JSON.parseObject(JSON.toJSONString(object)); - String parentvoResult = body.getString("parentvo"); - JSONObject jsonObjectParentvo = JSONObject.parseObject(parentvoResult); - String csaleid = jsonObjectParentvo.getString("csaleid"); - logger.info("获取到的销售订单主键为:{}", csaleid); - String corderBid=null; - String inventoryCode=null; - String childrenvoDetsils = body.getString("childrenvo"); - JSONArray jsonArrayDetails = JSONArray.parseArray(childrenvoDetsils); - if (jsonArrayDetails.size() > 0 && null != jsonArrayDetails) { - for (Object jsonArrayDetail : jsonArrayDetails) { - JSONObject details = JSON.parseObject(JSON.toJSONString(jsonArrayDetail)); - corderBid = details.getString("corder_bid"); - inventoryCode = details.getString("inventory_code");//存货编码 - logger.info("获取到的销售订单明细主键为:{},存货编码为:{}", corderBid,inventoryCode); - //根据销售订单单据编号查询销售订单档案主键id - seeyon.setField0010(field0010); - SeeyonEntity seeyonEntity = seeYonDao.selectOAListByformmain_0237(seeyon); - if(null !=seeyonEntity){ - //更新OA销售订单档案明细 - seeyon.setField0121(corderBid); - seeyon.setFormmain_id(seeyonEntity.getDa_id()); - seeyon.setField0012(inventoryCode); - seeYonDao.updateFormformson_0238(seeyon); - } - } - } - //更新OA销售订单档案 - seeyon.setField0120(csaleid); - seeyon.setField0010(field0010); - seeYonDao.updateFormformmain_0237(seeyon); - } - } - } else { - //更新OA销售订单档案 - seeyon.setField0120("2"); - seeyon.setField0010(field0010); - seeYonDao.updateFormformmain_0237(seeyon); - } - return jsonObjectAttribute; - } - - /** - * - * @content 销售订单关闭 - * @Param - * @Return - * @Author hecan - * @Date 2023/11/13 14:19 - * **/ - private String boundSWSaleGeneral(Map businessData) { - Object mainObj = businessData.get("formmain_0202"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject saleGeneral = new JSONObject(); - //组装关闭信息 - JSONObject closeinfo = new JSONObject(); - closeinfo.put("coperator",businessDatamain.get("field0128"));//操作员编码 - closeinfo.put("date_closeoropen",businessDatamain.get(""));//关闭/打开日期 - //组装查询信息 - JSONObject queryinfo = new JSONObject(); - queryinfo.put("code",businessDatamain.get("field0010"));//单据号 - queryinfo.put("corp",businessDatamain.get("field0111"));//公司编码 - queryinfo.put("date_begin",businessDatamain.get("field0002"));//单据开始日期 - queryinfo.put("date_end",businessDatamain.get("field0002"));//单据结束日期 - queryinfo.put("inventory",businessDatamain.get(""));//存货 - queryinfo.put("maker",businessDatamain.get(""));//制单人 - queryinfo.put("vendor",businessDatamain.get(""));//供应商 - saleGeneral.put("closeinfo",closeinfo); - saleGeneral.put("queryinfo",queryinfo); - //明细表 行关闭信息 - JSONArray rowCloseOpenInfo = new JSONArray(); - Object formson_0203obj = businessData.get("formson_0203"); - JSONArray detailsArr = JSON.parseArray(JSON.toJSONString(formson_0203obj)); - if(detailsArr.size() > 0 && detailsArr!= null) { - for (Object obj : detailsArr) { - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject sendBody = new JSONObject(); - sendBody.put("bifinventoryfinish", body.getString(""));//是否出库关闭 - sendBody.put("bifinvoicefinish", body.getString(""));//是否开票关闭 - sendBody.put("bifreceivefinish", body.getString(""));//是否发货关闭 - sendBody.put("bsquareendflag", body.getString(""));//是否结算关闭 - sendBody.put("crowno", body.getString(""));//表体行号(非整单关闭打开时必传) - sendBody.put("incoconfclose", body.getString(""));//是否收入确认关闭 - sendBody.put("isRowClose", body.getString(""));//是否行关闭 - rowCloseOpenInfo.add(sendBody); - } - } - saleGeneral.put("rowCloseOpenInfo",rowCloseOpenInfo); - logger.info("销售订单关闭请求参数:{}",saleGeneral); - String result = HttpRequest.post(baseUrl) - .header("usercode", "tbadmin")//头信息,多个头信息多次调用此方法即可 - .header("password", "c4ca4238a0b923820dcc509a6f75849b")//头信息,多个头信息多次调用此方法即可 - .header("trantype", "code")//头信息,多个头信息多次调用此方法即可 - .header("system", "SOWOW")//头信息,多个头信息多次调用此方法即可 - .header("appId", "800005")//头信息,多个头信息多次调用此方法即可 - .header("apiCode", "8000050011")//头信息,多个头信息多次调用此方法即可 - .header("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可 - .header("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可 - .body(saleGeneral.toString())//表单内容 - .timeout(20000)//超时,毫秒 - .execute().body(); - logger.info("销售订单关闭返回参数:{}",result); - return result; - } - - /** - * 日常费用报销单 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDatacurrentExpense(Map businessData, String formApp) { - JSONObject data = new JSONObject(); - Object mainObj = businessData.get("formmain_0314"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - //todo 所有日期传递时间戳 - //组装主表数据 - JSONObject main = new JSONObject(); - main.put("textField_lm5r47lv",businessDatamain.get("field0220"));//单据编号 - main.put("textField_lm5r47lx",businessDatamain.get("field0228"));//公司编码 - JSONArray field0275Arr = new JSONArray(); - String field0275 = businessDatamain.get("field0275").toString(); - field0275Arr.add(field0275); - - main.put("employeeField_lm5r47lz",field0275Arr);//申请人 - main.put("dateField_lm5r47m0",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0125"))));//申请日期 - - JSONArray field0290Arr = new JSONArray(); - String field0290 = businessDatamain.get("field0290").toString(); - field0290Arr.add(field0290); - - main.put("departmentSelectField_lm5r47m2",field0290Arr);//申请人部门 - main.put("textField_lm5r47m4",businessDatamain.get("field0188"));//入账公司 - main.put("textField_lm5r47m6",businessDatamain.get("field0187"));//申请人电话 - main.put("textField_lm5r47m8",businessDatamain.get("field0277"));//是否有借款 - main.put("textField_lm5r47ma",businessDatamain.get("field0199"));//申请说明 - main.put("textField_lm5r47mc",businessDatamain.get("field0230"));//费用预算年度 - main.put("textField_lm5r47me",businessDatamain.get("field0250"));//付款金额合计大写 - main.put("textField_lm5r47mg",businessDatamain.get("field0251"));//报销金额合计大写 - main.put("numberField_lm5r47mh",businessDatamain.get("field0252"));//报销金额合计小写 - main.put("numberField_lm5r47mj",businessDatamain.get("field0253"));//付款金额合计小写 - - //报销信息明细表(明细表1) - Object formson_0315obj = businessData.get("formson_0315"); - JSONArray formson_0315Arr = JSON.parseArray(JSON.toJSONString(formson_0315obj)); - //formson_0315 - JSONArray tableField_lm5r47mkArr = new JSONArray(); - for(Object obj : formson_0315Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5r47mk = new JSONObject(); - tableField_lm5r47mk.put("textField_lm5r47mm",body.getString("field0201"));//费用类别一级 - tableField_lm5r47mk.put("numberField_lm5r47mo",body.getString("field0237"));//年度当前可用余额 - tableField_lm5r47mk.put("numberField_lm5r47mq",body.getString("field0203"));//报销金额 - tableField_lm5r47mk.put("numberField_lm5r47ms",body.getString("field0204"));//不含税金额 - tableField_lm5r47mk.put("textField_lm5r47mu",body.getString("field0238"));//费用归属部门 - tableField_lm5r47mk.put("textField_lm5r47mw",body.getString("field0239"));//预算组织 - tableField_lm5r47mk.put("textField_lm5r47my",body.getString("field0240"));//项目 - tableField_lm5r47mk.put("textField_lm5r47n0",body.getString("field0242"));//备注 - tableField_lm5r47mk.put("textField_lm5r47n2",body.getString("field0243"));//年度费用预算ID - tableField_lm5r47mk.put("textField_lm5r47n4",body.getString("field0244"));//预算状态 - tableField_lm5r47mk.put("textField_lm5r47n6",body.getString("field0245"));//项目编码 - tableField_lm5r47mk.put("textField_lm5r47n8",body.getString("field0246"));//费用类别ID - tableField_lm5r47mk.put("attachmentField_lm5r47na",null);//发票上传 - tableField_lm5r47mk.put("textField_lm5r47nc",body.getString("field0256"));//票据编码 - tableField_lm5r47mk.put("textField_lm5r47ne",body.getString("field0257"));//费用名称 - tableField_lm5r47mk.put("textField_lm5r47ng",body.getString("field0258"));//发票号码 - tableField_lm5r47mk.put("numberField_lm5r47ni",body.getString("field0259"));//税率 - tableField_lm5r47mk.put("numberField_lm5r47nk",body.getString("field0260"));//税额 - tableField_lm5r47mk.put("textField_lm5r47nm",body.getString("field0261"));//费用类别二级 - tableField_lm5r47mk.put("textField_lm5okztj",body.getString("field0262"));//乘车人 - tableField_lm5r47mk.put("dateField_lm5okztl",DateUtil.dateStrToLong(String.valueOf(body.get("field0263"))));//日期 - tableField_lm5r47mk.put("dateField_lm5okztn",DateUtil.dateStrToLong(String.valueOf(body.get("field0264"))));//开始时间 - tableField_lm5r47mk.put("dateField_lm5okztp",DateUtil.dateStrToLong(String.valueOf(body.get("field0265"))));//到达时间 - tableField_lm5r47mk.put("numberField_lm5okztr",body.getString("field0266"));//发票金额 - tableField_lm5r47mk.put("textField_lm5okztt",body.getString("field0267"));//报销明细序号 - - tableField_lm5r47mkArr.add(tableField_lm5r47mk); - main.put("tableField_lm5r47mk",tableField_lm5r47mkArr); - } - - - //汇款信息明细表(明细表2) - Object formson_0317obj = businessData.get("formson_0317"); - JSONArray formson_0317Arr = JSON.parseArray(JSON.toJSONString(formson_0317obj)); - //formson_0317 - - JSONArray tableField_lm5r47nnArr = new JSONArray(); - for(Object obj : formson_0317Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5r47nn = new JSONObject(); - tableField_lm5r47nn.put("textField_lm5okztv",body.getString("field0213"));//汇款信息序号 - tableField_lm5r47nn.put("textField_lm5okztx",body.getString("field0214"));//付款方式 - tableField_lm5r47nn.put("numberField_lm5okztz",body.getString("field0215"));//付款金额 - tableField_lm5r47nn.put("textField_lm5okzu1",body.getString("field0268"));//付款方开户名称 - tableField_lm5r47nn.put("textField_lm5okzu3",body.getString("field0269"));//付款方账号 - tableField_lm5r47nn.put("textField_lm5okzu7",body.getString("field0216"));//收款人开户名称 - tableField_lm5r47nn.put("textField_lm5okzu9",body.getString("field0217"));//收款人账号 - - tableField_lm5r47nnArr.add(tableField_lm5r47nn); - main.put("tableField_lm5r47nn",tableField_lm5r47nnArr); - } - - - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0275")); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-J1A66U81Y9ZD0ELKCXNT5DV0A4L83MJK3R5MLQ"); - return data; - } - - /** - * 招待费报销单 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDataEntertain(Map businessData, String formApp) { - JSONObject data = new JSONObject(); - //todo 所有日期传递时间戳 - Object mainObj = businessData.get("formmain_0294"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - //组装主表数据 - JSONObject main = new JSONObject(); - main.put("textField_lm5okzr8",businessDatamain.get("field0093"));//关联招待申请单 - main.put("textField_lm5okzra",businessDatamain.get("field0053"));//单据编号 - JSONArray field0157Arr = new JSONArray(); - String field0157 = businessDatamain.get("field0157").toString(); - field0157Arr.add(field0157); - - main.put("employeeField_lm5okzrc",field0157Arr);//申请人 - main.put("dateField_lm5okzre",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0041"))));//申请日期 - JSONArray field0172Arr = new JSONArray(); - String field0172 = businessDatamain.get("field0172").toString(); - field0172Arr.add(field0172); - - main.put("departmentSelectField_lm5okzrg",field0172Arr);//申请人部门 - main.put("textField_lm5okzri",businessDatamain.get("field0080"));//入账公司 - main.put("textField_lm5okzrk",businessDatamain.get("field0081"));//申请人电话 - main.put("textField_lm5okzrm",businessDatamain.get("field0082"));//客户单位 - main.put("textField_lm5okzro",businessDatamain.get("field0083"));//客户人数 - main.put("textField_lm5okzrq",businessDatamain.get("field0084"));//陪同人数 - main.put("textField_lm5okzrs",businessDatamain.get("field0089"));//招待标准 - main.put("textField_lm5okzru",businessDatamain.get("field0090"));//报销说明 - main.put("numberField_lm5okzrw",businessDatamain.get("field0104"));//银行支付合计 - main.put("textField_lm5okzry",businessDatamain.get("field0108"));//公司编码 - main.put("numberField_lm5okzs0",businessDatamain.get("field0110"));//费用预算年度 - main.put("textField_lm5okzs2",businessDatamain.get("field0114"));//付款金额合计大写 - main.put("textField_lm5okzs4",businessDatamain.get("field0115"));//报销信息合计大写 - main.put("numberField_lm5okzs6",businessDatamain.get("field0116"));//报销金额合计小写 - main.put("numberField_lm5okzs8",businessDatamain.get("field0117"));//付款信息合计小写 - main.put("textField_lm5okzsa",businessDatamain.get("field0118"));//项目 - main.put("textField_lm5okzsc",businessDatamain.get("field0120"));//项目编码 - main.put("textField_lm5okzse",businessDatamain.get("field0158"));//招待级别 - main.put("textField_lm5okzsg",businessDatamain.get("field0142"));//借款合计大写 - main.put("numberField_lm5okzsi",businessDatamain.get("field0143"));//借款合计小写 - main.put("textField_lm5okzsk",businessDatamain.get("field0149"));//借款合计大写1 - main.put("numberField_lm5okzsm",businessDatamain.get("field0150"));//借款合计小写1 - //报销信息(明细表1) - Object formson_0295obj = businessData.get("formson_0295"); - JSONArray formson_0295Arr = JSON.parseArray(JSON.toJSONString(formson_0295obj)); - //formson_0295 - - - - JSONArray tableField_lm5okzsnArr = new JSONArray(); - for(Object obj : formson_0295Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5okzsn = new JSONObject(); - tableField_lm5okzsn.put("textField_lm5okzsp",body.getString("field0094"));//费用类型 - tableField_lm5okzsn.put("numberField_lm5okzsr",body.getString("field0096"));//报销金额 - tableField_lm5okzsn.put("numberField_lm5okzst",body.getString("field0097"));//不含税金额 - tableField_lm5okzsn.put("textField_lm5okzsv",body.getString("field0030"));//费用归属部门 - tableField_lm5okzsn.put("numberField_lm5okzsx",body.getString("field0076"));//预算金额 - tableField_lm5okzsn.put("textField_lm5okzsz",body.getString("field0079"));//预算信息备注 - tableField_lm5okzsn.put("numberField_lm5okzt1",body.getString("field0107"));//剩余预算金额 - tableField_lm5okzsn.put("textField_lm5okzt3",body.getString("field0109"));//费用类别ID - tableField_lm5okzsn.put("textField_lm5okzt5",body.getString("field0111"));//年度费用预算ID - tableField_lm5okzsn.put("attachmentField_lm5okzt7",body.getString("field0119"));//发票上传 - tableField_lm5okzsn.put("textField_lm5okzt9",body.getString("field0122"));//发票号码 - tableField_lm5okzsn.put("textField_lm5okztb",body.getString("field0123"));//票据编码 - tableField_lm5okzsn.put("textField_lm5okztd",body.getString("field0124"));//费用名称 - tableField_lm5okzsn.put("numberField_lm5okztf",body.getString("field0126"));//税率 - tableField_lm5okzsn.put("numberField_lm5okzth",body.getString("field0127"));//税额 - tableField_lm5okzsn.put("textField_lm5okztj",body.getString("field0129"));//乘车人 - tableField_lm5okzsn.put("dateField_lm5okztl",DateUtil.dateStrToLong(String.valueOf(body.get("field0130"))));//日期 - tableField_lm5okzsn.put("dateField_lm5okztn",DateUtil.dateStrToLong(String.valueOf(body.get("field0131"))));//出发时间 - tableField_lm5okzsn.put("dateField_lm5okztp",DateUtil.dateStrToLong(String.valueOf(body.get("field0132"))));//到达时间 - tableField_lm5okzsn.put("numberField_lm5okztr",body.getString("field0133"));//发票金额 - tableField_lm5okzsn.put("textField_lm5okztt",body.getString("field0134"));//报销信息序号 - tableField_lm5okzsnArr.add(tableField_lm5okzsn); - main.put("tableField_lm5okzsn",tableField_lm5okzsnArr); - } - - - //汇款信息明细表(明细表2) - Object formson_0297obj = businessData.get("formson_0297"); - JSONArray formson_0297Arr = JSON.parseArray(JSON.toJSONString(formson_0297obj)); - //formson_0297 - - JSONArray tableField_lm5qyiz4Arr = new JSONArray(); - for(Object obj : formson_0297Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5qyiz4 = new JSONObject(); - tableField_lm5qyiz4.put("textField_lm5okztv",body.getString("field0060"));//汇款信息序号 - tableField_lm5qyiz4.put("textField_lm5okztx",body.getString("field0069"));//付款方式 - tableField_lm5qyiz4.put("numberField_lm5okztz",body.getString("field0100"));//付款金额 - tableField_lm5qyiz4.put("textField_lm5okzu1",body.getString("field0098"));//开户行 - tableField_lm5qyiz4.put("textField_lm5okzu3",body.getString("field0073"));//开户行账号 - tableField_lm5qyiz4.put("textField_lm5okzu5",body.getString("field0070"));//银行支付 - tableField_lm5qyiz4.put("textField_lm5okzu7",body.getString("field0135"));//收款人开户名称 - tableField_lm5qyiz4.put("textField_lm5okzu9",body.getString("field0136"));//收款人账号 - tableField_lm5qyiz4Arr.add(tableField_lm5qyiz4); - main.put("tableField_lm5qyiz4",tableField_lm5qyiz4Arr); - } - - - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0157")); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-5Q966D91ORYDL2GYBAE4F77GWL922H2SKO5MLR"); - return data; - } - - /** - * 差旅费报销单 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDataTravelExpense(Map businessData, String formApp) { - JSONObject data = new JSONObject(); - //todo 所有日期传递时间戳 - Object mainObj = businessData.get("formmain_0307"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - //组装主表数据 - JSONObject main = new JSONObject(); - main.put("textField_lm5ng0oz",businessDatamain.get("field0094"));//单据编号 - JSONArray field0279Arr = new JSONArray(); - String field0279 = businessDatamain.get("field0279").toString(); - field0279Arr.add(field0279); - main.put("employeeField_lm5ng0p3",field0279Arr);//申请人 - - main.put("dateField_lm5ng0p5",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0125"))));//申请日期 - JSONArray field0307Arr = new JSONArray(); - String field0307 = businessDatamain.get("field0307").toString(); - field0307Arr.add(field0307); - - main.put("departmentSelectField_lm5ng0p7",field0307Arr);//申请人部门 - main.put("textField_lm5ng0p9",businessDatamain.get("field0187"));//电话 - main.put("textField_lm5ng0pb",businessDatamain.get("field0221"));//关联出差申请 - main.put("textField_lm5ng0pd",businessDatamain.get("field0188"));//入账公司 - main.put("textField_lm5ng0pf",businessDatamain.get("field0189"));//出差国别 - main.put("dateField_lm5ng0ph",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0193"))));//出差开始时间 -// main.put("cascadeDateField_lm5ng0pl",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0194"))));//出差结束时间 - main.put("numberField_lm5ng0pn",businessDatamain.get("field0195"));//出差天数 - main.put("textField_lm5ng0pp",businessDatamain.get("field0199"));//出差说明 - main.put("textField_lm5ng0pr",businessDatamain.get("field0236"));//出差申请单号 - main.put("textField_lm5ng0pt",businessDatamain.get("field0234"));//商旅单号 - main.put("textField_lm5ng0pv",businessDatamain.get("field0155"));//费用预算ID - main.put("textField_lm5ng0px",businessDatamain.get("field0280"));//1.4出差类型 - main.put("textField_lm5ng0pz",businessDatamain.get("field0056"));//1.5出差审批 - main.put("textField_lm5ng0q1",businessDatamain.get("field0137"));//2.7费用类别 - main.put("textField_lm5ng0q3",businessDatamain.get("field0149"));//2.8预算年度 - main.put("textField_lm5ng0q5",businessDatamain.get("field0159"));//2.10预算部门 - main.put("numberField_lm5ng0q9",businessDatamain.get("field0181"));//3.1费用金额合计 - main.put("numberField_lm5ng0qb",businessDatamain.get("field0177"));//3.2未税金额合计 - main.put("numberField_lm5ng0qd",businessDatamain.get("field0178"));//3.3税额合计 - main.put("numberField_lm5ng0qf",businessDatamain.get("field0075"));//3.4实际出差天数 - main.put("numberField_lm5ng0qh",businessDatamain.get("field0074"));//3.5出差补助合计 - main.put("numberField_lm5ng0qj",businessDatamain.get("field0145"));//3.6实际住宿天数 - main.put("numberField_lm5ng0ql",businessDatamain.get("field0072"));//3.7住宿费合计 - main.put("textField_lm5ng0qn",businessDatamain.get("field0174"));//3.8备注 - main.put("numberField_lm5ng0qp",businessDatamain.get("field0076"));//3.9报销金额 - main.put("numberField_lm5ng0qr",businessDatamain.get("field0078"));//3.10借支金额 - main.put("numberField_lm5ng0qt",businessDatamain.get("field0080"));//3.11冲抵金额 - main.put("numberField_lm5ng0qv",businessDatamain.get("field0079"));//3.12归还金额 - main.put("numberField_lm5ng0qx",businessDatamain.get("field0081"));//3.13本次支付金额 - main.put("textField_lm5ng0qz",businessDatamain.get("field0082"));//3.14本次支付金额大写 - main.put("numberField_lm5ng0r1",businessDatamain.get("field0117"));//3.15单据总数 - main.put("textField_lm5ng0r3",businessDatamain.get("field0281"));//3.16支付方式 - main.put("dateField_lm5ng0r5",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0118"))));//3.17支付日期 - main.put("textField_lm5ng0r7",businessDatamain.get("field0131"));//3.18银行账户 - main.put("textField_lm5ng0r9",businessDatamain.get("field0132"));//3.19开户银行 - main.put("textField_lm5ng0rb",businessDatamain.get("field0133"));//3.20银行账号 - main.put("textField_lm5ng0rd",businessDatamain.get("field0084"));//4.1审批领导 - main.put("textField_lm5ng0rf",businessDatamain.get("field0085"));//4.2会计 - main.put("textField_lm5ng0rh",businessDatamain.get("field0086"));//4.3出纳 - main.put("textField_lm5ng0rj",businessDatamain.get("field0119"));//0.2借款编号 - main.put("numberField_lm5ng0rl",businessDatamain.get("field0123"));//0.3欠款金额 - main.put("textField_lm5ng0rn",businessDatamain.get("field0282"));//0.4报销单类型 - main.put("textField_lm5ng0rp",businessDatamain.get("field0283"));//0.5支出类型 - main.put("textField_lm5ng0rr",businessDatamain.get("field0139"));//0.6职务级别 - main.put("textField_lm5ng0rt",businessDatamain.get("field0140"));//0.7补贴标准 - main.put("textField_lm5ng0rv",businessDatamain.get("field0141"));//0.8住宿标准 - main.put("textField_lm5ng0rx",businessDatamain.get("field0284"));//0.9管控类型 - main.put("textField_lm5ng0rz",businessDatamain.get("field0285"));//0.10预算状态 - main.put("textField_lm5ng0s1",businessDatamain.get("field0186"));//0.11凭证编号 - main.put("textField_lm5ng0s3",businessDatamain.get("field0120"));//强控填写提示 - main.put("textField_lm5ng0s5",businessDatamain.get("field0168"));//弱控填写提示 - main.put("textField_lm5ng0s7",businessDatamain.get("field0220"));//公司编码 - main.put("textField_lm5ng0s9",businessDatamain.get("field0243"));//报销金额合计大写 - main.put("numberField_lm5ng0sd",businessDatamain.get("field0244"));//报销金额合计小写 - main.put("textField_lm5ng0sf",businessDatamain.get("field0245"));//付款金额合计大写 - main.put("numberField_lm5ng0sh",businessDatamain.get("field0246"));//付款金额合计小写 - main.put("textField_lm5ng0sj",businessDatamain.get("field0247"));//筛选入账公司 - main.put("textField_lm5ng0sl",businessDatamain.get("field0248"));//项目 - main.put("textField_lm5ng0sn",businessDatamain.get("field0249"));//项目编码 - main.put("textField_lm5ng0sp",businessDatamain.get("field0264"));//差旅标准 - - - //报销明细(明细表1) - Object formson_0308obj = businessData.get("formson_0308"); - JSONArray formson_0308Arr = JSON.parseArray(JSON.toJSONString(formson_0308obj)); - //formson_0308 - - - JSONArray tableField_lm5ng0sqbArr = new JSONArray(); - for(Object obj :formson_0308Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5ng0sq = new JSONObject(); - tableField_lm5ng0sq.put("textField_lm5ng0ss",body.getString("field0027"));//L1.0序号 - tableField_lm5ng0sq.put("dateField_lm5ng0sw",DateUtil.dateStrToLong(String.valueOf(body.get("field0061"))));//L1.1出发时间 - tableField_lm5ng0sq.put("dateField_lm5ng0sy",DateUtil.dateStrToLong(String.valueOf(body.get("field0066"))));//L1.2到达时间 - tableField_lm5ng0sq.put("textField_lm5ng0t0",body.getString("field0062"));//L1.3出发地 - tableField_lm5ng0sq.put("textField_lm5ng0t2",body.getString("field0063"));//L1.4目的地 - tableField_lm5ng0sq.put("numberField_lm5ng0t4",body.getString("field0064"));//L1.5单据数 - tableField_lm5ng0sq.put("textField_lm5ng0t6",body.getString("field0179"));//L1.6费用项目 - tableField_lm5ng0sq.put("textField_lm5ng0t8",body.getString("field0180"));//L1.7费用金额 - tableField_lm5ng0sq.put("numberField_lm5ng0ta",body.getString("field0182"));//L1.8税率 - tableField_lm5ng0sq.put("numberField_lm5ng0tc",body.getString("field0183"));//L1.9未税金额 - tableField_lm5ng0sq.put("numberField_lm5ng0te",body.getString("field0184"));//L1.10税额 - tableField_lm5ng0sq.put("attachmentField_lm5ng0tg",body.getString("field0161"));//L1.11附件 - tableField_lm5ng0sq.put("dateField_lm5ng0ti",DateUtil.dateStrToLong(String.valueOf(body.get("field0126"))));//L1.11交通日期 - tableField_lm5ng0sq.put("textField_lm5ng0tk",body.getString("field0127"));//L1.12事由 - tableField_lm5ng0sq.put("textField_lm5ng0tm",body.getString("field0128"));//L1.13交通类别 - tableField_lm5ng0sqbArr.add(tableField_lm5ng0sq); - main.put("tableField_lm5ng0sq",tableField_lm5ng0sqbArr); - } - - - //报销信息明细表(明细表2) - Object formson_0309obj = businessData.get("formson_0309"); - JSONArray formson_0309Arr = JSON.parseArray(JSON.toJSONString(formson_0309obj)); - //formson_0309 - - - - JSONArray tableField_lm5ng0tnArr = new JSONArray(); - for(Object obj : formson_0309Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5ng0tn = new JSONObject(); - tableField_lm5ng0tn.put("textField_lm5ng0tp",body.getString("field0227"));//费用类别 - tableField_lm5ng0tn.put("numberField_lm5ng0tr",body.getString("field0222"));//预估金额 - tableField_lm5ng0tn.put("numberField_lm5ng0tt",body.getString("field0228"));//年度当前可用余额 - tableField_lm5ng0tn.put("numberField_lm5ng0tv",body.getString("field0203"));//报销金额 - tableField_lm5ng0tn.put("numberField_lm5ng0tx",body.getString("field0204"));//不含税金额 - tableField_lm5ng0tn.put("textField_lm5ng0tz",body.getString("field0223"));//费用归属部门 - tableField_lm5ng0tn.put("textField_lm5ng0u1",body.getString("field0226"));//成本中心 - tableField_lm5ng0tn.put("textField_lm5ng0u3",body.getString("field0229"));//年度费用预算ID - tableField_lm5ng0tn.put("textField_lm5ng0u5",body.getString("field0230"));//预算状态 - tableField_lm5ng0tn.put("textField_lm5ng0u7",body.getString("field0231"));//费用类别ID - tableField_lm5ng0tn.put("textField_lm5ng0u9",body.getString("field0201"));//管控类型 - tableField_lm5ng0tn.put("attachmentField_lm5ng0ub",null);//发票上传 - tableField_lm5ng0tn.put("textField_lm5ng0ud",body.getString("field0253"));//票据编码 - tableField_lm5ng0tn.put("textField_lm5ng0uf",body.getString("field0254"));//费用名称 - tableField_lm5ng0tn.put("textField_lm5ng0uh",body.getString("field0255"));//发票号码 - tableField_lm5ng0tn.put("numberField_lm5ng0uj",body.getString("field0256"));//税额 - tableField_lm5ng0tn.put("numberField_lm5ng0ul",body.getString("field0257"));//税率 - tableField_lm5ng0tn.put("textField_lm5ng0un",body.getString("field0258"));//乘车人 - tableField_lm5ng0tn.put("dateField_lm5ng0up",DateUtil.dateStrToLong(String.valueOf(body.get("field0259"))));//日期 - tableField_lm5ng0tn.put("dateField_lm5ng0ur",DateUtil.dateStrToLong(String.valueOf(body.get("field0260"))));//出发时间 - tableField_lm5ng0tn.put("dateField_lm5ng0ut",DateUtil.dateStrToLong(String.valueOf(body.get("field0261"))));//到达时间 - tableField_lm5ng0tn.put("numberField_lm5ng0uv",body.getString("field0262"));//发票金额 - tableField_lm5ng0tn.put("textField_lm5ng0ux",body.getString("field0263"));//报销信息序号 - tableField_lm5ng0tnArr.add(tableField_lm5ng0tn); - main.put("tableField_lm5ng0tn",tableField_lm5ng0tnArr); - } - - - //汇款信息明细表(明细表3) - Object formson_0311obj = businessData.get("formson_0311"); - JSONArray formson_0311Arr = JSON.parseArray(JSON.toJSONString(formson_0311obj)); - //formson_0311 - - - - JSONArray tableField_lm5ng0uybArr = new JSONArray(); - for(Object obj : formson_0311Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5ng0uy = new JSONObject(); - tableField_lm5ng0uy.put("textField_lm5ng0v0",body.getString("field0213"));//汇款信息序号 - tableField_lm5ng0uy.put("textField_lm5ng0v2",body.getString("field0214"));//付款方式 - tableField_lm5ng0uy.put("numberField_lm5ng0v4",body.getString("field0215"));//付款金额 - tableField_lm5ng0uy.put("textField_lm5ng0v6",body.getString("field0265"));//付款方开户名称 - tableField_lm5ng0uy.put("textField_lm5ng0v8",body.getString("field0266"));//付款方账号 - tableField_lm5ng0uy.put("textField_lm5ng0va",body.getString("field0216"));//收款人开户名称 - tableField_lm5ng0uy.put("textField_lm5ng0vc",body.getString("field0218"));//收款人账号 - tableField_lm5ng0uybArr.add(tableField_lm5ng0uy); - main.put("tableField_lm5ng0uy", tableField_lm5ng0uybArr); - } - - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0279")); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-4V966QC1U7ZDP7WVBLX9EDIYNM7U2P1SFN5ML1"); - return data; - } - - /** - * 开票申请 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDataInv(Map businessData, String formApp)throws Exception { - JSONObject data = new JSONObject(); - //todo 所有日期传递时间戳 - //组装主表数据 - Object mainObj = businessData.get("formmain_0331"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject main = new JSONObject(); - main.put("textField_lm4pqj9b",businessDatamain.get("field0117"));//单据编号 - main.put("textField_lm4pqj9d",businessDatamain.get("field0113"));//关联合同档案 - - JSONArray field0115Arr = new JSONArray(); - String field0115 = businessDatamain.get("field0136").toString();//这个存放的直接定钉钉主键,固直接用field0136 - field0115Arr.add(field0115); - main.put("employeeField_lm4pqj9f",field0115Arr);//申请人 - main.put("dateField_lm4pqj9g",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0114"))));//申请日期 - - JSONArray field0144Arr = new JSONArray(); - String field0144 = businessDatamain.get("field0144").toString(); - field0144Arr.add(field0144); - - main.put("departmentSelectField_lm4pqj9h",field0144Arr);//申请人部门 - main.put("textField_lm4pqj9j",businessDatamain.get("field0112"));//申请人电话 - main.put("textField_lm4pqj9l",businessDatamain.get("field0108"));//开票公司 - main.put("textField_lm4pqj9n",businessDatamain.get("field0137"));//税控发票类型 - main.put("textField_lm4pqj9p",businessDatamain.get("field0111"));//收件人邮箱 - main.put("textField_lm4pqj9r",businessDatamain.get("field0106"));//客户名称 - main.put("textField_lm4pqj9t",businessDatamain.get("field0105"));//税号 - main.put("textField_lm4pqj9v",businessDatamain.get("field0103"));//开户行 - main.put("textField_lmefk8vz",businessDatamain.get("field0102"));//账号 - main.put("textField_lm4pqj9x",businessDatamain.get("field0100"));//地址 - main.put("textField_lm4pqj9z",businessDatamain.get("field0101"));//电话 - main.put("textField_lm4pqja1",businessDatamain.get("field0098"));//发票代码 - main.put("textField_lm4pqja3",businessDatamain.get("field0141"));//是否含税录入 - main.put("numberField_lm4pqja5",businessDatamain.get("field0094"));//合计不含税金额 - main.put("numberField_lm4pqja7",businessDatamain.get("field0095"));//合计含税金额 - main.put("numberField_lm4pqja9",businessDatamain.get("field0096"));//价税合计 - main.put("textareaField_lm4pqjad",businessDatamain.get("field0092"));//发票备注 - main.put("textField_lm4pqjaf",businessDatamain.get("field0142"));//是否邮寄 - main.put("textareaField_lm4pqjah",businessDatamain.get("field0090"));//开票说明 - main.put("numberField_lm4pqjaj",businessDatamain.get("field0121"));//本次开票数量合计 - String field0123 = String.valueOf(businessDatamain.get("field0123")); - main.put("dateField_lm4pqjal",DateUtil.dateStrToLong(field0123));//合同签订日期 - main.put("textField_lm4pqjan",businessDatamain.get("field0138"));//业务板块一级 - main.put("textField_lm4pqjap",businessDatamain.get("field0139"));//业务板块二级 - main.put("textField_lm4pqjar",businessDatamain.get("field0126"));//邮寄地址 - main.put("textField_lm4pqjat",businessDatamain.get("field0132"));//借款合计大写 - main.put("numberField_lm4pqjav",businessDatamain.get("field0133"));//借款合计小写 - //销售发票明细表 - Object formson_0332obj = businessData.get("formson_0332"); - JSONArray formson_0332Arr = JSON.parseArray(JSON.toJSONString(formson_0332obj)); - - - JSONArray tableField_lm4pqjawtArr = new JSONArray(); - for(Object obj :formson_0332Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4pqjaw = new JSONObject(); - tableField_lm4pqjaw.put("textField_lm4pqjay",body.getString("field0079"));//序号 - tableField_lm4pqjaw.put("textField_lm4pqjb0",body.getString("field0080"));//合同标的物名称 - tableField_lm4pqjaw.put("textField_lm4pqjb2",body.getString("field0081"));//标的物编码 - tableField_lm4pqjaw.put("textField_lm4pqjb4",body.getString("field0083"));//规格型号 - tableField_lm4pqjaw.put("numberField_lm4pqjb6",body.getString("field0084"));//数量 - tableField_lm4pqjaw.put("numberField_lm4pqjb8",body.getString("field0122"));//本次开票数量 - tableField_lm4pqjaw.put("numberField_lm4pqjba",body.getString("field0085"));//单价 - tableField_lm4pqjaw.put("numberField_lm4pqjbc",body.getString("field0086"));//不含税金额 - tableField_lm4pqjaw.put("numberField_lm4pqjbe",body.getString("field0087"));//含税金额 - tableField_lm4pqjaw.put("numberField_lm4pqjbg",body.getString("field0118"));//税率 - tableField_lm4pqjaw.put("textField_lm4pqjbi",body.getString("field0119"));//税务编码 - tableField_lm4pqjawtArr.add(tableField_lm4pqjaw); - main.put("tableField_lm4pqjaw",tableField_lm4pqjawtArr); - } - - Object formson_0365obj = businessData.get("formson_0365"); - JSONArray formson_0365Arr = JSON.parseArray(JSON.toJSONString(formson_0365obj)); - //formson_0365 - JSONArray tableField_lm4pqjbjArr = new JSONArray(); - for(Object obj :formson_0365Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4pqjbj = new JSONObject(); - tableField_lm4pqjbj.put("textField_lm4pqjbl",body.getString("field0127"));//序号1 - tableField_lm4pqjbj.put("textField_lm4pqjbn",body.getString("field0128"));//借款日期 - tableField_lm4pqjbj.put("numberField_lm4pqjbp",body.getString("field0129"));//借款金额 - tableField_lm4pqjbj.put("textField_lm4pqjbr",body.getString("field0130"));//借款单 - tableField_lm4pqjbj.put("textareaField_lm4pqjbt",body.getString("field0131"));//用途 - tableField_lm4pqjbjArr.add(tableField_lm4pqjbj); - main.put("tableField_lm4pqjbj",tableField_lm4pqjbjArr); - } - - - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0136")); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-ZK866D911PWD088REOMK541LMX6E30J5QP4MLI"); - return data; - } - - /** - * 对公付款单 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDataPay(Map businessData, String formApp)throws Exception { - JSONObject data = new JSONObject(); - //todo 所有日期传递时间戳 - //组装主表数据 - Object mainObj = businessData.get("formmain_0327"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject main = new JSONObject(); - main.put("textField_lm4os547",businessDatamain.get("field0146"));//单据编号 - main.put("textField_lm4os549",businessDatamain.get("field0034"));//关联合同编号 - JSONArray field0236Arr = new JSONArray(); - String field0236 = businessDatamain.get("field0236").toString(); - field0236Arr.add(field0236); - //申请人需要单独处理 传递钉钉ID,格式为["user01","user02"] 存放钉钉主键 - main.put("employeeField_lm4os54b",field0236Arr);//申请人 -// String field0041 = businessDatamain.get("field0041").toString(); -// Long field0041long = null ; -// if(StrUtil.isNotEmpty(field0041)){ -// field0041long = DateUtil.stringToDate(field0041,"yyyy-MM-dd HH:mm:ss").getTime(); -// } - main.put("dateField_lm4os54j",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0041"))));//申请日期 - main.put("textField_lm4os54l",businessDatamain.get("field0110"));//申请人电话 - JSONArray field0253Arr = new JSONArray(); - String field0253 = businessDatamain.get("field0253").toString(); - field0253Arr.add(field0253); - main.put("departmentSelectField_lm4os54n",field0253Arr);//申请人部门 - - main.put("textField_lm4os54u",businessDatamain.get("field0116"));//入账公司 - main.put("textField_lm4os54w",businessDatamain.get("field0239"));//付款类型一级 - main.put("textField_lm4os54y",businessDatamain.get("field0240"));//付款类型二级 - main.put("textField_lm4os550",businessDatamain.get("field0119"));//供应商 - main.put("textField_lm4os552",businessDatamain.get("field0121"));//本次付款金额 - main.put("textField_lm4os554",businessDatamain.get("field0122"));//本次付款比例 - main.put("textField_lm4os556",businessDatamain.get("field0242"));//是否固定金额 - main.put("numberField_lm4os55a",businessDatamain.get("field0123"));//合同总金额 - main.put("textareaField_lm4os55c",businessDatamain.get("field0124"));//报账说明 - main.put("attachmentField_lm4os55e","");//附件 - main.put("textField_lm4os55g",businessDatamain.get("field0149"));//公司编码 - main.put("textField_lm4os55i",businessDatamain.get("field0151"));//供应商编码 - main.put("textField_lm4os55k",businessDatamain.get("field0152"));//户名 - main.put("textField_lm4os55s",businessDatamain.get("field0153"));//开户行编码 - main.put("textField_lm4os55u",businessDatamain.get("field0154"));//开户行名称 - main.put("textField_lm4os55w",businessDatamain.get("field0155"));//账号 -// String field0158 = businessData.get("field0158").toString(); -// Long field0158long = null ; -// if(StrUtil.isNotEmpty(field0158)){ -// field0158long = DateUtil.stringToDate(field0158,"yyyy-MM-dd HH:mm:ss").getTime(); -// } - main.put("dateField_lm4os55y",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0158"))));//合同签订日期 - main.put("textField_lm4os560",businessDatamain.get("field0238"));//是否有合同 - main.put("textField_lm4os562",businessDatamain.get("field0166"));//合同已付金额 - main.put("numberField_lm4os564",businessDatamain.get("field0167"));//发票已收金额 - main.put("numberField_lm4os566",businessDatamain.get("field0168"));//审批中付款金额 - main.put("numberField_lm4os568",businessDatamain.get("field0169"));//审批中已收发票金额 - main.put("textField_lm4os56a",businessDatamain.get("field0184"));//发票金额合计大写 - main.put("numberField_lm4os56c",businessDatamain.get("field0185"));//发票金额合计小写 - main.put("textField_lm4os56e",businessDatamain.get("field0186"));//项目编码 - main.put("textField_lm4os56g",businessDatamain.get("field0243"));//业务场景 - main.put("textField_lm4os56i",businessDatamain.get("field0244"));//是否多项目 - main.put("attachmentField_lm4os56k",null);//合同附件 - main.put("textField_lm4os56m",businessDatamain.get("field0201"));//借款合计大写 - main.put("numberField_lm4os56o",businessDatamain.get("field0202"));//借款合计小写 - main.put("textField_lm4os56q",businessDatamain.get("field0208"));//借款合计大写1 - main.put("numberField_lm4os56s",businessDatamain.get("field0209"));//借款合计小写1 - //汇款信息明细表(明细表1) - Object formson_0329obj = businessData.get("formson_0329"); - JSONArray formson_0329Arr = JSON.parseArray(JSON.toJSONString(formson_0329obj)); - //formson_0329 - JSONArray tableField_lm4os56tArr = new JSONArray(); - //循环拼接汇款明细数据 - for(Object obj :formson_0329Arr){ - JSONObject formson_0329 = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4os56t = new JSONObject(); - tableField_lm4os56t.put("textField_lm4os56v",formson_0329.get("field0133"));//汇款信息序号 - tableField_lm4os56t.put("textField_lm4os56x",formson_0329.get("field0134"));//付款方式 - tableField_lm4os56t.put("numberField_lm4os56z",formson_0329.get("field0135"));//付款金额 - tableField_lm4os56t.put("textField_lm4os571",formson_0329.get("field0136"));//收款单位 - tableField_lm4os56t.put("textField_lm4os573",formson_0329.get("field0137"));//付款账号 - tableField_lm4os56tArr.add(tableField_lm4os56t); - } - main.put("tableField_lm4os56t",tableField_lm4os56tArr); - //扣款信息明细表(明细表2) - Object formson_0330obj = businessData.get("formson_0330"); - JSONArray formson_0330Arr = JSON.parseArray(JSON.toJSONString(formson_0330obj)); - //formson_0330 - JSONArray tableField_lm4os574Arr = new JSONArray(); - for(Object obj :formson_0330Arr){ - JSONObject formson_0330 = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4os574 = new JSONObject(); - tableField_lm4os574.put("textField_lm4os576",formson_0330.get("field0140"));//一级支出类别 - tableField_lm4os574.put("textField_lm4os578",formson_0330.get("field0147"));//隐藏-扣款信息款项类别二级 - tableField_lm4os574.put("textField_lm4os57a",formson_0330.get("field0142"));//项目号 - tableField_lm4os574.put("numberField_lm4os57e",formson_0330.get("field0143"));//不含税金额 - tableField_lm4os574.put("numberField_lm4os57g",formson_0330.get("field0144"));//含税金额 - tableField_lm4os574.put("numberField_lm4os57i",formson_0330.get("field0145"));//价税合计 - tableField_lm4os574.put("textField_lm4os57k",formson_0330.get("field0163"));//扣款信息序号 - tableField_lm4os574Arr.add(tableField_lm4os574); - main.put("tableField_lm4os574",tableField_lm4os574Arr); - } - - //发票明细表(明细表3) - Object formson_0348obj = businessData.get("formson_0348"); - JSONArray formson_0348Arr = JSON.parseArray(JSON.toJSONString(formson_0348obj)); - //formson_0348 - JSONArray tableField_lm4os57lArr = new JSONArray(); - for(Object obj :formson_0348Arr){ - JSONObject formson_0348 = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4os57l = new JSONObject(); - tableField_lm4os57l.put("textField_lm4os57n",formson_0348.get("field0170"));//发票信息序号 - tableField_lm4os57l.put("textField_lm4os57p",formson_0348.get("field0171"));//发票号码 - tableField_lm4os57l.put("textField_lm4os57r",formson_0348.get("field0172"));//发票代码 - tableField_lm4os57l.put("numberField_lm4os57t",formson_0348.get("field0173"));//发票金额 - tableField_lm4os57l.put("numberField_lm4os57v",formson_0348.get("field0174"));//发票税额 - tableField_lm4os57l.put("attachmentField_lm4os57x","");//上传发票 - tableField_lm4os57l.put("textField_lm4os57z",formson_0348.get("field0179"));//售方名称 - tableField_lm4os57l.put("textField_lm4os581",formson_0348.get("field0180"));//购方名称 - tableField_lm4os57l.put("textField_lm4os583",formson_0348.get("field0181"));//购方税号 - tableField_lm4os57l.put("textField_lm4os585",formson_0348.get("field0182"));//发票入账公司 - tableField_lm4os57l.put("textField_lm4os587",formson_0348.get("field0183"));//税号 - tableField_lm4os57l.put("textField_lm4os58b",formson_0348.get("field0188"));//发票类型 - tableField_lm4os57lArr.add(tableField_lm4os57l); - main.put("tableField_lm4os57l",tableField_lm4os57lArr); - } - - //项目明细表(明细表4) - Object formson_0354obj = businessData.get("formson_0354"); - JSONArray formson_0354Arr = JSON.parseArray(JSON.toJSONString(formson_0354obj)); - //formson_0354 - - JSONArray tableField_lm4os58cArr = new JSONArray(); - for(Object obj :formson_0354Arr){ - JSONObject formson_0354 = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm4os58c = new JSONObject(); - tableField_lm4os58c.put("textField_lm4os57n",formson_0354.getString("field0192"));//项目信息序号 - tableField_lm4os58c.put("textField_lm4os57p",formson_0354.getString("field0191"));//项目明细表项目 - tableField_lm4os58c.put("textField_lm4os57r",formson_0354.getString("field0193"));//发票拆分金额 - tableField_lm4os58cArr.add(tableField_lm4os58c); - main.put("tableField_lm4os58c",tableField_lm4os58cArr); - } - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0236")); -// data.put("userId","182411126520375411"); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-JD8668C1KMYDNNEW6OPQE8M8K2YU2SJURO4ML0"); -// return null; - return data; - } - - /** - * 出差申请单 - * @param businessData - * @param formApp - * @return - */ - private JSONObject boundDataBusinessTravel(Map businessData, String formApp) { - JSONObject data = new JSONObject(); - //todo 所有日期传递时间戳 - //组装主表数据 - Object mainObj = businessData.get("formmain_0302"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - - JSONObject main = new JSONObject(); - main.put("textField_lm5n374e",businessDatamain.get("field0001"));//单据编号 - JSONArray field0085Arr = new JSONArray(); - String field0085 = businessDatamain.get("field0085").toString(); - field0085Arr.add(field0085); - //申请人需要单独处理 传递钉钉ID,格式为["user01","user02"] 存放钉钉主键 - main.put("employeeField_lm5n374g",field0085Arr);//申请人 - main.put("dateField_lm5n374i",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0027"))));//申请日期 - - JSONArray field0088Arr = new JSONArray(); - String field0088 = businessDatamain.get("field0088").toString(); - field0088Arr.add(field0088); - - main.put("departmentSelectField_lm5n374j",field0088Arr);//申请人部门 - main.put("textField_lm5n374k",businessDatamain.get("field0030"));//电话 - main.put("textField_lm5n374m",businessDatamain.get("field0086"));//入账公司 - main.put("textField_lm5n374o",businessDatamain.get("field0032"));//出差国别 - main.put("dateField_lm5n374q",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0036"))));//出差开始时间 - main.put("dateField_lm5n374s",DateUtil.dateStrToLong(String.valueOf(businessDatamain.get("field0038"))));//出差结束时间 - main.put("numberField_lm5n374u",businessDatamain.get("field0039"));//出差天数 - main.put("textField_lm5n374w",businessDatamain.get("field0059"));//选择商旅账号 - main.put("textField_lm5n374y",businessDatamain.get("field0064"));//出差事由 - main.put("textField_lm5n3750",businessDatamain.get("field0065"));//公司编码 - main.put("textField_lm5n3752",businessDatamain.get("field0031"));//项目名称 - main.put("textField_lm5n3754",businessDatamain.get("field0006"));//出发地 - main.put("textField_lm5n3756",businessDatamain.get("field0007"));//目的地 - main.put("textField_lm5n3758",businessDatamain.get("field0079"));//项目 - main.put("textField_lm5n375a",businessDatamain.get("field0080"));//项目编码 - - //行程信息(明细表1) - Object formson_0303obj = businessData.get("formson_0303"); - JSONArray formson_0303Arr = JSON.parseArray(JSON.toJSONString(formson_0303obj)); - //formson_0303 - JSONArray tableField_lm5n375bArr = new JSONArray(); - for(Object obj : formson_0303Arr){ - JSONObject body = JSON.parseObject(JSON.toJSONString(obj)); - JSONObject tableField_lm5n375b = new JSONObject(); - tableField_lm5n375b.put("textField_lm5n375d",body.getString("field0072"));//序号 - tableField_lm5n375b.put("textField_lm5n375f",body.getString("field0050"));//费用名称 - tableField_lm5n375b.put("textField_lm5n375h",body.getString("field0070"));//行程类别 - tableField_lm5n375b.put("textField_lm5n375j",body.getString("field0071"));//是否往返 - tableField_lm5n375b.put("employeeField_lm5n375l",body.getString("field0073"));//出行人员 - tableField_lm5n375b.put("dateField_lm5n375n",DateUtil.dateStrToLong(String.valueOf(body.get("field0074"))));//开始时间 - tableField_lm5n375b.put("dateField_lm5n375p",DateUtil.dateStrToLong(String.valueOf(body.get("field0074"))));//结束时间 - tableField_lm5n375b.put("textField_lm5n375r",body.getString("field0076"));//出发城市 - tableField_lm5n375b.put("textField_lm5n375t",body.getString("field0077"));//到达城市 - tableField_lm5n375b.put("textField_lm5n375v",body.getString("field0041"));//费用归属部门 - tableField_lm5n375b.put("numberField_lm5n375x",body.getString("field0046"));//金额 - tableField_lm5n375b.put("textField_lm5n375z",body.getString("field0048"));//备注 - tableField_lm5n375b.put("textField_lm5n3761",body.getString("field0066"));//费用类别ID - tableField_lm5n375b.put("textField_lm5n3763",body.getString("field0082"));//是否线下预定 - tableField_lm5n375bArr.add(tableField_lm5n375b); - main.put("tableField_lm5n375b",tableField_lm5n375bArr); - } - - - - data.put("formDataJson",main.toString()); - data.put("userId",businessDatamain.get("field0085")); - data.put("appType","APP_LLACU34DHTK2F07IEYVB"); - data.put("systemToken","IT5662C1PXUCS1NV6E40B61DNPLQ2PL30AQKLVA"); - data.put("formUuid","FORM-JH9660C1NWYD9IFGCZAJT6P8F6TT25GY2N5ML3"); - return data; - } - - @Override - public JsonResultEntity thirdInterfaceInitBipSupplierToOa(JSONObject jsonObject) throws Exception { - - logger.info("执行同步供应商方法"); - - String bipApiId = "a0a64273e60b4ccdb245683dfefdade5"; - JSONObject bipResult = iExcApiService.execute(bipApiId); - logger.info("bip数据" + bipResult.toJSONString()); - // - JSONArray attributes = bipResult.getJSONArray("attribute"); - - ApplicationContextUtil.getBeanByClass(IExcApiService.class); -// ApplicationContextUtil.getBeanByName("seeYonInterFace222"); -// ApplicationContextUtil.getBeanByClass(ISeeYonInterFace.class); - JSONObject jsonObject1 = new JSONObject(); - jsonObject1.put("type", "archives"); - jsonObject1.put("templateCode", "formmain_0360"); - jsonObject1.put("attribute", attributes); - JSONObject req = new JSONObject(); - req.put("jsonStr", jsonObject1.toJSONString()); - thirdInterfaceSend(req); - - return BaseResult.getSuccessMessageEntity("同步供应商成功"); - } - - /** - * 通过关联关系获取附件主键 - * @param sub_reference - * @return - */ - @Override - public List getFileUrl(String sub_reference) { - SeeyonEntity seeyonEntity = new SeeyonEntity(); - if(StrUtil.isNotEmpty(sub_reference)){ - seeyonEntity.setSub_reference(sub_reference); - return seeYonDao.selectFileUrl(seeyonEntity); - } - return null; - } - - - //通知单审批通过 - private String ddApproveFinish(Map businessData) { - JSONObject finishData = new JSONObject(); - String to_time = null ; - String from_time = null; - if(null != businessData.get("field0036")){ - from_time = DateUtil.dateToString(Long.valueOf(businessData.get("field0036").toString()),"YYYY-MM-dd"); - } - if(null != businessData.get("field0038")){ - to_time = DateUtil.dateToString(Long.valueOf(businessData.get("field0038").toString()),"YYYY-MM-dd"); - } - finishData.put("userid",businessData.get("field0083")); - finishData.put("biz_type","2"); - finishData.put("from_time",from_time); - finishData.put("to_time",to_time); - finishData.put("duration_unit","day"); - finishData.put("tag_name","出差"); - finishData.put("calculate_model","1"); - //出差单ID - finishData.put("approve_id","approve_id"); - //出差单URL,和钉钉确认不处理 - finishData.put("jump_url","jump_url"); - JSONObject ddData = new JSONObject(); - ddData.put("code","0002"); - ddData.put("data",finishData.toJSONString()); - - JSONObject jsonObject = new JSONObject(); - jsonObject.put("jsonStr",ddData.toJSONString()); - return iddInterfaceService.senddd(jsonObject); - } - - @Override - public JsonResultEntity thirdInterfacegetOADataByType(JSONObject requestData) { - if (StrUtil.isBlank(LAST_SYNCHRONISED_TIME)) { - LAST_SYNCHRONISED_TIME = cn.hutool.core.date.DateUtil.now(); - } - //暂存时间 - String tempTime = LAST_SYNCHRONISED_TIME; - //返回主表信息 - SeeyonEntity seeyon = new SeeyonEntity(); - seeyon.setTableName("formmain_0323"); - seeyon.setUpdateTime(tempTime); - List seeyonEntityList = seeYonDao.selectOAListByTypeMain(seeyon); - //如果返回数据不为空,则继续查询相关明细信息 - if (null != seeyonEntityList && seeyonEntityList.size() > 0) { - // 设置上一次同步时间 - LAST_SYNCHRONISED_TIME = cn.hutool.core.date.DateUtil.now(); - for (SeeyonEntity s : seeyonEntityList) { - //获取合同标的物明细(明细表1) - List formson0324List = seeYonDao.selectOAListByTypeformson_0324(s); - s.setFormson_0324(formson0324List); - //相对方(明细表2) - List formson0352List = seeYonDao.selectOAListByTypeformson_0352(s); - s.setFormson_0352(formson0352List); -// seeYonDao.updateFormStete(s); - } - } - return BaseResult.getSuccessMessageEntity("数据获取成功", seeyonEntityList); - } - - // @Test - public void testSaveNoProcess() { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("code", "03000119"); - jsonObject.put("name", "杭州陶瓷品市场亮晶晶酒店用品商行"); - JSONArray jsonArray = new JSONArray(); - JSONObject details1 = new JSONObject(); - details1.put("序号1", 1); - details1.put("账户类型", "基本户"); - details1.put("开户行名称", "开户行名称"); - details1.put("银行账号", "123"); - - JSONObject details2 = new JSONObject(); - details2.put("序号1", 2); - details2.put("账户类型", "基本户"); - details2.put("开户行名称", "开户行名称"); - details2.put("银行账号", "123"); - jsonArray.add(details1); - jsonArray.add(details2); - jsonObject.put("details", jsonArray); - //System.out.println(jsonObject.toJSONString()); - String dataXml = createTempData(jsonObject,CREATEARCHIVES); - String loginName = "seeyon"; - Map res = new HashMap(); - res.put("loginName", loginName); - res.put("dataXml", dataXml); - JsonResultEntity result = saveNoProcess("formmain_0360", UPDATEARCHIVES,loginName, dataXml); - logger.info("发起无流程表单结果:" + result); - } - - private String createTempData(JSONObject jsonObject, String type) { - String detailsStr = jsonObject.getString("details"); - StringBuffer stringBuffer = null; - if (!StringUtils.isEmpty(detailsStr)) { - List attributeArray = JSON.parseArray(detailsStr, JSONObject.class); - if (null != attributeArray && attributeArray.size() > 0) { - stringBuffer = new StringBuffer(); - for (JSONObject object : attributeArray) { - //如果是更新类型的,增加title标签 - if (type.equalsIgnoreCase(UPDATEARCHIVES)) { - stringBuffer.append(" "); - - //stringBuffer.append(" "); - stringBuffer.append(" <![CDATA["+UUIDLong.absLongUUID()+"]]> "); - stringBuffer.append(" <![CDATA["+UUIDLong.absLongUUID()+"]]> "); - stringBuffer.append(" <![CDATA["+UUIDLong.absLongUUID()+"]]> "); - stringBuffer.append(" <![CDATA["+UUIDLong.absLongUUID()+"]]> "); - stringBuffer.append(" "); - - } else { - - stringBuffer.append(" "); - //stringBuffer.append(" "); - stringBuffer.append("" + 1 + " "); - stringBuffer.append(""); - stringBuffer.append(" "); - stringBuffer.append(" "); - stringBuffer.append(""); - } - - } - } - - } - - String str = "\n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n"; - if (stringBuffer != null) { - str += stringBuffer.toString(); - str += " \n" + - " \n" + - " \n" + - " \n" + - ""; - } else { - str += " \n" + - " \n" + - " \n" + - " \n" + - ""; - } - - - return str; - } - - - /** - * 组织模板 - * @param jsonObject - * @param type - * @return - */ - private String createOrgTempData(JSONObject jsonObject, String type) { - String detailsStr = jsonObject.getString("details"); - StringBuffer stringBuffer = null; - if (!StringUtils.isEmpty(detailsStr)) { - List attributeArray = JSON.parseArray(detailsStr, JSONObject.class); - if (null != attributeArray && attributeArray.size() > 0) { - stringBuffer = new StringBuffer(); - for (JSONObject object : attributeArray) { - //如果是更新类型的,增加title标签 - if (type.equalsIgnoreCase(UPDATEARCHIVES)) { - stringBuffer.append(" "); - stringBuffer.append(" <![CDATA[" + UUIDLong.absLongUUID() + "]]> "); - //stringBuffer.append(" <![CDATA[" + UUIDLong.absLongUUID() + "]]> "); - stringBuffer.append(" <![CDATA[" + UUIDLong.absLongUUID() + "]]> "); - stringBuffer.append(" <![CDATA[" + UUIDLong.absLongUUID() + "]]> "); - stringBuffer.append(" <![CDATA[" + UUIDLong.absLongUUID() + "]]> "); - stringBuffer.append(" "); - - } else { - stringBuffer.append(" "); - stringBuffer.append(" "); - // stringBuffer.append(" " + 1 + " "); - stringBuffer.append(" "); - stringBuffer.append(" "); - stringBuffer.append(" "); - stringBuffer.append(" "); - } - - } - } - - } - - String str = "\n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " " + - " " + - " " + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n"; - if (stringBuffer != null) { - str += stringBuffer.toString(); - str += " \n" + - " \n" + - " \n" + - " \n" + - ""; - } else { - str += " \n" + - " \n" + - " \n" + - " \n" + - ""; - } - return str; - } - - //交行CFS日志 - private String createCfsTempData(JSONObject jsonObject, String type){ - String xml = ""; - String tabNameCh = StringUtil.nullConvert(jsonObject.getString("tab_name_ch")); - String tabNameEn = StringUtil.nullConvert(jsonObject.getString("tab_name_en")); - String id = StringUtil.nullConvert(jsonObject.getString("id")); - String billCode = StringUtil.nullConvert(jsonObject.getString("bill_code")); - String title = StringUtil.nullConvert(jsonObject.getString("title")); - String eventType = StringUtil.nullConvert(jsonObject.getString("event_type")); - String formApp = StringUtil.nullConvert(jsonObject.getString("form_app_id")); - String statusMsg = StringUtil.nullConvert(jsonObject.getString("status_msg")); - String serialNo = StringUtil.nullConvert(jsonObject.getString("serial_no")); - String result = StringUtil.nullConvert(jsonObject.getString("result")); - String dataXml = StrUtil.format(xml,tabNameCh,tabNameEn,id,billCode,title,eventType,formApp,statusMsg,serialNo,result); - return dataXml; - } - /*** - * - * @content:推送无流程表单同步钉钉 - * @author 👻👻👻👻👻👻👻👻 yuqh - * @date 2023年9月2日12:56:18 - * @param - * @return void - **/ - @Override - public JsonResultEntity sendConDocTodd(JSONObject requestJson) { - //todo 临时直接传递参数 - return BaseResult.getSuccessMessageEntity("传递钉钉成功→普通表单",iddInterfaceService.senddd(requestJson)); - } - /*** - * - * @content:流程表单传递钉钉 - * @author 👻👻👻👻👻👻👻👻 yuqh - * @date 2023年9月5日09:38:38 - * @param - * @return void - **/ - @Override - public JsonResultEntity sendProcessDocument(JSONObject requestJson) { - return BaseResult.getSuccessMessageEntity("传递钉钉成功→流程表单",iddInterfaceService.senddd(requestJson)); - } - - /** - * - * @content 杭泰OA付款单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/10/12 15:57 - * **/ - @Override - public String sendpayMentToCFS(Map businessData) { - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0327"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0146"));//OA业务主键 - //付款摘要 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0329obj = businessData.get("formson_0329"); - JSONArray formson0329List = JSON.parseArray(JSON.toJSONString(formson_0329obj)); - boolean flag = false; - if (formson0329List != null && formson0329List.size() > 0) { - JSONArray formson0329Array = new JSONArray(); - for (Object o : formson0329List) { - JSONObject formson_0330Json = JSON.parseObject(JSON.toJSONString(o)); - //判断开户银行是否是交通银行 - if(null !=formson_0330Json.getString("field0211") && (formson_0330Json.getString("field0211").contains("交通银行") || formson_0330Json.getString("field0211").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails = new JSONObject(); - jsonObjectDetails.put("payerAccName", businessDatamain.getString("field0116"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo", formson_0330Json.getString("field0137"));//转出方账号 - jsonObjectDetails.put("curCode", "CNY");//付款方币种 - jsonObjectDetails.put("payeeAccName", formson_0330Json.getString("field0136"));//收款人帐户名称 - purposeBuff.append(formson_0330Json.getString("field0136")); - jsonObjectDetails.put("payeeAccNo", formson_0330Json.getString("field0210"));//收款人帐户号 - jsonObjectDetails.put("amount", formson_0330Json.getString("field0135"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode", formson_0330Json.getString("field0257"));//收款人联行号 - jsonObjectDetails.put("payType", "34");//结算方式 - jsonObjectDetails.put("businessType", "04");//业务类别 - jsonObjectDetails.put("isForindividual", "0");//是否对私付款 - jsonObjectDetails.put("creditByCustomer", businessDatamain.getString("field0149"));//贷方客商辅助核算编码 - jsonObjectDetails.put("debitByBankAcc", formson_0330Json.getString("field0137"));//借方银行账户辅助核算编码 - String isQuick = null; - if (null !=formson_0330Json.getBigDecimal("field0135") && formson_0330Json.getBigDecimal("field0135").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick", isQuick);//加急标志 - formson0329Array.add(jsonObjectDetails); - map.put("details", formson0329Array); - } - } - purposeBuff.append("对公付款单款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0146")); - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr", map); - logger.info("对公付款单传递CFS在SeeYonInterFaceImpl中的请求参数为:"+JSONObject.toJSONString(jsonObject)); - String result = payMentService.sendOAPayMentToCFS(jsonObject,"pay"); - //String result="{\"statusMsg\":\"当前为对公交易,收款方联行号不能为空!\",\"erpVoucherNoCfs\":\"DG202402280158\",\"serialNo\":\"\"}"; - logger.info("对公付款单传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新付款单推送标识----------"); - //更新付款单的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0327"); - seeyonEntity.setPushField("field0255"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("付款信息保存成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------付款单推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------付款单推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - logger.info("杭泰OA付款单数据获取失败,原因为:"+e.getMessage()); - } - return null; - } - - /** - * - * @content 杭泰OA报销单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/10/16 15:27 - * **/ - @Override - public String sendBusinessExpenseToCFS(Map businessData,String formApp) { - try { - String result=null; - switch (formApp){ - case "-321958445006631163"://差旅报销单 - result= travelReimbursement(businessData,formApp); break; - case "-4485599744122928342"://招待报销单 - result= hospitalityReimbursement(businessData,formApp); + /** 处理事件*/ + case "onFinishWorkitem": break; - case "4728403652378707515"://日常报销单 - result=routineReimbursement(businessData,formApp); + /** 回退前事件*/ + case "onBeforeStepBack": + break; + /** 回退事件*/ + case "onStepBack": + break; + /** 取回前事件*/ + case "onBeforeTakeBack": + break; + /** 取回事件*/ + case "onTakeBack": break; default: - break; +// throw new RuntimeException("传入了非法事件类型!请参照:" + eventTypeBuffer.toString()); + return BaseResult.getFailureMessageEntity("传入了非法事件类型!请参照:" + eventTypeBuffer.toString(), "", ""); } - return result; + return BaseResult.getSuccessMessageEntity("传递成功", result); }catch (Exception e){ - e.printStackTrace(); - logger.info("杭泰报销单失败:{}"+e.getMessage()); + return BaseResult.getFailureMessageEntity("传递失败",e.getMessage()); } - return null; } - //差旅报销单 - private String travelReimbursement(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0307"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0094"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson0311Obj = businessData.get("formson_0311"); - JSONArray formson_0311List = JSON.parseArray(JSON.toJSONString(formson0311Obj)); - boolean flag=false; - if(formson_0311List!=null && formson_0311List.size()>0){ - JSONArray formson_0311Array = new JSONArray(); - for (Object o : formson_0311List) { - JSONObject formson_0311Json = JSON.parseObject(JSON.toJSONString(o)); - if(null !=formson_0311Json.getString("field0265") && (formson_0311Json.getString("field0265").contains("交通银行") || formson_0311Json.getString("field0265").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails=new JSONObject(); - //根据收款方id查询收款方名称 - SeeyonEntity seeyonEntity = new SeeyonEntity(); - seeyonEntity.setId(businessDatamain.getString("field0015")); - List seeyonEntities = seeYonDao.selectOAListByField0258(seeyonEntity); - if (seeyonEntities.size() > 0) { - jsonObjectDetails.put("payeeAccName", seeyonEntities.get(0).getName());//收款人帐户名称 - } else { - jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0015"));//收款人帐户名称 - } - jsonObjectDetails.put("payerAccName",businessDatamain.getString("field0188"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo",formson_0311Json.getString("field0266"));//转出方账号 - jsonObjectDetails.put("curCode","CNY");//付款方币种 - //jsonObjectDetails.put("payeeAccName",formson_0311Json.getString("field0313"));//收款人帐户名称 - purposeBuff.append(jsonObjectDetails.getString("payeeAccName")); - jsonObjectDetails.put("payeeAccNo",formson_0311Json.getString("field0218"));//收款人帐户号 - jsonObjectDetails.put("amount",formson_0311Json.getString("field0215"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode",formson_0311Json.getString("field0311"));//收款人联行号 - jsonObjectDetails.put("payType","34");//结算方式 - String isQuick=null; - if (null !=formson_0311Json.getBigDecimal("field0215") && formson_0311Json.getBigDecimal("field0215").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick",isQuick);//加急标志 - formson_0311Array.add(jsonObjectDetails); - map.put("details",formson_0311Array); - } - } - purposeBuff.append("差旅报销款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0094")); - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr",map); - String result= payMentService.sendExpenseToCFS(jsonObject); - //String result="{\"statusMsg\":\"成功\",\"erpVoucherNoCfs\":\"-9050113785393100178\",\"serialNo\":\"1111\"}"; - logger.info("差旅报销单传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新差旅报销单推送标识----------"); - //更新付款单的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0307"); - seeyonEntity.setPushField("field0309"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("报销交易信息验证成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------差旅报销单推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------差旅报销单推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - e.printStackTrace(); - logger.info("差旅报销单开始从SeeYonInterFaceImpl传递CFS失败,原因为:{}",e.getMessage()); - } - return null; - } - - //招待报销单 - private String hospitalityReimbursement(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0294"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0053"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0297Obj = businessData.get("formson_0297"); - JSONArray formson_0297List = JSON.parseArray(JSON.toJSONString(formson_0297Obj)); - boolean flag=false; - if(formson_0297List!=null && formson_0297List.size()>0){ - JSONArray formson0297Array = new JSONArray(); - for (Object o : formson_0297List) { - JSONObject formson_0297Json = JSON.parseObject(JSON.toJSONString(o)); - if(null != formson_0297Json.getString("field0098") && (formson_0297Json.getString("field0098").contains("交通银行") || formson_0297Json.getString("field0098").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails=new JSONObject(); - //根据收款方id查询收款方名称 - SeeyonEntity seeyonEntity = new SeeyonEntity(); - seeyonEntity.setId(businessDatamain.getString("field0002")); - List seeyonEntities = seeYonDao.selectOAListByField0258(seeyonEntity); - if (seeyonEntities.size() > 0) { - jsonObjectDetails.put("payeeAccName", seeyonEntities.get(0).getName());//收款人帐户名称 - } else { - jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0002"));//收款人帐户名称 - } - jsonObjectDetails.put("payerAccName",businessDatamain.getString("field0080"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo",formson_0297Json.getString("field0073"));//转出方账号 - jsonObjectDetails.put("curCode","CNY");//付款方币种 - //jsonObjectDetails.put("payeeAccName",formson_0297Json.getString("field0178"));//收款人帐户名称 - purposeBuff.append(jsonObjectDetails.getString("payeeAccName")); - jsonObjectDetails.put("payeeAccNo",formson_0297Json.getString("field0136"));//收款人帐户号 - jsonObjectDetails.put("amount",formson_0297Json.getString("field0100"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode",formson_0297Json.getString("field0176"));//收款人联行号 - jsonObjectDetails.put("payType","34");//结算方式 - String isQuick=null; - if (null !=formson_0297Json.getBigDecimal("field0100") && formson_0297Json.getBigDecimal("field0100").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick",isQuick);//加急标志 - formson0297Array.add(jsonObjectDetails); - map.put("details",formson0297Array); - } - } - purposeBuff.append("招待报销款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0053")); - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr",map); - String result= payMentService.sendExpenseToCFS(jsonObject); - //String result="{\"statusMsg\":\"成功\",\"erpVoucherNoCfs\":\"-9050113785393100178\",\"serialNo\":\"1111\"}"; - logger.info("招待报销单传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新招待报销单推送标识----------"); - //更新付款单的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0294"); - seeyonEntity.setPushField("field0174"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("报销交易信息验证成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------招待报销单推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------招待报销单推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - e.printStackTrace(); - logger.info("招待报销单开始从SeeYonInterFaceImpl传递CFS失败,原因为:{}",e.getMessage()); - } - return null; - } - - //日常报销单 - private String routineReimbursement(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0314"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0220"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0317Obj = businessData.get("formson_0317"); - JSONArray formson_0317List = JSON.parseArray(JSON.toJSONString(formson_0317Obj)); - boolean flag=false; - if(formson_0317List!=null && formson_0317List.size()>0){ - JSONArray formson_0317Array = new JSONArray(); - for (Object o : formson_0317List) { - JSONObject formson_0317Json = JSON.parseObject(JSON.toJSONString(o)); - if(null != formson_0317Json.getString("field0268") && (formson_0317Json.getString("field0268").contains("交通银行") || formson_0317Json.getString("field0268").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails=new JSONObject(); - //根据收款方id查询收款方名称 - SeeyonEntity seeyonEntity = new SeeyonEntity(); - seeyonEntity.setId(businessDatamain.getString("field0015")); - List seeyonEntities = seeYonDao.selectOAListByField0258(seeyonEntity); - if (seeyonEntities.size() > 0) { - jsonObjectDetails.put("payeeAccName", seeyonEntities.get(0).getName());//收款人帐户名称 - } else { - jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0015"));//收款人帐户名称 - } - jsonObjectDetails.put("payerAccName",businessDatamain.getString("field0188"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo",formson_0317Json.getString("field0269"));//转出方账号 - jsonObjectDetails.put("curCode","CNY");//付款方币种 - //jsonObjectDetails.put("payeeAccName",formson_0317Json.getString("field0299"));//收款人帐户名称 - purposeBuff.append(jsonObjectDetails.getString("payeeAccName")); - jsonObjectDetails.put("payeeAccNo",formson_0317Json.getString("field0217"));//收款人帐户号 - jsonObjectDetails.put("amount",formson_0317Json.getString("field0215"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode",formson_0317Json.getString("field0297"));//收款人联行号 - jsonObjectDetails.put("payType","34");//结算方式 - String isQuick=null; - if (null !=formson_0317Json.getBigDecimal("field0215") && formson_0317Json.getBigDecimal("field0215").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick",isQuick);//加急标志 - formson_0317Array.add(jsonObjectDetails); - map.put("details",formson_0317Array); - } - } - purposeBuff.append("日常报销款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0220")); - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr",map); - String result= payMentService.sendExpenseToCFS(jsonObject); - logger.info("日常报销单传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新日常报销单推送标识----------"); - //更新付款单的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0314"); - seeyonEntity.setPushField("field0295"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("报销交易信息验证成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) &&(null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------日常报销单推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------日常报销单推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - e.printStackTrace(); - logger.info("日常报销单开始从SeeYonInterFaceImpl传递CFS失败,原因为:{}",e.getMessage()); - } - return null; - } - - /** - * - * @content 杭泰OA资金归集,资金拨付,同名账户划转,借款单传递CFS - * @Param - * @Return - * @Author hecan - * @Date 2023/12/20 9:12 - * **/ - @Override - public String sendOtherFourReceipt(Map map, String formApp) { - try { - String result=null; - switch (formApp){ - case "910366613209564645"://资金归集 - result= fundCollection(map,formApp); - break; - case "-102527561419044497"://资金拨付 - result=fundAllocation(map,formApp); - break; - case "-1193625514072190978"://同名账户划转 - result=accountTransfer(map,formApp); - break; - case "4645133897573090505"://借款单(借还款) - result= loanRepayment(map,formApp); - break; - default: - break; - } - return result; - }catch (Exception e){ - e.printStackTrace(); - logger.info("杭泰OA资金归集,资金拨付,同名账户划转,借款单传递CFS错误,原因为{}",e.getMessage()); - } - return null; - } @Override public JsonResultEntity thirdInterfaceSeeYonDefinitionRePush(JSONObject jsonObject) throws Exception { @@ -3285,7 +330,6 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { SeeYonInterFaceEntity seeYonInterFaceEntity = new SeeYonInterFaceEntity(); BeanUtil.copyProperties(requestData,seeYonInterFaceEntity); List seeYonInterFaceEntityList = seeYonInterFaceDao.queryDefinitionInfo(seeYonInterFaceEntity); - System.out.println(seeYonInterFaceEntityList); if(null != seeYonInterFaceEntityList && seeYonInterFaceEntityList.size() >0){ for(SeeYonInterFaceEntity interFaceEntity : seeYonInterFaceEntityList){ String field_info = interFaceEntity.getField_info(); @@ -3346,9 +390,10 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { object.put("eventType",eventType); object.put("businessDataStr",seeYonBean.toJSONString()); object.put("affairId",""); - object.put("summaryId",""); + object.put("summaryId",requestData.getString("summaryId")); object.put("currentActivityId",""); object.put("id",forMainId); + object.put("hzyaExtData",requestData.getJSONObject("hzyaExtData")); logger.info("Method:thirdInterfaceSeeYonDefinitionRePush 组装seeYonBean DATA: {}",seeYonBean.toJSONString()); rePushRequestData.put("jsonStr",object); @@ -3371,339 +416,98 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace { return BaseResult.getSuccessMessageEntity("从新推送执行结束",resultEntityArray); } - //资金归集 - private String fundCollection(Map businessData, String formApp){ + /** + * seeyon流程事件监听前置方法,绑定数据源 + * @param entity + * @return + * @throws Exception + */ + @Override + public SysExtensionApiEntity colEventPre(SysExtensionApiEntity entity) throws Exception { try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0362"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0047"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - purposeBuff.append(businessDatamain.getString("field0001")); - Object formson_0378obj = businessData.get("formson_0378"); - JSONArray formson_0378List = JSON.parseArray(JSON.toJSONString(formson_0378obj)); - boolean flag = false; - if (formson_0378List != null && formson_0378List.size() > 0) { - JSONArray formson_0378Array = new JSONArray(); - for (Object o : formson_0378List) { - JSONObject formson_0330Json = JSON.parseObject(JSON.toJSONString(o)); - //判断开户银行是否是交通银行 - if(null !=formson_0330Json.getString("field0007") && (formson_0330Json.getString("field0007").contains("交通银行") || formson_0330Json.getString("field0007").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails = new JSONObject(); - jsonObjectDetails.put("payerAccName", formson_0330Json.getString("field0003"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo", formson_0330Json.getString("field0008"));//转出方账号 - jsonObjectDetails.put("curCode", "CNY");//付款方币种 - jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0001"));//收款人帐户名称 - jsonObjectDetails.put("payeeAccNo", businessDatamain.getString("field0023"));//收款人帐户号 - jsonObjectDetails.put("amount", formson_0330Json.getString("field0004"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode", businessDatamain.getString("field0046"));//收款人联行号 - jsonObjectDetails.put("payType", "34");//结算方式 - jsonObjectDetails.put("businessType", "04");//业务类别 - jsonObjectDetails.put("isForindividual", "0");//是否对私付款 - jsonObjectDetails.put("debitByCustomer", businessDatamain.getString("field0037"));//借方客商辅助核算编码 - jsonObjectDetails.put("creditByCustomer", formson_0330Json.getString("field0036"));//贷方客商辅助核算编码 - jsonObjectDetails.put("creditByBankAcc", formson_0330Json.getString("field0008"));//贷方银行账户辅助核算编码 - String isQuick = null; - if (null !=formson_0330Json.getBigDecimal("field0004") && (formson_0330Json.getBigDecimal("field0004").compareTo(BigDecimal.valueOf(50000)) == 1)) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick", isQuick);//加急标志 - formson_0378Array.add(jsonObjectDetails); - map.put("details", formson_0378Array); - } + SysApplicationEntity applicationEntity = entity.getSendApp(); + SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity(); + sysApplicationDatabaseEntity.setSts("Y"); + sysApplicationDatabaseEntity.setDbStatus("1"); + sysApplicationDatabaseEntity.setAppId(applicationEntity.getId()); + sysApplicationDatabaseEntity.setDataSourceCode("master"); + List sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity); + if(sysDataSourceEntities != null && sysDataSourceEntities.size() > 0){ + String parm = entity.getBodys(); + JSONObject jsonObject = JSONObject.parseObject(parm); + jsonObject.put("dataSourceCode",sysDataSourceEntities.get(0).getSourceCode()); + entity.setBodys(jsonObject.toJSONString()); } - purposeBuff.append("资金归集款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0047"));//单据编号 - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr", map); - String result = payMentService.sendOAPayMentToCFS(jsonObject,"fundc"); - logger.info("资金归集传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新资金归集推送标识----------"); - //更新资金归集的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0362"); - seeyonEntity.setPushField("field0045"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("付款信息保存成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------资金归集推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------资金归集推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; + } catch (Exception e) { + e.printStackTrace(); + } + return entity; + } + + /** + * seeyon流程事件监听 + * + * @param jsonObject + * @return + * @throws Exception + */ + @Override + public JsonResultEntity colEventListener(JSONObject jsonObject) throws Exception { + try { + if (null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("jsonStr"))){ + SeeYonInterFaceEntity entity = jsonObject.getJSONObject("jsonStr").toJavaObject(SeeYonInterFaceEntity.class); + JSONObject requestData = new JSONObject(); + //表单模版ID + requestData.put("formAppId", entity.getFormAppId()); + //事件事件类型 + requestData.put("eventType",entity.getEventType()); + //数据源编码 + requestData.put("dataSourceCode",entity.getDataSourceCode()); + requestData.put("formMainIds",entity.getFormMainIds()); + requestData.put("summaryId",entity.getSummaryId()); + JSONObject jsonStr = new JSONObject(); + jsonStr.put("jsonStr",requestData); + thirdInterfaceSeeYonDefinitionRePush(jsonStr); } }catch (Exception e){ - logger.info("杭泰OA资金归集数据获取失败,原因为:"+e.getMessage()); + logger.error("流程事件通知接口出错:{}",e); + return BaseResult.getSuccessMessageEntity("失败",e.getMessage()); + } + return BaseResult.getSuccessMessageEntity("成功"); + } + + /** + * seeyon流程事件监听后置方法,调用三方接口 + * + * @param jsonStr + * @param formAppId + * @param eventType + * @return + * @throws Exception + */ + @Override + public String colEventPost(String jsonStr, String formAppId, String eventType) throws Exception { + if (StrUtil.isNotEmpty(jsonStr) && StrUtil.isNotEmpty(formAppId) && StrUtil.isNotEmpty(eventType)){ + SysApplicationApiEntity sysApplicationApiEntity = new SysApplicationApiEntity(); + sysApplicationApiEntity.setHeaderIn(formAppId+"_"+eventType); + List applist = sysApplicationApiService.queryLike(sysApplicationApiEntity); + if (CollectionUtil.isNotEmpty(applist)){ + if (applist.size() > 1){ + throw new BaseSystemException("根据formID:" + formAppId+"查询出多条数据"); + } + SysApplicationApiEntity sysApp = applist.get(0); + Map headerMap = MapBuilder.create(true) + .put("apiCode", String.valueOf(sysApp.getApiCode())) + //这里用中台做为发送方 + .put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj") + .put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=") + .put("appId",String.valueOf(sysApp.getAppCode())) + .build(); + String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(jsonStr).timeout(60000).execute().body(); + logger.info("调用中台返回的参数:{}",body); + return body; + } } return null; } - - //资金拨付 - private String fundAllocation(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0464"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0045"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0465obj = businessData.get("formson_0465"); - JSONArray formson_0465List = JSON.parseArray(JSON.toJSONString(formson_0465obj)); - boolean flag = false; - if (formson_0465List != null && formson_0465List.size() > 0) { - JSONArray formson_0465Array = new JSONArray(); - for (Object o : formson_0465List) { - JSONObject formson_0330Json = JSON.parseObject(JSON.toJSONString(o)); - //判断开户银行是否是交通银行 - if(null != businessDatamain.getString("field0022") && (businessDatamain.getString("field0022").contains("交通银行") || businessDatamain.getString("field0022").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails = new JSONObject(); - jsonObjectDetails.put("payerAccName", businessDatamain.getString("field0001"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo", businessDatamain.getString("field0023"));//转出方账号 - jsonObjectDetails.put("curCode", "CNY");//付款方币种 - jsonObjectDetails.put("payeeAccName", formson_0330Json.getString("field0003"));//收款人帐户名称 - purposeBuff.append(formson_0330Json.getString("field0003")); - jsonObjectDetails.put("payeeAccNo", formson_0330Json.getString("field0008"));//收款人帐户号 - jsonObjectDetails.put("amount", formson_0330Json.getString("field0004"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode", formson_0330Json.getString("field0044"));//收款人联行号 - jsonObjectDetails.put("payType", "34");//结算方式 - jsonObjectDetails.put("businessType", "04");//业务类别 - jsonObjectDetails.put("isForindividual", "0");//是否对私付款 - jsonObjectDetails.put("debitByCustomer", formson_0330Json.getString("field0036"));//借方客商辅助核算编码 - jsonObjectDetails.put("creditByCustomer", businessDatamain.getString("field0037"));//贷方客商辅助核算编码 - jsonObjectDetails.put("creditByBankAcc", formson_0330Json.getString("field0023"));//贷方银行账户辅助核算编码 - - String isQuick = null; - if (null !=formson_0330Json.getBigDecimal("field0004") && formson_0330Json.getBigDecimal("field0004").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick", isQuick);//加急标志 - formson_0465Array.add(jsonObjectDetails); - map.put("details", formson_0465Array); - } - } - purposeBuff.append("资金拨付款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0045"));//单据编号 - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr", map); - String result = payMentService.sendOAPayMentToCFS(jsonObject,"funda"); - logger.info("资金拨付传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新资金拨付推送标识----------"); - //更新资金拨付的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0464"); - seeyonEntity.setPushField("field0043"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("付款信息保存成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) &&(null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------资金拨付推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------资金拨付推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - logger.info("杭泰OA资金拨付数据获取失败,原因为:"+e.getMessage()); - } - return null; - } - - //同名账户划转 - private String accountTransfer(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0467"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0045"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0469obj = businessData.get("formson_0469"); - JSONArray formson_0469List = JSON.parseArray(JSON.toJSONString(formson_0469obj)); - boolean flag = false; - if (formson_0469List != null && formson_0469List.size() > 0) { - JSONArray formson_0469Array = new JSONArray(); - for (Object o : formson_0469List) { - JSONObject formson_0469Json = JSON.parseObject(JSON.toJSONString(o)); - //判断开户银行是否是交通银行 - if(null!= formson_0469Json.getString("field0015") && (formson_0469Json.getString("field0015").contains("交通银行") || formson_0469Json.getString("field0015").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails = new JSONObject(); - jsonObjectDetails.put("payerAccName", businessDatamain.getString("field0021"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo", formson_0469Json.getString("field0016"));//转出方账号 - jsonObjectDetails.put("curCode", "CNY");//付款方币种 - jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0021"));//收款人帐户名称 - jsonObjectDetails.put("payeeAccNo", formson_0469Json.getString("field0019"));//收款人帐户号 - purposeBuff.append(formson_0469Json.getString("field0019")); - jsonObjectDetails.put("amount", formson_0469Json.getString("field0020"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode", formson_0469Json.getString("field0044"));//收款人联行号 - jsonObjectDetails.put("payType", "34");//结算方式 - jsonObjectDetails.put("businessType", "04");//业务类别 - jsonObjectDetails.put("isForindividual", "0");//是否对私付款 - jsonObjectDetails.put("debitByBankAcc", formson_0469Json.getString("field0019"));//借方银行账户辅助核算编码 - jsonObjectDetails.put("creditByCustomer", businessDatamain.getString("field0038"));//贷方客商辅助核算编码 - jsonObjectDetails.put("creditByBankAcc", formson_0469Json.getString("field0016"));//贷方银行账户辅助核算编码 - String isQuick = null; - if (null !=formson_0469Json.getBigDecimal("field0020") && formson_0469Json.getBigDecimal("field0020").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick", isQuick);//加急标志 - formson_0469Array.add(jsonObjectDetails); - map.put("details", formson_0469Array); - } - } - purposeBuff.append("同名账户划转款项,单据号-"); - purposeBuff.append(businessDatamain.getString("field0045"));//单据编号 - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr", map); - String result = payMentService.sendOAPayMentToCFS(jsonObject,"acc"); - logger.info("同名账户划转传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新同名账户划转推送标识----------"); - //更新资金拨付的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0467"); - seeyonEntity.setPushField("field0043"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("付款信息保存成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------同名账户划转推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------同名账户划转推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - logger.info("杭泰OA同名账户划转数据获取失败,原因为:"+e.getMessage()); - } - return null; - } - - //借还款 - private String loanRepayment(Map businessData, String formApp){ - try { - JSONObject jsonObject=new JSONObject(); - Object mainObj = businessData.get("formmain_0293"); - JSONObject businessDatamain = JSON.parseObject(JSON.toJSONString(mainObj)); - JSONObject map=new JSONObject(); - map.put("erpVoucherNo",businessDatamain.getString("field0056"));//OA业务主键 - StringBuffer purposeBuff = new StringBuffer("付"); - Object formson_0399obj = businessData.get("formson_0399"); - JSONArray formson_0399List = JSON.parseArray(JSON.toJSONString(formson_0399obj)); - boolean flag = false; - if (formson_0399List != null && formson_0399List.size() > 0) { - JSONArray formson_0399Array = new JSONArray(); - for (Object o : formson_0399List) { - JSONObject formson_0399Json = JSON.parseObject(JSON.toJSONString(o)); - //判断开户银行是否是交通银行 - if(null !=formson_0399Json.getString("field0078") && (formson_0399Json.getString("field0078").contains("交通银行") || formson_0399Json.getString("field0078").contains("上海银行"))){ - flag=true; - } - JSONObject jsonObjectDetails = new JSONObject(); - //根据转出方得id查询转出方名称 - SeeyonEntity seeyonEntity = new SeeyonEntity(); - seeyonEntity.setId(businessDatamain.getString("field0006")); - List seeyonEntities = seeYonDao.selectOAListByField0258(seeyonEntity); - if (seeyonEntities.size() > 0) { - jsonObjectDetails.put("payeeAccName", seeyonEntities.get(0).getName());//收款人帐户名称 - } - jsonObjectDetails.put("payerAccName", businessDatamain.getString("field0074"));//转出方帐户名 - jsonObjectDetails.put("payerAccNo", formson_0399Json.getString("field0079"));//转出方账号 - jsonObjectDetails.put("curCode", "CNY");//付款方币种 - //jsonObjectDetails.put("payeeAccName", businessDatamain.getString("field0006"));//收款人帐户名称 - purposeBuff.append(jsonObjectDetails.getString("payeeAccName")); - jsonObjectDetails.put("payeeAccNo", formson_0399Json.getString("field0081"));//收款人帐户号 - jsonObjectDetails.put("amount", formson_0399Json.getString("field0077"));//余额/发生额 - jsonObjectDetails.put("payeeBankCode", formson_0399Json.getString("field0093"));//收款人联行号 - jsonObjectDetails.put("payType", "34");//结算方式 - jsonObjectDetails.put("businessType", "04");//业务类别 - jsonObjectDetails.put("isForindividual", "0");//是否对私付款 - jsonObjectDetails.put("creditByCustomer", businessDatamain.getString("field0084"));//贷方客商辅助核算编码 - jsonObjectDetails.put("debitByPersonnel", businessDatamain.getString("field0094"));//借方人员辅助核算编码 - jsonObjectDetails.put("creditByBankAcc", formson_0399Json.getString("field0079"));//贷方银行账户辅助核算编码 - String isQuick = null; - if (null !=formson_0399Json.getBigDecimal("field0077") && formson_0399Json.getBigDecimal("field0077").compareTo(BigDecimal.valueOf(50000)) == 1) {//如果=1,说明大于50000,如果=-1,说明小于50000 - isQuick = "1";//加急标志 1:加急 0:不加急 - } else { - isQuick = "0";//普通标志 - } - jsonObjectDetails.put("isQuick", isQuick);//加急标志 - formson_0399Array.add(jsonObjectDetails); - map.put("details", formson_0399Array); - } - } - purposeBuff.append("借款单款项,借款单据编号-"); - purposeBuff.append(businessDatamain.getString("field0056"));//单据编号 - map.put("purpose",purposeBuff.toString());//摘要 - //只有交通银行的才传递CFS - if(flag==true){ - jsonObject.put("jsonStr", map); - String result = payMentService.sendOAPayMentToCFS(jsonObject,"loan"); - logger.info("借还款传递CFS在SeeYonInterFaceImpl中的返回结果为:"+result); - JSONObject jsonObjectResult = JSONObject.parseObject(result); - logger.info("------开始更新借还款推送标识----------"); - //更新资金拨付的推送状态 - SeeyonEntity seeyonEntity=new SeeyonEntity(); - seeyonEntity.setTableName("formmain_0293"); - seeyonEntity.setPushField("field0092"); - seeyonEntity.setId(businessDatamain.getString("id")); - if("付款信息保存成功".equalsIgnoreCase(jsonObjectResult.getString("statusMsg")) && (null!=jsonObjectResult.getString("serialNo") && !"".equals(jsonObjectResult.getString("serialNo")))){ - seeyonEntity.setPushValue("推送成功"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------借还款推送标识更新为推送成功完成----------"); - }else{ - seeyonEntity.setPushValue("推送失败"); - seeYonDao.updatepush(seeyonEntity); - logger.info("------借还款推送标识更新为推送失败完成----------"); - } - return result; - } else { - logger.info("付款方开户银行不是交通银行类型或者没有银行明细,传递不了CFS"); - return null; - } - }catch (Exception e){ - logger.info("杭泰OA借还款数据获取失败,原因为:"+e.getMessage()); - } - return null; - } - - - - } diff --git a/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeyonExtServiceImpl.java b/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeyonExtServiceImpl.java new file mode 100644 index 00000000..677a14a2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/service/impl/SeeyonExtServiceImpl.java @@ -0,0 +1,241 @@ +package com.hzya.frame.seeyon.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.seeyon.entity.OAWorkflowEventDataEntity; +import com.hzya.frame.seeyon.service.ISeeyonExtService; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService; +import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity; +import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogStatusEnum; +import com.hzya.frame.u8.util.U8Util; +import com.hzya.frame.uuid.UUIDLong; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + * @Description seeyon扩展类 + * @Author xiangerlin + * @Date 2024/5/14 14:04 + **/ +@Service(value = "seeyonExt") +public class SeeyonExtServiceImpl implements ISeeyonExtService { + + + Logger logger = LogManager.getLogger(getClass()); + + @Autowired + private IIntegrationTaskLivingDetailsService taskLivingDetailsService; + + /** + * 英德赛 OA档案传U8 + * 根据不同formApp来调U8不同接口 + * @Since 3.0 + * @param entity + * @return + */ + @Override + public SysExtensionApiEntity ydcSeeyon2u8(SysExtensionApiEntity entity) { + String bodys = entity.getBodys(); + if (StrUtil.isNotEmpty(bodys)){ + try { + OAWorkflowEventDataEntity dataEntity = JSON.parseObject(bodys,OAWorkflowEventDataEntity.class); + String businessDataStr = dataEntity.getBusinessDataStr();//oa表单参数 + JSONObject businessData = JSON.parseObject(businessDataStr); + String formApp = dataEntity.getFormApp(); + SysExtensionApiEntity param = new SysExtensionApiEntity(); + Map headerMap = entity.getHeaders(); + JSONObject hzyaExtData = dataEntity.getHzyaExtData();//扩展参数 + if (null == hzyaExtData){ + hzyaExtData = new JSONObject(); + } + //根据forApp组装不同参数 + switch (formApp){ + case "-8691606453890363968":// + hzyaExtData.put("billCode", "cunhuoabc123456"); + getInventory(businessData,param); + break; + case "6223456019738676230": + getSupplier(businessData,param,hzyaExtData); + break; + case "-9122508232154527168": + getCustomer(businessData,param,hzyaExtData); + break; + default: + param.setBodys("未匹配到表单!当前formID:"+ formApp); + logger.error("未匹配到表单!当前formID:"+formApp); + } + headerMap.put("hzyaExtData", JSON.toJSONString(hzyaExtData)); + return param; + }catch (Exception e){ + e.printStackTrace(); + logger.error("执行英德赛OA存货同步U8接口报错:{}", e); + } + } + return null; + } + + /** + * 回调方法 + * @Since 3.0 + * @param logEntity + */ + @Override + public void ydcSeeyon2u8CallBack(SysMessageManageLogEntity logEntity) { + + + //在这里记录日志 + JSONObject targetData = JSON.parseObject(logEntity.getTargetData());//这个对象里的body是 发送到u8的请求报文 + JSONObject sourceData = JSON.parseObject(logEntity.getSourceData()); + JSONObject sourceHeaders = sourceData.getJSONObject("header");//源数据header + JSONObject sourceBody = sourceData.getJSONObject("body");//源数据body + JSONObject hzyaExtData = sourceHeaders.getJSONObject("hzyaExtData"); + JSONArray formMainIds = new JSONArray(); + formMainIds.add(sourceBody.getString("id")); + JSONObject param = new JSONObject(); + String formApp = sourceBody.getString("formApp"); + param.put("formAppId",formApp); + param.put("formMainIds",formMainIds); + param.put("dataSourceCode","ht_oa_sqlserver"); + param.put("eventType",sourceBody.getString("eventType")); + + //把返回的单号更新到oa档案表 + String sql = ""; + switch (formApp){ + case "-8691606453890363968"://存货 + sql = ""; + break; + case "6223456019738676230"://供应商 + sql = "update formmain_0229 set field0002 = '' where field0001 = "+hzyaExtData.getString("billCode"); + break; + case "-9122508232154527168"://客户 + sql = "update formmain_0230 set field0002 = '' where field0001 = "+hzyaExtData.getString("billCode"); + break; + } + IntegrationTaskLivingDetailsEntity logDetails = new IntegrationTaskLivingDetailsEntity(); + logDetails.setRootAppPk(JSON.toJSONString(param)); + logDetails.setRootAppBill(hzyaExtData.getString("billCode")); + logDetails.setNewTransmitInfo(logEntity.getReturnData()); + logDetails.setNewPushDate(new Date()); + logDetails.setRootAppNewData(targetData.getString("body")); + //logDetails.setNewState(SysMessageManageLogStatusEnum.statusGetValue(logEntity.getStatus())); + logDetails.setPluginId("SeeyonExtPlugin"); + try { + if (StrUtil.isEmpty(hzyaExtData.getString("integration_task_living_details_id"))){ + if (SysMessageManageLogStatusEnum.SUCCESS.getType().equals(logEntity.getStatus())) {//成功 + taskLivingDetailsService.saveLogToSuccess(logDetails); + }else { + taskLivingDetailsService.saveLogToFail(logDetails);//失败 + } + }else { + logDetails.setId(hzyaExtData.getString("integration_task_living_details_id")); + if (SysMessageManageLogStatusEnum.SUCCESS.getType().equals(logEntity.getStatus())) {//成功 + taskLivingDetailsService.saveLogFailToSuccess(logDetails); + }else { + taskLivingDetailsService.updateLogFailToSuccess(logDetails);//失败 + } + } + }catch (Exception e){ + logger.error("保存日志出错:{}",e); + } + } + + //存货参数组装 + private SysExtensionApiEntity getInventory(JSONObject businessData,SysExtensionApiEntity param){ + if (null != businessData){ + JSONObject formmain0227 = businessData.getJSONObject("formmain_0227"); + JSONArray formson0228Arr = businessData.getJSONArray("formson_0228"); + for (int i=0; i< formson0228Arr.size(); i++){ + JSONObject formson0228 = formson0228Arr.getJSONObject(i); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("Token", "Hzya1314_CheckSkip"); + jsonObject.put("billid", formson0228.getString("id")); + jsonObject.put("AccId", formmain0227.getString("field0015")); + + JSONObject oArchives = new JSONObject(); + oArchives.put("cInvCode", formson0228.getString("field0002")); + oArchives.put("cInvCCode", formson0228.getString("field0005")); + oArchives.put("cInvName", formson0228.getString("field0003")); + //todo 这个没值 + oArchives.put("cGroupCode", "01"); + oArchives.put("cComUnitCode", formson0228.getString("field0006")); + + jsonObject.put("oArchives", oArchives); + param.setBodys(JSON.toJSONString(jsonObject)); + } + } + return param; + } + //供应商参数组装 + private SysExtensionApiEntity getSupplier(JSONObject businessData,SysExtensionApiEntity param,JSONObject hzyaExtData){ + if (null != businessData){ + JSONObject formmain0225 = businessData.getJSONObject("formmain_0225"); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("billid", formmain0225.getString("id")); + jsonObject.put("AccId", formmain0225.getString("field0020")); + jsonObject.put("Token", U8Util.getToken()); + JSONObject oArchives = new JSONObject(); + oArchives.put("cVenCode", formmain0225.getString("field0002")); + oArchives.put("cVenName ", formmain0225.getString("field0003")); + oArchives.put("cVenAbbName", formmain0225.getString("field0004")); + oArchives.put("cVCCode", formmain0225.getString("field0006")); + oArchives.put("cVenExch_name", formmain0225.getString("field0010")); + //oArchives.put("bVenTax", "false"); + //oArchives.put("bLicenceDate", "false"); + //oArchives.put("bBusinessDate", "false"); + //oArchives.put("bProxyDate", "false"); + //oArchives.put("bPassGMP", "false"); + //oArchives.put("bVenCargo", "false"); + //oArchives.put("bProxyForeign", "true"); + //oArchives.put("bVenService", "true"); + //oArchives.put("iVenGSPType", "0"); + //oArchives.put("bVenOverseas", "false"); + //oArchives.put("bVenAccPeriodMng", "false"); + //oArchives.put("bVenHomeBranch", "false"); + oArchives.put("dVenCreateDatetime", DateUtil.now()); + oArchives.put("cVenRegCode", formmain0225.getString("field0009")); + oArchives.put("cVenBank", formmain0225.getString("field0011")); + oArchives.put("cVenAccount", formmain0225.getString("field0012")); + jsonObject.put("oArchives", oArchives); + param.setBodys(JSON.toJSONString(jsonObject)); + hzyaExtData.put("billCode", formmain0225.getString("field0001")); + hzyaExtData.put("formmainId", formmain0225.getString("id")); + } + return param; + } + //客户参数组装 + private SysExtensionApiEntity getCustomer(JSONObject businessData,SysExtensionApiEntity param,JSONObject hzyaExtData){ + if (null != businessData){ + JSONObject formmain0226 = businessData.getJSONObject("formmain_0226"); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("billid", formmain0226.getString("id")); + jsonObject.put("AccId", formmain0226.getString("field0025")); + jsonObject.put("Token", "Hzya1314_CheckSkip"); + + JSONObject oArchives = new JSONObject(); + oArchives.put("cCusCode", formmain0226.getString("field0002")); + oArchives.put("cCusName", formmain0226.getString("field0007")); + oArchives.put("cCusAbbName", formmain0226.getString("field0008")); + oArchives.put("cCCCode", formmain0226.getString("field0012")); + oArchives.put("cCusExch_name", formmain0226.getString("field0013")); + // todo 这个字段没值 + oArchives.put("cCusMngTypeCode", "999"); + + jsonObject.put("oArchives", oArchives); + param.setBodys(JSON.toJSONString(jsonObject)); + hzyaExtData.put("billCode",formmain0226.getString("field0001")); + hzyaExtData.put("formmainId",formmain0226.getString("id")); + } + return param; + } +} diff --git a/service/src/main/java/com/hzya/frame/seeyon/util/RestUtil.java b/service/src/main/java/com/hzya/frame/seeyon/util/RestUtil.java new file mode 100644 index 00000000..2259638a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/seeyon/util/RestUtil.java @@ -0,0 +1,209 @@ +package com.hzya.frame.seeyon.util; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpUtil; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.seeyon.entity.CollAttachmentResDTO; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; +import com.hzya.frame.sysnew.application.api.service.ISysApplicationApiService; +import com.hzya.frame.web.exception.BaseSystemException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.File; +import java.util.HashMap; +import java.util.List; + +/** + * @Description 致远rest接口工具类 + * @Author xiangerlin + * @Date 2024/6/17 15:49 + **/ +@Component +public class RestUtil { + @Autowired + private ISysApplicationApiService sysApplicationApiService; + static Logger logger = LoggerFactory.getLogger(RestUtil.class); + + private RestUtil() { + } + + + /** + * 附件上传 + * @param file 附件对象 + * @param api_code 接口编码 + * @return + */ + public JSONObject fileUpload(File file,String api_code) { + if (StrUtil.isNotEmpty(api_code)){ + //1、查询附件上传api接口信息 + SysApplicationApiEntity sysApp = getByCode(api_code); + if (null != sysApp){ + String app_url = sysApp.getAppUrl(); + String url = app_url+"/seeyon/rest/attachment?token=@token@"; + String token = getToken(null,"8000240000"); + url = url.replaceAll("@token@",token); + HashMap paramMap = new HashMap<>(); + paramMap.put("file", file); + String result = HttpUtil.post(url, paramMap); + if (StrUtil.isNotBlank(result)) { + logger.info("附件上传结果"+result); + JSONObject jsonObject = JSONObject.parseObject(result); + String atts = jsonObject.get("atts").toString(); + if (StrUtil.isNotEmpty(atts)) { + JSONArray jsonArray = JSONArray.parseArray(atts); + JSONObject res = (JSONObject) jsonArray.get(0); + return res; + } + } + } + }else { + throw new BaseSystemException("api_code不能为空"); + } + return null; + } + + /*** + * 查询协同附件列表 + * @param summaryId col_summary表id + * @param attType 0代表附件,2代表关联文档,“0,2”代表附件和关联文档 + * @param apiCode 接口编码 + * @return + */ + public List getColAttachments(String summaryId,String attType,String apiCode,String loginName){ + if (StrUtil.isNotEmpty(summaryId) && StrUtil.isNotEmpty(apiCode)){ + SysApplicationApiEntity sysApp = getByCode(apiCode); + String token = getToken(loginName,sysApp); + String appUrl = StrUtil.removeSuffix(sysApp.getAppUrl(),"/"); + if (StrUtil.isEmpty(attType)){ + attType = "0"; + } + String url = "/seeyon/rest/coll/attachments/@SummaryID@/@attType@"; + url = url.replaceAll("@SummaryID@",summaryId).replaceAll("@attType@",attType); + String body = HttpRequest.get(appUrl + url).header("token", token).execute().body(); + if (StrUtil.isNotEmpty(body) && JSONUtil.isTypeJSON(body)){ + List list = JSON.parseArray(body,CollAttachmentResDTO.class); + return list; + } + } + return null; + } + + /** + * 附件下载 + * @param loginName oa登录名 + * @param apiCode 接口编码 + * @param fileId 附件id + * @param fileName 附件名 + * @return 附件字节数组 + */ + public byte[] downloadFileBytes(String loginName,String apiCode,String fileId,String fileName){ + if (StrUtil.isNotEmpty(apiCode)){ + SysApplicationApiEntity sysApp = getByCode(apiCode); + String token = getToken(loginName,sysApp); + String appUrl = StrUtil.removeSuffix(sysApp.getAppUrl(),"/"); + String url = "/seeyon/rest/attachment/file/@ctp_file_ID@?fileName=@文件名@&token=@token@"; + url = url.replaceAll("@ctp_file_ID@",fileId).replaceAll("@文件名@",fileName).replaceAll("@token@",token); + byte[] bytes = HttpUtil.downloadBytes(appUrl + url); + return bytes; + } + return null; + } + + + /** + * 附件下载 + * @param loginName oa登录名 + * @param apiCode 接口编码 + * @param fileId 附件id + * @param fileName 附件名 + * @param token + * @return 附件字节数组 + */ + public byte[] downloadFileBytes(String loginName,String apiCode,String fileId,String fileName,String token){ + if (StrUtil.isNotEmpty(apiCode)){ + SysApplicationApiEntity sysApp = getByCode(apiCode); + if (StrUtil.isEmpty(token)){ + token = getToken(loginName,sysApp); + } + String appUrl = StrUtil.removeSuffix(sysApp.getAppUrl(),"/"); + String url = "/seeyon/rest/attachment/file/@ctp_file_ID@?fileName=@文件名@&token=@token@"; + url = url.replaceAll("@ctp_file_ID@",fileId).replaceAll("@文件名@",fileName).replaceAll("@token@",token); + byte[] bytes = HttpUtil.downloadBytes(appUrl + url); + return bytes; + } + return null; + } + /** + * 获取token + * @param login_name + * @param api_code + * @return + */ + public String getToken(String login_name,String api_code){ + if (StrUtil.isNotEmpty(api_code)){ + SysApplicationApiEntity sysApp = getByCode(api_code); + return getToken(login_name,sysApp); + }else { + throw new BaseSystemException("api_code不能为空"); + } + } + + /** + * 获取token + * @param login_name oa登录名 + * @param sysApp 应用信息 + * @return + */ + public String getToken(String login_name,SysApplicationApiEntity sysApp){ + if (null != sysApp){ + HashMap hashMap = new HashMap<>(); + String app_url = StrUtil.removeSuffix(sysApp.getAppUrl(), "/"); + String url = app_url+"/seeyon/rest/token"; + String headerIn = sysApp.getHeaderIn(); + JSONArray headers = JSON.parseArray(headerIn); + for (int i = 0; i < headers.size(); i++) { + JSONObject object1 = headers.getJSONObject(i); + String parameterName = object1.getString("parameterName"); + if ("userName".equals(parameterName) || "password".equals(parameterName) || "loginName".equals(parameterName)){ + String example = object1.getString("example"); + hashMap.put(parameterName,example); + } + } + login_name = hashMap.get("loginName"); + if (StrUtil.isEmpty(login_name)){ + hashMap.put("loginName","hzya"); + } + String result = HttpRequest.post(url).body(JSON.toJSONString(hashMap)).execute().body(); + JSONObject jsonObject = JSONObject.parseObject(result); + if (null != jsonObject) { + logger.info("======token:{}======" ,jsonObject.getString("id")); + return jsonObject.getString("id"); + } + } + return null; + } + private SysApplicationApiEntity getByCode(String api_code){ + if (StrUtil.isNotEmpty(api_code)){ + SysApplicationApiEntity sysApp = new SysApplicationApiEntity(); + sysApp.setApiCode(Long.valueOf(api_code)); + sysApp = sysApplicationApiService.queryOne(sysApp); + if (null != sysApp && StrUtil.isNotEmpty(sysApp.getId())){ + sysApp = sysApplicationApiService.get(sysApp.getId()); + if (null != sysApp){ + return sysApp; + } + } + }else { + throw new BaseSystemException("api_code不能为空"); + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/serviceUtil/DsDataSourceUtil.java b/service/src/main/java/com/hzya/frame/serviceUtil/DsDataSourceUtil.java index d45a817a..22dc084e 100644 --- a/service/src/main/java/com/hzya/frame/serviceUtil/DsDataSourceUtil.java +++ b/service/src/main/java/com/hzya/frame/serviceUtil/DsDataSourceUtil.java @@ -5,8 +5,9 @@ import com.alibaba.fastjson.JSONObject; import com.baomidou.dynamic.datasource.DynamicRoutingDataSource; import com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException; import com.hzya.frame.datasource.DataSourceUtilProperties; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; import com.hzya.frame.sysnew.application.entity.SysApplicationDatasourceDto; +import com.hzya.frame.util.AESUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; @@ -23,21 +24,20 @@ public class DsDataSourceUtil { @Resource private DataSource dataSource; - public void addDataSource(SysDataSourceEntity sysDataSourceVo) throws Exception { + public void addDataSource(SysApplicationDatabaseEntity sysDataSourceVo) throws Exception { DynamicRoutingDataSource ds = (DynamicRoutingDataSource) dataSource; JSONObject defaultDataSourceProperties = new JSONObject(); defaultDataSourceProperties.put("datasource_code", sysDataSourceVo.getSourceCode()); defaultDataSourceProperties.put("source_url", sysDataSourceVo.getSourceUrl()); defaultDataSourceProperties.put("source_type", sysDataSourceVo.getSourceTypeName()); defaultDataSourceProperties.put("login_name", sysDataSourceVo.getLoginName()); - defaultDataSourceProperties.put("password", sysDataSourceVo.getPassword()); + defaultDataSourceProperties.put("password", AESUtil.decrypt(sysDataSourceVo.getPassword())); defaultDataSourceProperties.put("db_name", sysDataSourceVo.getDbName()); logger.info("***初始化数据源-{}:*********", sysDataSourceVo.getSourceName()); DruidDataSource dataSource = createDefaultDataSource(defaultDataSourceProperties); ds.addDataSource(sysDataSourceVo.getSourceCode(), dataSource); logger.info("***初始化数据源-{}成功:*********", sysDataSourceVo.getSourceName()); } - /** * @param code * @return boolean @@ -56,26 +56,19 @@ public class DsDataSourceUtil { } /** - * @param sysDataSourceVo + * @param sysApplicationDatabaseEntity * @return boolean * @Author lvleigang * @Description 修改数据源 * @Date 11:40 上午 2023/9/6 **/ - public void editDataSource(SysDataSourceEntity sysDataSourceVo) throws Exception { + public void editDataSource(SysApplicationDatabaseEntity sysApplicationDatabaseEntity) throws Exception { //先删除后添加 - removeDataSource(sysDataSourceVo.getSourceCode()); - addDataSource(sysDataSourceVo); + removeDataSource(sysApplicationDatabaseEntity.getSourceCode()); + addDataSource(sysApplicationDatabaseEntity); } - /**** - * @Content:创建数据源,返回DruidDataSource - * @Author 👻👻👻👻👻👻👻👻 gjh - * @Date 2023-06-14 9:11 - * @Param [defaultDataSourceProperties] - * @return com.alibaba.druid.pool.DruidDataSource - **/ private DruidDataSource createDefaultDataSource(JSONObject defaultDataSourceProperties) throws RuntimeException { //根据datasource_code查询数据源配置信息 String datasource_code = String.valueOf(defaultDataSourceProperties.get("datasource_code")); @@ -154,6 +147,8 @@ public class DsDataSourceUtil { driveClass = DataSourceUtilProperties.SQL2000DRIVER; } else if ("2".equalsIgnoreCase(dataSourceEntity.getSourceType())) { driveClass = DataSourceUtilProperties.SQL2005DRIVER; + }else if ("4".equalsIgnoreCase(dataSourceEntity.getSourceType())) { + driveClass = DataSourceUtilProperties.dm; } try { //测试连接 @@ -165,7 +160,7 @@ public class DsDataSourceUtil { return false; } } catch (Exception e) { - logger.info("==================连接数据源失败==================="); + logger.error("测试数据源失败:"+e.getMessage()); return false; } } diff --git a/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionDetailEntity.xml b/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionDetailEntity.xml index 035bc576..c61c1ec1 100644 --- a/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionDetailEntity.xml @@ -209,7 +209,6 @@ modify_user_id, sorts, org_id, - sorts, create_time, modify_time, sts @@ -232,7 +231,6 @@ #{modify_user_id}, #{sorts}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_api_reflection_detail a WHERE a.sts = 'Y' ), #{create_time} , now(), #{modify_time}, diff --git a/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionEntity.xml b/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionEntity.xml index c2ce84ba..7440c1ed 100644 --- a/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/apireflection/entity/ApiReflectionEntity.xml @@ -267,7 +267,6 @@ description, plug, plug_id, - sorts, create_time, modify_time, sts @@ -291,7 +290,6 @@ #{description}, #{plug}, #{plug_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_api_reflection a WHERE a.sts = 'Y' ), #{create_time} , now(), #{modify_time}, diff --git a/service/src/main/java/com/hzya/frame/sys/appApi/entity/AppApiMapper.xml b/service/src/main/java/com/hzya/frame/sys/appApi/entity/AppApiMapper.xml index fa9e0ceb..e4239914 100644 --- a/service/src/main/java/com/hzya/frame/sys/appApi/entity/AppApiMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/appApi/entity/AppApiMapper.xml @@ -372,7 +372,6 @@ body_in, body_out, sorts, - sorts, create_user_id, create_time, modify_user_id, @@ -404,7 +403,6 @@ #{bodyIn}, #{bodyOut}, #{sorts}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_app_api a WHERE a.sts = 'Y' ), #{createUserId}, #{createTime}, #{modifyUserId}, diff --git a/service/src/main/java/com/hzya/frame/sys/contrastTask/entity/SysContrastTaskEntity.xml b/service/src/main/java/com/hzya/frame/sys/contrastTask/entity/SysContrastTaskEntity.xml index 67e6d489..acd2cf43 100644 --- a/service/src/main/java/com/hzya/frame/sys/contrastTask/entity/SysContrastTaskEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/contrastTask/entity/SysContrastTaskEntity.xml @@ -161,7 +161,7 @@ + keyProperty=""> insert into sys_contrast_task( id , @@ -180,7 +180,6 @@ sts , org_id , match_mode , - sorts, sts, )values( @@ -201,15 +200,12 @@ #{sts} , #{orgId} , #{matchMode} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_contrast_task a WHERE - a.sts = 'Y' ), - 'Y', ) - + insert into sys_contrast_task(id, service_name, left_app_id, left_api_id, right_app_id, right_api_id, task_status, task_msg, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, match_mode, sts) @@ -220,7 +216,7 @@ - + insert into sys_contrast_task(id, service_name, left_app_id, left_api_id, right_app_id, right_api_id, task_status, task_msg, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, match_mode) values diff --git a/service/src/main/java/com/hzya/frame/sys/customerControl/entity/CustomerControlEntity.xml b/service/src/main/java/com/hzya/frame/sys/customerControl/entity/CustomerControlEntity.xml index 3a7a8456..369020f5 100644 --- a/service/src/main/java/com/hzya/frame/sys/customerControl/entity/CustomerControlEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/customerControl/entity/CustomerControlEntity.xml @@ -252,7 +252,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -281,7 +280,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_customer_control a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/dao/ISysDataSourceDao.java b/service/src/main/java/com/hzya/frame/sys/dataSource/dao/ISysDataSourceDao.java deleted file mode 100644 index acfcaf47..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/dao/ISysDataSourceDao.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.hzya.frame.sys.dataSource.dao; - -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; -import com.hzya.frame.basedao.dao.IBaseDao; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceVo; - -import java.util.List; - -/** - * 数据源表(sys_data_source: table)表数据库访问层 - * - * @author makejava - * @since 2023-09-05 16:07:01 - */ -public interface ISysDataSourceDao extends IBaseDao { - - List queryVoList(SysDataSourceEntity entity); - int queryVoList_COUNT(SysDataSourceEntity entity); - - Integer entity_count_not_id(SysDataSourceEntity checkEntity); - - List queryDSBase(SysDataSourceEntity entity); -} - diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/dao/impl/SysDataSourceDaoImpl.java b/service/src/main/java/com/hzya/frame/sys/dataSource/dao/impl/SysDataSourceDaoImpl.java deleted file mode 100644 index 0f9948f1..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/dao/impl/SysDataSourceDaoImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.hzya.frame.sys.dataSource.dao.impl; - -import com.baomidou.dynamic.datasource.annotation.DS; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; -import com.hzya.frame.sys.dataSource.dao.ISysDataSourceDao; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceVo; -import org.springframework.stereotype.Repository; -import com.hzya.frame.basedao.dao.MybatisGenericDao; - -import java.util.List; - -/** - * 数据源表(SysDataSource)表数据库访问层 - * - * @author makejava - * @since 2023-09-05 16:07:03 - */ -@Repository(value = "SysDataSourceDaoImpl") -public class SysDataSourceDaoImpl extends MybatisGenericDao implements ISysDataSourceDao{ - - - @DS("master") - @Override - public List queryVoList(SysDataSourceEntity entity) { - List o = (List) super.selectList(getSqlIdPrifx() + "queryVoList", entity); - return o; - } - @Override - public int queryVoList_COUNT(SysDataSourceEntity entity) { - int o = (int) super.selectOne(getSqlIdPrifx() + "queryVoList_COUNT", entity); - return o; - } - - @Override - public Integer entity_count_not_id(SysDataSourceEntity entity) { - Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "entity_count_not_id", entity); - return o; - } - - @DS("master") - @Override - public List queryDSBase(SysDataSourceEntity entity) { - List o = (List) super.selectList(getSqlIdPrifx() + "queryDSBase", entity); - return o; - } -} - diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.java b/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.java deleted file mode 100644 index 31d170d0..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.java +++ /dev/null @@ -1,155 +0,0 @@ -package com.hzya.frame.sys.dataSource.entity; - -import java.util.Date; -import com.hzya.frame.web.entity.BaseEntity; -/** - * 数据源表(SysDataSource)实体类 - * - * @author makejava - * @since 2023-09-05 16:07:06 - */ -public class SysDataSourceEntity extends BaseEntity { - - /** 数据源唯一编码 */ - private String sourceCode; - /** 数据源名称 */ - private String sourceName; - /** ip */ - private String sourceIp; - /** 端口 */ - private String sourcePort; - /** 数据库名称 */ - private String dbName; - /** 数据源类型 1oracle 2sqlsever 3mysql */ - private String sourceType; - /** 登录名 */ - private String loginName; - /** 密码 */ - private String password; - /** 选择oracle下服务名称 */ - private String serviceName; - /** 使用状态1启用0锁定 */ - private Integer useState; - - - public String getSourceCode() { - return sourceCode; - } - - public void setSourceCode(String sourceCode) { - this.sourceCode = sourceCode; - } - - public String getSourceName() { - return sourceName; - } - - public void setSourceName(String sourceName) { - this.sourceName = sourceName; - } - - public String getSourceIp() { - return sourceIp; - } - - public void setSourceIp(String sourceIp) { - this.sourceIp = sourceIp; - } - - public String getSourcePort() { - return sourcePort; - } - - public void setSourcePort(String sourcePort) { - this.sourcePort = sourcePort; - } - - public String getDbName() { - return dbName; - } - - public void setDbName(String dbName) { - this.dbName = dbName; - } - - public String getSourceType() { - return sourceType; - } - - public void setSourceType(String sourceType) { - this.sourceType = sourceType; - } - - public String getLoginName() { - return loginName; - } - - public void setLoginName(String loginName) { - this.loginName = loginName; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getServiceName() { - return serviceName; - } - - public void setServiceName(String serviceName) { - this.serviceName = serviceName; - } - - public Integer getUseState() { - return useState; - } - - public void setUseState(Integer useState) { - this.useState = useState; - } - public String getSourceUrl() { - StringBuffer sourceUrl = new StringBuffer(); - if(sourceType != null) { - switch (sourceType) { - case "1": //oracle - //jdbc:oracle:thin:@60.204.132.91:1521:ORCL - sourceUrl.append("jdbc:oracle:thin:@").append(sourceIp).append(":").append(sourcePort).append(":").append(serviceName); - break; - case "2": //sqlsever - //jdbc:sqlserver://221.12.175.82:1433;DatabaseName=U8CLOUD;encrypt=false;trustServerCertificate=true - sourceUrl.append("jdbc:sqlserver://").append(sourceIp).append(":").append(sourcePort).append(";DatabaseName=").append(dbName).append(";encrypt=false;trustServerCertificate=true"); - break; - case "3": //mysql - //jdbc:mysql://hzya.ufyct.com:9096/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false - sourceUrl.append("jdbc:mysql://").append(sourceIp).append(":").append(sourcePort).append("/").append(dbName).append("?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false"); - break; - default: - } - } - return sourceUrl.toString(); - } - public String getSourceTypeName() { - String sourceTypeName = null; - if(sourceType != null){ - switch (sourceType) { - case "1": //oracle - sourceTypeName = "oracle"; - break; - case "2": //sqlsever - sourceTypeName = "sqlServer"; - break; - case "3": //mysql - sourceTypeName = "mysql"; - break; - default: - } - } - - return sourceTypeName; - } -} - diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml b/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml deleted file mode 100644 index 221c88e0..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - id - ,source_code - ,source_name - ,source_ip - ,source_port - ,db_name - ,source_type - ,login_name - ,password - ,service_name - ,use_state - ,sorts - ,create_user_id - ,create_time - ,modify_user_id - ,modify_time - ,sts - ,org_id - - - - - - - - - - - - - - - - - - - - - - - - - - - - insert into sys_data_source( - - id , - source_code , - source_name , - source_ip , - source_port , - db_name , - source_type , - login_name , - password , - service_name , - use_state , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - sorts, - sts, - - )values( - - #{id} , - #{sourceCode} , - #{sourceName} , - #{sourceIp} , - #{sourcePort} , - #{dbName} , - #{sourceType} , - #{loginName} , - #{password} , - #{serviceName} , - #{useState} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_data_source a WHERE a.sts - = 'Y' ), - - 'Y', - - ) - - - - insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name, - password, service_name, use_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, - sts) - values - - (#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, - 'Y') - - - - - insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name, - password, service_name, use_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) - values - - (#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) - - on duplicate key update - source_code = values(source_code), - source_name = values(source_name), - source_ip = values(source_ip), - source_port = values(source_port), - db_name = values(db_name), - source_type = values(source_type), - login_name = values(login_name), - password = values(password), - service_name = values(service_name), - use_state = values(use_state), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id) - - - - update sys_data_source set - - source_code = #{sourceCode}, - source_name = #{sourceName}, - source_ip = #{sourceIp}, - source_port = #{sourcePort}, - db_name = #{dbName}, - source_type = #{sourceType}, - login_name = #{loginName}, - password = #{password}, - service_name = #{serviceName}, - use_state = #{useState}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - - where id = #{id} - - - -update sys_data_source set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - - update sys_data_source set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and source_code = #{sourceCode} - and source_name = #{sourceName} - and source_ip = #{sourceIp} - and source_port = #{sourcePort} - and db_name = #{dbName} - and source_type = #{sourceType} - and login_name = #{loginName} - and password = #{password} - and service_name = #{serviceName} - and use_state = #{useState} - and sorts = #{sorts} - and sts = #{sts} - and sts='Y' - - - - - delete from sys_data_source where id = #{id} - - - - diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceVo.java b/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceVo.java deleted file mode 100644 index ed00d0d2..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceVo.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.hzya.frame.sys.dataSource.entity; - - -import com.hzya.frame.web.exception.BaseSystemException; - -public class SysDataSourceVo { - - /** 主键ID */ - private String id; - /** 数据源编码 */ - private String sourceCode; - /** 数据源名称 */ - private String sourceName; - /** ip */ - private String sourceIp; - /** 端口 */ - private String sourcePort; - /** 数据库名称 */ - private String dbName; - /** 数据源类型 1oracle 2sqlsever 3mysql 4dm*/ - private String sourceType; - /** 登录名 */ - private String loginName; - /** 密码 */ - private String password; - /** 选择oracle下服务名称 */ - private String serviceName; - /** 使用状态1启用0锁定 */ - private Integer useState; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getSourceCode() { - return sourceCode; - } - - public void setSourceCode(String sourceCode) { - this.sourceCode = sourceCode; - } - - public String getSourceName() { - return sourceName; - } - - public void setSourceName(String sourceName) { - this.sourceName = sourceName; - } - - public String getSourceIp() { - return sourceIp; - } - - public void setSourceIp(String sourceIp) { - this.sourceIp = sourceIp; - } - - public String getSourcePort() { - return sourcePort; - } - - public void setSourcePort(String sourcePort) { - this.sourcePort = sourcePort; - } - - public String getDbName() { - return dbName; - } - - public void setDbName(String dbName) { - this.dbName = dbName; - } - - public String getSourceType() { - return sourceType; - } - - public void setSourceType(String sourceType) { - this.sourceType = sourceType; - } - - public String getLoginName() { - return loginName; - } - - public void setLoginName(String loginName) { - this.loginName = loginName; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getServiceName() { - return serviceName; - } - - public void setServiceName(String serviceName) { - this.serviceName = serviceName; - } - - public Integer getUseState() { - return useState; - } - - public void setUseState(Integer useState) { - this.useState = useState; - } - - public String getSourceUrl() { - StringBuffer sourceUrl = new StringBuffer(); - switch (sourceType) { - case "1": //oracle - //jdbc:oracle:thin:@60.204.132.91:1521:ORCL - sourceUrl.append("jdbc:oracle:thin:@").append(sourceIp).append(":").append(sourcePort).append(":").append(serviceName); - break; - case "2": //sqlsever - //jdbc:sqlserver://221.12.175.82:1433;DatabaseName=U8CLOUD;encrypt=false;trustServerCertificate=true - sourceUrl.append("jdbc:jtds:sqlserver://").append(sourceIp).append(":").append(sourcePort).append("/").append(dbName).append(";encrypt=false;trustServerCertificate=true"); - break; - case "3": //mysql - //jdbc:mysql://hzya.ufyct.com:9096/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false - sourceUrl.append("jdbc:mysql://").append(sourceIp).append(":").append(sourcePort).append("/").append(dbName).append("?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false"); - break; - case "4": //dm - //jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&characterEncoding=UTF-8 - sourceUrl.append("jdbc:dm://").append(sourceIp).append(":").append(sourcePort).append("?schema=").append(dbName).append("&characterEncoding=UTF-8"); - break; - default: - } - return sourceUrl.toString(); - } - public String getSourceTypeName() { - String sourceTypeName = null; - switch (sourceType) { - case "1": //oracle - sourceTypeName = "oracle"; - break; - case "2": //sqlsever - sourceTypeName = "sqlServer"; - break; - case "3": //mysql - sourceTypeName = "mysql"; - break; - case "4": //mysql - sourceTypeName = "dm"; - break; - default: - } - return sourceTypeName; - } -} - diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java b/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java deleted file mode 100644 index bb700ac3..00000000 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java +++ /dev/null @@ -1,219 +0,0 @@ -package com.hzya.frame.sys.dataSource.service.impl; - -import cn.dev33.satoken.stp.StpUtil; -import com.alibaba.fastjson.JSONObject; -import com.github.pagehelper.PageHelper; -import com.github.pagehelper.PageInfo; -import com.hzya.frame.serviceUtil.DsDataSourceUtil; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; -import com.hzya.frame.sys.dataSource.dao.ISysDataSourceDao; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceVo; -import com.hzya.frame.sys.dataSource.service.ISysDataSourceService; -import com.hzya.frame.uuid.UUIDUtils; -import com.hzya.frame.web.entity.BaseResult; -import com.hzya.frame.web.entity.JsonResultEntity; -import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; -import javax.annotation.Resource; -import com.hzya.frame.basedao.service.impl.BaseService; - -import java.util.Date; -import java.util.List; - -/** - * 数据源表(SysDataSource)表服务实现类 - * - * @author makejava - * @since 2023-09-05 16:07:13 - */ -@Service(value = "sysDataSourceService") -public class SysDataSourceServiceImpl extends BaseService implements ISysDataSourceService { - - private ISysDataSourceDao sysDataSourceDao; - @Resource - private DsDataSourceUtil dsDataSourceUtil; - - @Autowired - public void setSysDataSourceDao(ISysDataSourceDao dao) { - this.sysDataSourceDao = dao; - this.dao = dao; - } - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询列表 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity queryList(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - List sysDataSourceEntities = sysDataSourceDao.queryVoList(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", sysDataSourceEntities); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询列表 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity queryPage(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - //判断分页 - if(entity == null || entity.getPageNum() == null || entity.getPageSize() == null){ - return BaseResult.getFailureMessageEntity("分页查询参数不存在"); - } - PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); - List sysDataSourceEntities = sysDataSourceDao.queryVoList(entity); - PageInfo pageInfo = new PageInfo(sysDataSourceEntities); - return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 获取数据 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity queryEntity(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - //判断分页 - if(entity == null || entity.getId() == null || "".equals(entity.getId())){ - return BaseResult.getFailureMessageEntity("请先传递请求主键"); - } - SysDataSourceEntity sysDataSourceEntity = sysDataSourceDao.queryOne(entity); - return BaseResult.getSuccessMessageEntity("查询数据成功", sysDataSourceEntity); - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 新增数据 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity addEntity(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - if(entity == null){ - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if(entity.getSourceName() == null || "".equals(entity.getSourceName())){ - return BaseResult.getFailureMessageEntity("请先输入数据源名称"); - } - if(entity.getSourceCode() == null || "".equals(entity.getSourceCode())){ - return BaseResult.getFailureMessageEntity("请先输入数据源编码"); - } - SysDataSourceEntity checkEntity = new SysDataSourceEntity(); - checkEntity.setSts("Y"); - checkEntity.setSourceCode(entity.getSourceCode()); - int checkCount = sysDataSourceDao.getCount(checkEntity); - if(checkCount > 0){ - return BaseResult.getFailureMessageEntity("数据源编码已存在"); - } - setCreate(entity); - if(entity.getUseState() == 1){ - try { - dsDataSourceUtil.addDataSource(entity); - } catch (Exception e) { - return BaseResult.getFailureMessageEntity("初始化数据源失败,请检查数据源配置是否正确"); - } - } - sysDataSourceDao.save(entity); - return BaseResult.getSuccessMessageEntity("保存数据源成功",entity.getId()); - } - private void setCreate(SysDataSourceEntity entity) { - entity.setId(UUIDUtils.getUUID()); - entity.setSts("Y"); - entity.setCreate_user_id(StpUtil.getLoginIdAsString()); - entity.setModify_user_id(StpUtil.getLoginIdAsString()); - entity.setCreate_time(new Date()); - entity.setModify_time(new Date()); - } - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 修改数据 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity editEntity(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - if(entity == null){ - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if(entity.getId() == null || "".equals(entity.getId())){ - return BaseResult.getFailureMessageEntity("系统错误"); - } - if(entity.getSourceName() == null || "".equals(entity.getSourceName())){ - return BaseResult.getFailureMessageEntity("请先输入数据源名称"); - } - if(entity.getSourceCode() == null || "".equals(entity.getSourceCode())){ - return BaseResult.getFailureMessageEntity("请先输入数据源编码"); - } - SysDataSourceEntity checkEntity = new SysDataSourceEntity(); - checkEntity.setSts("Y"); - checkEntity.setId(entity.getId()); - checkEntity.setSourceCode(entity.getSourceCode()); - int checkCount = sysDataSourceDao.entity_count_not_id(checkEntity); - if(checkCount > 0){ - return BaseResult.getFailureMessageEntity("接口编码已存在"); - } - entity.setModify_user_id(StpUtil.getLoginIdAsString()); - entity.setModify_time(new Date()); - entity.setSts("Y"); - if(entity.getUseState() == 1){ - try { - dsDataSourceUtil.editDataSource(entity); - } catch (Exception e) { - return BaseResult.getSuccessMessageEntity("修改数据源失败,请检查数据源配置是否正确"); - } - }else { - try { - dsDataSourceUtil.removeDataSource(entity.getSourceCode()); - } catch (Exception e) { - return BaseResult.getSuccessMessageEntity("修改数据源失败"); - } - } - sysDataSourceDao.update(entity); - return BaseResult.getSuccessMessageEntity("修改数据源成功",entity.getId()); - - } - - /** - * @param object - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 删除数据 - * @Date 2:18 下午 2023/7/17 - **/ - @Override - public JsonResultEntity deleteEntity(JSONObject object) { - SysDataSourceEntity entity = getData("jsonStr", object, SysDataSourceEntity.class); - //判断编码是否重复 - if (entity == null) { - return BaseResult.getFailureMessageEntity("请先填写内容"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("请先选择数据"); - } - SysDataSourceEntity deleteEntity = sysDataSourceDao.queryOne(entity); - //删除主表和明细表 - entity.setModify_user_id(StpUtil.getLoginIdAsString()); - entity.setModify_time(new Date()); - entity.setSts("Y"); - try { - dsDataSourceUtil.removeDataSource(deleteEntity.getSourceCode()); - } catch (Exception e) { - return BaseResult.getSuccessMessageEntity("删除数据源失败"); - } - sysDataSourceDao.logicRemoveMultiCondition(entity); - return BaseResult.getSuccessMessageEntity("删除成功"); - } -} diff --git a/service/src/main/java/com/hzya/frame/sys/databaseNames/entity/DatabaseNamesMapper.xml b/service/src/main/java/com/hzya/frame/sys/databaseNames/entity/DatabaseNamesMapper.xml index 7fb334ac..85dec0fc 100644 --- a/service/src/main/java/com/hzya/frame/sys/databaseNames/entity/DatabaseNamesMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/databaseNames/entity/DatabaseNamesMapper.xml @@ -153,7 +153,6 @@ modify_time, sts, org_id, - sorts, )values ( @@ -170,7 +169,6 @@ #{modifyTime}, #{sts}, #{orgId}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_database_names a WHERE a.sts = 'Y' ), ) diff --git a/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.java b/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.java index 34dae4ad..928a687d 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.java +++ b/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.java @@ -25,6 +25,18 @@ public class FileDownloadEntity extends BaseEntity { private String filepath; /** 文件*/ private File file; + /** 文件类型 + * 1:普通文件 + * 2:插件附件*/ + private String fileType; + + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } /** 文件名称 */ public void setFilename(String filename) { diff --git a/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.xml b/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.xml index 514d0581..892b4f23 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/file/download/entity/FileDownloadEntity.xml @@ -26,6 +26,8 @@ + + @@ -40,7 +42,8 @@ create_time, modify_user_id, modify_time, - sts + sts, + file_type @@ -56,10 +59,11 @@ from sys_file - id=#{id} + id=#{id} and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} @@ -82,6 +86,7 @@ and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} @@ -106,6 +111,7 @@ and filename like concat('%',#{filename},'%') and filesavename like concat('%',#{filesavename},'%') and type like concat('%',#{type},'%') + and file_type like concat('%',#{fileType},'%') and file_size = #{file_size} and description like concat('%',#{description},'%') and filepath like concat('%',#{filepath},'%') @@ -130,6 +136,7 @@ or filename = #{filename} or filesavename = #{filesavename} or type = #{type} + or file_type = #{fileType} or file_size = #{file_size} or description = #{description} or filepath = #{filepath} @@ -151,6 +158,7 @@ filename, filesavename, type, + file_type, file_size, description, filepath, @@ -167,6 +175,7 @@ #{filename}, #{filesavename}, #{type}, + #{fileType}, #{file_size}, #{description}, #{filepath}, @@ -179,7 +188,7 @@ 'Y' ) - + select last_insert_id() as id @@ -192,6 +201,7 @@ filename = #{filename}, filesavename = #{filesavename}, type = #{type}, + file_type = #{fileType}, file_size = #{file_size}, description = #{description}, filepath = #{filepath}, @@ -219,6 +229,7 @@ and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} diff --git a/service/src/main/java/com/hzya/frame/sys/file/download/service/IFileDownloadService.java b/service/src/main/java/com/hzya/frame/sys/file/download/service/IFileDownloadService.java index 36efcf95..ff8358f1 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/download/service/IFileDownloadService.java +++ b/service/src/main/java/com/hzya/frame/sys/file/download/service/IFileDownloadService.java @@ -28,4 +28,6 @@ public interface IFileDownloadService extends IBaseService implements IFileDownloadService{ protected IFileDownloadDao filedownloadDao; + @Value("${savefile.path}") + public String DSK; + @Value("${savefile.pluginpath}") + public String PLUGINPATH; + + @Value("${savefile.tomcatpath}") + public String TOMCATPATH; @Autowired public void setFileDownloadDao(IFileDownloadDao dao) { @@ -74,11 +89,154 @@ public class FileDownloadServiceImpl extends BaseService< FileDownloadEntity,Lo throw new BaseSystemException("文件不存在!"); } /** 拼接文件路径*/ - String filePath = fileDownloadEntity.getFilepath(); + String filePath = ""; + if(fileDownloadEntity.getFileType() != null && fileDownloadEntity.getFileType().equals("2")){ + filePath = PLUGINPATH + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator); + }else{ + filePath = DSK + fileDownloadEntity.getFilepath().replace("/",File.separator).replace("\\",File.separator); + } + /** 获取file文件*/ File file = new File(filePath); /** 设置file*/ fileDownloadEntity.setFile(file); return fileDownloadEntity; } + +// @Override +// public FileDownloadEntity pluginZipUpate(FileUploadDto fileUploadDto) throws Exception { +// /** 如果fileUploadDto的id直接为空,或者null直接抛出异常*/ +// if(fileUploadDto == null || fileUploadDto.getId() == null || "".equals(fileUploadDto.getId())){ +// throw new BaseSystemException("请传入参数!"); +// } +// /** 根据唯一名称获取文件信息*/ +// FileDownloadEntity queryEntity = new FileDownloadEntity(); +// queryEntity.setId(fileUploadDto.getId()); +// queryEntity.setSts("Y"); +// FileDownloadEntity fileDownloadEntity =filedownloadDao.queryOne(queryEntity); +// String filePath = fileDownloadEntity.getFilepath(); +// //插件附件路径 +// String inputFile = PLUGINPATH + filePath; +// +// File srcFile = new File(inputFile);//获取当前压缩文件 +// // 判断源文件是否存在 +// if (!srcFile.exists()) { +// throw new Exception(srcFile.getPath() + "所指文件不存在"); +// } +// ZipFile zipFile = new ZipFile(srcFile);//创建压缩文件对象 +// //开始解压 +// Enumeration entries = zipFile.entries(); +// boolean isFirst = true; +// String firstName = ""; +// while (entries.hasMoreElements()) { +// ZipEntry entry = (ZipEntry) entries.nextElement(); +// // 构造解压后的文件路径,去掉压缩包的名字 +// String unzipPath = entry.getName().replace(firstName,""); +// String classPath = "com\\hzya\\frame\\plugin"; +// String xmlPath = "cfgHome\\plugin"; +// +// String dirPath = ""; +// if(unzipPath.contains("classfile/")){ +// dirPath = TOMCATPATH + "/" + classPath + unzipPath.replace("classfile",""); +// } +// if(unzipPath.contains("xmlfile/")){ +// dirPath = TOMCATPATH + "/" + xmlPath + unzipPath.replace("xmlfile",""); +// } +// +// // 如果是文件夹,就创建个文件夹 +// if (entry.isDirectory()) { +// if(isFirst == false){ +// File dir = new File(dirPath); +// dir.mkdirs(); +// }else{ +// firstName = entry.getName(); +// isFirst = false; +// } +// } else { +// // 如果是文件,就先创建一个文件,然后用io流把内容copy过去 +// File targetFile = new File(dirPath); +// // 保证这个文件的父文件夹必须要存在 +// if (!targetFile.getParentFile().exists()) { +// targetFile.getParentFile().mkdirs(); +// } +// targetFile.createNewFile(); +// // 将压缩文件内容写入到这个文件中 +// InputStream is = zipFile.getInputStream(entry); +// FileOutputStream fos = new FileOutputStream(targetFile); +// int len; +// byte[] buf = new byte[1024]; +// while ((len = is.read(buf)) != -1) { +// fos.write(buf, 0, len); +// } +// // 关流顺序,先打开的后关闭 +// fos.close(); +// is.close(); +// } +// } +// +// +// +// return fileDownloadEntity; +// } + + @Override + public FileDownloadEntity pluginZipUpate(FileUploadDto fileUploadDto) throws Exception { + /** 如果fileUploadDto的id直接为空,或者null直接抛出异常*/ + if(fileUploadDto == null || fileUploadDto.getId() == null || "".equals(fileUploadDto.getId())){ + throw new BaseSystemException("请传入参数!"); + } + /** 根据唯一名称获取文件信息*/ + FileDownloadEntity queryEntity = new FileDownloadEntity(); + queryEntity.setId(fileUploadDto.getId()); + queryEntity.setSts("Y"); + FileDownloadEntity fileDownloadEntity =filedownloadDao.queryOne(queryEntity); + String filePath = fileDownloadEntity.getFilepath(); + //插件附件路径 + String inputFile = PLUGINPATH + filePath; + + File srcFile = new File(inputFile);//获取当前压缩文件 + // 判断源文件是否存在 + if (!srcFile.exists()) { + throw new Exception(srcFile.getPath() + "所指文件不存在"); + } + ZipFile zipFile = new ZipFile(srcFile);//创建压缩文件对象 + //开始解压 + Enumeration entries = zipFile.entries(); + + while (entries.hasMoreElements()) { + ZipEntry entry = (ZipEntry) entries.nextElement(); + String unzipPath = entry.getName(); + + String dirPath = TOMCATPATH + unzipPath; + + // 如果是文件夹,就创建个文件夹 + if (entry.isDirectory()) { + File dir = new File(dirPath); + dir.mkdirs(); + } else { + // 如果是文件,就先创建一个文件,然后用io流把内容copy过去 + File targetFile = new File(dirPath); + // 保证这个文件的父文件夹必须要存在 + if (!targetFile.getParentFile().exists()) { + targetFile.getParentFile().mkdirs(); + } + targetFile.createNewFile(); + // 将压缩文件内容写入到这个文件中 + InputStream is = zipFile.getInputStream(entry); + FileOutputStream fos = new FileOutputStream(targetFile); + int len; + byte[] buf = new byte[1024]; + while ((len = is.read(buf)) != -1) { + fos.write(buf, 0, len); + } + // 关流顺序,先打开的后关闭 + fos.close(); + is.close(); + } + } + + return fileDownloadEntity; + } + + } diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileResultEntity.java b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileResultEntity.java index 4e2bd287..0ae3765f 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileResultEntity.java +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileResultEntity.java @@ -28,7 +28,9 @@ private Long business_id; * * */ private String business_type; + /** 1:上传普通文件 2:上传插件*/ /** 是否是业务附件 true 是(是业务附件的时候,请传入相对应的业务ID,) false 不是,*/ + private boolean fileFlag; /** 上传文件的ID*/ private String fileID; diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadDto.java b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadDto.java index 049adf4c..ee752549 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadDto.java +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadDto.java @@ -21,12 +21,26 @@ public class FileUploadDto { * 业务类型 */ private String businessType; + /** + * 文件类型 + * 1:普通文件 + * 2:插件附件 + */ + private String fileType = "1"; /** * 是否是业务类型 */ private boolean fileFlag; + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + public String getBusinessType() { return businessType; } diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.java b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.java index 3aabaa19..0a920b89 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.java +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.java @@ -26,6 +26,12 @@ public class FileUploadEntity extends BaseEntity { * 文件类型 */ private String type; + /** + * 文件类型 + * 1:普通文件 + * 2:插件附件 + */ + private String fileType; /** * 文件大小(kb) */ @@ -48,6 +54,14 @@ public class FileUploadEntity extends BaseEntity { private File[] multiFile; private String[] multiFileFileName; + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + /** * 文件名称 */ diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.xml b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.xml index 71f2a604..81374007 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/entity/FileUploadEntity.xml @@ -10,6 +10,8 @@ + + @@ -33,6 +35,7 @@ filename, filesavename, type, + file_type, file_size, description, filepath, @@ -60,6 +63,7 @@ and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} @@ -82,6 +86,7 @@ and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} @@ -106,6 +111,7 @@ and filename like concat('%',#{filename},'%') and filesavename like concat('%',#{filesavename},'%') and type like concat('%',#{type},'%') + and file_type like concat('%',#{fileType},'%') and file_size = #{file_size} and description like concat('%',#{description},'%') and filepath like concat('%',#{filepath},'%') @@ -130,6 +136,7 @@ or filename = #{filename} or filesavename = #{filesavename} or type = #{type} + or file_type = #{fileType} or file_size = #{file_size} or description = #{description} or filepath = #{filepath} @@ -151,6 +158,7 @@ filename, filesavename, type, + file_type, file_size, description, filepath, @@ -167,6 +175,7 @@ #{filename}, #{filesavename}, #{type}, + #{fileType}, #{file_size}, #{description}, #{filepath}, @@ -189,6 +198,7 @@ filename = #{filename}, filesavename = #{filesavename}, type = #{type}, + file_type = #{fileType}, file_size = #{file_size}, description = #{description}, filepath = #{filepath}, @@ -206,6 +216,7 @@ filename = #{filename}, type = #{type}, + file_type = #{fileType}, file_size = #{file_size}, description = #{description}, filepath = #{filepath}, @@ -233,6 +244,7 @@ and filename = #{filename} and filesavename = #{filesavename} and type = #{type} + and file_type = #{fileType} and file_size = #{file_size} and description = #{description} and filepath = #{filepath} diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/service/IFileUploadService.java b/service/src/main/java/com/hzya/frame/sys/file/upload/service/IFileUploadService.java index 24d47a77..41ad6ebc 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/service/IFileUploadService.java +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/service/IFileUploadService.java @@ -25,6 +25,8 @@ public interface IFileUploadService extends IBaseService * @throws IOException */ FileUploadEntity fileUpload(MultipartFile files, FileUploadDto entity) throws Exception; + + FileUploadEntity pluginfileUpload(MultipartFile files, FileUploadDto entity,String pluginPackageName) throws Exception; /** * 文件上传方法 * diff --git a/service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java b/service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java index d810a6fb..b2ccda26 100644 --- a/service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java @@ -23,9 +23,13 @@ import org.springframework.web.multipart.MultipartFile; import java.io.File; import java.io.FileInputStream; +import java.io.FileOutputStream; import java.io.InputStream; import java.util.Date; +import java.util.Enumeration; import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; /** * @description: 系统文件上传 service @@ -39,6 +43,9 @@ public class FileUploadServiceImpl extends BaseService i @Value("${savefile.path}") public String DSK; + @Value("${savefile.pluginpath}") + public String PLUGINPATH; + protected IFileUploadDao fileUploadDao; @Autowired @@ -56,7 +63,7 @@ public class FileUploadServiceImpl extends BaseService i /** 获取系统设置文件存放的盘符*/ StringBuffer stringBuffer = new StringBuffer(); /** 获取根目录*/ - stringBuffer.append(DSK); + //stringBuffer.append(DSK); /** 根据当前日期创建文件目录*/ String nowDateString = DateUtil.dateToString(new Date(), "yyyy-MM-dd"); @@ -76,8 +83,92 @@ public class FileUploadServiceImpl extends BaseService i /** 获取到拼接完成的文件属性*/ String path = stringBuffer.toString(); /** 保存到file表信息*/ - FileUploadEntity fileUploadEntity = saveFile(file, path, "附件备注"); - path = fileUploadEntity.getFilepath(); + FileUploadEntity fileUploadEntity = saveFile(file, path, "附件备注",entity.getFileType()); + /**当fileType为2时,存储的是插件附件*/ + if(entity.getFileType().equals("2")){ + path = PLUGINPATH + fileUploadEntity.getFilepath(); + }else{ + path = DSK + fileUploadEntity.getFilepath(); + } + + /** 创建文件夹*/ + FileUtils.createDir(path); + File uploadFile = new File(path); + file.transferTo(uploadFile); + return fileUploadEntity; + } + + @Override + public FileUploadEntity pluginfileUpload(MultipartFile file, FileUploadDto entity,String pluginPackageName) throws Exception { + + // 创建一个临时文件 + File fileT = new File(file.getOriginalFilename()); + // 将 MultipartFile 的内容写入文件 + try (FileOutputStream fos = new FileOutputStream(fileT)) { + // 获取文件内容的字节数组 + byte[] bytes = file.getBytes(); + fos.write(bytes); + } + + ZipFile zipFile = new ZipFile(fileT);//创建压缩文件对象 + //开始解压 + Enumeration entries = zipFile.entries(); + boolean xmlflag = false; + boolean classflag = false; + while (entries.hasMoreElements()) { + ZipEntry entry = (ZipEntry) entries.nextElement(); + if(xmlflag == false){ + if(entry.getName().contains("cfgHome/plugin/"+pluginPackageName) && entry.isDirectory()){ + xmlflag = true; + } + } + if(classflag == false){ + if(entry.getName().contains("com/hzya/frame/plugin/"+pluginPackageName) && entry.isDirectory()){ + classflag = true; + } + } + if(xmlflag && classflag){ + break; + } + } + if(xmlflag == false || classflag == false){ + throw new BaseSystemException("插件附件不符合规范或插件包名填写错误,请检查!"); + } + fileT.delete(); + zipFile.close(); + + + /** 获取系统设置文件存放的盘符*/ + StringBuffer stringBuffer = new StringBuffer(); + /** 获取根目录*/ + //stringBuffer.append(DSK); + /** 根据当前日期创建文件目录*/ + String nowDateString = DateUtil.dateToString(new Date(), "yyyy-MM-dd"); + + /** 判断传入的文件是否是属于业务的文件数据,如果是则根据业务单据去生成文件夹,否则,按照日期生成*/ + if (entity.isFileFlag() && entity.getBusinessType() != null && !"".equals(entity.getBusinessType())) { + /** 没有单票ID临时把文件放在default目录下面*/ + /** 创建默认文件夹*/ + stringBuffer.append(File.separator+entity.getBusinessType()); + /** 根据当前日期生成文件夹*/ + stringBuffer.append(File.separator + nowDateString); + } else { + /** 创建默认文件夹*/ + stringBuffer.append(File.separator+"default"); + /** 拼接上当前日期*/ + stringBuffer.append(File.separator + nowDateString); + } + /** 获取到拼接完成的文件属性*/ + String path = stringBuffer.toString(); + /** 保存到file表信息*/ + FileUploadEntity fileUploadEntity = saveFile(file, path, "附件备注",entity.getFileType()); + /**当fileType为2时,存储的是插件附件*/ + if(entity.getFileType().equals("2")){ + path = PLUGINPATH + fileUploadEntity.getFilepath(); + }else{ + path = DSK + fileUploadEntity.getFilepath(); + } + /** 创建文件夹*/ FileUtils.createDir(path); File uploadFile = new File(path); @@ -91,7 +182,9 @@ public class FileUploadServiceImpl extends BaseService i /** 获取系统设置文件存放的盘符*/ StringBuffer stringBuffer = new StringBuffer(); /** 获取根目录*/ - stringBuffer.append(DSK); + stringBuffer.append(DSK); + + /** 获取当前人所在的公司,用ID和公司名称拼接*/ // stringBuffer.append("/" + userEntity.getOrg_name() + "_" + userEntity.getOrg_id()); /** 根据当前日期创建文件目录*/ @@ -278,7 +371,7 @@ public class FileUploadServiceImpl extends BaseService i * @param description * @return */ - private FileUploadEntity saveFile(MultipartFile file, String filepath, String description) { + private FileUploadEntity saveFile(MultipartFile file, String filepath, String description,String fileType) { /*** UUID生成File的新名称*/ Long id = UUIDLong.longUUID(); Long fileNewName = UUIDLong.longUUID(); @@ -291,6 +384,7 @@ public class FileUploadServiceImpl extends BaseService i fileUploadEntity.setFilename(fileName); fileUploadEntity.setFilesavename(String.valueOf(fileNewName)); fileUploadEntity.setType(type); + fileUploadEntity.setFileType(fileType); fileUploadEntity.setFile_size(file.getSize()); fileUploadEntity.setDescription(description); fileUploadEntity.setFilepath(filepath+ File.separator +fileUploadEntity.getFilesavename()); diff --git a/service/src/main/java/com/hzya/frame/sys/module/entity/ModuleMapper.xml b/service/src/main/java/com/hzya/frame/sys/module/entity/ModuleMapper.xml index a7abc3ed..2c67a496 100644 --- a/service/src/main/java/com/hzya/frame/sys/module/entity/ModuleMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/module/entity/ModuleMapper.xml @@ -347,7 +347,6 @@ label, options, no_cache, - sorts, )values @@ -385,7 +384,6 @@ #{label}, #{options}, #{noCache}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_module a WHERE a.sts = 'Y' ), ) diff --git a/service/src/main/java/com/hzya/frame/sys/moduleNew/entity/SysModuleNewEntity.xml b/service/src/main/java/com/hzya/frame/sys/moduleNew/entity/SysModuleNewEntity.xml index 8863b52f..bd928cd1 100644 --- a/service/src/main/java/com/hzya/frame/sys/moduleNew/entity/SysModuleNewEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/moduleNew/entity/SysModuleNewEntity.xml @@ -272,7 +272,7 @@ 'Y' ) - + select last_insert_id() as id diff --git a/service/src/main/java/com/hzya/frame/sys/org/entity/Org.java b/service/src/main/java/com/hzya/frame/sys/org/entity/Org.java index 71f5bb48..c1478753 100644 --- a/service/src/main/java/com/hzya/frame/sys/org/entity/Org.java +++ b/service/src/main/java/com/hzya/frame/sys/org/entity/Org.java @@ -20,6 +20,8 @@ import java.util.List; */ public class Org extends BaseEntity { + + /** 唯一标识码 */ private String id; /** 组织机构编码 */ diff --git a/service/src/main/java/com/hzya/frame/sys/orgControl/entity/OrgControlEntity.xml b/service/src/main/java/com/hzya/frame/sys/orgControl/entity/OrgControlEntity.xml index 6f67b6e8..c4e8d440 100644 --- a/service/src/main/java/com/hzya/frame/sys/orgControl/entity/OrgControlEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/orgControl/entity/OrgControlEntity.xml @@ -236,7 +236,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -263,7 +262,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_org_control a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/personnelControl/entity/PersonnelControlEntity.xml b/service/src/main/java/com/hzya/frame/sys/personnelControl/entity/PersonnelControlEntity.xml index b4dcb19f..24257fc4 100644 --- a/service/src/main/java/com/hzya/frame/sys/personnelControl/entity/PersonnelControlEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/personnelControl/entity/PersonnelControlEntity.xml @@ -268,7 +268,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -299,7 +298,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_personnel_control a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/projectControl/entity/ProjectControlEntity.xml b/service/src/main/java/com/hzya/frame/sys/projectControl/entity/ProjectControlEntity.xml index 1bdd47c1..476ada1d 100644 --- a/service/src/main/java/com/hzya/frame/sys/projectControl/entity/ProjectControlEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/projectControl/entity/ProjectControlEntity.xml @@ -236,7 +236,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -263,7 +262,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_project_control a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/proof/entity/ProofEntity.xml b/service/src/main/java/com/hzya/frame/sys/proof/entity/ProofEntity.xml index 3d33adc4..3c431297 100644 --- a/service/src/main/java/com/hzya/frame/sys/proof/entity/ProofEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/proof/entity/ProofEntity.xml @@ -269,7 +269,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -298,7 +297,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_proof a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/proofDetail/entity/ProofDetailEntity.xml b/service/src/main/java/com/hzya/frame/sys/proofDetail/entity/ProofDetailEntity.xml index 3bab66ce..157cbf1d 100644 --- a/service/src/main/java/com/hzya/frame/sys/proofDetail/entity/ProofDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/proofDetail/entity/ProofDetailEntity.xml @@ -252,7 +252,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -281,7 +280,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_proof_detail a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/proofLog/entity/ProofLogEntity.xml b/service/src/main/java/com/hzya/frame/sys/proofLog/entity/ProofLogEntity.xml index 97553922..32507de5 100644 --- a/service/src/main/java/com/hzya/frame/sys/proofLog/entity/ProofLogEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/proofLog/entity/ProofLogEntity.xml @@ -140,7 +140,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -155,7 +154,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_proof_log a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/receiptConf/entity/ReceiptConfEntity.xml b/service/src/main/java/com/hzya/frame/sys/receiptConf/entity/ReceiptConfEntity.xml index f7d4fcec..cff14bc2 100644 --- a/service/src/main/java/com/hzya/frame/sys/receiptConf/entity/ReceiptConfEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/receiptConf/entity/ReceiptConfEntity.xml @@ -210,7 +210,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -233,7 +232,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_receipt_conf a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/serviceMethod/entity/SysServiceMethodEntity.xml b/service/src/main/java/com/hzya/frame/sys/serviceMethod/entity/SysServiceMethodEntity.xml index ef755315..4965d488 100644 --- a/service/src/main/java/com/hzya/frame/sys/serviceMethod/entity/SysServiceMethodEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/serviceMethod/entity/SysServiceMethodEntity.xml @@ -120,7 +120,7 @@ - + insert into sys_service_method( id , @@ -134,7 +134,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -150,13 +149,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_service_method a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_service_method(service_key, service_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -164,7 +162,7 @@ - + insert into sys_service_method(service_key, service_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sys/sob/entity/SobEntity.xml b/service/src/main/java/com/hzya/frame/sys/sob/entity/SobEntity.xml index 1b3e601d..94419e36 100644 --- a/service/src/main/java/com/hzya/frame/sys/sob/entity/SobEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/sob/entity/SobEntity.xml @@ -164,7 +164,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -182,7 +181,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_sob a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/supplierControl/entity/SupplierControlEntity.xml b/service/src/main/java/com/hzya/frame/sys/supplierControl/entity/SupplierControlEntity.xml index 075dc69d..638e2204 100644 --- a/service/src/main/java/com/hzya/frame/sys/supplierControl/entity/SupplierControlEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/supplierControl/entity/SupplierControlEntity.xml @@ -252,7 +252,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -281,7 +280,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_supplier_control a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/template/entity/TemplateMapper.xml b/service/src/main/java/com/hzya/frame/sys/template/entity/TemplateMapper.xml index a8bf7719..ea3115a2 100644 --- a/service/src/main/java/com/hzya/frame/sys/template/entity/TemplateMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/template/entity/TemplateMapper.xml @@ -497,7 +497,6 @@ modify_time, sts, org_id, - sorts, )values @@ -523,9 +522,7 @@ #{modifyTime}, #{sts}, #{orgId}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_template a WHERE a.sts = - 'Y' ), - + ) @@ -612,7 +609,6 @@ - sorts, create_time, modify_time, sts, @@ -631,8 +627,7 @@ - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ${tableName} a WHERE - a.sts = 'Y' ), + now(), now(), 'Y', diff --git a/service/src/main/java/com/hzya/frame/sys/templateButton/entity/SysTemplateButtonEntity.xml b/service/src/main/java/com/hzya/frame/sys/templateButton/entity/SysTemplateButtonEntity.xml index e6c368dc..ae37c385 100644 --- a/service/src/main/java/com/hzya/frame/sys/templateButton/entity/SysTemplateButtonEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/templateButton/entity/SysTemplateButtonEntity.xml @@ -169,8 +169,8 @@ + parameterType="com.hzya.frame.sys.templateButton.entity.SysTemplateButtonEntity" + > insert into sys_template_button( id , @@ -189,7 +189,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -210,15 +209,13 @@ #{modifyTime} , #{sts} , #{orgId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_template_button a WHERE - a.sts = 'Y' ), - + 'Y', ) - + insert into sys_template_button(template_id, service_name, table_name, button_type, button_title, button_style, button_sort, button_icon, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -228,7 +225,7 @@ - + insert into sys_template_button(template_id, service_name, table_name, button_type, button_title, button_style, button_sort, button_icon, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sys/templateRelation/entity/TemplateRelationMapper.xml b/service/src/main/java/com/hzya/frame/sys/templateRelation/entity/TemplateRelationMapper.xml index a95a46f9..e319792a 100644 --- a/service/src/main/java/com/hzya/frame/sys/templateRelation/entity/TemplateRelationMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/templateRelation/entity/TemplateRelationMapper.xml @@ -169,7 +169,6 @@ modify_time, sts, org_id, - sorts, )values @@ -189,7 +188,6 @@ #{modifyTime}, #{sts}, #{orgId}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_template_relation a WHERE a.sts = 'Y' ), ) diff --git a/service/src/main/java/com/hzya/frame/sys/templateViewAccredit/entity/TemplateViewAccreditMapper.xml b/service/src/main/java/com/hzya/frame/sys/templateViewAccredit/entity/TemplateViewAccreditMapper.xml index 85f22840..f7678bb4 100644 --- a/service/src/main/java/com/hzya/frame/sys/templateViewAccredit/entity/TemplateViewAccreditMapper.xml +++ b/service/src/main/java/com/hzya/frame/sys/templateViewAccredit/entity/TemplateViewAccreditMapper.xml @@ -137,7 +137,6 @@ modify_time, sts, org_id, - sorts, )values @@ -153,7 +152,6 @@ #{modifyTime}, #{sts}, #{orgId}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_template_view_accredit a WHERE a.sts = 'Y' ), ) diff --git a/service/src/main/java/com/hzya/frame/sys/userTemplateButton/entity/SysUserTemplateButtonEntity.xml b/service/src/main/java/com/hzya/frame/sys/userTemplateButton/entity/SysUserTemplateButtonEntity.xml index 8faa1f95..b3227a09 100644 --- a/service/src/main/java/com/hzya/frame/sys/userTemplateButton/entity/SysUserTemplateButtonEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/userTemplateButton/entity/SysUserTemplateButtonEntity.xml @@ -126,7 +126,7 @@ - + insert into sys_user_template_button( id , @@ -141,7 +141,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -158,13 +157,12 @@ #{modifyTime} , #{sts} , #{orgId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_user_template_button a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_user_template_button(template_id, service_name, button_id, user_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -172,7 +170,7 @@ - + insert into sys_user_template_button(template_id, service_name, button_id, user_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sys/voucher/entity/VoucherEntity.xml b/service/src/main/java/com/hzya/frame/sys/voucher/entity/VoucherEntity.xml index cb5c46a7..61b5138f 100644 --- a/service/src/main/java/com/hzya/frame/sys/voucher/entity/VoucherEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/voucher/entity/VoucherEntity.xml @@ -259,7 +259,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -288,7 +287,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_voucher a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sys/voucherDetail/entity/VoucherDetailEntity.xml b/service/src/main/java/com/hzya/frame/sys/voucherDetail/entity/VoucherDetailEntity.xml index ec1907d9..a7f7cd3a 100644 --- a/service/src/main/java/com/hzya/frame/sys/voucherDetail/entity/VoucherDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sys/voucherDetail/entity/VoucherDetailEntity.xml @@ -196,7 +196,6 @@ create_user_id, modify_user_id, org_id, - sorts, create_time, modify_time, sts @@ -218,7 +217,6 @@ #{create_user_id}, #{modify_user_id}, #{org_id}, - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_voucher_detail a WHERE a.sts = 'Y' ), #{create_time} , #{modify_time}, 'Y' diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiDto.java b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiDto.java index f44126cd..9026e66f 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiDto.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiDto.java @@ -29,6 +29,14 @@ public class SysApplicationApiDto { private String funName; /** 是否扩展api */ private String extensionApi; + + /** 返回成功字段 */ + private String returnSuccessField; + /** 返回成功值*/ + private String returnSuccessValue; + + /** 返回描述字段*/ + private String returnMsg; public String getAppId() { return appId; } @@ -116,5 +124,29 @@ public class SysApplicationApiDto { public void setExtensionApi(String extensionApi) { this.extensionApi = extensionApi; } + + public String getReturnSuccessField() { + return returnSuccessField; + } + + public void setReturnSuccessField(String returnSuccessField) { + this.returnSuccessField = returnSuccessField; + } + + public String getReturnSuccessValue() { + return returnSuccessValue; + } + + public void setReturnSuccessValue(String returnSuccessValue) { + this.returnSuccessValue = returnSuccessValue; + } + + public String getReturnMsg() { + return returnMsg; + } + + public void setReturnMsg(String returnMsg) { + this.returnMsg = returnMsg; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.java index a027f07c..d0d8e10e 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.java @@ -1,6 +1,16 @@ package com.hzya.frame.sysnew.application.api.entity; +import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sys.sysenum.SysEnum; import com.hzya.frame.web.entity.BaseEntity; /** * 应用api(SysApplicationApi)实体类 @@ -9,58 +19,76 @@ import com.hzya.frame.web.entity.BaseEntity; * @since 2023-09-22 16:23:27 */ public class SysApplicationApiEntity extends BaseEntity { - - /** 接口编码 */ - private Long apiCode; - /** Api接口地址(固定系统内部外放接口地址) */ - private String apiPath; - /** 1启用2停用 */ - private String apiStatus; - /** api应用 */ - private String appId; - /** api应用名称 */ - private String appName; - /** 目录 */ - private String catalogueId; - /** 目录名称 */ - private String catalogueName; - /** api名称 */ - private String apiName; - /** api描述 */ - private String apiRemark; - /** 是否需要登录 1、是 2、否 */ - private String needLogin; - /** 认证接口 */ - private String authenticationPort; - /** 传参方式 1、query 2、data */ - private String parameterPassingMode; - /** 目标地址 */ - private String destinationAddress; - /** 请求编码 1、UTF-8 */ - private String requestCoding; - /** 请求方法 1、POST 2、GET */ - private String requestMethod; - /** 超时时间 6000 ms */ - private String timeoutPeriod; - /** 限流 6000 ms */ - private String currentLimiting; - /** Header入参 JSON */ - private String headerIn; - /** Query入参 JSON */ - private String queryIn; - /** Body 入参类型 1、Application/json */ - private String bodyInType; - /** Body 入参 JSON */ - private String bodyIn; - /** Body 出参 JSON */ - private String bodyOut; - /** bean名称 */ - private String beanName; - /** 方法名称 */ - private String funName; - /** 是否扩展api 1、启用 2、停用*/ - private String extensionApi; + /** 接口编码 */ + private Long apiCode; + /** Api接口地址(固定系统内部外放接口地址) */ + //应用编码 + private Long appCode; + private String apiPath; + /** 1启用2停用 */ + private String apiStatus; + /** api应用 */ + private String appId; + /** api应用名称 */ + private String appName; + /** api应用地址 **/ + private String appUrl; + /** 目录 */ + private String catalogueId; + /** 目录名称 */ + private String catalogueName; + /** api名称 */ + private String apiName; + /** api描述 */ + private String apiRemark; + /** 是否需要登录 1、是 2、否 */ + private String needLogin; + /** 认证接口 */ + private String authenticationPort; + /** 传参方式 1、query 2、data */ + private String parameterPassingMode; + /** 目标地址 */ + private String destinationAddress; + /** 请求编码 1、UTF-8 */ + private String requestCoding; + /** 请求方法 1、POST 2、GET */ + private String requestMethod; + /** 超时时间 6000 ms */ + private String timeoutPeriod; + /** 限流 6000 ms */ + private String currentLimiting; + /** Header入参 JSON */ + private String headerIn; + /** Query入参 JSON */ + private String queryIn; + /** Body 入参类型 1、Application/json */ + private String bodyInType; + /** Body 入参 JSON */ + private String bodyIn; + /** Body 出参 JSON */ + private String bodyOut; + /** bean名称 */ + private String beanName; + /** 方法名称 */ + private String funName; + /** 是否扩展api 1、启用 2、停用*/ + private String extensionApi; + + /** 返回成功字段 */ + private String returnSuccessField; + /** 返回成功值*/ + private String returnSuccessValue; + /** 返回描述字段*/ + private String returnMsg; + + public String getReturnMsg() { + return returnMsg; + } + + public void setReturnMsg(String returnMsg) { + this.returnMsg = returnMsg; + } public String getApiStatus() { return apiStatus; @@ -261,5 +289,37 @@ public class SysApplicationApiEntity extends BaseEntity { public void setExtensionApi(String extensionApi) { this.extensionApi = extensionApi; } + + public String getReturnSuccessField() { + return returnSuccessField; + } + + public void setReturnSuccessField(String returnSuccessField) { + this.returnSuccessField = returnSuccessField; + } + + public String getReturnSuccessValue() { + return returnSuccessValue; + } + + public void setReturnSuccessValue(String returnSuccessValue) { + this.returnSuccessValue = returnSuccessValue; + } + + public String getAppUrl() { + return appUrl; + } + + public void setAppUrl(String appUrl) { + this.appUrl = appUrl; + } + + public Long getAppCode() { + return appCode; + } + + public void setAppCode(Long appCode) { + this.appCode = appCode; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.xml index 9ddf15c8..089b6eb5 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/api/entity/SysApplicationApiEntity.xml @@ -7,9 +7,11 @@ + + @@ -28,6 +30,9 @@ + + + @@ -62,6 +67,9 @@ ,body_in ,body_out ,bean_name + ,return_msg + ,return_success_field + ,return_success_value ,fun_name ,extension_api ,sorts @@ -72,12 +80,35 @@ ,sts ,org_id + + + sys_application_api.id, + sys_application.app_id as app_code, + sys_application_api.api_code, + sys_application_api.api_name, + sys_application_api.api_remark, + sys_application_api.destination_address, + sys_application_api.header_in, + sys_application_api.query_in, + sys_application_api.body_in_type, + sys_application_api.body_in, + sys_application_api.body_out, + sys_application_api.body_in_type, + sys_application_api.sorts, + sys_application_api.bean_name, + sys_application_api.fun_name, + sys_application_api.extension_api, + sys_application_api.return_success_field, + sys_application_api.return_success_value, + sys_application_api.return_msg + + + + + + + - + insert into sys_application_api_auth( id , @@ -147,7 +147,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -164,13 +163,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_api_auth a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_application_api_auth(app_id, system_status, name, system_address, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -178,7 +176,7 @@ - + insert into sys_application_api_auth(app_id, system_status, name, system_address, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/apiAythDetail/entity/SysApplicationApiAuthDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/apiAythDetail/entity/SysApplicationApiAuthDetailEntity.xml index 4008260c..299a08d1 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/apiAythDetail/entity/SysApplicationApiAuthDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/apiAythDetail/entity/SysApplicationApiAuthDetailEntity.xml @@ -132,7 +132,7 @@ - + insert into sys_application_api_auth_detail( id , @@ -147,7 +147,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -164,13 +163,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_api_auth_detail a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_application_api_auth_detail(app_id, catalogue_id, api_id, tripartite_system_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -178,7 +176,7 @@ - + insert into sys_application_api_auth_detail(app_id, catalogue_id, api_id, tripartite_system_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/apiPara/entity/SysApplicationApiParaEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/apiPara/entity/SysApplicationApiParaEntity.xml index 6229a63d..e91bb398 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/apiPara/entity/SysApplicationApiParaEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/apiPara/entity/SysApplicationApiParaEntity.xml @@ -132,7 +132,7 @@ - + insert into sys_application_api_para( id , @@ -147,7 +147,6 @@ create_user_id , modify_time , modify_user_id , - sorts, sts, )values( @@ -164,13 +163,12 @@ #{create_user_id} , #{modify_time} , #{modify_user_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_api_para a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_application_api_para(app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts) values @@ -178,7 +176,7 @@ - + insert into sys_application_api_para(app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/apiType/entity/SysApplicationApiTypeEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/apiType/entity/SysApplicationApiTypeEntity.xml index d0d9e9fe..88e8676c 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/apiType/entity/SysApplicationApiTypeEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/apiType/entity/SysApplicationApiTypeEntity.xml @@ -138,7 +138,7 @@ - + insert into sys_application_api_type( id , @@ -151,7 +151,6 @@ create_user_id , modify_time , modify_user_id , - sorts, sts, )values( @@ -166,13 +165,12 @@ #{create_user_id} , #{modify_time} , #{modify_user_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_api_type a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_application_api_type(app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts) values @@ -180,7 +178,7 @@ - + insert into sys_application_api_type(app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/ISysApplicationDatabaseDao.java b/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/ISysApplicationDatabaseDao.java index 110ab6e0..14806c32 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/ISysApplicationDatabaseDao.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/ISysApplicationDatabaseDao.java @@ -1,15 +1,18 @@ package com.hzya.frame.sysnew.application.database.dao; import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; + +import java.util.List; /** * 数据源表(sys_application_database: table)表数据库访问层 * * @author makejava - * @since 2023-09-25 11:46:27 + * @since 2024-06-16 21:49:26 */ public interface ISysApplicationDatabaseDao extends IBaseDao { + List queryDSBase(SysApplicationDatabaseEntity entity); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/impl/SysApplicationDatabaseDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/impl/SysApplicationDatabaseDaoImpl.java index 332f2092..6b523995 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/impl/SysApplicationDatabaseDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/dao/impl/SysApplicationDatabaseDaoImpl.java @@ -1,17 +1,26 @@ package com.hzya.frame.sysnew.application.database.dao.impl; +import com.baomidou.dynamic.datasource.annotation.DS; import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + /** * 数据源表(SysApplicationDatabase)表数据库访问层 * * @author makejava - * @since 2023-09-25 11:46:31 + * @since 2024-06-16 21:49:30 */ @Repository(value = "SysApplicationDatabaseDaoImpl") public class SysApplicationDatabaseDaoImpl extends MybatisGenericDao implements ISysApplicationDatabaseDao{ - + @DS("master") + @Override + public List queryDSBase(SysApplicationDatabaseEntity entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryDSBase", entity); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.java index 03aa04df..73c69c8b 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.java @@ -6,22 +6,30 @@ import com.hzya.frame.web.entity.BaseEntity; * 数据源表(SysApplicationDatabase)实体类 * * @author makejava - * @since 2023-09-25 11:46:34 + * @since 2024-06-16 21:49:31 */ public class SysApplicationDatabaseEntity extends BaseEntity { /** 应用id */ private String appId; + /** 数据源唯一编码 */ + private String sourceCode; + /** 数据源名称 */ + private String sourceName; /** 数据源类型(1、oracle 2、sqlServer3、mysql) */ private String sourceType; - /** 实例地址 */ - private String sourceUrl; - /** 账户 */ + /** ip */ + private String sourceIp; + /** 端口 */ + private String sourcePort; + /** 登录名 */ private String loginName; /** 密码 */ private String password; /** 库名 */ private String dbName; + /** 选择oracle下服务名称 */ + private String serviceName; /** 数据源是否启用(1、开启 2、关闭) */ private String dbStatus; @@ -34,6 +42,22 @@ public class SysApplicationDatabaseEntity extends BaseEntity { this.appId = appId; } + public String getSourceCode() { + return sourceCode; + } + + public void setSourceCode(String sourceCode) { + this.sourceCode = sourceCode; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + public String getSourceType() { return sourceType; } @@ -42,12 +66,20 @@ public class SysApplicationDatabaseEntity extends BaseEntity { this.sourceType = sourceType; } - public String getSourceUrl() { - return sourceUrl; + public String getSourceIp() { + return sourceIp; } - public void setSourceUrl(String sourceUrl) { - this.sourceUrl = sourceUrl; + public void setSourceIp(String sourceIp) { + this.sourceIp = sourceIp; + } + + public String getSourcePort() { + return sourcePort; + } + + public void setSourcePort(String sourcePort) { + this.sourcePort = sourcePort; } public String getLoginName() { @@ -74,6 +106,14 @@ public class SysApplicationDatabaseEntity extends BaseEntity { this.dbName = dbName; } + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + public String getDbStatus() { return dbStatus; } @@ -81,6 +121,53 @@ public class SysApplicationDatabaseEntity extends BaseEntity { public void setDbStatus(String dbStatus) { this.dbStatus = dbStatus; } + public String getSourceUrl() { + StringBuffer sourceUrl = new StringBuffer(); + if(sourceType != null){ + switch (sourceType) { + case "1": //oracle + //jdbc:oracle:thin:@60.204.132.91:1521:ORCL + sourceUrl.append("jdbc:oracle:thin:@").append(sourceIp).append(":").append(sourcePort).append(":").append(serviceName); + break; + case "2": //sqlsever + //jdbc:sqlserver://221.12.175.82:1433;DatabaseName=U8CLOUD;encrypt=false;trustServerCertificate=true + //sourceUrl.append("jdbc:jtds:sqlserver://").append(sourceIp).append(":").append(sourcePort).append("/").append(dbName).append(";encrypt=false;trustServerCertificate=true"); + sourceUrl.append("jdbc:sqlserver://").append(sourceIp).append(":").append(sourcePort).append(";DatabaseName=").append(dbName).append(";encrypt=false;trustServerCertificate=true"); + break; + case "3": //mysql + //jdbc:mysql://hzya.ufyct.com:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + sourceUrl.append("jdbc:mysql://").append(sourceIp).append(":").append(sourcePort).append("/").append(dbName).append("?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true"); + break; + case "4": //dm + //jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&characterEncoding=UTF-8 + sourceUrl.append("jdbc:dm://").append(sourceIp).append(":").append(sourcePort).append("?schema=").append(dbName).append("&characterEncoding=UTF-8"); + break; + default: + } + } + return sourceUrl.toString(); + } + public String getSourceTypeName() { + String sourceTypeName = null; + if(sourceType != null){ + switch (sourceType) { + case "1": //oracle + sourceTypeName = "oracle"; + break; + case "2": //sqlsever + sourceTypeName = "sqlServer"; + break; + case "3": //mysql + sourceTypeName = "mysql"; + break; + case "4": //dm + sourceTypeName = "dm"; + break; + default: + } + } + return sourceTypeName; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.xml index 67637941..f1520b1b 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/entity/SysApplicationDatabaseEntity.xml @@ -5,44 +5,46 @@ + + - + + + - - - - + + + + id ,app_id + ,source_code + ,source_name ,source_type - ,source_url + ,source_ip + ,source_port ,login_name ,password ,db_name + ,service_name ,db_status ,sorts - ,org_id - ,sts - ,create_time ,create_user_id - ,modify_time + ,create_time ,modify_user_id + ,modify_time + ,sts + ,org_id - - - + insert into sys_application_database( id , app_id , + source_code , + source_name , source_type , - source_url , + source_ip , + source_port , login_name , password , db_name , + service_name , db_status , sorts , - org_id , - sts , - create_time , create_user_id , - modify_time , + create_time , modify_user_id , - sorts, + modify_time , + sts , + org_id , sts, )values( #{id} , #{appId} , + #{sourceCode} , + #{sourceName} , #{sourceType} , - #{sourceUrl} , + #{sourceIp} , + #{sourcePort} , #{loginName} , #{password} , #{dbName} , + #{serviceName} , #{dbStatus} , #{sorts} , - #{org_id} , - #{sts} , - #{create_time} , #{create_user_id} , - #{modify_time} , + #{create_time} , #{modify_user_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_database a WHERE a.sts = 'Y' ), + #{modify_time} , + #{sts} , + #{org_id} , 'Y', ) - - insert into sys_application_database(app_id, source_type, source_url, login_name, password, db_name, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts) + + insert into sys_application_database(app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values - (#{entity.appId},#{entity.sourceType},#{entity.sourceUrl},#{entity.loginName},#{entity.password},#{entity.dbName},#{entity.dbStatus},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}, 'Y') + (#{entity.appId},#{entity.sourceCode},#{entity.sourceName},#{entity.sourceType},#{entity.sourceIp},#{entity.sourcePort},#{entity.loginName},#{entity.password},#{entity.dbName},#{entity.serviceName},#{entity.dbStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, 'Y') - - insert into sys_application_database(app_id, source_type, source_url, login_name, password, db_name, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) + + insert into sys_application_database(app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values - (#{entity.appId},#{entity.sourceType},#{entity.sourceUrl},#{entity.loginName},#{entity.password},#{entity.dbName},#{entity.dbStatus},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}) + (#{entity.appId},#{entity.sourceCode},#{entity.sourceName},#{entity.sourceType},#{entity.sourceIp},#{entity.sourcePort},#{entity.loginName},#{entity.password},#{entity.dbName},#{entity.serviceName},#{entity.dbStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}) on duplicate key update app_id = values(app_id), + source_code = values(source_code), + source_name = values(source_name), source_type = values(source_type), - source_url = values(source_url), + source_ip = values(source_ip), + source_port = values(source_port), login_name = values(login_name), password = values(password), db_name = values(db_name), + service_name = values(service_name), db_status = values(db_status), - sorts = values(sorts), - org_id = values(org_id), - sts = values(sts), - create_time = values(create_time), create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), modify_time = values(modify_time), - modify_user_id = values(modify_user_id) + sts = values(sts), + org_id = values(org_id) update sys_application_database set app_id = #{appId}, + source_code = #{sourceCode}, + source_name = #{sourceName}, source_type = #{sourceType}, - source_url = #{sourceUrl}, + source_ip = #{sourceIp}, + source_port = #{sourcePort}, login_name = #{loginName}, password = #{password}, db_name = #{dbName}, + service_name = #{serviceName}, db_status = #{dbStatus}, - sorts = #{sorts}, - org_id = #{org_id}, - sts = #{sts}, - create_time = #{create_time}, - create_user_id = #{create_user_id}, - modify_time = #{modify_time}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, where id = #{id} @@ -255,21 +285,52 @@ update sys_application_database set sts= 'N' ,modify_time = #{modify_time},modi and id = #{id} and app_id = #{appId} + and source_code = #{sourceCode} + and source_name = #{sourceName} and source_type = #{sourceType} - and source_url = #{sourceUrl} + and source_ip = #{sourceIp} + and source_port = #{sourcePort} and login_name = #{loginName} and password = #{password} and db_name = #{dbName} + and service_name = #{serviceName} and db_status = #{dbStatus} and sorts = #{sorts} - and sts = #{sts} - and sts='Y' + and sts = #{sts} + and sts='Y' delete from sys_application_database where id = #{id} - + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/service/ISysApplicationDatabaseService.java b/service/src/main/java/com/hzya/frame/sysnew/application/database/service/ISysApplicationDatabaseService.java index 9f4ad126..c1d3776b 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/service/ISysApplicationDatabaseService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/service/ISysApplicationDatabaseService.java @@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService; * 数据源表(SysApplicationDatabase)表服务接口 * * @author makejava - * @since 2023-09-25 11:46:39 + * @since 2024-06-16 21:49:32 */ public interface ISysApplicationDatabaseService extends IBaseService{ } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/database/service/impl/SysApplicationDatabaseServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/database/service/impl/SysApplicationDatabaseServiceImpl.java index 1f799bc6..881a9151 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/database/service/impl/SysApplicationDatabaseServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/database/service/impl/SysApplicationDatabaseServiceImpl.java @@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService; * 数据源表(SysApplicationDatabase)表服务实现类 * * @author makejava - * @since 2023-09-25 11:46:42 + * @since 2024-06-16 21:49:33 */ @Service(value = "sysApplicationDatabaseService") public class SysApplicationDatabaseServiceImpl extends BaseService implements ISysApplicationDatabaseService { diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/ISysApplicationDictionaryDao.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/ISysApplicationDictionaryDao.java new file mode 100644 index 00000000..cfa3dc0c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/ISysApplicationDictionaryDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.sysnew.application.dictionary.dao; + +import com.hzya.frame.sysnew.application.dictionary.entity.SysApplicationDictionaryEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 应用数据字典表(sys_application_dictionary: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:40:53 + */ +public interface ISysApplicationDictionaryDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/impl/SysApplicationDictionaryDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/impl/SysApplicationDictionaryDaoImpl.java new file mode 100644 index 00000000..6d955f8b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/dao/impl/SysApplicationDictionaryDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.sysnew.application.dictionary.dao.impl; + +import com.hzya.frame.sysnew.application.dictionary.entity.SysApplicationDictionaryEntity; +import com.hzya.frame.sysnew.application.dictionary.dao.ISysApplicationDictionaryDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 应用数据字典表(SysApplicationDictionary)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:41:07 + */ +@Repository(value = "SysApplicationDictionaryDaoImpl") +public class SysApplicationDictionaryDaoImpl extends MybatisGenericDao implements ISysApplicationDictionaryDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.java new file mode 100644 index 00000000..fb52744c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.java @@ -0,0 +1,76 @@ +package com.hzya.frame.sysnew.application.dictionary.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 应用数据字典表(SysApplicationDictionary)实体类 + * + * @author makejava + * @since 2024-08-12 16:41:20 + */ +public class SysApplicationDictionaryEntity extends BaseEntity { + + /** 应用id */ + private String appId; + /** 名称 */ + private String name; + /** 类型 */ + private String dictionaryType; + /** 表 */ + private String dictionaryTable; + /** 语句 */ + private String dictionarySql; + /** 公司id */ + private String companyId; + + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDictionaryType() { + return dictionaryType; + } + + public void setDictionaryType(String dictionaryType) { + this.dictionaryType = dictionaryType; + } + + public String getDictionaryTable() { + return dictionaryTable; + } + + public void setDictionaryTable(String dictionaryTable) { + this.dictionaryTable = dictionaryTable; + } + + public String getDictionarySql() { + return dictionarySql; + } + + public void setDictionarySql(String dictionarySql) { + this.dictionarySql = dictionarySql; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.xml new file mode 100644 index 00000000..6c3be854 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/entity/SysApplicationDictionaryEntity.xml @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + app_id + ,name + ,dictionary_type + ,dictionary_table + ,dictionary_sql + ,sorts + ,id + ,create_user_id + ,create_time + ,modify_time + ,modify_user_id + ,org_id + ,company_id + ,sts + + + + + + + + + + + + + + + + insert into sys_application_dictionary( + + app_id , + name , + dictionary_type , + dictionary_table , + dictionary_sql , + sorts , + id , + create_user_id , + create_time , + modify_time , + modify_user_id , + org_id , + company_id , + sts , + sorts, + sts, + + )values( + + #{appId} , + #{name} , + #{dictionaryType} , + #{dictionaryTable} , + #{dictionarySql} , + #{sorts} , + #{id} , + #{create_user_id} , + #{create_time} , + #{modify_time} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{sts} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_dictionary a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into sys_application_dictionary(app_id, name, dictionary_type, dictionary_table, dictionary_sql, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts, sts) + values + + (#{entity.appId},#{entity.name},#{entity.dictionaryType},#{entity.dictionaryTable},#{entity.dictionarySql},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}, 'Y') + + + + + insert into sys_application_dictionary(app_id, name, dictionary_type, dictionary_table, dictionary_sql, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.appId},#{entity.name},#{entity.dictionaryType},#{entity.dictionaryTable},#{entity.dictionarySql},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}) + + on duplicate key update + app_id = values(app_id), + name = values(name), + dictionary_type = values(dictionary_type), + dictionary_table = values(dictionary_table), + dictionary_sql = values(dictionary_sql), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + +update sys_application_dictionary set + + app_id = #{appId}, + name = #{name}, + dictionary_type = #{dictionaryType}, + dictionary_table = #{dictionaryTable}, + dictionary_sql = #{dictionarySql}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + org_id = #{org_id}, + company_id = #{companyId}, + sts = #{sts}, + +where sorts = #{sorts} + + + +update sys_application_dictionary set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where sorts = #{sorts} + + + +update sys_application_dictionary set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and app_id = #{appId} + and name = #{name} + and dictionary_type = #{dictionaryType} + and dictionary_table = #{dictionaryTable} + and dictionary_sql = #{dictionarySql} + and sorts = #{sorts} + and id = #{id} + and company_id = #{companyId} + and sts = #{sts} + and sts='Y' + + + + + delete from sys_application_dictionary where sorts = #{sorts} + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/ISysApplicationDictionaryService.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/ISysApplicationDictionaryService.java new file mode 100644 index 00000000..08d06dd5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/ISysApplicationDictionaryService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.sysnew.application.dictionary.service; + +import com.hzya.frame.sysnew.application.dictionary.entity.SysApplicationDictionaryEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 应用数据字典表(SysApplicationDictionary)表服务接口 + * + * @author makejava + * @since 2024-08-12 16:41:22 + */ +public interface ISysApplicationDictionaryService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/impl/SysApplicationDictionaryServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/impl/SysApplicationDictionaryServiceImpl.java new file mode 100644 index 00000000..cee72fe9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionary/service/impl/SysApplicationDictionaryServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.sysnew.application.dictionary.service.impl; + +import com.hzya.frame.sysnew.application.dictionary.entity.SysApplicationDictionaryEntity; +import com.hzya.frame.sysnew.application.dictionary.dao.ISysApplicationDictionaryDao; +import com.hzya.frame.sysnew.application.dictionary.service.ISysApplicationDictionaryService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 应用数据字典表(SysApplicationDictionary)表服务实现类 + * + * @author makejava + * @since 2024-08-12 16:41:25 + */ +@Service(value = "sysApplicationDictionaryService") +public class SysApplicationDictionaryServiceImpl extends BaseService implements ISysApplicationDictionaryService { + + private ISysApplicationDictionaryDao sysApplicationDictionaryDao; + + @Autowired + public void setSysApplicationDictionaryDao(ISysApplicationDictionaryDao dao) { + this.sysApplicationDictionaryDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/ISysApplicationDictionaryDetailDao.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/ISysApplicationDictionaryDetailDao.java new file mode 100644 index 00000000..485ee68f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/ISysApplicationDictionaryDetailDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.sysnew.application.dictionaryDetail.dao; + +import com.hzya.frame.sysnew.application.dictionaryDetail.entity.SysApplicationDictionaryDetailEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 应用数据字典明细表(sys_application_dictionary_detail: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:52:14 + */ +public interface ISysApplicationDictionaryDetailDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/impl/SysApplicationDictionaryDetailDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/impl/SysApplicationDictionaryDetailDaoImpl.java new file mode 100644 index 00000000..6b61f3af --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/dao/impl/SysApplicationDictionaryDetailDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.sysnew.application.dictionaryDetail.dao.impl; + +import com.hzya.frame.sysnew.application.dictionaryDetail.entity.SysApplicationDictionaryDetailEntity; +import com.hzya.frame.sysnew.application.dictionaryDetail.dao.ISysApplicationDictionaryDetailDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 应用数据字典明细表(SysApplicationDictionaryDetail)表数据库访问层 + * + * @author makejava + * @since 2024-08-12 16:52:14 + */ +@Repository(value = "SysApplicationDictionaryDetailDaoImpl") +public class SysApplicationDictionaryDetailDaoImpl extends MybatisGenericDao implements ISysApplicationDictionaryDetailDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.java new file mode 100644 index 00000000..0cfdbf6d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.java @@ -0,0 +1,76 @@ +package com.hzya.frame.sysnew.application.dictionaryDetail.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 应用数据字典明细表(SysApplicationDictionaryDetail)实体类 + * + * @author makejava + * @since 2024-08-12 16:52:14 + */ +public class SysApplicationDictionaryDetailEntity extends BaseEntity { + + /** 应用id */ + private String appId; + /** 应用数据字典主表id */ + private String dictionaryId; + /** 字段名称 */ + private String fieldName; + /** 字段编码 */ + private String fieldCode; + /** 字段类型 */ + private String fieldType; + /** 公司id */ + private String companyId; + + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getDictionaryId() { + return dictionaryId; + } + + public void setDictionaryId(String dictionaryId) { + this.dictionaryId = dictionaryId; + } + + public String getFieldName() { + return fieldName; + } + + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + public String getFieldCode() { + return fieldCode; + } + + public void setFieldCode(String fieldCode) { + this.fieldCode = fieldCode; + } + + public String getFieldType() { + return fieldType; + } + + public void setFieldType(String fieldType) { + this.fieldType = fieldType; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.xml new file mode 100644 index 00000000..427734b1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/entity/SysApplicationDictionaryDetailEntity.xml @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + app_id + ,dictionary_id + ,field_name + ,field_code + ,field_type + ,sorts + ,id + ,create_user_id + ,create_time + ,modify_time + ,modify_user_id + ,org_id + ,company_id + ,sts + + + + + + + + + + + + + + + + insert into sys_application_dictionary_detail( + + app_id , + dictionary_id , + field_name , + field_code , + field_type , + sorts , + id , + create_user_id , + create_time , + modify_time , + modify_user_id , + org_id , + company_id , + sts , + sorts, + sts, + + )values( + + #{appId} , + #{dictionaryId} , + #{fieldName} , + #{fieldCode} , + #{fieldType} , + #{sorts} , + #{id} , + #{create_user_id} , + #{create_time} , + #{modify_time} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{sts} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_dictionary_detail a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into sys_application_dictionary_detail(app_id, dictionary_id, field_name, field_code, field_type, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts, sts) + values + + (#{entity.appId},#{entity.dictionaryId},#{entity.fieldName},#{entity.fieldCode},#{entity.fieldType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}, 'Y') + + + + + insert into sys_application_dictionary_detail(app_id, dictionary_id, field_name, field_code, field_type, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.appId},#{entity.dictionaryId},#{entity.fieldName},#{entity.fieldCode},#{entity.fieldType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_time},#{entity.modify_user_id},#{entity.org_id},#{entity.companyId},#{entity.sts}) + + on duplicate key update + app_id = values(app_id), + dictionary_id = values(dictionary_id), + field_name = values(field_name), + field_code = values(field_code), + field_type = values(field_type), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + +update sys_application_dictionary_detail set + + app_id = #{appId}, + dictionary_id = #{dictionaryId}, + field_name = #{fieldName}, + field_code = #{fieldCode}, + field_type = #{fieldType}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + org_id = #{org_id}, + company_id = #{companyId}, + sts = #{sts}, + +where sorts = #{sorts} + + + +update sys_application_dictionary_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where sorts = #{sorts} + + + +update sys_application_dictionary_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and app_id = #{appId} + and dictionary_id = #{dictionaryId} + and field_name = #{fieldName} + and field_code = #{fieldCode} + and field_type = #{fieldType} + and sorts = #{sorts} + and id = #{id} + and company_id = #{companyId} + and sts = #{sts} + and sts='Y' + + + + + delete from sys_application_dictionary_detail where sorts = #{sorts} + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/ISysApplicationDictionaryDetailService.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/ISysApplicationDictionaryDetailService.java new file mode 100644 index 00000000..5b40d55d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/ISysApplicationDictionaryDetailService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.sysnew.application.dictionaryDetail.service; + +import com.hzya.frame.sysnew.application.dictionaryDetail.entity.SysApplicationDictionaryDetailEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 应用数据字典明细表(SysApplicationDictionaryDetail)表服务接口 + * + * @author makejava + * @since 2024-08-12 16:52:14 + */ +public interface ISysApplicationDictionaryDetailService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/impl/SysApplicationDictionaryDetailServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/impl/SysApplicationDictionaryDetailServiceImpl.java new file mode 100644 index 00000000..1294c8ea --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/dictionaryDetail/service/impl/SysApplicationDictionaryDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.sysnew.application.dictionaryDetail.service.impl; + +import com.hzya.frame.sysnew.application.dictionaryDetail.entity.SysApplicationDictionaryDetailEntity; +import com.hzya.frame.sysnew.application.dictionaryDetail.dao.ISysApplicationDictionaryDetailDao; +import com.hzya.frame.sysnew.application.dictionaryDetail.service.ISysApplicationDictionaryDetailService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 应用数据字典明细表(SysApplicationDictionaryDetail)表服务实现类 + * + * @author makejava + * @since 2024-08-12 16:52:14 + */ +@Service(value = "sysApplicationDictionaryDetailService") +public class SysApplicationDictionaryDetailServiceImpl extends BaseService implements ISysApplicationDictionaryDetailService { + + private ISysApplicationDictionaryDetailDao sysApplicationDictionaryDetailDao; + + @Autowired + public void setSysApplicationDictionaryDetailDao(ISysApplicationDictionaryDetailDao dao) { + this.sysApplicationDictionaryDetailDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationDto.java b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationDto.java index 5a797b9a..e619ae21 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationDto.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationDto.java @@ -59,7 +59,8 @@ public class SysApplicationDto { private String systemAddress; //api接口参数表 private List apiParas; - + /** 系统类型 1、致远OA 2、用友U8C 3、用友BIP */ + private String appType; //数据源 private SysApplicationDatabaseEntity databaseEntity; private Integer pageNum; @@ -262,5 +263,13 @@ public class SysApplicationDto { public void setSystemAddress(String systemAddress) { this.systemAddress = systemAddress; } + + public String getAppType() { + return appType; + } + + public void setAppType(String appType) { + this.appType = appType; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.java index 0e9a8131..3eb1ff34 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.java @@ -43,6 +43,8 @@ public class SysApplicationEntity extends BaseEntity { /** 数据源是否启用(1、开启 2、关闭) */ private String dbStatus; + /** 系统类型 1、致远OA 2、用友U8C 3、用友BIP */ + private String appType; /** appid */ private Integer appId; /** ip白名单 */ @@ -191,5 +193,13 @@ public class SysApplicationEntity extends BaseEntity { public void setSystemAddress(String systemAddress) { this.systemAddress = systemAddress; } + + public String getAppType() { + return appType; + } + + public void setAppType(String appType) { + this.appType = appType; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.xml index 2187fa57..e9852749 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationEntity.xml @@ -22,6 +22,7 @@ + @@ -51,7 +52,8 @@ ,interface_address ,interface_status ,db_status - ,sorts + ,app_type + ,sorts ,org_id ,sts ,create_time @@ -90,6 +92,7 @@ and interface_address = #{interfaceAddress} and interface_status = #{interfaceStatus} and db_status = #{dbStatus} + and app_type = #{appType} and sorts = #{sorts} and org_id = #{org_id} and sts = #{sts} @@ -126,6 +129,7 @@ and interface_address = #{interfaceAddress} and interface_status = #{interfaceStatus} and db_status = #{dbStatus} + and app_type = #{appType} and sorts = #{sorts} and org_id = #{org_id} and sts = #{sts} @@ -164,6 +168,7 @@ and interface_address like concat('%',#{interfaceAddress},'%') and interface_status like concat('%',#{interfaceStatus},'%') and db_status like concat('%',#{dbStatus},'%') + and app_type like concat('%',#{appType},'%') and sorts like concat('%',#{sorts},'%') and org_id like concat('%',#{org_id},'%') and sts like concat('%',#{sts},'%') @@ -202,6 +207,7 @@ or interface_address = #{interfaceAddress} or interface_status = #{interfaceStatus} or db_status = #{dbStatus} + or app_type = #{appType} or sorts = #{sorts} or org_id = #{org_id} or sts = #{sts} @@ -216,7 +222,7 @@ - + insert into sys_application( id , @@ -239,6 +245,7 @@ interface_address , interface_status , db_status , + app_type , sorts , org_id , sts , @@ -246,7 +253,6 @@ create_user_id , modify_time , modify_user_id , - sorts, sts, )values( @@ -271,6 +277,7 @@ #{interfaceAddress} , #{interfaceStatus} , #{dbStatus} , + #{appType} , #{sorts} , #{org_id} , #{sts} , @@ -278,25 +285,24 @@ #{create_user_id} , #{modify_time} , #{modify_user_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application a WHERE a.sts = 'Y' ), 'Y', ) - - insert into sys_application(app_logo, app_status, name, version_number, app_id, system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts) + + insert into sys_application(app_logo, app_status, name, version_number, app_id, system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status,app_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts) values - (#{entity.appLogo},#{entity.appStatus},#{entity.name},#{entity.versionNumber},#{entity.appId},#{entity.systemAddress},#{entity.accessMode},#{entity.affiliationField},#{entity.manufacturer},#{entity.appIntroduction},#{entity.clientPath},#{entity.webPath},#{entity.programPath},#{entity.publicKey},#{entity.secretKey},#{entity.interfaceAddress},#{entity.interfaceStatus},#{entity.dbStatus},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}, 'Y') + (#{entity.appLogo},#{entity.appStatus},#{entity.name},#{entity.versionNumber},#{entity.appId},#{entity.systemAddress},#{entity.accessMode},#{entity.affiliationField},#{entity.manufacturer},#{entity.appIntroduction},#{entity.clientPath},#{entity.webPath},#{entity.programPath},#{entity.publicKey},#{entity.secretKey},#{entity.interfaceAddress},#{entity.interfaceStatus},#{entity.dbStatus},#{entity.appType},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}, 'Y') - - insert into sys_application(app_logo, app_status, name, version_number,app_id,system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) + + insert into sys_application(app_logo, app_status, name, version_number,app_id,system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status,app_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id) values - (#{entity.appLogo},#{entity.appStatus},#{entity.name},#{entity.versionNumber},#{entity.appId},#{entity.systemAddress},#{entity.accessMode},#{entity.affiliationField},#{entity.manufacturer},#{entity.appIntroduction},#{entity.clientPath},#{entity.webPath},#{entity.programPath},#{entity.publicKey},#{entity.secretKey},#{entity.interfaceAddress},#{entity.interfaceStatus},#{entity.dbStatus},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}) + (#{entity.appLogo},#{entity.appStatus},#{entity.name},#{entity.versionNumber},#{entity.appId},#{entity.systemAddress},#{entity.accessMode},#{entity.affiliationField},#{entity.manufacturer},#{entity.appIntroduction},#{entity.clientPath},#{entity.webPath},#{entity.programPath},#{entity.publicKey},#{entity.secretKey},#{entity.interfaceAddress},#{entity.interfaceStatus},#{entity.dbStatus},#{entity.appType},#{entity.sorts},#{entity.org_id},#{entity.sts},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id}) on duplicate key update app_logo = values(app_logo), @@ -317,6 +323,7 @@ interface_address = values(interface_address), interface_status = values(interface_status), db_status = values(db_status), + app_type = values(app_type), sorts = values(sorts), org_id = values(org_id), sts = values(sts), @@ -346,6 +353,7 @@ update sys_application set interface_address = #{interfaceAddress}, interface_status = #{interfaceStatus}, db_status = #{dbStatus}, + app_type = #{appType}, sorts = #{sorts}, org_id = #{org_id}, sts = #{sts}, @@ -384,6 +392,7 @@ update sys_application set sts= 'N' ,modify_time = #{modify_time},modify_user_i and interface_address = #{interfaceAddress} and interface_status = #{interfaceStatus} and db_status = #{dbStatus} + and app_type = #{appType} and sorts = #{sorts} and sts = #{sts} and sts='Y' @@ -411,6 +420,7 @@ update sys_application set sts= 'N' ,modify_time = #{modify_time},modify_user_i ,a.app_introduction as appIntroduction ,a.interface_status as interfaceStatus ,a.db_status as dbStatus + ,a.app_type as appType from sys_application a and a.affiliation_field = #{affiliationField} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationVo.java b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationVo.java index cb3bf8a6..2d6670ef 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationVo.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysApplicationVo.java @@ -37,6 +37,8 @@ public class SysApplicationVo { /** 应用是否启用(1、启用 2、停用) */ private String appStatus; + /** 系统类型 1、致远OA 2、用友U8C 3、用友BIP */ + private String appType; public String getId() { return id; } @@ -148,5 +150,13 @@ public class SysApplicationVo { public void setSystemAddress(String systemAddress) { this.systemAddress = systemAddress; } + + public String getAppType() { + return appType; + } + + public void setAppType(String appType) { + this.appType = appType; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysExtensionApiEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysExtensionApiEntity.java index 90c7ed64..baff9a85 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysExtensionApiEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/SysExtensionApiEntity.java @@ -1,6 +1,8 @@ package com.hzya.frame.sysnew.application.entity; +import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity; + import java.util.Map; public class SysExtensionApiEntity { @@ -11,6 +13,14 @@ public class SysExtensionApiEntity { private String querys; /** body */ private String bodys; + //byteBodys + private byte[] byteBodys; + /** 发送方应用 */ + private SysApplicationEntity sendApp; + /** 接收方应用 */ + private SysApplicationEntity receiveApp; + /** 接收方api */ + private SysApplicationApiEntity receiveApi; public Map getHeaders() { return headers; @@ -35,5 +45,37 @@ public class SysExtensionApiEntity { public void setBodys(String bodys) { this.bodys = bodys; } + + public SysApplicationEntity getSendApp() { + return sendApp; + } + + public void setSendApp(SysApplicationEntity sendApp) { + this.sendApp = sendApp; + } + + public SysApplicationEntity getReceiveApp() { + return receiveApp; + } + + public void setReceiveApp(SysApplicationEntity receiveApp) { + this.receiveApp = receiveApp; + } + + public SysApplicationApiEntity getReceiveApi() { + return receiveApi; + } + + public void setReceiveApi(SysApplicationApiEntity receiveApi) { + this.receiveApi = receiveApi; + } + + public byte[] getByteBodys() { + return byteBodys; + } + + public void setByteBodys(byte[] byteBodys) { + this.byteBodys = byteBodys; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.java index 7aa5471a..5929e14b 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.java @@ -16,6 +16,8 @@ public class SysApplicationPluginEntity extends BaseEntity { private String pluginName; /** 插件编号 */ private String pluginCode; + /** 插件包名 */ + private String pluginPackageName; /** 插件版本 */ private String pluginVersion; /** 描述 */ @@ -25,6 +27,23 @@ public class SysApplicationPluginEntity extends BaseEntity { /** 启用停用(1启用2停用) */ private String pluginStatus; + private String attachmentId; + + public String getPluginPackageName() { + return pluginPackageName; + } + + public void setPluginPackageName(String pluginPackageName) { + this.pluginPackageName = pluginPackageName; + } + + public String getAttachmentId() { + return attachmentId; + } + + public void setAttachmentId(String attachmentId) { + this.attachmentId = attachmentId; + } public String getAppId() { return appId; diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.xml index 1338856a..90b5444d 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/application/plugin/entity/SysApplicationPluginEntity.xml @@ -18,6 +18,8 @@ + + @@ -35,7 +37,9 @@ ,modify_user_id ,modify_time ,sts - ,org_id + ,org_id + ,attachment_id + ,plugin_package_name - + insert into sys_application_plugin( id , @@ -168,7 +180,8 @@ modify_time , sts , org_id , - sorts, + attachment_id , + plugin_package_name , sts, )values( @@ -188,13 +201,14 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_plugin a WHERE a.sts = 'Y' ), + #{attachmentId} , + #{pluginPackageName} , 'Y', ) - + insert into sys_application_plugin(app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -202,7 +216,7 @@ - + insert into sys_application_plugin(app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values @@ -241,6 +255,8 @@ update sys_application_plugin set modify_time = #{modify_time}, sts = #{sts}, org_id = #{org_id}, + attachment_id = #{attachmentId}, + plugin_package_name = #{pluginPackageName}, where id = #{id} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/ISysApplicationScriptDao.java b/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/ISysApplicationScriptDao.java new file mode 100644 index 00000000..7fb5725a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/ISysApplicationScriptDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.sysnew.application.script.dao; + +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 脚本表(sys_application_script: table)表数据库访问层 + * + * @author makejava + * @since 2024-06-17 11:07:21 + */ +public interface ISysApplicationScriptDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/impl/SysApplicationScriptDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/impl/SysApplicationScriptDaoImpl.java new file mode 100644 index 00000000..eba77367 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/dao/impl/SysApplicationScriptDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.sysnew.application.script.dao.impl; + +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.sysnew.application.script.dao.ISysApplicationScriptDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 脚本表(SysApplicationScript)表数据库访问层 + * + * @author makejava + * @since 2024-06-17 11:07:22 + */ +@Repository(value = "SysApplicationScriptDaoImpl") +public class SysApplicationScriptDaoImpl extends MybatisGenericDao implements ISysApplicationScriptDao{ + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.java new file mode 100644 index 00000000..142a078a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.java @@ -0,0 +1,125 @@ +package com.hzya.frame.sysnew.application.script.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 脚本表(SysApplicationScript)实体类 + * + * @author makejava + * @since 2024-06-17 11:07:22 + */ +public class SysApplicationScriptEntity extends BaseEntity { + + /** 应用id */ + private String appId; + /** 脚本名称 */ + private String scriptName; + /** 脚本编号 */ + private String scriptCode; + /** 脚本版本 */ + private String scriptVersion; + /** classname */ + private String className; + /** 脚本内容 */ + private String scriptData; + /** 返回脚本内容 */ + private String backScriptData; + /** 描述 */ + private String scriptRemark; + /** 发布日期 */ + private Date releaseDate; + /** 启用停用(1启用2停用) */ + private String scriptStatus; + /** 公司id */ + private String companyId; + + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getScriptName() { + return scriptName; + } + + public void setScriptName(String scriptName) { + this.scriptName = scriptName; + } + + public String getScriptCode() { + return scriptCode; + } + + public void setScriptCode(String scriptCode) { + this.scriptCode = scriptCode; + } + + public String getScriptVersion() { + return scriptVersion; + } + + public void setScriptVersion(String scriptVersion) { + this.scriptVersion = scriptVersion; + } + + public String getClassName() { + return className; + } + + public void setClassName(String className) { + this.className = className; + } + + public String getScriptData() { + return scriptData; + } + + public void setScriptData(String scriptData) { + this.scriptData = scriptData; + } + + public String getScriptRemark() { + return scriptRemark; + } + + public void setScriptRemark(String scriptRemark) { + this.scriptRemark = scriptRemark; + } + + public Date getReleaseDate() { + return releaseDate; + } + + public void setReleaseDate(Date releaseDate) { + this.releaseDate = releaseDate; + } + + public String getScriptStatus() { + return scriptStatus; + } + + public void setScriptStatus(String scriptStatus) { + this.scriptStatus = scriptStatus; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getBackScriptData() { + return backScriptData; + } + + public void setBackScriptData(String backScriptData) { + this.backScriptData = backScriptData; + } +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.xml new file mode 100644 index 00000000..f0842ca2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/entity/SysApplicationScriptEntity.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,app_id + ,script_name + ,script_code + ,script_version + ,class_name + ,script_data + ,back_script_data + ,script_remark + ,release_date + ,script_status + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + insert into sys_application_script( + + id , + app_id , + script_name , + script_code , + script_version , + class_name , + script_data , + back_script_data , + script_remark , + release_date , + script_status , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{appId} , + #{scriptName} , + #{scriptCode} , + #{scriptVersion} , + CONCAT('g','_',LAST_INSERT_ID()) , + #{scriptData} , + #{backScriptData} , + #{scriptRemark} , + #{releaseDate} , + #{scriptStatus} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into sys_application_script(app_id, script_name, script_code, script_version, class_name, script_data,back_script_data, script_remark, release_date, script_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.appId},#{entity.scriptName},#{entity.scriptCode},#{entity.scriptVersion},#{entity.className},#{entity.scriptData},#{entity.backScriptData},#{entity.scriptRemark},#{entity.releaseDate},#{entity.scriptStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') + + + + + insert into sys_application_script(app_id, script_name, script_code, script_version, class_name, script_data,back_script_data, script_remark, release_date, script_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.appId},#{entity.scriptName},#{entity.scriptCode},#{entity.scriptVersion},#{entity.className},#{entity.scriptData},#{entity.backScriptData},#{entity.scriptRemark},#{entity.releaseDate},#{entity.scriptStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + app_id = values(app_id), + script_name = values(script_name), + script_code = values(script_code), + script_version = values(script_version), + class_name = values(class_name), + script_data = values(script_data), + back_script_data = values(back_script_data), + script_remark = values(script_remark), + release_date = values(release_date), + script_status = values(script_status), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + +update sys_application_script set + + app_id = #{appId}, + script_name = #{scriptName}, + script_code = #{scriptCode}, + script_version = #{scriptVersion}, + class_name = #{className}, + script_data = #{scriptData}, + back_script_data = #{backScriptData}, + script_remark = #{scriptRemark}, + release_date = #{releaseDate}, + script_status = #{scriptStatus}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update sys_application_script set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update sys_application_script set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and app_id = #{appId} + and script_name = #{scriptName} + and script_code = #{scriptCode} + and script_version = #{scriptVersion} + and class_name = #{className} + and script_data = #{scriptData} + and back_script_data = #{backScriptData} + and script_remark = #{scriptRemark} + and release_date = #{releaseDate} + and script_status = #{scriptStatus} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from sys_application_script where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/service/ISysApplicationScriptService.java b/service/src/main/java/com/hzya/frame/sysnew/application/script/service/ISysApplicationScriptService.java new file mode 100644 index 00000000..73d7588d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/service/ISysApplicationScriptService.java @@ -0,0 +1,12 @@ +package com.hzya.frame.sysnew.application.script.service; + +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.basedao.service.IBaseService; +/** + * 脚本表(SysApplicationScript)表服务接口 + * + * @author makejava + * @since 2024-06-17 11:07:22 + */ +public interface ISysApplicationScriptService extends IBaseService{ +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/script/service/impl/SysApplicationScriptServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/script/service/impl/SysApplicationScriptServiceImpl.java new file mode 100644 index 00000000..59ef35e1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/script/service/impl/SysApplicationScriptServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.sysnew.application.script.service.impl; + +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; +import com.hzya.frame.sysnew.application.script.dao.ISysApplicationScriptDao; +import com.hzya.frame.sysnew.application.script.service.ISysApplicationScriptService; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; +/** + * 脚本表(SysApplicationScript)表服务实现类 + * + * @author makejava + * @since 2024-06-17 11:07:22 + */ +@Service(value = "sysApplicationScriptService") +public class SysApplicationScriptServiceImpl extends BaseService implements ISysApplicationScriptService { + + private ISysApplicationScriptDao sysApplicationScriptDao; + + @Autowired + public void setSysApplicationScriptDao(ISysApplicationScriptDao dao) { + this.sysApplicationScriptDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/service/ISysApplicationService.java b/service/src/main/java/com/hzya/frame/sysnew/application/service/ISysApplicationService.java index 88c81fc1..25ec9090 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/service/ISysApplicationService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/service/ISysApplicationService.java @@ -3,6 +3,7 @@ package com.hzya.frame.sysnew.application.service; import com.alibaba.fastjson.JSONObject; import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity; import com.hzya.frame.web.entity.JsonResultEntity; import javax.servlet.ServletRequest; @@ -253,6 +254,8 @@ public interface ISysApplicationService extends IBaseService sysApplicationApiAuthEntities = sysApplicationApiAuthDao.queryByLike(sysApplicationApiAuthEntity); + List sysApplicationApiAuthEntities = sysApplicationApiAuthDao.queryBase(sysApplicationApiAuthEntity); if(sysApplicationApiAuthEntities != null && sysApplicationApiAuthEntities.size() > 0){ for (int i = 0; i < sysApplicationApiAuthEntities.size(); i++) { applicationApiAuthMap.put("name"+sysApplicationApiAuthEntities.get(i).getName()+"appId"+sysApplicationApiAuthEntities.get(i).getAppId(), sysApplicationApiAuthEntities.get(i)); diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java index 08ec7a99..77a1dd3f 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java @@ -1,16 +1,19 @@ package com.hzya.frame.sysnew.application.service.impl; -import cn.dev33.satoken.exception.NotLoginException; import cn.dev33.satoken.stp.StpUtil; import cn.hutool.core.date.DateTime; import cn.hutool.core.date.DateUtil; import cn.hutool.extra.servlet.ServletUtil; import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.baomidou.dynamic.datasource.annotation.DSTransactional; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao; +import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity; import com.hzya.frame.serviceUtil.DsDataSourceUtil; import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao; import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiDto; @@ -25,17 +28,15 @@ import com.hzya.frame.sysnew.application.apiPara.dao.ISysApplicationApiParaDao; import com.hzya.frame.sysnew.application.apiPara.entity.SysApplicationApiParaEntity; import com.hzya.frame.sysnew.application.apiType.dao.ISysApplicationApiTypeDao; import com.hzya.frame.sysnew.application.apiType.entity.SysApplicationApiTypeEntity; +import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; -import com.hzya.frame.sysnew.application.entity.SysApplicationDatasourceDto; -import com.hzya.frame.sysnew.application.entity.SysApplicationDto; -import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; -import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; -import com.hzya.frame.sysnew.application.entity.SysApplicationVo; -import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.application.entity.*; import com.hzya.frame.sysnew.application.plugin.dao.ISysApplicationPluginDao; import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginDto; import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity; +import com.hzya.frame.sysnew.application.script.dao.ISysApplicationScriptDao; +import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntity; import com.hzya.frame.sysnew.application.service.ISysApplicationService; import com.hzya.frame.sysnew.integtationTask.IIntegrationTaskCacheableService; import com.hzya.frame.sysnew.messageManage.dao.ISysMessageManageDao; @@ -45,17 +46,12 @@ import com.hzya.frame.sysnew.messageManageDetail.entity.SysMessageManageDetailEn import com.hzya.frame.sysnew.messageManageLog.dao.ISysMessageManageLogDao; import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity; import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogPageVo; -import com.hzya.frame.sysnew.popedomInterface.entity.SysPopedomInterfaceEntity; -import com.hzya.frame.sysnew.sysInterface.entity.SysInterfaceEntity; -import com.hzya.frame.sysnew.user.entity.SysUserEntity; -import com.hzya.frame.sysnew.userRoles.entity.SysUserRolesEntity; import com.hzya.frame.util.AESUtil; import com.hzya.frame.util.IPHelper; import com.hzya.frame.uuid.UUIDUtils; import com.hzya.frame.web.action.ApplicationContextUtil; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; -import com.hzya.frame.web.exception.BaseSystemException; import org.apache.http.HttpEntity; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; @@ -65,27 +61,21 @@ import org.apache.http.entity.ByteArrayEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.core.task.TaskExecutor; import org.springframework.stereotype.Service; -import org.springframework.beans.factory.annotation.Autowired; import javax.annotation.Resource; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; - -import com.hzya.frame.basedao.service.impl.BaseService; -import org.springframework.util.ObjectUtils; - import java.io.IOException; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.*; /** * 应用表(SysApplication)表服务实现类 @@ -116,10 +106,13 @@ public class SysApplicationServiceImpl extends BaseService apiAuthDetail = saveCopyApiAuthDetail(entity, olderAppId, apiType, apiAuth, api); + applicationCache.reloadData("1"); + applicationCache.reloadData("2"); + applicationCache.reloadData("3"); + applicationCache.reloadData("4"); return BaseResult.getSuccessMessageEntity("复制应用成功", entity.getId()); } @@ -284,8 +282,8 @@ public class SysApplicationServiceImpl extends BaseService sysApplicationDatabaseEntities = sysApplicationDatabaseDao.queryBase(checkData); + if(detailEntity.getId() != null && !"".equals(detailEntity.getId())){ + if(sysApplicationDatabaseEntities != null && sysApplicationDatabaseEntities.size() > 0){ + for (int i = 0; i < sysApplicationDatabaseEntities.size(); i++) { + if(!detailEntity.getId().equals(sysApplicationDatabaseEntities.get(i).getId())){ + return BaseResult.getFailureMessageEntity("数据源编码已经存在,请修改"); + } + } + } + }else { + if(sysApplicationDatabaseEntities != null && sysApplicationDatabaseEntities.size() > 0){ + return BaseResult.getFailureMessageEntity("数据源编码已经存在,请修改"); + } + } + } //修改应用基本信息 SysApplicationEntity sysApplicationEntity = doUpdateApp(entity); if ("2".equals(entity.getUpdateType())) {//开发管理界面,需要保存 接口参数,和数据源 doUpdateApiPara(entity);//api接口参数 doUpdateDatabase(entity);//数据源 } + applicationCache.reloadData("1"); + applicationCache.reloadData("2"); + applicationCache.reloadData("3"); + applicationCache.reloadData("4"); return BaseResult.getSuccessMessageEntity("修改应用成功"); } @@ -544,14 +567,19 @@ public class SysApplicationServiceImpl extends BaseService tripartiteSystemIds = new ArrayList<>(); //添加 List apiAuths = entity.getApiAuths(); @@ -1201,7 +1245,6 @@ public class SysApplicationServiceImpl extends BaseService 0) { sysApplicationDatabaseEntity = list.get(0); + sysApplicationDatabaseEntity.setPassword(AESUtil.decrypt(sysApplicationDatabaseEntity.getPassword())); } else { sysApplicationDatabaseEntity = null; } @@ -1647,65 +1717,103 @@ public class SysApplicationServiceImpl extends BaseService a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + Map headers = new HashMap<>(); + if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + if (jsonArray != null && jsonArray.size() > 0) { + for (int i = 0; i < jsonArray.size(); i++) { + JSONObject object1 = jsonArray.getJSONObject(i); + headers.put(object1.getString("parameterName"), object1.getString("example")); + } + } + } + if (oldheaderMap != null && oldheaderMap.size() > 0) { + for (Map.Entry entry : oldheaderMap.entrySet()) { + if (!a.contains(entry.getKey())) { + headers.put(entry.getKey(), entry.getValue()); + } + } + } + + + + sysExtensionApiEntity.setSendApp(sendApp); + sysExtensionApiEntity.setReceiveApp(receiveApp); + sysExtensionApiEntity.setReceiveApi(receiveApi); + sysExtensionApiEntity.setHeaders(headers); sysExtensionApiEntity.setQuerys(oldquerys); sysExtensionApiEntity.setBodys(oldbodys); + Method[] methods = null; + Object object = null; - //TODO 判断是否有内部api 是否扩展api 1、启用 2、停用 + + + + // 判断是否有内部api 是否扩展api 1、启用 2、停用 if (receiveApi.getExtensionApi() != null && "1".equals(receiveApi.getExtensionApi()) && receiveApi.getBeanName() != null && !"".equals(receiveApi.getBeanName()) && receiveApi.getFunName() != null && !"".equals(receiveApi.getFunName()) ) { //获取类 - Object object = null; try { object = ApplicationContextUtil.getBeanByName(receiveApi.getBeanName()); } catch (SecurityException e) { } //获取类下面的方法 - Method[] methods = object.getClass().getMethods(); + methods = object.getClass().getMethods(); if (methods == null || methods.length == 0) { return BaseResult.getFailureMessageEntity("未找到内部方法,请联系管理员"); } @@ -1716,6 +1824,7 @@ public class SysApplicationServiceImpl extends BaseService>>>>>>>>>>>>>>>>>>>>>>>>>>>"); sysExtensionApiEntity = (SysExtensionApiEntity) m.invoke(object, sysExtensionApiEntity); logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + break; } catch (Exception e) { logger.error("invokeException{}", e.getMessage()); return BaseResult.getFailureMessageEntity("内部方法执行错误,请联系管理员"); @@ -1725,13 +1834,14 @@ public class SysApplicationServiceImpl extends BaseService headerMap = sysExtensionApiEntity.getHeaders(); + headers = sysExtensionApiEntity.getHeaders(); String querys = sysExtensionApiEntity.getQuerys(); String bodys = sysExtensionApiEntity.getBodys(); //设置参数获取参数 StringBuffer url = new StringBuffer(); - url.append(receiveApp.getInterfaceAddress()); + if(!receiveApi.getDestinationAddress().toLowerCase().startsWith("http")){ + url.append(receiveApp.getInterfaceAddress()); + } url.append(receiveApi.getDestinationAddress()); if (querys != null) { url.append("?"); @@ -1746,24 +1856,24 @@ public class SysApplicationServiceImpl extends BaseService a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); - Map headers = new HashMap<>(); - if(receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())){ - JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); - if(jsonArray != null && jsonArray.size() > 0){ - for (int i = 0; i < jsonArray.size(); i++) { - JSONObject object = jsonArray.getJSONObject(i); - headers.put(object.getString("parameterName"), object.getString("example")); - } - } - } - if (headerMap != null && headerMap.size() > 0) { - for (Map.Entry entry : headerMap.entrySet()) { - if (!a.contains(entry.getKey())) { - headers.put(entry.getKey(), entry.getValue()); - } - } - } + //List a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + //Map headers = new HashMap<>(); + //if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + // JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + // if (jsonArray != null && jsonArray.size() > 0) { + // for (int i = 0; i < jsonArray.size(); i++) { + // JSONObject object1 = jsonArray.getJSONObject(i); + // headers.put(object1.getString("parameterName"), object1.getString("example")); + // } + // } + //} + //if (headerMap != null && headerMap.size() > 0) { + // for (Map.Entry entry : headerMap.entrySet()) { + // if (!a.contains(entry.getKey())) { + // headers.put(entry.getKey(), entry.getValue()); + // } + // } + //} if ("POST".equals(method)) { @@ -1793,7 +1903,7 @@ public class SysApplicationServiceImpl extends BaseService 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } logger.info("保存日志结束"); if (flag) { if (JSONUtil.isTypeJSON(body.toString())) { JSONObject jsonObject = JSONObject.parseObject(body.toString()); - return BaseResult.getSuccessMessageEntity("转发成功", jsonObject); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", jsonObject); + }else { + return BaseResult.getFailureMessageEntity("转发失败", jsonObject); + } } else { - return BaseResult.getSuccessMessageEntity("转发成功", body); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", body); + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } } } else { return BaseResult.getFailureMessageEntity("转发失败", body); @@ -1852,7 +1985,7 @@ public class SysApplicationServiceImpl extends BaseService 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } logger.info("保存日志结束"); if (flag) { - return BaseResult.getSuccessMessageEntity("转发成功", body); + if (JSONUtil.isTypeJSON(body.toString())) { + JSONObject jsonObject = JSONObject.parseObject(body.toString()); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", jsonObject); + }else { + return BaseResult.getFailureMessageEntity("转发失败", jsonObject); + } + } else { + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", body); + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } } else { return BaseResult.getFailureMessageEntity("转发失败", body); } } } + @Override + @DSTransactional() + public JsonResultEntity externalCallInterfaceResend(SysMessageManageLogEntity resendLogEntity) { + + JSONObject objectSourceData = JSON.parseObject(resendLogEntity.getSourceData()); + JSONObject headerObject = objectSourceData.getJSONObject("header"); + if (headerObject == null || headerObject.equals("")) { + return BaseResult.getFailureMessageEntity("传入源数据为空"); + } + JSONObject bodyObject = objectSourceData.getJSONObject("body"); + //将请求头转换为map + Map oldheaderMap = new HashMap<>(); + Iterator it = headerObject.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry entry = (Map.Entry) it.next(); + oldheaderMap.put(entry.getKey(), entry.getValue()); + } + + String oldId = resendLogEntity.getId(); + String oldbodys = bodyObject.toString(); + String oldquerys = ""; + //应用key + String publicKey = headerObject.getString("publickey"); + //应用密钥 + String secretKey = headerObject.getString("secretkey"); + //appId + String appId = headerObject.getString("appid"); + //apiCode + String apiCode = headerObject.getString("apicode"); + String ip = headerObject.getString("x-real-ip"); + if (publicKey == null || "".equals(publicKey)) { + return BaseResult.getFailureMessageEntity("请先传递公钥"); + } + if (secretKey == null || "".equals(secretKey)) { + return BaseResult.getFailureMessageEntity("请先传递密钥"); + } + if (appId == null || "".equals(appId)) { + return BaseResult.getFailureMessageEntity("请先传递接收方应用"); + } + if (apiCode == null || "".equals(apiCode)) { + return BaseResult.getFailureMessageEntity("请先传递发送接口"); + } + + logger.info("请求参数:publicKey:【" + publicKey + "】secretKey:【" + secretKey + "】appId:【" + appId + "】apiCode:【" + apiCode); + //根据请求a应用的公钥、密钥是否能查找到一条数据 + + SysApplicationEntity sendApp = getAppByPublicKeySecretKey(publicKey, secretKey); + if (sendApp == null) { + //saveLog(new SysApplicationEntity(), new SysApplicationEntity(), new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,"公钥、密钥错误"); + return BaseResult.getFailureMessageEntity("公钥、密钥错误,请联系管理员"); + } + //判断应用是否启用 + if (sendApp.getAppStatus() == null || !"1".equals(sendApp.getAppStatus())) { + return BaseResult.getFailureMessageEntity(sendApp.getName() + "应用未启用,请联系管理员"); + } + + SysApplicationEntity receiveApp = getAppByAppId(appId); + if (receiveApp == null) { + return BaseResult.getFailureMessageEntity("根据appId:" + appId + "未匹配到应用,请联系管理员"); + } + //判断应用是否启用 + if (receiveApp.getAppStatus() == null || !"1".equals(receiveApp.getAppStatus())) { + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用未启用,请联系管理员"); + } + //判断应用接口是否启用 + if (receiveApp.getInterfaceStatus() == null || !"1".equals(receiveApp.getInterfaceStatus())) { + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用接口环境未启用,请联系管理员"); + } + + SysApplicationApiEntity receiveApi = getApiByAppIdApiCode(receiveApp.getId(), apiCode); + if (receiveApi == null) { + return BaseResult.getFailureMessageEntity(receiveApp.getName() + ":" + apiCode + "未启用或者未创建"); + } + + SysApplicationApiAuthEntity sysApplicationApiAuthEntity = getApiAuthByNameAppId(sendApp.getId(), receiveApp.getId()); + if (sysApplicationApiAuthEntity == null) { + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用权限配置错误"); + } + if (sysApplicationApiAuthEntity.getSystemAddress() != null && !"".equals(sysApplicationApiAuthEntity.getSystemAddress()) + && !sysApplicationApiAuthEntity.getSystemAddress().contains(ip)) { + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "发送应用" + receiveApp.getName() + "的ip白名单配置错误"); + } + + SysApplicationApiAuthDetailEntity sysApplicationApiAuthDetailEntity = getApiAuthDetailByAppIdApiIdTripartiteSystemId(receiveApp.getId(), receiveApi.getId(), sysApplicationApiAuthEntity.getId()); + if (sysApplicationApiAuthDetailEntity == null) { + return BaseResult.getFailureMessageEntity(receiveApi.getApiName() + "未授权给" + sendApp.getName() + ",请联系管理员"); + } + SysExtensionApiEntity sysExtensionApiEntity = new SysExtensionApiEntity(); + + + List a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + Map headers = new HashMap<>(); + if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + if (jsonArray != null && jsonArray.size() > 0) { + for (int i = 0; i < jsonArray.size(); i++) { + JSONObject object1 = jsonArray.getJSONObject(i); + headers.put(object1.getString("parameterName"), object1.getString("example")); + } + } + } + if (oldheaderMap != null && oldheaderMap.size() > 0) { + for (Map.Entry entry : oldheaderMap.entrySet()) { + if (!a.contains(entry.getKey())) { + headers.put(entry.getKey(), entry.getValue()); + } + } + } + + sysExtensionApiEntity.setSendApp(sendApp); + sysExtensionApiEntity.setReceiveApp(receiveApp); + sysExtensionApiEntity.setReceiveApi(receiveApi); + sysExtensionApiEntity.setHeaders(headers); + sysExtensionApiEntity.setQuerys(oldquerys); + sysExtensionApiEntity.setBodys(oldbodys); + Method[] methods = null; + Object object = null; + + // 判断是否有内部api 是否扩展api 1、启用 2、停用 + if (receiveApi.getExtensionApi() != null && "1".equals(receiveApi.getExtensionApi()) + && receiveApi.getBeanName() != null && !"".equals(receiveApi.getBeanName()) + && receiveApi.getFunName() != null && !"".equals(receiveApi.getFunName()) + ) { + //获取类 + try { + object = ApplicationContextUtil.getBeanByName(receiveApi.getBeanName()); + } catch (SecurityException e) { + + } + //获取类下面的方法 + methods = object.getClass().getMethods(); + if (methods == null || methods.length == 0) { + return BaseResult.getFailureMessageEntity("未找到内部方法,请联系管理员"); + } + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim())) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + sysExtensionApiEntity = (SysExtensionApiEntity) m.invoke(object, sysExtensionApiEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + break; + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("内部方法执行错误,请联系管理员"); + } + } + } + } + + } + headers = sysExtensionApiEntity.getHeaders(); + String querys = sysExtensionApiEntity.getQuerys(); + String bodys = sysExtensionApiEntity.getBodys(); + //设置参数获取参数 + StringBuffer url = new StringBuffer(); + if(!receiveApi.getDestinationAddress().toLowerCase().startsWith("http")){ + url.append(receiveApp.getInterfaceAddress()); + } + url.append(receiveApi.getDestinationAddress()); + if (querys != null) { + url.append("?"); + url.append(querys); + } + Integer outTime = 6000; + if (receiveApi.getTimeoutPeriod() != null && !"".equals(receiveApi.getTimeoutPeriod())) { + outTime = Integer.valueOf(receiveApi.getTimeoutPeriod()); + } + //1、POST 2、GET + String method = "POST"; + if ("2".equals(receiveApi.getRequestMethod())) { + method = "GET"; + } + //List a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + //Map headers = new HashMap<>(); + //if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + // JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + // if (jsonArray != null && jsonArray.size() > 0) { + // for (int i = 0; i < jsonArray.size(); i++) { + // JSONObject object1 = jsonArray.getJSONObject(i); + // headers.put(object1.getString("parameterName"), object1.getString("example")); + // } + // } + //} + //if (headerMap != null && headerMap.size() > 0) { + // for (Map.Entry entry : headerMap.entrySet()) { + // if (!a.contains(entry.getKey())) { + // headers.put(entry.getKey(), entry.getValue()); + // } + // } + //} + + + if ("POST".equals(method)) { + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpPost post = new HttpPost(url.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(outTime).build(); + post.setConfig(requestConfig);//设置请求参数【超时时间】 + + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + post.setHeader(key, headers.get(key)); + } + } + StringBuilder body = new StringBuilder(); + boolean flag = true; + try { + if (bodys != null && !"".equals(bodys)) { + ByteArrayEntity entity = new ByteArrayEntity(bodys.getBytes("UTF-8")); + entity.setContentType("application/json"); + post.setEntity(entity); + } + response = closeableHttpClient.execute(post); + + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body.append(EntityUtils.toString(entity,"UTF-8")); + } + flag = true; + logger.info("返回结果:" + body); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + body.append(e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + + } + logger.info("保存日志开始"); + //重写saveLog方法,利用他原有逻辑判断重推结果,根据重推结果,设置该条日志的状态 + SysMessageManageLogEntity sysMessageManageLogEntity = updateLog(sendApp, receiveApp, receiveApi, oldbodys,bodys, oldheaderMap,headers, headers, oldquerys,querys, body.toString(),true,null,oldId); + if (methods != null && methods.length > 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } + logger.info("保存日志结束"); + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JSONObject jsonObject = JSONObject.parseObject(body.toString()); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("重推成功", jsonObject); + }else { + return BaseResult.getSuccessMessageEntity("重推失败", jsonObject); + } + } else { + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("重推成功", body); + }else { + return BaseResult.getSuccessMessageEntity("重推失败", body); + } + } + } else { + return BaseResult.getSuccessMessageEntity("重推失败", body); + } + + } else {//GET + + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpGet get = new HttpGet(url.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(outTime).build(); + get.setConfig(requestConfig);//设置请求参数【超时时间】 + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + get.setHeader(key, headers.get(key)); + } + } + StringBuilder body = new StringBuilder(); + + boolean flag = true; + try { + response = closeableHttpClient.execute(get); + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body.append(EntityUtils.toString(entity,"UTF-8")); + } + flag = true; + logger.info("返回结果:" + body); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + body.append(e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + logger.info("保存日志开始"); + SysMessageManageLogEntity sysMessageManageLogEntity = updateLog(sendApp, receiveApp, receiveApi, oldbodys,bodys, oldheaderMap,headers, headers, oldquerys,querys, body.toString(), true,null,oldId); + if (methods != null && methods.length > 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } + logger.info("保存日志结束"); + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JSONObject jsonObject = JSONObject.parseObject(body.toString()); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("重推成功", jsonObject); + }else { + return BaseResult.getSuccessMessageEntity("重推失败", jsonObject); + } + } else { + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("重推成功", body); + }else { + return BaseResult.getSuccessMessageEntity("重推失败", body); + } + } + } else { + return BaseResult.getSuccessMessageEntity("重推失败", body); + } + } + } + private SysApplicationApiAuthDetailEntity getApiAuthDetailByAppIdApiIdTripartiteSystemId(String appId, String apiId, String tripartiteSystemId) { String str = "appId" + appId + "apiId" + apiId + "tripartiteSystemId" + tripartiteSystemId; Object o = applicationCache.get("4", str); @@ -1894,6 +2419,23 @@ public class SysApplicationServiceImpl extends BaseService -1) // 从子目录到父目录排序,确保先删除子目录 + .forEach(p -> { + try { + Files.delete(p); + } catch (IOException e) { + System.err.println("Error when deleting file: " + p.toString()); + e.printStackTrace(); + } + }); + } + } + private SysApplicationApiAuthEntity getApiAuthByNameAppId(String name, String appId) { String str = "name" + name + "appId" + appId; Object o = applicationCache.get("3", str); @@ -1944,12 +2486,12 @@ public class SysApplicationServiceImpl extends BaseService oldheaderMap,Map headerMap, - Map headers, - String oldquerys,String querys, - String body,boolean flag) { + private SysMessageManageLogEntity saveLog(SysApplicationEntity sendApp, SysApplicationEntity receiveApp, SysApplicationApiEntity receiveApi, + String oldbodys,String bodys, + Map oldheaderMap,Map headerMap, + Map headers, + String oldquerys, String querys, + String body, boolean flag,String msg) { SysMessageManageLogEntity sysMessageManageLogEntity = new SysMessageManageLogEntity(); //messageManageId 消息主表主键 //theme 消息主题 @@ -1957,7 +2499,7 @@ public class SysApplicationServiceImpl extends BaseService st = Arrays.asList(new String[]{"8000060000"}); - //{"traceId":"E-O.hzhhsp88.1008-20240429175201-54231d","errorDescription":"success","dataId":"662f6dc22cf56a00010643c7","extraData":"662f6dc22cf56a00010643ce","errorMessage":"OK","errorCode":0} - List fx = Arrays.asList(new String[]{"800009"}); - //{"orderNo":"DB1003108862178","ErrorCode":"","ResultString":"success","ResultInt":0} - List rs = Arrays.asList(new String[]{"8000080005", "8000080000", "8000080002", "8000080004"}); - //{"status":"success","data":"[{\\"pk_corp\\":\\"1015\\",\\"unitcode\\":\\"3401\\",\\"unitname\\":\\"hjx建设银行有限公司\\",\\"createdate\\":\\"2023-01-01\\",\\"deptattr\\":\\"1\\",\\"deptname\\":\\"API新增部门02\\",\\"deptcode\\":\\"DEV02\\",\\"pk_deptdoc\\":\\"1015A210000000001QJ7\\"}]","taskNumber":"202309110119"} - List ss = Arrays.asList(new String[]{"8000160014", "8000160015", "8000160016", "8000160017", "8000160021", "8000160022", "8000160023", "8000160018", "8000160019", "8000160020", "8000160025", "8000160026", "8000160027", "8000160029", "8000160030"}); - if(!flag){ + if(receiveApp.getAppType() != null && "4".equals(receiveApp.getAppType())){//宁波银行 + JSONObject jsonObject1 = JSONObject.parseObject(body); + String retCode = jsonObject1.getString("retCode"); + if(retCode != null && "0000".equals(retCode)){ + JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("data")); + String fileBytes = jsonObject2.getString("fileBytes"); + if(fileBytes != null && !"".equals(fileBytes)){ + jsonObject2.put("fileBytes",""); + jsonObject1.put("data",jsonObject2); + sysMessageManageLogEntity.setReturnData(jsonObject1.toJSONString());//返回信息 + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + + + //校验返回 + if (!flag) { sysMessageManageLogEntity.setStatus("4");//返回信息 - sysMessageManageLogEntity.setRemark("API未授权,请联系管理员");//返回信息 - }else if (st.contains(receiveApi.getApiCode().toString())) { - if (JSONUtil.isTypeJSON(body)) { - JSONObject cheackdatas = JSONObject.parseObject(body); - String checkdata = cheackdatas.getString("Success"); - if(checkdata != null && "true".equals(checkdata)){ - sysMessageManageLogEntity.setStatus("3");//返回信息 - sysMessageManageLogEntity.setRemark("成功");//返回信息 - }else { - sysMessageManageLogEntity.setStatus("4");//返回信息 - sysMessageManageLogEntity.setRemark(cheackdatas.getString("ResMsg"));//返回信息 - - } - } - } else if (rs.contains(receiveApi.getApiCode().toString())) { - if (JSONUtil.isTypeJSON(body)) { - JSONObject cheackdatas = JSONObject.parseObject(body); - String checkdata = cheackdatas.getString("ResultInt"); - if(checkdata != null && "0".equals(checkdata)){ - sysMessageManageLogEntity.setStatus("3");//返回信息 - sysMessageManageLogEntity.setRemark("成功");//返回信息 - - }else { - sysMessageManageLogEntity.setStatus("4");//返回信息 - sysMessageManageLogEntity.setRemark(cheackdatas.getString("ResultString"));//返回信息 - } - } - } else if (fx.contains(receiveApp.getAppId())) { - if (JSONUtil.isTypeJSON(body)) { - JSONObject cheackdatas = JSONObject.parseObject(body); - String checkdata = cheackdatas.getString("errorMessage"); - if(checkdata != null && ("success".equals(checkdata) || "OK".equals(checkdata))){ - sysMessageManageLogEntity.setStatus("3");//返回信息 - sysMessageManageLogEntity.setRemark("成功");//返回信息 - - }else { - sysMessageManageLogEntity.setStatus("4");//返回信息 - sysMessageManageLogEntity.setRemark(cheackdatas.getString("errorMessage"));//返回信息 - } - } - } else if (ss.contains(receiveApi.getApiCode().toString())) { - if (JSONUtil.isTypeJSON(body)) { - JSONObject cheackdatas = JSONObject.parseObject(body); - String checkdata = cheackdatas.getString("status"); - if(checkdata != null && "success".equals(checkdata)){ - sysMessageManageLogEntity.setStatus("3");//返回信息 - sysMessageManageLogEntity.setRemark("成功");//返回信息 - - }else { - sysMessageManageLogEntity.setStatus("4");//返回信息 - sysMessageManageLogEntity.setRemark(cheackdatas.getString("errormsg"));//返回信息 - } - } + sysMessageManageLogEntity.setRemark(msg);//返回信息 } else { - sysMessageManageLogEntity.setStatus("3");//返回信息 - sysMessageManageLogEntity.setRemark("成功");//返回信息 + if (receiveApi.getReturnSuccessField() != null && !"".equals(receiveApi.getReturnSuccessField()) + && receiveApi.getReturnSuccessValue() != null && !"".equals(receiveApi.getReturnSuccessValue())) { + if (JSONUtil.isTypeJSON(body)) { + JSONObject cheackdatas = JSONObject.parseObject(body); + JSONObject datas = JSONObject.parseObject(body); + String checkdata = cheackdatas.getString(receiveApi.getReturnSuccessField()); + if (checkdata != null && receiveApi.getReturnSuccessValue().equals(checkdata)) { + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else if(receiveApi.getReturnSuccessValue().equals("not null") && checkdata != null){ + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else { + String fieldname = receiveApi.getReturnSuccessField(); + if(fieldname.contains(".")){ + String[] fileds = fieldname.split("\\."); + boolean flags = false; + for (int i = 0; i < fileds.length; i++) { + if (JSONUtil.isTypeJSON(datas.getString(fileds[i]))) { + datas = datas.getJSONObject(fileds[i]); + if(fileds.length-2 == i ){ + String a = datas.getString(fileds[i+1]); + if (a != null && receiveApi.getReturnSuccessValue().equals(a)) { + flags = true; + break; + }else if(receiveApi.getReturnSuccessValue().equals("not null") && a != null){ + flags = true; + break; + }else { + break; + } + } + } + } + if(flags){ + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误");//返回信息 + } + } + }else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误");//返回信息 + } + } + } + } else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + sysMessageManageLogEntity.setRemark("接口调用失败,返回格式错误,不是JSON");//返回信息 + } + } else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + if (JSONUtil.isTypeJSON(body)) { + JSONObject cheackdatas = JSONObject.parseObject(body); + String checkdata = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,api返回信息字段未配置,返回信息如下:" + checkdata);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回格式错误,不是JSON");//返回信息 + } + } else { + sysMessageManageLogEntity.setRemark("接口调用失败");//返回信息 + } + } } //remark 备注 sysMessageManageLogEntity.setErrorStatus("2");//返回信息 @@ -2049,6 +2638,162 @@ public class SysApplicationServiceImpl extends BaseService doEsbTask(sysMessageManageLogEntity)); + return sysMessageManageLogEntity; + } + + private SysMessageManageLogEntity updateLog(SysApplicationEntity sendApp, SysApplicationEntity receiveApp, SysApplicationApiEntity receiveApi, + String oldbodys,String bodys, + Map oldheaderMap,Map headerMap, + Map headers, + String oldquerys, String querys, + String body, boolean flag,String msg,String oldId) { + SysMessageManageLogEntity sysMessageManageLogEntity = new SysMessageManageLogEntity(); + //messageManageId 消息主表主键 + //theme 消息主题 + //messageCode 消息编码 + //sendApp + sysMessageManageLogEntity.setSendApp(sendApp.getId());//发送者应用 + //sendApi 发送者 + sysMessageManageLogEntity.setReceiveCode(receiveApi.getApiCode() != null ? receiveApi.getApiCode().toString() : null);//接收者编码 + sysMessageManageLogEntity.setReceiveApp(receiveApp.getId());//接收者应用 + sysMessageManageLogEntity.setReceiveApi(receiveApi.getId());//接收者 + JSONObject jsonObject = new JSONObject(); + jsonObject.put("body", oldbodys); + jsonObject.put("header", oldheaderMap); + jsonObject.put("querys", oldquerys); + sysMessageManageLogEntity.setSourceData(jsonObject.toString());//源数据 + JSONObject send = new JSONObject(); + send.put("body", bodys); + send.put("header", headers); + send.put("querys", querys); + sysMessageManageLogEntity.setTargetData(send.toString());//目标data + if(receiveApp.getAppType() != null && "4".equals(receiveApp.getAppType())){//宁波银行 + JSONObject jsonObject1 = JSONObject.parseObject(body); + String retCode = jsonObject1.getString("retCode"); + if(retCode != null && "0000".equals(retCode)){ + JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("data")); + String fileBytes = jsonObject2.getString("fileBytes"); + if(fileBytes != null && !"".equals(fileBytes)){ + jsonObject2.put("fileBytes",""); + jsonObject1.put("data",jsonObject2); + sysMessageManageLogEntity.setReturnData(jsonObject1.toJSONString());//返回信息 + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + }else { + sysMessageManageLogEntity.setReturnData(body);//返回信息 + } + + + //校验返回 + if (!flag) { + sysMessageManageLogEntity.setStatus("4");//返回信息 + sysMessageManageLogEntity.setRemark(msg);//返回信息 + } else { + if (receiveApi.getReturnSuccessField() != null && !"".equals(receiveApi.getReturnSuccessField()) + && receiveApi.getReturnSuccessValue() != null && !"".equals(receiveApi.getReturnSuccessValue())) { + if (JSONUtil.isTypeJSON(body)) { + JSONObject cheackdatas = JSONObject.parseObject(body); + JSONObject datas = JSONObject.parseObject(body); + String checkdata = cheackdatas.getString(receiveApi.getReturnSuccessField()); + if (checkdata != null && receiveApi.getReturnSuccessValue().equals(checkdata)) { + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else if(receiveApi.getReturnSuccessValue().equals("not null") && checkdata != null){ + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else { + String fieldname = receiveApi.getReturnSuccessField(); + if(fieldname.contains(".")){ + String[] fileds = fieldname.split("\\."); + boolean flags = false; + for (int i = 0; i < fileds.length; i++) { + if (JSONUtil.isTypeJSON(datas.getString(fileds[i]))) { + datas = datas.getJSONObject(fileds[i]); + if(fileds.length-2 == i ){ + String a = datas.getString(fileds[i+1]); + if (a != null && receiveApi.getReturnSuccessValue().equals(a)) { + flags = true; + break; + }else if(receiveApi.getReturnSuccessValue().equals("not null") && a != null){ + flags = true; + break; + }else { + break; + } + } + } + } + if(flags){ + sysMessageManageLogEntity.setStatus("3");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用成功,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用成功");//返回信息 + } + }else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误");//返回信息 + } + } + + }else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + String returnMsg = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误,返回信息如下:" + returnMsg);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回值错误");//返回信息 + } + } + } + } else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + sysMessageManageLogEntity.setRemark("接口调用失败,返回格式错误,不是JSON");//返回信息 + } + } else { + sysMessageManageLogEntity.setStatus("4");//返回信息 + if (receiveApi.getReturnMsg() != null && !"".equals(receiveApi.getReturnMsg())) { + if (JSONUtil.isTypeJSON(body)) { + JSONObject cheackdatas = JSONObject.parseObject(body); + String checkdata = cheackdatas.getString(receiveApi.getReturnMsg()); + sysMessageManageLogEntity.setRemark("接口调用失败,api返回信息字段未配置,返回信息如下:" + checkdata);//返回信息 + } else { + sysMessageManageLogEntity.setRemark("接口调用失败,返回格式错误,不是JSON");//返回信息 + } + } else { + sysMessageManageLogEntity.setRemark("接口调用失败");//返回信息 + } + } + } + //remark 备注 + sysMessageManageLogEntity.setErrorStatus("2");//返回信息 + sysMessageManageLogEntity.setId(oldId); + sysMessageManageLogEntity.setCreate_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + sysMessageManageLogEntity.setModify_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + //sysMessageManageLogEntity.setCreate_time(new Date()); + sysMessageManageLogEntity.setModify_time(new Date()); + sysMessageManageLogEntity.setSts("Y"); + taskExecutor.execute(() -> doEsbTaskNew(sysMessageManageLogEntity)); + return sysMessageManageLogEntity; } /** @@ -2061,6 +2806,9 @@ public class SysApplicationServiceImpl extends BaseService ids = sysApplicationApiDao.queryBaseName(entity); return BaseResult.getSuccessMessageEntity("查询数据成功", ids); } + /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity @@ -2161,4 +2910,552 @@ public class SysApplicationServiceImpl extends BaseService list = sysApplicationDao.queryByLike(entity); return BaseResult.getSuccessMessageEntity("查询数据成功", list); } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询应用插件列表和api + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public JsonResultEntity queryPlugAndApi(JSONObject jsonObject) { + SysApplicationPluginEntity entity = getData("jsonStr", jsonObject, SysApplicationPluginEntity.class); + if (entity == null || entity.getAppId() == null || "".equals(entity.getAppId()) || entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + SysApplicationPluginEntity sysApplicationPluginEntity = new SysApplicationPluginEntity(); + sysApplicationPluginEntity.setAppId(entity.getAppId()); + List sysApplicationPluginEntities = sysApplicationPluginDao.queryBase(sysApplicationPluginEntity); + + SysApplicationApiEntity sysApplicationApiEntity = sysApplicationApiDao.get(entity.getId()); + JSONObject jsonObject1 = new JSONObject(); + jsonObject1.put("app",sysApplicationPluginEntities); + jsonObject1.put("api",sysApplicationApiEntity); + return BaseResult.getSuccessMessageEntity("查询数据成功", jsonObject1); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本查询分页接口 + * @Date 2:09 下午 2023/9/23 + **/ + @Override + public JsonResultEntity queryAppScriptPage(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List sysApplicationScriptEntities = sysApplicationScriptDao.queryByLike(entity); + PageInfo pageInfo = new PageInfo(sysApplicationScriptEntities); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本查询接口 + * @Date 2:09 下午 2023/9/23 + **/ + @Override + public JsonResultEntity queryAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + List sysApplicationScriptEntities = sysApplicationScriptDao.queryByLike(entity); + return BaseResult.getSuccessMessageEntity("查询数据成功", sysApplicationScriptEntities); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本修改接口 + * @Date 2:09 下午 2023/9/23 + **/ + @Override + public JsonResultEntity saveAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getScriptCode() == null || "".equals(entity.getScriptCode())) { + return BaseResult.getFailureMessageEntity("请先输入脚本编号"); + } + if (entity.getScriptData() == null || "".equals(entity.getScriptData())) { + return BaseResult.getFailureMessageEntity("请先输入脚本内容"); + } + entity.setCreate(); + sysApplicationScriptDao.save(entity); + return BaseResult.getSuccessMessageEntity("保存脚本成功", entity.getId()); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本修改接口 + * @Date 2:09 下午 2023/9/23 + **/ + @Override + public JsonResultEntity updateAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getScriptCode() == null || "".equals(entity.getScriptCode())) { + return BaseResult.getFailureMessageEntity("请先输入脚本编号"); + } + if (entity.getScriptData() == null || "".equals(entity.getScriptData())) { + return BaseResult.getFailureMessageEntity("请先输入脚本内容"); + } + entity.setUpdate(); + sysApplicationScriptDao.update(entity); + return BaseResult.getSuccessMessageEntity("修改脚本成功"); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本删除接口 + * @Date 2:10 下午 2023/9/23 + **/ + @Override + public JsonResultEntity deleteAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity(); + mdmModuleDistributeEntity.setAddScript(entity.getId()); + mdmModuleDistributeEntity.setUpdateScript(entity.getId()); + mdmModuleDistributeEntity.setDeleteScript(entity.getId()); + Integer a = mdmModuleDistributeDao.queryCountUse(mdmModuleDistributeEntity); + if(a > 0){ + return BaseResult.getFailureMessageEntity("脚本已经被使用,请先取消关联"); + } + entity.setUpdate(); + sysApplicationScriptDao.logicRemoveMultiCondition(entity); + return BaseResult.getSuccessMessageEntity("删除脚本成功"); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 获取脚本接口 + * @Date 2:10 下午 2023/9/23 + **/ + @Override + public JsonResultEntity getAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + //查询接口 + SysApplicationScriptEntity sysApplicationScriptEntity = sysApplicationScriptDao.get(entity.getId()); + return BaseResult.getSuccessMessageEntity("查询数据成功", sysApplicationScriptEntity); + } + + /** + * @param object + * @return + * @Author lvleigang + * @Description 脚本启用停用接口 + * @Date 2:10 下午 2023/9/23 + **/ + @Override + public JsonResultEntity enableOrDisableAppScript(JSONObject object) { + SysApplicationScriptEntity entity = getData("jsonStr", object, SysApplicationScriptEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getScriptStatus() == null || "".equals(entity.getScriptStatus())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + sysApplicationScriptDao.update(entity); + if ("1".equals(entity.getScriptStatus())) {// 1启用2停用 + return BaseResult.getSuccessMessageEntity("启用成功"); + } else { + return BaseResult.getSuccessMessageEntity("停用成功"); + } + } + + @Override + public JsonResultEntity externalCallInterfaceToESB(ServletRequest servletRequest, ServletResponse servletResponse) { + + //例如:A应用发送数据到中台,中台转发到B应用 + HttpServletRequest request = (HttpServletRequest) servletRequest; + String oldbodys = ServletUtil.getBody(servletRequest); + Map oldheaderMap = ServletUtil.getHeaderMap(request); + String oldquerys = request.getQueryString(); + //应用key + String publicKey = request.getHeader("publicKey"); + //应用密钥 + String secretKey = request.getHeader("secretKey"); + //appId + String appId = request.getHeader("appId"); + //apiCode + String apiCode = request.getHeader("apiCode"); + + String ip = IPHelper.getIpAddr(request); + if (publicKey == null || "".equals(publicKey)) { + return BaseResult.getFailureMessageEntity("请先传递公钥"); + } + if (secretKey == null || "".equals(secretKey)) { + return BaseResult.getFailureMessageEntity("请先传递密钥"); + } + if (appId == null || "".equals(appId)) { + return BaseResult.getFailureMessageEntity("请先传递接收方应用"); + } + if (apiCode == null || "".equals(apiCode)) { + return BaseResult.getFailureMessageEntity("请先传递发送接口"); + } + + logger.info("请求参数:publicKey:【" + publicKey + "】secretKey:【" + secretKey + "】appId:【" + appId + "】apiCode:【" + apiCode); + //根据请求a应用的公钥、密钥是否能查找到一条数据 + + SysApplicationEntity sendApp = getAppByPublicKeySecretKey(publicKey, secretKey); + if (sendApp == null) { + //saveLog(new SysApplicationEntity(), new SysApplicationEntity(), new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,"公钥、密钥错误"); + return BaseResult.getFailureMessageEntity("公钥、密钥错误,请联系管理员"); + } + //判断应用是否启用 + if (sendApp.getAppStatus() == null || !"1".equals(sendApp.getAppStatus())) { + saveLog(sendApp, new SysApplicationEntity(), new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,sendApp.getName() + "应用未启用"); + return BaseResult.getFailureMessageEntity(sendApp.getName() + "应用未启用,请联系管理员"); + } + + + SysApplicationEntity receiveApp = getAppByAppId(appId); + if (receiveApp == null) { + saveLog(sendApp, new SysApplicationEntity(), new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,"根据appId:" + appId + "未匹配到应用"); + return BaseResult.getFailureMessageEntity("根据appId:" + appId + "未匹配到应用,请联系管理员"); + } + //判断应用是否启用 + if (receiveApp.getAppStatus() == null || !"1".equals(receiveApp.getAppStatus())) { + saveLog(sendApp, receiveApp, new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApp.getName() + "应用未启用" ); + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用未启用,请联系管理员"); + } + //判断应用接口是否启用 + if (receiveApp.getInterfaceStatus() == null || !"1".equals(receiveApp.getInterfaceStatus())) { + saveLog(sendApp, receiveApp, new SysApplicationApiEntity(), oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApp.getName() + "应用接口环境未启用" ); + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用接口环境未启用,请联系管理员"); + } + + SysApplicationApiEntity receiveApi = getApiByAppIdApiCode(receiveApp.getId(), apiCode); + if (receiveApi == null) { + saveLog(sendApp, receiveApp, receiveApi, oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApp.getName() + ":" + apiCode + "未启用或者未创建" ); + return BaseResult.getFailureMessageEntity(receiveApp.getName() + ":" + apiCode + "未启用或者未创建"); + } + + SysApplicationApiAuthEntity sysApplicationApiAuthEntity = getApiAuthByNameAppId(sendApp.getId(), receiveApp.getId()); + if (sysApplicationApiAuthEntity == null) { + saveLog(sendApp, receiveApp, receiveApi, oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApp.getName() + "应用权限配置错误" ); + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "应用权限配置错误"); + } + if (sysApplicationApiAuthEntity.getSystemAddress() != null && !"".equals(sysApplicationApiAuthEntity.getSystemAddress()) + && !sysApplicationApiAuthEntity.getSystemAddress().contains(ip)) { + saveLog(sendApp, receiveApp, receiveApi, oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApp.getName() + "发送应用" + receiveApp.getName() + "的ip白名单配置错误" ); + return BaseResult.getFailureMessageEntity(receiveApp.getName() + "发送应用" + receiveApp.getName() + "的ip白名单配置错误"); + } + + SysApplicationApiAuthDetailEntity sysApplicationApiAuthDetailEntity = getApiAuthDetailByAppIdApiIdTripartiteSystemId(receiveApp.getId(), receiveApi.getId(), sysApplicationApiAuthEntity.getId()); + if (sysApplicationApiAuthDetailEntity == null) { + saveLog(sendApp, receiveApp, receiveApi, oldbodys, null, oldheaderMap, null, null, oldquerys, null, null, false,receiveApi.getApiName() + "未授权给" + sendApp.getName() ); + return BaseResult.getFailureMessageEntity(receiveApi.getApiName() + "未授权给" + sendApp.getName() + ",请联系管理员"); + } + SysExtensionApiEntity sysExtensionApiEntity = new SysExtensionApiEntity(); + + + List a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + Map headers = new HashMap<>(); + if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + if (jsonArray != null && jsonArray.size() > 0) { + for (int i = 0; i < jsonArray.size(); i++) { + JSONObject object1 = jsonArray.getJSONObject(i); + headers.put(object1.getString("parameterName"), object1.getString("example")); + } + } + } + if (oldheaderMap != null && oldheaderMap.size() > 0) { + for (Map.Entry entry : oldheaderMap.entrySet()) { + if (!a.contains(entry.getKey())) { + headers.put(entry.getKey(), entry.getValue()); + } + } + } + + + + sysExtensionApiEntity.setSendApp(sendApp); + sysExtensionApiEntity.setReceiveApp(receiveApp); + sysExtensionApiEntity.setReceiveApi(receiveApi); + sysExtensionApiEntity.setHeaders(headers); + sysExtensionApiEntity.setQuerys(oldquerys); + sysExtensionApiEntity.setBodys(oldbodys); + Method[] methods = null; + Object object = null; + + + + + // 判断是否有内部api 是否扩展api 1、启用 2、停用 + if (receiveApi.getExtensionApi() != null && "1".equals(receiveApi.getExtensionApi()) + && receiveApi.getBeanName() != null && !"".equals(receiveApi.getBeanName()) + && receiveApi.getFunName() != null && !"".equals(receiveApi.getFunName()) + ) { + //获取类 + try { + object = ApplicationContextUtil.getBeanByName(receiveApi.getBeanName()); + } catch (SecurityException e) { + + } + //获取类下面的方法 + methods = object.getClass().getMethods(); + if (methods == null || methods.length == 0) { + return BaseResult.getFailureMessageEntity("未找到内部方法,请联系管理员"); + } + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim())) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + sysExtensionApiEntity = (SysExtensionApiEntity) m.invoke(object, sysExtensionApiEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("内部方法执行错误,请联系管理员"); + } + } + } + } + + } + headers = sysExtensionApiEntity.getHeaders(); + String querys = sysExtensionApiEntity.getQuerys(); + + byte[] byteBodys = sysExtensionApiEntity.getByteBodys(); + //设置参数获取参数 + StringBuffer url = new StringBuffer(); + if(!receiveApi.getDestinationAddress().toLowerCase().startsWith("http")){ + url.append(receiveApp.getInterfaceAddress()); + } + url.append(receiveApi.getDestinationAddress()); + if (querys != null) { + url.append("?"); + url.append(querys); + } + Integer outTime = 6000; + if (receiveApi.getTimeoutPeriod() != null && !"".equals(receiveApi.getTimeoutPeriod())) { + outTime = Integer.valueOf(receiveApi.getTimeoutPeriod()); + } + //1、POST 2、GET + String method = "POST"; + if ("2".equals(receiveApi.getRequestMethod())) { + method = "GET"; + } + //List a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); + //Map headers = new HashMap<>(); + //if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { + // JSONArray jsonArray = JSONArray.parseArray(receiveApi.getHeaderIn()); + // if (jsonArray != null && jsonArray.size() > 0) { + // for (int i = 0; i < jsonArray.size(); i++) { + // JSONObject object1 = jsonArray.getJSONObject(i); + // headers.put(object1.getString("parameterName"), object1.getString("example")); + // } + // } + //} + //if (headerMap != null && headerMap.size() > 0) { + // for (Map.Entry entry : headerMap.entrySet()) { + // if (!a.contains(entry.getKey())) { + // headers.put(entry.getKey(), entry.getValue()); + // } + // } + //} + + + if ("POST".equals(method)) { + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpPost post = new HttpPost(url.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(outTime).build(); + post.setConfig(requestConfig);//设置请求参数【超时时间】 + + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + post.setHeader(key, headers.get(key)); + } + } + byte[] body = null; + boolean flag = true; + try { + if (byteBodys != null && !"".equals(byteBodys)) { + ByteArrayEntity entity = new ByteArrayEntity(byteBodys); + entity.setContentType("application/json"); + post.setEntity(entity); + } + response = closeableHttpClient.execute(post); + + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body = EntityUtils.toByteArray(entity); + } + flag = true; + logger.info("返回结果:" +Base64.getEncoder().encodeToString(body)); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + + } + logger.info("保存日志开始"); + SysMessageManageLogEntity sysMessageManageLogEntity = saveLog(sendApp, receiveApp, receiveApi, oldbodys,Base64.getEncoder().encodeToString(byteBodys) , oldheaderMap,headers, headers, oldquerys,querys, body.toString(),true,null); + if (methods != null && methods.length > 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } + logger.info("保存日志结束"); + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JSONObject jsonObject = JSONObject.parseObject(body.toString()); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", jsonObject); + }else { + return BaseResult.getFailureMessageEntity("转发失败", jsonObject); + } + } else { + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", body); + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + + } else {//GET + + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.disableCookieManagement().build(); + HttpGet get = new HttpGet(url.toString()); + CloseableHttpResponse response = null; + + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(outTime).build(); + get.setConfig(requestConfig);//设置请求参数【超时时间】 + if (headers != null && headers.size() > 0) { + for (String key : headers.keySet()) { + get.setHeader(key, headers.get(key)); + } + } + StringBuilder body = new StringBuilder(); + + boolean flag = true; + try { + response = closeableHttpClient.execute(get); + HttpEntity entity = response.getEntity(); + synchronized (lock) { + body.append(EntityUtils.toString(entity,"UTF-8")); + } + flag = true; + logger.info("返回结果:" + body); + } catch (Exception e) { + logger.error("请求错误:" + e.getMessage()); + body.append(e.getMessage()); + flag = false; + } finally { + try { + // 关闭响应对象 + if (response != null) { + response.close(); + } + // 关闭响应对象 + if (closeableHttpClient != null) { + closeableHttpClient.close(); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + logger.info("保存日志开始"); + SysMessageManageLogEntity sysMessageManageLogEntity = saveLog(sendApp, receiveApp, receiveApi, oldbodys,Base64.getEncoder().encodeToString(byteBodys) , oldheaderMap,headers, headers, oldquerys,querys, body.toString(), true,null); + if (methods != null && methods.length > 0) { + for (Method m : methods) { + if (null != m) { + if (m.getName().equals(receiveApi.getFunName().trim()+"CallBack")) { + try { + logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + m.invoke(object, sysMessageManageLogEntity); + logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + } catch (Exception e) { + logger.error("invokeException{}", e.getMessage()); + } + } + } + } + } + logger.info("保存日志结束"); + if (flag) { + if (JSONUtil.isTypeJSON(body.toString())) { + JSONObject jsonObject = JSONObject.parseObject(body.toString()); + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", jsonObject); + }else { + return BaseResult.getFailureMessageEntity("转发失败", jsonObject); + } + } else { + if(sysMessageManageLogEntity.getStatus() != null && "3".equals(sysMessageManageLogEntity.getStatus())){ + return BaseResult.getSuccessMessageEntity("转发成功", body); + }else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } + } else { + return BaseResult.getFailureMessageEntity("转发失败", body); + } + } + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java new file mode 100644 index 00000000..b20d660f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/ISysArchivesContrastDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.sysnew.archivesContrast.dao; + +import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 档案对照表数据库访问层 + * + * @author makejava + * @since 2024-05-27 16:21:36 + */ +public interface ISysArchivesContrastDao extends IBaseDao { + + SysArchivesContrastEntity getEntity(SysArchivesContrastEntity entity); +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java new file mode 100644 index 00000000..3321e62f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/dao/impl/SysArchivesContrastDaoImpl.java @@ -0,0 +1,22 @@ +package com.hzya.frame.sysnew.archivesContrast.dao.impl; + +import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity; +import com.hzya.frame.sysnew.archivesContrast.dao.ISysArchivesContrastDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 档案对照表数据库访问层 + * + * @author makejava + * @since 2024-05-27 16:21:36 + */ +@Repository(value = "SysArchivesContrastDaoImpl") +public class SysArchivesContrastDaoImpl extends MybatisGenericDao implements ISysArchivesContrastDao{ + + @Override + public SysArchivesContrastEntity getEntity(SysArchivesContrastEntity entity) { + SysArchivesContrastEntity o = (SysArchivesContrastEntity) super.selectOne(getSqlIdPrifx() + "getEntity", entity); + return o; + } +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java new file mode 100644 index 00000000..e46c9c16 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.java @@ -0,0 +1,245 @@ +package com.hzya.frame.sysnew.archivesContrast.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 档案对照实体类 + * + * @author makejava + * @since 2024-05-27 16:21:36 + */ +public class SysArchivesContrastEntity extends BaseEntity { + + /** 左应用id */ + private String leftAppId; + /** 左应用编码 */ + private String leftAppCode; + /** 左应用名称 */ + private String leftAppName; + /** 左接口ID */ + private String leftApiId; + /** 左id */ + private String leftId; + /** 左编码 */ + private String leftCode; + /** 左名称 */ + private String leftName; + /** 左手机号 */ + private String leftTel; + /** 左身份证号 */ + private String leftIc; + /** 右应用id */ + private String rightAppId; + /** 右应用编码 */ + private String rightAppCode; + /** 右应用名称 */ + private String rightAppName; + /** 右接口ID */ + private String rightApiId; + /** 右id */ + private String rightId; + /** 右编码 */ + private String rightCode; + /** 右名称 */ + private String rightName; + /** 右手机号 */ + private String rightTel; + /** 右身份证号 */ + private String rightIc; + /** 公司id */ + private String companyId; + /** 左公司 */ + private String leftOrg; + /** 右公司 */ + private String rightOrg; + /* 类型 + 1、sys_personnel_control 人员对照 + 2、sys_org_control 部门档案 + 3、sys_stock_control 存货对照 + 4、sys_merchant_control 客商辅助核算 + 5、sys_taxrate_control 税率 + 6、sys_project_control 项目辅助核算 + 7、sys_bank_control 银行类别 + 8、sys_bankaccount_control 银行账户 + 9、sys_assets_control 资产类别 + */ + private String type; + + + public String getLeftAppId() { + return leftAppId; + } + + public void setLeftAppId(String leftAppId) { + this.leftAppId = leftAppId; + } + + public String getLeftAppCode() { + return leftAppCode; + } + + public void setLeftAppCode(String leftAppCode) { + this.leftAppCode = leftAppCode; + } + + public String getLeftAppName() { + return leftAppName; + } + + public void setLeftAppName(String leftAppName) { + this.leftAppName = leftAppName; + } + + public String getLeftApiId() { + return leftApiId; + } + + public void setLeftApiId(String leftApiId) { + this.leftApiId = leftApiId; + } + + public String getLeftId() { + return leftId; + } + + public void setLeftId(String leftId) { + this.leftId = leftId; + } + + public String getLeftCode() { + return leftCode; + } + + public void setLeftCode(String leftCode) { + this.leftCode = leftCode; + } + + public String getLeftName() { + return leftName; + } + + public void setLeftName(String leftName) { + this.leftName = leftName; + } + + public String getLeftTel() { + return leftTel; + } + + public void setLeftTel(String leftTel) { + this.leftTel = leftTel; + } + + public String getLeftIc() { + return leftIc; + } + + public void setLeftIc(String leftIc) { + this.leftIc = leftIc; + } + + public String getRightAppId() { + return rightAppId; + } + + public void setRightAppId(String rightAppId) { + this.rightAppId = rightAppId; + } + + public String getRightAppCode() { + return rightAppCode; + } + + public void setRightAppCode(String rightAppCode) { + this.rightAppCode = rightAppCode; + } + + public String getRightAppName() { + return rightAppName; + } + + public void setRightAppName(String rightAppName) { + this.rightAppName = rightAppName; + } + + public String getRightApiId() { + return rightApiId; + } + + public void setRightApiId(String rightApiId) { + this.rightApiId = rightApiId; + } + + public String getRightId() { + return rightId; + } + + public void setRightId(String rightId) { + this.rightId = rightId; + } + + public String getRightCode() { + return rightCode; + } + + public void setRightCode(String rightCode) { + this.rightCode = rightCode; + } + + public String getRightName() { + return rightName; + } + + public void setRightName(String rightName) { + this.rightName = rightName; + } + + public String getRightTel() { + return rightTel; + } + + public void setRightTel(String rightTel) { + this.rightTel = rightTel; + } + + public String getRightIc() { + return rightIc; + } + + public void setRightIc(String rightIc) { + this.rightIc = rightIc; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getLeftOrg() { + return leftOrg; + } + + public void setLeftOrg(String leftOrg) { + this.leftOrg = leftOrg; + } + + public String getRightOrg() { + return rightOrg; + } + + public void setRightOrg(String rightOrg) { + this.rightOrg = rightOrg; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml new file mode 100644 index 00000000..3269e957 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/entity/SysArchivesContrastEntity.xml @@ -0,0 +1,634 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,left_app_id + ,left_app_code + ,left_app_name + ,left_api_id + ,left_id + ,left_code + ,left_name + ,left_tel + ,left_ic + ,right_app_id + ,right_app_code + ,right_app_name + ,right_api_id + ,right_id + ,right_code + ,right_name + ,right_tel + ,right_ic + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + ,left_org + ,right_org + + + + id + ,left_app_id + ,left_app_code + ,left_app_name + ,left_api_id + ,left_id + ,left_code + ,left_name + ,right_app_id + ,right_app_code + ,right_app_name + ,right_api_id + ,right_id + ,right_code + ,right_name + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + ,left_org + ,right_org + + + + + + + + + + + + + + + + + + + + + insert into + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + +( + + id , + left_app_id , + left_app_code , + left_app_name , + left_api_id , + left_id , + left_code , + left_name , + left_tel , + left_ic , + right_app_id , + right_app_code , + right_app_name , + right_api_id , + right_id , + right_code , + right_name , + right_tel , + right_ic , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + left_org , + right_org , + sts, + + )values( + + #{id} , + #{leftAppId} , + #{leftAppCode} , + #{leftAppName} , + #{leftApiId} , + #{leftId} , + #{leftCode} , + #{leftName} , + #{leftTel} , + #{leftIc} , + #{rightAppId} , + #{rightAppCode} , + #{rightAppName} , + #{rightApiId} , + #{rightId} , + #{rightCode} , + #{rightName} , + #{rightTel} , + #{rightIc} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + #{leftOrg} , + #{rightOrg} , + 'Y', + + ) + + + + insert into + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + (left_app_id, left_app_code, left_app_name, left_api_id, left_id, left_code, left_name, left_tel, left_ic, right_app_id, right_app_code, right_app_name, right_api_id, right_id, right_code, right_name, right_tel, right_ic, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, left_org, right_org, sts) + values + + (#{entity.leftAppId},#{entity.leftAppCode},#{entity.leftAppName},#{entity.leftApiId},#{entity.leftId},#{entity.leftCode},#{entity.leftName},#{entity.leftTel},#{entity.leftIc},#{entity.rightAppId},#{entity.rightAppCode},#{entity.rightAppName},#{entity.rightApiId},#{entity.rightId},#{entity.rightCode},#{entity.rightName},#{entity.rightTel},#{entity.rightIc},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.leftOrg},#{entity.rightOrg}, 'Y') + + + + + insert into + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + (left_app_id, left_app_code, left_app_name, left_api_id, left_id, left_code, left_name, left_tel, left_ic, right_app_id, right_app_code, right_app_name, right_api_id, right_id, right_code, right_name, right_tel, right_ic, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, left_org, right_org) + values + + (#{entity.leftAppId},#{entity.leftAppCode},#{entity.leftAppName},#{entity.leftApiId},#{entity.leftId},#{entity.leftCode},#{entity.leftName},#{entity.leftTel},#{entity.leftIc},#{entity.rightAppId},#{entity.rightAppCode},#{entity.rightAppName},#{entity.rightApiId},#{entity.rightId},#{entity.rightCode},#{entity.rightName},#{entity.rightTel},#{entity.rightIc},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.leftOrg},#{entity.rightOrg}) + + on duplicate key update + left_app_id = values(left_app_id), + left_app_code = values(left_app_code), + left_app_name = values(left_app_name), + left_api_id = values(left_api_id), + left_id = values(left_id), + left_code = values(left_code), + left_name = values(left_name), + left_tel = values(left_tel), + left_ic = values(left_ic), + right_app_id = values(right_app_id), + right_app_code = values(right_app_code), + right_app_name = values(right_app_name), + right_api_id = values(right_api_id), + right_id = values(right_id), + right_code = values(right_code), + right_name = values(right_name), + right_tel = values(right_tel), + right_ic = values(right_ic), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id), + left_org = values(left_org), + right_org = values(right_org) + + +update + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + set + + left_app_id = #{leftAppId}, + left_app_code = #{leftAppCode}, + left_app_name = #{leftAppName}, + left_api_id = #{leftApiId}, + left_id = #{leftId}, + left_code = #{leftCode}, + left_name = #{leftName}, + left_tel = #{leftTel}, + left_ic = #{leftIc}, + right_app_id = #{rightAppId}, + right_app_code = #{rightAppCode}, + right_app_name = #{rightAppName}, + right_api_id = #{rightApiId}, + right_id = #{rightId}, + right_code = #{rightCode}, + right_name = #{rightName}, + right_tel = #{rightTel}, + right_ic = #{rightIc}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + left_org = #{leftOrg}, + right_org = #{rightOrg}, + +where id = #{id} + + + +update + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and left_app_id = #{leftAppId} + and left_app_code = #{leftAppCode} + and left_app_name = #{leftAppName} + and left_api_id = #{leftApiId} + and left_id = #{leftId} + and left_code = #{leftCode} + and left_name = #{leftName} + and left_tel = #{leftTel} + and left_ic = #{leftIc} + and right_app_id = #{rightAppId} + and right_app_code = #{rightAppCode} + and right_app_name = #{rightAppName} + and right_api_id = #{rightApiId} + and right_id = #{rightId} + and right_code = #{rightCode} + and right_name = #{rightName} + and right_tel = #{rightTel} + and right_ic = #{rightIc} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and left_org = #{leftOrg} + and right_org = #{rightOrg} + and sts='Y' + + + + + delete from + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java similarity index 52% rename from service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java rename to service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java index 7ed1bc6d..2838b954 100644 --- a/service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/ISysArchivesContrastService.java @@ -1,67 +1,70 @@ -package com.hzya.frame.sys.dataSource.service; +package com.hzya.frame.sysnew.archivesContrast.service; import com.alibaba.fastjson.JSONObject; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; +import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity; import com.hzya.frame.basedao.service.IBaseService; import com.hzya.frame.web.entity.JsonResultEntity; /** - * 数据源表(SysDataSource)表服务接口 + * 档案对照服务接口 * * @author makejava - * @since 2023-09-05 16:07:10 + * @since 2024-05-27 16:21:36 */ -public interface ISysDataSourceService extends IBaseService{ +public interface ISysArchivesContrastService extends IBaseService{ + + /** + * @Author lvleigang + * @Description 查询档案列表分页 + * @Date 4:25 下午 2024/5/27 * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询列表 - * @Date 2:18 下午 2023/7/17 **/ - JsonResultEntity queryList(JSONObject jsonObject); + JsonResultEntity queryEntityPage(JSONObject jsonObject); + /** + * @Author lvleigang + * @Description 查询档案列表 + * @Date 4:25 下午 2024/5/27 * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询列表 - * @Date 2:18 下午 2023/7/17 - **/ - JsonResultEntity queryPage(JSONObject jsonObject); - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 获取数据 - * @Date 2:18 下午 2023/7/17 **/ JsonResultEntity queryEntity(JSONObject jsonObject); /** + * @Author lvleigang + * @Description 保存档案 + * @Date 4:25 下午 2024/5/27 * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 新增数据 - * @Date 2:18 下午 2023/7/17 **/ - JsonResultEntity addEntity(JSONObject jsonObject); + JsonResultEntity saveEntity(JSONObject jsonObject); /** + * @Author lvleigang + * @Description 获取档案 + * @Date 4:25 下午 2024/5/27 * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 修改数据 - * @Date 2:18 下午 2023/7/17 **/ - JsonResultEntity editEntity(JSONObject jsonObject); + JsonResultEntity getEntity(JSONObject jsonObject); /** + * @Author lvleigang + * @Description 修改档案 + * @Date 4:25 下午 2024/5/27 * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + JsonResultEntity updateEntity(JSONObject jsonObject); + + /** * @Author lvleigang - * @Description 删除数据 - * @Date 2:18 下午 2023/7/17 + * @Description 删除档案 + * @Date 4:25 下午 2024/5/27 + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity **/ JsonResultEntity deleteEntity(JSONObject jsonObject); - } diff --git a/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java new file mode 100644 index 00000000..94687263 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/archivesContrast/service/impl/SysArchivesContrastServiceImpl.java @@ -0,0 +1,189 @@ +package com.hzya.frame.sysnew.archivesContrast.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.sysnew.archivesContrast.entity.SysArchivesContrastEntity; +import com.hzya.frame.sysnew.archivesContrast.dao.ISysArchivesContrastDao; +import com.hzya.frame.sysnew.archivesContrast.service.ISysArchivesContrastService; +import com.hzya.frame.sysnew.user.entity.SysUserEntity; +import com.hzya.frame.sysnew.userCompany.entity.SysUserCompanyEntity; +import com.hzya.frame.sysnew.userRoles.entity.SysUserRolesEntity; +import com.hzya.frame.util.AESUtil; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.List; + +/** + * 档案对照表服务实现类 + * + * @author makejava + * @since 2024-05-27 16:21:36 + */ +@Service(value = "sysArchivesContrastService") +public class SysArchivesContrastServiceImpl extends BaseService implements ISysArchivesContrastService { + + private ISysArchivesContrastDao sysArchivesContrastDao; + + @Autowired + public void setSysArchivesContrastDao(ISysArchivesContrastDao dao) { + this.sysArchivesContrastDao = dao; + this.dao = dao; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询档案列表分页 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity queryEntityPage(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + if(entity.getType() == null || "".equals(entity.getType()) ){ + return BaseResult.getFailureMessageEntity("系统错误"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = sysArchivesContrastDao.queryByLike(entity); + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询档案列表 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity queryEntity(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + if (entity == null || entity.getType() == null || "".equals(entity.getType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + List list = sysArchivesContrastDao.queryByLike(entity); + return BaseResult.getSuccessMessageEntity("查询数据成功", list); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 保存档案 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity saveEntity(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getType() == null || "".equals(entity.getType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getLeftCode() == null || "".equals(entity.getLeftCode())) { + return BaseResult.getFailureMessageEntity("请先输入左编码"); + } + if (entity.getRightCode() == null || "".equals(entity.getRightCode())) { + return BaseResult.getFailureMessageEntity("请先输入右编码"); + } + entity.setCreate(); + entity.setSts("Y"); + //保存 + sysArchivesContrastDao.save(entity); + return BaseResult.getSuccessMessageEntity("保存档案成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取档案 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity getEntity(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getType() == null || "".equals(entity.getType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = sysArchivesContrastDao.getEntity(entity); + if (entity == null) { + return BaseResult.getFailureMessageEntity("获取档案失败"); + } + return BaseResult.getSuccessMessageEntity("获取档案成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 修改档案 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity updateEntity(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getType() == null || "".equals(entity.getType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getLeftCode() == null || "".equals(entity.getLeftCode())) { + return BaseResult.getFailureMessageEntity("请先输入左编码"); + } + if (entity.getRightCode() == null || "".equals(entity.getRightCode())) { + return BaseResult.getFailureMessageEntity("请先输入右编码"); + } + entity.setUpdate(); + //保存 + sysArchivesContrastDao.update(entity); + return BaseResult.getSuccessMessageEntity("修改档案成功", entity); + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除档案 + * @Date 4:25 下午 2024/5/27 + **/ + @Override + public JsonResultEntity deleteEntity(JSONObject jsonObject) { + SysArchivesContrastEntity entity = getData("jsonStr", jsonObject, SysArchivesContrastEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getType() == null || "".equals(entity.getType())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity.setUpdate(); + //删除 + sysArchivesContrastDao.logicRemove(entity); + return BaseResult.getSuccessMessageEntity(" 删除档案成功", entity); + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/ISysButtonConfigDao.java b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/ISysButtonConfigDao.java index cb9aa600..d8863927 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/ISysButtonConfigDao.java +++ b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/ISysButtonConfigDao.java @@ -1,7 +1,9 @@ package com.hzya.frame.sysnew.buttonConfig.dao; import com.hzya.frame.sysnew.buttonConfig.entity.SysButtonConfigEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; + +import java.util.List; /** * 按钮配置表(sys_button_config: table)表数据库访问层 @@ -11,5 +13,6 @@ import com.hzya.frame.basedao.dao.IBaseDao; */ public interface ISysButtonConfigDao extends IBaseDao { + List getUserButton(SysButtonConfigEntity entity); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/impl/SysButtonConfigDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/impl/SysButtonConfigDaoImpl.java index a816c9b8..c6ce01dd 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/impl/SysButtonConfigDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/dao/impl/SysButtonConfigDaoImpl.java @@ -2,8 +2,12 @@ package com.hzya.frame.sysnew.buttonConfig.dao.impl; import com.hzya.frame.sysnew.buttonConfig.entity.SysButtonConfigEntity; import com.hzya.frame.sysnew.buttonConfig.dao.ISysButtonConfigDao; +import com.hzya.frame.sysnew.menuConfig.entity.SysMenuConfigEntity; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + /** * 按钮配置表(SysButtonConfig)表数据库访问层 * @@ -12,6 +16,11 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao; */ @Repository(value = "SysButtonConfigDaoImpl") public class SysButtonConfigDaoImpl extends MybatisGenericDao implements ISysButtonConfigDao{ - + + @Override + public List getUserButton(SysButtonConfigEntity entity) { + List o = super.query(getSqlIdPrifx() + "getUserButton", entity); + return o; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.java b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.java index e39fed69..93827ed1 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.java @@ -28,6 +28,8 @@ public class SysButtonConfigEntity extends BaseEntity { private String remark; /** 公司id */ private String companyId; + /** 公司id */ + private String userId; /** * 是否选中 @@ -112,5 +114,13 @@ public class SysButtonConfigEntity extends BaseEntity { public void setCheck(boolean check) { this.check = check; } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.xml index 9fdabc17..11817e90 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/entity/SysButtonConfigEntity.xml @@ -288,6 +288,45 @@ update sys_button_config set sts= 'N' ,modify_time = #{modify_time},modify_user delete from sys_button_config where id = #{id} - + diff --git a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/service/ISysButtonConfigService.java b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/service/ISysButtonConfigService.java index c29ccdf0..acbf4d05 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/service/ISysButtonConfigService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/buttonConfig/service/ISysButtonConfigService.java @@ -66,4 +66,14 @@ public interface ISysButtonConfigService extends IBaseService sysButtonConfigEntities = sysButtonConfigDao.getUserButton(entity); + return BaseResult.getSuccessMessageEntity("查询按钮成功",sysButtonConfigEntities); + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/IControlsLogDao.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/IControlsLogDao.java new file mode 100644 index 00000000..873bcc62 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/IControlsLogDao.java @@ -0,0 +1,20 @@ +package com.hzya.frame.sysnew.comparison.controlsLog.dao; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.sysnew.comparison.controlsLog.entity.ControlsLogEntity; + +public interface IControlsLogDao extends IBaseDao { + + /** + * + * @content 操作日志保存 + * @Param formmainId:主表id,sourceName:来源名称,code:来源编码,sourceData:源数据,optionType:操作类型,optionName:操作人,dbName:数据库名称,dataType:类型:1成功,2失败 + * @Return + * @Author hecan + * @Date 2024/6/5 15:29 + * **/ + @DS("master") + ControlsLogEntity saveControlsLog(String formmainId,String sourceName,String code,String sourceData,String optionType,String optionName,String dbName,String dataType); + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/impl/ControlsLogDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/impl/ControlsLogDaoImpl.java new file mode 100644 index 00000000..034ca37e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/dao/impl/ControlsLogDaoImpl.java @@ -0,0 +1,32 @@ +package com.hzya.frame.sysnew.comparison.controlsLog.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.sysnew.comparison.controlsLog.dao.IControlsLogDao; +import com.hzya.frame.sysnew.comparison.controlsLog.entity.ControlsLogEntity; +import com.hzya.frame.uuid.UUIDUtils; +import org.springframework.stereotype.Repository; + +@Repository(value = "controlsLogDaoImpl") +public class ControlsLogDaoImpl extends MybatisGenericDao implements IControlsLogDao { + + //操作日志新增 + @Override + public ControlsLogEntity saveControlsLog(String formmainId,String sourceName,String code,String sourceData,String optionType,String optionName,String dbName,String dataType) { + ControlsLogEntity controlsLogEntity=new ControlsLogEntity(); + controlsLogEntity.setId(UUIDUtils.getUUID()); + controlsLogEntity.setFormmainId(formmainId); + controlsLogEntity.setSourceName(sourceName); + controlsLogEntity.setCode(code); + controlsLogEntity.setSourceData(sourceData); + controlsLogEntity.setOptionType(optionType); + controlsLogEntity.setOptionName(optionName); + controlsLogEntity.setDbName(dbName); + controlsLogEntity.setDataType(dataType); + controlsLogEntity.setCreate_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + controlsLogEntity.setModify_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + controlsLogEntity.setOrg_id("0"); + ControlsLogEntity save = super.save(getSqlIdPrifx() + "saveControlsLog", controlsLogEntity); + return save; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.java new file mode 100644 index 00000000..8dfed111 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.java @@ -0,0 +1,97 @@ +package com.hzya.frame.sysnew.comparison.controlsLog.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * + * @content 操作日志实体类 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/5 11:58 + * **/ +public class ControlsLogEntity extends BaseEntity { + private String formmainId;//主表id + private String sourceName;//来源名称 + private String code;//编码 + private String sourceData;//源数据 + private String optionType;//操作类型 + private String optionName;//操作人 + + private String dbName;//表名称 + + private String dataType;//状态 1、成功2、失败 + private String remark;//备注 + + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getSourceData() { + return sourceData; + } + + public void setSourceData(String sourceData) { + this.sourceData = sourceData; + } + + public String getOptionType() { + return optionType; + } + + public void setOptionType(String optionType) { + this.optionType = optionType; + } + + public String getOptionName() { + return optionName; + } + + public void setOptionName(String optionName) { + this.optionName = optionName; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.xml new file mode 100644 index 00000000..a82ab64d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/controlsLog/entity/ControlsLogEntity.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into ${dbName} + + id, + formmain_id, + code , + source_name , + source_data , + option_type , + option_name , + data_type, + remark, + sorts, + create_user_id , + modify_user_id , + org_id , + company_id , + create_time, + modify_time, + sts + + values + + #{id}, + #{formmainId}, + #{code} , + #{sourceName} , + #{sourceData} , + #{optionType} , + #{optionName} , + #{dataType}, + #{remark}, + #{sorts} , + #{create_user_id} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{create_time} , + now() , + #{modify_time} , + now() , + #{sts} , + 'Y' + + + + + + update ${dbName} set + + formmain_id = #{formmainId}, + source_name = #{sourceName}, + code = #{code}, + source_data = #{sourceData}, + option_type = #{optionType}, + option_name = #{optionName}, + data_type = #{dataType}, + remark = #{remark}, + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + modify_time = now(), + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId} + + where id=#{id} and sts='Y' + + + + + + update + ${dbName} + set sts= 'N' ,modify_time = now(),modify_user_id = #{modify_user_id} + + formmain_id = #{formmainId}, + source_name = #{sourceName}, + code = #{code}, + source_data = #{sourceData}, + option_type = #{optionType}, + option_name = #{optionName}, + data_type = #{dataType}, + remark = #{remark}, + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and id=#{id} and sts='Y' + + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDao.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDao.java new file mode 100644 index 00000000..c9f165f3 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDao.java @@ -0,0 +1,123 @@ +package com.hzya.frame.sysnew.comparison.dao; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; + +import java.util.List; +import java.util.Map; + +public interface IComparisonDao extends IBaseDao { + + /** + * + * @content 根据主数据编码查询表名,字段名等信息 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 16:05 + * **/ + List queryComparison(ComparisonEntity comparison); + + /** + * + * @content 分页查询数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 15:11 + * **/ + List> queryComparisonPage(ComparisonEntity comparison); + + /** + * + * @content 保存通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 16:56 + * **/ + ComparisonEntity saveComparison(ComparisonEntity comparison); + + /** + * + * @content 生成单据规则 如:CK-yyyyMMdd-0001 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 9:42 + * **/ + ComparisonEntity queryComparisonRule(ComparisonEntity comparison); + + /** + * + * @content 更新通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 10:32 + * **/ + Integer updateComparisonByType(ComparisonEntity comparison); + + /** + * + * @content 删除通用数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 14:09 + * **/ + Integer deleteComparison(ComparisonEntity comparison); + + /** + * + * @content 查询单据规则 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/28 14:39 + * **/ + ComparisonEntity queryComparisonById(ComparisonEntity comparison); + + /** + * + * @content 根据主数据编码查询mdm_module数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/4 11:37 + * **/ + ComparisonEntity queryComparisonBymdmCode(ComparisonEntity comparison); + + /** + * + * @content 根据mdm_module得id查询mdm_module_db得数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/4 11:40 + * **/ + List queryComparisonBymdmId(ComparisonEntity comparison); + + /** + * + * @content 根据mdm_module得id查询mdm_module_db_fileds得数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/4 11:45 + * **/ + List queryComparisonBymdmIdFileds(ComparisonEntity comparison); + + /** + * + * @content 根据mdm_id查询mdm_module_db_fileds_rule中的字段是否是必填项 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/25 15:09 + * **/ + List queryComparisonBymdmIdDbIdFiledId(ComparisonEntity comparison); + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDetailsDao.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDetailsDao.java new file mode 100644 index 00000000..36c66021 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/IComparisonDetailsDao.java @@ -0,0 +1,51 @@ +package com.hzya.frame.sysnew.comparison.dao; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; + +import java.util.List; +import java.util.Map; + +public interface IComparisonDetailsDao extends IBaseDao { + + /** + * + * @content 保存通用数据子表数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 10:41 + * **/ + ComparisonDetailsEntity saveComparisonDetails(ComparisonDetailsEntity comparisonDetailsEntity); + + /** + * + * @content 更新通用数据子表数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 10:41 + * **/ + Integer updateComparisonDetailsByType(ComparisonDetailsEntity comparisonDetailsEntity); + + /** + * + * @content 删除通用数据子表数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 14:11 + * **/ + Integer deleteComparisonDetails(ComparisonDetailsEntity comparisonDetailsEntity); + + /** + * + * @content 分页查询子表数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 15:34 + * **/ + List> queryComparisonDetailsPage(ComparisonDetailsEntity comparisonDetailsEntity); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDaoImpl.java new file mode 100644 index 00000000..8cb609f5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDaoImpl.java @@ -0,0 +1,91 @@ +package com.hzya.frame.sysnew.comparison.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.sysnew.comparison.dao.IComparisonDao; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +@Repository(value = "comparisonDaoImpl") +public class ComparisonDaoImpl extends MybatisGenericDao implements IComparisonDao { + //根据主数据编码查询表名,字段名等信息 + @Override + public List queryComparison(ComparisonEntity comparison) { + List query = super.query(getSqlIdPrifx() + "queryComparison", comparison); + return query; + } + + //分页查询 + @Override + public List> queryComparisonPage(ComparisonEntity comparison) { + List> query =(List>) super.selectList(getSqlIdPrifx() + "queryComparisonPage", comparison); + return query; + } + + //保存数据 + @Override + public ComparisonEntity saveComparison(ComparisonEntity comparison) { + ComparisonEntity comparisonEntity = super.save(getSqlIdPrifx() + "saveComparison", comparison); + return comparisonEntity; + } + + //生成单据规则 + @Override + public ComparisonEntity queryComparisonRule(ComparisonEntity comparison) { + List comparisonEntities = super.query(getSqlIdPrifx() + "queryComparisonRule", comparison); + return comparisonEntities.get(0); + } + + //更新通用数据数据 + @Override + public Integer updateComparisonByType(ComparisonEntity comparison) { + int update = super.update(getSqlIdPrifx() + "updateComparisonByType", comparison); + return update; + } + + //删除通用数据 + @Override + public Integer deleteComparison(ComparisonEntity comparison) { + int delete = super.delete(getSqlIdPrifx() + "deleteComparison", comparison); + return delete; + } + + //查询单据规则 + @Override + public ComparisonEntity queryComparisonById(ComparisonEntity comparison) { + List comparisonEntities = super.query(getSqlIdPrifx() + "queryComparisonById", comparison); + return comparisonEntities.get(0); + } + + //根据主数据编码查询mdm_module数据 + @Override + public ComparisonEntity queryComparisonBymdmCode(ComparisonEntity comparison) { + ComparisonEntity comparisonEntity =(ComparisonEntity) super.selectOne(getSqlIdPrifx() + "queryComparisonBymdmCode", comparison); + return comparisonEntity; + } + + //根据mdm_module得id查询mdm_module_db得数据 + @Override + public List queryComparisonBymdmId(ComparisonEntity comparison) { + List list =(List) super.selectList(getSqlIdPrifx() + "queryComparisonBymdmId", comparison); + return list; + } + + //根据mdm_module得id查询mdm_module_db_fileds得数据 + @Override + public List queryComparisonBymdmIdFileds(ComparisonEntity comparison) { + List list =(List) super.selectList(getSqlIdPrifx() + "queryComparisonBymdmIdFileds", comparison); + return list; + } + + //根据mdm_id查询mdm_module_db_fileds_rule中的字段是否是必填项 + @Override + public List queryComparisonBymdmIdDbIdFiledId(ComparisonEntity comparison) { + List list =(List) super.selectList(getSqlIdPrifx() + "queryComparisonBymdmIdDbIdFiledId", comparison); + return list; + } + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDetailsDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDetailsDaoImpl.java new file mode 100644 index 00000000..cab43d0d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/dao/impl/ComparisonDetailsDaoImpl.java @@ -0,0 +1,46 @@ +package com.hzya.frame.sysnew.comparison.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.sysnew.comparison.dao.IComparisonDao; +import com.hzya.frame.sysnew.comparison.dao.IComparisonDetailsDao; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +@Repository(value = "comparisonDetailsDaoImpl") +public class ComparisonDetailsDaoImpl extends MybatisGenericDao implements IComparisonDetailsDao { + + //保存通用数据子表数据 + @Override + public ComparisonDetailsEntity saveComparisonDetails(ComparisonDetailsEntity comparisonDetailsEntity) { + ComparisonDetailsEntity detailsEntity = super.save(getSqlIdPrifx() + "saveComparisonDetails", comparisonDetailsEntity); + return detailsEntity; + } + + //更新通用数据子表数据 + @Override + public Integer updateComparisonDetailsByType(ComparisonDetailsEntity comparisonDetailsEntity) { + int update = super.update(getSqlIdPrifx()+"updateComparisonDetailsByType", comparisonDetailsEntity); + return update; + } + + //删除通用数据子表的数据 + @Override + public Integer deleteComparisonDetails(ComparisonDetailsEntity comparisonDetailsEntity) { + int delete = super.delete(getSqlIdPrifx() + "deleteComparisonDetails", comparisonDetailsEntity); + return delete; + } + + //分页查询子表数据 + @Override + public List> queryComparisonDetailsPage(ComparisonDetailsEntity comparisonDetailsEntity) { + List> query =(List>) super.selectList(getSqlIdPrifx() + "queryComparisonDetailsPage", comparisonDetailsEntity); + return query; + } + + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.java new file mode 100644 index 00000000..82838e9d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.java @@ -0,0 +1,159 @@ +package com.hzya.frame.sysnew.comparison.entity; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.hzya.frame.web.entity.BaseEntity; +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; +import java.util.Map; + +/** + * + * @content 通用数据明细实体类 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 15:50 + * **/ +public class ComparisonDetailsEntity extends BaseEntity { + + private String contrastType;//对照类型 + private String documentRule;//单据规则 + private Long documentRuleNum;//单据规则流水号 + + + private String mdmName;//主数据名称 + private String mdmCode;//主数据编码 + private String dbName;//表名 + private String dbType;//类型 1、主表 2、明细 + private String enName;//字段名 英文 + private String chName;// 字段名 中文 + private String filedType;//字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME + private String formmainId;//上级id + + private String dataId;//第三方主键id + private String ruleCode;//规则编码required 判断字段是否是必填 + private String ruleValue;//规则值 true/false 判断字段是否是必填 + + public String getRuleCode() { + return ruleCode; + } + + public void setRuleCode(String ruleCode) { + this.ruleCode = ruleCode; + } + + public String getRuleValue() { + return ruleValue; + } + + public void setRuleValue(String ruleValue) { + this.ruleValue = ruleValue; + } + + public String getDataId() { + return dataId; + } + + public void setDataId(String dataId) { + this.dataId = dataId; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + private Map mapDetails; + + public String getContrastType() { + return contrastType; + } + + public void setContrastType(String contrastType) { + this.contrastType = contrastType; + } + + public String getDocumentRule() { + return documentRule; + } + + public void setDocumentRule(String documentRule) { + this.documentRule = documentRule; + } + + public Long getDocumentRuleNum() { + return documentRuleNum; + } + + public void setDocumentRuleNum(Long documentRuleNum) { + this.documentRuleNum = documentRuleNum; + } + + public String getMdmName() { + return mdmName; + } + + public void setMdmName(String mdmName) { + this.mdmName = mdmName; + } + + public String getMdmCode() { + return mdmCode; + } + + public void setMdmCode(String mdmCode) { + this.mdmCode = mdmCode; + } + + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public String getDbType() { + return dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + } + + public String getEnName() { + return enName; + } + + public void setEnName(String enName) { + this.enName = enName; + } + + public String getChName() { + return chName; + } + + public void setChName(String chName) { + this.chName = chName; + } + + public String getFiledType() { + return filedType; + } + + public void setFiledType(String filedType) { + this.filedType = filedType; + } + + public Map getMapDetails() { + return mapDetails; + } + + public void setMapDetails(Map mapDetails) { + this.mapDetails = mapDetails; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.xml new file mode 100644 index 00000000..4957592c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonDetailsEntity.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + insert into ${dbName} + + + ${column}, + + + values + + + #{value}, + + + + + + + update ${dbName} + + + ${key} =#{value} + + + where data_id=#{dataId} and formmain_id= #{formmainId} and sts='Y' and (data_status='Y' or data_status='F') + + + + + update + ${dbName} + set modify_time = now(),modify_user_id = #{modify_user_id}, data_status= 'N' + + + and formmain_id=#{formmainId} and sts='Y' and (data_status='Y' or data_status='F') + + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.java new file mode 100644 index 00000000..147d6867 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.java @@ -0,0 +1,325 @@ +package com.hzya.frame.sysnew.comparison.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +import java.util.List; +import java.util.Map; + +/** + * + * @content 通用数据实体类 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 15:50 + * **/ +public class ComparisonEntity extends BaseEntity { + private String contrastType;//对照类型 + private String documentRule;//单据规则 + private Long documentRuleNum;//单据规则流水号 + + private String mdmName;//主数据名称 + private String mdmCode;//主数据编码 + private String dbName;//表名 + private String dbType;//类型 1、主表 2、明细 + private String enName;//字段名 英文 + private String chName;// 字段名 中文 + private String filedType;//字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME + + private Map map; + private ComparisonDetailsEntity comparisonDetailsEntity; + private String formmainId;//上级id + + private String rulePrefix;//规则前缀 CK-yyyyMMdd-0001中的CK + private String ruleMiddle;//规则中间 CK-yyyyMMdd-0001中的yyyyMMdd + private int ruleSuffix;//规则后缀 CK-yyyyMMdd-0001中的0001 + + private String mId;//mdm_module的id + private String dbId;//mdm_module_db的id + + private String addType;//显示类型:新增 + private String updateType;//显示类型:修改 + private String showType;//显示类型:查看 + private String queryType;//显示类型:查询 + private String listType;//显示类型:列表 + private String viewType;//显示类型:显示 + + private String dataId;//第三方主键id + private String ruleCode;//规则编码required 判断字段是否是必填 + private String ruleValue;//规则值 true/false 判断字段是否是必填 + private String filedId;//mdm_module_db_fileds_rule的id + //小写字段 + private List fields; + private List returnField; + + /** 显示类型 1、树2、列表*/ + private String viewName; + //下级结构树 + private List comparisonEntities; + + public List getComparisonEntities() { + return comparisonEntities; + } + + public void setComparisonEntities(List comparisonEntities) { + this.comparisonEntities = comparisonEntities; + } + + public String getViewName() { + return viewName; + } + + public void setViewName(String viewName) { + this.viewName = viewName; + } + + public List getReturnField() { + return returnField; + } + + public void setReturnField(List returnField) { + this.returnField = returnField; + } + + public List getFields() { + return fields; + } + + public void setFields(List fields) { + this.fields = fields; + } + + public String getFiledId() { + return filedId; + } + + public void setFiledId(String filedId) { + this.filedId = filedId; + } + + public String getRuleCode() { + return ruleCode; + } + + public void setRuleCode(String ruleCode) { + this.ruleCode = ruleCode; + } + + public String getRuleValue() { + return ruleValue; + } + + public void setRuleValue(String ruleValue) { + this.ruleValue = ruleValue; + } + + public String getDataId() { + return dataId; + } + + public void setDataId(String dataId) { + this.dataId = dataId; + } + + public String getAddType() { + return addType; + } + + public void setAddType(String addType) { + this.addType = addType; + } + + public String getUpdateType() { + return updateType; + } + + public void setUpdateType(String updateType) { + this.updateType = updateType; + } + + public String getShowType() { + return showType; + } + + public void setShowType(String showType) { + this.showType = showType; + } + + public String getQueryType() { + return queryType; + } + + public void setQueryType(String queryType) { + this.queryType = queryType; + } + + public String getListType() { + return listType; + } + + public void setListType(String listType) { + this.listType = listType; + } + + public String getViewType() { + return viewType; + } + + public void setViewType(String viewType) { + this.viewType = viewType; + } + + public String getRuleMiddle() { + return ruleMiddle; + } + + public void setRuleMiddle(String ruleMiddle) { + this.ruleMiddle = ruleMiddle; + } + + public int getRuleSuffix() { + return ruleSuffix; + } + + public void setRuleSuffix(int ruleSuffix) { + this.ruleSuffix = ruleSuffix; + } + + public String getmId() { + return mId; + } + + public void setmId(String mId) { + this.mId = mId; + } + + public String getDbId() { + return dbId; + } + + public void setDbId(String dbId) { + this.dbId = dbId; + } + + private List comparisonDetailsEntityList; + + public List getComparisonDetailsEntityList() { + return comparisonDetailsEntityList; + } + + public void setComparisonDetailsEntityList(List comparisonDetailsEntityList) { + this.comparisonDetailsEntityList = comparisonDetailsEntityList; + } + + public String getContrastType() { + return contrastType; + } + + public void setContrastType(String contrastType) { + this.contrastType = contrastType; + } + + public String getDocumentRule() { + return documentRule; + } + + public void setDocumentRule(String documentRule) { + this.documentRule = documentRule; + } + + public Long getDocumentRuleNum() { + return documentRuleNum; + } + + public void setDocumentRuleNum(Long documentRuleNum) { + this.documentRuleNum = documentRuleNum; + } + + public String getMdmName() { + return mdmName; + } + + public void setMdmName(String mdmName) { + this.mdmName = mdmName; + } + + public String getMdmCode() { + return mdmCode; + } + + public void setMdmCode(String mdmCode) { + this.mdmCode = mdmCode; + } + + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public String getDbType() { + return dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + } + + public String getEnName() { + return enName; + } + + public void setEnName(String enName) { + this.enName = enName; + } + + public String getChName() { + return chName; + } + + public void setChName(String chName) { + this.chName = chName; + } + + public String getFiledType() { + return filedType; + } + + public void setFiledType(String filedType) { + this.filedType = filedType; + } + + public Map getMap() { + return map; + } + + public void setMap(Map map) { + this.map = map; + } + + public ComparisonDetailsEntity getComparisonDetailsEntity() { + return comparisonDetailsEntity; + } + + public void setComparisonDetailsEntity(ComparisonDetailsEntity comparisonDetailsEntity) { + this.comparisonDetailsEntity = comparisonDetailsEntity; + } + + public String getFormmainId() { + return formmainId; + } + + public void setFormmainId(String formmainId) { + this.formmainId = formmainId; + } + + public String getRulePrefix() { + return rulePrefix; + } + + public void setRulePrefix(String rulePrefix) { + this.rulePrefix = rulePrefix; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.xml new file mode 100644 index 00000000..c1f5d334 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/entity/ComparisonEntity.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into ${dbName} + + + ${column}, + + + values + + + #{value}, + + + + + + + update ${dbName} + + + ${key} =#{value} + + + where id=#{id} and sts='Y' and (data_status='Y' or data_status='F') + + + + + + update + ${dbName} + set data_status= 'N' ,modify_time = now(),modify_user_id = #{modify_user_id},delete_status='0' + + + and ${key} =#{value} + + and id=#{id} and sts='Y' and (data_status='Y' or data_status='F') + + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/IMasterDataDao.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/IMasterDataDao.java new file mode 100644 index 00000000..a598068b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/IMasterDataDao.java @@ -0,0 +1,25 @@ +package com.hzya.frame.sysnew.comparison.masterData.dao; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; + +import java.util.HashMap; +import java.util.List; + +public interface IMasterDataDao extends IBaseService { + + + /** + * + * @content 查询U8C档案 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/6 11:56 + * **/ + @DS("swu8c") + List> queryArchives(String str); + List> queryArchivesByDataSource(String str , MdmModuleSourceEntity entity); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/impl/MasterDataDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/impl/MasterDataDaoImpl.java new file mode 100644 index 00000000..af057aa8 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/dao/impl/MasterDataDaoImpl.java @@ -0,0 +1,43 @@ +package com.hzya.frame.sysnew.comparison.masterData.dao.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.execsql.service.IExecSqlService; +import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import com.hzya.frame.sysnew.comparison.masterData.dao.IMasterDataDao; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; + +@Repository(value = "masterDataDaoImpl") +public class MasterDataDaoImpl extends BaseService implements IMasterDataDao { + + @Autowired + private IExecSqlService execSqlService; + + @DS("swu8c") + @Override + public List> queryArchives(String str) { + try { + List> hashMaps = execSqlService.execSelectSql(str, ""); + return hashMaps; + }catch (Exception e){ + logger.info("U8C主数据档案用户档案没有需要同步中台的数据"); + return null; + } + } + @DS("#entity.dataSourceCode") + @Override + public List> queryArchivesByDataSource(String str, MdmModuleSourceEntity entity) { + try { + List> hashMaps = execSqlService.execSelectSql(str, ""); + return hashMaps; + }catch (Exception e){ + logger.info("U8C主数据档案用户档案没有需要同步中台的数据"); + return null; + } + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/IMasterDataService.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/IMasterDataService.java new file mode 100644 index 00000000..b9f44b08 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/IMasterDataService.java @@ -0,0 +1,19 @@ +package com.hzya.frame.sysnew.comparison.masterData.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface IMasterDataService extends IBaseService { + +/** +* +* @content 查询经过配置的主数据信息进行同步主数据档案接口 +* @author laborer +* @date 2024/6/24 0024 9:34 +* +*/ + + JsonResultEntity queryArchives(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/impl/MasterDataServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/impl/MasterDataServiceImpl.java new file mode 100644 index 00000000..357a2ec6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/masterData/service/impl/MasterDataServiceImpl.java @@ -0,0 +1,273 @@ +package com.hzya.frame.sysnew.comparison.masterData.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.application.service.impl.ApplicationCache; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import com.hzya.frame.sysnew.comparison.masterData.dao.impl.MasterDataDaoImpl; +import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService; +import com.hzya.frame.sysnew.comparison.service.impl.ComparisonServiceImpl; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.web.exception.BaseSystemException; +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("MasterDataServiceImpl") +public class MasterDataServiceImpl extends BaseService implements IMasterDataService { + + @Autowired + private MasterDataDaoImpl masterDataDaoImpl; + @Autowired + private ComparisonServiceImpl comparisonServiceimpl; + @Autowired + private MdmModuleSourceDaoImpl mdmModuleSourceDaoImpl; + + @Autowired + private ApplicationCache applicationCache; + private String ts = ""; + + /** + * + * @content 查询经过配置的主数据信息进行同步主数据档案接口 + * @author laborer + * @date 2024/6/24 0024 9:56 + * + */ + + @Override + public JsonResultEntity queryArchives(JSONObject json){ +// logger.info("第一次入参"+String.valueOf(json)); + JSONObject jsonObject = json.getJSONObject("jsonStr"); + //查询主数据来源表,根据来源类型为插件得进行分类,获取来源名称和编码 + List list = mdmModuleSourceDaoImpl.MdmModuleSourceentityGroupByType(); + if (CollectionUtils.isEmpty(list)) { + logger.info("数据来源表中没有类型为插件得数据,无法获取来源名称和来源编码"); + return BaseResult.getFailureMessageEntity("数据来源表无插件类型"); + } + for (MdmModuleSourceEntity mdmModuleSourceEntity : list) { +// applicationCache.get() +// logger.info("入参数据"+jsonObject.toString()); + 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");//定时任务执行时传入的结束时间 +// logger.info("本次任务查询区间开始时间:{} 结束时间:{}",startTime,endTime); + String tableName = ""; + try { + //通过不同的应用类型用于拼接sql + String appTyp = mdmModuleSourceEntity.getAppType(); + String dbCode = mdmModuleSourceEntity.getDbCode(); + String mdmCode = mdmModuleSourceEntity.getMdmCode(); + List listAll = new ArrayList<>(); + if("10007".equals(mdmCode)){ + continue; + } +// if(!"10003".equals(mdmCode)){ +// continue; +// } + switch (appTyp) {//1、致远OA 2、用友U8C 3、用友BIP + case "1": + //通过主数据编码判断,不同的接口走不通的查询逻辑 + switch (mdmCode){ + case "10003"://致远用户信息 + tableName = "mdm_user"; + listAll = bindingUser(jsonObject, mdmModuleSourceEntity, dbCode,startTime,endTime); + break; + case "10004"://致远客商信息 + tableName = "mdm_customer"; + listAll = binDingCust(jsonObject, mdmModuleSourceEntity, dbCode,startTime,endTime); + break; + case "10007"://银行信息 + tableName = "mdm_bank"; + listAll = binDingBank(jsonObject, mdmModuleSourceEntity, dbCode); + break; + default: + logger.info("未匹配到主数据的编码,请检查"); + break; + } + } + //调用主数据接口进行数据推送或更新 + if (null != listAll && listAll.size() > 0) { + ParametricAssembly(mdmModuleSourceEntity, listAll, mdmCode, tableName); + } else { + logger.info("U8C主数据档案没有需要同步中台的数据"); + } + } catch (Exception e) { + logger.info("主数据同步错误:{}",e.getMessage()); + e.printStackTrace(); + } + } + return BaseResult.getSuccessMessageEntity("主数据同步成功"); + } + //绑定银行 + private List binDingBank(JSONObject jsonObject, MdmModuleSourceEntity mdmModuleSourceEntity, String dbCode)throws Exception { + List list = new ArrayList<>(); + StringBuffer sb = new StringBuffer(); + if(null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("code"))){ + String code = jsonObject.getString("code"); + sb.append(" and a.code = '"+code+"'"); + }else{ +// ts = DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss"); + sb.append(" and a.update_time >= '"+ts+"'"); + } + StringBuffer stringBuffer = new StringBuffer(); + stringBuffer.append("select id as data_id,a.* from bank a"); + mdmModuleSourceEntity.setDataSourceCode(dbCode); + List> hashMaps = masterDataDaoImpl.queryArchivesByDataSource(stringBuffer.toString(),mdmModuleSourceEntity); + int i = 0; + if(CollectionUtils.isNotEmpty(hashMaps)){ + for (HashMap hashMap : hashMaps) { + JSONObject main = new JSONObject(); + JSONObject mdm = new JSONObject(); + for(String key:hashMap.keySet()) { + mdm.put(key, hashMap.get(key)); + } + main.put("mdm_bank",mdm); + list.add(main); + } + } + return list; + } + + //绑定客户档案 + private List binDingCust(JSONObject jsonObject, MdmModuleSourceEntity mdmModuleSourceEntity, String dbCode,String startTime,String endTime)throws Exception { + List list = new ArrayList<>(); + StringBuffer sb = new StringBuffer(); + if(null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("code"))){ + String code = jsonObject.getString("code"); + sb.append(" and a.code = '"+code+"'"); + }else{ +// ts = DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss"); + sb.append(" and a.modify_date >= '"+startTime+"'"); + sb.append(" and a.modify_date < '"+endTime+"'"); + } + StringBuffer stringBuffer = new StringBuffer(); + stringBuffer.append("SELECT id as data_id,field0013 AS code,field0014 AS name,field0016 AS pk_custclass,field0015 AS shortname,field0012 AS pk_org FROM formmain_0177 a WHERE 1=1 " +sb.toString()); + mdmModuleSourceEntity.setDataSourceCode(dbCode); + List> hashMaps = masterDataDaoImpl.queryArchivesByDataSource(stringBuffer.toString(),mdmModuleSourceEntity); + if(CollectionUtils.isNotEmpty(hashMaps)){ + for (HashMap hashMap : hashMaps) { + JSONObject main = new JSONObject(); + JSONObject mdm_cust = new JSONObject(); + for(String key:hashMap.keySet()) { + mdm_cust.put(key, hashMap.get(key)); + } + //获取明细信息 + Long formmainId = (Long) hashMap.get("data_id"); + StringBuffer stringBufferDetails = new StringBuffer(); + stringBufferDetails.append("SELECT id as data_id ,field0019 AS pk_bankdoc,field0020 AS accnum,field0021 AS combinenum FROM formson_0230 WHERE formmain_id = '"+formmainId+"' " ); + List> hashMapsDetails = masterDataDaoImpl.queryArchivesByDataSource(stringBufferDetails.toString(),mdmModuleSourceEntity); + JSONArray mdm_customer_bank = new JSONArray(); + if(CollectionUtils.isNotEmpty(hashMapsDetails)){ + for (HashMap detailsMap : hashMapsDetails) { + JSONObject details = new JSONObject(); + for (String key : detailsMap.keySet()) { + details.put(key, detailsMap.get(key)); + } + mdm_customer_bank.add(details); + } + } + main.put("mdm_customer_bank",mdm_customer_bank); + main.put("mdm_customer",mdm_cust); + list.add(main); + } + } + return list; + } + + //绑定OA用户参数 + private List bindingUser(JSONObject jsonObject, MdmModuleSourceEntity mdmModuleSourceEntity, String dbCode,String startTime,String endTime)throws Exception { + List list = new ArrayList<>(); + StringBuffer sb = new StringBuffer(); + if(null != jsonObject && StrUtil.isNotEmpty(jsonObject.getString("code"))){ + String code = jsonObject.getString("code"); + sb.append(" and a.code = '"+code+"'"); + }else{ +// ts = DateUtil.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss"); + sb.append(" and a.update_time >= '"+startTime+"'"); + sb.append(" and a.update_time <> '"+endTime+"'"); + } + StringBuffer stringBuffer = new StringBuffer(); + stringBuffer.append("select a.id as data_id, a.name as user_name, a.code AS user_code,e.LOGIN_NAME as login_name,CASE WHEN EXT_ATTR_11 = '1' \n" + + "THEN '男' WHEN EXT_ATTR_11 = '2' THEN '女' ELSE NULL END AS gender,CASE WHEN (a.EXT_ATTR_1 IS NULL OR a.EXT_ATTR_1 ='') THEN '11111111111' ELSE a.EXT_ATTR_1 END AS mobile FROM org_member a left join org_principal e on a.id = e.MEMBER_ID\n" + + " WHERE 1=1 and e.LOGIN_NAME IS not null " + sb.toString()); +// " WHERE 1=1 and a.id = '-2698997042624247722'"); + mdmModuleSourceEntity.setDataSourceCode(dbCode); + List> hashMaps = masterDataDaoImpl.queryArchivesByDataSource(stringBuffer.toString(),mdmModuleSourceEntity); + int i = 0; + if(CollectionUtils.isNotEmpty(hashMaps)){ + for (HashMap hashMap : hashMaps) { + JSONObject main = new JSONObject(); + JSONObject mdm_user = new JSONObject(); + for(String key:hashMap.keySet()) { + mdm_user.put(key, hashMap.get(key)); + } + main.put("mdm_user",mdm_user); + list.add(main); + } + } + return list; + } + + + //查询档案参数组装 + public JsonResultEntity ParametricAssembly(MdmModuleSourceEntity mdmModuleSourceEntity,List hashMaps,String mdmCode,String tableName)throws Exception{ + for (JSONObject hashMap : hashMaps) { + JSONObject main = hashMap.getJSONObject(tableName); + + JSONObject jsonObjectUser = new JSONObject(); + JSONObject jsonStr = new JSONObject(); + jsonObjectUser.put("data_id", main.get("data_id")); + jsonObjectUser.put("mdmCode", mdmCode); + jsonStr.put("jsonStr", jsonObjectUser); + //先查询编码和名称查询是否存在 + Object attribute = comparisonServiceimpl.queryEntityPage(jsonStr); + logger.info("得到的attribute值为:{}", jsonStr.toJSONString(attribute)); + JSONObject jsonObjectAttribute = (JSONObject) JSON.toJSON(attribute); + JSONArray jsonArrayList = jsonObjectAttribute.getJSONArray("list"); + //如果jsonArrayList为null,说明没有值,在表中不存在 + if (jsonArrayList == null || jsonArrayList.size() == 0) { +// //将查询出来得数据调用通用接口新增,保存到表中 +// JSONObject main = new JSONObject(); +// for(String key:hashMap.keySet()) { +// main.put(key, hashMap.get(key)); +// } +// jsonObjectUser.put("main", main); + hashMap.put("appName","数智中台"); + hashMap.put("appCode","800004"); + hashMap.put("mdmCode", mdmCode); + hashMap.put("optionName", "数智中台"); + jsonStr.put("jsonStr", hashMap); + Object result = comparisonServiceimpl.saveEntity(jsonStr); + logger.info("新增结果为:{}", JSON.toJSONString(result)); +// if(!result.isFlag()){ +// throw new BaseSystemException("主数据保存失败"+ result.getMsg()); +// } + } else { + hashMap.put("appName","数智中台"); + hashMap.put("appCode","800004"); + hashMap.put("mdmCode", mdmCode); + hashMap.put("optionName", "数智中台"); + jsonStr.put("jsonStr", hashMap); + Object result = comparisonServiceimpl.updateEntity(jsonStr); + logger.info("更新结果为:{}", JSON.toJSONString(result)); +// if(!result.isFlag()){ +// //throw new BaseSystemException("主数据更新失败"+ result.getMsg()); +// } + } + } + return null; + } + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonDetailsService.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonDetailsService.java new file mode 100644 index 00000000..ac5db9c0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonDetailsService.java @@ -0,0 +1,7 @@ +package com.hzya.frame.sysnew.comparison.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; + +public interface IComparisonDetailsService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonService.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonService.java new file mode 100644 index 00000000..f0ec04ba --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/IComparisonService.java @@ -0,0 +1,63 @@ +package com.hzya.frame.sysnew.comparison.service; + +import com.alibaba.fastjson.JSONObject; +import com.baomidou.dynamic.datasource.annotation.DS; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface IComparisonService extends IBaseService { + + /** + * + * @content 分页查询通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 15:55 + * **/ + Object queryEntityPage(JSONObject jsonObject); + + /** + * + * @content 新增通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/7 16:52 + * **/ + Object saveEntity(JSONObject jsonObject); + + /** + * + * @content 编辑通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 10:19 + * **/ + Object updateEntity(JSONObject jsonObject); + + /** + * + * @content 删除通用数据数据 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/9 13:59 + * **/ + Object deleteEntity(JSONObject jsonObject); + + /** + * + * @content 获取应用编码和应用名称 + * @Param + * @Return + * @Author hecan + * @Date 2024/6/11 11:37 + * **/ + SysExtensionApiEntity getAppNameAndCode(SysExtensionApiEntity sysExtensionApiEntity); + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonDetailsServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonDetailsServiceImpl.java new file mode 100644 index 00000000..64b6bfd9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonDetailsServiceImpl.java @@ -0,0 +1,10 @@ +package com.hzya.frame.sysnew.comparison.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; +import com.hzya.frame.sysnew.comparison.service.IComparisonDetailsService; +import org.springframework.stereotype.Service; + +@Service(value = "comparisonDetailsServiceImpl") +public class ComparisonDetailsServiceImpl extends BaseService implements IComparisonDetailsService { +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonServiceImpl.java new file mode 100644 index 00000000..a4948dd0 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/comparison/service/impl/ComparisonServiceImpl.java @@ -0,0 +1,899 @@ +package com.hzya.frame.sysnew.comparison.service.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao; +import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity; +import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity; +import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity; +import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao; +import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity; +import com.hzya.frame.mdm.service.impl.MdmServiceCache; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.comparison.controlsLog.dao.impl.ControlsLogDaoImpl; +import com.hzya.frame.sysnew.comparison.dao.IComparisonDao; +import com.hzya.frame.sysnew.comparison.dao.IComparisonDetailsDao; +import com.hzya.frame.sysnew.comparison.entity.ComparisonDetailsEntity; +import com.hzya.frame.sysnew.comparison.entity.ComparisonEntity; +import com.hzya.frame.sysnew.comparison.service.IComparisonService; +import com.hzya.frame.uuid.UUIDLong; +import com.hzya.frame.web.entity.BaseResult; +import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.stream.Collectors; + +@Service(value = "comparisonServiceImpl") +public class ComparisonServiceImpl extends BaseService implements IComparisonService { + + private IComparisonDao comparisonDao; + @Autowired + private IMdmModuleDao mdmModuleDao; + + @Autowired + private IComparisonDetailsDao comparisonDetailsDao; + + @Autowired + private ControlsLogDaoImpl controlsLogDaoimpl; + + @Autowired + private MdmServiceCache mdmServiceCache; + + @Autowired + private IMdmModuleViewDao mdmModuleViewDao; + + @Autowired + public void setGeneralDataDao(IComparisonDao dao) { + this.comparisonDao = dao; + this.dao = dao; + } + + //分页查询通用数据数据 + @Override + public Object queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + JSONObject json1 = new JSONObject(); + if (jsonObject == null) { + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if (!checkStr(jsonObject.getString("mdmCode"))) { + return BaseResult.getFailureMessageEntity("主数据编码为空"); + } + ComparisonEntity comparisonEntity = jsonObject.toJavaObject(ComparisonEntity.class); + ComparisonDetailsEntity comparisonDetailsEntity=new ComparisonDetailsEntity(); + List comparisonEntities=new ArrayList<>(); + try { + //根据主数据编码查询表名称,字段名称等信息 10001 + //comparisonEntities = comparisonDao.queryComparison(comparisonEntity); + + //comparisonEntities=getComparisonEntity(comparisonEntity); + comparisonEntities=getComparisonEntityCache(comparisonEntity,"main"); + }catch (Exception e){ + logger.info("根据主数据编码查询信息错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("查询失败"); + } + Map map = new HashMap<>();//将主表数据存到map中 + if (comparisonEntities != null && comparisonEntities.size() > 0) { + for (ComparisonEntity entity : comparisonEntities) { + //遍历主表下面的所有key,字段名 + for (String key : jsonObject.keySet()) { + if (entity.getDbType().equals("1")) { + comparisonEntity.setDbName(entity.getDbName()); + if(!"mdmCode".equals(key)){ + map.put(key, jsonObject.getString(key)); + map.remove("appName"); + map.remove("appCode"); + } + } + if (entity.getDbType().equals("2")) { + comparisonDetailsEntity.setDbName(entity.getDbName()); + } + } + } + comparisonEntity.setMap(map); + try { + List list=new ArrayList<>(); + //查询所有列 + List fields = getFields(comparisonEntity); + comparisonEntity.setFields(fields); + //查询主表数据 + List> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparisonEntity); + + //递归查询组织树 + if(comparisonEntities.get(0).getViewName().equals("1")){ + return recursiveQueryComparison(comparisonEntitiePages,comparisonEntity); + } + + if(CollectionUtils.isNotEmpty(comparisonEntitiePages)){ + for (Map comparisonEntitiePage : comparisonEntitiePages) { + JSONObject jsonObjects=new JSONObject(); + jsonObjects.put(comparisonEntity.getDbName(),comparisonEntitiePage); + if(comparisonDetailsEntity.getDbName()!=null){ + comparisonDetailsEntity.setFormmainId(String.valueOf(comparisonEntitiePage.get("id"))); + //查询明细表数据 + List> maps = comparisonDetailsDao.queryComparisonDetailsPage(comparisonDetailsEntity); + if(CollectionUtils.isNotEmpty(maps)){ + jsonObjects.put(comparisonDetailsEntity.getDbName(),maps); + }else { + jsonObjects.put(comparisonDetailsEntity.getDbName(),new JSONArray()); + } + } + list.add(jsonObjects); + } + } + PageInfo pageInfo = new PageInfo(list); + + json1.put("status","200"); + json1.put("pageInfo",pageInfo); + return json1; + } catch (Exception e) { + logger.info("查询通用数据错误:{}", e.getMessage()); + return BaseResult.getFailureMessageEntity("查询失败"); + } + } + return BaseResult.getFailureMessageEntity("查询失败","请检查传递参数"); + } + + //新增通用数据数据 + @Override + public Object saveEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if (jsonObject == null) { + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if (!checkStr(jsonObject.getString("mdmCode"))) { + return BaseResult.getFailureMessageEntity("主数据编码为空"); + } + if (!checkStr(jsonObject.getString("optionName"))) { + return BaseResult.getFailureMessageEntity("操作人为空"); + } + ComparisonEntity comparisonEntity = jsonObject.toJavaObject(ComparisonEntity.class); + ComparisonDetailsEntity comparisonDetailsEntity=new ComparisonDetailsEntity(); + List comparisonEntities=new ArrayList<>(); + String uuid= String.valueOf(UUIDLong.longUUID()); + try { + //根据主数据编码查询表名称,字段名称等信息 10001 + // comparisonEntities = comparisonDao.queryComparison(comparisonEntity); + + //comparisonEntities=getComparisonEntity(comparisonEntity); + comparisonEntities=getComparisonEntityCache(comparisonEntity,"main"); + }catch (Exception e){ + logger.info("根据主数据编码查询信息错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("保存失败"); + } + JSONObject jsonObjectMain=new JSONObject(); + JSONArray jsonArray=new JSONArray(); + List arrayList=new ArrayList<>(); + + String tableName=null; + //根据dbtype和dbname分组,拿到表名称和表类型 + Map>> collect = comparisonEntities.stream().collect(Collectors.groupingBy(ComparisonEntity::getDbName, Collectors.groupingBy(ComparisonEntity::getDbType))); + List> keyPairs = collect.entrySet().stream() + .flatMap(e1 -> e1.getValue().keySet().stream() + .map(dbname -> new AbstractMap.SimpleEntry<>(e1.getKey(), dbname))) + .collect(Collectors.toList()); + // keyPairs 得值为键值对,键是表名称,值是类型,避免多个子表得键一样,比如:mdm_customer:1,mdm_customer_bank:2,mdm_customer_option_log:2 + for (Map.Entry keyPair : keyPairs) { + //如果是1,就是主表,根据查询出来得主表是否是传输传递得主表 + if(keyPair.getValue().equals("1")){ + String main = jsonObject.getString(keyPair.getKey()); + tableName=keyPair.getKey(); + if(main!=null){ + jsonObjectMain = JSONObject.parseObject(main); + if(!checkStr(jsonObjectMain.getString("data_id"))){ + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),tableName+"_option_log","2"); + return BaseResult.getFailureMessageEntity("新增时候主表data_id不能为空"); + } + } + } + //如果是2,就是明细表,根据查询出来得子表是否是传输传递得子表 + if(keyPair.getValue().equals("2")){ + jsonArray= jsonObject.getJSONArray(keyPair.getKey()); + if(jsonArray!= null) { + for (int i = 0; i < jsonArray.size(); i++) { + JSONObject jsonObjectDetails = jsonArray.getJSONObject(i); + jsonObjectDetails.put("table_name", keyPair.getKey()); + if(!checkStr(jsonObjectDetails.getString("data_id"))){ + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),tableName+"_option_log","2"); + return BaseResult.getFailureMessageEntity("新增时候明细data_id不能为空"); + } + } + arrayList.add(jsonArray); + } + } + } + if(jsonObjectMain!=null && jsonObjectMain.size()>0) { + Map map = new HashMap<>();//将主表数据存到map中 + List>> mapDetails = new ArrayList<>();//将子表数据存到map中 + if (comparisonEntities != null && comparisonEntities.size() > 0) { + map = spliceMainMap(comparisonEntities, jsonObjectMain, map, comparisonEntity, comparisonDetailsEntity); + + //根据data_id判断数据是否已经保存在相关表中,避免重复保存 + List fields = getFields(comparisonEntity); + Map mapDataId = new HashMap<>(); + mapDataId.put("data_id", jsonObjectMain.getString("data_id")); + ComparisonEntity comparisonDataId = new ComparisonEntity(); + comparisonDataId.setMap(mapDataId); + comparisonDataId.setDbName(comparisonEntity.getDbName()); + comparisonDataId.setFields(fields); + List> listDataId = comparisonDao.queryComparisonPage(comparisonDataId); + if (CollectionUtils.isNotEmpty(listDataId)) { + //return BaseResult.getFailureMessageEntity(comparisonEntity.getDbName()+"表中已经存在data_id为:"+jsonObjectMain.getString("data_id")+"的数据"); + return updateEntity(json); + } else { + + //如果是树形结构,查询不存在,新增时候需要得到parent_id,根据parent_id查询data_id是否有,之后将查询得父id设置到mdm_up_id中 + if(comparisonEntities.get(0).getViewName().equals("1")){ + List fieldParent = getFields(comparisonEntity); + Map mapParentId = new HashMap<>(); + mapDataId.put("data_id", jsonObjectMain.getString("parent_id")); + ComparisonEntity comparisonParentId = new ComparisonEntity(); + comparisonParentId.setMap(mapParentId); + comparisonParentId.setDbName(comparisonEntity.getDbName()); + comparisonParentId.setFields(fieldParent); + List> listParentId = comparisonDao.queryComparisonPage(comparisonDataId); + //如果根据parentid查询数据不为空,将dataid为parenti得id值设置到mdm_up_id中 + if(CollectionUtils.isNotEmpty(listParentId)){ + map.put("mdm_up_id",listParentId.get(0).get("id")); + } + } + + //判断输入的主表字段是否是必填项 + for (ComparisonEntity entity : comparisonEntities) { + //如果必填字段不为空 + if (entity.getRuleValue() != null && entity.getDbType().equals("1")) { + //如果值为空,说明没有传这个字段或者这个字段的值为空 + if (jsonObjectMain.getString(entity.getEnName()) == null || jsonObjectMain.getString(entity.getEnName()).equals("")) { + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "2"); + return BaseResult.getFailureMessageEntity(entity.getDbName() + "表的" + entity.getEnName() + "字段不能为空"); + } + } + } + + map.put("id", uuid); + map.put("create_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + map.put("modify_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + map.put("org_id", "0"); + map.put("create_time", new Date()); + map.put("modify_time", new Date()); + map.put("sts", "Y"); + map.put("data_status", "Y");//新增状态 + map.put("add_status", "0");//新增状态 + map.put("update_status", "1");//修改状态 + map.put("delete_status", "1");//删除状态 + ComparisonEntity comparisonEntityRule = comparisonEntities.get(0); + //查询单据规则 只查询主表得,明细表不用 + try { + ComparisonEntity comparisonEntityRules = comparisonDao.queryComparisonById(comparisonEntityRule); + String documentRule = comparisonEntityRules.getDocumentRule();//"KH-2024-05-30-1"; + logger.info("通用数据保存接口中根据mId查询出来的单据规则为:{}", documentRule); + if (documentRule != null) { + //获取规则前缀 CK + String rulePrefix = documentRule.substring(0, documentRule.indexOf("-")); + //获取规则中间日期 yyyy-MM-dd + String ruleDate = documentRule.substring(documentRule.indexOf("-") + 1, documentRule.lastIndexOf("-")); + String ruleMiddle = getRuleDate(ruleDate); + //获取规则后缀 + String ruleSuffixLength = documentRule.substring(documentRule.lastIndexOf("-") + 1); + int ruleSuffix = ruleSuffixLength.length(); + //生成单据规则 + comparisonEntityRule.setRulePrefix(rulePrefix); + comparisonEntityRule.setRuleMiddle(ruleMiddle); + comparisonEntityRule.setRuleSuffix(ruleSuffix); + try { + //新生成单据规则保存到数据库 + ComparisonEntity comparisonEntityRuleGz = comparisonDao.queryComparisonRule(comparisonEntityRule); + map.put("document_rule", comparisonEntityRuleGz.getDocumentRule());//单据规则 + map.put("document_rule_num", comparisonEntityRuleGz.getDocumentRuleNum());//单据规则流水号 + comparisonEntityRule.setMap(map); + } catch (Exception e) { + logger.info("保存通用数据时候生成单据规则错误:{}", e.getMessage()); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "2"); + + return BaseResult.getFailureMessageEntity("保存失败"); + } + } + } catch (Exception e) { + logger.info("通用数据保存接口中查询单据规则错误:{}", e.getMessage()); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "2"); + + return BaseResult.getFailureMessageEntity("保存失败"); + } + try { + List list = new ArrayList<>(); + JSONObject jsonObjectList = new JSONObject(); + + //判断明细表字段是否是必填项 + if (arrayList != null && arrayList.size() > 0) { + for (JSONArray jsonArrayDetails : arrayList) { + for (Object object : jsonArrayDetails) { + JSONObject jsonObjectDetails = (JSONObject) JSON.toJSON(object); + for (ComparisonEntity entity : comparisonEntities) { + if (entity.getRuleValue() != null && entity.getDbType().equals("2")) { + //如果值为空,说明没有传这个字段或者这个字段的值为空 + if (jsonObjectDetails.getString(entity.getEnName()) == null || jsonObjectDetails.getString(entity.getEnName()).equals("")) { + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "2"); + return BaseResult.getFailureMessageEntity(entity.getDbName() + "表的" + entity.getEnName() + "字段不能为空"); + } + } + } + } + } + } + + //保存主表数据 + ComparisonEntity comparisonEntityOne = comparisonDao.saveComparison(comparisonEntityRule); + jsonObjectList.put(comparisonEntityOne.getDbName(), map); + //保存子表数据 + if (arrayList != null && arrayList.size() > 0) { + mapDetails = spliceDetailMap(comparisonEntities, mapDetails, arrayList); + if (mapDetails.size() > 0 && mapDetails != null) { + for (List> mapDetail : mapDetails) { + for (Map stringObjectMap : mapDetail) { + stringObjectMap.put("id", UUIDLong.longUUID()); + stringObjectMap.put("formmain_id", uuid); + stringObjectMap.put("create_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + stringObjectMap.put("modify_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + stringObjectMap.put("org_id", "0"); + stringObjectMap.put("create_time", new Date()); + stringObjectMap.put("modify_time", new Date()); + stringObjectMap.put("sts", "Y"); + stringObjectMap.put("data_status", "Y");//新增状态 + comparisonDetailsEntity.setMapDetails(stringObjectMap); + comparisonDetailsEntity.setDbName(String.valueOf(stringObjectMap.get("table_name"))); + stringObjectMap.remove("table_name"); + ComparisonDetailsEntity comparisonDetailsEntityOne = comparisonDetailsDao.saveComparisonDetails(comparisonDetailsEntity); + comparisonEntityOne.setComparisonDetailsEntity(comparisonDetailsEntityOne); + //保存操作日志 + //controlsLogDaoimpl.saveControlsLog(uuidDetail,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),comparisonDetailsEntity.getDbName()+"_option_log"); + } + } + jsonObjectList.put(comparisonDetailsEntity.getDbName(), mapDetails); + } + } else { + jsonObjectList.put(comparisonDetailsEntity.getDbName(), new ArrayList<>()); + } + jsonObjectList.remove(null); + list.add(jsonObjectList); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "1"); + JSONObject json1 = new JSONObject(); + json1.put("status", "200"); + json1.put("list", list); + return json1; + } catch (Exception e) { + logger.info("保存通用数据时候错误:{}", e.getMessage()); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(uuid, jsonObject.getString("appName"), jsonObject.getString("appCode"), jsonObject.toJSONString(), "接口新增", jsonObject.getString("optionName"), tableName + "_option_log", "2"); + + return BaseResult.getFailureMessageEntity("保存失败"); + } + } + } + } + return BaseResult.getFailureMessageEntity("保存失败","请检查传递参数"); + } + + //更新通用数据数据 + @Override + public Object updateEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if (jsonObject == null) { + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if (!checkStr(jsonObject.getString("mdmCode"))) { + return BaseResult.getFailureMessageEntity("主数据编码为空"); + } + if (!checkStr(jsonObject.getString("optionName"))) { + return BaseResult.getFailureMessageEntity("操作人为空"); + } + ComparisonEntity comparisonEntity = jsonObject.toJavaObject(ComparisonEntity.class); + ComparisonDetailsEntity comparisonDetailsEntity=new ComparisonDetailsEntity(); + List comparisonEntities=new ArrayList<>(); + //根据主数据编码查询表名称,字段名称等信息 10001 + try { + // comparisonEntities = comparisonDao.queryComparison(comparisonEntity); + + //comparisonEntities=getComparisonEntity(comparisonEntity); + comparisonEntities=getComparisonEntityCache(comparisonEntity,"main"); + }catch (Exception e){ + logger.info("根据主数据编码查询信息错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("更新失败"); + } + JSONObject jsonObjectMain=new JSONObject(); + JSONArray jsonArray=new JSONArray(); + List arrayList=new ArrayList<>(); + //根据dbtype和dbname分组,拿到表名称和表类型 + Map>> collect = comparisonEntities.stream().collect(Collectors.groupingBy(ComparisonEntity::getDbName, Collectors.groupingBy(ComparisonEntity::getDbType))); + List> keyPairs = collect.entrySet().stream() + .flatMap(e1 -> e1.getValue().keySet().stream() + .map(dbname -> new AbstractMap.SimpleEntry<>(e1.getKey(), dbname))) + .collect(Collectors.toList()); + for (Map.Entry keyPair : keyPairs) { + if(keyPair.getValue().equals("1")){ + String main = jsonObject.getString(keyPair.getKey()); + if(main!=null){ + jsonObjectMain = JSONObject.parseObject(main); + if(!checkStr(jsonObjectMain.getString("data_id"))){ + return BaseResult.getFailureMessageEntity("更新时候主表data_id不能为空"); + } + } + } + if(keyPair.getValue().equals("2")){ + jsonArray= jsonObject.getJSONArray(keyPair.getKey()); + if(jsonArray!= null) { + for (int i = 0; i < jsonArray.size(); i++) { + JSONObject jsonObjectDetails = jsonArray.getJSONObject(i); + if(!checkStr(jsonObjectDetails.getString("data_id"))){ + return BaseResult.getFailureMessageEntity("更新明细表时候明细表data_id不能为空"); + } + jsonObjectDetails.put("table_name", keyPair.getKey()); + } + arrayList.add(jsonArray); + } + } + } + Map map=new HashMap<>();//将主表数据存到map中 + List>> mapDetails=new ArrayList<>();//将子表数据存到map中 + if(comparisonEntities !=null && comparisonEntities.size()>0) { + map=spliceMainMap(comparisonEntities,jsonObjectMain,map,comparisonEntity,comparisonDetailsEntity); + //查询所有列 + List fields = getFields(comparisonEntity); + //根据data_id查询id.根据id更新主表数据,然后再根据主表id和明细表的data_id,删除明细表数据 + Map mapId=new HashMap<>(); + mapId.put("data_id",jsonObjectMain.getString("data_id")); + ComparisonEntity comparison=new ComparisonEntity(); + comparison.setDbName(comparisonEntity.getDbName()); + comparison.setMap(mapId); + comparison.setFields(fields); + List> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparison); + if(CollectionUtils.isEmpty(comparisonEntitiePages)){ + return BaseResult.getFailureMessageEntity("根据data_id查询id数据为空,请检查data_id"); + } + + //判断是否是树形结构 + if(comparisonEntities.get(0).getViewName().equals("1")){ + //根据data_id查询出parent_id,再根据parent_id得值查询data_id字段中为这个得值,如果有,将data_id为parent_id得id值保存到mdm_up_id中 + Map mapParent=new HashMap<>(); + mapParent.put("data_id",comparisonEntitiePages.get(0).get("parent_id")); + ComparisonEntity comparisonParent=new ComparisonEntity(); + comparisonParent.setDbName(comparisonEntity.getDbName()); + comparisonParent.setMap(mapId); + comparisonParent.setFields(fields); + List> comparisonEntitieParent = comparisonDao.queryComparisonPage(comparisonParent); + if(!CollectionUtils.isEmpty(comparisonEntitieParent)){ + map.put("mdm_up_id",comparisonEntitieParent.get(0).get("id")); + } + } + + String id = String.valueOf(comparisonEntitiePages.get(0).get("id")); + map.put("create_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + map.put("modify_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + map.put("org_id", "0"); + map.put("modify_time", new Date()); + map.put("sts", "Y"); + map.put("data_status","F");//数据状态 + map.put("update_status","0");//修改状态 + map.remove("id"); + comparisonEntity.setMap(map); + comparisonEntity.setId(id); + try { + List jsonObjects=new ArrayList<>(); + JSONObject jsonObjectList=new JSONObject(); + //更新主表数据 + Integer integer = comparisonDao.updateComparisonByType(comparisonEntity); + jsonObjectList.put(comparisonEntity.getDbName(),map); + if (integer>0) { + //保存子表数据 + if (arrayList != null && arrayList.size() > 0) { + mapDetails=spliceDetailMap(comparisonEntities,mapDetails,arrayList); + for (List> mapDetail : mapDetails) { + for (Map stringObjectMap : mapDetail) { + stringObjectMap.put("create_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + stringObjectMap.put("modify_user_id", "c796fd9ba4c9f5ff3cc2fa41a040e443"); + stringObjectMap.put("org_id", "0"); + stringObjectMap.put("modify_time", new Date()); + stringObjectMap.put("sts", "Y"); + stringObjectMap.put("data_status","F");//数据状态 + stringObjectMap.remove("id"); + comparisonDetailsEntity.setDataId(String.valueOf(stringObjectMap.get("data_id"))); + comparisonDetailsEntity.setFormmainId(id); + comparisonDetailsEntity.setMapDetails(stringObjectMap); + comparisonDetailsEntity.setDbName(String.valueOf(stringObjectMap.get("table_name"))); + stringObjectMap.remove("table_name"); + comparisonDetailsDao.updateComparisonDetailsByType(comparisonDetailsEntity); + } + } + jsonObjectList.put(comparisonDetailsEntity.getDbName(),mapDetails); + }else{ + jsonObjectList.put(comparisonDetailsEntity.getDbName(),new ArrayList<>()); + } + jsonObjectList.remove(null); + jsonObjects.add(jsonObjectList); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口更新",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log","1"); + JSONObject json1 = new JSONObject(); + json1.put("status","200"); + json1.put("list",jsonObjects); + return json1; + }else{ + return BaseResult.getFailureMessageEntity("更新失败"); + } + } catch (Exception e) { + logger.info("更新通用数据时候错误:{}", e.getMessage()); + //保存操作日志 + controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口更新",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log","2"); + return BaseResult.getFailureMessageEntity("更新失败"); + } + } + return BaseResult.getFailureMessageEntity("更新失败","请检查传递参数"); + } + + private List getFields(ComparisonEntity comparisonEntity) { + HashMap maps = new HashMap<>(); + maps.put("tableName",comparisonEntity.getDbName()); + return mdmModuleDao.queryMdMFields(maps); + } + + //删除通用数据 + @Override + public Object deleteEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if (jsonObject == null) { + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if (!checkStr(jsonObject.getString("mdmCode"))) { + return BaseResult.getFailureMessageEntity("主数据编码为空"); + } + if (!checkStr(jsonObject.getString("optionName"))) { + return BaseResult.getFailureMessageEntity("操作人为空"); + } + ComparisonEntity comparisonEntity = jsonObject.toJavaObject(ComparisonEntity.class); + ComparisonDetailsEntity comparisonDetailsEntity=new ComparisonDetailsEntity(); + List comparisonEntities=new ArrayList<>(); + //根据主数据编码查询表名称,字段名称等信息 10001 + try { + // comparisonEntities = comparisonDao.queryComparison(comparisonEntity); + + //comparisonEntities=getComparisonEntity(comparisonEntity); + comparisonEntities=getComparisonEntityCache(comparisonEntity,"main"); + }catch (Exception e){ + logger.info("根据主数据编码查询信息错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("删除失败"); + } + JSONObject jsonObjectMain=new JSONObject(); + //根据dbtype和dbname分组,拿到表名称和表类型 + Map>> collect = comparisonEntities.stream().collect(Collectors.groupingBy(ComparisonEntity::getDbName, Collectors.groupingBy(ComparisonEntity::getDbType))); + List> keyPairs = collect.entrySet().stream() + .flatMap(e1 -> e1.getValue().keySet().stream() + .map(dbname -> new AbstractMap.SimpleEntry<>(e1.getKey(), dbname))) + .collect(Collectors.toList()); + for (Map.Entry keyPair : keyPairs) { + if(keyPair.getValue().equals("1")){ + String main = jsonObject.getString(keyPair.getKey()); + if(main!=null){ + jsonObjectMain = JSONObject.parseObject(main); + if(!checkStr(jsonObjectMain.getString("data_id"))){ + return BaseResult.getFailureMessageEntity("更新时候主表data_id不能为空"); + } + } + } + } + + Map map=new HashMap<>(); + if(comparisonEntities !=null && comparisonEntities.size()>0) { + for (ComparisonEntity entity : comparisonEntities) { + //遍历主表下面的所有key,字段名 + for (String key : jsonObjectMain.keySet()) { + if (entity.getDbType().equals("1")) { + comparisonEntity.setDbName(entity.getDbName()); + if(entity.getEnName().equals(key)){ + map.put(key, jsonObjectMain.getString(key)); + } + } + if(entity.getDbType().equals("2")){ + comparisonDetailsEntity.setDbName(entity.getDbName()); + } + } + } + //查询所有列 + List fields = getFields(comparisonEntity); + //根据data_id查询主表id.根据id删除主表数据,然后再根据主表id和明细表data_id删除明细表数据 + Map mapId=new HashMap<>(); + mapId.put("data_id",jsonObjectMain.getString("data_id")); + ComparisonEntity comparison=new ComparisonEntity(); + comparison.setDbName(comparisonEntity.getDbName()); + comparison.setMap(mapId); + comparison.setFields(fields); + List> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparison); + if(CollectionUtils.isEmpty(comparisonEntitiePages)){ + return BaseResult.getFailureMessageEntity("根据data_id查询id数据为空,请检查data_id"); + } + + //递归删除树结构 1.树 2.列表 + if(comparisonEntities.get(0).getViewName().equals("1")){ + return recursiveDeleteComparison(comparisonEntitiePages,comparisonEntity); + } + + String id = String.valueOf(comparisonEntitiePages.get(0).get("id")); + + map.remove("id"); + comparisonEntity.setId(id); + comparisonEntity.setModify_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + comparisonEntity.setMap(map); + try { + Integer integer = comparisonDao.deleteComparison(comparisonEntity); + if(integer>0){ + if(comparisonDetailsEntity.getDbName()!=null){ + comparisonDetailsEntity.setFormmainId(id); + comparisonDetailsEntity.setModify_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443"); + comparisonDetailsDao.deleteComparisonDetails(comparisonDetailsEntity); + // controlsLogDaoimpl.saveControlsLog(comparisonDetailsEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log"); + } + controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log","1"); + JSONObject json1 = new JSONObject(); + json1.put("status","200"); + json1.put("integer",integer); + return json1; + }else{ + return BaseResult.getFailureMessageEntity("删除失败","请查看data_id是否在表中存在"); + } + }catch (Exception e){ + logger.info("删除通用数据数据错误:{}",e.getMessage()); + controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log","2"); + return BaseResult.getFailureMessageEntity("删除失败"); + } + } + return BaseResult.getFailureMessageEntity("删除失败","请检查传递参数"); + } + + //递归删除组织树 + private Object recursiveDeleteComparison(List> list,ComparisonEntity comparisonEntity){ + for(int i=0;i fields = getFields(comparisonEntity); + Map mapId=new HashMap<>(); + mapId.put("mdm_up_id",list.get(0).get("id")); + ComparisonEntity comparison=new ComparisonEntity(); + comparison.setDbName(comparisonEntity.getDbName()); + comparison.setMap(mapId); + comparison.setFields(fields); + List> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparison); + if(CollectionUtils.isNotEmpty(comparisonEntitiePages)){ + recursiveDeleteComparison(comparisonEntitiePages,comparisonEntity); + } + comparisonEntity.setId(String.valueOf(list.get(0).get("id"))); + Integer integer = comparisonDao.deleteComparison(comparisonEntity); + JSONObject json1 = new JSONObject(); + json1.put("status","200"); + json1.put("integer",integer); + return json1; + } + return null; + } + + //递归查询组织树 + private Object recursiveQueryComparison(List> list,ComparisonEntity comparisonEntity){ + if(CollectionUtils.isNotEmpty(list)) { + for (int i = 0; i < list.size(); i++) { + List fields = getFields(comparisonEntity); + Map mapId=new HashMap<>(); + mapId.put("mdm_up_id",list.get(0).get("id")); + ComparisonEntity comparison=new ComparisonEntity(); + comparison.setDbName(comparisonEntity.getDbName()); + comparison.setMap(mapId); + comparison.setFields(fields); + List> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparison); + if(CollectionUtils.isNotEmpty(comparisonEntitiePages)){ + recursiveQueryComparison(comparisonEntitiePages,comparisonEntity); + for (Map map : list) { + map.put("comparisonEntities",comparisonEntitiePages); + } + } + PageInfo pageInfo = new PageInfo(list); + JSONObject json1=new JSONObject(); + json1.put("status","200"); + json1.put("pageInfo",pageInfo); + return json1; + } + } + return null; + } + + //根据应用key和应用密钥获取应用编码和应用名称 + @Override + public SysExtensionApiEntity getAppNameAndCode(SysExtensionApiEntity sysExtensionApiEntity) { + String bodys = sysExtensionApiEntity.getBodys(); + SysApplicationEntity sendApp = sysExtensionApiEntity.getSendApp(); + JSONObject jsonObject = JSON.parseObject(bodys); + jsonObject.put("appName",sendApp.getName()); + jsonObject.put("appCode",sendApp.getAppId()); + sysExtensionApiEntity.setBodys(jsonObject.toJSONString()); + return sysExtensionApiEntity; + } + + //根据不同的日期格式,返回不同的值 + private String getRuleDate(String str){ + switch (str){ + case "yyyy-MM-dd": + return "%Y-%m-%d"; + case "yyyyMMdd": + return "%Y%m%d"; + case "yyyy-MM-dd HH:mm:ss": + return "Y-%m-%d %H:%i:%s"; + case "yyyyMMddHHmmss": + return "%Y%m%d%H%i%s"; + case "yyyyMMddHHmmssSSS": + return "%Y%m%d%H%i%s%f"; + default: + return null; + } + } + + //得到主表数据 + private Map spliceMainMap(List comparisonEntities,JSONObject jsonObjectMain,Map map,ComparisonEntity comparisonEntity,ComparisonDetailsEntity comparisonDetailsEntity){ + for (ComparisonEntity entity : comparisonEntities) { + //遍历主表下面的所有key,字段名 + for (String key : jsonObjectMain.keySet()) { + if (entity.getDbType().equals("1")) { + comparisonEntity.setDbName(entity.getDbName()); + //如果表中得字段与输入得字段相等,则存起来 + if(entity.getEnName().equals(key)){ + map.put(key, jsonObjectMain.getString(key)); + } + } + if(entity.getDbType().equals("2")){ + comparisonDetailsEntity.setDbName(entity.getDbName()); + } + } + } + return map; + } + + //得到明细表数据 + private List>> spliceDetailMap(List comparisonEntities,List>> mapDetails,List arrayList){ + if (arrayList != null && arrayList.size() > 0) { + for (JSONArray jsonArray : arrayList) { + List> list=new ArrayList<>(); + for (Object object : jsonArray) { + JSONObject jsonObject = new JSONObject(); + JSONObject jsonObjectDetails = (JSONObject) JSON.toJSON(object); + //遍历主表下面的所有key,字段名 + for (String key : jsonObjectDetails.keySet()) { + for (ComparisonEntity entity : comparisonEntities) { + if (entity.getDbType().equals("2") && entity.getEnName().equals(key)) { + jsonObject.put(key, jsonObjectDetails.getString(key)); + } + if(key.equals("table_name")){ + jsonObject.put(key,jsonObjectDetails.getString(key)); + } + } + } + list.add(jsonObject); + } + mapDetails.add(list); + } + } + return mapDetails; + } + + //根据主数据编码获取主表和明细表表名称,表字段信息 + public List getComparisonEntityCache(ComparisonEntity comparison,String type){ + List comparisonEntities = new ArrayList<>(); + //根据主数据编号获取模板主表 + MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(Long.valueOf(comparison.getMdmCode())); + //根据模板主表id获取模版表数据 + if(mdmModuleEntity!=null){ + //根据mdm_id查询mdm_module_db_fileds_rule中的必填项字段 + ComparisonEntity comparisonEntity=new ComparisonEntity(); + comparisonEntity.setmId(mdmModuleEntity.getId()); + List comparisonEntitiesFieldRule = comparisonDao.queryComparisonBymdmIdDbIdFiledId(comparisonEntity); + + //根据mdm_module得id判断是树结构还是列表结构 + MdmModuleViewEntity mdmModuleViewEntity=new MdmModuleViewEntity(); + mdmModuleViewEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleViewEntities = mdmModuleViewDao.query(mdmModuleViewEntity); + + //根据mdm_id查询mdm_module_db的信息 + MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity(); + mdmModuleDbEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDb(mdmModuleDbEntity); + if(CollectionUtils.isNotEmpty(mdmModuleDbEntities)){ + for (MdmModuleDbEntity moduleDbEntity : mdmModuleDbEntities) { + switch (type){ + case "main": + //获取主表和明细表的字段信息 + if(moduleDbEntity.getDbType().equals("1") || moduleDbEntity.getDbType().equals("2")){ + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity=new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setMdmId(mdmModuleEntity.getId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + if(CollectionUtils.isNotEmpty(mdmModuleDbFiledsEntities)){ + for (MdmModuleDbFiledsEntity moduleDbFiledsEntity : mdmModuleDbFiledsEntities) { + if (moduleDbFiledsEntity.getDbId().equals(moduleDbEntity.getId())) { + ComparisonEntity comparisonEntityFile = new ComparisonEntity(); + comparisonEntityFile.setChName(moduleDbFiledsEntity.getChName()); + comparisonEntityFile.setEnName(moduleDbFiledsEntity.getEnName()); + comparisonEntityFile.setFiledType(moduleDbFiledsEntity.getFiledType()); + comparisonEntityFile.setAddType(moduleDbFiledsEntity.getAddType()); + comparisonEntityFile.setUpdateType(moduleDbFiledsEntity.getUpdateType()); + comparisonEntityFile.setShowType(moduleDbFiledsEntity.getShowType()); + comparisonEntityFile.setQueryType(moduleDbFiledsEntity.getQueryType()); + comparisonEntityFile.setListType(moduleDbFiledsEntity.getListType()); + comparisonEntityFile.setViewType(moduleDbFiledsEntity.getViewType()); + comparisonEntityFile.setDbName(moduleDbEntity.getDbName()); + comparisonEntityFile.setDbType(moduleDbEntity.getDbType()); + comparisonEntityFile.setDbId(moduleDbEntity.getId()); + comparisonEntityFile.setmId(mdmModuleEntity.getId()); + comparisonEntityFile.setMdmName(mdmModuleEntity.getMdmName()); + comparisonEntityFile.setMdmCode(String.valueOf(mdmModuleEntity.getMdmCode())); + comparisonEntityFile.setViewName(CollectionUtils.isNotEmpty(mdmModuleViewEntities)?mdmModuleViewEntities.get(0).getViewName():null); + if(CollectionUtils.isNotEmpty(comparisonEntitiesFieldRule)){ + for (ComparisonEntity entity : comparisonEntitiesFieldRule) { + if(entity.getEnName().equals(moduleDbFiledsEntity.getEnName()) && entity.getDbType().equals(moduleDbEntity.getDbType())){ + //设置rule_code和rule_value,用于判断字段是否是必填项 + comparisonEntityFile.setRuleCode(entity.getRuleCode()); + comparisonEntityFile.setRuleValue(entity.getRuleValue()); + } + } + } + comparisonEntities.add(comparisonEntityFile); + } + } + } + } + break; + case "option": + if(moduleDbEntity.getDbType().equals("3")){ + MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity=new MdmModuleDbFiledsEntity(); + mdmModuleDbFiledsEntity.setDbId(moduleDbEntity.getId()); + List mdmModuleDbFiledsEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity); + if(CollectionUtils.isNotEmpty(mdmModuleDbFiledsEntities)){ + for (MdmModuleDbFiledsEntity moduleDbFiledsEntity : mdmModuleDbFiledsEntities) { + if (moduleDbFiledsEntity.getDbId().equals(moduleDbEntity.getId())) { + ComparisonEntity comparisonEntityFile = new ComparisonEntity(); + comparisonEntityFile.setChName(moduleDbFiledsEntity.getChName()); + comparisonEntityFile.setEnName(moduleDbFiledsEntity.getEnName()); + comparisonEntityFile.setFiledType(moduleDbFiledsEntity.getFiledType()); + comparisonEntityFile.setAddType(moduleDbFiledsEntity.getAddType()); + comparisonEntityFile.setUpdateType(moduleDbFiledsEntity.getUpdateType()); + comparisonEntityFile.setShowType(moduleDbFiledsEntity.getShowType()); + comparisonEntityFile.setQueryType(moduleDbFiledsEntity.getQueryType()); + comparisonEntityFile.setListType(moduleDbFiledsEntity.getListType()); + comparisonEntityFile.setViewType(moduleDbFiledsEntity.getViewType()); + comparisonEntityFile.setDbName(moduleDbEntity.getDbName()); + comparisonEntityFile.setDbType(moduleDbEntity.getDbType()); + comparisonEntityFile.setDbId(moduleDbEntity.getId()); + comparisonEntityFile.setmId(mdmModuleEntity.getId()); + comparisonEntityFile.setMdmName(mdmModuleEntity.getMdmName()); + comparisonEntityFile.setMdmCode(String.valueOf(mdmModuleEntity.getMdmCode())); + comparisonEntities.add(comparisonEntityFile); + } + } + } + } + break; + default: + break; + } + + } + } + return comparisonEntities; + } + return null; + } + + + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/dictionaryshop/entity/SysDictionaryshopEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/dictionaryshop/entity/SysDictionaryshopEntity.xml index b58fccde..121b8a25 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/dictionaryshop/entity/SysDictionaryshopEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/dictionaryshop/entity/SysDictionaryshopEntity.xml @@ -189,7 +189,6 @@ sts , org_id , company_id , - sorts, sts, )values( @@ -211,9 +210,6 @@ #{sts} , #{org_id} , #{companyId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_dictionaryshop a WHERE - a.sts = 'Y' ), - 'Y', ) diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/IGeneralDataDao.java b/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/IGeneralDataDao.java new file mode 100644 index 00000000..e7f315c1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/IGeneralDataDao.java @@ -0,0 +1,49 @@ +package com.hzya.frame.sysnew.generalData.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.sysnew.generalData.entity.GeneralDataEntity; + +import java.util.List; + +public interface IGeneralDataDao extends IBaseDao { + + /** + * + * @content 新增档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 16:49 + * **/ + GeneralDataEntity saveGeneralDataByType(GeneralDataEntity generalDataEntity); + + /** + * + * @content 查询档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 16:51 + * **/ + List queryGeneralData(GeneralDataEntity generalDataEntity); + + /** + * + * @content 编辑档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:17 + * **/ + Integer updateGeneralDataByType(GeneralDataEntity generalDataEntity); + + /** + * + * @content 删除档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:20 + * **/ + Integer deleteGeneralDataByType(GeneralDataEntity generalDataEntity); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/impl/GeneralDataDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/impl/GeneralDataDaoImpl.java new file mode 100644 index 00000000..914dacca --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/dao/impl/GeneralDataDaoImpl.java @@ -0,0 +1,40 @@ +package com.hzya.frame.sysnew.generalData.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.sysnew.generalData.dao.IGeneralDataDao; +import com.hzya.frame.sysnew.generalData.entity.GeneralDataEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + + +@Repository(value = "generalDataDaoImpl") +public class GeneralDataDaoImpl extends MybatisGenericDao implements IGeneralDataDao { + //新增档案对照 + @Override + public GeneralDataEntity saveGeneralDataByType(GeneralDataEntity generalDataEntity) { + generalDataEntity = super.save(getSqlIdPrifx() + "saveGeneralDataByType", generalDataEntity); + return generalDataEntity; + } + + //查询档案对照 + @Override + public List queryGeneralData(GeneralDataEntity generalDataEntity) { + List query = super.query(getSqlIdPrifx() + "queryGeneralData", generalDataEntity); + return query; + } + + //编辑档案对照 + @Override + public Integer updateGeneralDataByType(GeneralDataEntity generalDataEntity) { + int update = super.update(getSqlIdPrifx() + "updateGeneralDataByType", generalDataEntity); + return update; + } + + //删除档案对照 + @Override + public Integer deleteGeneralDataByType(GeneralDataEntity generalDataEntity) { + int update = super.update(getSqlIdPrifx() + "deleteGeneralDataByType", generalDataEntity); + return update; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.java b/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.java new file mode 100644 index 00000000..ac9bc603 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.java @@ -0,0 +1,169 @@ +package com.hzya.frame.sysnew.generalData.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * + * @content 档案对照实体类 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 16:21 + * **/ +public class GeneralDataEntity extends BaseEntity { + private String archivesType;//类型 + private String leftCode;//左编码 + private String rightCode;//右编码 + + private String leftAppId;//左应用id + private String leftAppCode;//左应用编码 + private String leftAppName;//左应用名称 + private String leftApiId;//左接口ID + private String leftId;//左id + private String leftName;//左名称 + private String rightAppId;//右应用id + private String rightAppCode;//右应用编码 + private String rightAppName;//右应用名称 + private String rightApiId;//右接口ID + private String rightId;//右id + private String rightName;//右名称 + + private String leftOrg;//左公司 + private String rightOrg;//右公司 + + public String getLeftOrg() { + return leftOrg; + } + + public void setLeftOrg(String leftOrg) { + this.leftOrg = leftOrg; + } + + public String getRightOrg() { + return rightOrg; + } + + public void setRightOrg(String rightOrg) { + this.rightOrg = rightOrg; + } + + public String getArchivesType() { + return archivesType; + } + + public void setArchivesType(String archivesType) { + this.archivesType = archivesType; + } + + public String getLeftCode() { + return leftCode; + } + + public void setLeftCode(String leftCode) { + this.leftCode = leftCode; + } + + public String getRightCode() { + return rightCode; + } + + public void setRightCode(String rightCode) { + this.rightCode = rightCode; + } + + public String getLeftAppId() { + return leftAppId; + } + + public void setLeftAppId(String leftAppId) { + this.leftAppId = leftAppId; + } + + public String getLeftAppCode() { + return leftAppCode; + } + + public void setLeftAppCode(String leftAppCode) { + this.leftAppCode = leftAppCode; + } + + public String getLeftAppName() { + return leftAppName; + } + + public void setLeftAppName(String leftAppName) { + this.leftAppName = leftAppName; + } + + public String getLeftApiId() { + return leftApiId; + } + + public void setLeftApiId(String leftApiId) { + this.leftApiId = leftApiId; + } + + public String getLeftId() { + return leftId; + } + + public void setLeftId(String leftId) { + this.leftId = leftId; + } + + public String getLeftName() { + return leftName; + } + + public void setLeftName(String leftName) { + this.leftName = leftName; + } + + public String getRightAppId() { + return rightAppId; + } + + public void setRightAppId(String rightAppId) { + this.rightAppId = rightAppId; + } + + public String getRightAppCode() { + return rightAppCode; + } + + public void setRightAppCode(String rightAppCode) { + this.rightAppCode = rightAppCode; + } + + public String getRightAppName() { + return rightAppName; + } + + public void setRightAppName(String rightAppName) { + this.rightAppName = rightAppName; + } + + public String getRightApiId() { + return rightApiId; + } + + public void setRightApiId(String rightApiId) { + this.rightApiId = rightApiId; + } + + public String getRightId() { + return rightId; + } + + public void setRightId(String rightId) { + this.rightId = rightId; + } + + public String getRightName() { + return rightName; + } + + public void setRightName(String rightName) { + this.rightName = rightName; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.xml new file mode 100644 index 00000000..518027f5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/entity/GeneralDataEntity.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into + + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + + ( + + id , + left_app_id , + left_app_code , + left_app_name , + left_api_id , + left_id , + left_code , + left_name , + right_app_id , + right_app_code , + right_app_name , + right_api_id , + right_id , + right_code , + right_name , + left_org , + right_org , + create_user_id , + modify_user_id , + org_id , + company_id , + create_time, + modify_time, + sts + + )values( + + #{id} , + #{leftAppId} , + #{leftAppCode} , + #{leftAppName} , + #{leftApiId} , + #{leftId} , + #{leftCode} , + #{leftName} , + #{rightAppId} , + #{rightAppCode} , + #{rightAppName} , + #{rightApiId} , + #{rightId} , + #{rightCode} , + #{rightName} , + #{leftOrg} , + #{rightOrg} , + #{sorts} , + #{create_user_id} , + #{modify_user_id} , + #{org_id} , + #{companyId} , + #{create_time} , + now() , + #{modify_time} , + now() , + #{sts} , + 'Y' + + ) + + + + + update + + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + + set + + left_app_id = #{leftAppId}, + left_app_code = #{leftAppCode}, + left_app_name = #{leftAppName}, + left_api_id = #{leftApiId}, + left_id = #{leftId}, + left_code = #{leftCode}, + left_name = #{leftName}, + right_app_id = #{rightAppId}, + right_app_code = #{rightAppCode}, + right_app_name = #{rightAppName}, + right_api_id = #{rightApiId}, + right_id = #{rightId}, + right_code = #{rightCode}, + right_name = #{rightName}, + left_org = #{leftOrg} , + right_org = #{rightOrg} , + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + modify_time = now(), + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId} + + where id = #{id} + + + + + update + + sys_personnel_control + sys_org_control + sys_stock_control + sys_merchant_control + sys_taxrate_control + sys_project_control + sys_bank_control + sys_bankaccount_control + sys_assets_control + + set sts= 'N' ,modify_time = now(),modify_user_id = #{modify_user_id} + + and left_app_id = #{leftAppId} + and left_app_code = #{leftAppCode} + and left_app_name = #{leftAppName} + and left_api_id = #{leftApiId} + and left_id = #{leftId} + and left_code = #{leftCode} + and left_name = #{leftName} + and right_app_id = #{rightAppId} + and right_app_code = #{rightAppCode} + and right_app_name = #{rightAppName} + and right_api_id = #{rightApiId} + and right_id = #{rightId} + and right_code = #{rightCode} + and right_name = #{rightName} + left_org = #{leftOrg} , + right_org = #{rightOrg} , + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and id=#{id} and sts='Y' + + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/service/IGeneralDataService.java b/service/src/main/java/com/hzya/frame/sysnew/generalData/service/IGeneralDataService.java new file mode 100644 index 00000000..105511f6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/service/IGeneralDataService.java @@ -0,0 +1,59 @@ +package com.hzya.frame.sysnew.generalData.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.sysnew.generalData.entity.GeneralDataEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +public interface IGeneralDataService extends IBaseService { + + /** + * + * @content 新增档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 16:23 + * **/ + JsonResultEntity saveEntity(JSONObject jsonObject); + + /** + * + * @content 查询档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:00 + * **/ + JsonResultEntity queryEntityPage(JSONObject jsonObject); + + /** + * + * @content 编辑档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:16 + * **/ + JsonResultEntity updateEntity(JSONObject jsonObject); + + /** + * + * @content 删除档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:23 + * **/ + JsonResultEntity deleteEntity(JSONObject jsonObject); + + /** + * + * @content 查询单个档案对照 + * @Param + * @Return + * @Author hecan + * @Date 2024/5/6 17:26 + * **/ + JsonResultEntity getEntity(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/generalData/service/impl/GeneralDataServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/generalData/service/impl/GeneralDataServiceImpl.java new file mode 100644 index 00000000..16095bc6 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/generalData/service/impl/GeneralDataServiceImpl.java @@ -0,0 +1,241 @@ +package com.hzya.frame.sysnew.generalData.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.sysnew.generalData.dao.IGeneralDataDao; +import com.hzya.frame.sysnew.generalData.entity.GeneralDataEntity; +import com.hzya.frame.sysnew.generalData.service.IGeneralDataService; +import com.hzya.frame.sysnew.homeComponent.dao.ISysHomeComponentDao; +import com.hzya.frame.uuid.UUIDLong; +import com.hzya.frame.uuid.UUIDUtils; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Arrays; +import java.util.List; + +@Service(value = "generalDataServiceImpl") +public class GeneralDataServiceImpl extends BaseService implements IGeneralDataService { + private IGeneralDataDao generalDataDao; + + @Autowired + public void setGeneralDataDao(IGeneralDataDao dao) { + this.generalDataDao = dao; + this.dao = dao; + } + + //新增档案对照 + @Override + public JsonResultEntity saveEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(jsonObject == null ){ + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if(!checkStr(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案对照类型为空"); + } + if(!checkStr(jsonObject.getString("leftCode"))){ + return BaseResult.getFailureMessageEntity("左编码为空"); + } + if(!checkStr(jsonObject.getString("rightCode"))){ + return BaseResult.getFailureMessageEntity("右编码为空"); + } + if(!checkStr(jsonObject.getString("leftAppCode"))){ + return BaseResult.getFailureMessageEntity("左应用编码为空"); + } + if(!checkStr(jsonObject.getString("rightAppCode"))){ + return BaseResult.getFailureMessageEntity("右应用编码为空"); + } + List fzhs = Arrays.asList(new String[]{"1", "2", "6", "73", "D01" , "jobass" , "93" , "96", "22"}); + if(!fzhs.contains(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案类型错误,请联系管理员"); + } + /* switch (jsonObject.getString("archivesType")){ + case "1"://人员对照 + GeneralDataEntity generalDataEntityPersonnel = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityPersonnel); + break; + case "2"://部门档案 + GeneralDataEntity generalDataEntityOrg = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityOrg); + break; + case "6"://存货对照 + GeneralDataEntity generalDataEntityStock = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityStock); + break; + case "73"://客商辅助核算 + GeneralDataEntity generalDataEntityMerchant = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityMerchant); + break; + case "D01"://税率 + GeneralDataEntity generalDataEntityTaxrate = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityTaxrate); + break; + case "jobass"://项目辅助核算 + GeneralDataEntity generalDataEntityProject = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityProject); + break; + case "93"://银行类别 + GeneralDataEntity generalDataEntityBank = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityBank); + break; + case "96"://银行账户 + GeneralDataEntity generalDataEntityBankaccount = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityBankaccount); + break; + case "22"://资产类别 + GeneralDataEntity generalDataEntityAssets = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataDao.saveGeneralDataByType(generalDataEntityAssets); + break; + default: + break; + }*/ + GeneralDataEntity generalDataEntity = jsonObject.toJavaObject(GeneralDataEntity.class); + generalDataEntity.setId(UUIDUtils.getUUID()); + generalDataEntity.setCreate_user_id("1"); + generalDataEntity.setModify_user_id("1"); + generalDataEntity.setOrg_id("0"); + generalDataEntity.setCompanyId("0"); + try { + GeneralDataEntity generalDataEntitySave = generalDataDao.saveGeneralDataByType(generalDataEntity); + return BaseResult.getSuccessMessageEntity("新增成功",generalDataEntitySave); + }catch (Exception e){ + logger.info("档案对照新增错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("新增失败"); + } + } + + //查询档案对照 + @Override + public JsonResultEntity queryEntityPage(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(jsonObject == null ){ + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if(!checkStr(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案对照类型为空"); + } + /*if(!checkStr(jsonObject.getString("leftCode"))){ + return BaseResult.getFailureMessageEntity("左编码为空"); + } + if(!checkStr(jsonObject.getString("rightCode"))){ + return BaseResult.getFailureMessageEntity("右编码为空"); + }*/ + List fzhs = Arrays.asList(new String[]{"1", "2", "6", "73", "D01" , "jobass" , "93" , "96", "22"}); + if(!fzhs.contains(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案类型错误,请联系管理员"); + } + GeneralDataEntity generalDataEntity = jsonObject.toJavaObject(GeneralDataEntity.class); + try { + List generalDataEntities = generalDataDao.queryGeneralData(generalDataEntity); + PageInfo pageInfo=new PageInfo(generalDataEntities); + return BaseResult.getSuccessMessageEntity("查询成功",pageInfo); + }catch (Exception e){ + logger.info("档案对照查询错误:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("查询失败"); + } + } + + //编辑档案对照 + @Override + public JsonResultEntity updateEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(jsonObject == null ){ + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if(!checkStr(jsonObject.getString("id"))){ + return BaseResult.getFailureMessageEntity("id为空"); + } + if(!checkStr(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案对照类型为空"); + } + /*if(!checkStr(jsonObject.getString("leftCode"))){ + return BaseResult.getFailureMessageEntity("左编码为空"); + } + if(!checkStr(jsonObject.getString("rightCode"))){ + return BaseResult.getFailureMessageEntity("右编码为空"); + } + if(!checkStr(jsonObject.getString("leftAppCode"))){ + return BaseResult.getFailureMessageEntity("左应用编码为空"); + } + if(!checkStr(jsonObject.getString("rightAppCode"))){ + return BaseResult.getFailureMessageEntity("右应用编码为空"); + }*/ + List fzhs = Arrays.asList(new String[]{"1", "2", "6", "73", "D01" , "jobass" , "93" , "96", "22"}); + if(!fzhs.contains(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案类型错误,请联系管理员"); + } + GeneralDataEntity generalDataEntity = jsonObject.toJavaObject(GeneralDataEntity.class); + try { + generalDataDao.updateGeneralDataByType(generalDataEntity); + return BaseResult.getSuccessMessageEntity("编辑成功"); + }catch (Exception e){ + logger.info("档案对照编辑失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("编辑失败"); + } + } + + //删除档案对照 + @Override + public JsonResultEntity deleteEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(jsonObject == null ){ + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if(!checkStr(jsonObject.getString("id"))){ + return BaseResult.getFailureMessageEntity("id为空"); + } + if(!checkStr(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案对照类型为空"); + } + /*if(!checkStr(jsonObject.getString("leftCode"))){ + return BaseResult.getFailureMessageEntity("左编码为空"); + } + if(!checkStr(jsonObject.getString("rightCode"))){ + return BaseResult.getFailureMessageEntity("右编码为空"); + } + if(!checkStr(jsonObject.getString("leftAppCode"))){ + return BaseResult.getFailureMessageEntity("左应用编码为空"); + } + if(!checkStr(jsonObject.getString("rightAppCode"))){ + return BaseResult.getFailureMessageEntity("右应用编码为空"); + }*/ + List fzhs = Arrays.asList(new String[]{"1", "2", "6", "73", "D01" , "jobass" , "93" , "96", "22"}); + if(!fzhs.contains(jsonObject.getString("archivesType"))){ + return BaseResult.getFailureMessageEntity("档案类型错误,请联系管理员"); + } + GeneralDataEntity generalDataEntity = jsonObject.toJavaObject(GeneralDataEntity.class); + try { + generalDataEntity.setCreate_user_id("1"); + generalDataEntity.setModify_user_id("1"); + generalDataDao.deleteGeneralDataByType(generalDataEntity); + return BaseResult.getSuccessMessageEntity("删除成功"); + }catch (Exception e){ + logger.info("档案对照删除失败:{}",e.getMessage()); + return BaseResult.getFailureMessageEntity("删除失败"); + } + } + + //查询单个档案对照对象 + @Override + public JsonResultEntity getEntity(JSONObject json) { + JSONObject jsonObject = json.getJSONObject("jsonStr"); + if(jsonObject == null ){ + return BaseResult.getFailureMessageEntity("数据为空,请先传递数据"); + } + if(!checkStr(jsonObject.getString("id"))){ + return BaseResult.getFailureMessageEntity("id为空"); + } + GeneralDataEntity generalDataEntity = jsonObject.toJavaObject(GeneralDataEntity.class); + try { + GeneralDataEntity generalDataEntityOne = generalDataDao.queryOne(generalDataEntity); + return BaseResult.getSuccessMessageEntity("查询单个成功",generalDataEntityOne); + }catch (Exception e){ + logger.info("查询单个档案对照错误:{}",e.getMessage()); + return BaseResult.getSuccessMessageEntity("查询单个失败"); + } + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/grovy/service/IGroovyIntegrationService.java b/service/src/main/java/com/hzya/frame/sysnew/grovy/service/IGroovyIntegrationService.java new file mode 100644 index 00000000..2d9d72f9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/grovy/service/IGroovyIntegrationService.java @@ -0,0 +1,26 @@ +package com.hzya.frame.sysnew.grovy.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * Groovy 脚本工具集成 + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2024-05-15 13:47 + */ +public interface IGroovyIntegrationService { + + + /**** + * Groovy 脚本执行方法 + * @content: + * @author 👻👻👻👻👻👻👻👻 gjh + * @date 2024-05-15 13:49 + * @param jsonObject 请求参数对象 + * @return com.hzya.frame.web.entity.JsonResultEntity + **/ + Object groovyScriptExecution(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/grovy/service/impl/GroovyIntegrationServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/grovy/service/impl/GroovyIntegrationServiceImpl.java new file mode 100644 index 00000000..ee5ee3a1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/grovy/service/impl/GroovyIntegrationServiceImpl.java @@ -0,0 +1,84 @@ +package com.hzya.frame.sysnew.grovy.service.impl; + + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.sysnew.grovy.service.IGroovyIntegrationService; +import com.hzya.frame.util.GroovyUtil; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * Groovy 脚本执行实现类 + * + * @author 👻👻👻👻👻👻👻👻👻👻 gjh + * @version 1.0 + * @content + * @date 2024-05-15 13:50 + */ +@Service(value = "groovyIntegrationService") +public class GroovyIntegrationServiceImpl implements IGroovyIntegrationService { + private static final Logger logger = LoggerFactory.getLogger(GroovyIntegrationServiceImpl.class); + + + @Override + public Object groovyScriptExecution(JSONObject jsonObject) { + Object object = GroovyUtil.execute(jsonObject); + return object; + } + + public static void main(String[] args) { + java.lang.String str = "{\"data\":{\"enablestate\":\"2\",\"user_password\":\"Hzya@1314\",\"gender\":\"12312\",\"user_name\":\"测试用户\",\"modify_time\":1719305835000,\"document_rule_num\":112,\"pk_org\":{\"org_mnecode\":\"1\",\"modify_time\":1718866279000,\"document_rule_num\":4,\"add_status\":\"0\",\"org_address\":\"1\",\"delete_status\":\"1\",\"org_innercode\":\"1\",\"id\":\"f7a8cee35fce4aa8ab266b3c7f125d7d\",\"data_status\":\"F\",\"modify_user_id\":\"1\",\"org_name\":\"开发部\",\"sorts\":4,\"document_rule\":\"ZZ-2024-06-20-00004\",\"create_user_id\":\"1\",\"create_time\":1718864103000,\"company_id\":\"Y\",\"org_memo\":\"1\",\"update_status\":\"0\",\"sts\":\"Y\",\"org_tel\":\"1\",\"org_id\":\"Y\",\"org_ncindustry\":\"1\",\"org_fatherorg\":\"c4913dde8da142bab4206fc084269382\",\"org_code\":\"003\",\"org_principal\":\"1\",\"org_countryzone\":\"1\"},\"add_status\":\"0\",\"pwdlevelcode\":\"\",\"user_type\":\"1\",\"user_code\":\"17633965916\",\"delete_status\":\"1\",\"id\":\"d99fe4e1c211450a960f7a1057da0d2c\",\"data_status\":\"F\",\"modify_user_id\":\"1\",\"sorts\":346,\"document_rule\":\"YH-2024-06-25-00112\",\"create_user_id\":\"1\",\"create_time\":1719305229000,\"company_id\":\"Y\",\"user_code_q\":\"KP003\",\"format\":\"ZH-CN\",\"mobile\":\"123123\",\"identityverifycode\":\"静态密码验证\",\"islocked\":\"N\",\"update_status\":\"0\",\"base_doc_type\":\"0\",\"sts\":\"Y\",\"login_name\":\"123123\",\"pwdparam\":\"2024-06-17\",\"org_id\":\"Y\",\"abledate\":\"2024-06-17 00:00:00\",\"isca\":\"Y\",\"contentlang\":\"ZH\"},\"query\":\"[]\",\"header\":\"[{\\\"parameterType\\\":\\\"fundamental\\\",\\\"length\\\":\\\"100\\\",\\\"index\\\":0,\\\"description\\\":\\\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA87rrNR\\\",\\\"concreteType\\\":\\\"String\\\",\\\"id\\\":\\\"7127798c-b731-453a-b3ac-cfe9033eeace\\\",\\\"parameterName\\\":\\\"pubKey\\\",\\\"required\\\":true,\\\"example\\\":\\\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA87rrNREgMNeOEOwlvM2iqqEfshDadRHziDSB2PbRnoMqSv1nGr3XBlZuseNj5HmxDEkLhOdfyw0yjzoz3wK7XhFpeN4Iyf7NT7hps5jAQMEpnul9Qwmj5qUr/eK5SaO9H8n7sh9BvCdrX9oRUh+U2/ceA3O+y/MUHk5DRvSadc8FhpqbOaNBbAzPnyYAwpVUPvaJ90jcGN1ZG99HR1GEzC+Cn9s6vgt7dYL6ysMs36bSP47xraDSxpfr0CLwa6JV/9KjLIeqL1ZaMtK0CJ1zJGCBA6O6kgxeE9Ul7q2lSS6mPAEJ78izaTYsrjhLpKT+eTtFBOLFbiCrbLp8tVE5kwIDAQAB\\\"},{\\\"parameterType\\\":\\\"fundamental\\\",\\\"length\\\":\\\"50\\\",\\\"index\\\":1,\\\"description\\\":\\\"OA\\\",\\\"concreteType\\\":\\\"String\\\",\\\"id\\\":\\\"7f965281-df0f-4d2f-b005-07e061fcde49\\\",\\\"parameterName\\\":\\\"client_id\\\",\\\"required\\\":true,\\\"example\\\":\\\"OA\\\"},{\\\"parameterType\\\":\\\"authport\\\",\\\"length\\\":\\\"50\\\",\\\"index\\\":2,\\\"concreteType\\\":\\\"String\\\",\\\"id\\\":\\\"cbc0e105-17c0-4385-8863-8903303edc1f\\\",\\\"parameterName\\\":\\\"access_token\\\",\\\"example\\\":[\\\"attribute\\\",\\\"data\\\",\\\"access_token\\\"]}]\",\"body\":\"[{\\\"index\\\":0,\\\"id\\\":\\\"beeedbc6-24c2-4093-9a5e-20fced9fb1b4\\\",\\\"parameterName\\\":\\\"body\\\",\\\"first\\\":true}]\"}"; + A88772 s = new A88772(); + s.execute(str); + } + + static class A88772 { + String execute(String jsonStr) { + com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject(); + com.alibaba.fastjson.JSONObject bodys = new com.alibaba.fastjson.JSONObject(); + + com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr); + com.alibaba.fastjson.JSONObject data = reqData.getJSONObject("data"); + com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject(); + ufinterfaceObject.put("billtype", "customer"); + ufinterfaceObject.put("isexchange", "Y"); + ufinterfaceObject.put("replace", "Y"); + ufinterfaceObject.put("sender", "openUser"); + ufinterfaceObject.put("account", "ycjf"); + ufinterfaceObject.put("groupcode", "ycjf"); + com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject(); + com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject(); + billheadObject.put("code", data.get("code")); + billheadObject.put("custprop", data.get("custprop")); + billheadObject.put("custstate", data.get("custstate")); + billheadObject.put("pk_custclass", data.get("pk_custclass")); + billheadObject.put("pk_country", data.get("pk_country")); + billheadObject.put("pk_timezone", "P0800"); + billheadObject.put("pk_format", "ZH-CN"); + billheadObject.put("enablestate", data.get("enablestate")); + billheadObject.put("name", data.get("name")); + billheadObject.put("pk_group", data.get("pk_group")); + billheadObject.put("pk_org", data.get("pk_org")); + billheadObject.put("taxpayerid", data.get("taxpayerid")); + billObject.put("billhead", billheadObject); + ufinterfaceObject.put("bill", billObject); + bodys.put("ufinterface", ufinterfaceObject); + returnObject.put("bodys",bodys.toJSONString()); + return returnObject.toJSONString(); + + + + + + } + } + + +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/homeComponent/entity/SysHomeComponentEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/homeComponent/entity/SysHomeComponentEntity.xml index fbd96673..be0fae3b 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/homeComponent/entity/SysHomeComponentEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/homeComponent/entity/SysHomeComponentEntity.xml @@ -142,7 +142,7 @@ + keyProperty=""> insert into sys_home_component( id , @@ -158,7 +158,6 @@ sts , org_id , company_id , - sorts, sts, )values( @@ -176,15 +175,12 @@ #{sts} , #{org_id} , #{companyId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_home_component a WHERE - a.sts = 'Y' ), - 'Y', ) - + insert into sys_home_component(id, name, code, state, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) values @@ -194,7 +190,7 @@ - + insert into sys_home_component(id, name, code, state, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml index 78fd315d..617674c7 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTask/entity/SysIntegratedForegroundTaskEntity.xml @@ -131,7 +131,7 @@ from sys_integrated_foreground_task where id = #{ id } and sts='Y' - + insert into sys_integrated_foreground_task( id , @@ -146,7 +146,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -163,13 +162,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_integrated_foreground_task a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -177,7 +175,7 @@ - + insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskDetail/entity/SysIntegratedForegroundTaskDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskDetail/entity/SysIntegratedForegroundTaskDetailEntity.xml index f9c35743..0faa98a8 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskDetail/entity/SysIntegratedForegroundTaskDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskDetail/entity/SysIntegratedForegroundTaskDetailEntity.xml @@ -138,7 +138,7 @@ - + insert into sys_integrated_foreground_task_detail( id , @@ -155,7 +155,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -174,13 +173,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_integrated_foreground_task_detail a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_integrated_foreground_task_detail(formmain_id, arg_code, arg_name, arg_type, arg_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -188,7 +186,7 @@ - + insert into sys_integrated_foreground_task_detail(formmain_id, arg_code, arg_name, arg_type, arg_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskParameter/entity/SysIntegratedForegroundTaskParameterEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskParameter/entity/SysIntegratedForegroundTaskParameterEntity.xml index 1f2cfc6d..4421e1d0 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskParameter/entity/SysIntegratedForegroundTaskParameterEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integratedForegroundTaskParameter/entity/SysIntegratedForegroundTaskParameterEntity.xml @@ -120,7 +120,7 @@ - + insert into sys_integrated_foreground_task_parameter( id , @@ -134,7 +134,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -150,13 +149,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_integrated_foreground_task_parameter a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_integrated_foreground_task_parameter(formmain_id, in_parameter, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -164,7 +162,7 @@ - + insert into sys_integrated_foreground_task_parameter(formmain_id, in_parameter, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values @@ -252,7 +250,7 @@ update sys_integrated_foreground_task_parameter set sts= 'N' ,modify_time = #{m and a.org_id = #{org_id} and a.sts='Y' - order by a.sorts asc + order by a.sorts desc order by ${sort} ${order} diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTask/entity/IntegrationTaskEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integtationTask/entity/IntegrationTaskEntity.xml index 359c64f0..c21235c5 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTask/entity/IntegrationTaskEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTask/entity/IntegrationTaskEntity.xml @@ -318,5 +318,25 @@ where id = #{id} concat(replace(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),'-',ifnull(max(right(task_code,4)), 0)+1)) end as task_code from integration_task where sts='Y' and task_code like concat('%',substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,10),'%') + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTask/service/impl/IntegrationTaskCacheableServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTask/service/impl/IntegrationTaskCacheableServiceImpl.java index da3c2496..dc45d538 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTask/service/impl/IntegrationTaskCacheableServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTask/service/impl/IntegrationTaskCacheableServiceImpl.java @@ -40,7 +40,7 @@ public class IntegrationTaskCacheableServiceImpl implements IIntegrationTaskCach } @Override - @CachePut(cacheNames="IntegrationTask",key = "#entity.id",unless = "#result == null") + @CacheEvict(cacheNames="IntegrationTask",key = "#entity.id") public IntegrationTaskEntity updateIntegrationTaskEntity(IntegrationTaskEntity entity) { if(entity.getId() != null && !"".equals(entity.getId())){ integrationTaskDao.update(entity); @@ -65,7 +65,7 @@ public class IntegrationTaskCacheableServiceImpl implements IIntegrationTaskCach } @Override - @CachePut(cacheNames="IntegrationTaskLiving",key = "#entity.id",unless = "#result == null") + @CacheEvict(cacheNames="IntegrationTaskLiving",key = "#entity.id") public IntegrationTaskLivingEntity updateIntegrationTaskLivingEntity(IntegrationTaskLivingEntity entity) { if(entity.getId() != null && !"".equals(entity.getId())){ iIntegrationTaskLivingDao.update(entity); @@ -90,7 +90,7 @@ public class IntegrationTaskCacheableServiceImpl implements IIntegrationTaskCach } @Override - @CachePut(cacheNames="sysApplicationPlugin",key = "#entity.id",unless = "#result == null") + @CacheEvict(cacheNames="sysApplicationPlugin",key = "#entity.id") public SysApplicationPluginEntity updateSysApplicationPluginEntity(SysApplicationPluginEntity entity) { if(entity.getId() != null && !"".equals(entity.getId())){ iSysApplicationPluginDao.update(entity); diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/IIntegrationTaskLivingDetailsDao.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/IIntegrationTaskLivingDetailsDao.java index c6c91d37..5e902dd0 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/IIntegrationTaskLivingDetailsDao.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/IIntegrationTaskLivingDetailsDao.java @@ -1,15 +1,44 @@ package com.hzya.frame.sysnew.integtationTaskLivingDetails.dao; import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; -import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsVo; + +import java.util.List; /** * 集成任务-实例详情(integration_task_living_details: table)表数据库访问层 * * @author makejava - * @since 2024-05-06 15:37:55 + * @since 2024-05-15 14:06:30 */ public interface IIntegrationTaskLivingDetailsDao extends IBaseDao { +/** + * + * @content 保存成功日志 + * @author laborer + * @date 2024/5/15 0015 15:34 + * + */ + IntegrationTaskLivingDetailsEntity saveSuccessLog(IntegrationTaskLivingDetailsEntity entity); +/** + * + * @content 通过主键逻辑删除数据 + * @author laborer + * @date 2024/5/15 0015 15:47 + * + * @return + */ + + int deleteById(String id); + + List queryPageLeftTask(IntegrationTaskLivingDetailsVo entity); + + Integer entity_updatebyid(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity); + + IntegrationTaskLivingDetailsEntity queryEntity(IntegrationTaskLivingDetailsEntity entity); + + Integer deleteEntity(IntegrationTaskLivingDetailsEntity deleteEntity); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/impl/IntegrationTaskLivingDetailsDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/impl/IntegrationTaskLivingDetailsDaoImpl.java index 44e93fb8..a810e396 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/impl/IntegrationTaskLivingDetailsDaoImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/dao/impl/IntegrationTaskLivingDetailsDaoImpl.java @@ -2,16 +2,55 @@ package com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.impl; import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsVo; import org.springframework.stereotype.Repository; import com.hzya.frame.basedao.dao.MybatisGenericDao; + +import java.util.List; + /** * 集成任务-实例详情(IntegrationTaskLivingDetails)表数据库访问层 * * @author makejava - * @since 2024-05-06 15:37:55 + * @since 2024-05-15 14:06:34 */ @Repository(value = "IntegrationTaskLivingDetailsDaoImpl") public class IntegrationTaskLivingDetailsDaoImpl extends MybatisGenericDao implements IIntegrationTaskLivingDetailsDao{ - +/** + * + * @content 保存成功日志 + * @author laborer + * @date 2024/5/15 0015 15:34 + */ + @Override + public IntegrationTaskLivingDetailsEntity saveSuccessLog(IntegrationTaskLivingDetailsEntity entity) { + return super.save("com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.impl.IntegrationTaskLivingDetailsDaoImpl.entity_insert_success",entity); + } + + @Override + public int deleteById(String id) { + return super.delete("com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.impl.IntegrationTaskLivingDetailsDaoImpl.entity_logicDelete_for_uuid",id); + } + + @Override + public List queryPageLeftTask(IntegrationTaskLivingDetailsVo entity) { + List o = (List) super.selectList(getSqlIdPrifx() + "queryPageLeftTask", entity); + return o; + } + + @Override + public Integer entity_updatebyid(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) { + return super.update(getSqlIdPrifx() + "entity_updatebyid", integrationTaskLivingDetailsEntity); + } + + @Override + public Integer deleteEntity(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) { + return super.update(getSqlIdPrifx() + "deleteEntity", integrationTaskLivingDetailsEntity); + } + + @Override + public IntegrationTaskLivingDetailsEntity queryEntity(IntegrationTaskLivingDetailsEntity entity) { + return (IntegrationTaskLivingDetailsEntity) super.selectOne(getSqlIdPrifx() + "queryEntity", entity); + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.java index 5b90c88e..c85adbd5 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.java @@ -6,30 +6,60 @@ import com.hzya.frame.web.entity.BaseEntity; * 集成任务-实例详情(IntegrationTaskLivingDetails)实体类 * * @author makejava - * @since 2024-05-06 15:37:55 + * @since 2024-05-15 14:06:41 */ public class IntegrationTaskLivingDetailsEntity extends BaseEntity { /** 集成任务-实例_id */ private String taskLinvingId; - /** integration_task_id */ - private String taskId; - /** 任务编码 */ - private String taskCode; - /** 任务名称 */ - private String taskName; - /** 任务状态1、执行中2、执行成功 3、执行失败 4\当前任务已停止*/ - private String taskStatus; - /** 当前任务开始时间 */ - private Date startTime; - /** 结束时间 */ - private Date endTime; - /** 耗时 */ - private String diffTime; - /** 公司id */ - private String companyId; + /** 返回结果 */ + private String result; + /** 原始查询条件 */ + private String queryCondition; + /** 源系统主键 */ + private String rootAppPk; + /** 原系统单据 */ + private String rootAppBill; + /** 最新源系统数据详情 */ + private String rootAppNewData; + /** 最新传输信息 */ + private String newTransmitInfo; + /** 最新推送时间 */ + private Date newPushDate; + /** 是否补推(Y是N不是) */ + private String repairPust; + /** 场景id */ + private String senceId; + /** 最新推送状态 */ + private String newState; + /** 单据业务日期 */ + private String businessDate; + /** 插件id */ + private String pluginId; + /** 处理时间 */ + private Date processingTime; + /** 处理备注 */ + private String processingRemarks; + /** 处理⼈名称 */ + private String processorName; + /** 处理⼈ */ + private String processor; + /** 下游系统单号 */ + private String newSystemNumber; + /** 下游系统主键 */ + private String newSystemPrimary; /** 备注 */ private String remark; + /** 扩展1 */ + private String def1; + /** 扩展2 */ + private String def2; + /** 扩展3 */ + private String def3; + /** 扩展4 */ + private String def4; + /** 扩展5 */ + private String def5; public String getTaskLinvingId() { @@ -40,68 +70,148 @@ public class IntegrationTaskLivingDetailsEntity extends BaseEntity { this.taskLinvingId = taskLinvingId; } - public String getTaskId() { - return taskId; + public String getResult() { + return result; } - public void setTaskId(String taskId) { - this.taskId = taskId; + public void setResult(String result) { + this.result = result; } - public String getTaskCode() { - return taskCode; + public String getQueryCondition() { + return queryCondition; } - public void setTaskCode(String taskCode) { - this.taskCode = taskCode; + public void setQueryCondition(String queryCondition) { + this.queryCondition = queryCondition; } - public String getTaskName() { - return taskName; + public String getRootAppPk() { + return rootAppPk; } - public void setTaskName(String taskName) { - this.taskName = taskName; + public void setRootAppPk(String rootAppPk) { + this.rootAppPk = rootAppPk; } - public String getTaskStatus() { - return taskStatus; + public String getRootAppBill() { + return rootAppBill; } - public void setTaskStatus(String taskStatus) { - this.taskStatus = taskStatus; + public void setRootAppBill(String rootAppBill) { + this.rootAppBill = rootAppBill; } - public Date getStartTime() { - return startTime; + public String getRootAppNewData() { + return rootAppNewData; } - public void setStartTime(Date startTime) { - this.startTime = startTime; + public void setRootAppNewData(String rootAppNewData) { + this.rootAppNewData = rootAppNewData; } - public Date getEndTime() { - return endTime; + public String getNewTransmitInfo() { + return newTransmitInfo; } - public void setEndTime(Date endTime) { - this.endTime = endTime; + public void setNewTransmitInfo(String newTransmitInfo) { + this.newTransmitInfo = newTransmitInfo; } - public String getDiffTime() { - return diffTime; + public Date getNewPushDate() { + return newPushDate; } - public void setDiffTime(String diffTime) { - this.diffTime = diffTime; + public void setNewPushDate(Date newPushDate) { + this.newPushDate = newPushDate; } - public String getCompanyId() { - return companyId; + public String getRepairPust() { + return repairPust; } - public void setCompanyId(String companyId) { - this.companyId = companyId; + public void setRepairPust(String repairPust) { + this.repairPust = repairPust; + } + + public String getSenceId() { + return senceId; + } + + public void setSenceId(String senceId) { + this.senceId = senceId; + } + + public String getNewState() { + return newState; + } + + public void setNewState(String newState) { + this.newState = newState; + } + + public String getBusinessDate() { + return businessDate; + } + + public void setBusinessDate(String businessDate) { + this.businessDate = businessDate; + } + + public String getPluginId() { + return pluginId; + } + + public void setPluginId(String pluginId) { + this.pluginId = pluginId; + } + + public Date getProcessingTime() { + return processingTime; + } + + public void setProcessingTime(Date processingTime) { + this.processingTime = processingTime; + } + + public String getProcessingRemarks() { + return processingRemarks; + } + + public void setProcessingRemarks(String processingRemarks) { + this.processingRemarks = processingRemarks; + } + + public String getProcessorName() { + return processorName; + } + + public void setProcessorName(String processorName) { + this.processorName = processorName; + } + + public String getProcessor() { + return processor; + } + + public void setProcessor(String processor) { + this.processor = processor; + } + + public String getNewSystemNumber() { + return newSystemNumber; + } + + public void setNewSystemNumber(String newSystemNumber) { + this.newSystemNumber = newSystemNumber; + } + + public String getNewSystemPrimary() { + return newSystemPrimary; + } + + public void setNewSystemPrimary(String newSystemPrimary) { + this.newSystemPrimary = newSystemPrimary; } public String getRemark() { @@ -111,5 +221,46 @@ public class IntegrationTaskLivingDetailsEntity extends BaseEntity { public void setRemark(String remark) { this.remark = remark; } + + public String getDef1() { + return def1; + } + + public void setDef1(String def1) { + this.def1 = def1; + } + + public String getDef2() { + return def2; + } + + public void setDef2(String def2) { + this.def2 = def2; + } + + public String getDef3() { + return def3; + } + + public void setDef3(String def3) { + this.def3 = def3; + } + + public String getDef4() { + return def4; + } + + public void setDef4(String def4) { + this.def4 = def4; + } + + public String getDef5() { + return def5; + } + + public void setDef5(String def5) { + this.def5 = def5; + } + } diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.xml index 661668c2..fb8310d6 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsEntity.xml @@ -2,328 +2,734 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + id ,task_linving_id - ,task_id - ,task_code - ,task_name - ,remark - ,task_status - ,start_time - ,end_time - ,diff_time - ,sorts - ,create_user_id + ,result + ,query_condition + ,root_app_pk + ,root_app_bill + ,root_app_new_data + ,new_transmit_info + ,new_push_date + ,repair_pust ,create_time - ,modify_user_id + ,create_user_id ,modify_time + ,modify_user_id ,sts - ,org_id - ,company_id + ,sorts + ,sence_id + ,new_state + ,business_date + ,plugin_id + ,processing_time + ,processing_remarks + ,processor_name + ,processor + ,new_system_number + ,new_system_primary + ,remark + ,def1 + ,def2 + ,def3 + ,def4 + ,def5 + - - - - + select + + from integration_task_living_details + + and id = #{id} + and task_linving_id = #{taskLinvingId} + and result = #{result} + and query_condition = #{queryCondition} + and root_app_pk = #{rootAppPk} + and root_app_bill = #{rootAppBill} + and root_app_new_data = #{rootAppNewData} + and new_transmit_info = #{newTransmitInfo} + and new_push_date = #{newPushDate} + and repair_pust = #{repairPust} + and create_time = #{create_time} + and create_user_id = #{create_user_id} + and modify_time = #{modify_time} + and modify_user_id = #{modify_user_id} + and sts = #{sts} + and sorts = #{sorts} + and sence_id = #{senceId} + and new_state = #{newState} + and business_date = #{businessDate} + and plugin_id = #{pluginId} + and processing_time = #{processingTime} + and processing_remarks = #{processingRemarks} + and processor_name = #{processorName} + and processor = #{processor} + and new_system_number = #{newSystemNumber} + and new_system_primary = #{newSystemPrimary} + and remark = #{remark} + and def1 = #{def1} + and def2 = #{def2} + and def3 = #{def3} + and def4 = #{def4} + and def5 = #{def5} and sts='Y' - - order by sorts asc - order by ${sort} ${order} + + order by sorts asc + order by ${sort} ${order} + + + + - + select + + from integration_task_living_details + + and id like concat('%',#{id},'%') + and task_linving_id like concat('%',#{taskLinvingId},'%') + and result like concat('%',#{result},'%') + and query_condition like concat('%',#{queryCondition},'%') + and root_app_pk like concat('%',#{rootAppPk},'%') + and root_app_bill like concat('%',#{rootAppBill},'%') + and root_app_new_data like concat('%',#{rootAppNewData},'%') + and new_transmit_info like concat('%',#{newTransmitInfo},'%') + and new_push_date like concat('%',#{newPushDate},'%') + and repair_pust like concat('%',#{repairPust},'%') + and create_time like concat('%',#{create_time},'%') + and create_user_id like concat('%',#{create_user_id},'%') + and modify_time like concat('%',#{modify_time},'%') + and modify_user_id like concat('%',#{modify_user_id},'%') + and sts like concat('%',#{sts},'%') + and sorts like concat('%',#{sorts},'%') + and sence_id like concat('%',#{senceId},'%') + and new_state like concat('%',#{newState},'%') + and business_date like concat('%',#{businessDate},'%') + and plugin_id like concat('%',#{pluginId},'%') + and processing_time like concat('%',#{processingTime},'%') + and processing_remarks like concat('%',#{processingRemarks},'%') + and processor_name like concat('%',#{processorName},'%') + and processor like concat('%',#{processor},'%') + and new_system_number like concat('%',#{newSystemNumber},'%') + and new_system_primary like concat('%',#{newSystemPrimary},'%') + and remark like concat('%',#{remark},'%') + and def1 like concat('%',#{def1},'%') + and def2 like concat('%',#{def2},'%') + and def3 like concat('%',#{def3},'%') + and def4 like concat('%',#{def4},'%') + and def5 like concat('%',#{def5},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from integration_task_living_details + + or id = #{id} + or task_linving_id = #{taskLinvingId} + or result = #{result} + or query_condition = #{queryCondition} + or root_app_pk = #{rootAppPk} + or root_app_bill = #{rootAppBill} + or root_app_new_data = #{rootAppNewData} + or new_transmit_info = #{newTransmitInfo} + or new_push_date = #{newPushDate} + or repair_pust = #{repairPust} + or create_time = #{create_time} + or create_user_id = #{create_user_id} + or modify_time = #{modify_time} + or modify_user_id = #{modify_user_id} + or sts = #{sts} + or sorts = #{sorts} + or sence_id = #{senceId} + or new_state = #{newState} + or business_date = #{businessDate} + or plugin_id = #{pluginId} + or processing_time = #{processingTime} + or processing_remarks = #{processingRemarks} + or processor_name = #{processorName} + or processor = #{processor} + or new_system_number = #{newSystemNumber} + or new_system_primary = #{newSystemPrimary} + or remark = #{remark} + or def1 = #{def1} + or def2 = #{def2} + or def3 = #{def3} + or def4 = #{def4} + or def5 = #{def5} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into integration_task_living_details( + + + insert into integration_task_living_details( + + id , + task_linving_id , + result , + query_condition , + root_app_pk , + root_app_bill , + root_app_new_data , + new_transmit_info , + new_push_date , + repair_pust , + create_time , + create_user_id , + modify_time , + modify_user_id , + sts , + sorts , + sence_id , + new_state , + business_date , + plugin_id , + processing_time , + processing_remarks , + processor_name , + processor , + new_system_number , + new_system_primary , + remark , + def1 , + def2 , + def3 , + def4 , + def5 , + sts, + + )values( + + #{id} , + #{taskLinvingId} , + #{result} , + #{queryCondition} , + #{rootAppPk} , + #{rootAppBill} , + #{rootAppNewData} , + #{newTransmitInfo} , + #{newPushDate} , + #{repairPust} , + #{create_time} , + #{create_user_id} , + #{modify_time} , + #{modify_user_id} , + #{sts} , + #{sorts} , + #{senceId} , + #{newState} , + #{businessDate} , + #{pluginId} , + #{processingTime} , + #{processingRemarks} , + #{processorName} , + #{processor} , + #{newSystemNumber} , + #{newSystemPrimary} , + #{remark} , + #{def1} , + #{def2} , + #{def3} , + #{def4} , + #{def5} , + 'Y', + + ) + + + + + insert into integration_task_living_details_success( - id , - task_linving_id , - task_id , - task_code , - task_name , - remark , - task_status , - start_time , - end_time , - diff_time , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - company_id , + id , + task_linving_id , + result , + query_condition , + root_app_pk , + root_app_bill , + root_app_new_data , + new_transmit_info , + new_push_date , + repair_pust , + create_time , + create_user_id , + modify_time , + modify_user_id , + sts , + sorts , + sence_id , + new_state , + business_date , + plugin_id , + processing_time , + processing_remarks , + processor_name , + processor , + new_system_number , + new_system_primary , + remark , + def1 , + def2 , + def3 , + def4 , + def5 , sts, )values( - #{id} , - #{taskLinvingId} , - #{taskId} , - #{taskCode} , - #{taskName} , - #{remark} , - #{taskStatus} , - #{startTime} , - #{endTime} , - #{diffTime} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - #{companyId} , - + #{id} , + #{taskLinvingId} , + #{result} , + #{queryCondition} , + #{rootAppPk} , + #{rootAppBill} , + #{rootAppNewData} , + #{newTransmitInfo} , + #{newPushDate} , + #{repairPust} , + #{create_time} , + #{create_user_id} , + #{modify_time} , + #{modify_user_id} , + #{sts} , + #{sorts} , + #{senceId} , + #{newState} , + #{businessDate} , + #{pluginId} , + #{processingTime} , + #{processingRemarks} , + #{processorName} , + #{processor} , + #{newSystemNumber} , + #{newSystemPrimary} , + #{remark} , + #{def1} , + #{def2} , + #{def3} , + #{def4} , + #{def5} , 'Y', ) - - - insert into integration_task_living_details(task_linving_id, task_id, task_code, task_name, remark, task_status, - start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, - company_id, sts) - values - - (#{entity.taskLinvingId},#{entity.taskId},#{entity.taskCode},#{entity.taskName},#{entity.remark},#{entity.taskStatus},#{entity.startTime},#{entity.endTime},#{entity.diffTime},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, - 'Y') - - - - - insert into integration_task_living_details(task_linving_id, task_id, task_code, task_name, remark, task_status, - start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, - company_id) - values - - (#{entity.taskLinvingId},#{entity.taskId},#{entity.taskCode},#{entity.taskName},#{entity.remark},#{entity.taskStatus},#{entity.startTime},#{entity.endTime},#{entity.diffTime},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) - - on duplicate key update - task_linving_id = values(task_linving_id), - task_id = values(task_id), - task_code = values(task_code), - task_name = values(task_name), - remark = values(remark), - task_status = values(task_status), - start_time = values(start_time), - end_time = values(end_time), - diff_time = values(diff_time), - sorts = values(sorts), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id), - company_id = values(company_id) - - - - update integration_task_living_details set - - task_linving_id = #{taskLinvingId}, - task_id = #{taskId}, - task_code = #{taskCode}, - task_name = #{taskName}, - remark = #{remark}, - task_status = #{taskStatus}, - start_time = #{startTime}, - end_time = #{endTime}, - diff_time = #{diffTime}, - sorts = #{sorts}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - company_id = #{companyId}, - - where id = #{id} - - - + + + insert into integration_task_living_details(task_linving_id, result, query_condition, root_app_pk, root_app_bill, root_app_new_data, new_transmit_info, new_push_date, repair_pust, create_time, create_user_id, modify_time, modify_user_id, sts, sence_id, new_state, business_date, plugin_id, processing_time, processing_remarks, processor_name, processor, new_system_number, new_system_primary, remark, def1, def2, def3, def4, def5, sts) + values + + (#{entity.taskLinvingId},#{entity.result},#{entity.queryCondition},#{entity.rootAppPk},#{entity.rootAppBill},#{entity.rootAppNewData},#{entity.newTransmitInfo},#{entity.newPushDate},#{entity.repairPust},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id},#{entity.sts},#{entity.senceId},#{entity.newState},#{entity.businessDate},#{entity.pluginId},#{entity.processingTime},#{entity.processingRemarks},#{entity.processorName},#{entity.processor},#{entity.newSystemNumber},#{entity.newSystemPrimary},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5}, 'Y') + + + + + insert into integration_task_living_details(task_linving_id, result, query_condition, root_app_pk, root_app_bill, root_app_new_data, new_transmit_info, new_push_date, repair_pust, create_time, create_user_id, modify_time, modify_user_id, sts, sence_id, new_state, business_date, plugin_id, processing_time, processing_remarks, processor_name, processor, new_system_number, new_system_primary, remark, def1, def2, def3, def4, def5) + values + + (#{entity.taskLinvingId},#{entity.result},#{entity.queryCondition},#{entity.rootAppPk},#{entity.rootAppBill},#{entity.rootAppNewData},#{entity.newTransmitInfo},#{entity.newPushDate},#{entity.repairPust},#{entity.create_time},#{entity.create_user_id},#{entity.modify_time},#{entity.modify_user_id},#{entity.sts},#{entity.senceId},#{entity.newState},#{entity.businessDate},#{entity.pluginId},#{entity.processingTime},#{entity.processingRemarks},#{entity.processorName},#{entity.processor},#{entity.newSystemNumber},#{entity.newSystemPrimary},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5}) + + on duplicate key update + task_linving_id = values(task_linving_id), + result = values(result), + query_condition = values(query_condition), + root_app_pk = values(root_app_pk), + root_app_bill = values(root_app_bill), + root_app_new_data = values(root_app_new_data), + new_transmit_info = values(new_transmit_info), + new_push_date = values(new_push_date), + repair_pust = values(repair_pust), + create_time = values(create_time), + create_user_id = values(create_user_id), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + sts = values(sts), + sence_id = values(sence_id), + new_state = values(new_state), + business_date = values(business_date), + plugin_id = values(plugin_id), + processing_time = values(processing_time), + processing_remarks = values(processing_remarks), + processor_name = values(processor_name), + processor = values(processor), + new_system_number = values(new_system_number), + new_system_primary = values(new_system_primary), + remark = values(remark), + def1 = values(def1), + def2 = values(def2), + def3 = values(def3), + def4 = values(def4), + def5 = values(def5) + + +update integration_task_living_details set + + task_linving_id = #{taskLinvingId}, + result = #{result}, + query_condition = #{queryCondition}, + root_app_pk = #{rootAppPk}, + root_app_bill = #{rootAppBill}, + root_app_new_data = #{rootAppNewData}, + new_transmit_info = #{newTransmitInfo}, + new_push_date = #{newPushDate}, + repair_pust = #{repairPust}, + create_time = #{create_time}, + create_user_id = #{create_user_id}, + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id}, + sts = #{sts}, + sence_id = #{senceId}, + new_state = #{newState}, + business_date = #{businessDate}, + plugin_id = #{pluginId}, + processing_time = #{processingTime}, + processing_remarks = #{processingRemarks}, + processor_name = #{processorName}, + processor = #{processor}, + new_system_number = #{newSystemNumber}, + new_system_primary = #{newSystemPrimary}, + remark = #{remark}, + def1 = #{def1}, + def2 = #{def2}, + def3 = #{def3}, + def4 = #{def4}, + def5 = #{def5}, + +where id = #{id} + + + update integration_task_living_details set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} where id = #{id} - - - update integration_task_living_details set sts= 'N' ,modify_time = #{modify_time},modify_user_id = - #{modify_user_id} - - and id = #{id} - and task_linving_id = #{taskLinvingId} - and task_id = #{taskId} - and task_code = #{taskCode} - and task_name = #{taskName} - and remark = #{remark} - and task_status = #{taskStatus} - and start_time = #{startTime} - and end_time = #{endTime} - and diff_time = #{diffTime} - and sorts = #{sorts} - and sts = #{sts} - and company_id = #{companyId} + + + +update integration_task_living_details set sts= 'N' +where id = #{id} + + + +update integration_task_living_details set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and task_linving_id = #{taskLinvingId} + and result = #{result} + and query_condition = #{queryCondition} + and root_app_pk = #{rootAppPk} + and root_app_bill = #{rootAppBill} + and root_app_new_data = #{rootAppNewData} + and new_transmit_info = #{newTransmitInfo} + and new_push_date = #{newPushDate} + and repair_pust = #{repairPust} + and sts = #{sts} + and sorts = #{sorts} + and sence_id = #{senceId} + and new_state = #{newState} + and business_date = #{businessDate} + and plugin_id = #{pluginId} + and processing_time = #{processingTime} + and processing_remarks = #{processingRemarks} + and processor_name = #{processorName} + and processor = #{processor} + and new_system_number = #{newSystemNumber} + and new_system_primary = #{newSystemPrimary} + and remark = #{remark} + and def1 = #{def1} + and def2 = #{def2} + and def3 = #{def3} + and def4 = #{def4} + and def5 = #{def5} and sts='Y' - - - - + + + + delete from integration_task_living_details where id = #{id} + + + + + + id, + task_linving_id, + result, + query_condition, + root_app_pk, + root_app_bill, + root_app_new_data, + new_transmit_info, + new_push_date, + repair_pust, + sence_id, + plugin_id, + new_state, + business_date, + create_time, + create_user_id, + modify_time, + modify_user_id, + sts, + new_system_primary, + new_system_number, + processor, + processor_name, + processing_remarks, + processing_time + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + update integration_task_living_details set + + result = #{result}, + query_condition = #{query_condition}, + root_app_pk = #{root_app_pk}, + root_app_bill = #{root_app_bill}, + root_app_new_data = #{root_app_new_data}, + new_transmit_info = #{new_transmit_info}, + new_push_date = #{new_push_date}, + repair_pust = #{repair_pust}, + sence_id = #{sence_id}, + plugin_id = #{plugin_id}, + new_state = #{new_state}, + business_date = #{business_date}, + create_user_id = #{create_user_id}, + modify_user_id = #{modify_user_id}, + new_system_primary = #{new_system_primary}, + new_system_number = #{new_system_number}, + processor = #{processor}, + processor_name = #{processor_name}, + processing_remarks = #{processing_remarks}, + processing_time = #{processing_time}, + modify_time =#{modify_time} + modify_time = now() + + where id = #{id} + + +update + + integration_task_living_details + + + integration_task_living_details_success + + set sts= 'N' +where id = #{id} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsVo.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsVo.java new file mode 100644 index 00000000..2e349368 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/entity/IntegrationTaskLivingDetailsVo.java @@ -0,0 +1,347 @@ +package com.hzya.frame.sysnew.integtationTaskLivingDetails.entity; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.hzya.frame.web.entity.BaseEntity; +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; + +/** + * @description: 集成任务实例详情 entity + * @tableName: integration_task_living_details + * @entityName: IntegrationTaskLivingDetailsEntity + * @author: gjh + * @history: 1.0 + */ +public class IntegrationTaskLivingDetailsVo extends BaseEntity { + + /** task_name */ + private String task_name; + /** integration_task_id */ + private String task_id; + /** + * 集成任务-实例_id + */ + private String task_linving_id; + /** + * 返回结果 + */ + private String result; + /** + * 原始查询条件 + */ + private String query_condition; + /** + * 源系统主键 + */ + private String root_app_pk; + /** + * 原系统单据 + */ + private String root_app_bill; + /** + * 最新源系统数据详情(上游系统入参) + */ + private String root_app_new_data; + /** + * 最新传输信息(下游系统返回结果) + */ + private String new_transmit_info; + private String new_push_date; + /** + * 是否补推(Y是N不是) + */ + private String repair_pust; + + //场景id + private String sence_id; + + // 插件id + private String plugin_id; + + // 插件名称 + private String plugin_name; + /** + * 推送状态 + */ + private String new_state; + + /** + * 作为查询条件的推送状态 + */ + private String param_new_state; + + /** + * 单据业务日期 + */ + private String business_date; + + + /** + * 下游系统主键 + */ + private String new_system_primary; + /** + * 下游系统单号 + */ + private String new_system_number; + /** + * 处理⼈ + */ + private String processor; + + /** + * 处理⼈名称 + */ + private String processor_name; + + /** + * 处理备注 + */ + private String processing_remarks; + /** + * 处理时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date processing_time; + + + public String getParam_new_state() { + return param_new_state; + } + + public void setParam_new_state(String param_new_state) { + this.param_new_state = param_new_state; + } + + public String getBusiness_date() { + return business_date; + } + + public void setBusiness_date(String business_date) { + this.business_date = business_date; + } + + public String getNew_state() { + return new_state; + } + + public void setNew_state(String new_state) { + this.new_state = new_state; + } + + public String getSence_id() { + return sence_id; + } + + public void setSence_id(String sence_id) { + this.sence_id = sence_id; + } + + /** + * 集成任务-实例_id + */ + public void setTask_linving_id(String task_linving_id) { + this.task_linving_id = task_linving_id; + } + + /** + * 集成任务-实例_id + */ + public String getTask_linving_id() { + return task_linving_id; + } + + + /** + * 返回结果 + */ + public void setResult(String result) { + this.result = result; + } + + /** + * 返回结果 + */ + public String getResult() { + return result; + } + + + /** + * 原始查询条件 + */ + public void setQuery_condition(String query_condition) { + this.query_condition = query_condition; + } + + /** + * 原始查询条件 + */ + public String getQuery_condition() { + return query_condition; + } + + + /** + * 源系统主键 + */ + public void setRoot_app_pk(String root_app_pk) { + this.root_app_pk = root_app_pk; + } + + /** + * 源系统主键 + */ + public String getRoot_app_pk() { + return root_app_pk; + } + + + /** + * 原系统单据 + */ + public void setRoot_app_bill(String root_app_bill) { + this.root_app_bill = root_app_bill; + } + + /** + * 原系统单据 + */ + public String getRoot_app_bill() { + return root_app_bill; + } + + + /** + * 最新源系统数据详情 + */ + public void setRoot_app_new_data(String root_app_new_data) { + this.root_app_new_data = root_app_new_data; + } + + /** + * 最新源系统数据详情 + */ + public String getRoot_app_new_data() { + return root_app_new_data; + } + + + /** + * 最新传输信息 + */ + public void setNew_transmit_info(String new_transmit_info) { + this.new_transmit_info = new_transmit_info; + } + + /** + * 最新传输信息 + */ + public String getNew_transmit_info() { + return new_transmit_info; + } + + public String getNew_push_date() { + return new_push_date; + } + + public void setNew_push_date(String new_push_date) { + this.new_push_date = new_push_date; + } + + /** + * 是否补推(Y是N不是) + */ + public void setRepair_pust(String repair_pust) { + this.repair_pust = repair_pust; + } + + /** + * 是否补推(Y是N不是) + */ + public String getRepair_pust() { + return repair_pust; + } + + public String getPlugin_id() { + return plugin_id; + } + + public void setPlugin_id(String plugin_id) { + this.plugin_id = plugin_id; + } + + public String getTask_name() { + return task_name; + } + + public void setTask_name(String task_name) { + this.task_name = task_name; + } + + public String getTask_id() { + return task_id; + } + + public void setTask_id(String task_id) { + this.task_id = task_id; + } + + public String getPlugin_name() { + return plugin_name; + } + + public void setPlugin_name(String plugin_name) { + this.plugin_name = plugin_name; + } + + public String getNew_system_primary() { + return new_system_primary; + } + + public void setNew_system_primary(String new_system_primary) { + this.new_system_primary = new_system_primary; + } + + public String getNew_system_number() { + return new_system_number; + } + + public void setNew_system_number(String new_system_number) { + this.new_system_number = new_system_number; + } + + public String getProcessor() { + return processor; + } + + public void setProcessor(String processor) { + this.processor = processor; + } + + public String getProcessor_name() { + return processor_name; + } + + public void setProcessor_name(String processor_name) { + this.processor_name = processor_name; + } + + public String getProcessing_remarks() { + return processing_remarks; + } + + public void setProcessing_remarks(String processing_remarks) { + this.processing_remarks = processing_remarks; + } + + public Date getProcessing_time() { + return processing_time; + } + + public void setProcessing_time(Date processing_time) { + this.processing_time = processing_time; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/IIntegrationTaskLivingDetailsService.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/IIntegrationTaskLivingDetailsService.java index 49393331..cb8e1ea6 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/IIntegrationTaskLivingDetailsService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/IIntegrationTaskLivingDetailsService.java @@ -9,25 +9,105 @@ import com.hzya.frame.web.entity.JsonResultEntity; * 集成任务-实例详情(IntegrationTaskLivingDetails)表服务接口 * * @author makejava - * @since 2024-05-06 15:37:55 + * @since 2024-05-15 14:06:43 */ public interface IIntegrationTaskLivingDetailsService extends IBaseService{ /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity * @Author lvleigang - * @Description 查询任务日志列表分页 + * @Description 查询任务实例列表分页 * @Date 11:52 上午 2024/3/27 **/ - JsonResultEntity queryEntityPage(JSONObject jsonObject); + JsonResultEntity testLog(JSONObject jsonObject)throws Exception; + + /** + * + * @content 成功日志公用接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + JsonResultEntity saveLogToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception; + /** + * + * @content 失败日志公用接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + JsonResultEntity saveLogToFail(IntegrationTaskLivingDetailsEntity entity)throws Exception; + /** + * + * @content 重推成功接口(成功数据挪到成功日志表) + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + JsonResultEntity saveLogFailToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception; + /** + * + * @content 重推失败更新接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + JsonResultEntity updateLogFailToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception; + /** * @param jsonObject * @return com.hzya.frame.web.entity.JsonResultEntity * @Author lvleigang - * @Description 获取任务 - * @Date 2:36 下午 2024/3/27 + * @Description 查询列表 分页 + * @Date 2:18 下午 2023/7/17 **/ - JsonResultEntity getEntity(JSONObject jsonObject); + JsonResultEntity queryPage(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取数据 根据id + * @Date 2:18 下午 2023/7/17 + **/ + JsonResultEntity queryEntity(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 批量推送 + * @Date 2:18 下午 2023/7/17 + **/ + JsonResultEntity batchPush(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 重新推送 + * @Date 2:18 下午 2023/7/17 + **/ + JsonResultEntity repush(JSONObject jsonObject); + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 手工处理 + * @Date 2:18 下午 2023/7/17 + **/ + JsonResultEntity manualProcessing(JSONObject jsonObject); + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除 + * @Date 2:18 下午 2023/7/17 + **/ + JsonResultEntity deleteEntity(JSONObject jsonObject); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/impl/IntegrationTaskLivingDetailsServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/impl/IntegrationTaskLivingDetailsServiceImpl.java index 365a712d..33320df4 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/impl/IntegrationTaskLivingDetailsServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLivingDetails/service/impl/IntegrationTaskLivingDetailsServiceImpl.java @@ -1,79 +1,415 @@ package com.hzya.frame.sysnew.integtationTaskLivingDetails.service.impl; +import cn.dev33.satoken.stp.StpUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; -import com.hzya.frame.sysnew.integtationTaskLiving.entity.IntegrationTaskLivingEntity; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.basedao.entity.ConditionType; +import com.hzya.frame.basedao.entity.ConnectType; +import com.hzya.frame.basedao.entity.WhereCriterion; +import com.hzya.frame.basedao.service.impl.BaseDaoUtilImpl; import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao; +import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsVo; import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService; +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; +import com.hzya.frame.util.PluginUtils; +import com.hzya.frame.uuid.UUIDLong; +import com.hzya.frame.uuid.UUIDUtils; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; +import com.hzya.frame.web.exception.BaseSystemException; +import org.springframework.core.task.TaskExecutor; import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; import javax.annotation.Resource; import com.hzya.frame.basedao.service.impl.BaseService; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; import java.util.List; /** * 集成任务-实例详情(IntegrationTaskLivingDetails)表服务实现类 * * @author makejava - * @since 2024-05-06 15:37:55 + * @since 2024-05-15 14:06:46 */ @Service(value = "integrationTaskLivingDetailsService") public class IntegrationTaskLivingDetailsServiceImpl extends BaseService implements IIntegrationTaskLivingDetailsService { - + private IIntegrationTaskLivingDetailsDao integrationTaskLivingDetailsDao; - + @Resource + private TaskExecutor taskExecutor; + + @Autowired + private BaseDaoUtilImpl baseDaoUtilImpl; @Autowired public void setIntegrationTaskLivingDetailsDao(IIntegrationTaskLivingDetailsDao dao) { this.integrationTaskLivingDetailsDao = dao; this.dao = dao; } +/** + * + * @content 完全用于测试,此接口不使用1 + * @author laborer + * @date 2024/5/15 0015 16:00 + * + */ - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 查询任务日志列表分页 - * @Date 11:52 上午 2024/3/27 - **/ - @Override - public JsonResultEntity queryEntityPage(JSONObject jsonObject) { - IntegrationTaskLivingDetailsEntity entity = getData("jsonStr", jsonObject, IntegrationTaskLivingDetailsEntity.class); - //判断分页 - if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { - return BaseResult.getFailureMessageEntity("分页查询参数不存在"); - } - PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); - List list = integrationTaskLivingDetailsDao.queryByLike(entity); - PageInfo pageInfo = new PageInfo(list); - return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); - } + @Override + public JsonResultEntity testLog(JSONObject jsonObject)throws Exception { + IntegrationTaskLivingDetailsEntity entity = getData("jsonStr", jsonObject, IntegrationTaskLivingDetailsEntity.class); + String def1 = entity.getDef1(); + switch (def1){ + case "1": + return saveLogToSuccess(entity); + case "2": + return saveLogToFail(entity); + case "3": + return saveLogFailToSuccess(entity); + case "4": + return updateLogFailToSuccess(entity); + default: + break; + } + return null; + } + + /** + * + * @content 成功日志公用接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + @Override + public JsonResultEntity saveLogToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception { + entity.setId(String.valueOf(UUIDLong.longUUID())); + checkDate(entity); + entity.setNewState("Y"); + entity.setRepairPust("N"); + try { + entity = integrationTaskLivingDetailsDao.saveSuccessLog(entity); + return BaseResult.getSuccessMessageEntity(entity); + } catch (Exception e) { + e.printStackTrace(); + return BaseResult.getFailureMessageEntity("保存成功日志失败:"+e.getMessage()); + } + + } - /** - * @param jsonObject - * @return com.hzya.frame.web.entity.JsonResultEntity - * @Author lvleigang - * @Description 获取任务日志 - * @Date 2:36 下午 2024/3/27 - **/ - @Override - public JsonResultEntity getEntity(JSONObject jsonObject) { - IntegrationTaskLivingDetailsEntity entity = getData("jsonStr", jsonObject, IntegrationTaskLivingDetailsEntity.class); - if (entity == null) { - return BaseResult.getFailureMessageEntity("参数不允许为空"); - } - if (entity.getId() == null || "".equals(entity.getId())) { - return BaseResult.getFailureMessageEntity("系统错误"); - } - entity = integrationTaskLivingDetailsDao.get(entity.getId()); - if (entity == null) { - return BaseResult.getFailureMessageEntity("获取任务日志失败"); - } - return BaseResult.getSuccessMessageEntity("获取任务日志成功", entity); - } + /** + * + * @content 失败日志公用接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + @Override + public JsonResultEntity saveLogToFail(IntegrationTaskLivingDetailsEntity entity)throws Exception { + entity.setId(String.valueOf(UUIDLong.longUUID())); + //验证必填字段如果不满足返回数据 + checkDate(entity); + entity.setNewState("N"); + entity.setRepairPust("Y"); + try { + entity = integrationTaskLivingDetailsDao.save(entity); + return BaseResult.getSuccessMessageEntity(entity); + } catch (Exception e) { + e.printStackTrace(); + return BaseResult.getFailureMessageEntity("保存失败日志错误:"+e.getMessage()); + } + } + /** + * + * @content 重推成功接口(成功数据挪到成功日志表) + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + @Override + public JsonResultEntity saveLogFailToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception { + //验证必填字段如果不满足返回数据 + checkDate(entity); + entity.setNewState("Y"); + entity.setRepairPust("N"); + try { + //先根据主键删除错误日志表数据,在进行成功表写入 + integrationTaskLivingDetailsDao.delete(entity.getId()); + //将数据写入成功日志表 + entity = integrationTaskLivingDetailsDao.saveSuccessLog(entity); + return BaseResult.getSuccessMessageEntity(entity); + } catch (Exception e) { + e.printStackTrace(); + return BaseResult.getFailureMessageEntity("保存失败日志错误:"+e.getMessage()); + } + } + /** + * + * @content 重推失败更新接口 + * @author laborer + * @date 2024/5/15 0015 15:05 + * + */ + @Override + public JsonResultEntity updateLogFailToSuccess(IntegrationTaskLivingDetailsEntity entity)throws Exception { + //验证必填字段如果不满足返回数据 + checkDate(entity); + entity.setNewState("N"); + entity.setRepairPust("Y"); + try { + //将数据写入成功日志表 + entity = integrationTaskLivingDetailsDao.update(entity); + return BaseResult.getSuccessMessageEntity(entity); + } catch (Exception e) { + e.printStackTrace(); + return BaseResult.getFailureMessageEntity("更新失败日志错误:"+e.getMessage()); + } + } + /** + * + * @content 验证数据必填项 + * @author laborer + * @date 2024/5/15 0015 15:42 + * + */ + + private void checkDate(IntegrationTaskLivingDetailsEntity entity)throws Exception{ + //todo 除了必填字段理论都可以为空 根据业务需求自己定义 + //验证必填字段如果不满足返回数据 + String id = entity.getId();//不可为空,数据主键 + if (StrUtil.isEmpty(id)) { + throw new BaseSystemException("主键不可为空,请传入"); + } + String rootAppPk = entity.getRootAppPk();//源系统主键(通过该条件进行重推时数据查询不可为空) + if (StrUtil.isEmpty(rootAppPk)) { + throw new BaseSystemException("源系统主键不可为空,请传入"); + } + String rootAppBill = entity.getRootAppBill();//源系统单号(通过该条件进行重查询条件不可为空) + if (StrUtil.isEmpty(rootAppBill)) { + throw new BaseSystemException("源系统单号不可为空,请传入"); + } + String pluginId = entity.getPluginId();//插件ID 用于任务寻找插件方法字段(不可为空) + if (StrUtil.isEmpty(pluginId)) { + throw new BaseSystemException("插件ID不可为空,请传入"); + } + String rootAppNewData = entity.getRootAppNewData();//推送数据-最新(不可为空) + if (StrUtil.isEmpty(rootAppNewData)) { + throw new BaseSystemException("推送数据-最新不可为空,请传入"); + } + String newTransmitInfo = entity.getNewTransmitInfo();//三方系统返回数据(不可为空) + if (StrUtil.isEmpty(newTransmitInfo)) { + throw new BaseSystemException("三方系统返回数据不可为空,请传入"); + } +// String repairPust = entity.getRepairPust();//是否补推(Y是N不是) 成功情况下默认N不需要补退 +// if (StrUtil.isEmpty(repairPust)) { +// throw new BaseSystemException("是否补推不可为空,请传入"); +// } +// String newState = entity.getNewState();//推送状态 成功情况下默认Y +// if (StrUtil.isEmpty(newState)) { +// throw new BaseSystemException("推送状态不可为空,请传入"); +// } + } + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询列表 分页 + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity queryPage(JSONObject object) { + IntegrationTaskLivingDetailsVo entity = getData("jsonStr", object, IntegrationTaskLivingDetailsVo.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + if(entity.getNew_state() == null || "".equals(entity.getNew_state()) ){ + return BaseResult.getFailureMessageEntity("请先选择数据状态"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List integrationTaskLivingDetailsEntityList = integrationTaskLivingDetailsDao.queryPageLeftTask(entity); + if (integrationTaskLivingDetailsEntityList != null && integrationTaskLivingDetailsEntityList.size() > 0) { + for (int i = 0; i < integrationTaskLivingDetailsEntityList.size(); i++) { + PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(integrationTaskLivingDetailsEntityList.get(i).getPlugin_id()); + if (pluginBaseEntity != null) { + integrationTaskLivingDetailsEntityList.get(i).setPlugin_name(pluginBaseEntity.getPluginName()); + } + } + } + PageInfo pageInfo = new PageInfo(integrationTaskLivingDetailsEntityList); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取数据 根据id + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity queryEntity(JSONObject object) { + IntegrationTaskLivingDetailsEntity entity = getData("jsonStr", object, IntegrationTaskLivingDetailsEntity.class); + //判断分页 + if (entity == null || entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("请先传递请求主键"); + } + if(entity.getNewState() == null || "".equals(entity.getNewState()) ){ + return BaseResult.getFailureMessageEntity("系统错误"); + } + IntegrationTaskLivingDetailsEntity appApi = integrationTaskLivingDetailsDao.queryEntity(entity); + return BaseResult.getSuccessMessageEntity("查询数据成功", appApi); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 批量推送 + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity batchPush(JSONObject object) { + if(object.get("jsonStr") == null ){ + return BaseResult.getFailureMessageEntity("请先选择要推送的数据"); + } + List jsonArray = JSONArray.parseArray(object.getString("jsonStr"),IntegrationTaskLivingDetailsEntity.class); + if(jsonArray != null && jsonArray.size() > 0){ + for (int i = 0; i < jsonArray.size(); i++) { + String plugin_id = jsonArray.get(i).getPluginId(); + PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(plugin_id); + JSONObject send = new JSONObject(); + send.put("type", "details_error"); + send.put("pluginId", plugin_id); + send.put("integration_task_living_details_id", jsonArray.get(i).getId()); + try { + taskExecutor.execute(() -> { + try { + pluginBaseEntity.executeBusiness(send); + } catch (Exception e) { + logger.error("执行任务失败"+e.getMessage()); + } + }); + + } catch (Exception e) { + logger.error("执行任务失败"+e.getMessage()); + } + } + } + + return BaseResult.getSuccessMessageEntity("重新推送成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 重新推送 + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity repush(JSONObject object) { + JSONObject jsonObject = getstrObj("jsonStr", object); + String id = jsonObject.getString("id"); + String status = jsonObject.getString("new_state"); + if (!checkStr(id)) { + return BaseResult.getFailureMessageEntity("请先选择要推送的数据"); + } + if (!checkStr(status)) { + return BaseResult.getFailureMessageEntity("请先选择要推送的数据"); + } + IntegrationTaskLivingDetailsEntity queryEntity = new IntegrationTaskLivingDetailsEntity(); + queryEntity.setNewState(status); + queryEntity.setId(id); + IntegrationTaskLivingDetailsEntity entity = integrationTaskLivingDetailsDao.queryEntity(queryEntity); + String plugin_id = entity.getPluginId(); + PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(plugin_id); + JSONObject send = new JSONObject(); + send.put("type", "details_error"); + send.put("pluginId", plugin_id); + send.put("integration_task_living_details_id", id); + try { + pluginBaseEntity.executeBusiness(send); + return BaseResult.getSuccessMessageEntity("重新推送成功"); + } catch (Exception e) { + return BaseResult.getFailureMessageEntity("重新推送失败"); + } + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 手工处理 + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity manualProcessing(JSONObject object) { + IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = getData("jsonStr", object, IntegrationTaskLivingDetailsEntity.class); + if (integrationTaskLivingDetailsEntity == null && integrationTaskLivingDetailsEntity.getId() != null && !"".equals(integrationTaskLivingDetailsEntity.getId())) { + return BaseResult.getFailureMessageEntity("请求参数不存在"); + } + IntegrationTaskLivingDetailsEntity entity = integrationTaskLivingDetailsDao.queryEntity(integrationTaskLivingDetailsEntity); + if("N".equals(integrationTaskLivingDetailsEntity.getNewState())){ + integrationTaskLivingDetailsDao.deleteById(integrationTaskLivingDetailsEntity.getId()); + entity.setId(UUIDUtils.getUUID()); + } + entity.setModify_user_id(StpUtil.getLoginIdAsString()); + entity.setModify_time(new Date()); + entity.setProcessor(StpUtil.getLoginIdAsString()); + //检查用户名密码是否正确 + List whereList = new ArrayList<>(); + WhereCriterion passwordCondition = new WhereCriterion("", "id", ConditionType.等于.getValue(), StpUtil.getLoginIdAsString(), "", ConnectType.AND); + whereList.add(passwordCondition); + HashMap userMap = baseDaoUtilImpl.selectOne("sys_user", whereList); + entity.setProcessorName(userMap.get("login_code").toString()); + entity.setProcessingTime(new Date()); + entity.setNewState("H"); + entity.setProcessingRemarks(integrationTaskLivingDetailsEntity.getProcessingRemarks()); + if("N".equals(integrationTaskLivingDetailsEntity.getNewState())){ + integrationTaskLivingDetailsDao.saveSuccessLog(entity); + }else { + integrationTaskLivingDetailsDao.update(entity); + } + return BaseResult.getSuccessMessageEntity("手工处理成功"); + } + + /** + * @param object + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 删除 + * @Date 2:18 下午 2023/7/17 + **/ + @Override + public JsonResultEntity deleteEntity(JSONObject object) { + IntegrationTaskLivingDetailsEntity entity = getData("jsonStr", object, IntegrationTaskLivingDetailsEntity.class); + //判断编码是否重复 + if (entity == null) { + return BaseResult.getFailureMessageEntity("请先选择数据"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("请先选择数据"); + } + if (entity.getNewState() == null || "".equals(entity.getNewState())) { + return BaseResult.getFailureMessageEntity("请先选择数据"); + } + //删除 + IntegrationTaskLivingDetailsEntity deleteEntity = new IntegrationTaskLivingDetailsEntity(); + deleteEntity.setId(entity.getId()); + deleteEntity.setModify_user_id(StpUtil.getLoginIdAsString()); + deleteEntity.setModify_time(new Date()); + deleteEntity.setSts("Y"); + deleteEntity.setNewState(entity.getNewState()); + integrationTaskLivingDetailsDao.deleteEntity(deleteEntity); + return BaseResult.getSuccessMessageEntity("删除成功"); + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/IIntegrationTaskLogDao.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/IIntegrationTaskLogDao.java new file mode 100644 index 00000000..f19fcbf2 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/IIntegrationTaskLogDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.sysnew.integtationTaskLog.dao; + +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * 集成任务-实例详情(integration_task_log: table)表数据库访问层 + * + * @author makejava + * @since 2024-05-06 15:37:55 + */ +public interface IIntegrationTaskLogDao extends IBaseDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/impl/IntegrationTaskLogDaoImpl.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/impl/IntegrationTaskLogDaoImpl.java new file mode 100644 index 00000000..67a03548 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/dao/impl/IntegrationTaskLogDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.sysnew.integtationTaskLog.dao.impl; + +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; +import com.hzya.frame.sysnew.integtationTaskLog.dao.IIntegrationTaskLogDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * 集成任务-实例详情(IntegrationTaskLog)表数据库访问层 + * + * @author makejava + * @since 2024-05-06 15:37:55 + */ +@Repository(value = "IntegrationTaskLogDaoImpl") +public class IntegrationTaskLogDaoImpl extends MybatisGenericDao implements IIntegrationTaskLogDao { + +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.java new file mode 100644 index 00000000..d2f73683 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.java @@ -0,0 +1,115 @@ +package com.hzya.frame.sysnew.integtationTaskLog.entity; + +import java.util.Date; +import com.hzya.frame.web.entity.BaseEntity; +/** + * 集成任务-实例详情(IntegrationTaskLog)实体类 + * + * @author makejava + * @since 2024-05-06 15:37:55 + */ +public class IntegrationTaskLogEntity extends BaseEntity { + + /** 集成任务-实例_id */ + private String taskLinvingId; + /** integration_task_id */ + private String taskId; + /** 任务编码 */ + private String taskCode; + /** 任务名称 */ + private String taskName; + /** 任务状态1、执行中2、执行成功 3、执行失败 4\当前任务已停止*/ + private String taskStatus; + /** 当前任务开始时间 */ + private Date startTime; + /** 结束时间 */ + private Date endTime; + /** 耗时 */ + private String diffTime; + /** 公司id */ + private String companyId; + /** 备注 */ + private String remark; + + + public String getTaskLinvingId() { + return taskLinvingId; + } + + public void setTaskLinvingId(String taskLinvingId) { + this.taskLinvingId = taskLinvingId; + } + + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getTaskCode() { + return taskCode; + } + + public void setTaskCode(String taskCode) { + this.taskCode = taskCode; + } + + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + public String getTaskStatus() { + return taskStatus; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + } + + public Date getStartTime() { + return startTime; + } + + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + public Date getEndTime() { + return endTime; + } + + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + public String getDiffTime() { + return diffTime; + } + + public void setDiffTime(String diffTime) { + this.diffTime = diffTime; + } + + public String getCompanyId() { + return companyId; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.xml new file mode 100644 index 00000000..68a3bff1 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/entity/IntegrationTaskLogEntity.xml @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,task_linving_id + ,task_id + ,task_code + ,task_name + ,remark + ,task_status + ,start_time + ,end_time + ,diff_time + ,sorts + ,create_user_id + ,create_time + ,modify_user_id + ,modify_time + ,sts + ,org_id + ,company_id + + + + + + + + + + + + + + + + + + insert into integration_task_log( + + id , + task_linving_id , + task_id , + task_code , + task_name , + remark , + task_status , + start_time , + end_time , + diff_time , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{taskLinvingId} , + #{taskId} , + #{taskCode} , + #{taskName} , + #{remark} , + #{taskStatus} , + #{startTime} , + #{endTime} , + #{diffTime} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + + 'Y', + + ) + + + + insert into integration_task_log(task_linving_id, task_id, task_code, task_name, remark, task_status, + start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, + company_id, sts) + values + + (#{entity.taskLinvingId},#{entity.taskId},#{entity.taskCode},#{entity.taskName},#{entity.remark},#{entity.taskStatus},#{entity.startTime},#{entity.endTime},#{entity.diffTime},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + 'Y') + + + + + insert into integration_task_log(task_linving_id, task_id, task_code, task_name, remark, task_status, + start_time, end_time, diff_time, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, + company_id) + values + + (#{entity.taskLinvingId},#{entity.taskId},#{entity.taskCode},#{entity.taskName},#{entity.remark},#{entity.taskStatus},#{entity.startTime},#{entity.endTime},#{entity.diffTime},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + task_linving_id = values(task_linving_id), + task_id = values(task_id), + task_code = values(task_code), + task_name = values(task_name), + remark = values(remark), + task_status = values(task_status), + start_time = values(start_time), + end_time = values(end_time), + diff_time = values(diff_time), + sorts = values(sorts), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + + + update integration_task_log set + + task_linving_id = #{taskLinvingId}, + task_id = #{taskId}, + task_code = #{taskCode}, + task_name = #{taskName}, + remark = #{remark}, + task_status = #{taskStatus}, + start_time = #{startTime}, + end_time = #{endTime}, + diff_time = #{diffTime}, + sorts = #{sorts}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + +where id = #{id} + + + +update integration_task_log set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + + update integration_task_log set sts= 'N' ,modify_time = #{modify_time},modify_user_id = + #{modify_user_id} + + and id = #{id} + and task_linving_id = #{taskLinvingId} + and task_id = #{taskId} + and task_code = #{taskCode} + and task_name = #{taskName} + and remark = #{remark} + and task_status = #{taskStatus} + and start_time = #{startTime} + and end_time = #{endTime} + and diff_time = #{diffTime} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} + and sts='Y' + + + + + delete from integration_task_log where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/IIntegrationTaskLogService.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/IIntegrationTaskLogService.java new file mode 100644 index 00000000..32bcfd0c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/IIntegrationTaskLogService.java @@ -0,0 +1,33 @@ +package com.hzya.frame.sysnew.integtationTaskLog.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * 集成任务-实例详情(IntegrationTaskLog)表服务接口 + * + * @author makejava + * @since 2024-05-06 15:37:55 + */ +public interface IIntegrationTaskLogService extends IBaseService{ + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询任务日志列表分页 + * @Date 11:52 上午 2024/3/27 + **/ + JsonResultEntity queryEntityPage(JSONObject jsonObject); + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取任务 + * @Date 2:36 下午 2024/3/27 + **/ + JsonResultEntity getEntity(JSONObject jsonObject); +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/impl/IntegrationTaskLogServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/impl/IntegrationTaskLogServiceImpl.java new file mode 100644 index 00000000..0cf7b360 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/integtationTaskLog/service/impl/IntegrationTaskLogServiceImpl.java @@ -0,0 +1,77 @@ +package com.hzya.frame.sysnew.integtationTaskLog.service.impl; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; +import com.hzya.frame.sysnew.integtationTaskLog.dao.IIntegrationTaskLogDao; +import com.hzya.frame.sysnew.integtationTaskLog.service.IIntegrationTaskLogService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import com.hzya.frame.basedao.service.impl.BaseService; + +import java.util.List; + +/** + * 集成任务-实例详情(IntegrationTaskLog)表服务实现类 + * + * @author makejava + * @since 2024-05-06 15:37:55 + */ +@Service(value = "integrationTaskLogService") +public class IntegrationTaskLogServiceImpl extends BaseService implements IIntegrationTaskLogService { + + private IIntegrationTaskLogDao integrationTaskLogDao; + + @Autowired + public void setIntegrationTaskLogDao(IIntegrationTaskLogDao dao) { + this.integrationTaskLogDao = dao; + this.dao = dao; + } + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 查询任务日志列表分页 + * @Date 11:52 上午 2024/3/27 + **/ + @Override + public JsonResultEntity queryEntityPage(JSONObject jsonObject) { + IntegrationTaskLogEntity entity = getData("jsonStr", jsonObject, IntegrationTaskLogEntity.class); + //判断分页 + if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) { + return BaseResult.getFailureMessageEntity("分页查询参数不存在"); + } + PageHelper.startPage(entity.getPageNum(), entity.getPageSize()); + List list = integrationTaskLogDao.queryByLike(entity); + PageInfo pageInfo = new PageInfo(list); + return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo); + } + + + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 获取任务日志 + * @Date 2:36 下午 2024/3/27 + **/ + @Override + public JsonResultEntity getEntity(JSONObject jsonObject) { + IntegrationTaskLogEntity entity = getData("jsonStr", jsonObject, IntegrationTaskLogEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("参数不允许为空"); + } + if (entity.getId() == null || "".equals(entity.getId())) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + entity = integrationTaskLogDao.get(entity.getId()); + if (entity == null) { + return BaseResult.getFailureMessageEntity("获取任务日志失败"); + } + return BaseResult.getSuccessMessageEntity("获取任务日志成功", entity); + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/login/impl/LoginServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/login/impl/LoginServiceImpl.java index 325c26eb..3b0bf5be 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/login/impl/LoginServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/login/impl/LoginServiceImpl.java @@ -3,13 +3,21 @@ package com.hzya.frame.sysnew.login.impl; import cn.dev33.satoken.stp.SaTokenInfo; import cn.dev33.satoken.stp.StpUtil; import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.dao.ISysApplicationDao; +import com.hzya.frame.sysnew.application.entity.SysApplicationEntity; import com.hzya.frame.sysnew.login.ILoginService; import com.hzya.frame.sysnew.organ.dao.ISysOrganDao; import com.hzya.frame.sysnew.organ.entity.SysOrganEntity; +import com.hzya.frame.sysnew.person.dao.ISysPersonDao; +import com.hzya.frame.sysnew.person.entity.SysPersonEntity; +import com.hzya.frame.sysnew.popedomInterface.entity.SysPopedomInterfaceEntity; +import com.hzya.frame.sysnew.popedomInterface.service.impl.InterfaceCache; +import com.hzya.frame.sysnew.sysInterface.entity.SysInterfaceEntity; import com.hzya.frame.sysnew.user.dao.ISysUserDao; import com.hzya.frame.sysnew.user.entity.SysUserEntity; import com.hzya.frame.sysnew.userCompany.dao.ISysUserCompanyDao; import com.hzya.frame.sysnew.userCompany.entity.SysUserCompanyEntity; +import com.hzya.frame.sysnew.userRoles.entity.SysUserRolesEntity; import com.hzya.frame.util.AESUtil; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; @@ -31,8 +39,14 @@ public class LoginServiceImpl implements ILoginService { @Resource private ISysUserDao sysUserDao; @Resource + private ISysPersonDao sysPersonDao; + @Resource private ISysOrganDao sysOrganDao; + @Resource + private ISysApplicationDao sysApplicationDao; + @Resource + private InterfaceCache interfaceCache; /** * 登录 * @@ -54,9 +68,49 @@ public class LoginServiceImpl implements ILoginService { } entity.setPassword(AESUtil.encrypt(entity.getLoginCode() + "-" + entity.getPassword())); SysUserEntity sysUserEntity = sysUserDao.queryOne(entity); - if (sysUserEntity.getId() == null || "".equals(sysUserEntity.getId())) { + if (sysUserEntity == null || sysUserEntity.getId() == null || "".equals(sysUserEntity.getId())) { return BaseResult.getFailureMessageEntity("用户名或密码错误"); } + if (sysUserEntity.getState() == null || !"0".equals(sysUserEntity.getState())) { + return BaseResult.getFailureMessageEntity("当前用户已停用,请先启用"); + } + if(sysUserEntity.getPersonId() != null &&!"".equals(sysUserEntity.getPersonId())){ + SysPersonEntity sysPersonEntity = sysPersonDao.get(sysUserEntity.getPersonId()); + if(sysPersonEntity != null && sysPersonEntity.getPersonName()!= null){ + sysUserEntity.setPersonName(sysPersonEntity.getPersonName()); + } + } + //校验当前登陆人是否有权限 + //boolean flag = false; + //SysInterfaceEntity sysInterfaceEntity = (SysInterfaceEntity) interfaceCache.get("6","beanNameloginServiceinterfacNamedoLogin"); + //if(sysInterfaceEntity == null || sysInterfaceEntity.getId() == null){ + // return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); + //} + ////查询用户权限 + //if(!flag){ + // SysPopedomInterfaceEntity userPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("4","userId"+sysUserEntity.getId()+"interfaceId"+sysInterfaceEntity.getId()); + // if(userPopedomInterfaceEntity != null && userPopedomInterfaceEntity.getId() != null ){ + // flag = true; + // } + //} + ////查询用户角色的权限 + //if(!flag){ + // List userRoleMap = (List) interfaceCache.get("3",null); + // if(userRoleMap != null && userRoleMap.size() > 0){ + // for (SysUserRolesEntity sysUserRolesEntity : userRoleMap) { + // if(sysUserRolesEntity.getUserId().equals(sysUserEntity.getId())){ + // SysPopedomInterfaceEntity sysPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("5","roleId"+sysUserRolesEntity.getRoleId()+"interfaceId"+sysInterfaceEntity.getId()); + // if(sysPopedomInterfaceEntity != null && sysPopedomInterfaceEntity.getId() != null ){ + // flag = true; + // break; + // } + // } + // } + // } + //} + //if(!flag){ + // return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); + //} //登录 StpUtil.login(sysUserEntity.getId()); //获取token @@ -71,6 +125,9 @@ public class LoginServiceImpl implements ILoginService { res.put("token", token); res.put("userInfo", sysUserEntity); res.put("company", sysOrganEntities); + + + //切换数据源查询 return BaseResult.getSuccessMessageEntity("登录成功", res); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.java b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.java index ee578520..e860049e 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.java @@ -66,7 +66,10 @@ public class SysMenuConfigEntity extends BaseEntity { */ private boolean check; private String label; - + /** 表单ID */ + private String formId; + /** options */ + private String options; //子级 private List children; public String getParentMenuId() { @@ -189,5 +192,21 @@ public class SysMenuConfigEntity extends BaseEntity { public void setParentMenuName(String parentMenuName) { this.parentMenuName = parentMenuName; } + + public String getOptions() { + return options; + } + + public void setOptions(String options) { + this.options = options; + } + + public String getFormId() { + return formId; + } + + public void setFormId(String formId) { + this.formId = formId; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.xml index 8a366a49..187ba965 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/entity/SysMenuConfigEntity.xml @@ -8,7 +8,9 @@ + + @@ -30,8 +32,10 @@ ,menu_name ,menu_english_name ,menu_icon - ,route - ,menu_page + ,form_id + ,route + ,options + ,menu_page ,remark ,visibles ,show_type @@ -53,7 +57,9 @@ ,a.menu_name ,a.menu_english_name ,a.menu_icon + ,a.form_id ,a.route + ,a.options ,a.menu_page ,a.remark ,a.visibles @@ -82,7 +88,9 @@ and menu_name = #{menuName} and menu_english_name = #{menuEnglishName} and menu_icon = #{menuIcon} + and form_id = #{formId} and route = #{route} + and options = #{options} and menu_page = #{menuPage} and remark = #{remark} and visibles = #{visibles} @@ -111,7 +119,9 @@ and menu_name = #{menuName} and menu_english_name = #{menuEnglishName} and menu_icon = #{menuIcon} + and form_id = #{formId} and route = #{route} + and options = #{options} and menu_page = #{menuPage} and remark = #{remark} and visibles = #{visibles} @@ -144,7 +154,9 @@ concat('%',#{menuEnglishName},'%') and menu_icon like concat('%',#{menuIcon},'%') + and form_id like concat('%',#{formId},'%') and route like concat('%',#{route},'%') + and options like concat('%',#{options},'%') and menu_page like concat('%',#{menuPage},'%') and remark like concat('%',#{remark},'%') and visibles like concat('%',#{visibles},'%') @@ -179,7 +191,9 @@ or menu_name = #{menuName} or menu_english_name = #{menuEnglishName} or menu_icon = #{menuIcon} + or form_id = #{formId} or route = #{route} + or options = #{options} or menu_page = #{menuPage} or remark = #{remark} or visibles = #{visibles} @@ -208,7 +222,9 @@ menu_name , menu_english_name , menu_icon , + form_id , route , + options , menu_page , remark , visibles , @@ -230,7 +246,9 @@ #{menuName} , #{menuEnglishName} , #{menuIcon} , + #{formId} , #{route} , + #{options} , #{menuPage} , #{remark} , #{visibles} , @@ -249,30 +267,32 @@ - insert into sys_menu_config(parent_menu_id, menu_name, menu_english_name, menu_icon, route, + insert into sys_menu_config(parent_menu_id, menu_name, menu_english_name, menu_icon, form_id, route,options, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) values - (#{entity.parentMenuId},#{entity.menuName},#{entity.menuEnglishName},#{entity.menuIcon},#{entity.route},#{entity.menuPage},#{entity.remark},#{entity.visibles},#{entity.showType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + (#{entity.parentMenuId},#{entity.menuName},#{entity.menuEnglishName},#{entity.menuIcon},#{entity.formId},#{entity.route},#{entity.options},#{entity.menuPage},#{entity.remark},#{entity.visibles},#{entity.showType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - insert into sys_menu_config(parent_menu_id, menu_name, menu_english_name, menu_icon, route, + insert into sys_menu_config(parent_menu_id, menu_name, menu_english_name, menu_icon,form_id, route,options, menu_page, remark, visibles, show_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) values - (#{entity.parentMenuId},#{entity.menuName},#{entity.menuEnglishName},#{entity.menuIcon},#{entity.route},#{entity.menuPage},#{entity.remark},#{entity.visibles},#{entity.showType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + (#{entity.parentMenuId},#{entity.menuName},#{entity.menuEnglishName},#{entity.menuIcon},#{entity.formId},#{entity.route},#{entity.options},#{entity.menuPage},#{entity.remark},#{entity.visibles},#{entity.showType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) on duplicate key update parent_menu_id = values(parent_menu_id), menu_name = values(menu_name), menu_english_name = values(menu_english_name), menu_icon = values(menu_icon), + form_id = values(form_id), route = values(route), + options = values(options), menu_page = values(menu_page), remark = values(remark), visibles = values(visibles), @@ -294,7 +314,9 @@ menu_name = #{menuName}, menu_english_name = #{menuEnglishName}, menu_icon = #{menuIcon}, + form_id = #{formId}, route = #{route}, + options = #{options}, menu_page = #{menuPage}, remark = #{remark}, visibles = #{visibles}, @@ -325,7 +347,9 @@ where id = #{id} and menu_name = #{menuName} and menu_english_name = #{menuEnglishName} and menu_icon = #{menuIcon} + and form_id = #{formId} and route = #{route} + and options = #{options} and menu_page = #{menuPage} and remark = #{remark} and visibles = #{visibles} @@ -352,7 +376,9 @@ where id = #{id} and menu_name = #{menuName} and menu_english_name = #{menuEnglishName} and menu_icon = #{menuIcon} + and form_id = #{formId} and route = #{route} + and options = #{options} and menu_page = #{menuPage} and remark = #{remark} and visibles = #{visibles} diff --git a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/service/impl/SysMenuConfigServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/service/impl/SysMenuConfigServiceImpl.java index 2376f8b2..9cd32b9e 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/menuConfig/service/impl/SysMenuConfigServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/menuConfig/service/impl/SysMenuConfigServiceImpl.java @@ -99,6 +99,7 @@ public class SysMenuConfigServiceImpl extends BaseService map = JSONObject.parseObject(sysMenuConfigEntity.getOptions(), new TypeReference>(){}); + if(map != null && map.size() > 0){ + meta.putAll(map); + } + } moduleVo.setMeta(meta); List children = new ArrayList<>(); for (int i = 0; i < sysMenuConfigEntities.size(); i++) { diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManage/entity/SysMessageManageEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManage/entity/SysMessageManageEntity.xml index a4968ef5..bbdeb2f9 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManage/entity/SysMessageManageEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManage/entity/SysMessageManageEntity.xml @@ -172,7 +172,7 @@ + > insert into sys_message_manage( id , @@ -189,7 +189,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -208,15 +207,13 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_message_manage a WHERE - a.sts = 'Y' ), - + 'Y', ) - + insert into sys_message_manage(theme, code, send_app, send_api, data_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -226,7 +223,7 @@ - + insert into sys_message_manage(theme, code, send_app, send_api, data_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageDetail/entity/SysMessageManageDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManageDetail/entity/SysMessageManageDetailEntity.xml index fde5ed64..bcdea4a4 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManageDetail/entity/SysMessageManageDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageDetail/entity/SysMessageManageDetailEntity.xml @@ -162,8 +162,8 @@ + parameterType="com.hzya.frame.sysnew.messageManageDetail.entity.SysMessageManageDetailEntity" + > insert into sys_message_manage_detail( id , @@ -182,7 +182,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -203,15 +202,13 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_message_manage_detail a - WHERE a.sts = 'Y' ), - + 'Y', ) - + insert into sys_message_manage_detail(formmain_id, receive_name, receive_code, receive_app, receive_api, data_type, return_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -221,7 +218,7 @@ - + insert into sys_message_manage_detail(formmain_id, receive_name, receive_code, receive_app, receive_api, data_type, return_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogEntity.xml index e727994c..5c02e0bb 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogEntity.xml @@ -59,7 +59,15 @@ parameterType="com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity"> select - from sys_message_manage_log + from + + + sys_message_manage_log_success + + + sys_message_manage_log + + and id = #{id} and message_manage_id = #{messageManageId} @@ -290,8 +298,17 @@ - insert into sys_message_manage_log( + > + insert into + + + sys_message_manage_log_success + + + sys_message_manage_log + + + ( id , message_manage_id , @@ -348,7 +365,7 @@ ) - + insert into sys_message_manage_log(message_manage_id, theme, message_code, send_app, send_api, receive_code, receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id, @@ -360,7 +377,7 @@ - + insert into sys_message_manage_log(message_manage_id, theme, message_code, send_app, send_api, receive_code, receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id, @@ -551,7 +568,14 @@ where id = #{id} a.create_time AS createTime, a.modify_time AS modifyTime FROM - sys_message_manage_log a + + + sys_message_manage_log_success a + + + sys_message_manage_log a + + LEFT JOIN sys_application sendApp ON a.send_app = sendApp.id AND sendApp.sts = 'Y' @@ -593,7 +617,14 @@ where id = #{id} SELECT id FROM - sys_message_manage_log + + + sys_message_manage_log_success + + + sys_message_manage_log + + sts = 'Y' and message_code = #{messageCode} diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogStatusEnum.java b/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogStatusEnum.java new file mode 100644 index 00000000..6ebe9f5f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageLog/entity/SysMessageManageLogStatusEnum.java @@ -0,0 +1,48 @@ +package com.hzya.frame.sysnew.messageManageLog.entity; + +/** + * 日志 status枚举类 + */ +public enum SysMessageManageLogStatusEnum { + + UNSEND("1","待发送"), + SENDING("2","发送中"), + SUCCESS("3","发送成功"), + FAIL("4","发送成功"); + + + //类型 + private String type; + //值 + private String value; + + SysMessageManageLogStatusEnum(String type,String value){ + this.type=type; + this.value=value; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public static String statusGetValue(String type){ + for (SysMessageManageLogStatusEnum payState : SysMessageManageLogStatusEnum.values()){ + if(payState.getType()==type||payState.getType().equals(type)){ + return payState.getValue().toString(); + } + } + return null; + } +} diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/detail/entity/SysMessageManageLogDetailBackEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/detail/entity/SysMessageManageLogDetailBackEntity.xml index d8200586..7a2e54a9 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/detail/entity/SysMessageManageLogDetailBackEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/detail/entity/SysMessageManageLogDetailBackEntity.xml @@ -140,7 +140,7 @@ + > insert into sys_message_manage_log_detail_back( id , @@ -155,7 +155,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -172,15 +171,13 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_message_manage_log_detail_back a - WHERE a.sts = 'Y' ), - + 'Y', ) - + insert into sys_message_manage_log_detail_back(id,message_manage_id, source_data, target_data, return_data,sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values @@ -189,7 +186,7 @@ - + insert into sys_message_manage_log_detail_back(message_manage_id, source_data, target_data, return_data, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/entity/SysMessageManageLogBackEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/entity/SysMessageManageLogBackEntity.xml index 4bd5ff28..7a76242f 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/entity/SysMessageManageLogBackEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogBack/entity/SysMessageManageLogBackEntity.xml @@ -273,7 +273,7 @@ + > insert into sys_message_manage_log_back( id , @@ -299,7 +299,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -327,15 +326,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_message_manage_log_back a - WHERE a.sts = 'Y' ), - 'Y', ) - + insert into sys_message_manage_log_back(id,message_manage_id, theme, message_code, send_app, send_api, receive_code, receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) @@ -345,7 +341,7 @@ - + insert into sys_message_manage_log_back(message_manage_id, theme, message_code, send_app, send_api, receive_code, receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) diff --git a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogDetail/entity/SysMessageManageLogDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogDetail/entity/SysMessageManageLogDetailEntity.xml index c12fe5ed..b7ebe0b4 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/messageManageLogDetail/entity/SysMessageManageLogDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/messageManageLogDetail/entity/SysMessageManageLogDetailEntity.xml @@ -140,7 +140,7 @@ + > insert into sys_message_manage_log_detail( id , @@ -176,7 +176,7 @@ ) - + insert into sys_message_manage_log_detail(message_manage_id, source_data, target_data, return_data,sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -186,7 +186,7 @@ - + insert into sys_message_manage_log_detail(message_manage_id, source_data, target_data, return_data, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/person/entity/SysPersonEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/person/entity/SysPersonEntity.xml index 7ff0a07d..ea0abb65 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/person/entity/SysPersonEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/person/entity/SysPersonEntity.xml @@ -228,7 +228,7 @@ a.id from sys_person a and a.id like concat('%',#{id},'%') - and a.organ_id like concat('%',#{organId},'%') + and a.organ_id = #{organId} and a.person_code like concat('%',#{personCode},'%') and a.person_name like concat('%',#{personName},'%') and a.sex like concat('%',#{sex},'%') diff --git a/service/src/main/java/com/hzya/frame/sysnew/plugArg/entity/SysPlugArgEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/plugArg/entity/SysPlugArgEntity.xml index e58a4c4f..c573a156 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/plugArg/entity/SysPlugArgEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/plugArg/entity/SysPlugArgEntity.xml @@ -131,7 +131,7 @@ - + insert into sys_plug_arg( id , @@ -146,7 +146,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -163,13 +162,12 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_plug_arg a WHERE a.sts = 'Y' ), 'Y', ) - + insert into sys_plug_arg(id, plug_id, plug_code, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -177,7 +175,7 @@ - + insert into sys_plug_arg(id, plug_id, plug_code, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/plugArgDeatil/entity/SysPlugArgDetailEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/plugArgDeatil/entity/SysPlugArgDetailEntity.xml index 49543da7..44a242ad 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/plugArgDeatil/entity/SysPlugArgDetailEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/plugArgDeatil/entity/SysPlugArgDetailEntity.xml @@ -142,7 +142,7 @@ + > insert into sys_plug_arg_detail( id , @@ -158,7 +158,6 @@ modify_time , sts , org_id , - sorts, sts, )values( @@ -176,15 +175,13 @@ #{modify_time} , #{sts} , #{org_id} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_plug_arg_detail a WHERE - a.sts = 'Y' ), - + 'Y', ) - + insert into sys_plug_arg_detail(formmain_id, arg_code, arg_name, arg_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts) values @@ -194,7 +191,7 @@ - + insert into sys_plug_arg_detail(formmain_id, arg_code, arg_name, arg_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id) values diff --git a/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/entity/SysPopedomInterfaceEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/entity/SysPopedomInterfaceEntity.xml index d1bad4c3..af8329ef 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/entity/SysPopedomInterfaceEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/entity/SysPopedomInterfaceEntity.xml @@ -152,7 +152,6 @@ sts , org_id , company_id , - sorts, sts, )values( @@ -169,9 +168,7 @@ #{sts} , #{org_id} , #{companyId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_popedom_interface a WHERE - a.sts = 'Y' ), - + 'Y', ) diff --git a/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/service/impl/InterfaceCache.java b/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/service/impl/InterfaceCache.java index 913fb44f..5c2b56ed 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/service/impl/InterfaceCache.java +++ b/service/src/main/java/com/hzya/frame/sysnew/popedomInterface/service/impl/InterfaceCache.java @@ -153,7 +153,7 @@ public class InterfaceCache { userRoleMap.clear(); SysUserRolesEntity sysUserRolesEntity = new SysUserRolesEntity(); sysUserRolesEntity.setSts("Y"); - List sysUserRolesEntities = sysUserRolesDao.queryByLike(sysUserRolesEntity); + List sysUserRolesEntities = sysUserRolesDao.queryBase(sysUserRolesEntity); if(sysUserRolesEntities != null && sysUserRolesEntities.size() > 0){ userRoleMap.addAll(sysUserRolesEntities); } diff --git a/service/src/main/java/com/hzya/frame/sysnew/popedomOperate/entity/SysPopedomOperateEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/popedomOperate/entity/SysPopedomOperateEntity.xml index c36ceacf..76bda16f 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/popedomOperate/entity/SysPopedomOperateEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/popedomOperate/entity/SysPopedomOperateEntity.xml @@ -2,23 +2,24 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + id ,object_id ,menu_id @@ -31,217 +32,236 @@ ,modify_time ,sts ,org_id - ,company_id - + ,company_id + - - + select + + from sys_popedom_operate + + and id = #{id} + and object_id = #{objectId} + and menu_id = #{menuId} + and operate = #{operate} + and kind_id = #{kindId} + and sorts = #{sorts} + and create_user_id = #{create_user_id} + and create_time = #{create_time} + and modify_user_id = #{modify_user_id} + and modify_time = #{modify_time} + and sts = #{sts} + and org_id = #{org_id} + and company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - - - - + + + - + select + + from sys_popedom_operate + + and id like concat('%',#{id},'%') + and object_id like concat('%',#{objectId},'%') + and menu_id like concat('%',#{menuId},'%') + and operate like concat('%',#{operate},'%') + and kind_id like concat('%',#{kindId},'%') + and sorts like concat('%',#{sorts},'%') + and create_user_id like + concat('%',#{create_user_id},'%') + + and create_time like concat('%',#{create_time},'%') + and modify_user_id like + concat('%',#{modify_user_id},'%') + + and modify_time like concat('%',#{modify_time},'%') + and sts like concat('%',#{sts},'%') + and org_id like concat('%',#{org_id},'%') + and company_id like concat('%',#{companyId},'%') and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - + select + + from sys_popedom_operate + + or id = #{id} + or object_id = #{objectId} + or menu_id = #{menuId} + or operate = #{operate} + or kind_id = #{kindId} + or sorts = #{sorts} + or create_user_id = #{create_user_id} + or create_time = #{create_time} + or modify_user_id = #{modify_user_id} + or modify_time = #{modify_time} + or sts = #{sts} + or org_id = #{org_id} + or company_id = #{companyId} and sts='Y' - - order by sorts asc - order by ${sort} ${order} - + + order by sorts asc + order by ${sort} ${order} + - - - insert into sys_popedom_operate( - - id , - object_id , - menu_id , - operate , - kind_id , - sorts , - create_user_id , - create_time , - modify_user_id , - modify_time , - sts , - org_id , - company_id , - sts, - - )values( - - #{id} , - #{objectId} , - #{menuId} , - #{operate} , - #{kindId} , - #{sorts} , - #{create_user_id} , - #{create_time} , - #{modify_user_id} , - #{modify_time} , - #{sts} , - #{org_id} , - #{companyId} , - 'Y', - - ) - - - - insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts) - values - - (#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y') - - - - - insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id) - values - - (#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) - - on duplicate key update - object_id = values(object_id), - menu_id = values(menu_id), - operate = values(operate), - kind_id = values(kind_id), - create_user_id = values(create_user_id), - create_time = values(create_time), - modify_user_id = values(modify_user_id), - modify_time = values(modify_time), - sts = values(sts), - org_id = values(org_id), - company_id = values(company_id) - - -update sys_popedom_operate set - - object_id = #{objectId}, - menu_id = #{menuId}, - operate = #{operate}, - kind_id = #{kindId}, - create_user_id = #{create_user_id}, - create_time = #{create_time}, - modify_user_id = #{modify_user_id}, - modify_time = #{modify_time}, - sts = #{sts}, - org_id = #{org_id}, - company_id = #{companyId}, - -where id = #{id} - - - -update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} -where id = #{id} - - - -update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} - - and id = #{id} - and object_id = #{objectId} - and menu_id = #{menuId} - and operate = #{operate} - and kind_id = #{kindId} - and sorts = #{sorts} - and sts = #{sts} - and company_id = #{companyId} + + + insert into sys_popedom_operate( + + id , + object_id , + menu_id , + operate , + kind_id , + sorts , + create_user_id , + create_time , + modify_user_id , + modify_time , + sts , + org_id , + company_id , + sts, + + )values( + + #{id} , + #{objectId} , + #{menuId} , + #{operate} , + #{kindId} , + #{sorts} , + #{create_user_id} , + #{create_time} , + #{modify_user_id} , + #{modify_time} , + #{sts} , + #{org_id} , + #{companyId} , + 'Y', + + ) + + + + insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id, sts) + values + + (#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, + 'Y') + + + + + insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, + modify_user_id, modify_time, sts, org_id, company_id) + values + + (#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}) + + on duplicate key update + object_id = values(object_id), + menu_id = values(menu_id), + operate = values(operate), + kind_id = values(kind_id), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_user_id = values(modify_user_id), + modify_time = values(modify_time), + sts = values(sts), + org_id = values(org_id), + company_id = values(company_id) + + + + update sys_popedom_operate set + + object_id = #{objectId}, + menu_id = #{menuId}, + operate = #{operate}, + kind_id = #{kindId}, + create_user_id = #{create_user_id}, + create_time = #{create_time}, + modify_user_id = #{modify_user_id}, + modify_time = #{modify_time}, + sts = #{sts}, + org_id = #{org_id}, + company_id = #{companyId}, + sorts = #{sorts} , + + where id = #{id} + + + + update sys_popedom_operate + set sts= 'N', + modify_time = #{modify_time}, + modify_user_id = #{modify_user_id} + where id = #{id} + + + + update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and object_id = #{objectId} + and menu_id = #{menuId} + and operate = #{operate} + and kind_id = #{kindId} + and sorts = #{sorts} + and sts = #{sts} + and company_id = #{companyId} and sts='Y' - - - - - delete from sys_popedom_operate where id = #{id} - + + + + + delete + from sys_popedom_operate + where id = #{id} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/sysInterface/entity/SysInterfaceEntity.xml b/service/src/main/java/com/hzya/frame/sysnew/sysInterface/entity/SysInterfaceEntity.xml index 9c3af38e..342b6050 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/sysInterface/entity/SysInterfaceEntity.xml +++ b/service/src/main/java/com/hzya/frame/sysnew/sysInterface/entity/SysInterfaceEntity.xml @@ -115,7 +115,7 @@ and company_id like concat('%',#{companyId},'%') and sts='Y' - order by sorts asc + order by sorts desc order by ${sort} ${order} @@ -165,7 +165,6 @@ sts , org_id , company_id , - sorts, sts, )values( @@ -184,9 +183,7 @@ #{sts} , #{org_id} , #{companyId} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_interface a WHERE a.sts = - 'Y' ), - + 'Y', ) diff --git a/service/src/main/java/com/hzya/frame/sysnew/user/entity/SysUserEntity.java b/service/src/main/java/com/hzya/frame/sysnew/user/entity/SysUserEntity.java index 7d9a333f..c552e1d2 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/user/entity/SysUserEntity.java +++ b/service/src/main/java/com/hzya/frame/sysnew/user/entity/SysUserEntity.java @@ -27,6 +27,11 @@ public class SysUserEntity extends BaseEntity { * 登录密码 */ private String password; + + /** + * 老登录密码 + */ + private String OldPassword; /** * 盐 */ @@ -204,5 +209,13 @@ public class SysUserEntity extends BaseEntity { public void setOrganId(String organId) { this.organId = organId; } + + public String getOldPassword() { + return OldPassword; + } + + public void setOldPassword(String oldPassword) { + OldPassword = oldPassword; + } } diff --git a/service/src/main/java/com/hzya/frame/sysnew/user/service/ISysUserService.java b/service/src/main/java/com/hzya/frame/sysnew/user/service/ISysUserService.java index fba89aba..559a5424 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/user/service/ISysUserService.java +++ b/service/src/main/java/com/hzya/frame/sysnew/user/service/ISysUserService.java @@ -84,6 +84,14 @@ public interface ISysUserService extends IBaseService { * @Date 2:37 下午 2024/3/27 **/ JsonResultEntity resetPassword(JSONObject jsonObject); + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 用户重置密码 + * @Date 2:37 下午 2024/3/27 + **/ + JsonResultEntity userResetPassword(JSONObject jsonObject); /** diff --git a/service/src/main/java/com/hzya/frame/sysnew/user/service/impl/SysUserServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/user/service/impl/SysUserServiceImpl.java index 3c5f37fc..e7648cce 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/user/service/impl/SysUserServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/user/service/impl/SysUserServiceImpl.java @@ -1,5 +1,6 @@ package com.hzya.frame.sysnew.user.service.impl; +import cn.dev33.satoken.stp.StpUtil; import com.alibaba.fastjson.JSONObject; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; @@ -154,6 +155,7 @@ public class SysUserServiceImpl extends BaseService imple } entity.setPassword(AESUtil.encrypt(entity.getLoginCode()+"-123456")); entity.setCreate(); + entity.setState("0"); //保存 sysUserDao.save(entity); //保存用户公司 @@ -185,7 +187,7 @@ public class SysUserServiceImpl extends BaseService imple private boolean checkPersonIsUse(SysUserEntity entity) { SysUserEntity sysUserEntity = new SysUserEntity(); sysUserEntity.setPersonId(entity.getPersonId()); - sysUserEntity.setState("0");//启用 + //sysUserEntity.setState("0");//启用 if (sysUserDao.getCount(sysUserEntity) > 0) { return false; } @@ -379,7 +381,43 @@ public class SysUserServiceImpl extends BaseService imple interfaceCache.reloadData("1"); return BaseResult.getSuccessMessageEntity("重置密码成功"); } - + /** + * @param jsonObject + * @return com.hzya.frame.web.entity.JsonResultEntity + * @Author lvleigang + * @Description 重置密码 + * @Date 2:37 下午 2024/3/27 + **/ + @Override + public JsonResultEntity userResetPassword(JSONObject jsonObject) { + SysUserEntity entity = getData("jsonStr", jsonObject, SysUserEntity.class); + if (entity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if (entity.getOldPassword() == null || "".equals(entity.getOldPassword())) { + return BaseResult.getFailureMessageEntity("请先输入原密码"); + } + if (entity.getPassword() == null || "".equals(entity.getPassword())) { + return BaseResult.getFailureMessageEntity("请先输入新密码"); + } + if(entity.getPassword().equals(entity.getOldPassword())){ + return BaseResult.getFailureMessageEntity("新密码和原密码不能一样"); + } + SysUserEntity oldEntity = sysUserDao.get(StpUtil.getLoginIdAsString()); + if (oldEntity == null) { + return BaseResult.getFailureMessageEntity("系统错误"); + } + if(!oldEntity.getPassword().equals(AESUtil.encrypt(oldEntity.getLoginCode()+"-"+entity.getOldPassword()))){ + return BaseResult.getFailureMessageEntity("原密码错误,请重新输入"); + } + oldEntity.setPassword(AESUtil.encrypt(oldEntity.getLoginCode()+"-"+entity.getPassword())); + oldEntity.setUpdate(); + //保存密码 + sysUserDao.update(oldEntity); + interfaceCache.reloadData("1"); + StpUtil.logoutByTokenValue(StpUtil.getTokenValue()); + return BaseResult.getSuccessMessageEntity("重置密码成功"); + } /** * @param jsonObject diff --git a/service/src/main/java/com/hzya/frame/u8/dto/U8ResponseDTO.java b/service/src/main/java/com/hzya/frame/u8/dto/U8ResponseDTO.java new file mode 100644 index 00000000..a72cb34d --- /dev/null +++ b/service/src/main/java/com/hzya/frame/u8/dto/U8ResponseDTO.java @@ -0,0 +1,89 @@ +package com.hzya.frame.u8.dto; + +import com.alibaba.fastjson.annotation.JSONField; + +/** + * @Description u8返回对象 + * @Author xiangerlin + * @Date 2024/5/14 15:40 + **/ +public class U8ResponseDTO { + @JSONField(name = "Flag") + private String flag; + @JSONField(name = "DataOne") + private String dataOne; + @JSONField(name = "DataTwo") + private String dataTwo; + @JSONField(name = "Msg") + private String msg; + + //如果co初始化失败,或者token不对的时候会返回这些信息 + private String code; + private String success; + private String message; + private String data; + + public String getFlag() { + return flag; + } + + public void setFlag(String flag) { + this.flag = flag; + } + + public String getDataOne() { + return dataOne; + } + + public void setDataOne(String dataOne) { + this.dataOne = dataOne; + } + + public String getDataTwo() { + return dataTwo; + } + + public void setDataTwo(String dataTwo) { + this.dataTwo = dataTwo; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getSuccess() { + return success; + } + + public void setSuccess(String success) { + this.success = success; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/service/src/main/java/com/hzya/frame/u8/util/U8Util.java b/service/src/main/java/com/hzya/frame/u8/util/U8Util.java new file mode 100644 index 00000000..c0c57e39 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/u8/util/U8Util.java @@ -0,0 +1,34 @@ +package com.hzya.frame.u8.util; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.u8.dto.U8ResponseDTO; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** + * @Description + * @Author xiangerlin + * @Date 2024/5/14 15:30 + **/ +public class U8Util { + + static Logger logger = LogManager.getLogger(U8Util.class); + + //获取token + public static String getToken() { + String url = "http://127.0.0.1:51910/Api/Base/GetToken"; + JSONObject jsonObject = new JSONObject(); + jsonObject.put("secretkey", "L1NhkDrQhtBDzTxFxPI0jxWcBzTBSPvaI5xZusRRi9ofS9d6ngxrj1erwbdjxtUT"); + logger.info("获取U8token参数:{}", jsonObject.toJSONString()); + String token = HttpRequest.post( url).body(jsonObject.toJSONString()).timeout(60000).execute().body(); + logger.info("token返回参数:{}", jsonObject.toJSONString()); + if (StrUtil.isNotEmpty(token)) { + U8ResponseDTO u8ResponseDTO = JSONObject.parseObject(token, U8ResponseDTO.class); + return u8ResponseDTO.getMessage(); + } + return token; + + } +} diff --git a/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.java b/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.java index aa6de3fc..a12d3645 100644 --- a/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.java +++ b/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.java @@ -30,6 +30,8 @@ public class ArchivesEntity extends BaseEntity { private String rightApiId;//右接口ID private String rightId;//右id private String rightName;//右名称 + private String leftOrg;//左公司 + private String rightOrg;//右公司 public String getArchivesType() { return archivesType; @@ -151,6 +153,22 @@ public class ArchivesEntity extends BaseEntity { this.rightName = rightName; } + public String getLeftOrg() { + return leftOrg; + } + + public void setLeftOrg(String leftOrg) { + this.leftOrg = leftOrg; + } + + public String getRightOrg() { + return rightOrg; + } + + public void setRightOrg(String rightOrg) { + this.rightOrg = rightOrg; + } + public void setCreate() { this.setId(UUIDUtils.getUUID()); this.setSts("Y"); diff --git a/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.xml b/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.xml index 0d4dd9ee..6c869485 100644 --- a/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.xml +++ b/service/src/main/java/com/hzya/frame/u8c/ax/entity/ArchivesEntity.xml @@ -45,6 +45,7 @@ and left_code = #{leftCode} + and left_org = #{leftOrg} and sts='Y' diff --git a/service/src/main/java/com/hzya/frame/u8c/ax/entity/VoucherDetails.java b/service/src/main/java/com/hzya/frame/u8c/ax/entity/VoucherDetails.java index 89fc1130..efe9503d 100644 --- a/service/src/main/java/com/hzya/frame/u8c/ax/entity/VoucherDetails.java +++ b/service/src/main/java/com/hzya/frame/u8c/ax/entity/VoucherDetails.java @@ -12,6 +12,24 @@ public class VoucherDetails { private String localdebitamount; private String pk_accsubj; private String pk_currtype; + private String debitquantity; + private String price; + + public String getDebitquantity() { + return debitquantity; + } + + public void setDebitquantity(String debitquantity) { + this.debitquantity = debitquantity; + } + + public String getPrice() { + return price; + } + + public void setPrice(String price) { + this.price = price; + } private String creditquantity; private String debitquantity; private String price; diff --git a/service/src/main/java/com/hzya/frame/u9c/unitgroup/entity/VU9cUnitGroupEntity.xml b/service/src/main/java/com/hzya/frame/u9c/unitgroup/entity/VU9cUnitGroupEntity.xml index 85e53d29..460e7ed4 100644 --- a/service/src/main/java/com/hzya/frame/u9c/unitgroup/entity/VU9cUnitGroupEntity.xml +++ b/service/src/main/java/com/hzya/frame/u9c/unitgroup/entity/VU9cUnitGroupEntity.xml @@ -92,7 +92,6 @@ unitName , status , baseUnit , - sorts, sts, )values( @@ -102,7 +101,6 @@ #{unitname} , #{status} , #{baseunit} , - (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from v_u9c_unit_group a WHERE a.sts = 'Y' ), 'Y', ) diff --git a/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java b/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java index 6d26c0c9..c57c59ba 100644 --- a/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java +++ b/service/src/main/java/com/hzya/frame/web/quartz/QuartzJobFactory.java @@ -2,18 +2,16 @@ package com.hzya.frame.web.quartz; import com.alibaba.fastjson.JSONObject; -import com.baomidou.dynamic.datasource.annotation.DSTransactional; import com.hzya.frame.base.PluginBaseEntity; -import com.hzya.frame.sys.apireflection.service.impl.ApiHandleServiceImpl; +import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity; import com.hzya.frame.sysnew.integtationTask.IIntegrationTaskCacheableService; import com.hzya.frame.sysnew.integtationTask.entity.IntegrationTaskEntity; -import com.hzya.frame.sysnew.integtationTask.service.impl.IntegrationTaskServiceImpl; import com.hzya.frame.sysnew.integtationTaskLiving.entity.IntegrationTaskLivingEntity; -import com.hzya.frame.sysnew.integtationTaskLiving.service.impl.IntegrationTaskLivingServiceImpl; -import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao; -import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; +import com.hzya.frame.sysnew.integtationTaskLog.dao.IIntegrationTaskLogDao; +import com.hzya.frame.sysnew.integtationTaskLog.entity.IntegrationTaskLogEntity; import com.hzya.frame.util.PluginUtils; import com.hzya.frame.uuid.UUIDUtils; import com.hzya.frame.web.entity.JsonResultEntity; @@ -22,9 +20,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Resource; -import java.text.SimpleDateFormat; -import java.time.Duration; -import java.time.LocalDateTime; import java.util.Date; import java.util.List; import java.util.Map; @@ -38,7 +33,9 @@ public class QuartzJobFactory implements Job { @Resource private IIntegrationTaskCacheableService iIntegrationTaskCacheableService; @Resource - private IIntegrationTaskLivingDetailsDao integrationTaskLivingDetailsDao; + private IIntegrationTaskLogDao integrationTaskLogDao; + @Resource + private ISysApplicationDatabaseDao sysApplicationDatabaseDao; @Override public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { //当前开始时间 @@ -71,10 +68,11 @@ public class QuartzJobFactory implements Job { if(integrationTaskLivingEntity.getOldStartTime() != null ){ oldStartTime = integrationTaskLivingEntity.getOldStartTime(); } + //判断任务是否启用,存在不启用情况,需要手动把任务关闭 if(integrationTaskEntity.getTaskStatus() != null && !"1".equals(integrationTaskEntity.getTaskStatus())){ saveLivingAndDetail(integrationTaskLivingEntity,null, - "4","4","当前任务已停止,不执行任务",integrationTaskLivingEntity.getOldStartTime(),integrationTaskLivingEntity.getStartTime(),integrationTaskLivingEntity.getEndTime()); + "4","4","当前任务已停止,不执行任务",startTime,startTime,new Date()); JSONObject stopJson = new JSONObject(); stopJson.put("jobName",integrationTaskEntity.getTaskName()); stopJson.put("jobCode",integrationTaskEntity.getTaskCode()); @@ -82,23 +80,23 @@ public class QuartzJobFactory implements Job { return; } //任务日志 - IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity(); - integrationTaskLivingDetailsEntity.setId(UUIDUtils.getUUID()); - integrationTaskLivingDetailsEntity.setTaskLinvingId(integrationTaskLivingEntity.getId()); - integrationTaskLivingDetailsEntity.setTaskId(integrationTaskEntity.getId()); - integrationTaskLivingDetailsEntity.setTaskCode(integrationTaskEntity.getTaskCode()); - integrationTaskLivingDetailsEntity.setTaskName(integrationTaskEntity.getTaskName()); - integrationTaskLivingDetailsEntity.setTaskStatus("1"); - integrationTaskLivingDetailsEntity.setStartTime(startTime);//当前任务开始时间 - integrationTaskLivingDetailsEntity.setCompanyId(integrationTaskEntity.getCompanyId()); - integrationTaskLivingDetailsEntity.setOrg_id(integrationTaskEntity.getOrg_id()); - integrationTaskLivingDetailsEntity.setCreate_user_id(integrationTaskEntity.getCreate_user_id()); - integrationTaskLivingDetailsEntity.setModify_user_id(integrationTaskEntity.getModify_user_id()); - integrationTaskLivingDetailsEntity.setCreate_time(new Date()); - integrationTaskLivingDetailsEntity.setModify_time(new Date()); - integrationTaskLivingDetailsEntity.setSts("Y"); - integrationTaskLivingDetailsEntity.setRemark("任务执行中,请等待"); - integrationTaskLivingDetailsDao.save(integrationTaskLivingDetailsEntity); + IntegrationTaskLogEntity integrationTaskLogEntity = new IntegrationTaskLogEntity(); + integrationTaskLogEntity.setId(UUIDUtils.getUUID()); + integrationTaskLogEntity.setTaskLinvingId(integrationTaskLivingEntity.getId()); + integrationTaskLogEntity.setTaskId(integrationTaskEntity.getId()); + integrationTaskLogEntity.setTaskCode(integrationTaskEntity.getTaskCode()); + integrationTaskLogEntity.setTaskName(integrationTaskEntity.getTaskName()); + integrationTaskLogEntity.setTaskStatus("1"); + integrationTaskLogEntity.setStartTime(startTime);//当前任务开始时间 + integrationTaskLogEntity.setCompanyId(integrationTaskEntity.getCompanyId()); + integrationTaskLogEntity.setOrg_id(integrationTaskEntity.getOrg_id()); + integrationTaskLogEntity.setCreate_user_id(integrationTaskEntity.getCreate_user_id()); + integrationTaskLogEntity.setModify_user_id(integrationTaskEntity.getModify_user_id()); + integrationTaskLogEntity.setCreate_time(new Date()); + integrationTaskLogEntity.setModify_time(new Date()); + integrationTaskLogEntity.setSts("Y"); + integrationTaskLogEntity.setRemark("任务执行中,请等待"); + integrationTaskLogDao.save(integrationTaskLogEntity); integrationTaskLivingEntity.setTaskStatus("1");//执行中 integrationTaskLivingEntity.setStartTime(startTime); integrationTaskLivingEntity.setModify_time(new Date()); @@ -106,34 +104,45 @@ public class QuartzJobFactory implements Job { //判断插件是否启用 SysApplicationPluginEntity sysApplicationPluginEntity = iIntegrationTaskCacheableService.getSysApplicationPluginEntity(integrationTaskEntity.getTaskPlugin()); if(sysApplicationPluginEntity == null || sysApplicationPluginEntity.getPluginCode() == null || !"1".equals(sysApplicationPluginEntity.getPluginStatus())){ - saveLivingAndDetail(integrationTaskLivingEntity,integrationTaskLivingDetailsEntity, - "2","3","插件未启用,不执行任务",integrationTaskLivingEntity.getOldStartTime(),startTime,new Date()); + saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity, + "2","3","插件未启用,不执行任务",startTime,startTime,new Date()); return; } + String sourceCode = null; + //查找应用的数据源编码 + SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity(); + sysApplicationDatabaseEntity.setAppId(sysApplicationPluginEntity.getAppId()); + sysApplicationDatabaseEntity.setSts("Y"); + List sysApplicationDatabaseEntities = sysApplicationDatabaseDao.queryBase(sysApplicationDatabaseEntity); + if(sysApplicationDatabaseEntities != null && sysApplicationDatabaseEntities.size() == 1){ + sourceCode = sysApplicationDatabaseEntities.get(0).getSourceCode(); + } + //查找插件 PluginBaseEntity pluginBaseEntity = PluginUtils.getPluginsById(sysApplicationPluginEntity.getPluginCode()); if(pluginBaseEntity == null ){ - saveLivingAndDetail(integrationTaskLivingEntity,integrationTaskLivingDetailsEntity, - "2","3","插件未找到,不执行任务",integrationTaskLivingEntity.getOldStartTime(),startTime,new Date()); + saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity, + "2","3","插件未找到,不执行任务",startTime,startTime,new Date()); return; } //调用插件 JSONObject req = new JSONObject(); req.put("startTime",oldStartTime); req.put("endTime",startTime); + req.put("sourceCode",sourceCode); try { JsonResultEntity jsonResultEntity = pluginBaseEntity.executeBusiness(req); if(jsonResultEntity.isFlag()){ //写日志,修改任务实例 - saveLivingAndDetail(integrationTaskLivingEntity,integrationTaskLivingDetailsEntity, + saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity, "2","2",jsonResultEntity.getMsg(),startTime,startTime,new Date()); }else { //写日志,修改任务实例 - saveLivingAndDetail(integrationTaskLivingEntity,integrationTaskLivingDetailsEntity, + saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity, "3","3",jsonResultEntity.getMsg(),startTime,startTime,new Date()); } } catch (Exception e) { - saveLivingAndDetail(integrationTaskLivingEntity,integrationTaskLivingDetailsEntity, + saveLivingAndDetail(integrationTaskLivingEntity, integrationTaskLogEntity, "3","3","插件执行失败,请联系管理员",startTime,startTime,new Date()); logger.error("插件执行失败:"+e.getMessage()); } @@ -150,23 +159,23 @@ public class QuartzJobFactory implements Job { * @return void **/ private void saveLivingAndDetail(IntegrationTaskLivingEntity integrationTaskLivingEntity, - IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity, + IntegrationTaskLogEntity integrationTaskLogEntity, String livingtype,String detailtype, String msg,Date oldStartTime,Date startTime,Date endTime) { Long interval = (endTime.getTime() - startTime.getTime()) / (1000); // 计算间隔天数 integrationTaskLivingEntity.setTaskStatus(livingtype);//待执行 integrationTaskLivingEntity.setOldStartTime(oldStartTime); integrationTaskLivingEntity.setStartTime(startTime); integrationTaskLivingEntity.setEndTime(endTime); - integrationTaskLivingEntity.setRunNum(interval.intValue()); + integrationTaskLivingEntity.setDiffTime(interval.toString()); integrationTaskLivingEntity.setRunNum(integrationTaskLivingEntity.getRunNum()+1); integrationTaskLivingEntity.setModify_time(new Date()); iIntegrationTaskCacheableService.updateIntegrationTaskLivingEntity(integrationTaskLivingEntity); - if(integrationTaskLivingDetailsEntity != null ){ - integrationTaskLivingDetailsEntity.setEndTime(endTime); - integrationTaskLivingDetailsEntity.setDiffTime(interval.toString()); - integrationTaskLivingDetailsEntity.setTaskStatus(detailtype);//执行成功 - integrationTaskLivingDetailsEntity.setRemark(msg); - integrationTaskLivingDetailsDao.update(integrationTaskLivingDetailsEntity); + if(integrationTaskLogEntity != null ){ + integrationTaskLogEntity.setEndTime(endTime); + integrationTaskLogEntity.setDiffTime(interval.toString()); + integrationTaskLogEntity.setTaskStatus(detailtype);//执行成功 + integrationTaskLogEntity.setRemark(msg); + integrationTaskLogDao.update(integrationTaskLogEntity); } } } diff --git a/service/src/main/resources/lib/DataApiSdk-jar-with-dependencies.jar b/service/src/main/resources/lib/DataApiSdk-jar-with-dependencies.jar new file mode 100644 index 00000000..85b98bf5 Binary files /dev/null and b/service/src/main/resources/lib/DataApiSdk-jar-with-dependencies.jar differ diff --git a/service/src/main/resources/lib/bcprov-jdk15on-1.57.jar b/service/src/main/resources/lib/bcprov-jdk15on-1.57.jar new file mode 100644 index 00000000..5a10986b Binary files /dev/null and b/service/src/main/resources/lib/bcprov-jdk15on-1.57.jar differ diff --git a/service/src/main/resources/lib/bcprov-jdk15on-1.70.jar b/service/src/main/resources/lib/bcprov-jdk15on-1.70.jar new file mode 100644 index 00000000..0e4198e5 Binary files /dev/null and b/service/src/main/resources/lib/bcprov-jdk15on-1.70.jar differ diff --git a/service/src/main/resources/lib/openBasicSDK-2.1.230630.jar b/service/src/main/resources/lib/openBasicSDK-2.1.230630.jar new file mode 100644 index 00000000..e7e5ce1b Binary files /dev/null and b/service/src/main/resources/lib/openBasicSDK-2.1.230630.jar differ diff --git a/service/src/main/resources/lib/pubbaseapp_nccloud_rtLevel-1.jar b/service/src/main/resources/lib/pubbaseapp_nccloud_rtLevel-1.jar new file mode 100644 index 00000000..78aedbcf Binary files /dev/null and b/service/src/main/resources/lib/pubbaseapp_nccloud_rtLevel-1.jar differ diff --git a/service/src/main/resources/lib/yonyoulog.jar b/service/src/main/resources/lib/yonyoulog.jar new file mode 100644 index 00000000..06a4fa84 Binary files /dev/null and b/service/src/main/resources/lib/yonyoulog.jar differ diff --git a/service/src/main/resources/mapper/ExcelTemplateConfigDetailDao.xml b/service/src/main/resources/mapper/ExcelTemplateConfigDetailDao.xml new file mode 100644 index 00000000..c305ed3c --- /dev/null +++ b/service/src/main/resources/mapper/ExcelTemplateConfigDetailDao.xml @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into excel_template_config_detail(field_name, field_code, field_type, dictionary_detail_id, show_name, sort, switch, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values (#{fieldName}, #{fieldCode}, #{fieldType}, #{dictionaryDetailId}, #{showName}, #{sort}, #{switch}, #{createUserId}, #{createTime}, #{modifyTime}, #{modifyUserId}, #{orgId}, #{companyId}, #{sts}) + + + + insert into excel_template_config_detail(field_name, field_code, field_type, dictionary_detail_id, show_name, sort, switch, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.fieldName}, #{entity.fieldCode}, #{entity.fieldType}, #{entity.dictionaryDetailId}, #{entity.showName}, #{entity.sort}, #{entity.switch}, #{entity.createUserId}, #{entity.createTime}, #{entity.modifyTime}, #{entity.modifyUserId}, #{entity.orgId}, #{entity.companyId}, #{entity.sts}) + + + + + insert into excel_template_config_detail(field_name, field_code, field_type, dictionary_detail_id, show_name, sort, switch, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.fieldName}, #{entity.fieldCode}, #{entity.fieldType}, #{entity.dictionaryDetailId}, #{entity.showName}, #{entity.sort}, #{entity.switch}, #{entity.createUserId}, #{entity.createTime}, #{entity.modifyTime}, #{entity.modifyUserId}, #{entity.orgId}, #{entity.companyId}, #{entity.sts}) + + on duplicate key update + field_name = values(field_name), + field_code = values(field_code), + field_type = values(field_type), + dictionary_detail_id = values(dictionary_detail_id), + show_name = values(show_name), + sort = values(sort), + switch = values(switch), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + + + + update excel_template_config_detail + + + field_name = #{fieldName}, + + + field_code = #{fieldCode}, + + + field_type = #{fieldType}, + + + dictionary_detail_id = #{dictionaryDetailId}, + + + show_name = #{showName}, + + + sort = #{sort}, + + + switch = #{switch}, + + + create_user_id = #{createUserId}, + + + create_time = #{createTime}, + + + modify_time = #{modifyTime}, + + + modify_user_id = #{modifyUserId}, + + + org_id = #{orgId}, + + + company_id = #{companyId}, + + + sts = #{sts}, + + + where sorts = #{sorts} + + + + + delete from excel_template_config_detail where sorts = #{sorts} + + + + diff --git a/service/src/main/resources/mapper/SysApplicationDictionaryDetailDao.xml b/service/src/main/resources/mapper/SysApplicationDictionaryDetailDao.xml new file mode 100644 index 00000000..eac1c08e --- /dev/null +++ b/service/src/main/resources/mapper/SysApplicationDictionaryDetailDao.xml @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into sys_application_dictionary_detail(app_id, dictionary_id, field_name, field_code, field_type, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values (#{appId}, #{dictionaryId}, #{fieldName}, #{fieldCode}, #{fieldType}, #{createUserId}, #{createTime}, #{modifyTime}, #{modifyUserId}, #{orgId}, #{companyId}, #{sts}) + + + + insert into sys_application_dictionary_detail(app_id, dictionary_id, field_name, field_code, field_type, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.appId}, #{entity.dictionaryId}, #{entity.fieldName}, #{entity.fieldCode}, #{entity.fieldType}, #{entity.createUserId}, #{entity.createTime}, #{entity.modifyTime}, #{entity.modifyUserId}, #{entity.orgId}, #{entity.companyId}, #{entity.sts}) + + + + + insert into sys_application_dictionary_detail(app_id, dictionary_id, field_name, field_code, field_type, create_user_id, create_time, modify_time, modify_user_id, org_id, company_id, sts) + values + + (#{entity.appId}, #{entity.dictionaryId}, #{entity.fieldName}, #{entity.fieldCode}, #{entity.fieldType}, #{entity.createUserId}, #{entity.createTime}, #{entity.modifyTime}, #{entity.modifyUserId}, #{entity.orgId}, #{entity.companyId}, #{entity.sts}) + + on duplicate key update + app_id = values(app_id), + dictionary_id = values(dictionary_id), + field_name = values(field_name), + field_code = values(field_code), + field_type = values(field_type), + create_user_id = values(create_user_id), + create_time = values(create_time), + modify_time = values(modify_time), + modify_user_id = values(modify_user_id), + org_id = values(org_id), + company_id = values(company_id), + sts = values(sts) + + + + + update sys_application_dictionary_detail + + + app_id = #{appId}, + + + dictionary_id = #{dictionaryId}, + + + field_name = #{fieldName}, + + + field_code = #{fieldCode}, + + + field_type = #{fieldType}, + + + create_user_id = #{createUserId}, + + + create_time = #{createTime}, + + + modify_time = #{modifyTime}, + + + modify_user_id = #{modifyUserId}, + + + org_id = #{orgId}, + + + company_id = #{companyId}, + + + sts = #{sts}, + + + where sorts = #{sorts} + + + + + delete from sys_application_dictionary_detail where sorts = #{sorts} + + + + diff --git a/service/src/main/webapp/WEB-INF/web.xml b/service/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000..d80081d1 --- /dev/null +++ b/service/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/webapp/src/main/java/com/hzya/frame/web/init/MyApplicationListener.java b/webapp/src/main/java/com/hzya/frame/web/init/MyApplicationListener.java index a24e46a8..71279458 100644 --- a/webapp/src/main/java/com/hzya/frame/web/init/MyApplicationListener.java +++ b/webapp/src/main/java/com/hzya/frame/web/init/MyApplicationListener.java @@ -10,6 +10,7 @@ import com.hzya.frame.sysnew.integtationTaskLiving.entity.IntegrationTaskLivingE import com.hzya.frame.web.quartz.QuartzJobFactoryUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.ApplicationListener; import org.springframework.core.annotation.Order; @@ -34,19 +35,23 @@ public class MyApplicationListener implements ApplicationListener integrationTaskEntities = integrationTaskDao.queryByLike(queryEntity); + List integrationTaskEntities = integrationTaskDao.queryBase(queryEntity); //没有任务直接返回 if (integrationTaskEntities == null || integrationTaskEntities.size() == 0) { return; diff --git a/webapp/src/main/java/com/hzya/frame/webapp/entrance/controler/EntranceController.java b/webapp/src/main/java/com/hzya/frame/webapp/entrance/controler/EntranceController.java index 0ae99bfc..2bc927c3 100644 --- a/webapp/src/main/java/com/hzya/frame/webapp/entrance/controler/EntranceController.java +++ b/webapp/src/main/java/com/hzya/frame/webapp/entrance/controler/EntranceController.java @@ -1,11 +1,14 @@ package com.hzya.frame.webapp.entrance.controler; +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.bip.v3.v2207.service.IBipSsoService; import com.hzya.frame.sysnew.application.service.ISysApplicationService; import com.hzya.frame.sys.entity.EsbReturnEntity; import com.hzya.frame.sys.file.download.entity.FileDownloadEntity; import com.hzya.frame.sys.file.download.service.IFileDownloadService; import com.hzya.frame.sys.file.upload.entity.FileResultEntity; import com.hzya.frame.sys.file.upload.entity.FileUploadDto; +import com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity; import com.hzya.frame.web.entity.BaseResult; import com.hzya.frame.web.entity.JsonResultEntity; import com.hzya.frame.web.exception.BaseSystemException; @@ -15,6 +18,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -29,8 +33,20 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.File; +import java.io.FileOutputStream; import java.io.IOException; +import java.io.InputStream; import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.StandardCopyOption; +import java.util.Enumeration; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; /** * @Content程序唯一入口controller @@ -43,7 +59,10 @@ import java.nio.charset.StandardCharsets; @RequestMapping("/entranceController") public class EntranceController { private final Logger logger = LoggerFactory.getLogger(EntranceController.class); - + @Value("${savefile.path}") + public String DSK; + @Autowired + protected IBipSsoService bipSsoService; @Autowired @Qualifier(value = "entranceServiceImpl") private IEntranceService entranceService; @@ -103,12 +122,43 @@ public class EntranceController { logger.info("-------------------结束调用上传文件upload接口-------------------"); return jsonResultEntity; } - /** - * 根据文件保存的新名称下载文件 - * - * @param fileSaveName - * @return - */ + + @RequestMapping(value = "/pluginfileUpload", method = RequestMethod.POST) + @ResponseBody + public JsonResultEntity pluginfileUpload(MultipartFile file, FileUploadDto entity,String pluginPackageName, ServletRequest servletRequest, ServletResponse servletResponse) { + JsonResultEntity jsonResultEntity = null; + logger.info("-------------------开始调用上传插件附件upload接口-------------------"); + try { + jsonResultEntity = entranceService.pluginfileUpload(file, entity,pluginPackageName,servletRequest,servletResponse); + } catch (Exception e) { + jsonResultEntity = BaseResult.getFailureMessageEntity(e.getMessage()); + } + logger.info("-------------------结束调用上传插件附件upload接口-------------------"); + return jsonResultEntity; + } + + @ResponseBody + @RequestMapping(value = "/pluginZipUpdate") + public JsonResultEntity pluginZipUpate(FileUploadDto fileUploadDto){ + JsonResultEntity jsonResultEntity = null; + logger.info("-------------------开始调用插件更新接口-------------------"); + try{ + jsonResultEntity = entranceService.pluginZipUpate(fileUploadDto); + } catch (Exception e) { + jsonResultEntity = BaseResult.getFailureMessageEntity(e.getMessage()); + } + logger.info("-------------------结束调用插件更新接口------------------"); + return jsonResultEntity; + } + + + + /** + * 根据文件保存的新名称下载文件 + * + * @param fileSaveName + * @return + */ @RequestMapping(value = "/option/fileDownload") public ResponseEntity fileDownload(String fileSaveName) { ResponseEntity responseEntity = null; @@ -165,4 +215,22 @@ public class EntranceController { return sysApplicationService.externalCallInterface(servletRequest,servletResponse); } + @RequestMapping(value = "/externalCallInterfaceResend") + @ResponseBody + public JsonResultEntity externalCallInterfaceResend(SysMessageManageLogEntity resendLogEntity) throws Exception { + return sysApplicationService.externalCallInterfaceResend(resendLogEntity); + } + + @RequestMapping(value = "/externalCallInterfaceToESB") + @ResponseBody + public JsonResultEntity externalCallInterfaceToESB(ServletRequest servletRequest, ServletResponse servletResponse) throws Exception { + return sysApplicationService.externalCallInterfaceToESB(servletRequest,servletResponse); + } + + @RequestMapping(value = "/erpSso") + @ResponseBody + public String erpSso(HttpServletRequest request, HttpServletResponse response, String ticket) throws Exception { + response.sendRedirect(bipSsoService.erpSso(request,ticket)); + return null; + } } diff --git a/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/IEntranceService.java b/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/IEntranceService.java index 0665cb93..54eda1a6 100644 --- a/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/IEntranceService.java +++ b/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/IEntranceService.java @@ -32,6 +32,9 @@ public interface IEntranceService { * @return com.hzya.frame.web.entity.JsonResultEntity **/ JsonResultEntity fileUpload(MultipartFile file, FileUploadDto entity, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception; + + JsonResultEntity pluginfileUpload(MultipartFile file, FileUploadDto entity,String pluginPackageName, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception; + JsonResultEntity pluginZipUpate(FileUploadDto fileUploadDto) throws Exception; /*** * 系统框架附件上传接口 * @content: diff --git a/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/impl/EntranceServiceImpl.java b/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/impl/EntranceServiceImpl.java index ab991065..46af2a3c 100644 --- a/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/impl/EntranceServiceImpl.java +++ b/webapp/src/main/java/com/hzya/frame/webapp/entrance/service/impl/EntranceServiceImpl.java @@ -6,6 +6,8 @@ import cn.hutool.extra.servlet.ServletUtil; import com.alibaba.fastjson.JSONObject; import com.baomidou.dynamic.datasource.annotation.DSTransactional; import com.hzya.frame.sys.entity.EsbReturnEntity; +import com.hzya.frame.sys.file.download.entity.FileDownloadEntity; +import com.hzya.frame.sys.file.download.service.IFileDownloadService; import com.hzya.frame.sys.file.upload.entity.FileResultEntity; import com.hzya.frame.sys.file.upload.entity.FileUploadDto; import com.hzya.frame.sys.file.upload.entity.FileUploadEntity; @@ -54,6 +56,9 @@ public class EntranceServiceImpl implements IEntranceService { @Autowired private IFileUploadService fileUploadService; + @Autowired + private IFileDownloadService fileDownloadService; + @Override @DSTransactional() public JsonResultEntity doBusiness(ServletRequest servletRequest, ServletResponse servletResponse) throws Exception { @@ -88,40 +93,40 @@ public class EntranceServiceImpl implements IEntranceService { try { StpUtil.checkLogin(); //校验当前登陆人是否有权限 - boolean flag = false; - String userId = StpUtil.getLoginIdAsString(); - //获取接口 - SysInterfaceEntity sysInterfaceEntity = (SysInterfaceEntity) interfaceCache.get("6","beanName"+service+"interfacName"+serviceMethod); - if(sysInterfaceEntity == null || sysInterfaceEntity.getId() == null){ - //todo 接口权限验证 - return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); - } - //查询用户权限 - if(!flag){ - SysPopedomInterfaceEntity userPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("4","userId"+userId+"interfaceId"+sysInterfaceEntity.getId()); - if(userPopedomInterfaceEntity != null && userPopedomInterfaceEntity.getId() != null ){ - flag = true; - } - } - //查询用户角色的权限 - if(!flag){ - List userRoleMap = (List) interfaceCache.get("3",null); - if(userRoleMap != null && userRoleMap.size() > 0){ - for (SysUserRolesEntity sysUserRolesEntity : userRoleMap) { - if(sysUserRolesEntity.getUserId().equals(userId)){ - SysPopedomInterfaceEntity sysPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("5","roleId"+sysUserRolesEntity.getRoleId()+"interfaceId"+sysInterfaceEntity.getId()); - if(sysPopedomInterfaceEntity != null && sysPopedomInterfaceEntity.getId() != null ){ - flag = true; - break; - } - } - } - } - } - if(!flag){ - //todo 接口权限验证 - return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); - } + // 接口权限验证 开始 + //boolean flag = false; + //String userId = StpUtil.getLoginIdAsString(); + ////获取接口 + //SysInterfaceEntity sysInterfaceEntity = (SysInterfaceEntity) interfaceCache.get("6","beanName"+service+"interfacName"+serviceMethod); + //if(sysInterfaceEntity == null || sysInterfaceEntity.getId() == null){ + // return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); + //} + ////查询用户权限 + //if(!flag){ + // SysPopedomInterfaceEntity userPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("4","userId"+userId+"interfaceId"+sysInterfaceEntity.getId()); + // if(userPopedomInterfaceEntity != null && userPopedomInterfaceEntity.getId() != null ){ + // flag = true; + // } + //} + ////查询用户角色的权限 + //if(!flag){ + // List userRoleMap = (List) interfaceCache.get("3",null); + // if(userRoleMap != null && userRoleMap.size() > 0){ + // for (SysUserRolesEntity sysUserRolesEntity : userRoleMap) { + // if(sysUserRolesEntity.getUserId().equals(userId)){ + // SysPopedomInterfaceEntity sysPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("5","roleId"+sysUserRolesEntity.getRoleId()+"interfaceId"+sysInterfaceEntity.getId()); + // if(sysPopedomInterfaceEntity != null && sysPopedomInterfaceEntity.getId() != null ){ + // flag = true; + // break; + // } + // } + // } + // } + //} + //if(!flag){ + // return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员"); + //} + // 接口权限验证 结束 } catch (NotLoginException e) { logger.error("token无效"); return BaseResult.getFailureMessageEntity("token无效"); @@ -225,6 +230,19 @@ public class EntranceServiceImpl implements IEntranceService { FileUploadEntity fileUploadEntity = fileUploadService.fileUpload(file,entity); return BaseResult.getSuccessMessageEntity("附件上传成功",fileUploadEntity); } + + @Override + public JsonResultEntity pluginfileUpload(MultipartFile file, FileUploadDto entity,String pluginPackageName, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception { + StpUtil.checkLogin(); + FileUploadEntity fileUploadEntity = fileUploadService.pluginfileUpload(file,entity,pluginPackageName); + return BaseResult.getSuccessMessageEntity("附件上传成功",fileUploadEntity); + } + + public JsonResultEntity pluginZipUpate(FileUploadDto fileUploadDto) throws Exception{ + StpUtil.checkLogin(); + FileDownloadEntity fileDownloadEntity = fileDownloadService.pluginZipUpate(fileUploadDto); + return BaseResult.getSuccessMessageEntity("插件更新成功",fileDownloadEntity); + } @Override public JsonResultEntity fileUpload(MultipartFile file, FileResultEntity entity, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception { entity = fileUploadService.fileUpload(file,entity); @@ -235,7 +253,7 @@ public class EntranceServiceImpl implements IEntranceService { public Object platformInterface(ServletRequest servletRequest, ServletResponse servletResponse) throws InvocationTargetException, IllegalAccessException { HttpServletRequest request = (HttpServletRequest) servletRequest; //tailuo 要访问的Bean名称 - String service = request.getHeader("tl"); + String service = request.getHeader("yatl"); //bean方法 String serviceMethod = request.getHeader("yadj"); String body = ServletUtil.getBody(servletRequest); diff --git a/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java b/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java index 17a238dd..e4d9c3f1 100644 --- a/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java +++ b/webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java @@ -6,9 +6,8 @@ import com.baomidou.dynamic.datasource.DynamicRoutingDataSource; import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException; import com.hzya.frame.datasource.DataSourceUtilProperties; -import com.hzya.frame.sys.dataSource.dao.ISysDataSourceDao; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceEntity; -import com.hzya.frame.sys.dataSource.entity.SysDataSourceVo; +import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao; +import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity; import com.hzya.frame.util.AESUtil; import com.hzya.frame.web.entity.BaseEntity; import com.hzya.frame.web.exception.BaseSystemException; @@ -38,7 +37,7 @@ public class AopDynamicRoutingDataSourceInit { @Resource private DataSource dataSource; @Resource - private ISysDataSourceDao sysDataSourceDao; + private ISysApplicationDatabaseDao sysApplicationDatabaseDao; @Before("@annotation(dsAnnotation)") @@ -64,11 +63,12 @@ public class AopDynamicRoutingDataSourceInit { dsDatasource = ds.getDataSource(dsValue); } catch (CannotFindDataSourceException exception) { //logger.info("beforeDynamicRoutingDataSourceInitMethod:根据ds获取dsDatasource失败!异常信息:" + "exception.getMessage()" + " 执行初始化数据源:" + dsValue); - SysDataSourceEntity entity = new SysDataSourceEntity(); + SysApplicationDatabaseEntity entity = new SysApplicationDatabaseEntity(); entity.setSts("Y"); - entity.setUseState(1); + entity.setDbStatus("1"); entity.setSourceCode(dsValue); - List sysDataSourceEntities = sysDataSourceDao.queryDSBase(entity); + entity.setDataSourceCode("master"); + List sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(entity); //logger.info("beforeDynamicRoutingDataSourceInitMethod:根据dsValue获取数据源信息查询结果 sysDataSourceEntities.size:" + sysDataSourceEntities.size()); if (sysDataSourceEntities != null && sysDataSourceEntities.size() > 0) { for (int i = 0; i < sysDataSourceEntities.size(); i++) { @@ -116,9 +116,9 @@ public class AopDynamicRoutingDataSourceInit { } else if ("sqlServer".equalsIgnoreCase(source_type)) { driveClass = DataSourceUtilProperties.SQL2005DRIVER; } -// else if ("dm".equalsIgnoreCase(source_type)) { -// driveClass = DataSourceUtilProperties.dm; -// } + else if ("dm".equalsIgnoreCase(source_type)) { + driveClass = DataSourceUtilProperties.dm; + } try { //测试连接 Class.forName(driveClass); diff --git a/webapp/src/main/java/com/hzya/frame/webapp/web/init/FlywayConfig.java b/webapp/src/main/java/com/hzya/frame/webapp/web/init/FlywayConfig.java new file mode 100644 index 00000000..8630f562 --- /dev/null +++ b/webapp/src/main/java/com/hzya/frame/webapp/web/init/FlywayConfig.java @@ -0,0 +1,78 @@ +package com.hzya.frame.webapp.web.init; +import com.baomidou.dynamic.datasource.DynamicRoutingDataSource; +import com.hzya.frame.util.AESUtil; +import lombok.RequiredArgsConstructor; +import org.flywaydb.core.Flyway; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +import javax.annotation.PostConstruct; +import javax.annotation.Resource; +import javax.sql.DataSource; + +@Configuration +@RequiredArgsConstructor +@EnableTransactionManagement +public class FlywayConfig { + + @Value("${spring.flyway.enabled}") + private String enabled; + @Value("${spring.flyway.clean-disabled}") + private boolean cleanDisabled; + @Value("${spring.flyway.locations}") + private String locations; + @Value("${spring.flyway.table}") + private String table; + @Value("${spring.flyway.placeholder-replacement}") + private boolean placeholderReplacement; + @Value("${spring.flyway.baseline-on-migrate}") + private boolean baselineOnMigrate; + @Value("${spring.flyway.validate-on-migrate}") + private boolean validateOnMigrat; + @Value("${spring.flyway.sql-migration-prefix}") + private String sqlMigrationPrefix; + @Value("${spring.flyway.sql-migration-separator}") + private String sqlMigrationSeparator; + @Value("${spring.flyway.sql-migration-suffixes}") + private String sqlMigrationSuffixes; + @Value("${spring.datasource.dynamic.datasource.master.url}") + private String url; + @Value("${spring.datasource.dynamic.datasource.master.username}") + private String username; + @Value("${spring.datasource.dynamic.datasource.master.password}") + private String password; + @Resource + private DataSource dataSource; + + + @PostConstruct + public void migrateOrder() { + if("false".equals(enabled)){ + String pwd = AESUtil.decrypt(password); + DynamicRoutingDataSource ds = (DynamicRoutingDataSource) dataSource; + DataSource dsDatasource = null; + + dsDatasource = ds.getDataSource("master"); + // 将路径转换 + Flyway flyway = Flyway.configure() + //.dataSource(url,username,pwd) + .dataSource(dsDatasource) + .cleanDisabled(cleanDisabled) + .locations(locations) + .table(table) + .encoding("utf-8") + .outOfOrder(true) + .baselineOnMigrate(true) + .validateOnMigrate(baselineOnMigrate) + .validateOnMigrate(validateOnMigrat) + .sqlMigrationPrefix(sqlMigrationPrefix) + .sqlMigrationSeparator(sqlMigrationSeparator) + .sqlMigrationSuffixes(sqlMigrationSuffixes) + .placeholderReplacement(placeholderReplacement) + .load(); + flyway.migrate(); + } + } + +} diff --git a/webapp/src/main/java/com/hzya/frame/webapp/web/listener/InitCommandLineRunner.java b/webapp/src/main/java/com/hzya/frame/webapp/web/listener/InitCommandLineRunner.java index 81fc5f3a..18f92505 100644 --- a/webapp/src/main/java/com/hzya/frame/webapp/web/listener/InitCommandLineRunner.java +++ b/webapp/src/main/java/com/hzya/frame/webapp/web/listener/InitCommandLineRunner.java @@ -10,6 +10,7 @@ import com.hzya.frame.web.action.ApplicationContextUtil; import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; @@ -36,25 +37,27 @@ public class InitCommandLineRunner implements ApplicationListener