通知设置 新通知
公众号快速注册并认证小程序
CRM会员 • 刘宗超 发表了文章 • 0 个评论 • 17 次浏览 • 5 天前
条件:1、境内主体公众号:已认证的企业、媒体、政府、其他组织类型公众号(包括企业和个体工商户);
2、境外主体公众号:已认证的服务号(包括境外主体的企业和政府机构)。
限制:1、境内主体非个体工商户类型(企业、媒体、政府、其他组织类型)公众号一个月可以复用资质注册5个小程序,个体户一个月可以复用资质注册1个小程序;
2、境外主体公众号一个月可以复用资质注册5个小程序。
开通入口:
登录公众号->小程序管理->关联小程序->添加->快速注册并认证小程序
相关规则:
1、复用资质创建的小程序默认与该公众号关联;
2、复用资质创建的小程序默认关联该公众号,不占一个月新增关联13个小程序的限制;
3、复用资质创建的小程序默认关联公众号,不下发模板消息,不默认出现在公众号资料页;
4、一个公众号若存在“待完成注册”的小程序,不可发起复用资质创建小程序;
5、一个公众号一个月内可复用资质注册小程序不多于5个。(创建成功才占用);
6、使用复用公众号资质注册小程序,将以本公众号的主体作为该小程序的开发者,可选择以本公众号运营者作为该小程序的管理员;
7、若选择了复用认证资质,则小程序完成注册后即是“已认证”状态;
8、若选择了复用认证资质,小程序初始认证有效期与公众号认证有效期一致,后续小程序认证年审需要在小程序后台独立申请。
创建流程:
第一步:登录公众号->小程序管理->添加->快速注册并认证小程序
第二步:同意协议
第三步:管理员扫码验证
第四步:勾需要选快速创建小程序的资质
注:复用微信认证资质不需要再次支付认证审核服务费,也不需要审核。
如不复用运营者信息,后续登录小程序时需绑定管理员
第五步:填写小程序账号信息
注:邮箱需要是未绑定任何个人微信、公众号、小程序、微信开放平台的邮箱。
第六步:邮件激活小程序账号,激活完成后即可使用邮箱账号密码登录小程序。
第七步:绑定小程序管理员
注:绑定管理员,如果有在第四步有勾选复用运营者信息。最终以绑定管理员信息为准。
以上注册流程创建的小程序,不用再走小额打款验证主体。生成的账号具有独立的邮箱账号、密码,跟走正常注册流程注册的小程序具有一样的能力权限。
微信平台证书下载出现解密时,长度过长的错误解决
Java • 刘宗超 发表了文章 • 0 个评论 • 24 次浏览 • 2024-11-13 14:48
java.security.InvalidKeyException: Illegal key size错误
分析错误原因:解密长度引起的
提出来两个解决办法:
1 、有policy 文件夹
找到java.security
#crypto.policy=unlimited
把 # 注释去掉
2、没有policy文件夹
直接替换 local_policy.jar,US_export_policy.jar两个jar包。
JDK8下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
原文链接:https://blog.csdn.net/Linlietao0587/article/details/124823968
公众号菜单跳转会员中心小程序地址
使用说明 • 刘宗超 发表了文章 • 0 个评论 • 42 次浏览 • 2024-11-06 15:03
Dockerfile配置文件
安装部署 • 刘宗超 发表了文章 • 0 个评论 • 38 次浏览 • 2024-11-05 16:49
# 使用 OpenJDK 8 作为基础镜像
FROM openjdk:8-jdk-slim
# 设置时区为中国标准时间
RUN echo "Asia/Shanghai" > /etc/timezone
# 设置工作目录
WORKDIR /app
# 将项目文件复制到容器中
COPY . .
# 指定容器启动时的命令
ENTRYPOINT ["java", "-jar", "x3-service-b2b-center-2022.3.RELEASE.jar"]
# 如果使用外部配置文件,请确保相应路径已正确配置
Docker打包和启动:
#!/bin/bash
# 拉取最新的镜像
#docker pull b2b:latest
#docker打包
docker build -t b2b .
# 停止并删除旧容器(如果存在)
docker stop b2b
docker rm b2b
# 启动新的容器
docker run -d --name b2b --network host --log-driver=none b2b:latest
#docker运行映射端口
#docker run -d --name b2b -p 8104:8104 --log-driver=none b2b:latest
#Docker启动映射路径
docker run -d --name b2b \
--network host \
--log-driver=none \
-v /www/wwwroot/X3BossErpJava/X3_Spring/x3-b2b-center/logs:/app/logs \
b2b:latest
#Docker启动映射配置文件路径
docker run -d --name b2b \
--network host \
--log-driver=none \
-v /www/wwwroot/X3BossErpJava/X3_Spring/x3-b2b-center/logs:/app/logs \
-v /www/wwwroot/X3BossErpJava/X3_Spring/x3-b2b-center/config/:/app/config/ \
b2b:latest
flowerable 流程bpmn部署原理
开发文档 • 刘宗超 发表了文章 • 0 个评论 • 61 次浏览 • 2024-10-24 15:29
--流程设计
SELECT * FROM ACT_DE_MODEL WHERE NAME='gelisiInventoryPosBillsProcess';
--流程设计历史版本
SELECT * FROM ACT_DE_MODEL_HISTORY WHERE NAME='gelisiInventoryPosBillsProcess';
--流程生效 存储流程定义的信息
select a.* from ACT_RE_PROCDEF a where key_ like 'gelisiInventoryPosBills%'
Flowable 是一个轻量级的工作流和业务流程管理平台,它支持 BPMN 2.0 标准来定义业务流程。当你在 Flowable 中部署一个 BPMN 文件时,实际上是在执行一系列的步骤来解析、验证并存储这个流程定义。下面是 Flowable 流程 BPMN 部署的基本原理:1. 部署过程
- 创建部署:使用
RepositoryService
创建一个新的部署。 - 添加资源:向部署中添加 BPMN 文件或其他相关资源(如表单定义、规则文件等)。
- 执行部署:调用
deploy()
方法完成部署。
Java深色版本
[code]RepositoryService repositoryService = processEngine.getRepositoryService();Deployment deployment = repositoryService.createDeployment() .addClasspathResource("processes/my-process.bpmn20.xml") .name("My Process Deployment") .deploy();
[/code]2. 解析BPMN文件- 读取文件:Flowable 从提供的路径读取 BPMN 文件。
- XML解析:使用 XML 解析器(通常是基于 SAX 或 DOM 的解析器)解析 BPMN 文件的内容。
- 构建模型:根据 BPMN 文件中的元素和属性构建内部的数据结构,包括流程节点、连接线、任务、事件等。
- 语法检查:确保 BPMN 文件符合 BPMN 2.0 规范。
- 逻辑检查:验证流程定义的逻辑一致性,例如没有孤立的任务或事件,所有开始事件都有结束事件等。
- 唯一性检查:确保流程定义的键(key)在当前环境中是唯一的。
- 数据库持久化:将解析后的流程定义信息存储到数据库中。主要涉及以下几个表:
ACT_RE_DEPLOYMENT
:存储部署的信息。ACT_RE_PROCDEF
:存储流程定义的信息。ACT_GE_BYTEARRAY
:存储 BPMN 文件的实际内容和其他二进制数据。ACT_RU_EXECUTION
和ACT_RU_TASK
等运行时表会在流程实例启动后使用。
- 缓存机制:为了提高性能,Flowable 通常会将解析后的流程定义缓存在内存中,以便快速访问。
- 索引优化:数据库表可能会有适当的索引来加速查询操作。
- 获取流程定义:通过
RuntimeService
获取流程定义。 - 启动流程实例:使用
startProcessInstanceByKey
或startProcessInstanceById
方法启动流程实例。
Java深色版本
[code]RuntimeService runtimeService = processEngine.getRuntimeService();ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcessKey");
[/code]7. 监控和管理- 历史记录:如果启用了历史记录功能,Flowable 会记录流程实例的执行情况。
- 管理界面:可以通过 Flowable 提供的管理界面(如 Flowable Task App)来监控和管理流程实例。
总结
Flowable 的 BPMN 部署过程主要包括读取和解析 BPMN 文件、验证流程定义、将定义信息存储到数据库,并将其缓存以备后续使用。整个过程旨在确保流程定义的正确性和可用性,并为后续的流程实例启动和执行提供基础。如果你遇到任何问题,可以通过查看日志、数据库内容以及 Flowable 提供的管理工具来进行诊断和解决。
CentOS7本地yum源更换阿里云
安装部署 • 刘宗超 发表了文章 • 0 个评论 • 145 次浏览 • 2024-08-22 16:39
sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载阿里云的 CentOS-Base.repo 文件
sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.清除缓存并生成新的缓存
sudo yum clean
sudo yum makecache
4.更新系统
sudo yum update
————————————————
1 更正.repo文件里的mirrors信息,然后安装centos-release-scl和centos-release-scl-rh,以使得devtoolset*系列的包可用
在/etc/yum.repos.d目录下执行如下命令:
cd /etc/yum.repos.d
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sudo yum clean all
sudo yum makecache
2 再次更正CentOS-SCLo-scl.repo和CentOS-SCLo-scl-rh.repo里的mirrors信息
在/etc/yum.repos.d目录下执行如下命令:
cd /etc/yum.repos.d
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sudo yum clean all
sudo yum makecache
配置作业表清理EC日志
使用说明 • 刘宗超 发表了文章 • 2 个评论 • 159 次浏览 • 2024-08-12 18:02
作业名称:EC日志清理作业
调用表达式:0 5 0 * * ?
调用方式:GET
微服务内网地址:http://x3-service-ec-bills-center/ecbillscenter/generic/job/clean/log/batch
单据中心执行:
CREATE TABLE D_GENERICE_EC_BILLS_TABLE
(
GENERICE_CLEAN_ID VARCHAR2 (64) NOT NULL,
GENERICE_CLEAN_NAME VARCHAR2 (128),
SAVE_DAY NUMBER,
DATE_NAME VARCHAR2 (64),
CREATE_DATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
CREATE_USERNAME VARCHAR2 (32),
CREATE_USERID VARCHAR2 (32),
GENERICE_CLEAN_TABLE VARCHAR2 (64),
PRIMARY KEY (GENERICE_CLEAN_ID)
);
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcLogDownOrderTable', '订单下载日志表(x3_ec_log_down_order)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_log_down_order');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcLogDownRefundTable', '售后下载日志表(x3_ec_log_down_refund)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_log_down_refund');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcLogDownExchangeTable', '换货下载日志表(x3_ec_log_down_exchange)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_log_down_exchange');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcLogDownItemTable', '电商商品下载日志表(x3_ec_log_down_item)', 60, 'logDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_log_down_item');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcLogUpStockTable', '电商库存上传日志表(x3_ec_log_up_stock)', 60, 'logDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_log_up_stock');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcOrderDownloadTaskTable', '电商下载任务单据(d_orderdownloadtask)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_orderdownloadtask');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcOrderDownloadTaskTableSub', '电商下载任务子单据(d_orderdownloadtask_sub)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_orderdownloadtask_sub');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcRefundDownloadTaskTable', '电商下载退货申请任务单据(d_refunddownloadtask)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_refunddownloadtask');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcRefundDownloadTaskTableSub', '电商下载退货申请任务子单单据(d_refunddownloadtask_sub)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_refunddownloadtask_sub');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcExchangeDownloadTaskTable', '电商下载换货申请任务单据(d_exchangedownloadtask)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_exchangedownloadtask');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcExchangeDownloadTaskTableSub', '电商下载换货申请任务单子表(d_exchangedownloadtask_sub)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_exchangedownloadtask_sub');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcItemDownloadTaskTable', '电商下载商品任务单据表(d_itemdownloadtask)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_itemdownloadtask');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcStockUploadWholeTaskTable', '电商库存上传任务单据(d_stock_upload_task)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_stock_upload_task');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcStockUploadWholeTaskTableSub', '电商库存上传任务子单据(d_stock_upload_task_sub)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'd_stock_upload_task_sub');
INSERT INTO D_GENERICE_EC_BILLS_TABLE (GENERICE_CLEAN_ID, GENERICE_CLEAN_NAME, SAVE_DAY, DATE_NAME, CREATE_DATE, CREATE_USERNAME, CREATE_USERID, GENERICE_CLEAN_TABLE)
VALUES ('EcParallelControlTable', '电商并发控制表(x3_ec_parallel_control)', 60, 'createDate', to_timestamp ('2023-08-23 15:24:54.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'root', 'root', 'x3_ec_parallel_control');
COMMIT;
SELECT * FROM D_GENERICE_EC_BILLS_TABLE;
X2-200 停用P表触发器和约束
使用说明 • 刘宗超 发表了文章 • 0 个评论 • 107 次浏览 • 2024-08-05 16:06
--停用触发器
ALTER TRIGGER TD_P0670 DISABLE;
ALTER TRIGGER TD_P0671 DISABLE;
ALTER TRIGGER TI_P0671 DISABLE;
ALTER TRIGGER TR_P0670_STATE_ESBSYN DISABLE;
ALTER TRIGGER TR_P0670_X3CONTROL DISABLE;
ALTER TRIGGER TR_P0671_X3CONTROL DISABLE;
ALTER TRIGGER TU_P0670 DISABLE;
ALTER TRIGGER TU_P0670_P0674 DISABLE;
ALTER TRIGGER TU_P0671 DISABLE;
ALTER TRIGGER TU_P0671_GET DISABLE;
--启用触发器
ALTER TRIGGER TD_P0670 ENABLE;
ALTER TRIGGER TD_P0671 ENABLE;
ALTER TRIGGER TI_P0671 ENABLE;
ALTER TRIGGER TR_P0670_STATE_ESBSYN ENABLE;
ALTER TRIGGER TR_P0670_X3CONTROL ENABLE;
ALTER TRIGGER TR_P0671_X3CONTROL ENABLE;
ALTER TRIGGER TU_P0670 ENABLE;
ALTER TRIGGER TU_P0670_P0674 ENABLE;
ALTER TRIGGER TU_P0671 ENABLE;
ALTER TRIGGER TU_P0671_GET ENABLE;
----------------------------------------------------------------------------------
SELECT * FROM ALL_CONSTRAINTS
WHERE TABLE_NAME IN( 'P0670','P0671','P067C') AND CONSTRAINT_NAME NOT LIKE 'SYS_%'
AND STATUS='ENABLED'
--禁用(停用)约束
ALTER TABLE P0671 DISABLE CONSTRAINT FK_P0671_S0370;
ALTER TABLE P067C DISABLE CONSTRAINT PK_P067C;
ALTER TABLE P0671 DISABLE CONSTRAINT PK_P0671;
ALTER TABLE P0670 DISABLE CONSTRAINT PK_P0670;
--启用约束
ALTER TABLE P0671 ENABLE CONSTRAINT FK_P0671_S0370;
ALTER TABLE P067C ENABLE CONSTRAINT PK_P067C;
ALTER TABLE P0671 ENABLE CONSTRAINT PK_P0671;
ALTER TABLE P0670 ENABLE CONSTRAINT PK_P0670;
收银提示ecms服务,需要设置系统参数-收银可售库存类型
使用说明 • 刘宗超 发表了文章 • 0 个评论 • 154 次浏览 • 2024-07-12 12:15
设置全渠道参数:
x2300财务科目档案脚本
安装部署 • 刘宗超 发表了文章 • 0 个评论 • 112 次浏览 • 2024-07-08 16:29
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1131', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '应收账款', NULL, 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1131.01', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '现金借款', '1131', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1131.01.0001', NULL, 1, 3, '2131.01.0001', to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '货款借款', '1131.01', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1151', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '预付账款', NULL, 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1151.01', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '预付现金', '1151', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1151.01.0001', NULL, 1, 4, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '供应商货款', '1151.01', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2121', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '应付账款', NULL, 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '预收账款', NULL, 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.01', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '现金', '2131', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.01.0001', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '货款', '2131.01', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '订金', '2131', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9999', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '总订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.03', NULL, -1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '货额', '2131', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.03.9999', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '总货额', '2131.03', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.04', NULL, 1, 0, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '其他款项', '2131', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.04.0001', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '保证金', '2131.04', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.01.0002', NULL, 1, 3, NULL, to_timestamp ('2017-05-05 15:49:13.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '道具款', '2131.01', 0, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1131.01.0002', NULL, 1, 3, '2131.01.0002', to_timestamp ('2017-05-05 15:49:13.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '道具款借款', '1131.01', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.01.0003', NULL, 2, 3, NULL, to_timestamp ('2017-09-12 09:18:18.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '联营代垫', '2131.01', 0, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('1131.01.0003', NULL, 2, 3, '2131.01.0003', to_timestamp ('2017-09-12 08:54:45.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', 1, 0, NULL, 0, '联营代垫借款', '1131.01', 1, 1, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.04.9001', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '合同保证金', '2131.04', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.04.9002', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '货品押金', '2131.04', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.04.9003', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '装修押金', '2131.04', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9001', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '固定订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9002', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '春季订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9003', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '夏季订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9004', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '秋季订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
INSERT INTO A_PARTNER_SUBJECT (SUBJECT_ID, ARCHIVE_REMARK, ARCHIVE_STATE, AUXILIARY_ACCOUNT, BIND_SUBJECT_ID, CREATE_DATE, CREATE_USERID, CREATE_USERNAME, DEDIT_CREDIT, IS_DEFAUL, MONTH_ID, ARCHIVE_ORDER, SUBJECT_NAME, SUBJECT_PARENT_ID, SUBJECT_SIGN, SUBJECT_TYPE_ID, UPDATE_DATE, UPDATE_USERID, UPDATE_USERNAME, YEAR_ID)
VALUES ('2131.02.9005', NULL, 1, 3, NULL, to_timestamp ('2017-01-10 17:05:57.000000', 'YYYY-MM-DDHH24:MI:SS.FF'), 'sql', 'sql插入', -1, 0, NULL, 0, '冬季订金', '2131.02', 1, 2, NULL, NULL, NULL, NULL);
update a_partner_subject set subject_type_id=1
where subject_type_id=1000;
update a_partner_subject set subject_type_id=2
where subject_type_id=2000;
SELECT subject_type_id FROM a_partner_subject
oracle 死锁查询语句
使用说明 • 刘宗超 发表了文章 • 0 个评论 • 293 次浏览 • 2024-07-02 10:33
--查询死锁
select round((sysdate-c.prev_exec_start)*24*60*60,0) as "time_span(s)",
b.owner,b.object_name,a.session_id,a.locked_mode, c.terminal,c.module,c.username,
c.sid,c.serial#,--sysdate,c.prev_exec_start,
'alter system kill session '''||c.sid||', '||c.serial#||''';',
'begin rdsadmin.rdsadmin_util.kill('||c.sid||','||c.serial#||');end;',
c.sql_id,d.spid
from v$locked_object a
inner join dba_objects b on b.object_id = a.object_id
inner join v$session c on a.session_id=c.sid --and c.sql_id='9ugdpyy13uvsc'
left join v$process d on c.paddr=d.addr
--and b.OBJECT_NAME like 'STY_MOVE%'
--and prev_exec_start<=sysdate-1/24/60
--and c.username='X3_HAOSH'
order by 1 desc;
--批量杀死锁
BEGIN
FOR C IN (SELECT S.SID SID, S.SERIAL# SERIAL FROM V$LOCKED_OBJECT L, V$SESSION S WHERE L.SESSION_ID = S.SID) LOOP
EXECUTE IMMEDIATE ('ALTER SYSTEM KILL SESSION ''' || C.SID || ',' || C.SERIAL || '''');
END LOOP;
END;
--查看死锁的SQL语句可以通过以下查询:
select l.session_id sid, s.serial#, l.locked_mode, l.oracle_username, s.user#, l.os_user_name, s.machine, s.terminal, a.sql_text, a.action
from v$sqlarea a, v$session s, v$locked_object l
where l.session_id = s.sid and s.prev_sql_addr = a.address
order by sid, s.serial#;
Linux安装ChromeDriver 旧版本
安装部署 • 刘宗超 发表了文章 • 0 个评论 • 211 次浏览 • 2024-06-13 20:09
--Linux安装chrome浏览器
wget http://x3good.x2erp.com:99/chrome/google-chrome-stable_current_x86_64.rpm
yum install ./google-chrome-stable_current_x86_64.rpm
--查看chrome浏览器版本
google-chrome --version
--Linux安装ChromeDriver
wget http://x3good.x2erp.com:99/chrome/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin
chromedriver --version
一键安装字体:旧版本版本:
curl -o flowable.zip http://x3test.x2erp.com:99/flowable/flowable.zip && sudo unzip -d /usr/share/fonts flowable.zip && ls /usr/share/fonts
https://www.chromedownloads.net/chrome64linux/
https://registry.npmmirror.com/binary.html?path=chromedriver/
SAP项目部署配置sapjco
安装部署 • 刘宗超 发表了文章 • 0 个评论 • 503 次浏览 • 2024-03-18 14:22
####windows部署配置sapjco####
1、需要把本项目lib文件夹下面的sapjco3.dll放到C:\Windows\System32(也可以直接放到打包的项目jar包同级目录)。
2、需要把本项目lib文件夹下面的sapjco3.jar放到jre安装目录下的lib\ext下面,如C:\Program Files\Java\jre1.8.0_201\lib\ext
####linux部署配置sapjco####
1、需要把本项目lib文件夹下面的libsapjco3.so放到一个目录,如/usr/java/jdk1.8.0_191/jre/lib/amd64/server/libsapjco3.so
2、在配置文件/etc/profile添加配置libsapjco3.so所在的目录,如export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/java/jdk1.8.0_191/jre/lib/amd64/server
3、需要把本项目lib文件夹下面的sapjco3.jar放到jre安装目录下的lib\ext下面,如/usr/java/jdk1.8.0_191/jre/lib/ext/sapjco3.jar
JAVA_HOME=/usr/java/jdk1.8.0_121
export LD_LIBRARY_PATH=dir:$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/amd64/server
export CLASSPATH=.:${JAVA_HOME}/lib:${LD_LIBRARY_PATH}/sapjco3.jar
####简便的linux部署配置sapjco####
原理跟上面的linux配置是一样的,需要把sapjco3.jar放到classpath路径,
还有设置环境变量LD_LIBRARY_PATH为libsapjco3.so所在的目录,
直接在启动脚本上配置即可,如下那两个文件放在当前jar同级目录sapjco3下
####################
#!/bin/sh
NAME="mos-x3-gls-service-2022.3.RELEASE"
ROOT=$(cd $(dirname ${BASH_SOURCE[0]}); pwd )
PID=$(cat /var/run/"$NAME".pid)
export LD_LIBRARY_PATH="$ROOT"/sapjco3/
kill -9 $PID
#nohup java -Xms256m -Xmx1024m -jar "$ROOT"/"$NAME".jar >/dev/null 2>&1 &
nohup java -Xbootclasspath/a:"$ROOT"/sapjco3/sapjco3.jar -Xms256m -Xmx1024m -jar "$ROOT"/"$NAME".jar &> log.txt 2>&1 &
echo $! > /var/run/"$NAME".pid
#########################
APP备案获取公钥和MD5
业绩宝APP • 刘宗超 发表了文章 • 0 个评论 • 464 次浏览 • 2024-01-05 14:25
下载链接 https://sj.qq.com/appdetail/cn.houapp.beian.zhushou,或者各大安卓应用市场搜索 APP备案助手 即可
2、IOS的 把证书导入到钥匙串,在证书右键查看简介
https://zhuanlan.zhihu.com/p/660738854?utm_id=0
可删除的es索引,释放磁盘压力
维修手册 • 刘宗超 发表了文章 • 1 个评论 • 320 次浏览 • 2024-01-04 15:37
提交ES x3_monitor_bills_es
发送MQ x3_monitor_mq_send
MQ订阅 x3_monitor_mq_push
------------------------------------------
_task 任务(处理中、异常)
_success 成功的
_fail 失败的
_history 历史的
------------------------------------------
#可删除索引:
DELETE x3_monitor_mq_push_history
DELETE x3_monitor_bills_jms_history
DELETE x3_monitor_bills_es_history
DELETE x3_monitor_mq_send_history
DELETE x3_monitor_timing_job_history
DELETE x3_monitor_interfacing_other_history
DELETE x3_monitor_mq_push_history
DELETE x3_monitor_timing_job_success
DELETE job_scheduler_log_success_index
DELETE job_scheduler_log_fail_index
DELETE x3_monitor_mq_push_success
DELETE x3_monitor_bills_jms_success
DELETE x3_monitor_bills_jms_task
DELETE x3_monitor_bills_jms_history
DELETE x3_monitor_bills_es_success
DELETE x3_monitor_bills_es_task
DELETE x3_monitor_bills_es_history
DELETE x3_monitor_mq_send_success
#重建索引:
PUT x3_monitor_mq_push_history
PUT x3_monitor_bills_jms_history
PUT x3_monitor_bills_es_history
PUT x3_monitor_mq_send_history
PUT x3_monitor_timing_job_history
PUT x3_monitor_interfacing_other_history
PUT x3_monitor_mq_push_history
PUT x3_monitor_timing_job_success
PUT job_scheduler_log_success_index
PUT job_scheduler_log_fail_index
PUT x3_monitor_mq_push_success
PUT x3_monitor_bills_jms_success
PUT x3_monitor_bills_jms_task
PUT x3_monitor_bills_jms_history
PUT x3_monitor_bills_es_success
PUT x3_monitor_bills_es_task
PUT x3_monitor_bills_es_history
PUT x3_monitor_mq_send_success