| | |
| | | strArrays += "'" + split[i] + "',"; |
| | | } |
| | | String substring = strArrays.substring(0, strArrays.length() - 1); |
| | | equipment.setDeviceNumber(substring); |
| | | equipment.setDeviceName(substring); |
| | | pages = equipmentService.selectEquipmentPage(equipment.getDeviceName(), equipment.getAddvcd(), equipment.getDtype(), equipment.getDevicestate()); |
| | | } |
| | | |
| | |
| | | */ |
| | | List<EquipmentVOS> selectList(String deviceType); |
| | | EquipmentVOS selectInfo(Equipment equipment); |
| | | List<Map<String, Object>> selectInfos(String deviceNumber); |
| | | } |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectInfos" resultType="java.util.HashMap"> |
| | | SELECT |
| | | dept.id, |
| | | dept.deviceName, |
| | | dept.deviceNumber, |
| | | dept.deviceType, |
| | | dept.ownership, |
| | | dept.ownerId, |
| | | dept.devicestate, |
| | | dept.stime, |
| | | ST_ASTEXT ( dept.coordinate ) AS coordinate, |
| | | dept.dtype, |
| | | dept.parent_id, |
| | | dept.jd, |
| | | dept.wd, |
| | | dept.street AS streeName, |
| | | u.yname, |
| | | d.addvnm, |
| | | dept.addvcd |
| | | FROM |
| | | sys_equipment dept |
| | | LEFT JOIN sys_suser u ON u.ynumber = dept.ownerId |
| | | LEFT JOIN sys_district d ON d.addvcds = dept.addvcd |
| | | LEFT JOIN sys_street s ON s.id = dept.street WHERE dept.deviceNumber=#{deviceNumber} |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | List<EquipmentVOS> lazyList(Long parentId, Map<String, Object> param); |
| | | |
| | | EquipmentVOS selectInfo(Equipment equipment); |
| | | List<Map<String, Object>> selectInfos(String deviceNumber); |
| | | |
| | | /** |
| | | * 设备列表 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> selectInfos(String deviceNumber) { |
| | | return baseMapper.selectInfos(deviceNumber); |
| | | } |
| | | |
| | | @Override |
| | | public List<EquipmentVOS> selectList(String deviceType) { |
| | | return baseMapper.selectList(deviceType); |
| | | } |