| | |
| | | <if test="param.endTime !=null and param.endTime !=null"> |
| | | AND DATE_FORMAT(FROM_UNIXTIME(j.create_time/1000,'%Y-%m-%d'),'%Y-%m-%d') <= DATE_FORMAT(#{param.endTime},'%Y-%m-%d') |
| | | </if> |
| | | <if test="param.sort eq 2"> |
| | | and j.collect_status = 1 |
| | | </if> |
| | | <if test="param.sort eq 3"> |
| | | and m.collect_status = 1 |
| | | </if> |
| | | <if test="param.waylineFileId != null and param.waylineFileId != ''"> |
| | | and w.wayline_id = #{param.waylineFileId} |
| | | </if> |
| | | GROUP BY m.job_id |
| | | ORDER BY |
| | | <if test="param.sort eq 2">j.collect_status = 1 desc,</if> |
| | | <if test="param.sort eq 3">m.collect_status = 1 desc,</if> |
| | | j.create_time desc |
| | | </select> |
| | | <select id="mediaDetail" resultType="com.dji.sample.media.model.MediaJobDTO"> |
| | | SELECT |
| | |
| | | <if test="jobId != null and jobId != ''"> |
| | | and m.job_id = #{jobId} |
| | | </if> |
| | | ORDER BY type = '视频' DESC |
| | | </select> |
| | | </mapper> |