WODispatchPlanRulsMapper.java 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.shkpr.service.aimodelpower.dbdao.mapper;
  2. import com.shkpr.service.aimodelpower.dbdao.providers.WODispatchPlanRulsSqlProvider;
  3. import org.apache.ibatis.annotations.*;
  4. import java.util.List;
  5. import java.util.Map;
  6. public interface WODispatchPlanRulsMapper {
  7. @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "listAllWiths")
  8. List<Map<String, Object>> listAllWiths(@Param("table") String table, @Param("filed") String file
  9. , @Param("limit") int limit
  10. , @Param("offset") int offset
  11. , @Param("andWheres") Map<String, Object> andWheres
  12. , @Param("orWheres") Map<String, Object> orWheres
  13. , @Param("order") String order
  14. , @Param("extend") String extend);
  15. @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "getByUniqueId")
  16. Map<String, Object> getOne(@Param("table") String table, @Param("filed") String filed, @Param("id") Object id);
  17. @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchQueryIn")
  18. List<Map<String, Object>> batchQueryIn(@Param("table") String table, @Param("filed") String file
  19. , @Param("ids") List<? extends Object> ids
  20. , @Param("order") String order
  21. , @Param("extend") String extend);
  22. @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchQueryWiths")
  23. List<Map<String, Object>> batchQueryWiths(@Param("table") String table, @Param("filed") String filed
  24. , @Param("andWheres") Map<String, Object> andWheres
  25. , @Param("orWheres") Map<String, Object> orWheres
  26. , @Param("order") String order
  27. , @Param("extend") String extend);
  28. @InsertProvider(type = WODispatchPlanRulsSqlProvider.class, method = "inserts")
  29. int inserts(@Param("inserts") Map<String, Object> inserts);
  30. /**
  31. * update和delete返回受影响条数需要配合useAffectedRows=true
  32. * @param datas
  33. * @param andWheres
  34. * @return
  35. */
  36. @UpdateProvider(type = WODispatchPlanRulsSqlProvider.class, method = "updateWiths")
  37. int updateWiths(@Param("datas") Map<String, Object> datas
  38. , @Param("andWheres") Map<String, Object> andWheres
  39. , @Param("orWheres") Map<String, Object> orWheres
  40. , @Param("extend") String extend);
  41. @SelectProvider(type = WODispatchPlanRulsSqlProvider.class, method = "existsLine")
  42. boolean existLine(@Param("table") String table
  43. , @Param("andWheres") Map<String, Object> andWheres
  44. , @Param("orWheres") Map<String, Object> orWheres
  45. , @Param("extend") String extend);
  46. @UpdateProvider(type = WODispatchPlanRulsSqlProvider.class, method = "batchUpdateWiths")
  47. int batchUpdateWiths(@Param("andWheres") List<Map<String, Object>> andWheres
  48. , @Param("datas") List<Map<String, Object>> datas);
  49. @DeleteProvider(type = WODispatchPlanRulsSqlProvider.class, method = "deleteWiths")
  50. int deleteWiths(@Param("andWheres") Map<String, Object> andWheres
  51. , @Param("orWheres") Map<String, Object> orWheres
  52. , @Param("extend") String extend);
  53. }