|
@@ -97,7 +97,7 @@ public class HydomcAssetServiceImpl extends SuperServiceImpl<HydomcAssetMapper,
|
|
|
// 设备分类ID
|
|
|
.classstructureid(classstructureid)
|
|
|
// 设备状态 运行中/报废 默认都为运行中
|
|
|
- .status(valid == 0 ? SwitchConstant.SCRAP : SwitchConstant.RUNNING)
|
|
|
+ .status(DictType.getCodeDesc(InfosKeyConstant.EQUIPMENT_STATUS, StringTool.object2String(infos.get(InfosKeyConstant.EQUIPMENT_STATUS))))
|
|
|
// 设备序号 同类设备的序号,即第几台设备:第几台电梯
|
|
|
.sbxhh(StringTool.object2String(infos.get(InfosKeyConstant.EQUIPMENT_IDX)))
|
|
|
// 厂家设备序列号
|
|
@@ -147,6 +147,11 @@ public class HydomcAssetServiceImpl extends SuperServiceImpl<HydomcAssetMapper,
|
|
|
// 更新人员
|
|
|
.ctx(updateUser)
|
|
|
.build();
|
|
|
+
|
|
|
+ if (valid == 0) {
|
|
|
+ hydomcAsset.setStatus(SwitchConstant.SCRAP);
|
|
|
+ }
|
|
|
+
|
|
|
return hydomcAsset;
|
|
|
}
|
|
|
|