新增:申请过期时间
This commit is contained in:
parent
57f73108ea
commit
3c0d9ab8b3
|
@ -0,0 +1,2 @@
|
||||||
|
alter table `t_ability_application`
|
||||||
|
ADD COLUMN `expire_date` datetime DEFAULT NULL comment '过期时间';
|
|
@ -112,6 +112,7 @@ public class AbilityCenterController {
|
||||||
tAbilityApplicationDTO.setDelFlag(0);
|
tAbilityApplicationDTO.setDelFlag(0);
|
||||||
tAbilityApplicationDTO.setFlowType("能力申请");
|
tAbilityApplicationDTO.setFlowType("能力申请");
|
||||||
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
||||||
|
tAbilityApplicationDTO.setExpireDate(abilityBatchApplicationDTO.getExpireDate());
|
||||||
// 仿照请求接口 /processForm/tabilityapplication
|
// 仿照请求接口 /processForm/tabilityapplication
|
||||||
ValidatorUtils.validateEntity(tAbilityApplicationDTO, AddGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(tAbilityApplicationDTO, AddGroup.class, DefaultGroup.class);
|
||||||
tAbilityApplicationService.save(tAbilityApplicationDTO); // 写能力申请数据
|
tAbilityApplicationService.save(tAbilityApplicationDTO); // 写能力申请数据
|
||||||
|
|
|
@ -185,6 +185,7 @@ public class AbilityCenterControllerV2 {
|
||||||
tAbilityApplicationDTO.setEffectWish(abilityBatchApplicationDTO.getEffectWish());
|
tAbilityApplicationDTO.setEffectWish(abilityBatchApplicationDTO.getEffectWish());
|
||||||
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
||||||
tAbilityApplicationDTO.setCreateDate(new Date());
|
tAbilityApplicationDTO.setCreateDate(new Date());
|
||||||
|
tAbilityApplicationDTO.setExpireDate(abilityBatchApplicationDTO.getExpireDate());
|
||||||
|
|
||||||
// 归为同一次申请
|
// 归为同一次申请
|
||||||
tAbilityApplicationDTO.setApplyFlag(abilityBatchApplicationDTO.getApplyFlag());
|
tAbilityApplicationDTO.setApplyFlag(abilityBatchApplicationDTO.getApplyFlag());
|
||||||
|
|
|
@ -211,6 +211,7 @@ public class AbilityCenterControllerV3 {
|
||||||
tAbilityApplicationDTO.setEffectWish(abilityBatchApplicationDTO.getEffectWish());
|
tAbilityApplicationDTO.setEffectWish(abilityBatchApplicationDTO.getEffectWish());
|
||||||
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
tAbilityApplicationDTO.setEnclosureName(abilityBatchApplicationDTO.getEnclosureName());
|
||||||
tAbilityApplicationDTO.setCreateDate(new Date());
|
tAbilityApplicationDTO.setCreateDate(new Date());
|
||||||
|
tAbilityApplicationDTO.setExpireDate(abilityBatchApplicationDTO.getExpireDate());
|
||||||
|
|
||||||
// 归为同一次申请
|
// 归为同一次申请
|
||||||
tAbilityApplicationDTO.setApplyFlag(abilityBatchApplicationDTO.getApplyFlag());
|
tAbilityApplicationDTO.setApplyFlag(abilityBatchApplicationDTO.getApplyFlag());
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package io.renren.modules.device.controller;
|
package io.renren.modules.device.controller;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.google.common.collect.ImmutableList;
|
||||||
import io.renren.common.annotation.LogOperation;
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.constant.Constant;
|
import io.renren.common.constant.Constant;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
|
@ -103,6 +104,22 @@ public class TbDeviceApplyController {
|
||||||
@ApiImplicitParam(name = "state", value = "申请状态", paramType = "query", dataType="int")
|
@ApiImplicitParam(name = "state", value = "申请状态", paramType = "query", dataType="int")
|
||||||
})
|
})
|
||||||
public Result<PageData<TbDeviceApplyDTO>> auditPage(@ApiIgnore @RequestParam Map<String, Object> params){
|
public Result<PageData<TbDeviceApplyDTO>> auditPage(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||||
|
if(params.get("state") != null){
|
||||||
|
params.put("states", ImmutableList.of(params.get("state")));
|
||||||
|
}
|
||||||
|
PageData<TbDeviceApplyDTO> page = tbDeviceApplyService.queryAuditList(params);
|
||||||
|
return new Result<PageData<TbDeviceApplyDTO>>().ok(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("myDonePage")
|
||||||
|
@ApiOperation("分页查询申请记录(我的已办)")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ApiImplicitParam(name = "deviceName", value = "设备名称", paramType = "query", dataType="String")
|
||||||
|
})
|
||||||
|
public Result<PageData<TbDeviceApplyDTO>> myDonePage(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||||
|
params.put("states", ImmutableList.of(2,3));
|
||||||
PageData<TbDeviceApplyDTO> page = tbDeviceApplyService.queryAuditList(params);
|
PageData<TbDeviceApplyDTO> page = tbDeviceApplyService.queryAuditList(params);
|
||||||
return new Result<PageData<TbDeviceApplyDTO>>().ok(page);
|
return new Result<PageData<TbDeviceApplyDTO>>().ok(page);
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,9 @@ public class TAbilityApplicationDTO extends AuditingBaseDTO implements Serializa
|
||||||
@ApiModelProperty(value = "创建时间")
|
@ApiModelProperty(value = "创建时间")
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "整个申请单是否结束")
|
@ApiModelProperty(value = "整个申请单是否结束")
|
||||||
private boolean isEnded;
|
private boolean isEnded;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "过期时间")
|
||||||
|
private Date expireDate;
|
||||||
}
|
}
|
|
@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -78,4 +79,6 @@ public class TAbilityBatchApplicationDTO extends AuditingBaseDTO implements Seri
|
||||||
|
|
||||||
@ApiModelProperty(value = "申请人部门id")
|
@ApiModelProperty(value = "申请人部门id")
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
@ApiModelProperty(value = "过期时间")
|
||||||
|
private Date expireDate;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -131,4 +132,8 @@ public class TAbilityApplicationEntity extends BaseEntity implements Serializabl
|
||||||
* 申请单号
|
* 申请单号
|
||||||
*/
|
*/
|
||||||
private String applyNumber;
|
private String applyNumber;
|
||||||
|
/**
|
||||||
|
* 过期时间
|
||||||
|
*/
|
||||||
|
private Date expireDate;
|
||||||
}
|
}
|
|
@ -17,6 +17,7 @@ import io.renren.modules.security.user.UserDetail;
|
||||||
import io.renren.modules.sys.dto.PasswordDTO;
|
import io.renren.modules.sys.dto.PasswordDTO;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
import io.renren.modules.sys.excel.SysUserExcel;
|
import io.renren.modules.sys.excel.SysUserExcel;
|
||||||
|
import io.renren.modules.sys.service.SysDeptService;
|
||||||
import io.renren.modules.sys.service.SysRoleUserService;
|
import io.renren.modules.sys.service.SysRoleUserService;
|
||||||
import io.renren.modules.sys.service.SysUserPostService;
|
import io.renren.modules.sys.service.SysUserPostService;
|
||||||
import io.renren.modules.sys.service.SysUserService;
|
import io.renren.modules.sys.service.SysUserService;
|
||||||
|
@ -47,6 +48,8 @@ public class SysUserController {
|
||||||
private SysUserPostService sysUserPostService;
|
private SysUserPostService sysUserPostService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysRoleUserService sysRoleUserService;
|
private SysRoleUserService sysRoleUserService;
|
||||||
|
@Autowired
|
||||||
|
private SysDeptService sysDeptService;
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@ -89,6 +92,7 @@ public class SysUserController {
|
||||||
@ApiOperation("登录用户信息")
|
@ApiOperation("登录用户信息")
|
||||||
public Result<SysUserDTO> info(){
|
public Result<SysUserDTO> info(){
|
||||||
SysUserDTO data = ConvertUtils.sourceToTarget(SecurityUser.getUser(), SysUserDTO.class);
|
SysUserDTO data = ConvertUtils.sourceToTarget(SecurityUser.getUser(), SysUserDTO.class);
|
||||||
|
data.setDeptName(sysDeptService.get(data.getDeptId()).getName());
|
||||||
data.setRoleIdList(sysRoleUserService.getRoleIdList(data.getId()));
|
data.setRoleIdList(sysRoleUserService.getRoleIdList(data.getId()));
|
||||||
return new Result<SysUserDTO>().ok(data);
|
return new Result<SysUserDTO>().ok(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
DROP TABLE IF EXISTS `tb_device`;
|
||||||
|
DROP TABLE IF EXISTS `tb_device_attr`;
|
||||||
|
DROP TABLE IF EXISTS `tb_device_apply`;
|
||||||
|
CREATE TABLE `tb_device`
|
||||||
|
(
|
||||||
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '名称',
|
||||||
|
`description` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '描述',
|
||||||
|
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '类型',
|
||||||
|
`dept_id` bigint DEFAULT NULL COMMENT '所属部门',
|
||||||
|
`del_flag` int DEFAULT '0' COMMENT '是否删除',
|
||||||
|
`creator` bigint DEFAULT NULL COMMENT '创建人',
|
||||||
|
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`updater` bigint DEFAULT NULL COMMENT '修改人',
|
||||||
|
`update_date` datetime DEFAULT NULL COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB
|
||||||
|
AUTO_INCREMENT = 100
|
||||||
|
DEFAULT CHARSET = utf8mb4
|
||||||
|
COLLATE = utf8mb4_general_ci
|
||||||
|
ROW_FORMAT = DYNAMIC COMMENT ='设备表';
|
||||||
|
|
||||||
|
CREATE TABLE `tb_device_attr`
|
||||||
|
(
|
||||||
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||||
|
`device_id` bigint DEFAULT NULL COMMENT '设备id',
|
||||||
|
`attr_type` varchar(255) DEFAULT NULL COMMENT '属性类型',
|
||||||
|
`attr_value` varchar(4096) DEFAULT NULL COMMENT '属性值',
|
||||||
|
`del_flag` int DEFAULT '0' COMMENT '是否删除',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB
|
||||||
|
AUTO_INCREMENT = 100
|
||||||
|
DEFAULT CHARSET = utf8mb4
|
||||||
|
COLLATE = utf8mb4_general_ci
|
||||||
|
ROW_FORMAT = DYNAMIC COMMENT ='设备属性表';
|
||||||
|
|
||||||
|
CREATE TABLE `tb_device_apply`
|
||||||
|
(
|
||||||
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||||
|
`device_id` bigint DEFAULT NULL COMMENT '设备id',
|
||||||
|
`name` varchar(255) DEFAULT NULL COMMENT '申请人',
|
||||||
|
`phone` varchar(255) DEFAULT NULL COMMENT '联系电话',
|
||||||
|
`dept` varchar(255) DEFAULT NULL COMMENT '申请人部门',
|
||||||
|
`title` varchar(255) DEFAULT NULL COMMENT '申请标题',
|
||||||
|
`application_system` varchar(255) DEFAULT NULL COMMENT '应用系统',
|
||||||
|
`application_area` varchar(255) DEFAULT NULL COMMENT '应用领域',
|
||||||
|
`demand` varchar(4096) DEFAULT NULL COMMENT '需求依据',
|
||||||
|
`creator` bigint DEFAULT NULL COMMENT '创建者',
|
||||||
|
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`apply_number` varchar(255) DEFAULT NULL COMMENT '申请单号',
|
||||||
|
`state` int DEFAULT '0' COMMENT '审核状态',
|
||||||
|
`audit_viem` varchar(255) DEFAULT NULL COMMENT '审核意见',
|
||||||
|
`auditor` bigint DEFAULT NULL COMMENT '审核者',
|
||||||
|
`audit_time` datetime DEFAULT NULL COMMENT '审核时间',
|
||||||
|
`del_flag` int DEFAULT '0' COMMENT '是否删除',
|
||||||
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
|
) ENGINE = InnoDB
|
||||||
|
AUTO_INCREMENT = 100
|
||||||
|
DEFAULT CHARSET = utf8mb4
|
||||||
|
COLLATE = utf8mb4_general_ci
|
||||||
|
ROW_FORMAT = DYNAMIC COMMENT ='设备申请表';
|
||||||
|
|
||||||
|
INSERT INTO `tb_device`
|
||||||
|
VALUES (1572757598613598209, '经纬 M300 RTK-1', '经纬 M300 RTK-1', '无人机', 1067246875800000066, 0, 1535157700902572033,
|
||||||
|
'2022-09-22 09:20:07', 1535157700902572033, '2022-09-22 09:20:07');
|
||||||
|
INSERT INTO `tb_device`
|
||||||
|
VALUES (1572757637394132993, '经纬 M300 RTK-2', '经纬 M300 RTK-2', '无人机', 1067246875800000066, 0, 1535157700902572033,
|
||||||
|
'2022-09-22 09:20:16', 1535157700902572033, '2022-09-22 09:20:16');
|
||||||
|
INSERT INTO `tb_device`
|
||||||
|
VALUES (1572757693497143298, 'T950天通-1', 'T950天通-1', '单兵设备', 1067246875800000066, 0, 1535157700902572033,
|
||||||
|
'2022-09-22 09:20:29', 1535157700902572033, '2022-09-22 09:20:29');
|
||||||
|
INSERT INTO `tb_device`
|
||||||
|
VALUES (1572757728397946882, 'T950天通-2', 'T950天通-2', '单兵设备', 1067246875800000066, 0, 1535157700902572033,
|
||||||
|
'2022-09-22 09:20:38', 1535157700902572033, '2022-09-22 09:20:38');
|
||||||
|
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598705872898, 1572757598613598209, '飞行器',
|
||||||
|
'{\"尺寸\":\"尺寸(展开,不包含桨叶):810×670×430 mm(长×宽×高);尺寸(折叠,包含桨叶):430×420×430 mm(长×宽×高)\",\"对称电机轴距\":\"895 mm\",\"重量(含下置单云台支架)\":\"空机重量(不含电池):3.6 kg;空机重量(含双电池):6.3 kg\",\"单云台减震球最大负重\":\"930g\",\"最大起飞重量\":\"9 kg\",\"工作频率\":\"2.4000-2.4835 GHz;5.725-5.850 GHz\",\"发射功率(EIRP)\":\"2.4000-2.4835 GHz:29.5 dBm(FCC)、18.5dBm(CE)、18.5 dBm(SRRC)、18.5dBm(MIC);5.725-5.850 GHz:28.5 dBm(FCC)、12.5dBm(CE)、28.5 dBm(SRRC)\",\"悬停精度(P-GPS)\":\"垂直:±0.1 m(视觉定位正常工作时)、±0.5 m(GPS 正常工作时)、±0.1 m(RTK 定位正常工作时);水平:±0.3 m(视觉定位正常工作时)、±1.5 m(GPS 正常工作时)、±0.1 m(RTK 定位正常工作时)\",\"RTK 位置精度\":\"在 RTK FIX 时:1 cm+1 ppm(水平)、1.5 cm + 1 ppm(垂直)\",\"最大旋转角速度\":\"俯仰轴:300°/s、航向轴:100°/s\",\"最大俯仰角度\":\"30° (P模式且前视视觉系统启用:25°)\",\"最大上升速度\":\"S 模式:6 m/s、P 模式:5 m/s\",\"最大下降速度(垂直)\":\"S 模式:5 m/s、P 模式:4 m/s\",\"最大倾斜下降速度\":\"S 模式:7 m/s\",\"最大水平飞行速度\":\"S 模式:23 m/s、P 模式:17 m/s\",\"最大飞行海拔高度\":\"5000 m(2110 桨叶,起飞重量≤7 kg)/ 7000 m(2195 高原静音桨叶,起飞重量≤7 kg)\",\"最大可承受风速\":\"15m/s(起飞及降落阶段为12m/s)\",\"最大飞行时间\":\"55 min\",\"适配 DJI 云台\":\"禅思 XT2、禅思 XT S、禅思 Z30、禅思 H20、禅思 H20T、DJI P1、DJI L1\",\"支持云台安装方式\":\"下置单云台、上置单云台、下置双云台、下置单云台+上置单云台、下置双云台+上置单云台\",\"IP 防护等级\":\"IP45\",\"GNSS\":\"GPS+GLONASS+BeiDou+Galileo\",\"工作环境温度\":\"-20°C 至 50°C\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598739427329, 1572757598613598209, '遥控器',
|
||||||
|
'{\"工作频率\":\"2.4000-2.4835 GHz、5.725-5.850 GHz\",\"最大信号有效距离(无干扰、无遮挡)\":\"NCC/FCC:15 km、CE/MIC:8 km、SRRC:8 km\",\"等效全向辐射功率(EIRP)\":\"2.4000-2.4835 GHz:29.5 dBm(FCC);18.5dBm(CE)、18.5 dBm(SRRC);18.5dBm(MIC);5.725-5.850 GHz:28.5 dBm(FCC);12.5dBm(CE)、20.5 dBm(SRRC)\",\"外置电池\":\"名称:WB37 智能电池;容量:4920 mAh;电压:7.6 V;电池类型:LiPo;能量:37.39 Wh;充电时间(使用 BS60 智能电池箱):70 分钟(15°C 至 45°C);130 分钟(0°C 至 15°C)\",\"内置电池\":\"类型:18650 锂离子电池 (5000 mAh @ 7.2 V);充电方式:使用规格为 12V/2A 的 USB 充电器;额定功率:17 W;充电时间:2 小时 15 分钟(使用规格为12V/2A 的 USB 充电器)\",\"续航时间\":\"内置电池:约 2.5 小时内置电池+外置电池:约 4.5 小时\",\"USB-A 接口供电电压/电流\":\"5 V / 1.5 A\",\"工作环境温度\":\"-20° 至 40° C\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598760398849, 1572757598613598209, '视觉系统',
|
||||||
|
'{\"障碍物感知范围\":\"前后左右:0.7-40 m、上下:0.6-30 m\",\"FOV\":\"前后下:65°(H),50°(V)、左右上:75°(H),60°(V)\",\"使用环境\":\"表面有丰富纹理,光照条件充足(>15 lux,室内日光灯正常照射环境)\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598777176065, 1572757598613598209, '红外感知系统',
|
||||||
|
'{\"障碍物感知范围\":\"0.1-8 m\",\"FOV\":\"30°(±15°)\",\"使用环境\":\"漫反射,大尺寸,高反射率(反射率>10%)障碍物\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598789758978, 1572757598613598209, '上下补光灯', '{\"有效照明距离\":\"5 m\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598819119105, 1572757598613598209, 'FPV摄像头', '{\"分辨率\":\"960p\",\"FOV\":\"145°\",\"帧率\":\"30 fps\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598831702017, 1572757598613598209, '智能飞行电池',
|
||||||
|
'{\"型号\":\"TB60\",\"容量\":\"5935 mAh\",\"电压\":\"52.8 V\",\"电池类型\":\"LiPo 12S\",\"能量\":\"274 Wh\",\"电池整体重量\":\"约 1.35 kg\",\"工作环境温度\":\"-20℃ 至 50℃\",\"理想存放环境温度\":\"22℃ 至 30℃\",\"充电环境温度\":\"-20°C 至 40°C(当环境温度低于 5°C时,电池会启动自加热功能,在低温环境下充电有可能会降低电池使用寿命)\",\"充电时间\":\"使用 BS60 智能电池箱时,使用 220 V 电源:完全充满两块 TB60 智能飞行电池约需 60 分钟,从 20% 充到 90% 约需 30 分钟;使用 110 V 电源:完全充满两块 TB60 智能飞行电池约需 70 分钟,从 20% 充到 90% 约需 40 分钟\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757598852673538, 1572757598613598209, 'BS60智能电池箱',
|
||||||
|
'{\"外形尺寸\":\"501×403×252 mm\",\"空箱重量\":\"8.37 kg\",\"可放置物品\":\"TB60 智能飞行电池 8 块、WB37 智能电池 4 块\",\"输入电压\":\"100-120 VAC,50-60 Hz / 220-240 VAC,50-60 Hz\",\"最大输入功率\":\"1070 W\",\"输出功率\":\"100-120 V:750 W、220-240 V:992 W\",\"工作环境温度\":\"-20℃ 至 40℃\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637419298817, 1572757637394132993, '飞行器',
|
||||||
|
'{\"尺寸\":\"尺寸(展开,不包含桨叶):810×670×430 mm(长×宽×高);尺寸(折叠,包含桨叶):430×420×430 mm(长×宽×高)\",\"对称电机轴距\":\"895 mm\",\"重量(含下置单云台支架)\":\"空机重量(不含电池):3.6 kg;空机重量(含双电池):6.3 kg\",\"单云台减震球最大负重\":\"930g\",\"最大起飞重量\":\"9 kg\",\"工作频率\":\"2.4000-2.4835 GHz;5.725-5.850 GHz\",\"发射功率(EIRP)\":\"2.4000-2.4835 GHz:29.5 dBm(FCC)、18.5dBm(CE)、18.5 dBm(SRRC)、18.5dBm(MIC);5.725-5.850 GHz:28.5 dBm(FCC)、12.5dBm(CE)、28.5 dBm(SRRC)\",\"悬停精度(P-GPS)\":\"垂直:±0.1 m(视觉定位正常工作时)、±0.5 m(GPS 正常工作时)、±0.1 m(RTK 定位正常工作时);水平:±0.3 m(视觉定位正常工作时)、±1.5 m(GPS 正常工作时)、±0.1 m(RTK 定位正常工作时)\",\"RTK 位置精度\":\"在 RTK FIX 时:1 cm+1 ppm(水平)、1.5 cm + 1 ppm(垂直)\",\"最大旋转角速度\":\"俯仰轴:300°/s、航向轴:100°/s\",\"最大俯仰角度\":\"30° (P模式且前视视觉系统启用:25°)\",\"最大上升速度\":\"S 模式:6 m/s、P 模式:5 m/s\",\"最大下降速度(垂直)\":\"S 模式:5 m/s、P 模式:4 m/s\",\"最大倾斜下降速度\":\"S 模式:7 m/s\",\"最大水平飞行速度\":\"S 模式:23 m/s、P 模式:17 m/s\",\"最大飞行海拔高度\":\"5000 m(2110 桨叶,起飞重量≤7 kg)/ 7000 m(2195 高原静音桨叶,起飞重量≤7 kg)\",\"最大可承受风速\":\"15m/s(起飞及降落阶段为12m/s)\",\"最大飞行时间\":\"55 min\",\"适配 DJI 云台\":\"禅思 XT2、禅思 XT S、禅思 Z30、禅思 H20、禅思 H20T、DJI P1、DJI L1\",\"支持云台安装方式\":\"下置单云台、上置单云台、下置双云台、下置单云台+上置单云台、下置双云台+上置单云台\",\"IP 防护等级\":\"IP45\",\"GNSS\":\"GPS+GLONASS+BeiDou+Galileo\",\"工作环境温度\":\"-20°C 至 50°C\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637431881730, 1572757637394132993, '遥控器',
|
||||||
|
'{\"工作频率\":\"2.4000-2.4835 GHz、5.725-5.850 GHz\",\"最大信号有效距离(无干扰、无遮挡)\":\"NCC/FCC:15 km、CE/MIC:8 km、SRRC:8 km\",\"等效全向辐射功率(EIRP)\":\"2.4000-2.4835 GHz:29.5 dBm(FCC);18.5dBm(CE)、18.5 dBm(SRRC);18.5dBm(MIC);5.725-5.850 GHz:28.5 dBm(FCC);12.5dBm(CE)、20.5 dBm(SRRC)\",\"外置电池\":\"名称:WB37 智能电池;容量:4920 mAh;电压:7.6 V;电池类型:LiPo;能量:37.39 Wh;充电时间(使用 BS60 智能电池箱):70 分钟(15°C 至 45°C);130 分钟(0°C 至 15°C)\",\"内置电池\":\"类型:18650 锂离子电池 (5000 mAh @ 7.2 V);充电方式:使用规格为 12V/2A 的 USB 充电器;额定功率:17 W;充电时间:2 小时 15 分钟(使用规格为12V/2A 的 USB 充电器)\",\"续航时间\":\"内置电池:约 2.5 小时内置电池+外置电池:约 4.5 小时\",\"USB-A 接口供电电压/电流\":\"5 V / 1.5 A\",\"工作环境温度\":\"-20° 至 40° C\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637457047554, 1572757637394132993, '视觉系统',
|
||||||
|
'{\"障碍物感知范围\":\"前后左右:0.7-40 m、上下:0.6-30 m\",\"FOV\":\"前后下:65°(H),50°(V)、左右上:75°(H),60°(V)\",\"使用环境\":\"表面有丰富纹理,光照条件充足(>15 lux,室内日光灯正常照射环境)\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637478019074, 1572757637394132993, '红外感知系统',
|
||||||
|
'{\"障碍物感知范围\":\"0.1-8 m\",\"FOV\":\"30°(±15°)\",\"使用环境\":\"漫反射,大尺寸,高反射率(反射率>10%)障碍物\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637494796290, 1572757637394132993, '上下补光灯', '{\"有效照明距离\":\"5 m\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637507379202, 1572757637394132993, 'FPV摄像头', '{\"分辨率\":\"960p\",\"FOV\":\"145°\",\"帧率\":\"30 fps\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637528350721, 1572757637394132993, '智能飞行电池',
|
||||||
|
'{\"型号\":\"TB60\",\"容量\":\"5935 mAh\",\"电压\":\"52.8 V\",\"电池类型\":\"LiPo 12S\",\"能量\":\"274 Wh\",\"电池整体重量\":\"约 1.35 kg\",\"工作环境温度\":\"-20℃ 至 50℃\",\"理想存放环境温度\":\"22℃ 至 30℃\",\"充电环境温度\":\"-20°C 至 40°C(当环境温度低于 5°C时,电池会启动自加热功能,在低温环境下充电有可能会降低电池使用寿命)\",\"充电时间\":\"使用 BS60 智能电池箱时,使用 220 V 电源:完全充满两块 TB60 智能飞行电池约需 60 分钟,从 20% 充到 90% 约需 30 分钟;使用 110 V 电源:完全充满两块 TB60 智能飞行电池约需 70 分钟,从 20% 充到 90% 约需 40 分钟\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757637545127938, 1572757637394132993, 'BS60智能电池箱',
|
||||||
|
'{\"外形尺寸\":\"501×403×252 mm\",\"空箱重量\":\"8.37 kg\",\"可放置物品\":\"TB60 智能飞行电池 8 块、WB37 智能电池 4 块\",\"输入电压\":\"100-120 VAC,50-60 Hz / 220-240 VAC,50-60 Hz\",\"最大输入功率\":\"1070 W\",\"输出功率\":\"100-120 V:750 W、220-240 V:992 W\",\"工作环境温度\":\"-20℃ 至 40℃\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757693522309121, 1572757693497143298, '基本信息',
|
||||||
|
'{\"外观设计\":\"172X81X15.7(不含天线),336g\",\"操作系统\":\"Android P\",\"CPU\":\"展锐 Makalu T7510;虎贲T710+春藤IVY510\",\"存储\":\"标配:6GB ROM +128G RAM\",\"显示屏\":\"6.52吋水滴屏;HD+,1600*720(20:9)\",\"后置摄像头\":\"后置为4800万主摄+200万微距+200万红外三摄组合,支持闪光灯\",\"前置摄像头\":\"1600万\",\"传感器相关\":\"指纹|光线传感器|距离传感器|加速度传感器|地磁传感器|陀螺仪|气压传感器\",\"WLAN\":\"802.11a/b/g/n/AC 支持MIMO\",\"电池\":\"6000mAh@3.8V,内置不可拆卸,支持18W快充\",\"工作时间\":\"待机时长180h,卫星通话时长16h\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757693539086338, 1572757693497143298, '制式频段',
|
||||||
|
'{\"卫星频段\":\"天通一号卫星\",\"频段\":\"2G:GSM 850/900/1800/1900;3G:WCDMA850/900/1900/2100;4G:TD-LTE B38/39/40/41;4G:FDD-LTE B1/3/5/7/8;5G: N1,N28,N41, N78,N79\",\"双卡\":\"双nano卡(卫星卡+运营商全网通卡)\",\"CA\":\"B1+B3 下行 2CA(电信);B40/41带内上下行 2CA\",\"VOLTE\":\"支持\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757693560057858, 1572757693497143298, 'IO接口',
|
||||||
|
'{\"USB接口类型\":\"TYPE-C USB3.0,支持OTG功能\",\"耳机接口\":\"3.5mm,美标\",\"存储卡\":\"支持TF卡扩展\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757693581029377, 1572757693497143298, '其它功能',
|
||||||
|
'{\"蓝牙\":\"V5.0\",\"定位\":\"GPS、北斗混合定位、单北斗模式\",\"NFC\":\"支持\",\"充电方式\":\"三种充电方式(线充、座充、磁吸充电)\",\"按键\":\"开机键、音量+/-、 SOS(侧面)、PTT按键\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757693602000897, 1572757693497143298, '环境适应性',
|
||||||
|
'{\"工作温度\":\"-20°~ 60°\",\"存储温度\":\"-40°~ 80°\",\"高温高湿\":\"(95±3)%(≧40°),24小时\",\"防护等级\":\"IP68\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757728427307010, 1572757728397946882, '基本信息',
|
||||||
|
'{\"外观设计\":\"172X81X15.7(不含天线),336g\",\"操作系统\":\"Android P\",\"CPU\":\"展锐 Makalu T7510;虎贲T710+春藤IVY510\",\"存储\":\"标配:6GB ROM +128G RAM\",\"显示屏\":\"6.52吋水滴屏;HD+,1600*720(20:9)\",\"后置摄像头\":\"后置为4800万主摄+200万微距+200万红外三摄组合,支持闪光灯\",\"前置摄像头\":\"1600万\",\"传感器相关\":\"指纹|光线传感器|距离传感器|加速度传感器|地磁传感器|陀螺仪|气压传感器\",\"WLAN\":\"802.11a/b/g/n/AC 支持MIMO\",\"电池\":\"6000mAh@3.8V,内置不可拆卸,支持18W快充\",\"工作时间\":\"待机时长180h,卫星通话时长16h\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757728439889921, 1572757728397946882, '制式频段',
|
||||||
|
'{\"卫星频段\":\"天通一号卫星\",\"频段\":\"2G:GSM 850/900/1800/1900;3G:WCDMA850/900/1900/2100;4G:TD-LTE B38/39/40/41;4G:FDD-LTE B1/3/5/7/8;5G: N1,N28,N41, N78,N79\",\"双卡\":\"双nano卡(卫星卡+运营商全网通卡)\",\"CA\":\"B1+B3 下行 2CA(电信);B40/41带内上下行 2CA\",\"VOLTE\":\"支持\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757728460861441, 1572757728397946882, 'IO接口',
|
||||||
|
'{\"USB接口类型\":\"TYPE-C USB3.0,支持OTG功能\",\"耳机接口\":\"3.5mm,美标\",\"存储卡\":\"支持TF卡扩展\"}', 0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757728477638658, 1572757728397946882, '其它功能',
|
||||||
|
'{\"蓝牙\":\"V5.0\",\"定位\":\"GPS、北斗混合定位、单北斗模式\",\"NFC\":\"支持\",\"充电方式\":\"三种充电方式(线充、座充、磁吸充电)\",\"按键\":\"开机键、音量+/-、 SOS(侧面)、PTT按键\"}',
|
||||||
|
0);
|
||||||
|
INSERT INTO `tb_device_attr`
|
||||||
|
VALUES (1572757728486027266, 1572757728397946882, '环境适应性',
|
||||||
|
'{\"工作温度\":\"-20°~ 60°\",\"存储温度\":\"-40°~ 80°\",\"高温高湿\":\"(95±3)%(≧40°),24小时\",\"防护等级\":\"IP68\"}', 0);
|
|
@ -0,0 +1,2 @@
|
||||||
|
alter table `t_ability_application`
|
||||||
|
ADD COLUMN `expire_date` datetime DEFAULT NULL comment '过期时间';
|
|
@ -9,8 +9,11 @@
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
and auditor = #{userId}
|
and auditor = #{userId}
|
||||||
</if>
|
</if>
|
||||||
<if test="state != null and state != ''">
|
<if test="null != states and states.size > 0">
|
||||||
and state = #{state}
|
AND state IN
|
||||||
|
<foreach collection="states" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue