|
|
@ -2,13 +2,13 @@ package com.shxy.xymanager_admin.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.base.BaseController;
|
|
|
|
import com.shxy.xymanager_common.base.BaseController;
|
|
|
|
import com.shxy.xymanager_common.base.ResponseReult;
|
|
|
|
import com.shxy.xymanager_common.base.ResponseReult;
|
|
|
|
import com.shxy.xymanager_common.entity.LeadPulls;
|
|
|
|
import com.shxy.xymanager_common.entity.*;
|
|
|
|
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.entity.Weathers;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.model.PhotoDayModel;
|
|
|
|
import com.shxy.xymanager_common.model.PhotoDayModel;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalGpsModel;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalGpsModel;
|
|
|
|
import com.shxy.xymanager_common.page.TableDataInfo;
|
|
|
|
import com.shxy.xymanager_common.page.TableDataInfo;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_dao.dao.TerminalPositionsDao;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_dao.dao.TerminalStatusDao;
|
|
|
|
import com.shxy.xymanager_service.service.*;
|
|
|
|
import com.shxy.xymanager_service.service.*;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@ -39,7 +39,37 @@ public class TerminalExtController extends BaseController {
|
|
|
|
LeadPullsService leadPullsService;
|
|
|
|
LeadPullsService leadPullsService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
TerminalPhotoService photoService;
|
|
|
|
TerminalPhotoService photoService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
TerminalStatusDao terminalStatusDao;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
TerminalPositionsDao terminalPositionsDao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("listWithAll")
|
|
|
|
|
|
|
|
@ApiOperation("查询附带全部额外信息")
|
|
|
|
|
|
|
|
public ResponseReult<TableDataInfo<View_Dy_Line_Tower_Terminals>> listWithAll(Integer dyId, Integer lineId, Integer towerId, String search,
|
|
|
|
|
|
|
|
Long start, Long end,
|
|
|
|
|
|
|
|
Integer channelId,
|
|
|
|
|
|
|
|
Integer pageNum, Integer pageSize) {
|
|
|
|
|
|
|
|
pageNum = this.initPageNum(pageNum);
|
|
|
|
|
|
|
|
pageSize = this.initPageSize(pageSize);
|
|
|
|
|
|
|
|
TableDataInfo<View_Dy_Line_Tower_Terminals> result = this.getTerminalPage(dyId, lineId, towerId, search,
|
|
|
|
|
|
|
|
pageNum, pageSize);
|
|
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(result.getList())) {
|
|
|
|
|
|
|
|
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
|
|
|
|
|
|
|
TerminalGpsModel last = gpsService.getTermLastGPSPosition(terminal.getId())
|
|
|
|
|
|
|
|
.getData();
|
|
|
|
|
|
|
|
terminal.setLastGps(last);
|
|
|
|
|
|
|
|
PhotoDayModel photoInfo = photoService.getDayModel(terminal.getId(), channelId, start, end);
|
|
|
|
|
|
|
|
terminal.setPhotoInfo(photoInfo);
|
|
|
|
|
|
|
|
TerminalStatus status = terminalStatusDao.selectByPrimaryKey(terminal.getId());
|
|
|
|
|
|
|
|
terminal.setWorkingStatus(status);
|
|
|
|
|
|
|
|
TerminalPositions positions = terminalPositionsDao.selectByPrimaryKey(terminal.getId());
|
|
|
|
|
|
|
|
terminal.setPositions(positions);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ResponseReult.success(result);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("listWithGPS")
|
|
|
|
@GetMapping("listWithGPS")
|
|
|
|
@ApiOperation("查询附带定位")
|
|
|
|
@ApiOperation("查询附带定位")
|
|
|
|