| | |
| | | @RequestHeader(value = "user-id", required = false) String userId, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "objType", required = false) String objType, |
| | | @RequestParam(value = "qaType", required = false) String qaType, |
| | | @RequestParam(value = "qaName", required = false) String qaName, |
| | | @RequestParam(value = "qaId", required = false) String qaId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | QuestionAnswerDto questionAnswerDto = new QuestionAnswerDto(); |
| | | questionAnswerDto.setPage(page); |
| | | questionAnswerDto.setRow(row); |
| | | questionAnswerDto.setUserId(userId); |
| | | questionAnswerDto.setQaType(qaType); |
| | | questionAnswerDto.setQaName(qaName); |
| | | questionAnswerDto.setQaId(qaId); |
| | | if (!StringUtil.isEmpty(objType)) { |
| | | questionAnswerDto.setObjType(objType); |
| | | questionAnswerDto.setObjId(QuestionAnswerDto.QA_TYPE_COMMUNITY.equals(objType) ? communityId : storeId); |
| | |
| | | questionAnswerTitleValueDto.setObjId(QuestionAnswerDto.QA_TYPE_COMMUNITY.equals(objType) ? communityId : storeId); |
| | | return getQuestionAnswerTitleValueBMOImpl.get(questionAnswerTitleValueDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param communityId 小区ID |
| | | * @return |
| | | * @serviceCode /questionAnswer/queryTitleValueResult |
| | | * @path /app/questionAnswer/queryTitleValueResult |
| | | */ |
| | | @RequestMapping(value = "/queryTitleValueResult", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryTitleValueResult(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "objType") String objType, |
| | | @RequestParam(value = "titleId",required = false) String titleId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | QuestionAnswerTitleValueDto questionAnswerTitleValueDto = new QuestionAnswerTitleValueDto(); |
| | | questionAnswerTitleValueDto.setPage(page); |
| | | questionAnswerTitleValueDto.setRow(row); |
| | | questionAnswerTitleValueDto.setObjType(objType); |
| | | questionAnswerTitleValueDto.setTitleId(titleId); |
| | | questionAnswerTitleValueDto.setObjId(QuestionAnswerDto.QA_TYPE_COMMUNITY.equals(objType) ? communityId : storeId); |
| | | return getQuestionAnswerTitleValueBMOImpl.queryQuestionAnswerTitleValueResult(questionAnswerTitleValueDto); |
| | | } |
| | | } |