|
|
@@ -90,7 +90,7 @@ public class IotDayWorkServiceImpl extends ServiceImpl<IotDayWorkMapper, IotDayW
|
|
|
workDayDto.setDataType(dataType);
|
|
|
}
|
|
|
workVo.setDataStatus(1);
|
|
|
- IotDayWork goWork = getGoWork();
|
|
|
+ IotDayWork goWork = getGoWork(sysUser.getOrgId());
|
|
|
if (goWork != null) {
|
|
|
workVo.setDataStatus(0);
|
|
|
}
|
|
|
@@ -140,9 +140,10 @@ public class IotDayWorkServiceImpl extends ServiceImpl<IotDayWorkMapper, IotDayW
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private IotDayWork getGoWork() {
|
|
|
+ private IotDayWork getGoWork(Long orgId) {
|
|
|
QueryWrapper<IotDayWork> qw = new QueryWrapper<>();
|
|
|
qw.lambda().eq(IotDayWork::getDataStatus, 0);
|
|
|
+ qw.lambda().eq(IotDayWork::getOrgId, orgId);
|
|
|
return baseMapper.selectOne(qw);
|
|
|
}
|
|
|
|