package com.sz.admin.monitor.service.impl;


import cn.hutool.core.collection.CollectionUtil;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.sz.admin.monitor.mapper.SubstationMapper;
import com.sz.admin.monitor.mapper.UserModelContentMapper;
import com.sz.admin.monitor.pojo.dto.dataModel.ModelContentDTO;
import com.sz.admin.monitor.pojo.po.Substation;
import com.sz.admin.monitor.pojo.po.UserModelContentDO;
import com.sz.admin.monitor.service.SubstationService;
import com.sz.admin.monitor.service.UserModelContentService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xq
 * @description:
 * @date 2026/3/13 10:23
 */
@Service
@RequiredArgsConstructor
public class UserModelContentServiceImpl extends ServiceImpl<UserModelContentMapper, UserModelContentDO> implements UserModelContentService {
    @Override
    public void saveOrUpdateModel(List<ModelContentDTO> list) {
        if(CollectionUtil.isEmpty(list))
            return;
        for (ModelContentDTO modelContentDTO : list) {
            ModelContentDTO.dtoConvertDO(modelContentDTO);
        }
    }
}
