Search in sources :

Example 1 with TopicLog

use of com.bc.pmpheep.back.po.TopicLog in project pmph by BCSquad.

the class TopicController method directorHandling.

/**
 * 功能描述:主任操作选题流程
 *
 * @param id
 *            选题申报id
 * @param editorId
 *            部门编辑id
 * @param isRejectedByDirector
 *            主任是否退回
 * @param reasonDirector
 *            退回原因
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "主任分配选题给部门编辑")
@RequestMapping(value = "/put/directorHandling", method = RequestMethod.PUT)
public ResponseBean directorHandling(HttpServletRequest request, Long id, Long editorId, Boolean isRejectedByDirector, String reasonDirector) {
    String sessionId = CookiesUtil.getSessionId(request);
    TopicLog topicLog = new TopicLog();
    topicLog.setTopicId(id);
    Topic topic = new Topic();
    topic.setId(id);
    if (ObjectUtil.isNull(isRejectedByDirector)) {
        isRejectedByDirector = false;
    }
    topic.setIsRejectedByDirector(isRejectedByDirector);
    if (isRejectedByDirector) {
        topicLog.setTopicEvent("主任退回选题给运维人员");
        topic.setIsRejectedByEditor(false);
        topic.setReasonEditor("-");
        topic.setIsDirectorHandling(false);
        topic.setReasonDirector(reasonDirector);
    } else {
        topicLog.setTopicEvent("主任分配选题给部门编辑");
        topic.setEditorId(editorId);
        topic.setIsRejectedByEditor(false);
        topic.setIsEditorHandling(true);
    }
    return new ResponseBean(topicService.update(topicLog, sessionId, topic));
}
Also used : ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) Topic(com.bc.pmpheep.back.po.Topic) TopicLog(com.bc.pmpheep.back.po.TopicLog) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 2 with TopicLog

use of com.bc.pmpheep.back.po.TopicLog in project pmph by BCSquad.

the class TopicController method optsHandling.

/**
 * 功能描述:运维人员分配选题申报给部门
 *
 * @param id
 *            选题id
 * @param departmentId
 *            部门id
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "运维人员分配选题给部门")
@RequestMapping(value = "/put/optsHandling", method = RequestMethod.PUT)
public ResponseBean optsHandling(HttpServletRequest request, Long id, Long departmentId) {
    String sessionId = CookiesUtil.getSessionId(request);
    TopicLog topicLog = new TopicLog();
    topicLog.setTopicId(id);
    topicLog.setTopicEvent("运维人员分配选题给部门");
    Topic topic = new Topic();
    topic.setId(id);
    topic.setDepartmentId(departmentId);
    topic.setIsDirectorHandling(true);
    return new ResponseBean(topicService.update(topicLog, sessionId, topic));
}
Also used : ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) Topic(com.bc.pmpheep.back.po.Topic) TopicLog(com.bc.pmpheep.back.po.TopicLog) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 3 with TopicLog

use of com.bc.pmpheep.back.po.TopicLog in project pmph by BCSquad.

the class TopicController method topicText.

/**
 * 功能描述:获取选题申报详情
 *
 * @param id
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "获取选题申报详情")
@RequestMapping(value = "/get/topicText", method = RequestMethod.GET)
public ResponseBean topicText(HttpServletRequest request, Long id) {
    String sessionId = CookiesUtil.getSessionId(request);
    TopicLog topicLog = new TopicLog();
    topicLog.setTopicId(id);
    topicLog.setTopicEvent("获取选题申报详情");
    return new ResponseBean(topicService.topicTextVO(topicLog, sessionId, id));
}
Also used : ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) TopicLog(com.bc.pmpheep.back.po.TopicLog) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 4 with TopicLog

use of com.bc.pmpheep.back.po.TopicLog in project pmph by BCSquad.

the class TopicController method editorHandling.

/**
 * 功能描述:编辑操作选题申报
 *
 * @param id
 *            选题申报id
 * @param authProgress
 *            审核进度
 * @param authFeedback
 *            审核意见
 * @param
 *
 * @param isAccepted
 *            编辑是否受理
 * @param isRejectedByEditor
 *            是否退回上级
 * @param reasonEditor
 *            退回原因
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "编辑对选题进行操作")
@RequestMapping(value = "/put/editorHandling", method = RequestMethod.PUT)
public ResponseBean editorHandling(HttpServletRequest request, Long id, Integer authProgress, String authFeedback, Boolean isRejectedByEditor, Boolean isAccepted, String reasonEditor) {
    String sessionId = CookiesUtil.getSessionId(request);
    TopicLog topicLog = new TopicLog();
    topicLog.setTopicId(id);
    topicLog.setTopicEvent("编辑受理选题");
    Topic topic = new Topic();
    topic.setId(id);
    topic.setIsAccepted(isAccepted);
    if (ObjectUtil.isNull(isAccepted)) {
        if (ObjectUtil.isNull(isRejectedByEditor)) {
            isRejectedByEditor = false;
        }
        topic.setIsRejectedByEditor(isRejectedByEditor);
        if (isRejectedByEditor) {
            topicLog.setTopicEvent("编辑退回选题给主任");
            topic.setEditorId(0L);
            topic.setIsEditorHandling(false);
            topic.setReasonEditor(reasonEditor);
        } else {
            topicLog.setTopicEvent("编辑审核选题申报");
            topic.setAuthDate(DateUtil.getCurrentTime());
            topic.setAuthFeedback(authFeedback);
            topic.setAuthProgress(authProgress);
        }
    }
    return new ResponseBean(topicService.update(topicLog, sessionId, topic));
}
Also used : ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) Topic(com.bc.pmpheep.back.po.Topic) TopicLog(com.bc.pmpheep.back.po.TopicLog) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 5 with TopicLog

use of com.bc.pmpheep.back.po.TopicLog in project pmph by BCSquad.

the class TopicController method detail.

/**
 * 功能描述:查看选题申报详情
 *
 * @param id
 * @return
 */
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查看选题申报详情")
@RequestMapping(value = "/get/detail", method = RequestMethod.GET)
public ResponseBean detail(HttpServletRequest request, Long id) {
    String sessionId = CookiesUtil.getSessionId(request);
    TopicLog topicLog = new TopicLog();
    topicLog.setTopicId(id);
    topicLog.setTopicEvent("查看选题申报详情");
    TopicTextVO topicTextVO = topicService.topicTextVO(topicLog, sessionId, id);
    topicTextVO.setIsAccepted(null);
    topicTextVO.setIsDirectorHandling(null);
    topicTextVO.setIsEditorHandling(null);
    return new ResponseBean(topicTextVO);
}
Also used : TopicTextVO(com.bc.pmpheep.back.vo.TopicTextVO) ResponseBean(com.bc.pmpheep.controller.bean.ResponseBean) TopicLog(com.bc.pmpheep.back.po.TopicLog) LogDetail(com.bc.pmpheep.annotation.LogDetail) ResponseBody(org.springframework.web.bind.annotation.ResponseBody) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

LogDetail (com.bc.pmpheep.annotation.LogDetail)5 TopicLog (com.bc.pmpheep.back.po.TopicLog)5 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)5 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)5 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)5 Topic (com.bc.pmpheep.back.po.Topic)3 TopicTextVO (com.bc.pmpheep.back.vo.TopicTextVO)1