Compare commits
93 Commits
5e97a9bd14
...
c333395b6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c333395b6c | ||
|
|
2917e896fd | ||
|
|
3b099925b6 | ||
|
|
a5f844d5df | ||
|
|
d4f26b5244 | ||
|
|
e6ec4f9e23 | ||
|
|
7c0a0601ed | ||
|
|
da6ab95d3a | ||
|
|
7541cb4d6f | ||
|
|
00cdf5bc0c | ||
|
|
c71ac5dbd3 | ||
|
|
adc4f4bf2d | ||
|
|
0f37a7f9b6 | ||
|
|
e5c8d922c6 | ||
|
|
fea194b7bb | ||
|
|
b35c3f8db2 | ||
|
|
4bcce5046c | ||
|
|
d3a771a8a8 | ||
|
|
098be43598 | ||
|
|
a3386853fa | ||
|
|
ac5e210269 | ||
|
|
1750e031c0 | ||
|
|
e2688268ac | ||
|
|
d6e72f6045 | ||
|
|
781d29bed7 | ||
|
|
06fb92462c | ||
|
|
2a1af3ed6b | ||
|
|
a0ec76a8d8 | ||
|
|
96c9ab97e6 | ||
|
|
db91848cd4 | ||
|
|
ff348e933b | ||
|
|
1c919bec41 | ||
|
|
ec99f49c93 | ||
|
|
f3e0b642ef | ||
|
|
d1e2e25b96 | ||
|
|
09c5c5fde5 | ||
|
|
8a7c74bfb5 | ||
|
|
35d42d4d75 | ||
|
|
d0f7cc9734 | ||
|
|
378a9e7bcb | ||
|
|
a44e7e835e | ||
|
|
26ab7dac24 | ||
|
|
3524f0fffb | ||
|
|
287d24fc7f | ||
|
|
63708dfb36 | ||
|
|
0ce56cad8b | ||
|
|
62e31ea360 | ||
|
|
c6ab1fefce | ||
|
|
373fd0c412 | ||
|
|
f70d742e9b | ||
|
|
49fb84ea5a | ||
|
|
a510ead10c | ||
|
|
f96a157024 | ||
|
|
7a15fff979 | ||
|
|
206bf9a3c5 | ||
|
|
429f421e1b | ||
|
|
479d6c6c2a | ||
|
|
9233f5f783 | ||
|
|
cd94420b21 | ||
|
|
605cff08c7 | ||
|
|
70f8e59c1b | ||
|
|
a0673022fa | ||
|
|
bdf211f44f | ||
|
|
6644710fe0 | ||
|
|
441de77197 | ||
|
|
aede30176f | ||
|
|
6bdce6e9bc | ||
|
|
22b449f7d5 | ||
|
|
2489a7f73e | ||
|
|
d56587b8fd | ||
|
|
041a89bb59 | ||
|
|
75e212511d | ||
|
|
43c4c8a94e | ||
|
|
caca8590c7 | ||
|
|
e345d48dc7 | ||
|
|
a210af0dd8 | ||
|
|
f8f584b9ff | ||
|
|
5366a35546 | ||
|
|
d47c91c7f2 | ||
|
|
1fd704fe9d | ||
|
|
c5211287ab | ||
|
|
82c819c59a | ||
|
|
bed76174c5 | ||
|
|
c3502e78c8 | ||
|
|
d283d92a4e | ||
|
|
03b04cd7fe | ||
|
|
cf540e12be | ||
|
|
5b660f5a11 | ||
|
|
30029e0fd6 | ||
|
|
c2f38608e7 | ||
|
|
674ef07c5a | ||
|
|
a07c71f1a0 | ||
|
|
d54edcd88b |
67
deployment-databus.yaml
Normal file
67
deployment-databus.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
||||||
|
name: zt-module-databus
|
||||||
|
labels:
|
||||||
|
app: zt-module-databus
|
||||||
|
annotations:
|
||||||
|
version: "VERSION_PLACEHOLDER"
|
||||||
|
description: DESC_PLACEHOLDER
|
||||||
|
rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: zt-module-databus
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: zt-module-databus
|
||||||
|
spec:
|
||||||
|
dnsPolicy: None
|
||||||
|
dnsConfig:
|
||||||
|
nameservers:
|
||||||
|
- "172.16.36.16"
|
||||||
|
- "172.16.36.220"
|
||||||
|
containers:
|
||||||
|
- name: zt-module-databus
|
||||||
|
image: 172.16.46.66:10043/zt/zt-module-databus:VERSION_PLACEHOLDER
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Asia/Shanghai
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- "sleep 35"
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48108
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48108
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 5
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1024Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "2048Mi"
|
||||||
|
terminationGracePeriodSeconds: 40
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
74
deployment-gateway.yaml
Normal file
74
deployment-gateway.yaml
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
||||||
|
name: zt-gateway
|
||||||
|
labels:
|
||||||
|
app: zt-gateway
|
||||||
|
annotations:
|
||||||
|
version: "VERSION_PLACEHOLDER"
|
||||||
|
description: DESC_PLACEHOLDER
|
||||||
|
rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: zt-gateway
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: zt-gateway
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: zt-gateway
|
||||||
|
image: 172.16.46.66:10043/zt/zt-gateway:VERSION_PLACEHOLDER
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Asia/Shanghai
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- "sleep 35"
|
||||||
|
ports:
|
||||||
|
- containerPort: 48080
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48080
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48080
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 5
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1024Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "2048Mi"
|
||||||
|
terminationGracePeriodSeconds: 40
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
||||||
|
name: zt-gateway
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: zt-gateway
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 48080
|
||||||
|
targetPort: 48080
|
||||||
|
nodePort: 30081
|
||||||
67
deployment-infra.yaml
Normal file
67
deployment-infra.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
||||||
|
name: zt-module-infra
|
||||||
|
labels:
|
||||||
|
app: zt-module-infra
|
||||||
|
annotations:
|
||||||
|
version: "VERSION_PLACEHOLDER"
|
||||||
|
description: DESC_PLACEHOLDER
|
||||||
|
rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER"
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: zt-module-infra
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: zt-module-infra
|
||||||
|
spec:
|
||||||
|
dnsPolicy: None
|
||||||
|
dnsConfig:
|
||||||
|
nameservers:
|
||||||
|
- "172.16.36.16"
|
||||||
|
- "172.16.36.220"
|
||||||
|
containers:
|
||||||
|
- name: zt-module-infra
|
||||||
|
image: 172.16.46.66:10043/zt/zt-module-infra:VERSION_PLACEHOLDER
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Asia/Shanghai
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- "sleep 35"
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48082
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48082
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 5
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1024Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "2048Mi"
|
||||||
|
terminationGracePeriodSeconds: 40
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
76
deployment-system.yaml
Normal file
76
deployment-system.yaml
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
||||||
|
name: zt-module-system
|
||||||
|
labels:
|
||||||
|
app: zt-module-system
|
||||||
|
annotations:
|
||||||
|
version: "VERSION_PLACEHOLDER"
|
||||||
|
description: DESC_PLACEHOLDER
|
||||||
|
rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: zt-module-system
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: zt-module-system
|
||||||
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/hostname
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- node-3
|
||||||
|
dnsPolicy: None
|
||||||
|
dnsConfig:
|
||||||
|
nameservers:
|
||||||
|
- "172.16.36.16"
|
||||||
|
- "172.16.36.220"
|
||||||
|
containers:
|
||||||
|
- name: zt-module-system
|
||||||
|
image: 172.16.46.66:10043/zt/zt-module-system:VERSION_PLACEHOLDER
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Asia/Shanghai
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- "sleep 35"
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48081
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 48081
|
||||||
|
initialDelaySeconds: 100
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 5
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1024Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "2048Mi"
|
||||||
|
terminationGracePeriodSeconds: 40
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
32
pom.xml
32
pom.xml
@@ -25,6 +25,7 @@
|
|||||||
<module>zt-module-databus</module>
|
<module>zt-module-databus</module>
|
||||||
<!-- <module>zt-module-rule</module>-->
|
<!-- <module>zt-module-rule</module>-->
|
||||||
<!-- <module>zt-module-html2pdf</module>-->
|
<!-- <module>zt-module-html2pdf</module>-->
|
||||||
|
<!-- <module>zt-server</module>-->
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<name>${project.artifactId}</name>
|
<name>${project.artifactId}</name>
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>3.0.46</revision>
|
<revision>3.0.47-SNAPSHOT</revision>
|
||||||
<!-- Maven 相关 -->
|
<!-- Maven 相关 -->
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
@@ -203,7 +204,7 @@
|
|||||||
<repository>
|
<repository>
|
||||||
<id>ZT</id>
|
<id>ZT</id>
|
||||||
<name>中铜 ZStack 私服</name>
|
<name>中铜 ZStack 私服</name>
|
||||||
<url>http://172.16.46.63:30708/repository/test/</url>
|
<url>http://172.16.46.63:30708/repository/zt-cloud/</url>
|
||||||
<releases>
|
<releases>
|
||||||
<updatePolicy>always</updatePolicy>
|
<updatePolicy>always</updatePolicy>
|
||||||
<checksumPolicy>warn</checksumPolicy>
|
<checksumPolicy>warn</checksumPolicy>
|
||||||
@@ -221,11 +222,11 @@
|
|||||||
<name>中铜 ZStack 私服</name>
|
<name>中铜 ZStack 私服</name>
|
||||||
<url>http://172.16.46.63:30708/repository/test/</url>
|
<url>http://172.16.46.63:30708/repository/test/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<!-- <snapshotRepository>-->
|
<snapshotRepository>
|
||||||
<!-- <id>ZT</id>-->
|
<id>ZT-snap</id>
|
||||||
<!-- <name>中铜 ZStack 私服</name>-->
|
<name>中铜 ZStack 私服</name>
|
||||||
<!-- <url>https://your-nexus.example.com/repository/maven-snapshots/</url>-->
|
<url>http://172.16.46.63:30708/repository/test-snap/</url>
|
||||||
<!-- </snapshotRepository>-->
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
@@ -242,6 +243,19 @@
|
|||||||
<config.version>1.0.0</config.version>
|
<config.version>1.0.0</config.version>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>wzy</id>
|
||||||
|
<properties>
|
||||||
|
<env.name>dev</env.name>
|
||||||
|
<!--Nacos 配置-->
|
||||||
|
<config.server-addr>172.16.46.63:30848</config.server-addr>
|
||||||
|
<config.namespace>wzy</config.namespace>
|
||||||
|
<config.group>DEFAULT_GROUP</config.group>
|
||||||
|
<config.username>nacos</config.username>
|
||||||
|
<config.password>P@ssword25</config.password>
|
||||||
|
<config.version>1.0.0</config.version>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>klw-dev</id>
|
<id>klw-dev</id>
|
||||||
<properties>
|
<properties>
|
||||||
@@ -282,13 +296,13 @@
|
|||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>chenbowen</id>
|
<id>haodongqiang</id>
|
||||||
<properties>
|
<properties>
|
||||||
<!-- <env.name>local</env.name>-->
|
<!-- <env.name>local</env.name>-->
|
||||||
<env.name>dev</env.name>
|
<env.name>dev</env.name>
|
||||||
<!-- <config.server-addr>localhost:8848</config.server-addr>-->
|
<!-- <config.server-addr>localhost:8848</config.server-addr>-->
|
||||||
<config.server-addr>172.16.46.63:30848</config.server-addr>
|
<config.server-addr>172.16.46.63:30848</config.server-addr>
|
||||||
<config.namespace>chenbowen</config.namespace>
|
<config.namespace>haodongqiang</config.namespace>
|
||||||
<config.group>DEFAULT_GROUP</config.group>
|
<config.group>DEFAULT_GROUP</config.group>
|
||||||
<config.username>nacos</config.username>
|
<config.username>nacos</config.username>
|
||||||
<config.password>P@ssword25</config.password>
|
<config.password>P@ssword25</config.password>
|
||||||
|
|||||||
4
sql/dm/20260116角色权限增加菜单是否显示字段.sql
Normal file
4
sql/dm/20260116角色权限增加菜单是否显示字段.sql
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE "SYSTEM_ROLE_MENU" ADD COLUMN "SHOW_MENU" BIT DEFAULT ('1') NOT NULL;
|
||||||
|
COMMENT ON COLUMN "SYSTEM_ROLE_MENU"."SHOW_MENU" IS '是否显示菜单';
|
||||||
|
|
||||||
|
CREATE INDEX "IDX_SYSTEM_ROLE_ID_AND_MENU_ID" ON "SYSTEM_ROLE_MENU"(ROLE_ID,MENU_ID);
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
-- 为 API 客户端凭证表添加"是否启用加密"字段
|
||||||
|
-- 2026-01-14
|
||||||
|
|
||||||
|
ALTER TABLE databus_api_client_credential
|
||||||
|
ADD enable_encryption BIT DEFAULT '1' NOT NULL;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN databus_api_client_credential.enable_encryption IS '是否启用加密传输';
|
||||||
@@ -339,7 +339,8 @@ CREATE TABLE infra_file (
|
|||||||
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||||
updater varchar(64) DEFAULT '' NULL,
|
updater varchar(64) DEFAULT '' NULL,
|
||||||
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||||
deleted bit DEFAULT '0' NOT NULL
|
deleted bit DEFAULT '0' NOT NULL,
|
||||||
|
DOWNLOAD_COUNT INT DEFAULT 0 NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON COLUMN infra_file.id IS '文件编号';
|
COMMENT ON COLUMN infra_file.id IS '文件编号';
|
||||||
@@ -356,6 +357,7 @@ COMMENT ON COLUMN infra_file.create_time IS '创建时间';
|
|||||||
COMMENT ON COLUMN infra_file.updater IS '更新者';
|
COMMENT ON COLUMN infra_file.updater IS '更新者';
|
||||||
COMMENT ON COLUMN infra_file.update_time IS '更新时间';
|
COMMENT ON COLUMN infra_file.update_time IS '更新时间';
|
||||||
COMMENT ON COLUMN infra_file.deleted IS '是否删除';
|
COMMENT ON COLUMN infra_file.deleted IS '是否删除';
|
||||||
|
COMMENT ON COLUMN INFRA_FILE.DOWNLOAD_COUNT IS '下载次数';
|
||||||
COMMENT ON TABLE infra_file IS '文件表';
|
COMMENT ON TABLE infra_file IS '文件表';
|
||||||
|
|
||||||
CREATE INDEX idx_infra_file_hash ON infra_file(hash);
|
CREATE INDEX idx_infra_file_hash ON infra_file(hash);
|
||||||
|
|||||||
5
sql/dm/添加文件下载次数统计字段.sql
Normal file
5
sql/dm/添加文件下载次数统计字段.sql
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-- 添加文件下载次数统计字段
|
||||||
|
ALTER TABLE JYGK_TEST.INFRA_FILE
|
||||||
|
ADD DOWNLOAD_COUNT INT DEFAULT 0 NOT NULL;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN JYGK_TEST.INFRA_FILE.DOWNLOAD_COUNT IS '下载次数';
|
||||||
42
sql/dm/物料牌号扩展功能.sql
Normal file
42
sql/dm/物料牌号扩展功能.sql
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
-- 表:bse_mtrl_grade_ext
|
||||||
|
CREATE TABLE IF NOT EXISTS bse_mtrl_grade_ext (
|
||||||
|
id BIGINT PRIMARY KEY,
|
||||||
|
CMP_CD VARCHAR(64) NOT NULL,
|
||||||
|
CMP_NM VARCHAR(128),
|
||||||
|
MTRL_CD VARCHAR(128) NOT NULL,
|
||||||
|
MTRL_NM VARCHAR(255),
|
||||||
|
ZH_BRAND VARCHAR(255),
|
||||||
|
EN_BRAND VARCHAR(255),
|
||||||
|
SPC_MDL VARCHAR(255),
|
||||||
|
LINE_TP VARCHAR(64),
|
||||||
|
PKG VARCHAR(255),
|
||||||
|
company_id BIGINT,
|
||||||
|
company_name VARCHAR(128),
|
||||||
|
dept_id BIGINT,
|
||||||
|
dept_name VARCHAR(128),
|
||||||
|
post_id BIGINT,
|
||||||
|
tenant_id BIGINT DEFAULT 1,
|
||||||
|
creator_name VARCHAR(64),
|
||||||
|
updater_name VARCHAR(64),
|
||||||
|
creator VARCHAR(64),
|
||||||
|
create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||||
|
updater VARCHAR(64),
|
||||||
|
update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||||
|
deleted BIT DEFAULT 0 NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
-- 索引
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_bse_mtrl_grade_ext_mtrl_cd ON bse_mtrl_grade_ext (MTRL_CD);
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_bse_mtrl_grade_ext_cmp_cd ON bse_mtrl_grade_ext (CMP_CD);
|
||||||
|
|
||||||
|
-- 字段注释(可选)
|
||||||
|
COMMENT ON TABLE bse_mtrl_grade_ext IS '物料牌号扩展';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.CMP_CD IS '公司编码';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.CMP_NM IS '公司名称';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.MTRL_CD IS '物料编码';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.MTRL_NM IS '物料名称';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.ZH_BRAND IS '中文牌号';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.EN_BRAND IS '英文牌号';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.SPC_MDL IS '规格型号';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.LINE_TP IS '线别(material_line_type 字典)';
|
||||||
|
COMMENT ON COLUMN bse_mtrl_grade_ext.PKG IS '包装';
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user