compare_type, id, old_stand_id, old_stand_num, old_stand_name, new_stand_id, new_stand_num, new_stand_name, old_file_type, old_sar_type, create_user, create_time, modify_user, modify_time, new_file_type, new_sar_type ,compare_status where 1=1 and compare_type ${compareTypeOperator} #{compareType} and id ${idOperator} #{id} and old_stand_id ${oldStandIdOperator} #{oldStandId} and old_stand_num ${oldStandNumOperator} #{oldStandNum} and old_stand_name ${oldStandNameOperator} #{oldStandName} and new_stand_id ${newStandIdOperator} #{newStandId} and new_stand_num ${newStandNumOperator} #{newStandNum} and new_stand_name ${newStandNameOperator} #{newStandName} and old_file_type ${oldFileTypeOperator} #{oldFileType} and old_sar_type ${oldSarTypeOperator} #{oldSarType} and create_user ${createUserOperator} #{createUser} and create_time ${createTimeOperator} #{createTime} and create_time >= #{createTime1} and create_time <= #{createTime2} and modify_user ${modifyUserOperator} #{modifyUser} and modify_time ${modifyTimeOperator} #{modifyTime} and modify_time >= #{modifyTime1} and modify_time <= #{modifyTime2} and new_file_type ${newFileTypeOperator} #{newFileType} and new_sar_type ${newSarTypeOperator} #{newSarType} and compare_status = #{compareStatus} and (old_stand_num like concat('%',#{oldNumOrName},'%') OR old_stand_name like concat('%',#{oldNumOrName},'%')) and (new_stand_num like concat('%',#{newNumOrName},'%') OR new_stand_name like concat('%',#{newNumOrName},'%')) insert into SAR_STAND_COMPARE_HIS() values (#{compareType, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR}, #{oldStandId, jdbcType=VARCHAR}, #{oldStandNum, jdbcType=VARCHAR}, #{oldStandName, jdbcType=VARCHAR}, #{newStandId, jdbcType=VARCHAR}, #{newStandNum, jdbcType=VARCHAR}, #{newStandName, jdbcType=VARCHAR}, #{oldFileType, jdbcType=VARCHAR}, #{oldSarType, jdbcType=VARCHAR}, #{createUser, jdbcType=VARCHAR}, #{createTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR}, #{modifyTime, jdbcType=TIMESTAMP}, #{newFileType, jdbcType=VARCHAR}, #{newSarType, jdbcType=VARCHAR},#{compareStatus, jdbcType=VARCHAR}) insert into SAR_STAND_COMPARE_HIS compare_type, id, old_stand_id, old_stand_num, old_stand_name, new_stand_id, new_stand_num, new_stand_name, old_file_type, old_sar_type, create_user, create_time, modify_user, modify_time, new_file_type, new_sar_type, compare_status, #{compareType, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR}, #{oldStandId, jdbcType=VARCHAR}, #{oldStandNum, jdbcType=VARCHAR}, #{oldStandName, jdbcType=VARCHAR}, #{newStandId, jdbcType=VARCHAR}, #{newStandNum, jdbcType=VARCHAR}, #{newStandName, jdbcType=VARCHAR}, #{oldFileType, jdbcType=VARCHAR}, #{oldSarType, jdbcType=VARCHAR}, #{createUser, jdbcType=VARCHAR}, #{createTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR}, #{modifyTime, jdbcType=TIMESTAMP}, #{newFileType, jdbcType=VARCHAR}, #{newSarType, jdbcType=VARCHAR}, #{compareStatus, jdbcType=VARCHAR}, update SAR_STAND_COMPARE_HIS set compare_type = #{compareType}, old_stand_id = #{oldStandId}, old_stand_num = #{oldStandNum}, old_stand_name = #{oldStandName}, new_stand_id = #{newStandId}, new_stand_num = #{newStandNum}, new_stand_name = #{newStandName}, old_file_type = #{oldFileType}, old_sar_type = #{oldSarType}, create_user = #{createUser}, create_time = #{createTime}, modify_user = #{modifyUser}, modify_time = #{modifyTime}, new_file_type = #{newFileType}, new_sar_type = #{newSarType}, compare_status = #{compareStatus} where id = #{id} update SAR_STAND_COMPARE_HIS compare_type = #{compareType}, old_stand_id = #{oldStandId}, old_stand_num = #{oldStandNum}, old_stand_name = #{oldStandName}, new_stand_id = #{newStandId}, new_stand_num = #{newStandNum}, new_stand_name = #{newStandName}, old_file_type = #{oldFileType}, old_sar_type = #{oldSarType}, create_user = #{createUser}, create_time = #{createTime}, modify_user = #{modifyUser}, modify_time = #{modifyTime}, new_file_type = #{newFileType}, new_sar_type = #{newSarType}, compare_status = #{compareStatus}, where id = #{id} delete from SAR_STAND_COMPARE_HIS where id = #{value}