<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if>
<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if>
<iftest="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if>
<iftest="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(activity_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(activity_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>
<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if>
<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</if>
<iftest="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if>
<iftest="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(activity_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(activity_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>