Merge branch 'mdc' into SelfStation

# Conflicts:
#	jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/SpectrumServiceQuotes.java
#	jeecg-module-beta-gamma-analyser/src/main/java/org/jeecg/modules/mapper/GardsNuclLibMapper.java
#	jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java
#	jeecg-module-station-operation/src/main/java/org/jeecg/DataReceivingStatusManager.java
This commit is contained in:
nieziyan 2024-01-26 17:00:07 +08:00
commit 7af7fafc86
25 changed files with 329 additions and 112 deletions

View File

@ -13,7 +13,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Component @Component
@FeignClient("jeecg-system") @FeignClient("armd-system")
public interface SystemClient { public interface SystemClient {
/* 系统用户相关 */ /* 系统用户相关 */
@RequestMapping("/sys/user/findUserMap") @RequestMapping("/sys/user/findUserMap")

View File

@ -7,7 +7,6 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.base.bizVo.GammaRLR; import org.jeecg.modules.base.bizVo.GammaRLR;
import org.jeecg.modules.entity.GardsSampleDataSpectrum; import org.jeecg.modules.entity.GardsSampleDataSpectrum;
import org.jeecg.modules.entity.vo.*; import org.jeecg.modules.entity.vo.*;
import org.jeecg.modules.feignclient.SystemClient;
import org.jeecg.modules.service.IGammaService; import org.jeecg.modules.service.IGammaService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;

View File

@ -7,7 +7,7 @@ import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@Component @Component
@FeignClient("jeecg-spectrum") @FeignClient("armd-system")
public interface SystemClient { public interface SystemClient {
/* 获取当前用户信息 */ /* 获取当前用户信息 */

View File

@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
@Component @Component
@FeignClient("jeecg-system") @FeignClient("armd-system")
public interface IUserTaskService { public interface IUserTaskService {
@RequestMapping("/sys/user/findUserByName") @RequestMapping("/sys/user/findUserByName")

View File

@ -13,7 +13,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Component @Component
@FeignClient(value = "jeecg-system") @FeignClient("armd-system")
public interface ICacheTimeService { public interface ICacheTimeService {
@RequestMapping("/sys/dictItem/findCacheTime") @RequestMapping("/sys/dictItem/findCacheTime")

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@Component @Component
@FeignClient("jeecg-abnormal-alarm") @FeignClient("armd-abnormal-alarm")
public interface AbnormalAlarmClient { public interface AbnormalAlarmClient {
/* SysEmailController下相关接口 */ /* SysEmailController下相关接口 */

View File

@ -76,7 +76,8 @@
INNER JOIN RNMAN.GARDS_ANALYSES ana on ana.SAMPLE_ID = sam.SAMPLE_ID INNER JOIN RNMAN.GARDS_ANALYSES ana on ana.SAMPLE_ID = sam.SAMPLE_ID
<where> <where>
sam.COLLECT_START >= TO_DATE(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') sam.COLLECT_START >= TO_DATE(#{startDate}, 'yyyy-mm-dd hh24:mi:ss')
and sam.COLLECT_STOP &lt;= TO_DATE(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') AND sam.COLLECT_STOP &lt;= TO_DATE(#{endDate}, 'yyyy-mm-dd hh24:mi:ss')
AND ana.REPORT_PAHT IS NOT NULL
<if test="stationIdList.size ==0 and stationIdList != null"> <if test="stationIdList.size ==0 and stationIdList != null">
and sam.STATION_ID in ('') and sam.STATION_ID in ('')
</if> </if>

View File

@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
@Component @Component
@FeignClient("jeecg-system") @FeignClient("armd-system")
public interface IMenuNameService { public interface IMenuNameService {
@RequestMapping("/sys/dict/findStationListByMenuName") @RequestMapping("/sys/dict/findStationListByMenuName")

View File

@ -0,0 +1,15 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-abnormal-alarm-cloud
WORKDIR /armd-abnormal-alarm-cloud
EXPOSE 7006
ADD armd-abnormal-alarm-start-3.5.1.jar ./
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-abnormal-alarm-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-abnormal-alarm name: armd-abnormal-alarm
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -0,0 +1,24 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY --from=armd-jdk64 /usr/local/jdk/lib/ /usr/local/jdk/lib/
RUN mkdir -p /armd-auto-process
WORKDIR /armd-auto-process
EXPOSE 7004
ADD armd-auto-process-start-3.5.1.jar ./
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
ENV LD_LIBRARY_PATH /usr/local/jdk/lib
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-auto-process-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-auto-process name: armd-auto-process
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -1,15 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited FROM armd-jdk64:latest
MAINTAINER jeecgos@163.com MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-cloud-gateway RUN mkdir -p /armd-cloud-gateway
WORKDIR /jeecg-cloud-gateway WORKDIR /armd-cloud-gateway
EXPOSE 9999 EXPOSE 9999
ADD ./target/jeecg-cloud-gateway-3.5.1.jar ./ ADD armd-cloud-gateway-3.5.1.jar ./
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-3.5.1.jar CMD sleep 1;java-Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-cloud-gateway-3.5.1.jar

View File

@ -1,25 +1,23 @@
#FROM anapsix/alpine-java:8_server-jre_unlimited FROM jdk64:latest
FROM openjdk:8
MAINTAINER jeecgos@163.com MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-cloud-nacos RUN mkdir -p /armd-cloud-nacos
WORKDIR /jeecg-cloud-nacos WORKDIR /armd-cloud-nacos
EXPOSE 8848 EXPOSE 8848
ENV DB_URL="jdbc:postgresql://192.168.8.103:5432/nacos"
ENV DB_URL="" ENV DB_USER="postgres"
ENV DB_USER="" ENV DB_PASSWORD="123456"
ENV DB_PASSWORD="" ENV DB_PLATFORM="postgresql"
ENV DB_PLATFORM="" ENV SERVER_PORT="8848"
ENV SERVER_PORT=""
EXPOSE $SERVER_PORT EXPOSE $SERVER_PORT
ADD ./target/jeecg-cloud-nacos-3.5.1.jar ./ ADD armd-cloud-nacos-3.5.1.jar ./
CMD sleep 5;java -DSERVER_PORT=$SERVER_PORT -DDB_URL=$DB_URL -DDB_USER=$DB_USER -DDB_PASSWORD=$DB_PASSWORD -DDB_PLATFORM=$DB_PLATFORM -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-3.5.1.jar CMD sleep 5;java -DSERVER_PORT=$SERVER_PORT -DDB_URL=$DB_URL -DDB_USER=$DB_USER -DDB_PASSWORD=$DB_PASSWORD -DDB_PLATFORM=$DB_PLATFORM -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-cloud-nacos-3.5.1.jar

View File

@ -0,0 +1,15 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-log-manage
WORKDIR /armd-log-manage
EXPOSE 7005
ADD armd-log-manage-start-3.5.1.jar ./
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-log-manage-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-log-manage name: armd-log-manage
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -0,0 +1,26 @@
FROM armd-jdk:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 将共享库复制到容器中
COPY --from=armd-jdk /usr/local/jdk/lib/ /usr/local/jdk/lib/
RUN mkdir -p /armd-spectrum-analysis
WORKDIR /armd-spectrum-analysis
EXPOSE 7007
ADD armd-spectrum-analysis-start-3.5.1.jar ./
# 将所有配置文件复制到armd-spectrum-analysis同级目录并解压
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
# 设置LD_LIBRARY_PATH环境变量
ENV LD_LIBRARY_PATH /usr/local/jdk/lib
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-spectrum-analysis-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-spectrum-analysis name: armd-spectrum-analysis
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -0,0 +1,21 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-station-operation
WORKDIR /armd-station-operation
EXPOSE 7002
ADD armd-station-operation-start-3.5.1.jar ./
# 将所有配置文件复制到armd-spectrum-analysis同级目录并解压
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-station-operation-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-station-operation name: armd-station-operation
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -1,15 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited FROM armd-jdk64:latest
MAINTAINER jeecgos@163.com MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-system-cloud RUN mkdir -p /armd-system-cloud
WORKDIR /jeecg-system-cloud WORKDIR /armd-system-cloud
EXPOSE 7001 EXPOSE 7001
ADD ./target/jeecg-system-cloud-start-3.5.1.jar ./ ADD armd-system-cloud-start-3.5.1.jar ./
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-cloud-start-3.5.1.jar CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-system-cloud-start-3.5.1.jar

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-system name: armd-system
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: jeecg-web-statistics name: armd-web-statistics
cloud: cloud:
nacos: nacos:
config: config:

View File

@ -1,31 +1,63 @@
version: '2' version: '2'
services: services:
jeecg-boot-mysql: jdk64:
build: build:
context: ../db context: ./jdk64
environment: container_name: jdk64
MYSQL_ROOT_PASSWORD: root profiles:
MYSQL_ROOT_HOST: '%' - jdk64
TZ: Asia/Shanghai
restart: always
container_name: jeecg-boot-mysql
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M
--default-authentication-plugin=caching_sha2_password
ports:
- 3306:3306
jeecg-boot-redis: armd-redis:
image: redis:5.0 build:
context: ./redis
ports: ports:
- 6379:6379 - 6379:6379
restart: always container_name: armd-redis
container_name: jeecg-boot-redis hostname: armd-redis
hostname: jeecg-boot-redis restart: on-failure
environment:
- TZ=Asia/Shanghai
extra_hosts:
- "armd-redis:172.18.0.2"
profiles:
- redis
armd-vue:
build:
context: ./nginx
ports:
- 443:443
restart: on-failure
environment:
- TZ=Asia/Shanghai
container_name: armd-vue
profiles:
- nginx
volumes:
- "/home/rmsops/nginx/vue-config:/usr/share/nginx/html/static"
- "/home/rmsops/nginx/map:/usr/share/nginx/map"
- "/home/rmsops/nginx/logs:/etc/nginx/logs/"
- "/home/rmsops/nginx/config:/etc/nginx/conf.d/"
# jeecg-boot-mysql:
# build:
# context: ../db
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: '%'
# TZ: Asia/Shanghai
# restart: always
# container_name: jeecg-boot-mysql
# command:
# --character-set-server=utf8mb4
# --collation-server=utf8mb4_general_ci
# --explicit_defaults_for_timestamp=true
# --lower_case_table_names=1
# --max_allowed_packet=128M
# --default-authentication-plugin=caching_sha2_password
# ports:
# - 3306:3306
# jeecg-boot-rabbitmq: # jeecg-boot-rabbitmq:
# image: rabbitmq:3.7.7-management # image: rabbitmq:3.7.7-management

View File

@ -1,72 +1,158 @@
version: '2' version: '2'
services: services:
jeecg-boot-nacos: nacos:
container_name: armd-nacos
hostname: armd-nacos
restart: always restart: always
build: build:
context: ./jeecg-cloud-nacos context: ./nacos
ports: ports:
- 8848:8848 - 8848:8848
profiles:
- nacos
environment: environment:
- SERVER_PORT=8848 - SERVER_PORT=8848
- DB_URL=jdbc:postgresql://182.92.183.230:5432/nacos - DB_URL=jdbc:postgresql://182.92.183.230:5432/nacos
- DB_USER=temp - DB_USER=temp
- DB_PASSWORD=123456 - DB_PASSWORD=123456
- DB_PLATFORM=postgresql - DB_PLATFORM=postgresql
container_name: jeecg-boot-nacos extra_hosts:
hostname: jeecg-boot-nacos - "armd-nacos:192.168.31.23"
jeecg-boot-system: armd-gateway:
depends_on: container_name: armd-gateway-start
- jeecg-boot-nacos hostname: armd-gateway
# depends_on:
# - armd-nacos
profiles:
- gateway
build: build:
context: ./jeecg-system-cloud-start context: ./gateway
container_name: jeecg-system-start ports:
hostname: jeecg-boot-system - 9999:9999
restart: on-failure restart: on-failure
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
extra_hosts:
- "armd-gateway:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-gateway/logs"
# jeecg-boot-demo: armd-system:
# depends_on: container_name: armd-system
# - jeecg-boot-nacos hostname: armd-system
# build: profiles:
# context: ./jeecg-demo-cloud-start - service
# container_name: jeecg-demo-start build:
# hostname: jeecg-boot-demo context: ./system
# restart: on-failure ports:
# environment: - 7001:7001
# - TZ=Asia/Shanghai restart: on-failure
environment:
- TZ=Asia/Shanghai
extra_hosts:
- "armd-system:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-system-cloud/logs"
jeecg-boot-gateway: armd-station-operation:
container_name: armd-station-operation
hostname: armd-station-operation
depends_on:
# - armd-nacos
- armd-system
profiles:
- service
restart: on-failure restart: on-failure
build: build:
context: ./jeecg-cloud-gateway context: ./station-operation
ports: ports:
- 9999:9999 - 7002:7002
depends_on: extra_hosts:
- jeecg-boot-nacos - "armd-station-operation:192.168.31.23"
- jeecg-boot-system volumes:
container_name: jeecg-boot-gateway - "/home/rmsops/armd-logs:/armd-station-operation/logs"
hostname: jeecg-boot-gateway
armd-web-statistics:
container_name: armd-web-statistics
hostname: armd-web-statistics
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./web-statistics
ports:
- 7003:7003
extra_hosts:
- "armd-web-statistics:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-web-statistics/logs"
armd-abnormal-alarm:
container_name: armd-abnormal-alarm
hostname: armd-abnormal-alarm
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./abnormal-alarm
ports:
- 7005:7005
extra_hosts:
- "armd-abnormal-alarm:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-abnormal-alarm/logs"
armd-log-manage:
container_name: armd-log-manage
hostname: armd-log-manage
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./log-manage
ports:
- 7006:7006
extra_hosts:
- "armd-log-manage:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-log-manage/logs"
armd-spectrum-analysis:
restart: on-failure
build:
context: ./spectrum-analysis
ports:
- 7007:7007
profiles:
- service
depends_on:
- armd-system
container_name: armd-spectrum-analysis
hostname: armd-spectrum-analysis
extra_hosts:
- "armd-spectrum-analysis:127.0.0.1"
auto-process:
restart: on-failure
build:
context: ./auto-process
ports:
- 7004:7004
profiles:
- auto-process
container_name: auto-process
hostname: armd-auto-process
extra_hosts:
- "armd-auto-process:127.0.0.1"
volumes:
- "/home/rmsops/ftp:/armd-auto-process/ftp"
- "/home/rmsops/armd-logs:/armd-auto-process/logs"
# jeecg-boot-sentinel:
# restart: on-failure
# build:
# context: ./jeecg-visual/jeecg-cloud-sentinel
# ports:
# - 9000:9000
# depends_on:
# - jeecg-boot-nacos
# - jeecg-boot-demo
# - jeecg-boot-system
# - jeecg-boot-gateway
# container_name: jeecg-boot-sentinel
# hostname: jeecg-boot-sentinel
#
# jeecg-boot-xxljob:
# build:
# context: ./jeecg-visual/jeecg-cloud-xxljob
# ports:
# - 9080:9080
# container_name: jeecg-boot-xxljob
# hostname: jeecg-boot-xxljob