|
@@ -119,6 +119,14 @@ public class TPositionServiceImpl implements ITPositionService
|
|
|
tPosition.setUpdateTime(DateUtils.getNowDate());
|
|
|
//存放的是用户ID
|
|
|
tPosition.setUpdateBy(String.valueOf(SecurityUtils.getUserId()));
|
|
|
+ //2025年03月26日13:27:52 因为化验记录存放的是设备编号,不是设备ID,所以需要把设备sn也存下来
|
|
|
+ Long deviceId = tPosition.getDeviceId();
|
|
|
+ if(Objects.isNull(deviceId))
|
|
|
+ throw new ServiceException("请输入设备信息");
|
|
|
+ BizDevice bizDevice = this.deviceMapper.selectBizDeviceByDeviceId(deviceId);
|
|
|
+ if(Objects.isNull(bizDevice))
|
|
|
+ throw new ServiceException("未查询到设备信息,请输入正确的设备信息");
|
|
|
+ tPosition.setRemark(bizDevice.getDeviceSn());
|
|
|
return tPositionMapper.updateTPosition(tPosition);
|
|
|
}
|
|
|
|