public interface PlanApi
Title: 计划接口
Description: 计划接口
Copyright: Copyright (c) 2012
Company: seeyon.com
限定符和类型 | 方法和说明 |
---|---|
void |
deletePlanRefRelationsBySourceIds(List<Long> sourceIds)
根据来源id集合删除计划参照关系
正常: 1、传入参照了其他计划的计划来源id集合,能删除计划的参照关系 2、传入参照了任务的计划来源id集合,能删除计划的参照关系 3、传入参照了会议的计划来源id集合,能删除计划的参照关系 |
void |
deletePlanRefRelationsByToIds(List<Long> toIds)
根据自身业务id集合删除计划参照关系
正常: 1、传入参照了其他计划的参照关系id集合,能删除计划的参照关系 2、传入参照了任务的参照关系id集合,能删除计划的参照关系 3、传入参照了会议的参照关系id集合,能删除计划的参照关系 |
List<Map<String,Object>> |
findOtherPlanByMembers(List<Long> memberIds,
Date startDate,
Date endDate,
List<String> states)
获取当前登录人员参与的他人计划(memberIds创建,当前登录人员参与的计划)
正常: 1、传入正确的人员id、状态、开始时间小于结束时间且时间段内有任务,返回会议列表 2、传入正确的人员id、状态、开始时间小于结束时间且时间段内无任务,返回空会议列表(返回size=0的list实体) 异常: 3、所有参数传入null,抛异常 |
List<Map<String,Object>> |
findPartPlanByMembers(List<Long> memberId,
Date beginDate,
Date endDate,
List<String> states)
获取人员参与的计划(我是主送或者抄送人员)
正常: 1、传入正确的人员id、开始时间小于结束时间且时间段内有计划,返回计划列表 2、传入正确的人员id、开始时间小于结束时间且时间段内无计划,返回空计划列表(返回size=0的list实体) 异常: 3、所有参数传入null,抛异常 |
List<PlanBO> |
findPlans4Calendar(Long memberId,
Date beginDate,
Date endDate,
List<String> states)
获取时间视图中的计划
正常: 1、传入正确的人员id、开始时间小于结束时间且时间段内有计划,返回计划列表 2、传入正确的人员id、开始时间小于结束时间且时间段内无计划,返回空计划列表(返回size=0的list实体) 异常: 3、所有参数传入null,抛异常 |
List<PlanBO> |
findPlans4Project(Long memberId,
Long projectId,
Long phaseId,
Integer size)
获取项目的计划
正常: 1、传入正确的人员id、项目id、阶段id为空、条数为5(计划条数大于5),返回前5条所有项目阶段计划列表 2、传入正确的人员id、项目id、阶段id为空、条数为5(计划条数不足5),返回所有计划 异常: 3、有参数传入null,抛异常 |
List<PlanBO> |
findPlans4Relate(Long memberId,
Long relateId,
Integer size)
获关联人员的计划
正常: 1、所有参数传入正确值且关联人员有计划、条数为5(计划条数大于5),返回前5条计划列表 2、所有参数传入正确值且关联人员有计划、条数为5(计划条数不足5),返回所有计划 3、所有参数传入正确但关联人员没有计划,返回空 异常: 4、所有参数传入null,抛异常 |
List<PlanBO> |
findProjectPlanByCondition(Long memberId,
Long projectId,
Long phaseId,
String conditionType,
String conditionValue)
获取项目对应的计划列表
正常: 1、传入正确的人员id、项目id、项目阶段id、查询条件类型、查询条件的内容匹配对应计划,返回该项目该阶段所需查询的计划列表 2、传入正确的人员id、项目id、项目阶段id、查询条件类型为空字符、查询条件的内容为空字符,返回该项目该阶段所有计划列表 3、传入正确的人员id、项目id、项目阶段id值为1、查询条件类型为空字符、查询条件的内容为空字符,返回项目下所有计划列表 4、传入正确的人员id、项目id、项目阶段id、查询条件类型、查询条件的内容找不到匹配的计划,返回空计划列表(返回size=0的list实体) 异常: 5、所有参数传入null值,抛异常 |
PlanBO |
getPlan(Long id)
获取计划
正常: 1、传入正确的计划id,能获取到计划的实体 |
boolean |
hasViewPermission(Long memberId,
Long planId)
判断人员是否有计划的查看权限
正常: 1、传入正确的人员id、计划id且该人员在计划发送范围,返回true 2、传入正确的人员id、计划id且该人员是计划发起人,返回true 3、传入正确的人员id、计划id且该人员不是计划发起人也不是计划发送范围内人员也不是计划查询模板管理员,返回false 异常: 4、所有参数传入null,抛异常 |
void |
sendPlanTransferOtherMessage(Integer tranType,
Long planId,
Long objectId,
String title)
[计划转其它模块]发送消息
如:计划转日程事件、计划转任务 正常: 1、模块id传入日程、其他参数传入正确值,成功发送计划转日程消息,不抛出异常即可 2、模块id传入任务、其他参数传入正确值,成功发送计划转任务消息,不抛出异常即可 异常: 3、所有参数传入null,抛异常 |
PlanBO getPlan(Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 需要获取计划的idcom.seeyon.ctp.common.exceptions.BusinessException
List<PlanBO> findPlans4Relate(Long memberId, Long relateId, Integer size) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idrelateId
- 关联人员idsize
- 条数com.seeyon.ctp.common.exceptions.BusinessException
List<PlanBO> findPlans4Project(Long memberId, Long projectId, Long phaseId, Integer size) throws com.seeyon.ctp.common.exceptions.BusinessException
projectId
- 项目idphaseId
- 阶段idsize
- 条数条数com.seeyon.ctp.common.exceptions.BusinessException
List<PlanBO> findProjectPlanByCondition(Long memberId, Long projectId, Long phaseId, String conditionType, String conditionValue) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idprojectId
- 项目idphaseId
- 项目阶段IDconditionType
- 查询条件类型(title、creater、date_time)conditionValue
- 查询条件内容(xxxxx、xxxxxxx、2015-08-11,2015-08-15)com.seeyon.ctp.common.exceptions.BusinessException
List<PlanBO> findPlans4Calendar(Long memberId, Date beginDate, Date endDate, List<String> states) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idbeginDate
- 开始时间endDate
- 结束时间states
- 计划的状态(计划状态:1.未开始 2.进行中 3.已完成 4.已取消 5.已推迟 com.seeyon.apps.plan.enums.PlanStatusEnum
)com.seeyon.ctp.common.exceptions.BusinessException
boolean hasViewPermission(Long memberId, Long planId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idplanId
- 计划idcom.seeyon.ctp.common.exceptions.BusinessException
void deletePlanRefRelationsBySourceIds(List<Long> sourceIds) throws com.seeyon.ctp.common.exceptions.BusinessException
sourceIds
- 来源id集合com.seeyon.ctp.common.exceptions.BusinessException
void deletePlanRefRelationsByToIds(List<Long> toIds) throws com.seeyon.ctp.common.exceptions.BusinessException
toIds
- 自身业务id集合,即参照关系idcom.seeyon.ctp.common.exceptions.BusinessException
void sendPlanTransferOtherMessage(Integer tranType, Long planId, Long objectId, String title) throws com.seeyon.ctp.common.exceptions.BusinessException
tranType
- 其它模块枚举类型com.seeyon.apps.plan.enums.TransferTypeEnumplanId
- 计划IDobjectId
- 其它模块ID(如转日程则传日程的ID,转任务则传任务的ID)title
- 所转模块的标题com.seeyon.ctp.common.exceptions.BusinessException
List<Map<String,Object>> findPartPlanByMembers(List<Long> memberId, Date beginDate, Date endDate, List<String> states) throws com.seeyon.ctp.common.exceptions.BusinessException
memberIds
- 人员idbeginDate
- 开始时间endDate
- 结束时间states
- 计划的状态(计划状态:1.未开始 2.进行中 3.已完成 4.已取消 5.已推迟 com.seeyon.apps.plan.enums.PlanStatusEnum
)com.seeyon.ctp.common.exceptions.BusinessException
List<Map<String,Object>> findOtherPlanByMembers(List<Long> memberIds, Date startDate, Date endDate, List<String> states)
memberIds
- 人员id集合beginDate
- 开始时间endDate
- 结束时间states
- 状态 ({计划状态:1.未开始 2.进行中 3.已完成 4.已取消 5.已推迟 @link com.seeyon.apps.plan.enums.PlanStatusEnum})com.seeyon.ctp.common.exceptions.BusinessException
Copyright © 2016–2018. All rights reserved.