//package com.bonus.canteen.core.report.datascreen.service;
//
//import com.bonus.canteen.core.allocation.alloc.model.AllocMetadata;
//import com.bonus.canteen.core.allocation.api.AllocMetadataApi;
//import com.bonus.canteen.core.common.enums.MetadataModelTypeEnum;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Lazy;
//import org.springframework.stereotype.Component;
//import java.util.ArrayList;
//import java.util.List;
//
//@Component
//public class DsMetadataService {
//   @Autowired
//   @Lazy
//   private AllocMetadataApi allocMetadataApi;
//
//   public String queryMetadata() {
//      return this.allocMetadataApi.getMetadataValue(MetadataModelTypeEnum.REPORT, "ifUseDataScreen");
//   }
//
//   public void saveMetadata(String metadata) {
//      List<AllocMetadata> payMetadataList = new ArrayList();
//      AllocMetadata payMetadata = new AllocMetadata(MetadataModelTypeEnum.REPORT, "ifUseDataScreen", metadata, (Long)null, (Long)null);
//      payMetadataList.add(payMetadata);
//      this.allocMetadataApi.saveList(payMetadataList);
//   }
//}
