select thisTab.id, thisTab.head_id, thisTab.create_by, thisTab.create_time, thisTab.operation from aging_log AS thisTab select count(0) from aging_log as thisTab and thisTab.head_id = #{headId} and thisTab.operation = #{operation} insert into aging_log head_id, create_by, create_time, operation, #{headId}, #{createBy}, #{createTime}, #{operation}, insert into aging_log id,head_id,create_by,create_time,operation, #{item.id},#{item.headId},#{item.createBy},#{item.createTime},#{item.operation}, update aging_log head_id = #{headId}, create_by = #{createBy}, create_time = #{createTime}, operation = #{operation}, where id = #{id} update aging_log head_id = #{item.headId}, create_by = #{item.createBy}, create_time = #{item.createTime}, operation = #{item.operation}, where id = #{item.id} delete from aging_log where id = #{id} delete from aging_log where id in #{id}