package com.njcn.csdevice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.njcn.csdevice.pojo.param.CsDevModelRelationAddParm;
import com.njcn.csdevice.pojo.param.CsDevModelRelationAuidtParm;
import com.njcn.csdevice.pojo.param.CsDevModelRelationQueryParm;
import com.njcn.csdevice.pojo.po.CsDevModelRelationPO;
import com.njcn.csdevice.pojo.vo.CsDevModelRelationVO;

import java.util.List;

/**
 * 
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2023/4/18  13:49【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
public interface CsDevModelRelationService extends IService<CsDevModelRelationPO>{

        /** 
        * @Description: addDevModelRelation 
        * @Param: [addParm] 
        * @return: com.njcn.algorithm.pojo.po.CsDevModelRelationPO 
        * @Author: clam
        * @Date: 2023/4/18 
        */ 
        CsDevModelRelationPO addDevModelRelation(CsDevModelRelationAddParm addParm);
        /** 
        * @Description: AuditDevModelRelation 
        * @Param: [auditParm] 
        * @return: java.lang.Boolean 
        * @Author: clam
        * @Date: 2023/4/18 
        */ 
        Boolean AuditDevModelRelation(CsDevModelRelationAuidtParm auditParm);

        List<CsDevModelRelationVO> queryDevModelRelation(CsDevModelRelationQueryParm queryParm);

        /**
         * 根据装置id获取关联信息
         * @param devId
         * @return
         */
        List<CsDevModelRelationPO> findModelByDevId(String devId);

        /**
         * 根据装置id获取关联信息
         * @param devId
         * @return
         */
        String getModelByType(String devId, Integer type);

        String getVersionByDevId(String devId);

        void updateDataByList(List<String> list, String id);
}
