use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class BookVideoController method audit.
/**
* 审核视频
*
* @introduction
* @author Mryang
* @createDate 2018年2月6日 下午5:34:12
* @return
*/
@ResponseBody
@RequestMapping(value = "/audit", method = RequestMethod.PUT)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "微视频审核")
public ResponseBean<Integer> audit(HttpServletRequest request, Long id, Boolean isAuth) {
if (ObjectUtil.isNull(id)) {
return new ResponseBean(new CheckedServiceException(CheckedExceptionBusiness.BOOK_VEDIO, CheckedExceptionResult.NULL_PARAM, "微视频id不能为空"));
}
if (ObjectUtil.isNull(isAuth)) {
return new ResponseBean(new CheckedServiceException(CheckedExceptionBusiness.BOOK_VEDIO, CheckedExceptionResult.NULL_PARAM, "审核参数不能为空"));
}
String sessionId = CookiesUtil.getSessionId(request);
if (StringUtil.isEmpty(sessionId)) {
return new ResponseBean(new CheckedServiceException(CheckedExceptionBusiness.BOOK_VEDIO, CheckedExceptionResult.USER_SESSION, "尚未登录或session已过期"));
}
BookVideo bookVideo = new BookVideo();
bookVideo.setId(id).setAuthDate(new Date()).setAuthUserId(SessionUtil.getPmphUserBySessionId(sessionId).getId()).setIsAuth(isAuth);
return new ResponseBean(bookVideoService.updateBookVideo(bookVideo));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class DecPositionController method schoolListChosen.
/**
* Description:加载学校统计结果(按当选数排序)
*
* @author:lyc
* @date:2017年12月1日下午6:50:23
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/schoolListChosen", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载学校统计结果(按当选数排序)")
public ResponseBean schoolListChosen(Integer pageSize, Integer pageNumber, Long materialId, String schoolName) {
PageParameter<DeclarationResultSchoolVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
DeclarationResultSchoolVO declarationResultSchoolVO = new DeclarationResultSchoolVO();
declarationResultSchoolVO.setMaterialId(materialId);
declarationResultSchoolVO.setSchoolName(schoolName);
pageParameter.setParameter(declarationResultSchoolVO);
return new ResponseBean(decPositionService.listChosenDeclarationResultSchoolVOs(pageParameter));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class DecPositionController method bookList.
/**
* Description:加载书本统计结果
*
* @author:lyc
* @date:2017年12月1日下午6:50:46
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/bookList", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载书本统计结果")
public ResponseBean bookList(Integer pageSize, Integer pageNumber, Long materialId, String bookName) {
PageParameter<DeclarationResultBookVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
DeclarationResultBookVO declarationResultBookVO = new DeclarationResultBookVO();
declarationResultBookVO.setMaterialId(materialId);
declarationResultBookVO.setBookName(bookName);
pageParameter.setParameter(declarationResultBookVO);
return new ResponseBean(decPositionService.listDeclarationResultBookVOs(pageParameter));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class DecPositionController method schoolResultsChosen.
/**
* Description:加载学校申报情况统计结果(按当选数排序)
*
* @author:lyc
* @date:2017年12月1日下午3:03:36
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/schoolResultsChosen", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载学校申报情况统计结果(按当选数排序)")
public ResponseBean schoolResultsChosen(Integer pageSize, Integer pageNumber, Long materialId, String schoolName) {
PageParameter<DeclarationSituationSchoolResultVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
DeclarationSituationSchoolResultVO declarationSituationSchoolResultVO = new DeclarationSituationSchoolResultVO();
declarationSituationSchoolResultVO.setMaterialId(materialId);
declarationSituationSchoolResultVO.setSchoolName(schoolName);
pageParameter.setParameter(declarationSituationSchoolResultVO);
return new ResponseBean(decPositionService.listChosenDeclarationSituationSchoolResultVOs(pageParameter));
}
use of com.bc.pmpheep.annotation.LogDetail in project pmph by BCSquad.
the class DecPositionController method bookResults.
/**
* Description:加载书本申报情况统计结果
*
* @author:lyc
* @date:2017年12月1日下午5:44:16
* @param
* @return ResponseBean
*/
@ResponseBody
@RequestMapping(value = "/list/bookResults", method = RequestMethod.GET)
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "加载书本申报情况统计结果")
public ResponseBean bookResults(Integer pageSize, Integer pageNumber, Long materialId, String bookName) {
PageParameter<DeclarationSituationBookResultVO> pageParameter = new PageParameter<>(pageNumber, pageSize);
DeclarationSituationBookResultVO declarationSituationBookResultVO = new DeclarationSituationBookResultVO();
declarationSituationBookResultVO.setMaterialId(materialId);
declarationSituationBookResultVO.setBookName(bookName);
pageParameter.setParameter(declarationSituationBookResultVO);
return new ResponseBean(decPositionService.listDeclarationSituationBookResultVOs(pageParameter));
}
Aggregations