| | |
| | | "<if test='comActMicroWishVO.responsibleName != null and comActMicroWishVO.responsibleName.trim() != ""'>" + |
| | | "AND su.`name` = #{comActMicroWishVO.responsibleName} \n" + |
| | | " </if> " + |
| | | "WHERE\n" + |
| | | "w.community_id=#{comActMicroWishVO.communityId} \n" + |
| | | "<where>" + |
| | | "<if test='comActMicroWishVO.communityId != null and comActMicroWishVO.communityId != 0'>" + |
| | | " and w.community_id=#{comActMicroWishVO.communityId} \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone.trim() != ""'>" + |
| | | "AND w.sponsor_phone = #{comActMicroWishVO.sponsorPhone} \n" + |
| | | " </if> " + |
| | |
| | | "<if test='comActMicroWishVO.isApplets != null and comActMicroWishVO.isApplets != 0'>" + |
| | | "AND w.status in (3,6) \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.userId != null and comActMicroWishVO.userId != 0'>" + |
| | | "AND w.sponsor_id =#{comActMicroWishVO.userId} \n" + |
| | | " </if> " + |
| | | "</where>"+ |
| | | " group by w.id \n"+ |
| | | "ORDER BY w.`status`, w.create_at "+ |
| | | "</script>") |