|
|
@@ -10,8 +10,6 @@ import cn.iocoder.yudao.module.iscs.controller.admin.isolationpoint.vo.Isolation
|
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.isolationpoint.vo.IsolationPointSaveReqVO;
|
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.isolationpoint.vo.PointDetailVO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.isolationpoint.IsolationPointDO;
|
|
|
-import cn.iocoder.yudao.module.iscs.dal.dataobject.lotostation.LotoStationDO;
|
|
|
-import cn.iocoder.yudao.module.iscs.dal.dataobject.mappoint.MapPointDO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.dto.hardwareApi.UpdateSwitchStatusDTO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.mysql.isolationpoint.IsolationPointMapper;
|
|
|
import cn.iocoder.yudao.module.iscs.service.lotostation.LotoStationService;
|
|
|
@@ -72,12 +70,12 @@ public class IsolationPointServiceImpl extends ServiceImpl<IsolationPointMapper,
|
|
|
.eq(IsolationPointDO::getPointNfc, createReqVO.getPointNfc()));
|
|
|
Assert.isTrue(list2.isEmpty(), "该NFC已被使用!");
|
|
|
// 检查isc_rfid_token中有没有改点位如果没有则新增一个
|
|
|
- Long l = rfidTokenService.insertRfidByRfid(createReqVO.getPointNfc());
|
|
|
- createReqVO.setRfidId(l);
|
|
|
+ // Long l = rfidTokenService.insertRfidByRfid(createReqVO.getPointNfc());
|
|
|
+ // createReqVO.setRfidId(l);
|
|
|
IsolationPointDO isolationPointDO = BeanUtils.toBean(createReqVO, IsolationPointDO.class);
|
|
|
save(isolationPointDO);
|
|
|
// 如果绑定的loto站已经绑定了mapId,则需要往is_map_point插入数据
|
|
|
- if (createReqVO.getLotoId() != null) {
|
|
|
+ /*if (createReqVO.getLotoId() != null) {
|
|
|
LotoStationDO lotoStation = lotoStationService.getById(createReqVO.getLotoId());
|
|
|
if (lotoStation.getMapId() != null) {
|
|
|
MapPointDO point = new MapPointDO();
|
|
|
@@ -86,7 +84,7 @@ public class IsolationPointServiceImpl extends ServiceImpl<IsolationPointMapper,
|
|
|
point.setEntityId(isolationPointDO.getId());
|
|
|
mapPointService.save(point);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 返回
|
|
|
return isolationPointDO.getId();
|
|
|
@@ -112,8 +110,8 @@ public class IsolationPointServiceImpl extends ServiceImpl<IsolationPointMapper,
|
|
|
.ne(IsolationPointDO::getId, updateReqVO.getId()));
|
|
|
Assert.isTrue(list2.isEmpty(), "该NFC已被使用!");
|
|
|
// 检查isc_rfid_token中有没有改点位如果没有则新增一个
|
|
|
- Long l = rfidTokenService.insertRfidByRfid(updateReqVO.getPointNfc());
|
|
|
- updateReqVO.setRfidId(l);
|
|
|
+ // Long l = rfidTokenService.insertRfidByRfid(updateReqVO.getPointNfc());
|
|
|
+ // updateReqVO.setRfidId(l);
|
|
|
// 更新
|
|
|
IsolationPointDO updateObj = BeanUtils.toBean(updateReqVO, IsolationPointDO.class);
|
|
|
isolationPointMapper.updateById(updateObj);
|