Merge remote-tracking branch 'origin/master'
Some checks failed
/ build-parent-pom (push) Successful in 2m3s
/ build-and-push-services (ruoyi-auth) (push) Failing after 56s
/ build-and-push-services (ruoyi-gateway) (push) Failing after 53s
/ build-and-push-services (ruoyi-modules/Property) (push) Failing after 56s
/ build-and-push-services (ruoyi-modules/Sis) (push) Failing after 33s
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Failing after 53s
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Failing after 52s
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Waiting to run
/ build-and-push-services (ruoyi-seata-server) (push) Waiting to run
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Waiting to run
/ build-and-push-services (ruoyi-snailjob-server) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Waiting to run
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Has been cancelled
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Has been cancelled
Some checks failed
/ build-parent-pom (push) Successful in 2m3s
/ build-and-push-services (ruoyi-auth) (push) Failing after 56s
/ build-and-push-services (ruoyi-gateway) (push) Failing after 53s
/ build-and-push-services (ruoyi-modules/Property) (push) Failing after 56s
/ build-and-push-services (ruoyi-modules/Sis) (push) Failing after 33s
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Failing after 53s
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Failing after 52s
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Waiting to run
/ build-and-push-services (ruoyi-seata-server) (push) Waiting to run
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Waiting to run
/ build-and-push-services (ruoyi-snailjob-server) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Waiting to run
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Waiting to run
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Has been cancelled
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Has been cancelled
This commit is contained in:
@@ -6,14 +6,15 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||||
import org.dromara.common.log.annotation.Log;
|
import org.dromara.common.log.annotation.Log;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.web.core.BaseController;
|
import org.dromara.common.web.core.BaseController;
|
||||||
|
import org.dromara.property.domain.bo.ServiceWorkOrdersBo;
|
||||||
import org.dromara.property.domain.bo.mobile.MServiceWorkOrdersBo;
|
import org.dromara.property.domain.bo.mobile.MServiceWorkOrdersBo;
|
||||||
|
import org.dromara.property.domain.vo.ServiceWorkOrdersVo;
|
||||||
import org.dromara.property.service.IServiceWorkOrdersService;
|
import org.dromara.property.service.IServiceWorkOrdersService;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【业务管理-工单处理】
|
* 【业务管理-工单处理】
|
||||||
@@ -38,4 +39,11 @@ public class MServiceWorkOrdersController extends BaseController {
|
|||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody MServiceWorkOrdersBo bo) {
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody MServiceWorkOrdersBo bo) {
|
||||||
return toAjax(serviceWorkOrdersService.insertMServiceWorkOrdersBo(bo));
|
return toAjax(serviceWorkOrdersService.insertMServiceWorkOrdersBo(bo));
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 小程序查询【工单处理】
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo<ServiceWorkOrdersVo> list(ServiceWorkOrdersBo bo, PageQuery pageQuery) {
|
||||||
|
return serviceWorkOrdersService.queryPageList(bo, pageQuery);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,7 +30,7 @@ public class AttendanceArea extends TenantEntity {
|
|||||||
/**
|
/**
|
||||||
* 摄像机id
|
* 摄像机id
|
||||||
*/
|
*/
|
||||||
private Long deviceManageId;
|
private String deviceManageId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 区域
|
* 区域
|
||||||
|
@@ -9,6 +9,8 @@ import lombok.Data;
|
|||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import jakarta.validation.constraints.*;
|
import jakarta.validation.constraints.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 区域区域管理业务对象 attendance_area
|
* 区域区域管理业务对象 attendance_area
|
||||||
*
|
*
|
||||||
@@ -29,7 +31,7 @@ public class AttendanceAreaBo extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 摄像机id
|
* 摄像机id
|
||||||
*/
|
*/
|
||||||
private Long deviceManageId;
|
private List<Long> deviceManageId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 区域
|
* 区域
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
package org.dromara.property.service.impl;
|
package org.dromara.property.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
@@ -89,6 +90,12 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
|||||||
@Override
|
@Override
|
||||||
public Boolean insertByBo(AttendanceAreaBo bo) {
|
public Boolean insertByBo(AttendanceAreaBo bo) {
|
||||||
AttendanceArea add = MapstructUtils.convert(bo, AttendanceArea.class);
|
AttendanceArea add = MapstructUtils.convert(bo, AttendanceArea.class);
|
||||||
|
if (ObjectUtil.isNotEmpty(bo.getDeviceManageId())) {
|
||||||
|
assert add != null;
|
||||||
|
// 将 deviceManageId 集合转换为以逗号分隔的字符串
|
||||||
|
String deviceManageIdsStr = StringUtils.join(bo.getDeviceManageId(), ",");
|
||||||
|
add.setDeviceManageId(deviceManageIdsStr);
|
||||||
|
}
|
||||||
validEntityBeforeSave(add);
|
validEntityBeforeSave(add);
|
||||||
boolean flag = baseMapper.insert(add) > 0;
|
boolean flag = baseMapper.insert(add) > 0;
|
||||||
if (flag) {
|
if (flag) {
|
||||||
|
@@ -130,7 +130,7 @@ public class AlarmPushController {
|
|||||||
sisAlarmEvents.setId(recordId);
|
sisAlarmEvents.setId(recordId);
|
||||||
|
|
||||||
// 转换类型和级别
|
// 转换类型和级别
|
||||||
sisAlarmEvents.setType(convertToLong(recordMap.get("Type")));
|
// sisAlarmEvents.setType(convertToLong(recordMap.get("Type")));
|
||||||
sisAlarmEvents.setLevel(convertToLong(recordMap.get("Level")));
|
sisAlarmEvents.setLevel(convertToLong(recordMap.get("Level")));
|
||||||
|
|
||||||
// 设备信息
|
// 设备信息
|
||||||
|
@@ -86,7 +86,7 @@ public class DataSyncTask {
|
|||||||
//同步成功后,将两张表的数据合并到alarmEvents表中
|
//同步成功后,将两张表的数据合并到alarmEvents表中
|
||||||
SisAlarmEventsBo sisAlarmEvents = new SisAlarmEventsBo();
|
SisAlarmEventsBo sisAlarmEvents = new SisAlarmEventsBo();
|
||||||
sisAlarmEvents.setId(recordId);
|
sisAlarmEvents.setId(recordId);
|
||||||
sisAlarmEvents.setType(Long.valueOf((Integer) recordMap.get("Type")));
|
// sisAlarmEvents.setType(Long.valueOf((Integer) recordMap.get("Type")));
|
||||||
sisAlarmEvents.setLevel(Long.valueOf((Integer) recordMap.get("Level")));
|
sisAlarmEvents.setLevel(Long.valueOf((Integer) recordMap.get("Level")));
|
||||||
sisAlarmEvents.setDeviceIp((String) recordMap.get("DeviceSipNum"));
|
sisAlarmEvents.setDeviceIp((String) recordMap.get("DeviceSipNum"));
|
||||||
sisAlarmEvents.setDeviceName(recordMap.get("DeviceName").toString());
|
sisAlarmEvents.setDeviceName(recordMap.get("DeviceName").toString());
|
||||||
|
Reference in New Issue
Block a user