old mode 100644
new mode 100755
| | |
| | | @RequestMapping(value = "/queryQuestionAnswer", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryQuestionAnswer( |
| | | @RequestHeader(value = "store-id", required = false) String storeId, |
| | | @RequestHeader(value = "user-id", required = false) String userId, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "objType", required = false) String objType, |
| | | @RequestParam(value = "page") int page, |
| | |
| | | QuestionAnswerDto questionAnswerDto = new QuestionAnswerDto(); |
| | | questionAnswerDto.setPage(page); |
| | | questionAnswerDto.setRow(row); |
| | | questionAnswerDto.setUserId(userId); |
| | | if (!StringUtil.isEmpty(objType)) { |
| | | questionAnswerDto.setObjType(objType); |
| | | questionAnswerDto.setObjId(QuestionAnswerDto.QA_TYPE_COMMUNITY.equals(objType) ? communityId : storeId); |
| | |
| | | |
| | | |
| | | QuestionAnswerTitlePo questionAnswerTitlePo = BeanConvertUtil.covertBean(reqJson, QuestionAnswerTitlePo.class); |
| | | return saveQuestionAnswerTitleBMOImpl.save(questionAnswerTitlePo,titleValues); |
| | | return saveQuestionAnswerTitleBMOImpl.save(questionAnswerTitlePo, titleValues); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | QuestionAnswerTitlePo questionAnswerTitlePo = BeanConvertUtil.covertBean(reqJson, QuestionAnswerTitlePo.class); |
| | | return updateQuestionAnswerTitleBMOImpl.update(questionAnswerTitlePo,titleValues); |
| | | return updateQuestionAnswerTitleBMOImpl.update(questionAnswerTitlePo, titleValues); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryQuestionAnswerTitle", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryQuestionAnswerTitle(@RequestHeader(value = "store-id", required = false) String storeId, |
| | | // @RequestHeader(value = "user-id", required = false) String userId, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "objType") String objType, |
| | | @RequestParam(value = "qaId") String qaId, |
| | |
| | | questionAnswerTitleDto.setPage(page); |
| | | questionAnswerTitleDto.setRow(row); |
| | | questionAnswerTitleDto.setQaId(qaId); |
| | | //questionAnswerTitleDto.setUserId(userId); |
| | | if (!StringUtil.isEmpty(objType)) { |
| | | questionAnswerTitleDto.setObjType(objType); |
| | | questionAnswerTitleDto.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 = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | QuestionAnswerTitleValueDto questionAnswerTitleValueDto = new QuestionAnswerTitleValueDto(); |
| | | questionAnswerTitleValueDto.setPage(page); |
| | | questionAnswerTitleValueDto.setRow(row); |
| | | questionAnswerTitleValueDto.setObjType(objType); |
| | | questionAnswerTitleValueDto.setObjId(QuestionAnswerDto.QA_TYPE_COMMUNITY.equals(objType) ? communityId : storeId); |
| | | return getQuestionAnswerTitleValueBMOImpl.queryQuestionAnswerTitleValueResult(questionAnswerTitleValueDto); |
| | | } |
| | | } |