Commit c3d388dd authored by maoying's avatar maoying

合并developer代码解决冲突

parents dacabc54 1ad00a26
...@@ -208,5 +208,10 @@ public class FireEquipment implements Serializable { ...@@ -208,5 +208,10 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "所关联的设备信息") @ApiModelProperty(value = "所关联的设备信息")
@TableField("fireequipmentinfo") @TableField("fireequipmentinfo")
private String fireequipmentinfo; private String fireequipmentinfo;
@ApiModelProperty(value = "二维码")
@TableField(exist = false)
private String qrCode;
} }
\ No newline at end of file
...@@ -1152,7 +1152,7 @@ public class CarController extends AbstractBaseController { ...@@ -1152,7 +1152,7 @@ public class CarController extends AbstractBaseController {
+ "&productKey=" + prefix + "&deviceName=" + suffix, + "&productKey=" + prefix + "&deviceName=" + suffix,
HttpMethod.GET, httpEntity, FeignClientResult.class); HttpMethod.GET, httpEntity, FeignClientResult.class);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage());
} }
if (null != feignClientResult && feignClientResult.getBody().getStatus() == 200) { if (null != feignClientResult && feignClientResult.getBody().getStatus() == 200) {
return CommonResponseUtil.success(feignClientResult.getBody().getResult()); return CommonResponseUtil.success(feignClientResult.getBody().getResult());
...@@ -1160,7 +1160,6 @@ public class CarController extends AbstractBaseController { ...@@ -1160,7 +1160,6 @@ public class CarController extends AbstractBaseController {
log.error("注:iotCode为 (" + iotCode + ") 的车辆不存在于物联系统或物联系统车辆历史轨迹接口出错!"); log.error("注:iotCode为 (" + iotCode + ") 的车辆不存在于物联系统或物联系统车辆历史轨迹接口出错!");
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
} }
/** /**
......
...@@ -509,6 +509,7 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -509,6 +509,7 @@ public class FireFightingSystemController extends AbstractBaseController {
try { try {
return CommonResponseUtil.success(fireFightingSystemService.update(vo)); return CommonResponseUtil.success(fireFightingSystemService.update(vo));
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(),e);
return CommonResponseUtil.failure(e.getMessage()); return CommonResponseUtil.failure(e.getMessage());
} }
} }
......
...@@ -839,8 +839,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -839,8 +839,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
if (!StringUtil.isNotEmpty(SystemTypeEnum.getEnum(systemCode))) { if (!StringUtil.isNotEmpty(SystemTypeEnum.getEnum(systemCode))) {
return null; return null;
} }
Map<String, Object> data = null; Map<String, Object> data;
if (isUpdate) { if (isUpdate) {
data = saveIntegrationPageSysData(systemCode); data = saveIntegrationPageSysData(systemCode);
} else { } else {
......
...@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
action.setStatus(AlarmStatusEnum.HF.getCode()); action.setStatus(AlarmStatusEnum.HF.getCode());
} }
action.setUpdateDate(new Date()); action.setUpdateDate(new Date());
// 更新所在系统,设备可能编辑过 // 更新所在系统,设备可能编辑过,更新所在系统、装备名称、装备定义code
action.setSystemIds(equipmentSpcIndex.getSystemId()); action.setSystemIds(equipmentSpcIndex.getSystemId());
action.setSystemCodes(this.getSystemCodeBySpeId(equipmentSpcIndex.getSystemId())); action.setSystemCodes(this.getSystemCodeBySpeId(equipmentSpcIndex.getSystemId()));
action.setEquipmentSpecificName(equipmentSpcIndex.getEquipmentSpecificName());
action.setEquipmentCode(equipmentSpcIndex.getEquipmentCode());
// 冗余字段,alarm_log表更新时使用
action.setCode(equipmentSpcIndex.getEquipmentSpecificCode());
equipmentSpecificAlarms.add(action); equipmentSpecificAlarms.add(action);
}); });
} }
......
...@@ -757,7 +757,8 @@ ...@@ -757,7 +757,8 @@
NOW( ) AS updatedate, NOW( ) AS updatedate,
es.area_id AS areaid, es.area_id AS areaid,
ws.`name` AS buildname, ws.`name` AS buildname,
a.`name` AS workarea a.`name` AS workarea,
es.qr_code as qrCode
FROM FROM
wl_equipment_specific es wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
......
...@@ -796,6 +796,7 @@ ...@@ -796,6 +796,7 @@
<select id="getFireFightingSystemDetail" <select id="getFireFightingSystemDetail"
resultType="com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem"> resultType="com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem">
SELECT SELECT
fs.id, fs.id,
f.`name` AS stationname, f.`name` AS stationname,
f.`code` AS stationcode, f.`code` AS stationcode,
...@@ -803,7 +804,7 @@ ...@@ -803,7 +804,7 @@
fs.`name` AS aliasname, fs.`name` AS aliasname,
fs.`code`, fs.`code`,
fg.group_name AS systemtype, fg.group_name AS systemtype,
IFNULL(fs.install_date,'') AS installdate, fs.install_date AS installdate,
IFNULL(p.`name`,'') AS chargeperson, IFNULL(p.`name`,'') AS chargeperson,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone, IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(mi.`name`,'') AS constructionunit, IFNULL(mi.`name`,'') AS constructionunit,
...@@ -823,8 +824,8 @@ ...@@ -823,8 +824,8 @@
LEFT JOIN rpm_person p ON p.id = fs.charge_person, LEFT JOIN rpm_person p ON p.id = fs.charge_person,
f_station_info f f_station_info f
<where> <where>
<if test="id != null and id !=''"> <if test="fireFightingSystemVo != null and fireFightingSystemVo.id != null and fireFightingSystemVo.id !=''">
fs.id = #{id} fs.id = #{fireFightingSystemVo.id}
</if> </if>
</where> </where>
</select> </select>
...@@ -962,7 +963,7 @@ ...@@ -962,7 +963,7 @@
from from
`wl_equipment_specific_index` si `wl_equipment_specific_index` si
where where
si.equipment_index_key = 'FAS_AirSampler_FireAlarm') as sgbjqnum, si.equipment_index_key = 'FAS_SoundLightAlarm_FireAlarm') as sgbjqnum,
(SELECT (SELECT
count(1) count(1)
from from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment