Commit adb271fd authored by linruibiao's avatar linruibiao

接口编写

parent e3ee9fe7
......@@ -73,9 +73,7 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
where.eq(InstrumentPanelConfig::getPanelId, instrumentPanelId);
where.eq(InstrumentPanelConfig::getPublished, PublishedStatus.WAIT_PUBLISHED.value);
InstrumentPanelConfig config = baseMapper.selectOne(where);
String status = PublishedStatus.WAIT_PUBLISHED.value;
if(ObjectUtils.isEmpty(config)){
status=PublishedStatus.PUBLISHED.value;
where = new LambdaQueryWrapper<>();
where.eq(BaseEntity::getRecordStatus, SlmConstants.DATA_VALID);
where.eq(InstrumentPanelConfig::getPanelId, instrumentPanelId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment