|
@@ -15,6 +15,7 @@ import com.template.model.dto.RemoteUnlocking;
|
|
|
import com.template.model.pojo.*;
|
|
import com.template.model.pojo.*;
|
|
|
import com.template.model.result.CommonResult;
|
|
import com.template.model.result.CommonResult;
|
|
|
import com.template.model.vo.HouseLockVo;
|
|
import com.template.model.vo.HouseLockVo;
|
|
|
|
|
+import com.template.model.vo.UnlockingEmployeeVo;
|
|
|
import com.template.model.vo.UnlockingKeyVo;
|
|
import com.template.model.vo.UnlockingKeyVo;
|
|
|
import com.template.model.vo.houseLockListVo;
|
|
import com.template.model.vo.houseLockListVo;
|
|
|
import com.template.services.*;
|
|
import com.template.services.*;
|
|
@@ -196,17 +197,13 @@ public class HouseLockController implements HouseLockControllerAPI {
|
|
|
List<UnlockingAdmin> unlockingAdmins = unlockingAdminService.key(houseNumberId, date);
|
|
List<UnlockingAdmin> unlockingAdmins = unlockingAdminService.key(houseNumberId, date);
|
|
|
List<UnlockingCustom> unlockingCustoms = unlockingCustomService.key(houseNumberId, date);
|
|
List<UnlockingCustom> unlockingCustoms = unlockingCustomService.key(houseNumberId, date);
|
|
|
|
|
|
|
|
- List<UnlockingEmployee> unlockingEmployees = unlockingEmployeeService.list(
|
|
|
|
|
- new QueryWrapper<UnlockingEmployee>()
|
|
|
|
|
- .eq("house_number_id", houseNumberId)
|
|
|
|
|
- .gt("end_time", date)
|
|
|
|
|
- .lt("start_time", date));
|
|
|
|
|
|
|
+ List<UnlockingEmployeeVo> unlockingEmployeeVos=unlockingEmployeeService.key(houseNumberId,date);
|
|
|
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
map.put("order", unlockingKeyDtos);
|
|
map.put("order", unlockingKeyDtos);
|
|
|
map.put("system", unlockingAdmins);
|
|
map.put("system", unlockingAdmins);
|
|
|
map.put("custom", unlockingCustoms);
|
|
map.put("custom", unlockingCustoms);
|
|
|
- map.put("employee", unlockingEmployees);
|
|
|
|
|
|
|
+ map.put("employee", unlockingEmployeeVos);
|
|
|
|
|
|
|
|
|
|
|
|
|
return CommonResult.ok(map);
|
|
return CommonResult.ok(map);
|