WODispatchCmdPatchItemMapper.java 3.7 KB

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