| | |
| | | <if test="roomArea !=null and roomArea != ''"> |
| | | and t.room_area= #{roomArea} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and t.user_id= #{userId} |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="roomId !=null and roomId != ''"> |
| | | and t.room_id= #{roomId} |
| | |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | <if test="apartment !=null and apartment != ''"> |
| | | and t.apartment= #{apartment} |
| | | </if> |
| | |
| | | </select> |
| | | |
| | | <select id="queryQuestionOwnerTitleValues" parameterType="Map" resultType="Map"> |
| | | select qa.qa_id qaId,t.qa_value qaValue,t.seq,count(1) personCount |
| | | select qt.title_type titleType,qa.qa_id qaId,t.qa_value qaValue,t.seq,count(uqav.user_qa_id) personCount |
| | | from question_title_value t |
| | | inner join question_title qt on t.title_id = qt.title_id and qt.status_cd = '0' |
| | | inner join question_answer_title_rel qatr on t.title_id = qatr.title_id and qatr.status_cd = '0' |
| | | inner join question_answer qa on qatr.qa_id = qa.qa_id and qa.status_cd = '0' |
| | | left join user_question_answer_value uqav on qa.qa_id = uqav.qa_id and t.value_id = uqav.value_id and t.title_id = uqav.title_id and uqav.status_cd = '0' |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | group by qa.qa_id,t.qa_value,t.seq |
| | | group by qt.title_type,qa.qa_id,t.qa_value,t.seq |
| | | order by t.seq |
| | | |
| | | |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | |
| | | QuestionAnswerDto questionAnswerDto = BeanConvertUtil.covertBean(reqJson, QuestionAnswerDto.class); |
| | | |
| | | questionAnswerDto.setQaType(QuestionAnswerDto.QA_TYPE_VOTE); |
| | | int count = questionAnswerV1InnerServiceSMOImpl.queryQuestionAnswersCount(questionAnswerDto); |
| | | |
| | | List<QuestionAnswerDto> questionAnswerDtos = null; |