设备上电审核前上报的基础信息表管理接口,以及设备厂商管理接口调整等
This commit is contained in:
@ -58,12 +58,12 @@ private static final long serialVersionUID = 1L;
|
||||
/** MCU固件,包含了固件的名称和版本 */
|
||||
@Excel(name = "MCU固件,包含了固件的名称和版本")
|
||||
@ApiModelProperty("MCU固件,包含了固件的名称和版本")
|
||||
private String mcufw;
|
||||
private String mcuFw;
|
||||
|
||||
/** 模组固件,包含了固件的名称和版本 */
|
||||
@Excel(name = "模组固件,包含了固件的名称和版本")
|
||||
@ApiModelProperty("模组固件,包含了固件的名称和版本")
|
||||
private String ltefw;
|
||||
private String lteFw;
|
||||
|
||||
/** 显示屏厂家,上报1,2,3等类似的数值,通过后台进行录入数值和显示屏厂家对应关系例:1对应GT2116 */
|
||||
@Excel(name = "显示屏厂家,上报1,2,3等类似的数值,通过后台进行录入数值和显示屏厂家对应关系例:1对应GT2116")
|
||||
@ -90,4 +90,9 @@ private static final long serialVersionUID = 1L;
|
||||
@ApiModelProperty("记录测试的过程,包括了测试脉冲次数、第一次上电时间等待补充信息")
|
||||
private String testRecord;
|
||||
|
||||
/** 批号 */
|
||||
@Excel(name = "批号")
|
||||
@ApiModelProperty("批号")
|
||||
private Long batchNumber;
|
||||
|
||||
}
|
||||
|
@ -154,7 +154,6 @@ public class DeviceDateTask {
|
||||
catch (Exception e){
|
||||
offlineDeviceList.add(deviceEncoding);
|
||||
}
|
||||
|
||||
DeviceRealtimedataMeteorology deviceRealtimedataMeteorology = metDataService.setData(deviceRealTimeData);
|
||||
boolean save = meteorologySaveDataService.save(deviceRealtimedataMeteorology);
|
||||
if (!save){
|
||||
@ -172,8 +171,6 @@ public class DeviceDateTask {
|
||||
new LambdaUpdateChainWrapper<>(meteorologyMapper).in(DeviceInformationMeteorology::getDeviceEncoding,offlineDeviceList).set(DeviceInformationMeteorology::getStatus, 0).update();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* 获取墒情设备实时数据并保存
|
||||
@ -186,7 +183,6 @@ public class DeviceDateTask {
|
||||
//在线设备列表
|
||||
List<String> onlineDeviceList = new ArrayList<>();
|
||||
try{
|
||||
|
||||
deviceEncodingList.forEach(deviceEncoding->{
|
||||
Map<String, String> deviceRealTimeData = new HashMap<>();
|
||||
try {
|
||||
@ -206,7 +202,7 @@ public class DeviceDateTask {
|
||||
}
|
||||
}
|
||||
catch (Exception e){
|
||||
log.error("获取墒情设备实时数据失败",e);
|
||||
log.error("获取墒情设备实时数据失败:{}",e.getMessage());
|
||||
if(!offlineDeviceList.isEmpty()){
|
||||
new LambdaUpdateChainWrapper<>(moistureMapper).in(DeviceInformationMoisture::getDeviceEncoding,offlineDeviceList).set(DeviceInformationMoisture::getStatus, 0).update();
|
||||
}
|
||||
|
@ -12,17 +12,18 @@
|
||||
<result property="bspType" column="bsp_type" />
|
||||
<result property="lteType" column="lte_type" />
|
||||
<result property="mcuType" column="mcu_type" />
|
||||
<result property="mcufw" column="mcuFw" />
|
||||
<result property="ltefw" column="lteFw" />
|
||||
<result property="mcuFw" column="mcu_fw" />
|
||||
<result property="lteFw" column="lte_fw" />
|
||||
<result property="lcdManufacturer" column="lcd_manufacturer" />
|
||||
<result property="voiceManufacturer" column="voice_manufacturer" />
|
||||
<result property="framModel" column="fram_model" />
|
||||
<result property="replaceManufacturer" column="replace_manufacturer" />
|
||||
<result property="testRecord" column="test_record" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceReportInfoVo">
|
||||
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcuFw, lteFw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record from iot_device_report_info
|
||||
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcu_fw, lte_fw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record, batch_number from iot_device_report_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceReportInfoList" parameterType="DeviceReportInfo" resultMap="DeviceReportInfoResult">
|
||||
@ -34,13 +35,14 @@
|
||||
<if test="bspType != null and bspType != ''"> and bsp_type = #{bspType}</if>
|
||||
<if test="lteType != null and lteType != ''"> and lte_type = #{lteType}</if>
|
||||
<if test="mcuType != null and mcuType != ''"> and mcu_type = #{mcuType}</if>
|
||||
<if test="mcufw != null and mcufw != ''"> and mcuFw = #{mcufw}</if>
|
||||
<if test="ltefw != null and ltefw != ''"> and lteFw = #{ltefw}</if>
|
||||
<if test="mcuFw != null and mcuFw != ''"> and mcu_fw = #{mcuFw}</if>
|
||||
<if test="lteFw != null and lteFw != ''"> and lte_fw = #{lteFw}</if>
|
||||
<if test="lcdManufacturer != null "> and lcd_manufacturer = #{lcdManufacturer}</if>
|
||||
<if test="voiceManufacturer != null "> and voice_manufacturer = #{voiceManufacturer}</if>
|
||||
<if test="framModel != null and framModel != ''"> and fram_model = #{framModel}</if>
|
||||
<if test="replaceManufacturer != null "> and replace_manufacturer = #{replaceManufacturer}</if>
|
||||
<if test="testRecord != null and testRecord != ''"> and test_record = #{testRecord}</if>
|
||||
<if test="batchNumber != null "> and batch_number = #{batchNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -58,13 +60,14 @@
|
||||
<if test="bspType != null and bspType != ''">bsp_type,</if>
|
||||
<if test="lteType != null and lteType != ''">lte_type,</if>
|
||||
<if test="mcuType != null and mcuType != ''">mcu_type,</if>
|
||||
<if test="mcufw != null and mcufw != ''">mcuFw,</if>
|
||||
<if test="ltefw != null and ltefw != ''">lteFw,</if>
|
||||
<if test="mcuFw != null and mcuFw != ''">mcu_fw,</if>
|
||||
<if test="lteFw != null and lteFw != ''">lte_fw,</if>
|
||||
<if test="lcdManufacturer != null">lcd_manufacturer,</if>
|
||||
<if test="voiceManufacturer != null">voice_manufacturer,</if>
|
||||
<if test="framModel != null and framModel != ''">fram_model,</if>
|
||||
<if test="replaceManufacturer != null">replace_manufacturer,</if>
|
||||
<if test="testRecord != null">test_record,</if>
|
||||
<if test="batchNumber != null">batch_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">#{imei},</if>
|
||||
@ -73,13 +76,14 @@
|
||||
<if test="bspType != null and bspType != ''">#{bspType},</if>
|
||||
<if test="lteType != null and lteType != ''">#{lteType},</if>
|
||||
<if test="mcuType != null and mcuType != ''">#{mcuType},</if>
|
||||
<if test="mcufw != null and mcufw != ''">#{mcufw},</if>
|
||||
<if test="ltefw != null and ltefw != ''">#{ltefw},</if>
|
||||
<if test="mcuFw != null and mcuFw != ''">#{mcuFw},</if>
|
||||
<if test="lteFw != null and lteFw != ''">#{lteFw},</if>
|
||||
<if test="lcdManufacturer != null">#{lcdManufacturer},</if>
|
||||
<if test="voiceManufacturer != null">#{voiceManufacturer},</if>
|
||||
<if test="framModel != null and framModel != ''">#{framModel},</if>
|
||||
<if test="replaceManufacturer != null">#{replaceManufacturer},</if>
|
||||
<if test="testRecord != null">#{testRecord},</if>
|
||||
<if test="batchNumber != null">#{batchNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -92,13 +96,14 @@
|
||||
<if test="bspType != null and bspType != ''">bsp_type = #{bspType},</if>
|
||||
<if test="lteType != null and lteType != ''">lte_type = #{lteType},</if>
|
||||
<if test="mcuType != null and mcuType != ''">mcu_type = #{mcuType},</if>
|
||||
<if test="mcufw != null and mcufw != ''">mcuFw = #{mcufw},</if>
|
||||
<if test="ltefw != null and ltefw != ''">lteFw = #{ltefw},</if>
|
||||
<if test="mcuFw != null and mcuFw != ''">mcu_fw = #{mcuFw},</if>
|
||||
<if test="lteFw != null and lteFw != ''">lte_fw = #{lteFw},</if>
|
||||
<if test="lcdManufacturer != null">lcd_manufacturer = #{lcdManufacturer},</if>
|
||||
<if test="voiceManufacturer != null">voice_manufacturer = #{voiceManufacturer},</if>
|
||||
<if test="framModel != null and framModel != ''">fram_model = #{framModel},</if>
|
||||
<if test="replaceManufacturer != null">replace_manufacturer = #{replaceManufacturer},</if>
|
||||
<if test="testRecord != null">test_record = #{testRecord},</if>
|
||||
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user