| | |
| | | "p.feedback_at, " + |
| | | "p.is_report, " + |
| | | "p.is_publicity, " + |
| | | "p.activity_type, " + |
| | | "p.activity_id, " + |
| | | "p.activity_amount, " + |
| | | "p.examine_at " + |
| | | "FROM " + |
| | | "com_act_easy_photo p " + |
| | |
| | | "<if test='comActEasyPhotoVO.sponsorId != null and comActEasyPhotoVO.sponsorId != 0'>" + |
| | | "AND p.sponsor_id =#{comActEasyPhotoVO.sponsorId} " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.activityType != null'>" + |
| | | "AND p.activity_type =#{comActEasyPhotoVO.activityType} " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.easyType != null and comActEasyPhotoVO.easyType == 1'>" + |
| | | " AND (p.status = 1 or (p.status > 1 and is_need_feed_back = 0)) " + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.easyType != null and comActEasyPhotoVO.easyType == 2'>" + |
| | | " AND p.status > 1 and is_need_feed_back = 1 " + |
| | | " </if> " + |
| | | "group by p.id "+ |
| | | |
| | | "union all "+ |
| | |
| | | "p.is_publicity, " + |
| | | "p.activity_type, " + |
| | | "p.activity_amount, " + |
| | | "p.activity_id, " + |
| | | "p.examine_at " + |
| | | "FROM " + |
| | | "com_act_easy_photo p " + |
| | |
| | | ")t order by t.create_at desc "+ |
| | | "</script>") |
| | | IPage<ComActEasyPhotoVO> pageEasyPhoto(Page page, @Param("comActEasyPhotoVO") ComActEasyPhotoVO comActEasyPhotoVO); |
| | | |
| | | IPage<ComActEasyPhotoVO> pageEasyPhotoAdmin(Page page, @Param("comActEasyPhotoVO") ComActEasyPhotoVO comActEasyPhotoVO); |
| | | @Select("SELECT " + |
| | | "p.id, " + |
| | | "p.sponsor_id, " + |
| | |
| | | "u.`name` sponsorName, " + |
| | | "u.nick_name userNickName, " + |
| | | "su.`name` handlerName, " + |
| | | "su1.`name` completeName, " + |
| | | "u.`image_url`, " + |
| | | "u.phone, " + |
| | | "p.detail, " + |
| | |
| | | "p.handle_result, " + |
| | | "p.photo_path_list, " + |
| | | "p.activity_type, " + |
| | | "p.activity_id, " + |
| | | "p.activity_amount, " + |
| | | "count(pu.id)giveThumbsUpNum, " + |
| | | "p.handle_photo_list " + |
| | |
| | | "com_act_easy_photo p " + |
| | | "JOIN sys_user u on p.sponsor_id=u.user_id " + |
| | | "LEFT JOIN sys_user su on p.handler_id=su.user_id " + |
| | | "LEFT JOIN sys_user su1 on p.complete_id=su1.user_id " + |
| | | "LEFT JOIN com_act_easy_photo_user pu on p.id=pu.easy_photo_id " + |
| | | "WHERE p.del_tag = 0 and p.id=#{id}") |
| | | ComActEasyPhotoVO detailEasyPhoto(Long id); |
| | |
| | | "FROM com_act_easy_photo WHERE community_id = #{communityId} AND #{start} < create_at and create_at < #{end} ") |
| | | EastPhotoVO countByTime(@Param("start")String start, @Param("end")String end, @Param("nowDate")String nowDate, @Param("communityId")Long communityId); |
| | | |
| | | @Select("SELECT " + |
| | | " count( id ) AS examineNum, " + |
| | | " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = #{communityId} ) AS verificationNum, " + |
| | | " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = #{communityId} ) AS rejectNum, " + |
| | | " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = #{communityId} ) AS completeNum " + |
| | | "FROM " + |
| | | " com_act_easy_photo " + |
| | | "WHERE " + |
| | | " `status` = 1 " + |
| | | " AND community_id = #{communityId}") |
| | | // @Select("SELECT " + |
| | | // " count( id ) AS examineNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = #{communityId} and del_tag = 0 ) AS verificationNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = #{communityId} and del_tag = 0 ) AS rejectNum, " + |
| | | // " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = #{communityId} and del_tag = 0 ) AS completeNum " + |
| | | // "FROM " + |
| | | // " com_act_easy_photo " + |
| | | // "WHERE " + |
| | | // " `status` = 1 " + |
| | | // " AND community_id = #{communityId} and del_tag = 0") |
| | | ComActEasyPhotoStatisticsVO getEasyPhotoStatistics(@Param("communityId")Long communityId); |
| | | } |