and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} APD_ID, APD_PLAN_ID, APD_TYPE, APD_NUMBER, APD_STANDARD_ID, APD_COMPANY_ID, APD_SITE_ID, APD_DELIVER_DATE, APD_START_DATE, APD_END_DATE, APD_REMARKS, APD_CREATE_USER, APD_CREATE_TIME, APD_MODIFY_USER, APD_MODIFY_TIME, APD_STATE delete from ap_plan_detail where APD_ID = #{id,jdbcType=VARCHAR} delete from ap_plan_detail insert into ap_plan_detail (APD_ID, APD_PLAN_ID, APD_TYPE, APD_NUMBER, APD_STANDARD_ID, APD_COMPANY_ID, APD_SITE_ID, APD_DELIVER_DATE, APD_START_DATE, APD_END_DATE, APD_REMARKS, APD_CREATE_USER, APD_CREATE_TIME, APD_MODIFY_USER, APD_MODIFY_TIME, APD_STATE) values (#{id,jdbcType=VARCHAR}, #{planId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{standardId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{siteId,jdbcType=VARCHAR}, #{deliverDate,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}) insert into ap_plan_detail APD_ID, APD_PLAN_ID, APD_TYPE, APD_NUMBER, APD_STANDARD_ID, APD_COMPANY_ID, APD_SITE_ID, APD_DELIVER_DATE, APD_START_DATE, APD_END_DATE, APD_REMARKS, APD_CREATE_USER, APD_CREATE_TIME, APD_MODIFY_USER, APD_MODIFY_TIME, APD_STATE, #{id,jdbcType=VARCHAR}, #{planId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{standardId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{siteId,jdbcType=VARCHAR}, #{deliverDate,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}, update ap_plan_detail APD_ID = #{record.id,jdbcType=VARCHAR}, APD_PLAN_ID = #{record.planId,jdbcType=VARCHAR}, APD_TYPE = #{record.type,jdbcType=VARCHAR}, APD_NUMBER = #{record.number,jdbcType=VARCHAR}, APD_STANDARD_ID = #{record.standardId,jdbcType=VARCHAR}, APD_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR}, APD_SITE_ID = #{record.siteId,jdbcType=VARCHAR}, APD_DELIVER_DATE = #{record.deliverDate,jdbcType=VARCHAR}, APD_START_DATE = #{record.startDate,jdbcType=VARCHAR}, APD_END_DATE = #{record.endDate,jdbcType=VARCHAR}, APD_REMARKS = #{record.remarks,jdbcType=VARCHAR}, APD_CREATE_USER = #{record.createUser,jdbcType=VARCHAR}, APD_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR}, APD_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR}, APD_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR}, APD_STATE = #{record.state,jdbcType=VARCHAR}, update ap_plan_detail set APD_ID = #{record.id,jdbcType=VARCHAR}, APD_PLAN_ID = #{record.planId,jdbcType=VARCHAR}, APD_TYPE = #{record.type,jdbcType=VARCHAR}, APD_NUMBER = #{record.number,jdbcType=VARCHAR}, APD_STANDARD_ID = #{record.standardId,jdbcType=VARCHAR}, APD_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR}, APD_SITE_ID = #{record.siteId,jdbcType=VARCHAR}, APD_DELIVER_DATE = #{record.deliverDate,jdbcType=VARCHAR}, APD_START_DATE = #{record.startDate,jdbcType=VARCHAR}, APD_END_DATE = #{record.endDate,jdbcType=VARCHAR}, APD_REMARKS = #{record.remarks,jdbcType=VARCHAR}, APD_CREATE_USER = #{record.createUser,jdbcType=VARCHAR}, APD_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR}, APD_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR}, APD_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR}, APD_STATE = #{record.state,jdbcType=VARCHAR} update ap_plan_detail APD_PLAN_ID = #{planId,jdbcType=VARCHAR}, APD_TYPE = #{type,jdbcType=VARCHAR}, APD_NUMBER = #{number,jdbcType=VARCHAR}, APD_STANDARD_ID = #{standardId,jdbcType=VARCHAR}, APD_COMPANY_ID = #{companyId,jdbcType=VARCHAR}, APD_SITE_ID = #{siteId,jdbcType=VARCHAR}, APD_DELIVER_DATE = #{deliverDate,jdbcType=VARCHAR}, APD_START_DATE = #{startDate,jdbcType=VARCHAR}, APD_END_DATE = #{endDate,jdbcType=VARCHAR}, APD_REMARKS = #{remarks,jdbcType=VARCHAR}, APD_CREATE_USER = #{createUser,jdbcType=VARCHAR}, APD_CREATE_TIME = #{createTime,jdbcType=VARCHAR}, APD_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR}, APD_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR}, APD_STATE = #{state,jdbcType=VARCHAR}, where APD_ID = #{id,jdbcType=VARCHAR} update ap_plan_detail set APD_PLAN_ID = #{planId,jdbcType=VARCHAR}, APD_TYPE = #{type,jdbcType=VARCHAR}, APD_NUMBER = #{number,jdbcType=VARCHAR}, APD_STANDARD_ID = #{standardId,jdbcType=VARCHAR}, APD_COMPANY_ID = #{companyId,jdbcType=VARCHAR}, APD_SITE_ID = #{siteId,jdbcType=VARCHAR}, APD_DELIVER_DATE = #{deliverDate,jdbcType=VARCHAR}, APD_START_DATE = #{startDate,jdbcType=VARCHAR}, APD_END_DATE = #{endDate,jdbcType=VARCHAR}, APD_REMARKS = #{remarks,jdbcType=VARCHAR}, APD_CREATE_USER = #{createUser,jdbcType=VARCHAR}, APD_CREATE_TIME = #{createTime,jdbcType=VARCHAR}, APD_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR}, APD_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR}, APD_STATE = #{state,jdbcType=VARCHAR} where APD_ID = #{id,jdbcType=VARCHAR}