|
|
@@ -120,7 +120,7 @@ public class ProtectionServiceImpl extends ServiceImpl<ProtectionMapper, Protect
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public boolean updateStatus(Long protectionId, String status) {
|
|
|
+ public Date updateStatus(Long protectionId, String status) {
|
|
|
Date now = DateUtil.date();
|
|
|
int count = baseMapper.update(null, new LambdaUpdateWrapper<Protection>()
|
|
|
.eq(Protection::getId, protectionId)
|
|
|
@@ -139,7 +139,7 @@ public class ProtectionServiceImpl extends ServiceImpl<ProtectionMapper, Protect
|
|
|
protectionLogMapper.insert(log);
|
|
|
}
|
|
|
|
|
|
- return count > 0;
|
|
|
+ return count > 0 ? now : null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -147,7 +147,7 @@ public class ProtectionServiceImpl extends ServiceImpl<ProtectionMapper, Protect
|
|
|
List<Protection> list = baseMapper.selectList(new LambdaQueryWrapper<Protection>()
|
|
|
.eq(Protection::getOrgId, orgId)
|
|
|
.eq(Protection::getDeleted, 0)
|
|
|
- .eq(Protection::getAllHour,0));
|
|
|
+ .eq(Protection::getAllHour, 0));
|
|
|
return list;
|
|
|
}
|
|
|
}
|