| | |
| | | pageQuestnaireDTO.setForMasses(true); |
| | | pageQuestnaireDTO.setForVolunteer(true); |
| | | pageQuestnaireDTO.setForParty(true); |
| | | return communityService.pageQuestnaire(pageQuestnaireDTO, loginUserInfo.getCommunityId()); |
| | | return communityService.pageQuestnaire(pageQuestnaireDTO, 0l); |
| | | } |
| | | |
| | | @ApiOperation(value = "创建调查问卷") |
| | |
| | | if(pageQuestnaireDTO.getForVolunteer()==null){ |
| | | pageQuestnaireDTO.setForVolunteer(false); |
| | | } |
| | | return comActQuestnaireService.pageQuestnaire(pageQuestnaireDTO,communityId); |
| | | return comActQuestnaireService.pageQuestnaire(pageQuestnaireDTO, communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | "FROM \n" + |
| | | " com_act_questnaire aq \n" + |
| | | " LEFT JOIN sys_user u on aq.create_by = u.user_id \n" + |
| | | " where aq.community_id = #{communityId}\n" + |
| | | " where 1=1 " + |
| | | "<if test='communityId != null and communityId!=0 '>\n" + |
| | | " and aq.community_id = #{communityId}\n" + |
| | | " </if> " + |
| | | "<if test='pageQuestnaireDTO.state != null '>\n" + |
| | | " and aq.state = #{pageQuestnaireDTO.state} \n" + |
| | | " </if> " + |