| | |
| | | "p.happen_addr,\n" + |
| | | "su.`name` handler_name,\n" + |
| | | "p.`status`,\n" + |
| | | "p.`detail`,\n" + |
| | | "p.create_at,\n" + |
| | | "p.examine_at \n" + |
| | | "FROM\n" + |
| | |
| | | "<if test='comActEasyPhotoVO.sponsorName != null and comActEasyPhotoVO.sponsorName.trim() != ""'>" + |
| | | "AND u.`name` = #{comActEasyPhotoVO.sponsorName} \n" + |
| | | " </if> " + |
| | | "JOIN sys_user su ON p.handler_id = su.user_id \n" + |
| | | "left JOIN sys_user su ON p.handler_id = su.user_id \n" + |
| | | "<if test='comActEasyPhotoVO.handlerName != null and comActEasyPhotoVO.handlerName.trim() != ""'>" + |
| | | "AND su.`name` = #{comActEasyPhotoVO.handlerName} \n" + |
| | | " </if> " + |
| | |
| | | "<if test='comActEasyPhotoVO.happenAddr != null and comActEasyPhotoVO.happenAddr.trim() != ""'>" + |
| | | "AND p.happen_addr = #{comActEasyPhotoVO.happenAddr} \n" + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.status != null '>" + |
| | | "<if test='comActEasyPhotoVO.status != null and comActEasyPhotoVO.status!=0' >" + |
| | | "AND p.`status` = #{comActEasyPhotoVO.status} \n" + |
| | | " </if> " + |
| | | "<if test='comActEasyPhotoVO.createBegin != null '>" + |
| | |
| | | "u.`image_url`,\n" + |
| | | "u.phone,\n" + |
| | | "p.detail,\n" + |
| | | "p.status,\n" + |
| | | "p.is_hide,\n" + |
| | | "p.happen_addr,\n" + |
| | | "su.`name`,\n" + |
| | | "p.handle_result,\n" + |