|
|
@@ -8,9 +8,11 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.ktg.common.annotation.MarsDataScope;
|
|
|
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.dto.point.BindingPointDTO;
|
|
|
import com.ktg.iscs.domain.vo.loto.IsLotoStationVO;
|
|
|
import com.ktg.iscs.domain.vo.points.PointDetailVO;
|
|
|
import com.ktg.iscs.domain.vo.workarea.PointsMapVO;
|
|
|
@@ -131,4 +133,22 @@ public class IsLotoStationServiceImpl extends ServiceImpl<IsLotoStationMapper, I
|
|
|
}
|
|
|
return points;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean updatePointsBindingLoto(BindingPointDTO dto) {
|
|
|
+ Assert.notNull(dto.getLotoId(), "电柜ID不能为空!");
|
|
|
+ if (!dto.getBindingPointIds().isEmpty()) {
|
|
|
+ // 开始绑定
|
|
|
+ iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
|
+ .in(IsIsolationPoint::getPointId, dto.getBindingPointIds())
|
|
|
+ .set(IsIsolationPoint::getLotoId, dto.getLotoId()));
|
|
|
+ }
|
|
|
+ if (!dto.getUnbindPointIds().isEmpty()) {
|
|
|
+ // 开始解绑
|
|
|
+ iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
|
+ .in(IsIsolationPoint::getPointId, dto.getUnbindPointIds())
|
|
|
+ .set(IsIsolationPoint::getLotoId, null));
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|