|
@@ -267,4 +267,24 @@ public class SopServiceImpl extends ServiceImpl<SopMapper, SopDO> implements Sop
|
|
|
return sopMapper.getSopDetailById(id);
|
|
return sopMapper.getSopDetailById(id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Boolean updateSopEnableNotification(SopSaveReqVO updateReqVO) {
|
|
|
|
|
+ Assert.notNull(updateReqVO.getId(), "id不能为空!");
|
|
|
|
|
+ Assert.notNull(updateReqVO.getEnableNotifications(), "enableNotifications不能为空!");
|
|
|
|
|
+ update(Wrappers.<SopDO>lambdaUpdate()
|
|
|
|
|
+ .eq(SopDO::getId, updateReqVO.getId())
|
|
|
|
|
+ .set(SopDO::getEnableNotifications, updateReqVO.getEnableNotifications()));
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Boolean updateSopEnableExecutionPlan(SopSaveReqVO updateReqVO) {
|
|
|
|
|
+ Assert.notNull(updateReqVO.getId(), "id不能为空!");
|
|
|
|
|
+ Assert.notNull(updateReqVO.getEnableExecutionPlan(), "enableExecutionPlan不能为空!");
|
|
|
|
|
+ update(Wrappers.<SopDO>lambdaUpdate()
|
|
|
|
|
+ .eq(SopDO::getId, updateReqVO.getId())
|
|
|
|
|
+ .set(SopDO::getEnableExecutionPlan, updateReqVO.getEnableExecutionPlan()));
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|