|
@@ -2,7 +2,15 @@ package com.gyee.backconfig.mapper.auto;
|
|
|
|
|
|
import com.gyee.backconfig.model.auto.ProEconEquipmentmodel;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import org.springframework.stereotype.Repository;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Repository
|
|
|
+@Mapper
|
|
|
/**
|
|
|
* <p>
|
|
|
* 设备型号 Mapper 接口
|
|
@@ -12,5 +20,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
* @since 2022-10-15
|
|
|
*/
|
|
|
public interface ProEconEquipmentmodelMapper extends BaseMapper<ProEconEquipmentmodel> {
|
|
|
+ int updateByExampleSelective(@Param("id") ProEconEquipmentmodel id, @Param("example") ProEconEquipmentmodelMapper example);
|
|
|
+
|
|
|
+ List<ProEconEquipmentmodel> selectByExample(ProEconEquipmentmodelMapper example);
|
|
|
|
|
|
+ @Select("select emm.id,emm.name,emm.aname,emm.windturbine_manufacturer_id,emm.spare1,lu.nem_code,lu.type_id,lu.name\n" +
|
|
|
+ " from pro_econ_equipmentmodel emm left join pro_basic_logical_unit lu on emm.spare1=lu.type_id")
|
|
|
+ List<ProEconEquipmentmodel> selectByExamplegl(@Param("id") String id, @Param("name") String name);
|
|
|
}
|