dongyuangong před 4 roky
rodič
revize
4b1f6fff58
1 změnil soubory, kde provedl 19 přidání a 6 odebrání
  1. +19
    -6
      src/main/java/com/taauav/front/service/impl/UserInspectDriverServiceImpl.java

+ 19
- 6
src/main/java/com/taauav/front/service/impl/UserInspectDriverServiceImpl.java Zobrazit soubor

@@ -81,6 +81,9 @@ public class UserInspectDriverServiceImpl extends BaseServiceImpl<TauvInspectDri
@Autowired
private IUserAuthGroupService userAuthGroupService;

@Autowired
private ITauvInspectAppService iTauvInspectAppService;

@Override
public String batchAddData(TauvInspect inspect) {
List<TauvInspectDriver> inspectDriver = inspect.getInspectDriverList();
@@ -288,13 +291,23 @@ public class UserInspectDriverServiceImpl extends BaseServiceImpl<TauvInspectDri
// 飞手名称
List<String> inspectHandName = iSysAdminService.getAdminNameByIds(inspectDriver.getInspectHand());
inspectDriverInfoVo.setInspectHandName(org.apache.commons.lang3.StringUtils.join(inspectHandName.toArray(), ","));

// 获取巡检任务信息
TauvInspect inspect = inspectMapper.selectById(inspectDriver.getInspectId());
if (inspect == null) {
return response.failure("巡检任务不存在");
//app巡河
if (inspectDriver.getSource() == 5) {
TauvInspectApp appInfo = iTauvInspectAppService.getInfo(inspectDriver.getInspectId());
if (appInfo == null) {
return response.failure("巡检任务不存在");
}
inspectDriverInfoVo.setInspectTime(appInfo.getBeginTime());
} else {
// 获取巡检任务信息
TauvInspect inspect = inspectMapper.selectById(inspectDriver.getInspectId());
if (inspect == null) {
return response.failure("巡检任务不存在");
}
inspectDriverInfoVo.setInspectTime(inspect.getInspectTime());
}
inspectDriverInfoVo.setInspectTime(inspect.getInspectTime());



// 获取无人机设备
if (!StringUtils.isEmpty(inspectDriver.getEquipmentId())) {

Načítá se…
Zrušit
Uložit