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