| | |
| | | "w.sponsor_phone,\n" + |
| | | "w.wish_name,\n" + |
| | | "w.`status`,\n" + |
| | | "w.`feedback_at`,\n" + |
| | | "w.`examine_at`,\n" + |
| | | "w.`distribution_at`,\n" + |
| | | "w.`evaluate_at`,\n" + |
| | | "w.`photo_path_list`,\n" + |
| | | "count(wu.id)star_num,\n" + |
| | | "w.`detail`,\n" + |
| | | "w.form,\n" + |
| | | "w.reject_reason,\n" + |
| | | "su.`name` responsible_name,\n" + |
| | | "w.score,\n" + |
| | | "w.create_at \n" + |
| | |
| | | "left join com_act_micro_wish_user wu on w.id=wu.micro_wish_id "+ |
| | | "JOIN sys_user u ON w.sponsor_id = u.user_id \n" + |
| | | "<if test='comActMicroWishVO.sponsorName != null and comActMicroWishVO.sponsorName.trim() != ""'>" + |
| | | "AND u.name = #{comActMicroWishVO.sponsorName} \n" + |
| | | "AND u.name like concat(#{comActMicroWishVO.sponsorName},'%') \n" + |
| | | " JOIN sys_user su ON w.responsible_id = su.user_id \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.sponsorName == null or comActMicroWishVO.sponsorName.trim() == ""'>" + |
| | | "LEFT JOIN sys_user su ON w.responsible_id = su.user_id \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.responsibleName != null and comActMicroWishVO.responsibleName.trim() != ""'>" + |
| | | "AND su.`name` = #{comActMicroWishVO.responsibleName} \n" + |
| | | "AND su.`name` like concat(#{comActMicroWishVO.responsibleName},'%') \n" + |
| | | " </if> " + |
| | | "where w.status!=3 " + |
| | | "<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" + |
| | | "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%') \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 '>" + |
| | | "AND w.`status` = #{comActMicroWishVO.status} \n" + |
| | |
| | | "w.sponsor_phone,\n" + |
| | | "w.wish_name,\n" + |
| | | "w.`status`,\n" + |
| | | "w.`feedback_at`,\n" + |
| | | "w.`examine_at`,\n" + |
| | | "w.`distribution_at`,\n" + |
| | | "w.`evaluate_at`,\n" + |
| | | "w.`photo_path_list`,\n" + |
| | | "count(wu.id)star_num,\n" + |
| | | "w.`detail`,\n" + |
| | | "w.form,\n" + |
| | | "w.reject_reason,\n" + |
| | | "su.`name` responsible_name,\n" + |
| | | "w.score,\n" + |
| | | "w.create_at \n" + |
| | |
| | | "left join com_act_micro_wish_user wu on w.id=wu.micro_wish_id "+ |
| | | "JOIN sys_user u ON w.sponsor_id = u.user_id \n" + |
| | | "<if test='comActMicroWishVO.sponsorName != null and comActMicroWishVO.sponsorName.trim() != ""'>" + |
| | | "AND u.name = #{comActMicroWishVO.sponsorName} \n" + |
| | | "AND u.name like concat(#{comActMicroWishVO.sponsorName},'%') \n" + |
| | | " JOIN sys_user su ON w.responsible_id = su.user_id \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.sponsorName == null or comActMicroWishVO.sponsorName.trim() == ""'>" + |
| | | "LEFT JOIN sys_user su ON w.responsible_id = su.user_id \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.responsibleName != null and comActMicroWishVO.responsibleName.trim() != ""'>" + |
| | | "AND su.`name` = #{comActMicroWishVO.responsibleName} \n" + |
| | | "AND su.`name` like concat(#{comActMicroWishVO.responsibleName},'%') \n" + |
| | | " </if> " + |
| | | "where w.status=3 and w.form=1 \n" + |
| | | "<if test='comActMicroWishVO.backUserId != null and comActMicroWishVO.backUserId != 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" + |
| | | "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%') \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 '>" + |
| | | "AND w.`status` = #{comActMicroWishVO.status} \n" + |
| | |
| | | "w.photo_path_list,\n" + |
| | | "su.`name` responsible_name,\n" + |
| | | "w.form,\n" + |
| | | "w.reject_reason,\n" + |
| | | "w.examine_at,\n" + |
| | | "w.finish,\n" + |
| | | "w.finish_photo_path_list,\n" + |
| | | "w.finish_at,\n" + |
| | | "w.score,\n" + |
| | | "w.feedback,\n" + |
| | | "w.feedback_at,\n" + |
| | | "w.feedback_photo_path_list,\n" + |
| | | "w.distribution_at,\n" + |
| | | "w.evaluate_at,\n" + |
| | | "w.evaluate \n" + |
| | | "FROM\n" + |