Przeglądaj źródła

修改终端类型查询

konghl 4 lat temu
rodzic
commit
59ae86a6da

+ 7 - 2
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/DeviceManageServiceImpl.java

@ -81,6 +81,11 @@ public class DeviceManageServiceImpl implements DeviceManageService {
81 81
		// 终端类型
82 82
		List<Map<String,String>> deviceTypeList = queryDeviceTypeList();
83 83
		if (null == params.get("deviceTypeId") || "".equals(params.get("deviceTypeId"))) {
84
			if (null==deviceTypeList||deviceTypeList.isEmpty()) {
85
				//如果没有终端类型,则返回为空
86
				return new HashMap<String, Object>();
87
			}
88
			
84 89
			List<String> specIds = new ArrayList<String>();
85 90
			for (Map<String,String> deviceTypeMap : deviceTypeList) {
86 91
				specIds.add(deviceTypeMap.get("deviceTypeId"));
@ -96,11 +101,11 @@ public class DeviceManageServiceImpl implements DeviceManageService {
96 101
		if (bindDeviceBoolean || unBindDeviceBoolean) {
97 102
			// 终端与工具绑定
98 103
			CommonResponse<PageInfo<Map<String, Object>>> bindToolInfoCommon = resourceToolQuery
99
					.queryWorkToolsDevRela(null);
104
					.queryWorkToolsDevRela(new CommonRequest<HashMap<String,Object>>(new HashMap<String,Object>()));
100 105
			bindToolInfoList = bindToolInfoCommon.getData().getData();
101 106
			// 终端与人员绑定
102 107
			CommonResponse<List<EmployeeTerminalRelaDto>> bindEmployeeInfoCommon = employeeTerminalRelaQuery
103
					.queryIndividualDevRela(null);
108
					.queryIndividualDevRela(new CommonRequest<List<String>>(new ArrayList<String>()));
104 109
			bindEmployeeInfoList = bindEmployeeInfoCommon.getData();
105 110
106 111
			// 终端ID

+ 6 - 3
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/MapTagManageServiceImpl.java

@ -40,8 +40,11 @@ public class MapTagManageServiceImpl implements MapTagManageService {
40 40
	public PageBean<Map<String, Object>> queryPageMapTagInfo(Map<String,String> params, int pageNumber, int pageSize) throws Exception {
41 41
		Map<String, Object> data = new HashMap<String, Object>();
42 42
		data.put("entityId", "0000"); //TODO 组织id
43
		data.put("mapAreaName", params.get("mapAreaName"));  //围栏名称模糊查询
44
		data.put("businessType",params.get("mapAreaType"));//围栏类型
43
		if (params!=null) {
44
			data.put("mapAreaName", params.get("mapAreaName"));  //围栏名称模糊查询
45
			data.put("entityId",params.get("entityId"));//所属部门
46
			data.put("businessType",params.get("mapAreaType"));//围栏类型
47
		}
45 48
46 49
		CommonRequest<Map<String, Object>> commonRequest = new CommonRequest<Map<String, Object>>(data, pageNumber, pageSize);
47 50
@ -90,7 +93,7 @@ public class MapTagManageServiceImpl implements MapTagManageService {
90 93
		for (CharacteristicSpecValue characteristicSpecValue:characteristicSpec.getCharacteristicSpecValues()) {
91 94
			Map<String,String> map=new HashMap<String,String>();
92 95
			map.put("mapAreaTypeId",characteristicSpecValue.getCode());
93
			map.put("mapAreaTypeName ",characteristicSpecValue.getValue());
96
			map.put("mapAreaTypeName",characteristicSpecValue.getValue());
94 97
			resultList.add(map);
95 98
		}
96 99

+ 1 - 1
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/WorkEmployeeServiceImpl.java

@ -67,7 +67,7 @@ public class WorkEmployeeServiceImpl implements WorkEmployeeService {
67 67
        for (CharacteristicSpecValue characteristicSpecValue:characteristicSpec.getCharacteristicSpecValues()) {
68 68
            Map<String,String> map=new HashMap<String,String>();
69 69
            map.put("jobPositionId",characteristicSpecValue.getCode());
70
            map.put("jobPositionName ",characteristicSpecValue.getValue());
70
            map.put("jobPositionName",characteristicSpecValue.getValue());
71 71
            resultList.add(map);
72 72
        }
73 73