|
@@ -35,7 +35,6 @@ import com.bz.smart_city.dao.DeviceCommandMapper;
|
|
|
import com.bz.smart_city.entity.DeviceCommand;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.time.LocalTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -92,7 +91,7 @@ public class DeviceCommandServiceImpl implements DeviceCommandService {
|
|
|
public Pagination<DeviceCommandDto> getTaskPage(String deviceNo, String name, Integer commandType, Integer commandStatus, int pageNum, int pageSize) {
|
|
|
LoginUser loginUser = UserUtil.getCurrentUser();
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
- List<DeviceCommandDto> list = deviceCommandTaskMapper.getList(loginUser.getSiteId(),deviceNo,name,commandType,commandStatus);
|
|
|
+ List<DeviceCommandDto> list = deviceCommandTaskMapper.getList(loginUser.getSiteId(),UserUtil.getCustomerIds(),deviceNo,name,commandType,commandStatus);
|
|
|
return new Pagination<>(list);
|
|
|
}
|
|
|
|
|
@@ -112,7 +111,7 @@ public class DeviceCommandServiceImpl implements DeviceCommandService {
|
|
|
@Override
|
|
|
public void getExcel(String deviceNo, String name, Integer commandType, Integer commandStatus, HttpServletResponse httpServletResponse) {
|
|
|
LoginUser loginUser = UserUtil.getCurrentUser();
|
|
|
- List<DeviceCommandDto> list = deviceCommandTaskMapper.getList(loginUser.getSiteId(),deviceNo,name,commandType,commandStatus);
|
|
|
+ List<DeviceCommandDto> list = deviceCommandTaskMapper.getList(loginUser.getSiteId(), UserUtil.getCustomerIds(), deviceNo,name,commandType,commandStatus);
|
|
|
|
|
|
String title = "批量指令下发";
|
|
|
String[] rowsName = new String[]{"序号", "设备编号", "设备型号", "任务名称", "指令类型", "指令状态", "下发时间", "完成时间"};
|