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

This commit is contained in:
dy 2025-08-14 12:31:35 +08:00
commit 0fa3b43853
7 changed files with 151 additions and 59 deletions

View File

@ -39,14 +39,14 @@ jobs:
cat > ~/.m2/settings.xml << EOF cat > ~/.m2/settings.xml << EOF
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<settings> <settings>
<localRepository>$HOME/.m2/repository</localRepository> <localRepository>/root/.m2/repository</localRepository>
<profiles> <profiles>
<profile> <profile>
<id>multi-repo</id> <id>multi-repo</id>
<repositories> <repositories>
<repository> <repository>
<id>local-repo</id> <id>local-repo</id>
<url>file://$HOME/.m2/repository</url> <url>file:///root/.m2/repository</url>
</repository> </repository>
<repository> <repository>
<id>aliyun-public</id> <id>aliyun-public</id>
@ -71,7 +71,7 @@ jobs:
retries=3 retries=3
count=0 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)) count=$((count + 1))
if [ $count -ge $retries ]; then if [ $count -ge $retries ]; then
echo "错误主POM构建失败" echo "错误主POM构建失败"
@ -80,50 +80,50 @@ jobs:
sleep 10 sleep 10
done done
build-common-modules: # build-common-modules:
needs: build-parent-pom # needs: build-parent-pom
runs-on: ubuntu # runs-on: ubuntu
steps: # steps:
- name: 拉取代码仓库 # - name: 拉取代码仓库
uses: http://git.missmoc.top/mocheng/checkout@v4 # uses: http://git.missmoc.top/mocheng/checkout@v4
- name: 配置环境变量 # - name: 配置环境变量
run: | # run: |
export JAVA_HOME="/java17/java17" # export JAVA_HOME="/java17/java17"
export MAVEN_HOME="/maven/apache-maven-3.9.11" # export MAVEN_HOME="/maven/apache-maven-3.9.11"
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV # echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "$JAVA_HOME/bin" >> $GITHUB_PATH # echo "$JAVA_HOME/bin" >> $GITHUB_PATH
echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV # echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
echo "$MAVEN_HOME/bin" >> $GITHUB_PATH # echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
- name: 构建通用模块(仅本地使用,不上传) # - name: 构建通用模块(仅本地使用,不上传)
run: | # run: |
COMMON_MODULES=( # COMMON_MODULES=(
"ruoyi-common" # "ruoyi-common"
"ruoyi-api" # "ruoyi-api"
"ruoyi-common-bom" # "ruoyi-common-bom"
"ruoyi-common-alibaba-bom" # "ruoyi-common-alibaba-bom"
"ruoyi-api-bom" # "ruoyi-api-bom"
) # )
for module in "${COMMON_MODULES[@]}"; do # for module in "${COMMON_MODULES[@]}"; do
MODULE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${module}/pom.xml" # MODULE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${module}/pom.xml"
if [ ! -f "$MODULE_POM_ABSOLUTE_PATH" ]; then # if [ ! -f "$MODULE_POM_ABSOLUTE_PATH" ]; then
echo "警告:模块 $module 不存在,跳过" # echo "警告:模块 $module 不存在,跳过"
continue # continue
fi # fi
retries=3 # retries=3
count=0 # count=0
until "$MAVEN_HOME/bin/mvn" clean install -U -DskipTests -f "$MODULE_POM_ABSOLUTE_PATH"; do # until "$MAVEN_HOME/bin/mvn" clean compile install -U -DskipTests -f "$MODULE_POM_ABSOLUTE_PATH"; do
count=$((count + 1)) # count=$((count + 1))
if [ $count -ge $retries ]; then # if [ $count -ge $retries ]; then
echo "错误:模块 $module 构建失败" # echo "错误:模块 $module 构建失败"
exit 1 # exit 1
fi # fi
sleep 10 # sleep 10
done # done
done # done
build-and-push-services: build-and-push-services:
needs: build-common-modules needs: build-common-modules

View File

@ -30,12 +30,17 @@ public class SisAlarmEvents extends TenantEntity {
private Long id; private Long id;
/** /**
* 报警事件类 * 事件
*/ */
private Long type; private Long bigType;
/** /**
* 报警记录级别(1一般2中级3紧急) * 事件小类
*/
private Long smallType;
/**
* 报警记录级别(0:特急;1:紧急;2:普通)
*/ */
private Long level; private Long level;

View File

@ -29,15 +29,19 @@ public class SisAlarmEventsBo extends BaseEntity {
private Long id; private Long id;
/** /**
* 报警事件类 * 事件
*/ */
@NotNull(message = "报警事件类型不能为空", groups = {AddGroup.class, EditGroup.class}) private Long bigType;
private Long type;
/**
* 事件小类
*/
private Long smallType;
/** /**
* 报警记录级别(1一般2中级3紧急) * 报警记录级别(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; private Long level;
/** /**

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -31,21 +31,19 @@ public class SisAlarmEventsVo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 报警记录ID * 事件大类
*/ */
@ExcelProperty(value = "报警记录ID") private Long bigType;
private Long id;
/** /**
* 报警事件类 * 事件
*/ */
@ExcelProperty(value = "报警事件类型") private Long smallType;
private Long type;
/** /**
* 报警记录级别(1一般2中级3紧急) * 报警记录级别(1一般2中级3紧急)
*/ */
@ExcelProperty(value = "报警记录级别(1一般2中级3紧急)") @ExcelProperty(value = "报警记录级别(0:特急;1:紧急;2:普通)")
private Long level; private Long level;
/** /**

View File

@ -87,7 +87,6 @@ public class SisAlarmEventsServiceImpl implements ISisAlarmEventsService {
Map<String, Object> params = bo.getParams(); Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<SisAlarmEvents> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<SisAlarmEvents> lqw = Wrappers.lambdaQuery();
lqw.orderByAsc(SisAlarmEvents::getId); lqw.orderByAsc(SisAlarmEvents::getId);
lqw.eq(bo.getType() != null, SisAlarmEvents::getType, bo.getType());
lqw.eq(bo.getLevel() != null, SisAlarmEvents::getLevel, bo.getLevel()); lqw.eq(bo.getLevel() != null, SisAlarmEvents::getLevel, bo.getLevel());
lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisAlarmEvents::getDeviceIp, bo.getDeviceIp()); lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisAlarmEvents::getDeviceIp, bo.getDeviceIp());
lqw.like(StringUtils.isNotBlank(bo.getDeviceName()), SisAlarmEvents::getDeviceName, bo.getDeviceName()); lqw.like(StringUtils.isNotBlank(bo.getDeviceName()), SisAlarmEvents::getDeviceName, bo.getDeviceName());
@ -161,7 +160,9 @@ public class SisAlarmEventsServiceImpl implements ISisAlarmEventsService {
} }
// 生成时间信息 // 生成时间信息
SisAlarmEvents alarmEvents = new SisAlarmEvents(); SisAlarmEvents alarmEvents = new SisAlarmEvents();
alarmEvents.setType(1L); //
alarmEvents.setBigType(10L);
alarmEvents.setSmallType(1008L);
alarmEvents.setLevel(Long.valueOf(level)); alarmEvents.setLevel(Long.valueOf(level));
alarmEvents.setDeviceIp(deviceIp); alarmEvents.setDeviceIp(deviceIp);
alarmEvents.setDeviceName(sisDeviceManage.getDeviceName()); alarmEvents.setDeviceName(sisDeviceManage.getDeviceName());