Skip to content

Commit

Permalink
feat: 增加对接畅捷通T+
Browse files Browse the repository at this point in the history
  • Loading branch information
phy19870227 committed Nov 26, 2021
1 parent 5369739 commit eaa0eed
Show file tree
Hide file tree
Showing 146 changed files with 6,643 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<module>star-tiger-framework-pay</module>
<module>star-tiger-framework-sms</module>
<module>star-tiger-framework-amap</module>
<module>star-tiger-framework-tplus</module>
<module>star-tiger-samples</module>
</modules>

Expand Down Expand Up @@ -141,6 +142,7 @@
<mapstruct.version>1.3.1.Final</mapstruct.version>
<zxing.version>3.4.0</zxing.version>
<sharding-jdbc.version>4.0.1</sharding-jdbc.version>
<poi-ooxml.version>4.1.2</poi-ooxml.version>
<logstash-logback-encoder.version>6.3</logstash-logback-encoder.version>
<minio.version>3.0.10</minio.version>
<aliyun-java-sdk-core.version>4.5.3</aliyun-java-sdk-core.version>
Expand All @@ -149,6 +151,7 @@
<aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version>
<alipay-easysdk.version>2.2.0</alipay-easysdk.version>
<wxjava.version>4.0.0</wxjava.version>
<chanjet-openapi-java-sdk.version>1.0.13-RELEASE</chanjet-openapi-java-sdk.version>
</properties>

<repositories>
Expand Down
15 changes: 15 additions & 0 deletions star-tiger-framework-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>${sharding-jdbc.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi-ooxml.version}</version>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
Expand Down Expand Up @@ -184,6 +189,11 @@
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>${aliyun-java-sdk-dysmsapi.version}</version>
</dependency>
<dependency>
<groupId>com.chanjet</groupId>
<artifactId>chanjet-openapi-java-sdk</artifactId>
<version>${chanjet-openapi-java-sdk.version}</version>
</dependency>

<dependency>
<groupId>com.github.snake19870227</groupId>
Expand Down Expand Up @@ -345,6 +355,11 @@
<artifactId>star-tiger-framework-amap</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>com.github.snake19870227</groupId>
<artifactId>star-tiger-framework-tplus</artifactId>
<version>0.8.0</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
11 changes: 11 additions & 0 deletions star-tiger-framework-tplus/database/mysql/sys_cfg.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
drop table if exists sys_cfg;

create table sys_cfg
(
cfg_code varchar(50) not null comment '配置代码',
cfg_value varchar(4000) null comment '配置内容',
org_flow varchar(32) null comment '机构流水号',
record_status varchar(2) default 'Y' comment '记录状态',
last_modify_time varchar(20) comment '最后更新时间',
primary key (cfg_code)
);
15 changes: 15 additions & 0 deletions star-tiger-framework-tplus/database/oracle/hpry_dw_inventory.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
drop table hpry_dw_inventory;

create table hpry_dw_inventory
(
flow varchar(50) constraint hpry_dw_inventory_pk primary key,
tp_code varchar(50),
tp_name varchar(99),
template_name varchar(500)
);

comment on table hpry_dw_inventory is '低温产品';
comment on column hpry_dw_inventory.flow is '主键';
comment on column hpry_dw_inventory.tp_code is '存货编码';
comment on column hpry_dw_inventory.tp_name is '存货名称';
comment on column hpry_dw_inventory.template_name is '模板中名称';
15 changes: 15 additions & 0 deletions star-tiger-framework-tplus/database/oracle/hpry_dw_partner.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
drop table hpry_dw_partner;

create table hpry_dw_partner
(
flow varchar(50) constraint hpry_dw_partner_pk primary key,
tp_code varchar(50),
tp_name varchar(500),
template_name varchar(500)
);

comment on table hpry_dw_partner is '低温往来单位';
comment on column hpry_dw_partner.flow is '主键';
comment on column hpry_dw_partner.tp_code is '往来单位编码';
comment on column hpry_dw_partner.tp_name is '往来单位名称';
comment on column hpry_dw_partner.template_name is '模板中名称';
10 changes: 10 additions & 0 deletions star-tiger-framework-tplus/database/oracle/hpry_error_imp_log.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
drop table hpry_error_imp_log;

