Merge branch 'master' of http://47.109.37.87:3000/by2025/SmartParks
Some checks failed
/ build-parent-pom (push) Successful in 2m3s
/ build-and-push-services (ruoyi-auth) (push) Failing after 1m4s
/ build-and-push-services (ruoyi-gateway) (push) Failing after 1m3s
/ build-and-push-services (ruoyi-modules/Property) (push) Failing after 1m33s
/ build-and-push-services (ruoyi-modules/Sis) (push) Failing after 36s
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Failing after 52s
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Failing after 1m3s
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Failing after 1m1s
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Failing after 1s
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Failing after 52s
/ build-and-push-services (ruoyi-seata-server) (push) Failing after 21s
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Failing after 21s
/ build-and-push-services (ruoyi-snailjob-server) (push) Failing after 20s
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Failing after 44s
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Failing after 42s
Some checks failed
/ build-parent-pom (push) Successful in 2m3s
/ build-and-push-services (ruoyi-auth) (push) Failing after 1m4s
/ build-and-push-services (ruoyi-gateway) (push) Failing after 1m3s
/ build-and-push-services (ruoyi-modules/Property) (push) Failing after 1m33s
/ build-and-push-services (ruoyi-modules/Sis) (push) Failing after 36s
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Failing after 52s
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Failing after 1m3s
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Failing after 1m1s
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Failing after 1s
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Failing after 52s
/ build-and-push-services (ruoyi-seata-server) (push) Failing after 21s
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Failing after 21s
/ build-and-push-services (ruoyi-snailjob-server) (push) Failing after 20s
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Failing after 44s
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Failing after 42s
This commit is contained in:
commit
0fa3b43853
@ -39,14 +39,14 @@ jobs:
|
||||
cat > ~/.m2/settings.xml << EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings>
|
||||
<localRepository>$HOME/.m2/repository</localRepository>
|
||||
<localRepository>/root/.m2/repository</localRepository>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>multi-repo</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>local-repo</id>
|
||||
<url>file://$HOME/.m2/repository</url>
|
||||
<url>file:///root/.m2/repository</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>aliyun-public</id>
|
||||
@ -71,7 +71,7 @@ jobs:
|
||||
|
||||
retries=3
|
||||
count=0
|
||||
until "$MAVEN_HOME/bin/mvn" clean package -U -DskipTests -f "$MAIN_POM_ABSOLUTE_PATH"; do
|
||||
until "$MAVEN_HOME/bin/mvn" clean install -U -DskipTests -f "$MAIN_POM_ABSOLUTE_PATH"; do
|
||||
count=$((count + 1))
|
||||
if [ $count -ge $retries ]; then
|
||||
echo "错误:主POM构建失败"
|
||||
@ -80,50 +80,50 @@ jobs:
|
||||
sleep 10
|
||||
done
|
||||
|
||||
build-common-modules:
|
||||
needs: build-parent-pom
|
||||
runs-on: ubuntu
|
||||
steps:
|
||||
- name: 拉取代码仓库
|
||||
uses: http://git.missmoc.top/mocheng/checkout@v4
|
||||
# build-common-modules:
|
||||
# needs: build-parent-pom
|
||||
# runs-on: ubuntu
|
||||
# steps:
|
||||
# - name: 拉取代码仓库
|
||||
# uses: http://git.missmoc.top/mocheng/checkout@v4
|
||||
|
||||
- name: 配置环境变量
|
||||
run: |
|
||||
export JAVA_HOME="/java17/java17"
|
||||
export MAVEN_HOME="/maven/apache-maven-3.9.11"
|
||||
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
|
||||
echo "$JAVA_HOME/bin" >> $GITHUB_PATH
|
||||
echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
|
||||
echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
|
||||
# - name: 配置环境变量
|
||||
# run: |
|
||||
# export JAVA_HOME="/java17/java17"
|
||||
# export MAVEN_HOME="/maven/apache-maven-3.9.11"
|
||||
# echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
|
||||
# echo "$JAVA_HOME/bin" >> $GITHUB_PATH
|
||||
# echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
|
||||
# echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: 构建通用模块(仅本地使用,不上传)
|
||||
run: |
|
||||
COMMON_MODULES=(
|
||||
"ruoyi-common"
|
||||
"ruoyi-api"
|
||||
"ruoyi-common-bom"
|
||||
"ruoyi-common-alibaba-bom"
|
||||
"ruoyi-api-bom"
|
||||
)
|
||||
# - name: 构建通用模块(仅本地使用,不上传)
|
||||
# run: |
|
||||
# COMMON_MODULES=(
|
||||
# "ruoyi-common"
|
||||
# "ruoyi-api"
|
||||
# "ruoyi-common-bom"
|
||||
# "ruoyi-common-alibaba-bom"
|
||||
# "ruoyi-api-bom"
|
||||
# )
|
||||
|
||||
for module in "${COMMON_MODULES[@]}"; do
|
||||
MODULE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${module}/pom.xml"
|
||||
if [ ! -f "$MODULE_POM_ABSOLUTE_PATH" ]; then
|
||||
echo "警告:模块 $module 不存在,跳过"
|
||||
continue
|
||||
fi
|
||||
# for module in "${COMMON_MODULES[@]}"; do
|
||||
# MODULE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${module}/pom.xml"
|
||||
# if [ ! -f "$MODULE_POM_ABSOLUTE_PATH" ]; then
|
||||
# echo "警告:模块 $module 不存在,跳过"
|
||||
# continue
|
||||
# fi
|
||||
|
||||
retries=3
|
||||
count=0
|
||||
until "$MAVEN_HOME/bin/mvn" clean install -U -DskipTests -f "$MODULE_POM_ABSOLUTE_PATH"; do
|
||||
count=$((count + 1))
|
||||
if [ $count -ge $retries ]; then
|
||||
echo "错误:模块 $module 构建失败"
|
||||
exit 1
|
||||
fi
|
||||
sleep 10
|
||||
done
|
||||
done
|
||||
# retries=3
|
||||
# count=0
|
||||
# until "$MAVEN_HOME/bin/mvn" clean compile install -U -DskipTests -f "$MODULE_POM_ABSOLUTE_PATH"; do
|
||||
# count=$((count + 1))
|
||||
# if [ $count -ge $retries ]; then
|
||||
# echo "错误:模块 $module 构建失败"
|
||||
# exit 1
|
||||
# fi
|
||||
# sleep 10
|
||||
# done
|
||||
# done
|
||||
|
||||
build-and-push-services:
|
||||
needs: build-common-modules
|
||||
|
@ -30,12 +30,17 @@ public class SisAlarmEvents extends TenantEntity {
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 报警事件类型
|
||||
* 事件大类
|
||||
*/
|
||||
private Long type;
|
||||
private Long bigType;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
* 事件小类
|
||||
*/
|
||||
private Long smallType;
|
||||
|
||||
/**
|
||||
* 报警记录级别(0:特急;1:紧急;2:普通)
|
||||
*/
|
||||
private Long level;
|
||||
|
||||
|
@ -29,15 +29,19 @@ public class SisAlarmEventsBo extends BaseEntity {
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 报警事件类型
|
||||
* 事件大类
|
||||
*/
|
||||
@NotNull(message = "报警事件类型不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long type;
|
||||
private Long bigType;
|
||||
|
||||
/**
|
||||
* 事件小类
|
||||
*/
|
||||
private Long smallType;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
*/
|
||||
@NotNull(message = "报警记录级别(1:一般,2:中级,3:紧急)不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
@NotNull(message = "报警记录级别(0:特急;1:紧急;2:普通)不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
|
@ -0,0 +1,44 @@
|
||||
package org.dromara.sis.domain.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 事件大类枚举
|
||||
*
|
||||
* @author lxj
|
||||
*/
|
||||
@Getter
|
||||
public enum EventBigTypeEnum {
|
||||
/**
|
||||
* 10:设备上报
|
||||
*/
|
||||
EQUIPMENT_UP(10, "设备上报"),
|
||||
/**
|
||||
* 20:系统报警
|
||||
*/
|
||||
SYSTEM_ALERM(20, "系统报警"),
|
||||
|
||||
/**
|
||||
* 30:移动端上报
|
||||
*/
|
||||
MOBILE_REPORT(30, "移动端上报"),
|
||||
|
||||
/**
|
||||
* 40:客户求助
|
||||
*/
|
||||
CUST_NEED_HELP(40, "客户求助"),
|
||||
|
||||
/**
|
||||
* 50:客户投诉
|
||||
*/
|
||||
CUST_COMPLAINT(50, "客户投诉");
|
||||
|
||||
private final Integer code;
|
||||
|
||||
private final String desc;
|
||||
|
||||
EventBigTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package org.dromara.sis.domain.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 事件小类
|
||||
*
|
||||
* @author lxj
|
||||
*/
|
||||
@Getter
|
||||
public enum EventSmallTypeEnum {
|
||||
|
||||
EQP_REPORT_RYLG(1001, "人员离岗"),
|
||||
EQP_REPORT_RYSG(1002, "人员睡岗"),
|
||||
EQP_REPORT_RYDD(1003, "人员倒地"),
|
||||
EQP_REPORT_CY(1004, "抽烟"),
|
||||
EQP_REPORT_DDH(1005, "打电话"),
|
||||
EQP_REPORT_WSJ(1006, "玩手机"),
|
||||
EQP_REPORT_RYJJ(1007, "人员聚集"),
|
||||
EQP_REPORT_ZJCR(1008, "周界闯入"),
|
||||
EQP_REPORT_RYPH(1009, "人员徘徊"),
|
||||
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 事件编码
|
||||
*/
|
||||
private final Integer code;
|
||||
|
||||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
private final String desc;
|
||||
|
||||
EventSmallTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
@ -31,21 +31,19 @@ public class SisAlarmEventsVo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 报警记录ID
|
||||
* 事件大类
|
||||
*/
|
||||
@ExcelProperty(value = "报警记录ID")
|
||||
private Long id;
|
||||
private Long bigType;
|
||||
|
||||
/**
|
||||
* 报警事件类型
|
||||
* 事件小类
|
||||
*/
|
||||
@ExcelProperty(value = "报警事件类型")
|
||||
private Long type;
|
||||
private Long smallType;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
*/
|
||||
@ExcelProperty(value = "报警记录级别(1:一般,2:中级,3:紧急)")
|
||||
@ExcelProperty(value = "报警记录级别(0:特急;1:紧急;2:普通)")
|
||||
private Long level;
|
||||
|
||||
/**
|
||||
|
@ -87,7 +87,6 @@ public class SisAlarmEventsServiceImpl implements ISisAlarmEventsService {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<SisAlarmEvents> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByAsc(SisAlarmEvents::getId);
|
||||
lqw.eq(bo.getType() != null, SisAlarmEvents::getType, bo.getType());
|
||||
lqw.eq(bo.getLevel() != null, SisAlarmEvents::getLevel, bo.getLevel());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisAlarmEvents::getDeviceIp, bo.getDeviceIp());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDeviceName()), SisAlarmEvents::getDeviceName, bo.getDeviceName());
|
||||
@ -161,7 +160,9 @@ public class SisAlarmEventsServiceImpl implements ISisAlarmEventsService {
|
||||
}
|
||||
// 生成时间信息
|
||||
SisAlarmEvents alarmEvents = new SisAlarmEvents();
|
||||
alarmEvents.setType(1L);
|
||||
//
|
||||
alarmEvents.setBigType(10L);
|
||||
alarmEvents.setSmallType(1008L);
|
||||
alarmEvents.setLevel(Long.valueOf(level));
|
||||
alarmEvents.setDeviceIp(deviceIp);
|
||||
alarmEvents.setDeviceName(sisDeviceManage.getDeviceName());
|
||||
|
Loading…
Reference in New Issue
Block a user