// public List<SchoolDepartmentBudgetProjectmx> selectSchoolDepartmentBudgetProjectmxList(SchoolDepartmentBudgetProjectmx schoolDepartmentBudgetProjectmx);
// public List<SchoolDepartmentBudgetProjectmx> selectSchoolDepartmentBudgetProjectmxList(SchoolDepartmentBudgetProjectmx schoolDepartmentBudgetProjectmx)
// public List<SchoolDepartmentBudgetProjectmx> selectSchoolDepartmentBudgetProjectmxList(SchoolDepartmentBudgetProjectmx schoolDepartmentBudgetProjectmx);
<iftest="activityName != null and activityName != ''"> and activity_name like concat('%', #{activityName}, '%')</if>
<iftest="activityArea != null and activityArea != ''"> and activity_area = #{activityArea}</if>
<iftest="activityTime != null "> and activity_time = #{activityTime}</if>
<iftest="htNumber != null "> and ht_number = #{htNumber}</if>
<iftest="specificUserId != null "> and specific_user_id = #{specificUserId}</if>
<iftest="specificUserName != null and specificUserName != ''"> and specific_user_name like concat('%', #{specificUserName}, '%')</if>
<iftest="activityNumber != null "> and activity_number = #{activityNumber}</if>
<iftest="duration != null "> and duration = #{duration}</if>
<iftest="isRehearsal != null and isRehearsal != ''"> and is_rehearsal = #{isRehearsal}</if>
<iftest="isVideo != null and isVideo != ''"> and is_video = #{isVideo}</if>
<iftest="isLive != null and isLive != ''"> and is_live = #{isLive}</if>
<iftest="isBigScreen != null and isBigScreen != ''"> and is_big_screen = #{isBigScreen}</if>
<iftest="otherRequirements != null and otherRequirements != ''"> and other_requirements = #{otherRequirements}</if>
<iftest="leadershipId != null "> and leadership_id = #{leadershipId}</if>
<iftest="leadershipName != null and leadershipName != ''"> and leadership_name like concat('%', #{leadershipName}, '%')</if>
<iftest="state != null and state != ''"> and state = #{state}</if>
<iftest="opinion != null and opinion != ''"> and opinion = #{opinion}</if>
<iftest="applyId != null "> and apply_id = #{applyId}</if>
<iftest="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if>
<iftest="applyTime != null "> and apply_time = #{applyTime}</if>
<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</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="activityName != null and activityName != ''"> and activity_name like concat('%', #{activityName}, '%')</if>
<iftest="activityArea != null and activityArea != ''"> and activity_area = #{activityArea}</if>
<iftest="activityTime != null "> and activity_time = #{activityTime}</if>
<iftest="htNumber != null "> and ht_number = #{htNumber}</if>
<iftest="specificUserId != null "> and specific_user_id = #{specificUserId}</if>
<iftest="specificUserName != null and specificUserName != ''"> and specific_user_name like concat('%', #{specificUserName}, '%')</if>
<iftest="activityNumber != null "> and activity_number = #{activityNumber}</if>
<iftest="duration != null "> and duration = #{duration}</if>
<iftest="isRehearsal != null and isRehearsal != ''"> and is_rehearsal = #{isRehearsal}</if>
<iftest="isVideo != null and isVideo != ''"> and is_video = #{isVideo}</if>
<iftest="isLive != null and isLive != ''"> and is_live = #{isLive}</if>
<iftest="isBigScreen != null and isBigScreen != ''"> and is_big_screen = #{isBigScreen}</if>
<iftest="otherRequirements != null and otherRequirements != ''"> and other_requirements = #{otherRequirements}</if>
<iftest="leadershipId != null "> and leadership_id = #{leadershipId}</if>
<iftest="leadershipName != null and leadershipName != ''"> and leadership_name like concat('%', #{leadershipName}, '%')</if>
<iftest="state != null and state != ''"> and state = #{state}</if>
<iftest="opinion != null and opinion != ''"> and opinion = #{opinion}</if>
<iftest="applyId != null "> and apply_id = #{applyId}</if>
<iftest="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if>
<iftest="applyTime != null "> and apply_time = #{applyTime}</if>
<iftest="applyDeptId != null and applyDeptId != ''"> and apply_dept_id = #{applyDeptId}</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>
b.id as sub_id, b.department_budget_id as sub_department_budget_id, b.project_name as sub_project_name, b.content as sub_content, b.project_expenditures as sub_project_expenditures, b.is_government_purchase as sub_is_government_purchase, b.apply_money as sub_apply_money, b.remark as sub_remark
from school_department_budget a
left join school_department_budget_projectmx b on b.department_budget_id = a.id
<iftest="studioId != null "> and studio_id = #{studioId}</if>
<iftest="studioName != null and studioName != ''"> and studio_name like concat('%', #{studioName}, '%')</if>
<iftest="appointmentTime != null "> and appointment_time = #{appointmentTime}</if>
<iftest="appointmentJc != null and appointmentJc != ''"> and appointment_jc = #{appointmentJc}</if>
<iftest="studioContent != null and studioContent != ''"> and studio_content like concat('%', #{studioContent}, '%')</if>
<iftest="appointmentUserId != null "> and appointment_user_id = #{appointmentUserId}</if>
<iftest="appointmentUserName != null and appointmentUserName != ''"> and appointment_user_name like concat('%', #{appointmentUserName}, '%')</if>
<iftest="applyTime != null "> and apply_time = #{applyTime}</if>
<iftest="statu != null and statu != ''"> and statu = #{statu}</if>
<iftest="startTime != null and endTime != null and startTime != '' and endTime != ''">and DATE_FORMAT(appointment_time,'%Y-%m-%d') between #{startTime} and #{endTime}</if>