Commit 7361f3f7 authored by wanghao's avatar wanghao

1 基础信息维护-用户管理-燃气用户 大屏展示数据结构 接口联调- 燃气类型封装

parent 3f4a1b16
......@@ -21,6 +21,11 @@ public class TDetectorUserVillageSafetyDeviceInfoVo {
*/
private String userType;
/**
* 燃气类型(0-天然气,1-液化气)
*/
private String gasType;
/**
* 燃气用户名称
*/
......
......@@ -287,6 +287,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
userListItem.put("phone",tDetectorUserVillageSafetyDeviceInfoVo.getPhone());
userListItem.put("address",tDetectorUserVillageSafetyDeviceInfoVo.getAddress());
userListItem.put("longitude",tDetectorUserVillageSafetyDeviceInfoVo.getUserLongitude());
userListItem.put("gasType",tDetectorUserVillageSafetyDeviceInfoVo.getGasType());
userListItem.put("latitude",tDetectorUserVillageSafetyDeviceInfoVo.getUserLatitude());
if ("2".equals(tDetectorUserVillageSafetyDeviceInfoVo.getUserType())) {
userListItem.put("iconType","61");
......@@ -316,6 +317,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
userListItem.put("address",value2.get(0).getAddress() == null ? "" : value2.get(0).getAddress());
userListItem.put("longitude",value2.get(0).getUserLongitude() == null ? "" : value2.get(0).getUserLongitude());
userListItem.put("latitude",value2.get(0).getUserLatitude() == null ? "" : value2.get(0).getUserLatitude());
userListItem.put("gasType",value2.get(0).getGasType() == null ? "" : value2.get(0).getGasType());
if (value2.get(0).getUserType() != null && "2".equals(value2.get(0).getUserType())) {
userListItem.put("iconType","61");
} else if (value2.get(0).getUserType() != null && "4".equals(value2.get(0).getUserType())) {
......@@ -341,7 +343,6 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
safetyDeviceMapList.add(safetyDeviceMapItem);
}
}
}
}
}
......
......@@ -309,11 +309,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dUser.longitude as userLongitude,
dUser.latitude as userLatitude,
dUser.user_type as userType,
dUser.gas_type as gasType,
userVillage.f_village_id as villageId,
userVillage.f_village_name as villageName,
userVillage.longitude,
userVillage.latitude,
region.f_name AS regionName ,
region.f_name AS regionName,
safetyDeviceInfo.f_gasUser_safety_device_id as gasUserSafetyDeviceId,
safetyDeviceInfo.f_iot_no as iotNo,
safetyDeviceInfo.f_device_name as deviceName,
......
......@@ -589,6 +589,10 @@ export default {
{ required: true, message: "请输入地址", trigger: "blur" },
// { min: 0, max: 30, message: "长度30位", trigger: "blur" },
],
gasType: [
{ required: true, message: "请选择燃气类型", trigger: "blur" },
// { min: 0, max: 30, message: "长度30位", trigger: "blur" },
],
},
//关联设备下级数据 表单校验
......
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