<iftest="applyId != null "> and apply_id = #{applyId}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(awards_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>
<iftest="applyId != null "> and apply_id = #{applyId}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(awards_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>