ScheduleNewService.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package jnpf.base.service;
  2. import jnpf.base.entity.ScheduleNewEntity;
  3. import jnpf.base.model.schedule.ScheduleDetailModel;
  4. import jnpf.base.model.schedule.ScheduleJobModel;
  5. import jnpf.base.model.schedule.ScheduleNewTime;
  6. import jnpf.exception.WorkFlowException;
  7. import java.util.Date;
  8. import java.util.List;
  9. /**
  10. * 日程
  11. *
  12. * @author JNPF开发平台组
  13. * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
  14. */
  15. public interface ScheduleNewService extends SuperService<ScheduleNewEntity> {
  16. /**
  17. * 列表
  18. *
  19. * @return
  20. */
  21. List<ScheduleNewEntity> getList(ScheduleNewTime scheduleNewTime);
  22. /**
  23. * 列表
  24. *
  25. * @return
  26. */
  27. List<ScheduleNewEntity> getList(String groupId, Date date);
  28. /**
  29. * 列表
  30. *
  31. * @return
  32. */
  33. List<ScheduleNewEntity> getStartDayList(String groupId, Date date);
  34. /**
  35. * 列表
  36. *
  37. * @return
  38. */
  39. List<ScheduleNewEntity> getListAll(Date date);
  40. /**
  41. * 信息
  42. *
  43. * @param id 主键值
  44. * @return 单据规则
  45. */
  46. ScheduleNewEntity getInfo(String id);
  47. /**
  48. * 信息
  49. *
  50. * @return 单据规则
  51. */
  52. List<ScheduleNewEntity> getGroupList(ScheduleDetailModel detailModel);
  53. /**
  54. * 创建
  55. *
  56. * @param entity 实体
  57. * @param operationType 1.新增 2.修改
  58. */
  59. void create(ScheduleNewEntity entity, List<String> toUserIds, String groupId, String operationType,List<String> idList) throws WorkFlowException;
  60. /**
  61. * 更新
  62. *
  63. * @param id 主键值
  64. * @param entity 实体对象
  65. * @param type 1.此日程 2.此日程及后续 3.所有日程
  66. * @return ignore
  67. */
  68. boolean update(String id, ScheduleNewEntity entity, List<String> toUserIds, String type) throws WorkFlowException;
  69. /**
  70. * 删除
  71. *
  72. * @param idList
  73. */
  74. void deleteScheduleList(List<String> idList);
  75. /**
  76. * 更新
  77. *
  78. * @param id 主键值
  79. * @param entity 实体对象
  80. */
  81. boolean update(String id, ScheduleNewEntity entity);
  82. /**
  83. * 删除
  84. *
  85. * @param entity 实体
  86. * @param type 1.此日程 2.此日程及后续 3.所有日程
  87. */
  88. void delete(ScheduleNewEntity entity, String type);
  89. /**
  90. * 发送重复提醒
  91. * @param scheduleJobModel
  92. */
  93. void scheduleMessage(ScheduleJobModel scheduleJobModel);
  94. }