create table hpry_error_imp_log
(
flow varchar(50) constraint hpry_error_imp_log_pk primary key,
type int,
filename varchar(50),
imp_content clob,
error_stack clob
);
17 changes: 17 additions & 0 deletions star-tiger-framework-tplus/database/oracle/sys_cfg.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
drop table sys_cfg;

create table sys_cfg
(
cfg_code varchar(50) constraint sys_cfg_pk primary key,
cfg_value varchar(4000),
org_flow varchar(32),
record_status varchar(2),
last_modify_time varchar(20)
);

comment on table sys_cfg is '系统配置表';
comment on column sys_cfg.cfg_code is '配置代码';
comment on column sys_cfg.cfg_value is '配置内容';
comment on column sys_cfg.org_flow is '机构流水号';
comment on column sys_cfg.record_status is '记录状态';
comment on column sys_cfg.last_modify_time is '最后更新时间';
8 changes: 8 additions & 0 deletions star-tiger-framework-tplus/database/oracle/sys_menu.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
drop table sys_menu;

create table sys_menu
(
flow varchar(50) constraint sys_menu_pk primary key,
menu_name varchar(99),
menu_path varchar(99)
);
8 changes: 8 additions & 0 deletions star-tiger-framework-tplus/database/oracle/sys_user_menu.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
drop table sys_user_menu;

create table sys_user_menu
(
flow varchar(50) constraint sys_user_menu_pk primary key,
user_id varchar(50),
menu_flow varchar(50)
);
13 changes: 13 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_app_ticket.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
drop table tp_app_ticket;

create table tp_app_ticket
(
flow varchar(50) constraint tp_app_ticket_pk primary key,
app_ticket varchar(99),
create_time varchar(20),
modify_time varchar(20)
);

comment on table tp_app_ticket is 'T+应用APP_TICKET记录';
comment on column tp_app_ticket.flow is '主键';
comment on column tp_app_ticket.app_ticket is 'APP_TICKET';
48 changes: 48 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_inventory.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
drop table tp_inventory;

create table tp_inventory
(
flow varchar(50) constraint tp_inventory_pk primary key,
tp_id varchar(50),
tp_code varchar(50),
tp_name varchar(99),
inventory_class_code varchar(99),
inventory_class_name varchar(99),
unit_code varchar(99),
unit_name varchar(99),
base_unit_code varchar(99),
base_unit_name varchar(99),
unit_purchase_code varchar(99),
unit_purchase_name varchar(99),
unit_sale_code varchar(99),
unit_sale_name varchar(99),
unit_stock_code varchar(99),
unit_stock_name varchar(99),
unit_retail_code varchar(99),
unit_retail_name varchar(99),
unit_manufacture_code varchar(99),
unit_manufacture_name varchar(99),
tp_disabled varchar(50)
);

comment on table tp_inventory is 'T+存货';
comment on column tp_inventory.flow is '主键';
comment on column tp_inventory.tp_id is 'T+ID';
comment on column tp_inventory.tp_code is '存货编码';
comment on column tp_inventory.tp_name is '存货名称';
comment on column tp_inventory.inventory_class_code is '存货分类';
comment on column tp_inventory.inventory_class_name is '存货分类';
comment on column tp_inventory.unit_code is '计量单位';
comment on column tp_inventory.unit_name is '计量单位';
comment on column tp_inventory.base_unit_code is '主计量单位';
comment on column tp_inventory.base_unit_name is '主计量单位';
comment on column tp_inventory.unit_purchase_code is '采购常用单位';
comment on column tp_inventory.unit_purchase_name is '采购常用单位';
comment on column tp_inventory.unit_sale_code is '销售常用单位';
comment on column tp_inventory.unit_sale_name is '销售常用单位';
comment on column tp_inventory.unit_stock_code is '库存常用单位';
comment on column tp_inventory.unit_stock_name is '库存常用单位';
comment on column tp_inventory.unit_retail_code is '零售常用单位';
comment on column tp_inventory.unit_retail_name is '零售常用单位';
comment on column tp_inventory.unit_manufacture_code is '生产常用单位';
comment on column tp_inventory.unit_manufacture_name is '生产常用单位';
21 changes: 21 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_message.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
drop table tp_message;

