|
@@ -8,19 +8,13 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.ktg.common.annotation.MarsDataScope;
|
|
import com.ktg.common.annotation.MarsDataScope;
|
|
|
import com.ktg.common.utils.StringUtils;
|
|
import com.ktg.common.utils.StringUtils;
|
|
|
-import com.ktg.iscs.domain.IsIsolationPoint;
|
|
|
|
|
-import com.ktg.iscs.domain.IsJobTicketPoints;
|
|
|
|
|
-import com.ktg.iscs.domain.IsLotoStation;
|
|
|
|
|
-import com.ktg.iscs.domain.IsSopPoints;
|
|
|
|
|
|
|
+import com.ktg.iscs.domain.*;
|
|
|
import com.ktg.iscs.domain.dto.point.BindingPointDTO;
|
|
import com.ktg.iscs.domain.dto.point.BindingPointDTO;
|
|
|
import com.ktg.iscs.domain.vo.loto.IsLotoStationVO;
|
|
import com.ktg.iscs.domain.vo.loto.IsLotoStationVO;
|
|
|
import com.ktg.iscs.domain.vo.points.PointDetailVO;
|
|
import com.ktg.iscs.domain.vo.points.PointDetailVO;
|
|
|
import com.ktg.iscs.domain.vo.workarea.PointsMapVO;
|
|
import com.ktg.iscs.domain.vo.workarea.PointsMapVO;
|
|
|
import com.ktg.iscs.mapper.IsLotoStationMapper;
|
|
import com.ktg.iscs.mapper.IsLotoStationMapper;
|
|
|
-import com.ktg.iscs.service.IIsIsolationPointService;
|
|
|
|
|
-import com.ktg.iscs.service.IIsJobTicketPointsService;
|
|
|
|
|
-import com.ktg.iscs.service.IIsLotoStationService;
|
|
|
|
|
-import com.ktg.iscs.service.IIsSopPointsService;
|
|
|
|
|
|
|
+import com.ktg.iscs.service.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -46,6 +40,8 @@ public class IsLotoStationServiceImpl extends ServiceImpl<IsLotoStationMapper, I
|
|
|
private IIsSopPointsService iIsSopPointsService;
|
|
private IIsSopPointsService iIsSopPointsService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IIsJobTicketPointsService iIsJobTicketPointsService;
|
|
private IIsJobTicketPointsService iIsJobTicketPointsService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IIsMapService isMapService;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
@MarsDataScope(workstationAlias = "w", userAlias = "u")
|
|
@MarsDataScope(workstationAlias = "w", userAlias = "u")
|
|
@@ -164,6 +160,7 @@ public class IsLotoStationServiceImpl extends ServiceImpl<IsLotoStationMapper, I
|
|
|
.eq(IsLotoStation::getLotoId, isLotoStation.getLotoId())
|
|
.eq(IsLotoStation::getLotoId, isLotoStation.getLotoId())
|
|
|
.set(IsLotoStation::getLotoName, isLotoStation.getLotoName())
|
|
.set(IsLotoStation::getLotoName, isLotoStation.getLotoName())
|
|
|
.set(IsLotoStation::getOrderNum, isLotoStation.getOrderNum())
|
|
.set(IsLotoStation::getOrderNum, isLotoStation.getOrderNum())
|
|
|
|
|
+ .set(IsLotoStation::getMapId, isLotoStation.getMapId() != null ? isLotoStation.getMapId() : null)
|
|
|
.set(IsLotoStation::getWorkstationId, isLotoStation.getWorkstationId() != null ? isLotoStation.getWorkstationId() : null)
|
|
.set(IsLotoStation::getWorkstationId, isLotoStation.getWorkstationId() != null ? isLotoStation.getWorkstationId() : null)
|
|
|
.set(IsLotoStation::getMap, StringUtils.isNotBlank(isLotoStation.getMap()) ? isLotoStation.getMap() : null));
|
|
.set(IsLotoStation::getMap, StringUtils.isNotBlank(isLotoStation.getMap()) ? isLotoStation.getMap() : null));
|
|
|
return true;
|
|
return true;
|
|
@@ -178,4 +175,16 @@ public class IsLotoStationServiceImpl extends ServiceImpl<IsLotoStationMapper, I
|
|
|
Assert.isTrue(list.isEmpty(), "该名称已被使用,请重新填写!");
|
|
Assert.isTrue(list.isEmpty(), "该名称已被使用,请重新填写!");
|
|
|
return save(isLotoStation);
|
|
return save(isLotoStation);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public IsLotoStation selectIsLotoStationById(Long lotoId) {
|
|
|
|
|
+ IsLotoStation byId = getById(lotoId);
|
|
|
|
|
+ if (byId != null && byId.getMapId() != null) {
|
|
|
|
|
+ IsMap map = isMapService.getById(byId.getMapId());
|
|
|
|
|
+ if (map != null) {
|
|
|
|
|
+ byId.setMapName(map.getName());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return byId;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|