* !44 comment
* !39 添加下行日志打印
* !36 扩展计价领域模型
* !35 webui 初步成型
* !34 webui 初步成型
This commit is contained in:
三丙
2025-09-09 08:23:59 +00:00
parent 921045af8f
commit 58580ca11e
372 changed files with 37900 additions and 1206 deletions

View File

@@ -9,7 +9,7 @@
FROM registry.cn-hangzhou.aliyuncs.com/sanbing/jcpp-base:1.0 AS base
WORKDIR /app
COPY . .
RUN mvn -U -B -T 0.8C clean install -DskipTests
RUN mvn -U -B -T 4 clean package -DskipTests
#分层
FROM registry.cn-hangzhou.aliyuncs.com/sanbing/openjdk:21-bullseye AS builder
@@ -37,7 +37,7 @@ RUN chmod a+x start.sh \
&& chmod 700 -R /home/sanbing/logs/* \
&& chown -R sanbing:sanbing /home/sanbing
EXPOSE 8080 8080
EXPOSE 8080/tcp 38001/tcp 38002/tcp 38003/tcp 38011/tcp
ENV APP_LOG_LEVEL=INFO
ENV PROTOCOLS_LOG_LEVEL=INFO

View File

@@ -6,9 +6,9 @@
#
FROM registry.cn-hangzhou.aliyuncs.com/sanbing/mvn:3.9.9-jdk21 AS base
FROM registry.cn-hangzhou.aliyuncs.com/sanbing/openjdk:21-bullseye AS base
WORKDIR /app
COPY . .
RUN mvn -U -B -T 0.8C clean install -DskipTests \
RUN mvn -U -B -T 4 clean compile -DskipTests \
&& rm -rf /app

View File

@@ -7,7 +7,7 @@
volumes:
postgresql_data: {}
jcpp_pg_data: {}
networks:
sanbing-network:
@@ -33,5 +33,4 @@ services:
- 'POSTGRESQL_DEFAULT_TRANSACTION_ISOLATION=read committed'
- 'TZ=Asia/Shanghai'
volumes:
- postgresql_data:/bitnami/postgresql
- ./schema/schema-postgres.sql:/docker-entrypoint-initdb.d/init.sql
- jcpp_pg_data:/bitnami/postgresql

View File

@@ -37,7 +37,7 @@ RUN chmod a+x start.sh \
&& chmod 700 -R /home/sanbing/logs/* \
&& chown -R sanbing:sanbing /home/sanbing
EXPOSE 8080 8080
EXPOSE 8080/tcp 38001/tcp 38002/tcp 38003/tcp 38011/tcp
ENV PROTOCOLS_LOG_LEVEL=INFO

View File

@@ -1,124 +0,0 @@
--
-- 开源代码,仅供学习和交流研究使用,商用请联系三丙
-- 微信mohan_88888
-- 抖音:程序员三丙
-- 付费课程知识星球https://t.zsxq.com/aKtXo
--
CREATE TABLE IF NOT EXISTS jcpp_user
(
id uuid not null
constraint owner_pkey
primary key,
created_time timestamp default CURRENT_TIMESTAMP not null,
additional_info jsonb,
status varchar(16) not null,
user_name varchar(255) not null,
user_credentials jsonb not null,
version int default 1
);
CREATE UNIQUE INDEX IF NOT EXISTS uni_user_name
on jcpp_user (user_name);
CREATE TABLE IF NOT EXISTS jcpp_station
(
id uuid not null
constraint station_pkey
primary key,
created_time timestamp default CURRENT_TIMESTAMP not null,
additional_info jsonb,
station_name varchar(255) not null,
station_code varchar(255) not null,
owner_id uuid not null,
longitude double precision not null,
latitude double precision not null,
owner_type varchar(16) not null,
province varchar(255),
city varchar(255),
county varchar(255),
address varchar(255),
status varchar(16) not null,
version int default 1
);
CREATE UNIQUE INDEX IF NOT EXISTS uni_station_code
on jcpp_station (station_code);
CREATE TABLE IF NOT EXISTS jcpp_pile
(
id uuid not null
constraint pile_pkey
primary key,
created_time timestamp default CURRENT_TIMESTAMP not null,
additional_info jsonb,
pile_name varchar(255) not null,
pile_code varchar(255) not null,
protocol varchar(255) not null,
station_id uuid not null,
owner_id uuid not null,
owner_type varchar(16) not null,
brand varchar(255),
model varchar(255),
manufacturer varchar(255),
status varchar(16) not null,
type varchar(16) not null,
version int default 1
);
CREATE UNIQUE INDEX IF NOT EXISTS uni_pile_code
on jcpp_pile (pile_code);
CREATE TABLE IF NOT EXISTS jcpp_gun
(
id uuid not null
primary key,
created_time timestamp default CURRENT_TIMESTAMP not null,
additional_info varchar(255),
gun_no varchar(255) not null,
gun_name varchar(255) not null,
gun_code varchar(255) not null,
station_id uuid not null,
pile_id uuid not null,
owner_id uuid not null,
owner_type varchar(16) not null,
run_status varchar(16) not null,
run_status_updated_time timestamp not null,
opt_status varchar(16) not null,
version int default 1
);
CREATE UNIQUE INDEX IF NOT EXISTS uni_gun_code
on jcpp_gun (gun_code);
CREATE TABLE IF NOT EXISTS jcpp_order
(
id uuid not null
primary key,
internal_order_no varchar(255) not null,
external_order_no varchar(255) not null,
pile_order_No varchar(255) not null,
created_time timestamp default CURRENT_TIMESTAMP not null,
additional_info jsonb,
updated_time timestamp,
cancelled_time timestamp,
status varchar(16) not null,
type varchar(16) not null,
creator_id uuid not null,
station_id uuid not null,
pile_id uuid not null,
gun_id uuid not null,
plate_no varchar(64),
settlement_amount numeric(16, 8) default 0 not null,
settlement_details jsonb,
electricity_quantity numeric(16, 8) default 0 not null
);
CREATE UNIQUE INDEX IF NOT EXISTS uni_internal_order_no
on jcpp_order (internal_order_no);
CREATE UNIQUE INDEX IF NOT EXISTS uni_external_order_no
on jcpp_order (external_order_no);