create table tp_message
(
flow varchar(50) constraint tp_message_pk primary key,
msg_id varchar(99),
app_key varchar(99),
msg_type varchar(99),
msg_time varchar(20),
biz_content varchar(2000),
create_time varchar(20),
modify_time varchar(20)
);

comment on table tp_message is 'T+消息推送日志';
comment on column tp_message.flow is '主键';
comment on column tp_message.msg_id is '消息ID';
comment on column tp_message.app_key is '开放平台appKey';
comment on column tp_message.msg_type is '消息类型';
comment on column tp_message.msg_time is '时间戳';
comment on column tp_message.biz_content is '消息体';
15 changes: 15 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_partner.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
drop table tp_partner;

create table tp_partner
(
flow varchar(50) constraint tp_partner_pk primary key,
tp_code varchar(50),
tp_name varchar(500),
partner_type_name varchar(99)
);

comment on table tp_partner is 'T+往来单位';
comment on column tp_partner.flow is '主键';
comment on column tp_partner.tp_code is '往来单位编码';
comment on column tp_partner.tp_name is '往来单位名称';
comment on column tp_partner.partner_type_name is '往来单位类型';
21 changes: 21 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_person.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
drop table tp_person;

create table tp_person
(
flow varchar(50) constraint tp_person_pk primary key,
tp_id varchar(50),
tp_code varchar(50),
tp_name varchar(99),
tp_dept_id varchar(50),
tp_dept_code varchar(50),
tp_dept_name varchar(99)
);

comment on table tp_person is 'T+员工';
comment on column tp_person.flow is '主键';
comment on column tp_person.tp_id is 'T+ID';
comment on column tp_person.tp_code is '员工编码';
comment on column tp_person.tp_name is '员工名称';
comment on column tp_person.tp_dept_id is 'T+员工部门ID';
comment on column tp_person.tp_dept_code is '员工部门编码';
comment on column tp_person.tp_dept_name is '员工部门名称';
35 changes: 35 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_token.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
drop table tp_token;

create table tp_token
(
flow varchar(50) constraint tp_token_pk primary key,
datetime varchar(20),
access_token varchar(900),
expires_in number(10),
expires_datetime varchar(20),
refresh_token varchar(900),
refresh_expires_in number(10),
refresh_expires_datetime varchar(20),
scope varchar(50),
user_id varchar(50),
user_name varchar(99),
org_id varchar(50),
app_name varchar(50),
sid varchar(50),
user_auth_permanent_code varchar(200)
);

comment on table tp_token is 'T+操作token';
comment on column tp_token.flow is '主键';
comment on column tp_token.datetime is '获取时间';
comment on column tp_token.access_token is 'access_token';
comment on column tp_token.expires_in is 'expires_in';
comment on column tp_token.refresh_token is 'refresh_token';
comment on column tp_token.refresh_expires_in is 'refresh_expires_in';
comment on column tp_token.scope is 'scope';
comment on column tp_token.user_id is 'user_id';
comment on column tp_token.user_name is '用户姓名';
comment on column tp_token.org_id is 'org_id';
comment on column tp_token.app_name is 'app_name';
comment on column tp_token.sid is 'sid';
comment on column tp_token.user_auth_permanent_code is 'user_auth_permanent_code';
15 changes: 15 additions & 0 deletions star-tiger-framework-tplus/database/oracle/tp_warehouse.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
drop table tp_warehouse;

create table tp_warehouse
(
flow varchar(50) constraint tp_warehouse_pk primary key,
tp_id varchar(50),
tp_code varchar(50),
tp_name varchar(99)
);

comment on table tp_warehouse is 'T+仓库';
comment on column tp_warehouse.flow is '主键';
comment on column tp_warehouse.tp_id is 'T+ID';
comment on column tp_warehouse.tp_code is '仓库编码';
comment on column tp_warehouse.tp_name is '仓库名称';
Loading

0 comments on commit eaa0eed

Please sign in to comment.