package com.shkpr.service.aimodelpower.dbdao.mapper; import com.shkpr.service.aimodelpower.dbdao.providers.WODispatchPlanRulsSqlProvider; import org.apache.ibatis.annotations.*; import java.util.List; import java.util.Map; public interface WODispatchPlanRulsMapper { @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "listAllWiths") List> listAllWiths(@Param("table") String table, @Param("filed") String file , @Param("limit") int limit , @Param("offset") int offset , @Param("andWheres") Map andWheres , @Param("orWheres") Map orWheres , @Param("order") String order , @Param("extend") String extend); @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "getByUniqueId") Map getOne(@Param("table") String table, @Param("filed") String filed, @Param("id") Object id); @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchQueryIn") List> batchQueryIn(@Param("table") String table, @Param("filed") String file , @Param("ids") List ids , @Param("order") String order , @Param("extend") String extend); @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchQueryWiths") List> batchQueryWiths(@Param("table") String table, @Param("filed") String filed , @Param("andWheres") Map andWheres , @Param("orWheres") Map orWheres , @Param("order") String order , @Param("extend") String extend); @InsertProvider(type = WODispatchPlanRulsSqlProvider.class, method = "inserts") int inserts(@Param("inserts") Map inserts); /** * update和delete返回受影响条数需要配合useAffectedRows=true * @param datas * @param andWheres * @return */ @UpdateProvider(type = WODispatchPlanRulsSqlProvider.class, method = "updateWiths") int updateWiths(@Param("datas") Map datas , @Param("andWheres") Map andWheres , @Param("orWheres") Map orWheres , @Param("extend") String extend); @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "existsLine") boolean existLine(@Param("table") String table , @Param("andWheres") Map andWheres , @Param("orWheres") Map orWheres , @Param("extend") String extend); @UpdateProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchUpdateWiths") int batchUpdateWiths(@Param("andWheres") List> andWheres , @Param("datas") List> datas); @DeleteProvider(type = WODispatchPlanRulsSqlProvider.class, method = "deleteWiths") int deleteWiths(@Param("andWheres") Map andWheres , @Param("orWheres") Map orWheres , @Param("extend") String extend); }